PageSourceSearch

https://flock-lunch-learn-signup.lovable.app/assets/index-1EmRgyqF.js

js flock-lunch-learn-signup.lovable.app collected 2026-10-03 03:31:28 UTC 491,455 bytes, 182 lines download raw bytes

vendor: 5,627 bytes, lines 1-9
1var zf=e=>{throw TypeError(e)};var zl=(e,t,n)=>t.has(e)||zf("Cannot "+n);var P=(e,t,n)=>(zl(e,t,"read from private field"),n?n.call(e):t.get(e)),oe=(e,t,n)=>t.has(e)?zf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(zl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ze=(e,t,n)=>(zl(e,t,"access private method"),n);var Ci=(e,t,n,r)=>({set _(o){G(e,t,o,n)},get _(){return P(e,t,r)}});function Jw(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var St=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ym(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xw(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var wm={exports:{}},nl={},xm={exports:{}},Z={};/**
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 fi=Symbol.for("react.element"),Zw=Symbol.for("react.portal"),ex=Symbol.for("react.fragment"),tx=Symbol.for("react.strict_mode"),nx=Symbol.for("react.profiler"),rx=Symbol.for("react.provider"),ox=Symbol.for("react.context"),sx=Symbol.for("react.forward_ref"),ix=Symbol.for("react.suspense"),ax=Symbol.for("react.memo"),lx=Symbol.for("react.lazy"),Bf=Symbol.iterator;function ux(e){return e===null||typeof e!="object"?null:(e=Bf&&e[Bf]||e["@@iterator"],typeof e=="function"?e:null)}var bm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sm=Object.assign,_m={};function Yo(e,t,n){this.props=e,this.context=t,this.refs=_m,this.updater=n||bm}Yo.prototype.isReactComponent={};Yo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Yo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Em(){}Em.prototype=Yo.prototype;function cd(e,t,n){this.props=e,this.context=t,this.refs=_m,this.updater=n||bm}var dd=cd.prototype=new Em;dd.constructor=cd;Sm(dd,Yo.prototype);dd.isPureReactComponent=!0;var Wf=Array.isArray,km=Object.prototype.hasOwnProperty,fd={current:null},Cm={key:!0,ref:!0,__self:!0,__source:!0};function Tm(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)km.call(t,r)&&!Cm.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:fi,type:e,key:s,ref:i,props:o,_owner:fd.current}}function cx(e,t){return{$$typeof:fi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hd(e){return typeof e=="object"&&e!==null&&e.$$typeof===fi}function dx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Hf=/\/+/g;function Bl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?dx(""+e.key):t.toString(36)}function ra(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case fi:case Zw:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Bl(i,0):r,Wf(o)?(n="",e!=null&&(n=e.replace(Hf,"$&/")+"/"),ra(o,t,n,"",function(u){return u})):o!=null&&(hd(o)&&(o=cx(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Hf,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Wf(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Bl(s,a);i+=ra(s,t,n,l,o)}else if(l=ux(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Bl(s,a++),i+=ra(s,t,n,l,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}
vendor: 6,070 bytes, lines 9-25
9function Ti(e,t,n){if(e==null)return e;var r=[],o=0;return ra(e,r,"","",function(s){return t.call(n,s,o++)}),r}function fx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Xe={current:null},oa={transition:null},hx={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:oa,ReactCurrentOwner:fd};function Pm(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:Ti,forEach:function(e,t,n){Ti(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ti(e,function(){t++}),t},toArray:function(e){return Ti(e,function(t){return t})||[]},only:function(e){if(!hd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=Yo;Z.Fragment=ex;Z.Profiler=nx;Z.PureComponent=cd;Z.StrictMode=tx;Z.Suspense=ix;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hx;Z.act=Pm;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Sm({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=fd.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)km.call(t,l)&&!Cm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:fi,type:e.type,key:o,ref:s,props:r,_owner:i}};Z.createContext=function(e){return e={$$typeof:ox,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:rx,_context:e},e.Consumer=e};Z.createElement=Tm;Z.createFactory=function(e){var t=Tm.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:sx,render:e}};Z.isValidElement=hd;Z.lazy=function(e){return{$$typeof:lx,_payload:{_status:-1,_result:e},_init:fx}};Z.memo=function(e,t){return{$$typeof:ax,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=oa.transition;oa.transition={};try{e()}finally{oa.transition=t}};Z.unstable_act=Pm;Z.useCallback=function(e,t){return Xe.current.useCallback(e,t)};Z.useContext=function(e){return Xe.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return Xe.current.useDeferredValue(e)};Z.useEffect=function(e,t){return Xe.current.useEffect(e,t)};Z.useId=function(){return Xe.current.useId()};Z.useImperativeHandle=function(e,t,n){return Xe.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return Xe.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return Xe.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return Xe.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return Xe.current.useReducer(e,t,n)};Z.useRef=function(e){return Xe.current.useRef(e)};Z.useState=function(e){return Xe.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return Xe.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return Xe.current.useTransition()};Z.version="18.3.1";xm.exports=Z;var y=xm.exports;const A=ym(y),pd=Jw({__proto__:null,default:A},[y]);/**
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 px=y,mx=Symbol.for("react.element"),gx=Symbol.for("react.fragment"),vx=Object.prototype.hasOwnProperty,yx=px.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wx={key:!0,ref:!0,__self:!0,__source:!0};function Rm(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)vx.call(t,r)&&!wx.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:mx,type:e,key:s,ref:i,props:o,_owner:yx.current}}nl.Fragment=gx;nl.jsx=Rm;nl.jsxs=Rm;wm.exports=nl;var b=wm.exports,Om={exports:{}},ht={},Nm={exports:{}},jm={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(C,R){var $=C.length;C.push(R);e:for(;0<$;){var H=$-1>>>1,z=C[H];if(0<o(z,R))C[H]=R,C[$]=z,$=H;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var R=C[0],$=C.pop();if($!==R){C[0]=$;e:for(var H=0,z=C.length,Y=z>>>1;H<Y;){var K=2*(H+1)-1,fe=C[K],Se=K+1,M=C[Se];if(0>o(fe,$))Se<z&&0>o(M,fe)?(C[H]=M,C[Se]=$,H=Se):(C[H]=fe,C[K]=$,H=K);else if(Se<z&&0>o(M,$))C[H]=M,C[Se]=$,H=Se;else break e}}return R}function o(C,R){var $=C.sortIndex-R.sortIndex;return $!==0?$:C.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],c=1,d=null,h=3,f=!1,x=!1,p=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(C){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=C)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function S(C){if(p=!1,g(C),!x)if(n(l)!==null)x=!0,F(_);else{var R=n(u);R!==null&&B(S,R.startTime-C)}}function _(C,R){x=!1,p&&(p=!1,v(T),T=-1),f=!0;var $=h;try{for(g(R),d=n(l);d!==null&&(!(d.expirationTime>R)||C&&!U());){var H=d.callback;
vendor: 1,959 bytes, line 25
25if(typeof H=="function"){d.callback=null,h=d.priorityLevel;var z=H(d.expirationTime<=R);R=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(l)&&r(l),g(R)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var K=n(u);K!==null&&B(S,K.startTime-R),Y=!1}return Y}finally{d=null,h=$,f=!1}}var E=!1,k=null,T=-1,N=5,j=-1;function U(){return!(e.unstable_now()-j<N)}function L(){if(k!==null){var C=e.unstable_now();j=C;var R=!0;try{R=k(!0,C)}finally{R?W():(E=!1,k=null)}}else E=!1}var W;if(typeof m=="function")W=function(){m(L)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,V=I.port2;I.port1.onmessage=L,W=function(){V.postMessage(null)}}else W=function(){w(L,0)};function F(C){k=C,E||(E=!0,W())}function B(C,R){T=w(function(){C(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){x||f||(x=!0,F(_))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(C){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var $=h;h=R;try{return C()}finally{h=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,R){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var $=h;h=C;try{return R()}finally{h=$}},e.unstable_scheduleCallback=function(C,R,$){var H=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?H+$:H):$=H,C){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}
vendor: 4,614 bytes, lines 25-33
25return z=$+z,C={id:c++,callback:R,priorityLevel:C,startTime:$,expirationTime:z,sortIndex:-1},$>H?(C.sortIndex=$,t(u,C),n(l)===null&&C===n(u)&&(p?(v(T),T=-1):p=!0,B(S,$-H))):(C.sortIndex=z,t(l,C),x||f||(x=!0,F(_))),C},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(C){var R=h;return function(){var $=h;h=R;try{return C.apply(this,arguments)}finally{h=$}}}})(jm);Nm.exports=jm;var xx=Nm.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 bx=y,ft=xx;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Am=new Set,Fs={};function Br(e,t){Uo(e,t),Uo(e+"Capture",t)}function Uo(e,t){for(Fs[e]=t,e=0;e<t.length;e++)Am.add(t[e])}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mu=Object.prototype.hasOwnProperty,Sx=/^[: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]*$/,Vf={},Kf={};function _x(e){return Mu.call(Kf,e)?!0:Mu.call(Vf,e)?!1:Sx.test(e)?Kf[e]=!0:(Vf[e]=!0,!1)}function Ex(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kx(e,t,n,r){if(t===null||typeof t>"u"||Ex(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ze(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){De[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var md=/[\-:]([a-z])/g;function gd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
33-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(md,gd);De[t]=new Ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(md,gd);De[t]=new Ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(md,gd);De[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function vd(e,t,n,r){var o=De.hasOwnProperty(t)?De[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(kx(t,n,o,r)&&(n=null),r||o===null?_x(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Sn=bx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pi=Symbol.for("react.element"),co=Symbol.for("react.portal"),fo=Symbol.for("react.fragment"),yd=Symbol.for("react.strict_mode"),Du=Symbol.for("react.profiler"),Im=Symbol.for("react.provider"),Lm=Symbol.for("react.context"),wd=Symbol.for("react.forward_ref"),Fu=Symbol.for("react.suspense"),Uu=Symbol.for("react.suspense_list"),xd=Symbol.for("react.memo"),Ln=Symbol.for("react.lazy"),$m=Symbol.for("react.offscreen"),qf=Symbol.iterator;function us(e){return e===null||typeof e!="object"?null:(e=qf&&e[qf]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,Wl;function xs(e){if(Wl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Wl=t&&t[1]||""}return`
34`+Wl+e}var Hl=!1;function Vl(e,t){if(!e||Hl)return"";Hl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35`),s=r.stack.split(`
36`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=`
37`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xs(e):""}function Cx(e){switch(e.tag){case 5:return xs(e.type);case 16:return xs("Lazy");case 13:return xs("Suspense");case 19:return xs("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function zu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fo:return"Fragment";case co:return"Portal";case Du:return"Profiler";case yd:return"StrictMode";case Fu:return"Suspense";case Uu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lm:return(e.displayName||"Context")+".Consumer";case Im:return(e._context.displayName||"Context")+".Provider";case wd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xd:return t=e.displayName||null,t!==null?t:zu(e.type)||"Memo";case Ln:t=e._payload,e=e._init;try{return zu(e(t))}catch{}}return null}function Tx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zu(t);case 8:return t===yd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Px(e){var t=Mm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ri(e){e._valueTracker||(e._valueTracker=Px(e))}function Dm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Sa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bu(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Fm(e,t){t=t.checked,t!=null&&vd(e,"checked",t,!1)}function Wu(e,t){Fm(e,t);var n=rr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hu(e,t.type,rr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Hu(e,t,n){(t!=="number"||Sa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bs=Array.isArray;function _o(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+rr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Vu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(bs(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:rr(n)}}function Um(e,t){var n=rr(t.value),r=rr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Jf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zm(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ku(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zm
vendor: 10,445 bytes, line 37
37(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Oi,Bm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Oi=Oi||document.createElement("div"),Oi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Oi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Us(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cs={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},Rx=["Webkit","ms","Moz","O"];Object.keys(Cs).forEach(function(e){Rx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cs[t]=Cs[e]})});function Wm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cs.hasOwnProperty(e)&&Cs[e]?(""+t).trim():t+"px"}function Hm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Wm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ox=be({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 qu(e,t){if(t){if(Ox[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Gu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Qu=null;function bd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yu=null,Eo=null,ko=null;function Xf(e){if(e=mi(e)){if(typeof Yu!="function")throw Error(O(280));var t=e.stateNode;t&&(t=al(t),Yu(e.stateNode,e.type,t))}}function Vm(e){Eo?ko?ko.push(e):ko=[e]:Eo=e}function Km(){if(Eo){var e=Eo,t=ko;if(ko=Eo=null,Xf(e),t)for(e=0;e<t.length;e++)Xf(t[e])}}function qm(e,t){return e(t)}function Gm(){}var Kl=!1;function Qm(e,t,n){if(Kl)return e(t,n);Kl=!0;try{return qm(e,t,n)}finally{Kl=!1,(Eo!==null||ko!==null)&&(Gm(),Km())}}function zs(e,t){var n=e.stateNode;if(n===null)return null;var r=al(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var Ju=!1;if(gn)try{var cs={};Object.defineProperty(cs,"passive",{get:function(){Ju=!0}}),window.addEventListener("test",cs,cs),window.removeEventListener("test",cs,cs)}catch{Ju=!1}function Nx(e,t,n,r,o,s,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ts=!1,_a=null,Ea=!1,Xu=null,jx={onError:function(e){Ts=!0,_a=e}};function Ax(e,t,n,r,o,s,i,a,l){Ts=!1,_a=null,Nx.apply(jx,arguments)}function Ix(e,t,n,r,o,s,i,a,l){if(Ax.apply(this,arguments),Ts){if(Ts){var u=_a;Ts=!1,_a=null}else throw Error(O(198));Ea||(Ea=!0,Xu=u)}}function Wr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ym(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zf(e){if(Wr(e)!==e)throw Error(O(188))}function Lx(e){var t=e.alternate;if(!t){if(t=Wr(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Zf(o),e;if(s===r)return Zf(o),t;s=s.sibling}throw Error(O(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function Jm(e){return e=Lx(e),e!==null?Xm(e):null}function Xm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Xm(e);if(t!==null)return t;e=e.sibling}return null}var Zm=ft.unstable_scheduleCallback,eh=ft.unstable_cancelCallback,$x=ft.unstable_shouldYield,Mx=ft.unstable_requestPaint,Te=ft.unstable_now,Dx=ft.unstable_getCurrentPriorityLevel,Sd=ft.unstable_ImmediatePriority,eg=ft.unstable_UserBlockingPriority,ka=ft.unstable_NormalPriority,Fx=ft.unstable_LowPriority,tg=ft.unstable_IdlePriority,rl=null,en=null;function Ux(e){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(rl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:Wx,zx=Math.log,Bx=Math.LN2;function Wx(e){return e>>>=0,e===0?32:31-(zx(e)/Bx|0)|0}var Ni=64,ji=4194304;function Ss(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ca(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Ss(a):(s&=i,s!==0&&(r=Ss(s)))}else i=n&~o,i!==0?r=Ss(i):s!==0&&(r=Ss(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ft(t),o=1<<n,r|=e[n],t&=~o;return r}function Hx(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vx(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Ft(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=Hx(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Zu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ng(){var e=Ni;return Ni<<=1,!(Ni&4194240)&&(Ni=64),e}function ql(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function Kx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ft(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function _d(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ft(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ae=0;function rg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var og,Ed,sg,ig,ag,ec=!1,Ai=[],Gn=null,Qn=null,Yn=null,Bs=new Map,Ws=new Map,Mn=[],qx="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 th(e,t){switch(e){case"focusin":case"focusout":Gn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":Bs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ws.delete(t.pointerId)}}function ds(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=mi(t),t!==null&&Ed(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Gx(e,t,n,r,o){switch(t){case"focusin":return Gn=ds(Gn,e,t,n,r,o),!0;case"dragenter":return Qn=ds(Qn,e,t,n,r,o),!0;case"mouseover":return Yn=ds(Yn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Bs.set(s,ds(Bs.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Ws.set(s,ds(Ws.get(s)||null,e,t,n,r,o)),!0}return!1}function lg(e){var t=_r(e.target);if(t!==null){var n=Wr(t);if(n!==null){if(t=n.tag,t===13){if(t=Ym(n),t!==null){e.blockedOn=t,ag(e.priority,function(){sg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=tc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Qu=r,n.target.dispatchEvent(r),Qu=null}else return t=mi(n),t!==null&&Ed(t),e.blockedOn=n,!1;t.shift()}return!0}
vendor: 11,995 bytes, line 37
37function nh(e,t,n){sa(e)&&n.delete(t)}function Qx(){ec=!1,Gn!==null&&sa(Gn)&&(Gn=null),Qn!==null&&sa(Qn)&&(Qn=null),Yn!==null&&sa(Yn)&&(Yn=null),Bs.forEach(nh),Ws.forEach(nh)}function fs(e,t){e.blockedOn===t&&(e.blockedOn=null,ec||(ec=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,Qx)))}function Hs(e){function t(o){return fs(o,e)}if(0<Ai.length){fs(Ai[0],e);for(var n=1;n<Ai.length;n++){var r=Ai[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gn!==null&&fs(Gn,e),Qn!==null&&fs(Qn,e),Yn!==null&&fs(Yn,e),Bs.forEach(t),Ws.forEach(t),n=0;n<Mn.length;n++)r=Mn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Mn.length&&(n=Mn[0],n.blockedOn===null);)lg(n),n.blockedOn===null&&Mn.shift()}var Co=Sn.ReactCurrentBatchConfig,Ta=!0;function Yx(e,t,n,r){var o=ae,s=Co.transition;Co.transition=null;try{ae=1,kd(e,t,n,r)}finally{ae=o,Co.transition=s}}function Jx(e,t,n,r){var o=ae,s=Co.transition;Co.transition=null;try{ae=4,kd(e,t,n,r)}finally{ae=o,Co.transition=s}}function kd(e,t,n,r){if(Ta){var o=tc(e,t,n,r);if(o===null)ru(e,t,r,Pa,n),th(e,r);else if(Gx(o,e,t,n,r))r.stopPropagation();else if(th(e,r),t&4&&-1<qx.indexOf(e)){for(;o!==null;){var s=mi(o);if(s!==null&&og(s),s=tc(e,t,n,r),s===null&&ru(e,t,r,Pa,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else ru(e,t,r,null,n)}}var Pa=null;function tc(e,t,n,r){if(Pa=null,e=bd(r),e=_r(e),e!==null)if(t=Wr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ym(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Pa=e,null}function ug(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Dx()){case Sd:return 1;case eg:return 4;case ka:case Fx:return 16;case tg:return 536870912;default:return 16}default:return 16}}var Vn=null,Cd=null,ia=null;function cg(){if(ia)return ia;var e,t=Cd,n=t.length,r,o="value"in Vn?Vn.value:Vn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return ia=o.slice(e,1<r?1-r:void 0)}function aa(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ii(){return!0}function rh(){return!1}function pt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ii:rh,this.isPropagationStopped=rh,this}return be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),t}var Jo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Td=pt(Jo),pi=be({},Jo,{view:0,detail:0}),Xx=pt(pi),Gl,Ql,hs,ol=be({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hs&&(hs&&e.type==="mousemove"?(Gl=e.screenX-hs.screenX,Ql=e.screenY-hs.screenY):Ql=Gl=0,hs=e),Gl)},movementY:function(e){return"movementY"in e?e.movementY:Ql}}),oh=pt(ol),Zx=be({},ol,{dataTransfer:0}),eb=pt(Zx),tb=be({},pi,{relatedTarget:0}),Yl=pt(tb),nb=be({},Jo,{animationName:0,elapsedTime:0,pseudoElement:0}),rb=pt(nb),ob=be({},Jo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sb=pt(ob),ib=be({},Jo,{data:0}),sh=pt(ib),ab={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lb={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"},ub={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ub[e])?!!t[e]:!1}function Pd(){return cb}var db=be({},pi,{key:function(e){if(e.key){var t=ab[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=aa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pd,charCode:function(e){return e.type==="keypress"?aa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?aa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fb=pt(db),hb=be({},ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ih=pt(hb),pb=be({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pd}),mb=pt(pb),gb=be({},Jo,{propertyName:0,elapsedTime:0,pseudoElement:0}),vb=pt(gb),yb=be({},ol,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),wb=pt(yb),xb=[9,13,27,32],Rd=gn&&"CompositionEvent"in window,Ps=null;gn&&"documentMode"in document&&(Ps=document.documentMode);var bb=gn&&"TextEvent"in window&&!Ps,dg=gn&&(!Rd||Ps&&8<Ps&&11>=Ps),ah=" ",lh=!1;function fg(e,t){switch(e){case"keyup":return xb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ho=!1;function Sb(e,t){switch(e){case"compositionend":return hg(t);case"keypress":return t.which!==32?null:(lh=!0,ah);case"textInput":return e=t.data,e===ah&&lh?null:e;default:return null}}function _b(e,t){if(ho)return e==="compositionend"||!Rd&&fg(e,t)?(e=cg(),ia=Cd=Vn=null,ho=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dg&&t.locale!=="ko"?null:t.data;default:return null}}var Eb={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 uh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Eb[e.type]:t==="textarea"}function pg(e,t,n,r){Vm(r),t=Ra(t,"onChange"),0<t.length&&(n=new Td("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rs=null,Vs=null;function kb(e){kg(e,0)}function sl(e){var t=go(e);if(Dm(t))return e}function Cb(e,t){if(e==="change")return t}var mg=!1;if(gn){var Jl;if(gn){var Xl="oninput"in document;if(!Xl){var ch=document.createElement("div");ch.setAttribute("oninput","return;"),Xl=typeof ch.oninput=="function"}Jl=Xl}else Jl=!1;mg=Jl&&(!document.documentMode||9<document.documentMode)}function dh(){Rs&&(Rs.detachEvent("onpropertychange",gg),Vs=Rs=null)}function gg(e){if(e.propertyName==="value"&&sl(Vs)){var t=[];pg(t,Vs,e,bd(e)),Qm(kb,t)}}function Tb(e,t,n){e==="focusin"?(dh(),Rs=t,Vs=n,Rs.attachEvent("onpropertychange",gg)):e==="focusout"&&dh()}function Pb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sl(Vs)}function Rb(e,t){if(e==="click")return sl(t)}function Ob(e,t){if(e==="input"||e==="change")return sl(t)}function Nb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:Nb;function Ks(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Mu.call(t,o)||!zt(e[o],t[o]))return!1}return!0}function fh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hh(e,t){var n=fh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fh(n)}}function vg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yg(){for(var e=window,t=Sa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sa(e.document)}return t}function Od(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jb(e){var t=yg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vg(n.ownerDocument.documentElement,n)){if(r!==null&&Od(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=hh(n,s);var i=hh(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ab=gn&&"documentMode"in document&&11>=document.documentMode,po=null,nc=null,Os=null,rc=!1;function ph(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rc||po==null||po!==Sa(r)||(r=po,"selectionStart"in r&&Od(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}),Os&&Ks(Os,r)||(Os=r,r=Ra(nc,"onSelect"),0<r.length&&(t=new Td("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=po)))}function Li(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mo={animationend:Li("Animation","AnimationEnd"),animationiteration:Li("Animation","AnimationIteration"),animationstart:Li("Animation","AnimationStart"),transitionend:Li("Transition","TransitionEnd")},Zl={},wg={};gn&&(wg=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);function il(e){if(Zl[e])return Zl[e];if(!mo[e])return e;var t=mo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in wg)return Zl[e]=t[n];return e}var xg=il("animationend"),bg=il("animationiteration"),Sg=il("animationstart"),_g=il("transitionend"),Eg=new Map,mh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ar(e,t){Eg.set(e,t),Br(t,[e])}for(var eu=0;eu<mh.length;eu++){var tu=mh[eu],Ib=tu.toLowerCase(),Lb=tu[0].toUpperCase()+tu.slice(1);ar(Ib,"on"+Lb)}ar(xg,"onAnimationEnd");ar(bg,"onAnimationIteration");ar(Sg,"onAnimationStart");ar("dblclick","onDoubleClick");ar("focusin","onFocus");ar("focusout","onBlur");ar(_g,"onTransitionEnd");Uo("onMouseEnter",["mouseout","mouseover"]);Uo("onMouseLeave",["mouseout","mouseover"]);Uo("onPointerEnter",["pointerout","pointerover"]);Uo("onPointerLeave",["pointerout","pointerover"]);Br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Br("onBeforeInput",["compositionend","keypress","textInput","paste"]);Br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="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(" "),$b=new Set("cancel close invalid load scroll toggle".split(" ").concat(_s));function gh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ix(r,t,void 0,e),e.currentTarget=null}function kg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;gh(o,a,u),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;gh(o,a,u),s=l}}}if(Ea)throw e=Xu,Ea=!1,Xu=null,e}function pe(e,t){var n=t[lc];n===void 0&&(n=t[lc]=new Set);var r=e+"__bubble";n.has(r)||(Cg(t,e,2,!1),n.add(r))}function nu(e,t,n){var r=0;t&&(r|=4),Cg(n,e,r,t)}var $i="_reactListening"+Math.random().toString(36).slice(2);function qs(e){if(!e[$i]){e[$i]=!0,Am.forEach(function(n){n!=="selectionchange"&&($b.has(n)||nu(n,!1,e),nu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$i]||(t[$i]=!0,nu("selectionchange",!1,t))}}function Cg(e,t,n,r){switch(ug(t)){case 1:var o=Yx;break;case 4:o=Jx;break;default:o=kd}n=o.bind(null,t,n,e),o=void 0,!Ju||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ru(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;
vendor: 4,093 bytes, line 37
37if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=_r(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}Qm(function(){var u=s,c=bd(n),d=[];e:{var h=Eg.get(e);if(h!==void 0){var f=Td,x=e;switch(e){case"keypress":if(aa(n)===0)break e;case"keydown":case"keyup":f=fb;break;case"focusin":x="focus",f=Yl;break;case"focusout":x="blur",f=Yl;break;case"beforeblur":case"afterblur":f=Yl;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":f=oh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=eb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=mb;break;case xg:case bg:case Sg:f=rb;break;case _g:f=vb;break;case"scroll":f=Xx;break;case"wheel":f=wb;break;case"copy":case"cut":case"paste":f=sb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=ih}var p=(t&4)!==0,w=!p&&e==="scroll",v=p?h!==null?h+"Capture":null:h;p=[];for(var m=u,g;m!==null;){g=m;var S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,v!==null&&(S=zs(m,v),S!=null&&p.push(Gs(m,S,g)))),w)break;m=m.return}0<p.length&&(h=new f(h,x,null,n,c),d.push({event:h,listeners:p}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&n!==Qu&&(x=n.relatedTarget||n.fromElement)&&(_r(x)||x[vn]))break e;if((f||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,f?(x=n.relatedTarget||n.toElement,f=u,x=x?_r(x):null,x!==null&&(w=Wr(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(f=null,x=u),f!==x)){if(p=oh,S="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(p=ih,S="onPointerLeave",v="onPointerEnter",m="pointer"),w=f==null?h:go(f),g=x==null?h:go(x),h=new p(S,m+"leave",f,n,c),h.target=w,h.relatedTarget=g,S=null,_r(c)===u&&(p=new p(v,m+"enter",x,n,c),p.target=g,p.relatedTarget=w,S=p),w=S,f&&x)t:{for(p=f,v=x,m=0,g=p;g;g=Xr(g))m++;for(g=0,S=v;S;S=Xr(S))g++;for(;0<m-g;)p=Xr(p),m--;for(;0<g-m;)v=Xr(v),g--;for(;m--;){if(p===v||v!==null&&p===v.alternate)break t;p=Xr(p),v=Xr(v)}p=null}else p=null;f!==null&&vh(d,h,f,p,!1),x!==null&&w!==null&&vh(d,w,x,p,!0)}}e:{if(h=u?go(u):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var _=Cb;else if(uh(h))if(mg)_=Ob;else{_=Pb;var E=Tb}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(_=Rb);if(_&&(_=_(e,u))){pg(d,_,n,c);break e}E&&E(e,h,u),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&Hu(h,"number",h.value)}switch(E=u?go(u):window,e){case"focusin":(uh(E)||E.contentEditable==="true")&&(po=E,nc=u,Os=null);break;case"focusout":Os=nc=po=null;break;case"mousedown":rc=!0;break;case"contextmenu":case"mouseup":case"dragend":rc=!1,ph(d,n,c);break;case"selectionchange":if(Ab)break;case"keydown":case"keyup":ph(d,n,c)}var k;if(Rd)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else ho?fg(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(dg&&n.locale!=="ko"&&(ho||T!=="onCompositionStart"?T==="onCompositionEnd"&&ho&&(k=cg()):(Vn=c,Cd="value"in Vn?Vn.value:Vn.textContent,ho=!0)),E=Ra(u,T),0<E.length&&(T=new sh(T,e,null,n,c),d.push({event:T,listeners:E}),k?T.data=k:(k=hg(n),k!==null&&(T.data=k)))),(k=bb?Sb(e,n):_b(e,n))&&(u=Ra(u,"onBeforeInput"),0<u.length&&(c=new sh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}kg(d,t)})}function Gs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ra(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;
vendor: 4,407 bytes, lines 37-38
37o.tag===5&&s!==null&&(o=s,s=zs(e,n),s!=null&&r.unshift(Gs(e,s,o)),s=zs(e,t),s!=null&&r.push(Gs(e,s,o))),e=e.return}return r}function Xr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vh(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=zs(n,s),l!=null&&i.unshift(Gs(n,l,a))):o||(l=zs(n,s),l!=null&&i.push(Gs(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Mb=/\r\n?/g,Db=/\u0000|\uFFFD/g;function yh(e){return(typeof e=="string"?e:""+e).replace(Mb,`
38`).replace(Db,"")}function Mi(e,t,n){if(t=yh(t),yh(e)!==t&&n)throw Error(O(425))}function Oa(){}var oc=null,sc=null;function ic(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ac=typeof setTimeout=="function"?setTimeout:void 0,Fb=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,Ub=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(e){return wh.resolve(null).then(e).catch(zb)}:ac;function zb(e){setTimeout(function(){throw e})}function ou(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Hs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Hs(t)}function Jn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function xh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Xo=Math.random().toString(36).slice(2),Jt="__reactFiber$"+Xo,Qs="__reactProps$"+Xo,vn="__reactContainer$"+Xo,lc="__reactEvents$"+Xo,Bb="__reactListeners$"+Xo,Wb="__reactHandles$"+Xo;function _r(e){var t=e[Jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vn]||n[Jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xh(e);e!==null;){if(n=e[Jt])return n;e=xh(e)}return t}e=n,n=e.parentNode}return null}function mi(e){return e=e[Jt]||e[vn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function go(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function al(e){return e[Qs]||null}var uc=[],vo=-1;function lr(e){return{current:e}}function me(e){0>vo||(e.current=uc[vo],uc[vo]=null,vo--)}function de(e,t){vo++,uc[vo]=e.current,e.current=t}var or={},Ke=lr(or),ot=lr(!1),Ir=or;function zo(e,t){var n=e.type.contextTypes;if(!n)return or;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function st(e){return e=e.childContextTypes,e!=null}function Na(){me(ot),me(Ke)}function bh(e,t,n){if(Ke.current!==or)throw Error(O(168));de(Ke,t),de(ot,n)}function Tg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(O(108,Tx(e)||"Unknown",o));return be({},n,r)}function ja(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,Ir=Ke.current,de(Ke,e),de(ot,ot.current),!0}function Sh(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Tg(e,t,Ir),r.__reactInternalMemoizedMergedChildContext=e,me(ot),me(Ke),de(Ke,e)):me(ot),de(ot,n)}var dn=null,ll=!1,su=!1;function Pg(e){dn===null?dn=[e]:dn.push(e)}function Hb(e){ll=!0,Pg(e)}function ur(){if(!su&&dn!==null){su=!0;var e=0,t=ae;try{var n=dn;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}dn=null,ll=!1}catch(o){throw dn!==null&&(dn=dn.slice(e+1)),Zm(Sd,ur),o}finally{ae=t,su=!1}}return null}var yo=[],wo=0,Aa=null,Ia=0,yt=[],wt=0,Lr=null,hn=1,pn="";function wr(e,t){yo[wo++]=Ia,yo[wo++]=Aa,Aa=e,Ia=t}function Rg(e,t,n){yt[wt++]=hn,yt[wt++]=pn,yt[wt++]=Lr,Lr=e;var r=hn;e=pn;var o=32-Ft(r)-1;r&=~(1<<o),n+=1;var s=32-Ft(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,hn=1<<32-Ft(t)+o|n<<o|r,pn=s+e}else hn=1<<s|n<<o|r,pn=e}function Nd(e){e.return!==null&&(wr(e,1),Rg(e,1,0))}
vendor: 25,004 bytes, lines 38-40
38function jd(e){for(;e===Aa;)Aa=yo[--wo],yo[wo]=null,Ia=yo[--wo],yo[wo]=null;for(;e===Lr;)Lr=yt[--wt],yt[wt]=null,pn=yt[--wt],yt[wt]=null,hn=yt[--wt],yt[wt]=null}var ct=null,ut=null,ve=!1,Dt=null;function Og(e,t){var n=xt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function _h(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ct=e,ut=Jn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Lr!==null?{id:hn,overflow:pn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ct=e,ut=null,!0):!1;default:return!1}}function cc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function dc(e){if(ve){var t=ut;if(t){var n=t;if(!_h(e,t)){if(cc(e))throw Error(O(418));t=Jn(n.nextSibling);var r=ct;t&&_h(e,t)?Og(r,n):(e.flags=e.flags&-4097|2,ve=!1,ct=e)}}else{if(cc(e))throw Error(O(418));e.flags=e.flags&-4097|2,ve=!1,ct=e}}}function Eh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function Di(e){if(e!==ct)return!1;if(!ve)return Eh(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ic(e.type,e.memoizedProps)),t&&(t=ut)){if(cc(e))throw Ng(),Error(O(418));for(;t;)Og(e,t),t=Jn(t.nextSibling)}if(Eh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=Jn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=ct?Jn(e.stateNode.nextSibling):null;return!0}function Ng(){for(var e=ut;e;)e=Jn(e.nextSibling)}function Bo(){ut=ct=null,ve=!1}function Ad(e){Dt===null?Dt=[e]:Dt.push(e)}var Vb=Sn.ReactCurrentBatchConfig;function ps(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function Fi(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function kh(e){var t=e._init;return t(e._payload)}function jg(e){function t(v,m){if(e){var g=v.deletions;g===null?(v.deletions=[m],v.flags|=16):g.push(m)}}function n(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function r(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function o(v,m){return v=tr(v,m),v.index=0,v.sibling=null,v}function s(v,m,g){return v.index=g,e?(g=v.alternate,g!==null?(g=g.index,g<m?(v.flags|=2,m):g):(v.flags|=2,m)):(v.flags|=1048576,m)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,m,g,S){return m===null||m.tag!==6?(m=fu(g,v.mode,S),m.return=v,m):(m=o(m,g),m.return=v,m)}function l(v,m,g,S){var _=g.type;return _===fo?c(v,m,g.props.children,S,g.key):m!==null&&(m.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ln&&kh(_)===m.type)?(S=o(m,g.props),S.ref=ps(v,m,g),S.return=v,S):(S=pa(g.type,g.key,g.props,null,v.mode,S),S.ref=ps(v,m,g),S.return=v,S)}function u(v,m,g,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=hu(g,v.mode,S),m.return=v,m):(m=o(m,g.children||[]),m.return=v,m)}function c(v,m,g,S,_){return m===null||m.tag!==7?(m=Ar(g,v.mode,S,_),m.return=v,m):(m=o(m,g),m.return=v,m)}function d(v,m,g){if(typeof m=="string"&&m!==""||typeof m=="number")return m=fu(""+m,v.mode,g),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Pi:return g=pa(m.type,m.key,m.props,null,v.mode,g),g.ref=ps(v,null,m),g.return=v,g;case co:return m=hu(m,v.mode,g),m.return=v,m;case Ln:var S=m._init;return d(v,S(m._payload),g)}if(bs(m)||us(m))return m=Ar(m,v.mode,g,null),m.return=v,m;Fi(v,m)}return null}function h(v,m,g,S){var _=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return _!==null?null:a(v,m,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Pi:return g.key===_?l(v,m,g,S):null;case co:return g.key===_?u(v,m,g,S):null;case Ln:return _=g._init,h(v,m,_(g._payload),S)}if(bs(g)||us(g))return _!==null?null:c(v,m,g,S,null);Fi(v,g)}return null}function f(v,m,g,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(g)||null,a(m,v,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Pi:return v=v.get(S.key===null?g:S.key)||null,l(m,v,S,_);case co:return v=v.get(S.key===null?g:S.key)||null,u(m,v,S,_);case Ln:var E=S._init;return f(v,m,g,E(S._payload),_)}if(bs(S)||us(S))return v=v.get(g)||null,c(m,v,S,_,null);Fi(m,S)}return null}function x(v,m,g,S){for(var _=null,E=null,k=m,T=m=0,N=null;k!==null&&T<g.length;T++){k.index>T?(N=k,k=null):N=k.sibling;var j=h(v,k,g[T],S);if(j===null){k===null&&(k=N);break}e&&k&&j.alternate===null&&t(v,k),m=s(j,m,T),E===null?_=j:E.sibling=j,E=j,k=N}if(T===g.length)return n(v,k),ve&&wr(v,T),_;if(k===null){for(;T<g.length;T++)k=d(v,g[T],S),k!==null&&(m=s(k,m,T),E===null?_=k:E.sibling=k,E=k);return ve&&wr(v,T),_}for(k=r(v,k);T<g.length;T++)N=f(k,v,T,g[T],S),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?T:N.key),m=s(N,m,T),E===null?_=N:E.sibling=N,E=N);return e&&k.forEach(function(U){return t(v,U)}),ve&&wr(v,T),_}function p(v,m,g,S){var _=us(g);if(typeof _!="function")throw Error(O(150));if(g=_.call(g),g==null)throw Error(O(151));for(var E=_=null,k=m,T=m=0,N=null,j=g.next();k!==null&&!j.done;T++,j=g.next()){k.index>T?(N=k,k=null):N=k.sibling;var U=h(v,k,j.value,S);if(U===null){k===null&&(k=N);break}e&&k&&U.alternate===null&&t(v,k),m=s(U,m,T),E===null?_=U:E.sibling=U,E=U,k=N}if(j.done)return n(v,k),ve&&wr(v,T),_;if(k===null){for(;!j.done;T++,j=g.next())j=d(v,j.value,S),j!==null&&(m=s(j,m,T),E===null?_=j:E.sibling=j,E=j);return ve&&wr(v,T),_}for(k=r(v,k);!j.done;T++,j=g.next())j=f(k,v,T,j.value,S),j!==null&&(e&&j.alternate!==null&&k.delete(j.key===null?T:j.key),m=s(j,m,T),E===null?_=j:E.sibling=j,E=j);return e&&k.forEach(function(L){return t(v,L)}),ve&&wr(v,T),_}function w(v,m,g,S){if(typeof g=="object"&&g!==null&&g.type===fo&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Pi:e:{for(var _=g.key,E=m;E!==null;){if(E.key===_){if(_=g.type,_===fo){if(E.tag===7){n(v,E.sibling),m=o(E,g.props.children),m.return=v,v=m;break e}}else if(E.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ln&&kh(_)===E.type){n(v,E.sibling),m=o(E,g.props),m.ref=ps(v,E,g),m.return=v,v=m;break e}n(v,E);break}else t(v,E);E=E.sibling}g.type===fo?(m=Ar(g.props.children,v.mode,S,g.key),m.return=v,v=m):(S=pa(g.type,g.key,g.props,null,v.mode,S),S.ref=ps(v,m,g),S.return=v,v=S)}return i(v);case co:e:{for(E=g.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(v,m.sibling),m=o(m,g.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=hu(g,v.mode,S),m.return=v,v=m}return i(v);case Ln:return E=g._init,w(v,m,E(g._payload),S)}if(bs(g))return x(v,m,g,S);if(us(g))return p(v,m,g,S);Fi(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,g),m.return=v,v=m):(n(v,m),m=fu(g,v.mode,S),m.return=v,v=m),i(v)):n(v,m)}return w}var Wo=jg(!0),Ag=jg(!1),La=lr(null),$a=null,xo=null,Id=null;function Ld(){Id=xo=$a=null}function $d(e){var t=La.current;me(La),e._currentValue=t}function fc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function To(e,t){$a=e,Id=xo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rt=!0),e.firstContext=null)}function _t(e){var t=e._currentValue;if(Id!==e)if(e={context:e,memoizedValue:t,next:null},xo===null){if($a===null)throw Error(O(308));xo=e,$a.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Er=null;function Md(e){Er===null?Er=[e]:Er.push(e)}function Ig(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Md(t)):(n.next=o.next,o.next=n),t.interleaved=n,yn(e,r)}function yn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $n=!1;function Dd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,yn(e,n)}return o=r.interleaved,o===null?(t.next=t,Md(r)):(t.next=o.next,o.next=t),r.interleaved=t,yn(e,n)}function la(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_d(e,n)}}function Ch(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ma(e,t,n,r){var o=e.updateQueue;$n=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==i&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=o.baseState;i=0,c=u=l=null,a=s;do{var h=a.lane,f=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,p=a;switch(h=t,f=n,p.tag){case 1:if(x=p.payload,typeof x=="function"){d=x.call(f,d,h);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=p.payload,h=typeof x=="function"?x.call(f,d,h):x,h==null)break e;d=be({},d,h);break e;case 2:$n=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=f,l=d):c=c.next=f,i|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Mr|=i,e.lanes=i,e.memoizedState=d}}function Th(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(O(191,o));o.call(r)}}}var gi={},tn=lr(gi),Ys=lr(gi),Js=lr(gi);function kr(e){if(e===gi)throw Error(O(174));return e}function Fd(e,t){switch(de(Js,t),de(Ys,e),de(tn,gi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ku(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ku(t,e)}me(tn),de(tn,t)}function Ho(){me(tn),me(Ys),me(Js)}function $g(e){kr(Js.current);var t=kr(tn.current),n=Ku(t,e.type);t!==n&&(de(Ys,e),de(tn,n))}function Ud(e){Ys.current===e&&(me(tn),me(Ys))}var we=lr(0);function Da(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var iu=[];function zd(){for(var e=0;e<iu.length;e++)iu[e]._workInProgressVersionPrimary=null;iu.length=0}var ua=Sn.ReactCurrentDispatcher,au=Sn.ReactCurrentBatchConfig,$r=0,xe=null,je=null,Ie=null,Fa=!1,Ns=!1,Xs=0,Kb=0;function Be(){throw Error(O(321))}function Bd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zt(e[n],t[n]))return!1;return!0}function Wd(e,t,n,r,o,s){if($r=s,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ua.current=e===null||e.memoizedState===null?Yb:Jb,e=n(r,o),Ns){s=0;do{if(Ns=!1,Xs=0,25<=s)throw Error(O(301));s+=1,Ie=je=null,t.updateQueue=null,ua.current=Xb,e=n(r,o)}while(Ns)}if(ua.current=Ua,t=je!==null&&je.next!==null,$r=0,Ie=je=xe=null,Fa=!1,t)throw Error(O(300));return e}function Hd(){var e=Xs!==0;return Xs=0,e}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?xe.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Et(){if(je===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Ie===null?xe.memoizedState:Ie.next;if(t!==null)Ie=t,je=e;else{if(e===null)throw Error(O(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Ie===null?xe.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Zs(e,t){return typeof t=="function"?t(e):t}function lu(e){var t=Et(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=je,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,u=s;do{var c=u.lane;if(($r&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,i=r):l=l.next=d,xe.lanes|=c,Mr|=c}u=u.next}while(u!==null&&u!==s);l===null?i=r:l.next=a,zt(r,t.memoizedState)||(rt=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,xe.lanes|=s,Mr|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function uu(e){var t=Et(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);zt(s,t.memoizedState)||(rt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Mg(){}function Dg(e,t){var n=xe,r=Et(),o=t(),s=!zt(r.memoizedState,o);if(s&&(r.memoizedState=o,rt=!0),r=r.queue,Vd(zg.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,ei(9,Ug.bind(null,n,r,o,t),void 0,null),Le===null)throw Error(O(349));$r&30||Fg(n,t,o)}return o}function Fg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ug(e,t,n,r){t.value=n,t.getSnapshot=r,Bg(t)&&Wg(e)}function zg(e,t,n){return n(function(){Bg(t)&&Wg(e)})}function Bg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function Wg(e){var t=yn(e,1);t!==null&&Ut(t,e,1,-1)}function Ph(e){var t=Kt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zs,lastRenderedState:e},t.queue=e,e=e.dispatch=Qb.bind(null,xe,e),[t.memoizedState,e]}function ei(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Hg(){return Et().memoizedState}function ca(e,t,n,r){var o=Kt();xe.flags|=e,o.memoizedState=ei(1|t,n,void 0,r===void 0?null:r)}function ul(e,t,n,r){var o=Et();r=r===void 0?null:r;var s=void 0;if(je!==null){var i=je.memoizedState;if(s=i.destroy,r!==null&&Bd(r,i.deps)){o.memoizedState=ei(t,n,s,r);return}}xe.flags|=e,o.memoizedState=ei(1|t,n,s,r)}function Rh(e,t){return ca(8390656,8,e,t)}function Vd(e,t){return ul(2048,8,e,t)}function Vg(e,t){return ul(4,2,e,t)}function Kg(e,t){return ul(4,4,e,t)}function qg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gg(e,t,n){return n=n!=null?n.concat([e]):null,ul(4,4,qg.bind(null,t,e),n)}function Kd(){}function Qg(e,t){var n=Et();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yg(e,t){var n=Et();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jg(e,t,n){return $r&21?(zt(n,t)||(n=ng(),xe.lanes|=n,Mr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,rt=!0),e.memoizedState=n)}function qb(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=au.transition;au.transition={};try{e(!1),t()}finally{ae=n,au.transition=r}}function Xg(){return Et().memoizedState}function Gb(e,t,n){var r=er(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zg(e))ev(t,n);else if(n=Ig(e,t,n,r),n!==null){var o=Je();Ut(n,e,r,o),tv(n,t,r)}}function Qb(e,t,n){var r=er(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zg(e))ev(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,zt(a,i)){var l=t.interleaved;l===null?(o.next=o,Md(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Ig(e,t,o,r),n!==null&&(o=Je(),Ut(n,e,r,o),tv(n,t,r))}}function Zg(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function ev(e,t){Ns=Fa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_d(e,n)}}var Ua={readContext:_t,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},Yb={readContext:_t,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:Rh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ca(4194308,4,qg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ca(4194308,4,e,t)},useInsertionEffect:function(e,t){return ca(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gb.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Ph,useDebugValue:Kd,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Ph(!1),t=e[0];return e=qb.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,o=Kt();if(ve){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Le===null)throw Error(O(349));$r&30||Fg(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Rh(zg.bind(null,r,s,e),[e]),r.flags|=2048,ei(9,Ug.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Le.identifierPrefix;if(ve){var n=pn,r=hn;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Kb++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Jb={readContext:_t,useCallback:Qg,useContext:_t,useEffect:Vd,useImperativeHandle:Gg,useInsertionEffect:Vg,useLayoutEffect:Kg,useMemo:Yg,useReducer:lu,useRef:Hg,useState:function(){return lu(Zs)},useDebugValue:Kd,useDeferredValue:function(e){var t=Et();return Jg(t,je.memoizedState,e)},useTransition:function(){var e=lu(Zs)[0],t=Et().memoizedState;return[e,t]},useMutableSource:Mg,useSyncExternalStore:Dg,useId:Xg,unstable_isNewReconciler:!1},Xb={readContext:_t,useCallback:Qg,useContext:_t,useEffect:Vd,useImperativeHandle:Gg,useInsertionEffect:Vg,useLayoutEffect:Kg,useMemo:Yg,useReducer:uu,useRef:Hg,useState:function(){return uu(Zs)},useDebugValue:Kd,useDeferredValue:function(e){var t=Et();return je===null?t.memoizedState=e:Jg(t,je.memoizedState,e)},useTransition:function(){var e=uu(Zs)[0],t=Et().memoizedState;return[e,t]},useMutableSource:Mg,useSyncExternalStore:Dg,useId:Xg,unstable_isNewReconciler:!1};function jt(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var cl={isMounted:function(e){return(e=e._reactInternals)?Wr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Je(),o=er(e),s=mn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Xn(e,s,o),t!==null&&(Ut(t,e,o,r),la(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Je(),o=er(e),s=mn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Xn(e,s,o),t!==null&&(Ut(t,e,o,r),la(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Je(),r=er(e),o=mn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Xn(e,o,r),t!==null&&(Ut(t,e,r,n),la(t,e,r))}};function Oh(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Ks(n,r)||!Ks(o,s):!0}function nv(e,t,n){var r=!1,o=or,s=t.contextType;return typeof s=="object"&&s!==null?s=_t(s):(o=st(t)?Ir:Ke.current,r=t.contextTypes,s=(r=r!=null)?zo(e,o):or),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=cl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Nh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&cl.enqueueReplaceState(t,t.state,null)}function pc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Dd(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=_t(s):(s=st(t)?Ir:Ke.current,o.context=zo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(hc(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&cl.enqueueReplaceState(o,o.state,null),Ma(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Vo(e,t){try{var n="",r=t;do n+=Cx(r),r=r.return;while(r);var o=n}catch(s){o=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:e,source:t,stack:o,digest:null}}function cu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function mc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Zb=typeof WeakMap=="function"?WeakMap:Map;function rv(e,t,n){n=mn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ba||(Ba=!0,kc=r),mc(e,t)},n}function ov(e,t,n){n=mn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){mc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){mc(e,t),typeof r!="function"&&(Zn===null?Zn=new Set([this]):Zn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}
vendor: 10,410 bytes, line 40
40function jh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Zb;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=hS.bind(null,e,t,n),t.then(e,e))}function Ah(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ih(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=mn(-1,1),t.tag=2,Xn(n,t,1))),n.lanes|=1),e)}var eS=Sn.ReactCurrentOwner,rt=!1;function Qe(e,t,n,r){t.child=e===null?Ag(t,null,n,r):Wo(t,e.child,n,r)}function Lh(e,t,n,r,o){n=n.render;var s=t.ref;return To(t,o),r=Wd(e,t,n,r,s,o),n=Hd(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,wn(e,t,o)):(ve&&n&&Nd(t),t.flags|=1,Qe(e,t,r,o),t.child)}function $h(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!ef(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,sv(e,t,s,r,o)):(e=pa(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ks,n(i,r)&&e.ref===t.ref)return wn(e,t,o)}return t.flags|=1,e=tr(s,r),e.ref=t.ref,e.return=t,t.child=e}function sv(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Ks(s,r)&&e.ref===t.ref)if(rt=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(rt=!0);else return t.lanes=e.lanes,wn(e,t,o)}return gc(e,t,n,r,o)}function iv(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(So,at),at|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(So,at),at|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,de(So,at),at|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,de(So,at),at|=r;return Qe(e,t,o,n),t.child}function av(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gc(e,t,n,r,o){var s=st(n)?Ir:Ke.current;return s=zo(t,s),To(t,o),n=Wd(e,t,n,r,s,o),r=Hd(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,wn(e,t,o)):(ve&&r&&Nd(t),t.flags|=1,Qe(e,t,n,o),t.child)}function Mh(e,t,n,r,o){if(st(n)){var s=!0;ja(t)}else s=!1;if(To(t,o),t.stateNode===null)da(e,t),nv(t,n,r),pc(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=_t(u):(u=st(n)?Ir:Ke.current,u=zo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Nh(t,i,r,u),$n=!1;var h=t.memoizedState;i.state=h,Ma(t,r,i,o),l=t.memoizedState,a!==r||h!==l||ot.current||$n?(typeof c=="function"&&(hc(t,n,c,r),l=t.memoizedState),(a=$n||Oh(t,n,a,r,h,l,u))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Lg(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:jt(t.type,a),i.props=u,d=t.pendingProps,h=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=_t(l):(l=st(n)?Ir:Ke.current,l=zo(t,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Nh(t,i,r,l),$n=!1,h=t.memoizedState,i.state=h,Ma(t,r,i,o);var x=t.memoizedState;a!==d||h!==x||ot.current||$n?(typeof f=="function"&&(hc(t,n,f,r),x=t.memoizedState),(u=$n||Oh(t,n,u,r,h,x,l)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,x,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,x,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),i.props=r,i.state=x,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return vc(e,t,n,r,s,o)}function vc(e,t,n,r,o,s){av(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Sh(t,n,!1),wn(e,t,s);r=t.stateNode,eS.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Wo(t,e.child,null,s),t.child=Wo(t,null,a,s)):Qe(e,t,a,s),t.memoizedState=r.state,o&&Sh(t,n,!0),t.child}function lv(e){var t=e.stateNode;t.pendingContext?bh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bh(e,t.context,!1),Fd(e,t.containerInfo)}function Dh(e,t,n,r,o){return Bo(),Ad(o),t.flags|=256,Qe(e,t,n,r),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0};function wc(e){return{baseLanes:e,cachePool:null,transitions:null}}function uv(e,t,n){var r=t.pendingProps,o=we.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),de(we,o&1),e===null)return dc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=hl(i,r,0,null),e=Ar(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=wc(n),t.memoizedState=yc,e):qd(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return tS(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=tr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=tr(a,s):(s=Ar(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?wc(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=yc,r}return s=e.child,e=s.sibling,r=tr(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function qd(e,t){return t=hl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ui(e,t,n,r){return r!==null&&Ad(r),Wo(t,e.child,null,n),e=qd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tS(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=cu(Error(O(422))),Ui(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=hl({mode:"visible",children:r.children},o,0,null),s=Ar(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Wo(t,e.child,null,i),t.child.memoizedState=wc(i),t.memoizedState=yc,s);if(!(t.mode&1))return Ui(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(O(419)),r=cu(s,r,void 0),Ui(e,t,i,r)}if(a=(i&e.childLanes)!==0,rt||a){if(r=Le,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,yn(e,o),Ut(r,e,o,-1))}return Zd(),r=cu(Error(O(421))),Ui(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=pS.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,ut=Jn(o.nextSibling),ct=t,ve=!0,Dt=null,e!==null&&(yt[wt++]=hn,yt[wt++]=pn,yt[wt++]=Lr,hn=e.id,pn=e.overflow,Lr=t),t=qd(t,r.children),t.flags|=4096,t)}function Fh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fc(e.return,t,n)}function du(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function cv(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Qe(e,t,r.children,n),r=we.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fh(e,n,t);else if(e.tag===19)Fh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(we,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Da(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),du(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Da(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}du(t,!0,n,null,s);break;case"together":du(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function da(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Mr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));
vendor: 4,174 bytes, line 40
40if(t.child!==null){for(e=t.child,n=tr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nS(e,t,n){switch(t.tag){case 3:lv(t),Bo();break;case 5:$g(t);break;case 1:st(t.type)&&ja(t);break;case 4:Fd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;de(La,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(we,we.current&1),t.flags|=128,null):n&t.child.childLanes?uv(e,t,n):(de(we,we.current&1),e=wn(e,t,n),e!==null?e.sibling:null);de(we,we.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return cv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),de(we,we.current),r)break;return null;case 22:case 23:return t.lanes=0,iv(e,t,n)}return wn(e,t,n)}var dv,xc,fv,hv;dv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};xc=function(){};fv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,kr(tn.current);var s=null;switch(n){case"input":o=Bu(e,o),r=Bu(e,r),s=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),s=[];break;case"textarea":o=Vu(e,o),r=Vu(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Oa)}qu(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Fs.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Fs.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&pe("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};hv=function(e,t,n,r){n!==r&&(t.flags|=4)};function ms(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function rS(e,t,n){var r=t.pendingProps;switch(jd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return st(t.type)&&Na(),We(t),null;case 3:return r=t.stateNode,Ho(),me(ot),me(Ke),zd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Di(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dt!==null&&(Pc(Dt),Dt=null))),xc(e,t),We(t),null;case 5:Ud(t);var o=kr(Js.current);if(n=t.type,e!==null&&t.stateNode!=null)fv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return We(t),null}if(e=kr(tn.current),Di(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;
vendor: 29,468 bytes, line 40
40switch(r[Jt]=t,r[Qs]=s,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(o=0;o<_s.length;o++)pe(_s[o],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":Gf(r,s),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},pe("invalid",r);break;case"textarea":Yf(r,s),pe("invalid",r)}qu(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Mi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Mi(r.textContent,a,e),o=["children",""+a]):Fs.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&pe("scroll",r)}switch(n){case"input":Ri(r),Qf(r,s,!0);break;case"textarea":Ri(r),Jf(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Oa)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Jt]=t,e[Qs]=r,dv(e,t,!1,!1),t.stateNode=e;e:{switch(i=Gu(n,r),n){case"dialog":pe("cancel",e),pe("close",e),o=r;break;case"iframe":case"object":case"embed":pe("load",e),o=r;break;case"video":case"audio":for(o=0;o<_s.length;o++)pe(_s[o],e);o=r;break;case"source":pe("error",e),o=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),o=r;break;case"details":pe("toggle",e),o=r;break;case"input":Gf(e,r),o=Bu(e,r),pe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=be({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Yf(e,r),o=Vu(e,r),pe("invalid",e);break;default:o=r}qu(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Hm(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Bm(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Us(e,l):typeof l=="number"&&Us(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Fs.hasOwnProperty(s)?l!=null&&s==="onScroll"&&pe("scroll",e):l!=null&&vd(e,s,l,i))}switch(n){case"input":Ri(e),Qf(e,r,!1);break;case"textarea":Ri(e),Jf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+rr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?_o(e,!!r.multiple,s,!1):r.defaultValue!=null&&_o(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Oa)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return We(t),null;case 6:if(e&&t.stateNode!=null)hv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=kr(Js.current),kr(tn.current),Di(t)){if(r=t.stateNode,n=t.memoizedProps,r[Jt]=t,(s=r.nodeValue!==n)&&(e=ct,e!==null))switch(e.tag){case 3:Mi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Jt]=t,t.stateNode=r}return We(t),null;case 13:if(me(we),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&ut!==null&&t.mode&1&&!(t.flags&128))Ng(),Bo(),t.flags|=98560,s=!1;else if(s=Di(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(O(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(O(317));s[Jt]=t}else Bo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),s=!1}else Dt!==null&&(Pc(Dt),Dt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||we.current&1?Ae===0&&(Ae=3):Zd())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return Ho(),xc(e,t),e===null&&qs(t.stateNode.containerInfo),We(t),null;case 10:return $d(t.type._context),We(t),null;case 17:return st(t.type)&&Na(),We(t),null;case 19:if(me(we),s=t.memoizedState,s===null)return We(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)ms(s,!1);else{if(Ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Da(e),i!==null){for(t.flags|=128,ms(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(we,we.current&1|2),t.child}e=e.sibling}s.tail!==null&&Te()>Ko&&(t.flags|=128,r=!0,ms(s,!1),t.lanes=4194304)}else{if(!r)if(e=Da(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ms(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!ve)return We(t),null}else 2*Te()-s.renderingStartTime>Ko&&n!==1073741824&&(t.flags|=128,r=!0,ms(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Te(),t.sibling=null,n=we.current,de(we,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return Xd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?at&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function oS(e,t){switch(jd(t),t.tag){case 1:return st(t.type)&&Na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ho(),me(ot),me(Ke),zd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ud(t),null;case 13:if(me(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Bo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(we),null;case 4:return Ho(),null;case 10:return $d(t.type._context),null;case 22:case 23:return Xd(),null;case 24:return null;default:return null}}var zi=!1,Ve=!1,sS=typeof WeakSet=="function"?WeakSet:Set,D=null;function bo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function bc(e,t,n){try{n()}catch(r){ke(e,t,r)}}var Uh=!1;function iS(e,t){if(oc=Ta,e=yg(),Od(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var f;d!==n||o!==0&&d.nodeType!==3||(a=i+o),d!==s||r!==0&&d.nodeType!==3||(l=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++u===o&&(a=i),h===s&&++c===r&&(l=i),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sc={focusedElem:e,selectionRange:n},Ta=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var p=x.memoizedProps,w=x.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:jt(t.type,p),w);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(S){ke(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return x=Uh,Uh=!1,x}function js(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&bc(t,n,s)}o=o.next}while(o!==r)}}function dl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Sc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function pv(e){var t=e.alternate;t!==null&&(e.alternate=null,pv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[Qs],delete t[lc],delete t[Bb],delete t[Wb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mv(e){return e.tag===5||e.tag===3||e.tag===4}function zh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Oa));else if(r!==4&&(e=e.child,e!==null))for(_c(e,t,n),e=e.sibling;e!==null;)_c(e,t,n),e=e.sibling}function Ec(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ec(e,t,n),e=e.sibling;e!==null;)Ec(e,t,n),e=e.sibling}var $e=null,$t=!1;function Tn(e,t,n){for(n=n.child;n!==null;)gv(e,t,n),n=n.sibling}function gv(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(rl,n)}catch{}switch(n.tag){case 5:Ve||bo(n,t);case 6:var r=$e,o=$t;$e=null,Tn(e,t,n),$e=r,$t=o,$e!==null&&($t?(e=$e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$e.removeChild(n.stateNode));break;case 18:$e!==null&&($t?(e=$e,n=n.stateNode,e.nodeType===8?ou(e.parentNode,n):e.nodeType===1&&ou(e,n),Hs(e)):ou($e,n.stateNode));break;case 4:r=$e,o=$t,$e=n.stateNode.containerInfo,$t=!0,Tn(e,t,n),$e=r,$t=o;break;case 0:case 11:case 14:case 15:if(!Ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&bc(n,t,i),o=o.next}while(o!==r)}Tn(e,t,n);break;case 1:if(!Ve&&(bo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ke(n,t,a)}Tn(e,t,n);break;case 21:Tn(e,t,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,Tn(e,t,n),Ve=r):Tn(e,t,n);break;default:Tn(e,t,n)}}function Bh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sS),t.forEach(function(r){var o=mS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:$e=a.stateNode,$t=!1;break e;case 3:$e=a.stateNode.containerInfo,$t=!0;break e;case 4:$e=a.stateNode.containerInfo,$t=!0;break e}a=a.return}if($e===null)throw Error(O(160));gv(s,i,o),$e=null,$t=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){ke(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vv(t,e),t=t.sibling}function vv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Vt(e),r&4){try{js(3,e,e.return),dl(3,e)}catch(p){ke(e,e.return,p)}try{js(5,e,e.return)}catch(p){ke(e,e.return,p)}}break;case 1:Pt(t,e),Vt(e),r&512&&n!==null&&bo(n,n.return);break;case 5:if(Pt(t,e),Vt(e),r&512&&n!==null&&bo(n,n.return),e.flags&32){var o=e.stateNode;try{Us(o,"")}catch(p){ke(e,e.return,p)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Fm(o,s),Gu(a,i);var u=Gu(a,s);for(i=0;i<l.length;i+=2){var c=l[i],d=l[i+1];c==="style"?Hm(o,d):c==="dangerouslySetInnerHTML"?Bm(o,d):c==="children"?Us(o,d):vd(o,c,d,u)}switch(a){case"input":Wu(o,s);break;case"textarea":Um(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var f=s.value;f!=null?_o(o,!!s.multiple,f,!1):h!==!!s.multiple&&(s.defaultValue!=null?_o(o,!!s.multiple,s.defaultValue,!0):_o(o,!!s.multiple,s.multiple?[]:"",!1))}o[Qs]=s}catch(p){ke(e,e.return,p)}}break;case 6:if(Pt(t,e),Vt(e),r&4){if(e.stateNode===null)throw Error(O(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(p){ke(e,e.return,p)}}break;case 3:if(Pt(t,e),Vt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hs(t.containerInfo)}catch(p){ke(e,e.return,p)}break;case 4:Pt(t,e),Vt(e);break;case 13:Pt(t,e),Vt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Yd=Te())),r&4&&Bh(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ve=(u=Ve)||c,Pt(t,e),Ve=u):Pt(t,e),Vt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(D=e,c=e.child;c!==null;){for(d=D=c;D!==null;){switch(h=D,f=h.child,h.tag){case 0:case 11:case 14:case 15:js(4,h,h.return);break;case 1:bo(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(p){ke(r,n,p)}}break;case 5:bo(h,h.return);break;case 22:if(h.memoizedState!==null){Hh(d);continue}}f!==null?(f.return=h,D=f):Hh(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Wm("display",i))}catch(p){ke(e,e.return,p)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(p){ke(e,e.return,p)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Pt(t,e),Vt(e),r&4&&Bh(e);break;case 21:break;default:Pt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(mv(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Us(o,""),r.flags&=-33);var s=zh(e);Ec(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=zh(e);_c(e,a,i);break;default:throw Error(O(161))}}catch(l){ke(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function aS(e,t,n){D=e,yv(e)}function yv(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var o=D,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||zi;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Ve;a=zi;var u=Ve;if(zi=i,(Ve=l)&&!u)for(D=o;D!==null;)i=D,l=i.child,i.tag===22&&i.memoizedState!==null?Vh(o):l!==null?(l.return=i,D=l):Vh(o);for(;s!==null;)D=s,yv(s),s=s.sibling;D=o,zi=a,Ve=u}Wh(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,D=s):Wh(e)}}function Wh(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ve||dl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ve)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:jt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Th(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Th(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Hs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Ve||t.flags&512&&Sc(t)}catch(h){ke(t,t.return,h)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Hh(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Vh(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{dl(4,t)}catch(l){ke(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){ke(t,o,l)}}var s=t.return;try{Sc(t)}catch(l){ke(t,s,l)}break;case 5:var i=t.return;try{Sc(t)}catch(l){ke(t,i,l)}}}catch(l){ke(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var lS=Math.ceil,za=Sn.ReactCurrentDispatcher,Gd=Sn.ReactCurrentOwner,bt=Sn.ReactCurrentBatchConfig,ne=0,Le=null,Pe=null,Me=0,at=0,So=lr(0),Ae=0,ti=null,Mr=0,fl=0,Qd=0,As=null,tt=null,Yd=0,Ko=1/0,un=null,Ba=!1,kc=null,Zn=null,Bi=!1,Kn=null,Wa=0,Is=0,Cc=null,fa=-1,ha=0;function Je(){return ne&6?Te():fa!==-1?fa:fa=Te()}function er(e){return e.mode&1?ne&2&&Me!==0?Me&-Me:Vb.transition!==null?(ha===0&&(ha=ng()),ha):(e=ae,e!==0||(e=window.event,e=e===void 0?16:ug(e.type)),e):1}function Ut(e,t,n,r){if(50<Is)throw Is=0,Cc=null,Error(O(185));hi(e,n,r),(!(ne&2)||e!==Le)&&(e===Le&&(!(ne&2)&&(fl|=n),Ae===4&&Dn(e,Me)),it(e,r),n===1&&ne===0&&!(t.mode&1)&&(Ko=Te()+500,ll&&ur()))}function it(e,t){var n=e.callbackNode;Vx(e,t);var r=Ca(e,e===Le?Me:0);if(r===0)n!==null&&eh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&eh(n),t===1)e.tag===0?Hb(Kh.bind(null,e)):Pg(Kh.bind(null,e)),Ub(function(){!(ne&6)&&ur()}),n=null;else{switch(rg(r)){case 1:n=Sd;break;case 4:n=eg;break;case 16:n=ka;break;case 536870912:n=tg;break;default:n=ka}n=Cv(n,wv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wv(e,t){if(fa=-1,ha=0,ne&6)throw Error(O(327));var n=e.callbackNode;if(Po()&&e.callbackNode!==n)return null;var r=Ca(e,e===Le?Me:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ha(e,r);else{t=r;var o=ne;ne|=2;var s=bv();(Le!==e||Me!==t)&&(un=null,Ko=Te()+500,jr(e,t));do try{dS();break}catch(a){xv(e,a)}while(!0);Ld(),za.current=s,ne=o,Pe!==null?t=0:(Le=null,Me=0,t=Ae)}if(t!==0){if(t===2&&(o=Zu(e),o!==0&&(r=o,t=Tc(e,o))),t===1)throw n=ti,jr(e,0),Dn(e,r),it(e,Te()),n;if(t===6)Dn(e,r);else{if(o=e.current.alternate,!(r&30)&&!uS(o)&&(t=Ha(e,r),t===2&&(s=Zu(e),s!==0&&(r=s,t=Tc(e,s))),t===1))throw n=ti,jr(e,0),Dn(e,r),it(e,Te()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:xr(e,tt,un);break;case 3:if(Dn(e,r),(r&130023424)===r&&(t=Yd+500-Te(),10<t)){if(Ca(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Je(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ac(xr.bind(null,e,tt,un),t);break}xr(e,tt,un);break;case 4:if(Dn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Ft(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lS(r/1960))-r,10<r){e.timeoutHandle=ac(xr.bind(null,e,tt,un),r);break}xr(e,tt,un);break;case 5:xr(e,tt,un);break;default:throw Error(O(329))}}}return it(e,Te()),e.callbackNode===n?wv.bind(null,e):null}function Tc(e,t){var n=As;return e.current.memoizedState.isDehydrated&&(jr(e,t).flags|=256),e=Ha(e,t),e!==2&&(t=tt,tt=n,t!==null&&Pc(t)),e}function Pc(e){tt===null?tt=e:tt.push.apply(tt,e)}function uS(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!zt(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Dn(e,t){for(t&=~Qd,t&=~fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ft(t),r=1<<n;e[n]=-1,t&=~r}}function Kh(e){if(ne&6)throw Error(O(327));Po();var t=Ca(e,0);if(!(t&1))return it(e,Te()),null;var n=Ha(e,t);if(e.tag!==0&&n===2){var r=Zu(e);r!==0&&(t=r,n=Tc(e,r))}if(n===1)throw n=ti,jr(e,0),Dn(e,t),it(e,Te()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xr(e,tt,un),it(e,Te()),null}function Jd(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(Ko=Te()+500,ll&&ur())}}function Dr(e){Kn!==null&&Kn.tag===0&&!(ne&6)&&Po();var t=ne;ne|=1;var n=bt.transition,r=ae;try{if(bt.transition=null,ae=1,e)return e()}finally{ae=r,bt.transition=n,ne=t,!(ne&6)&&ur()}}function Xd(){at=So.current,me(So)}function jr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Fb(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(jd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Na();break;case 3:Ho(),me(ot),me(Ke),zd();break;case 5:Ud(r);break;case 4:Ho();break;case 13:me(we);break;case 19:me(we);break;case 10:$d(r.type._context);break;case 22:case 23:Xd()}n=n.return}if(Le=e,Pe=e=tr(e.current,null),Me=at=t,Ae=0,ti=null,Qd=fl=Mr=0,tt=As=null,Er!==null){for(t=0;t<Er.length;t++)if(n=Er[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}Er=null}return e}function xv(e,t){do{var n=Pe;try{if(Ld(),ua.current=Ua,Fa){for(var r=xe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Fa=!1}if($r=0,Ie=je=xe=null,Ns=!1,Xs=0,Gd.current=null,n===null||n.return===null){Ae=1,ti=t,Pe=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=Me,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 h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=Ah(i);if(f!==null){f.flags&=-257,Ih(f,i,a,s,t),f.mode&1&&jh(s,u,t),t=f,l=u;var x=t.updateQueue;if(x===null){var p=new Set;p.add(l),t.updateQueue=p}else x.add(l);break e}else{if(!(t&1)){jh(s,u,t),Zd();break e}l=Error(O(426))}}else if(ve&&a.mode&1){var w=Ah(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Ih(w,i,a,s,t),Ad(Vo(l,a));break e}}s=l=Vo(l,a),Ae!==4&&(Ae=2),As===null?As=[s]:As.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=rv(s,l,t);Ch(s,v);break e;case 1:a=l;var m=s.type,g=s.stateNode;if(!(s.flags&128)&&(typeof m.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Zn===null||!Zn.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=ov(s,a,t);Ch(s,S);break e}}s=s.return}while(s!==null)}_v(n)}catch(_){t=_,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function bv(){var e=za.current;return za.current=Ua,e===null?Ua:e}function Zd(){(Ae===0||Ae===3||Ae===2)&&(Ae=4),Le===null||!(Mr&268435455)&&!(fl&268435455)||Dn(Le,Me)}function Ha(e,t){var n=ne;ne|=2;var r=bv();(Le!==e||Me!==t)&&(un=null,jr(e,t));do try{cS();break}catch(o){xv(e,o)}while(!0);if(Ld(),ne=n,za.current=r,Pe!==null)throw Error(O(261));return Le=null,Me=0,Ae}function cS(){for(;Pe!==null;)Sv(Pe)}function dS(){for(;Pe!==null&&!$x();)Sv(Pe)}function Sv(e){var t=kv(e.alternate,e,at);e.memoizedProps=e.pendingProps,t===null?_v(e):Pe=t,Gd.current=null}function _v(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=oS(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ae=6,Pe=null;return}}else if(n=rS(n,t,at),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Ae===0&&(Ae=5)}function xr(e,t,n){var r=ae,o=bt.transition;try{bt.transition=null,ae=1,fS(e,t,n,r)}finally{bt.transition=o,ae=r}return null}function fS(e,t,n,r){do Po();while(Kn!==null);if(ne&6)throw Error(O(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Kx(e,s),e===Le&&(Pe=Le=null,Me=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Bi||(Bi=!0,Cv(ka,function(){return Po(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=bt.transition,bt.transition=null;var i=ae;ae=1;var a=ne;ne|=4,Gd.current=null,iS(e,n),vv(n,e),jb(sc),Ta=!!oc,sc=oc=null,e.current=n,aS(n),Mx(),ne=a,ae=i,bt.transition=s}else e.current=n;if(Bi&&(Bi=!1,Kn=e,Wa=o),s=e.pendingLanes,s===0&&(Zn=null),Ux(n.stateNode),it(e,Te()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ba)throw Ba=!1,e=kc,kc=null,e;return Wa&1&&e.tag!==0&&Po(),s=e.pendingLanes,s&1?e===Cc?Is++:(Is=0,Cc=e):Is=0,ur(),null}function Po(){if(Kn!==null){var e=rg(Wa),t=bt.transition,n=ae;try{if(bt.transition=null,ae=16>e?16:e,Kn===null)var r=!1;else{if(e=Kn,Kn=null,Wa=0,ne&6)throw Error(O(331));var o=ne;for(ne|=4,D=e.current;D!==null;){var s=D,i=s.child;if(D.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:js(8,c,s)}var d=c.child;if(d!==null)d.return=c,D=d;else for(;D!==null;){c=D;var h=c.sibling,f=c.return;if(pv(c),c===u){D=null;break}if(h!==null){h.return=f,D=h;break}D=f}}}var x=s.alternate;if(x!==null){var p=x.child;if(p!==null){x.child=null;do{var w=p.sibling;p.sibling=null,p=w}while(p!==null)}}D=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,D=i;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:js(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,D=v;break e}D=s.return}}var m=e.current;for(D=m;D!==null;){i=D;var g=i.child;if(i.subtreeFlags&2064&&g!==null)g.return=i,D=g;else e:for(i=m;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:dl(9,a)}}catch(_){ke(a,a.return,_)}if(a===i){D=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,D=S;break e}D=a.return}}if(ne=o,ur(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(rl,e)}catch{}r=!0}return r}finally{ae=n,bt.transition=t}}return!1}function qh(e,t,n){t=Vo(n,t),t=rv(e,t,1),e=Xn(e,t,1),t=Je(),e!==null&&(hi(e,1,t),it(e,t))}function ke(e,t,n){if(e.tag===3)qh(e,e,n);else for(;t!==null;){if(t.tag===3){qh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Zn===null||!Zn.has(r))){e=Vo(n,e),e=ov(t,e,1),t=Xn(t,e,1),e=Je(),t!==null&&(hi(t,1,e),it(t,e));break}}t=t.return}}function hS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Me&n)===n&&(Ae===4||Ae===3&&(Me&130023424)===Me&&500>Te()-Yd?jr(e,0):Qd|=n),it(e,t)}function Ev(e,t){t===0&&(e.mode&1?(t=ji,ji<<=1,!(ji&130023424)&&(ji=4194304)):t=1);var n=Je();e=yn(e,t),e!==null&&(hi(e,t,n),it(e,n))}function pS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ev(e,n)}function mS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),Ev(e,n)}var kv;kv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rt=!1,nS(e,t,n);rt=!!(e.flags&131072)}else rt=!1,ve&&t.flags&1048576&&Rg(t,Ia,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;da(e,t),e=t.pendingProps;var o=zo(t,Ke.current);To(t,n),o=Wd(null,t,r,e,o,n);var s=Hd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,st(r)?(s=!0,ja(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Dd(t),o.updater=cl,t.stateNode=o,o._reactInternals=t,pc(t,r,e,n),t=vc(null,t,r,!0,s,n)):(t.tag=0,ve&&s&&Nd(t),Qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(da(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=vS(r),e=jt(r,e),o){case 0:t=gc(null,t,r,e,n);break e;case 1:t=Mh(null,t,r,e,n);break e;case 11:t=Lh(null,t,r,e,n);break e;case 14:t=$h(null,t,r,jt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),gc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Mh(e,t,r,o,n);case 3:e:{if(lv(t),e===null)throw Error(O(387));
vendor: 12,436 bytes, line 40
40r=t.pendingProps,s=t.memoizedState,o=s.element,Lg(e,t),Ma(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Vo(Error(O(423)),t),t=Dh(e,t,r,n,o);break e}else if(r!==o){o=Vo(Error(O(424)),t),t=Dh(e,t,r,n,o);break e}else for(ut=Jn(t.stateNode.containerInfo.firstChild),ct=t,ve=!0,Dt=null,n=Ag(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bo(),r===o){t=wn(e,t,n);break e}Qe(e,t,r,n)}t=t.child}return t;case 5:return $g(t),e===null&&dc(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,ic(r,o)?i=null:s!==null&&ic(r,s)&&(t.flags|=32),av(e,t),Qe(e,t,i,n),t.child;case 6:return e===null&&dc(t),null;case 13:return uv(e,t,n);case 4:return Fd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wo(t,null,r,n):Qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Lh(e,t,r,o,n);case 7:return Qe(e,t,t.pendingProps,n),t.child;case 8:return Qe(e,t,t.pendingProps.children,n),t.child;case 12:return Qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,de(La,r._currentValue),r._currentValue=i,s!==null)if(zt(s.value,i)){if(s.children===o.children&&!ot.current){t=wn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=mn(-1,n&-n),l.tag=2;var u=s.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}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),fc(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(O(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),fc(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,To(t,n),o=_t(o),r=r(o),t.flags|=1,Qe(e,t,r,n),t.child;case 14:return r=t.type,o=jt(r,t.pendingProps),o=jt(r.type,o),$h(e,t,r,o,n);case 15:return sv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),da(e,t),t.tag=1,st(r)?(e=!0,ja(t)):e=!1,To(t,n),nv(t,r,o),pc(t,r,o,n),vc(null,t,r,!0,e,n);case 19:return cv(e,t,n);case 22:return iv(e,t,n)}throw Error(O(156,t.tag))};function Cv(e,t){return Zm(e,t)}function gS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,n,r){return new gS(e,t,n,r)}function ef(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vS(e){if(typeof e=="function")return ef(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wd)return 11;if(e===xd)return 14}return 2}function tr(e,t){var n=e.alternate;return n===null?(n=xt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function pa(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")ef(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case fo:return Ar(n.children,o,s,t);case yd:i=8,o|=8;break;case Du:return e=xt(12,n,t,o|2),e.elementType=Du,e.lanes=s,e;case Fu:return e=xt(13,n,t,o),e.elementType=Fu,e.lanes=s,e;case Uu:return e=xt(19,n,t,o),e.elementType=Uu,e.lanes=s,e;case $m:return hl(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Im:i=10;break e;case Lm:i=9;break e;case wd:i=11;break e;case xd:i=14;break e;case Ln:i=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=xt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Ar(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function hl(e,t,n,r){return e=xt(22,e,r,t),e.elementType=$m,e.lanes=n,e.stateNode={isHidden:!1},e}function fu(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function hu(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ql(0),this.expirationTimes=ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ql(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function tf(e,t,n,r,o,s,i,a,l){return e=new yS(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=xt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dd(s),e}function wS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:co,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Tv(e){if(!e)return or;e=e._reactInternals;e:{if(Wr(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(st(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(st(n))return Tg(e,n,t)}return t}function Pv(e,t,n,r,o,s,i,a,l){return e=tf(n,r,!0,e,o,s,i,a,l),e.context=Tv(null),n=e.current,r=Je(),o=er(n),s=mn(r,o),s.callback=t??null,Xn(n,s,o),e.current.lanes=o,hi(e,o,r),it(e,r),e}function pl(e,t,n,r){var o=t.current,s=Je(),i=er(o);return n=Tv(n),t.context===null?t.context=n:t.pendingContext=n,t=mn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Xn(o,t,i),e!==null&&(Ut(e,o,i,s),la(e,o,i)),i}function Va(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function nf(e,t){Gh(e,t),(e=e.alternate)&&Gh(e,t)}function xS(){return null}var Rv=typeof reportError=="function"?reportError:function(e){console.error(e)};function rf(e){this._internalRoot=e}ml.prototype.render=rf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));pl(e,t,null,null)};ml.prototype.unmount=rf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dr(function(){pl(null,e,null,null)}),t[vn]=null}};function ml(e){this._internalRoot=e}ml.prototype.unstable_scheduleHydration=function(e){if(e){var t=ig();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mn.length&&t!==0&&t<Mn[n].priority;n++);Mn.splice(n,0,e),n===0&&lg(e)}};function of(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function gl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qh(){}function bS(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=Va(i);s.call(u)}}var i=Pv(t,r,e,0,null,!1,!1,"",Qh);return e._reactRootContainer=i,e[vn]=i.current,qs(e.nodeType===8?e.parentNode:e),Dr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Va(l);a.call(u)}}var l=tf(e,0,!1,null,null,!1,!1,"",Qh);return e._reactRootContainer=l,e[vn]=l.current,qs(e.nodeType===8?e.parentNode:e),Dr(function(){pl(t,l,n,r)}),l}function vl(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=Va(i);a.call(l)}}pl(t,i,e,o)}else i=bS(n,t,e,o,r);return Va(i)}og=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ss(t.pendingLanes);n!==0&&(_d(t,n|1),it(t,Te()),!(ne&6)&&(Ko=Te()+500,ur()))}break;case 13:Dr(function(){var r=yn(e,1);if(r!==null){var o=Je();Ut(r,e,1,o)}}),nf(e,1)}};Ed=function(e){if(e.tag===13){var t=yn(e,134217728);if(t!==null){var n=Je();Ut(t,e,134217728,n)}nf(e,134217728)}};sg=function(e){if(e.tag===13){var t=er(e),n=yn(e,t);if(n!==null){var r=Je();Ut(n,e,t,r)}nf(e,t)}};ig=function(){return ae};ag=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Yu=function(e,t,n){switch(t){case"input":if(Wu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=al(r);if(!o)throw Error(O(90));Dm(r),Wu(r,o)}}}break;case"textarea":Um(e,n);break;case"select":t=n.value,t!=null&&_o(e,!!n.multiple,t,!1)}};qm=Jd;Gm=Dr;var SS={usingClientEntryPoint:!1,Events:[mi,go,al,Vm,Km,Jd]},gs={findFiberByHostInstance:_r,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_S={bundleType:gs.bundleType,version:gs.version,rendererPackageName:gs.rendererPackageName,rendererConfig:gs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Sn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Jm(e),e===null?null:e.stateNode},findFiberByHostInstance:gs.findFiberByHostInstance||xS,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 Wi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wi.isDisabled&&Wi.supportsFiber)try{rl=Wi.inject(_S),en=Wi}catch{}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SS;ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!of(t))throw Error(O(200));return wS(e,t,null,n)};ht.createRoot=function(e,t){if(!of(e))throw Error(O(299));var n=!1,r="",o=Rv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=tf(e,1,!1,null,null,n,!1,r,o),e[vn]=t.current,qs(e.nodeType===8?e.parentNode:e),new rf(t)};ht.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=Jm(t),e=e===null?null:e.stateNode,e};ht.flushSync=function(e){return Dr(e)};ht.hydrate=function(e,t,n){if(!gl(t))throw Error(O(200));return vl(null,e,t,!0,n)};ht.hydrateRoot=function(e,t,n){if(!of(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=Rv;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Pv(t,null,e,1,n??null,o,!1,s,i),e[vn]=t.current,qs(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ml(t)};ht.render=function(e,t,n){if(!gl(t))throw Error(O(200));return vl(null,e,t,!1,n)};ht.unmountComponentAtNode=function(e){if(!gl(e))throw Error(O(40));return e._reactRootContainer?(Dr(function(){vl(null,null,e,!1,function(){e._reactRootContainer=null,e[vn]=null})}),!0):!1};ht.unstable_batchedUpdates=Jd;ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!gl(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return vl(e,t,n,!1,r)};
40ht.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(e){console.error(e)}}Ov(),Om.exports=ht;var Hr=Om.exports;const Nv=ym(Hr);var jv,Yh=Hr;jv=Yh.createRoot,Yh.hydrateRoot;const ES=1,kS=1e6;let pu=0;function CS(){return pu=(pu+1)%Number.MAX_SAFE_INTEGER,pu.toString()}const mu=new Map,Jh=e=>{if(mu.has(e))return;const t=setTimeout(()=>{mu.delete(e),Ls({type:"REMOVE_TOAST",toastId:e})},kS);mu.set(e,t)},TS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ES)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Jh(n):e.toasts.forEach(r=>{Jh(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ma=[];let ga={toasts:[]};function Ls(e){ga=TS(ga,e),ma.forEach(t=>{t(ga)})}function PS({...e}){const t=CS(),n=o=>Ls({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Ls({type:"DISMISS_TOAST",toastId:t});return Ls({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Av(){const[e,t]=y.useState(ga);return y.useEffect(()=>(ma.push(t),()=>{const n=ma.indexOf(t);n>-1&&ma.splice(n,1)}),[e]),{...e,toast:PS,dismiss:n=>Ls({type:"DISMISS_TOAST",toastId:n})}}function ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Xh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Iv(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Xh(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Xh(e[o],null)}}}}function Ce(...e){return y.useCallback(Iv(...e),e)}function vi(e,t=[]){let n=[];function r(s,i){const a=y.createContext(i),l=n.length;n=[...n,i];const u=d=>{var v;const{scope:h,children:f,...x}=d,p=((v=h==null?void 0:h[e])==null?void 0:v[l])||a,w=y.useMemo(()=>x,Object.values(x));return b.jsx(p.Provider,{value:w,children:f})};u.displayName=s+"Provider";function c(d,h){var p;const f=((p=h==null?void 0:h[e])==null?void 0:p[l])||a,x=y.useContext(f);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,c]}const o=()=>{const s=n.map(i=>y.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,RS(o,...t)]}function RS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ni(e){const t=NS(e),n=y.forwardRef((r,o)=>{const{children:s,...i}=r,a=y.Children.toArray(s),l=a.find(AS);if(l){const u=l.props.children,c=a.map(d=>d===l?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return b.jsx(t,{...i,ref:o,children:y.isValidElement(u)?y.cloneElement(u,void 0,c):null})}return b.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var OS=ni("Slot");function NS(e){const t=y.forwardRef((n,r)=>{const{children:o,...s}=n;if(y.isValidElement(o)){const i=LS(o),a=IS(s,o.props);return o.type!==y.Fragment&&(a.ref=r?Iv(r,i):i),y.cloneElement(o,a)}return y.Children.count(o)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lv=Symbol("radix.slottable");function jS(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Lv,t}function AS(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lv}function IS(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}
vendor: 8,801 bytes, line 40
40:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function LS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function $v(e){const t=e+"CollectionProvider",[n,r]=vi(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:w,children:v}=p,m=A.useRef(null),g=A.useRef(new Map).current;return b.jsx(o,{scope:w,itemMap:g,collectionRef:m,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=ni(a),u=A.forwardRef((p,w)=>{const{scope:v,children:m}=p,g=s(a,v),S=Ce(w,g.collectionRef);return b.jsx(l,{ref:S,children:m})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",h=ni(c),f=A.forwardRef((p,w)=>{const{scope:v,children:m,...g}=p,S=A.useRef(null),_=Ce(w,S),E=s(c,v);return A.useEffect(()=>(E.itemMap.set(S,{ref:S,...g}),()=>void E.itemMap.delete(S))),b.jsx(h,{[d]:"",ref:_,children:m})});f.displayName=c;function x(p){const w=s(e+"CollectionConsumer",p);return A.useCallback(()=>{const m=w.collectionRef.current;if(!m)return[];const g=Array.from(m.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((E,k)=>g.indexOf(E.ref.current)-g.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},x,r]}var $S=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=$S.reduce((e,t)=>{const n=ni(`Primitive.${t}`),r=y.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Mv(e,t){e&&Hr.flushSync(()=>e.dispatchEvent(t))}function Bt(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function MS(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e);y.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var DS="DismissableLayer",Rc="dismissableLayer.update",FS="dismissableLayer.pointerDownOutside",US="dismissableLayer.focusOutside",Zh,Dv=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yl=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=y.useContext(Dv),[c,d]=y.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=y.useState({}),x=Ce(t,k=>d(k)),p=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(w),m=c?p.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,S=m>=v,_=BS(k=>{const T=k.target,N=[...u.branches].some(j=>j.contains(T));!S||N||(o==null||o(k),i==null||i(k),k.defaultPrevented||a==null||a())},h),E=WS(k=>{const T=k.target;[...u.branches].some(j=>j.contains(T))||(s==null||s(k),i==null||i(k),k.defaultPrevented||a==null||a())},h);return MS(k=>{m===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},h),y.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Zh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),ep(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Zh)}},[c,h,n,u]),y.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),ep())},[c,u]),y.useEffect(()=>{const k=()=>f({});return document.addEventListener(Rc,k),()=>document.removeEventListener(Rc,k)},[]),b.jsx(le.div,{...l,ref:x,style:{pointerEvents:g?S?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,_.onPointerDownCapture)})});yl.displayName=DS;var zS="DismissableLayerBranch",Fv=y.forwardRef((e,t)=>{const n=y.useContext(Dv),r=y.useRef(null),o=Ce(t,r);return y.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),b.jsx(le.div,{...e,ref:o})});Fv.displayName=zS;function BS(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e),r=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Uv(FS,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function WS(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e),r=y.useRef(!1);return y.useEffect(()=>{const o=s=>{s.target&&!r.current&&Uv(US,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ep(){const e=new CustomEvent(Rc);document.dispatchEvent(e)}function Uv(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mv(o,s):o.dispatchEvent(s)}var HS=yl,VS=Fv,Fe=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},KS="Portal",sf=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=y.useState(!1);Fe(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Nv.createPortal(b.jsx(le.div,{...r,ref:t}),i):null});sf.displayName=KS;function qS(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var af=e=>{const{present:t,children:n}=e,r=GS(t),o=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),s=Ce(r.ref,QS(o));return typeof n=="function"||r.isPresent?y.cloneElement(o,{ref:s}):null};af.displayName="Presence";function GS(e){const[t,n]=y.useState(),r=y.useRef(null),o=y.useRef(e),s=y.useRef("none"),i=e?"mounted":"unmounted",[a,l]=qS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=Hi(r.current);s.current=a==="mounted"?u:"none"},[a]),Fe(()=>{const u=r.current,c=o.current;if(c!==e){const h=s.current,f=Hi(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Fe(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=f=>{const p=Hi(r.current).includes(f.animationName);if(f.target===t&&p&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=f=>{f.target===t&&(s.current=Hi(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Hi(e){return(e==null?void 0:e.animationName)||"none"}function QS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var YS=pd[" useInsertionEffect ".trim().toString()]||Fe;function Oc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=JS({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=y.useRef(e!==void 0);y.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=y.useCallback(c=>{var d;if(a){const h=XS(c)?c(e):c;h!==e&&((d=i.current)==null||d.call(i,h))}else s(c)}
40,[a,e,s,i]);return[l,u]}function JS({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),o=y.useRef(n),s=y.useRef(t);return YS(()=>{s.current=t},[t]),y.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function XS(e){return typeof e=="function"}var zv=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"}),ZS="VisuallyHidden",wl=y.forwardRef((e,t)=>b.jsx(le.span,{...e,ref:t,style:{...zv,...e.style}}));wl.displayName=ZS;var e1=wl,lf="ToastProvider",[uf,t1,n1]=$v("Toast"),[Bv,oN]=vi("Toast",[n1]),[r1,xl]=Bv(lf),Wv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=y.useState(null),[u,c]=y.useState(0),d=y.useRef(!1),h=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${lf}\`. Expected non-empty \`string\`.`),b.jsx(uf.Provider,{scope:t,children:b.jsx(r1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>c(f=>f+1),[]),onToastRemove:y.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:i})})};Wv.displayName=lf;var Hv="ToastViewport",o1=["F8"],Nc="toast.viewportPause",jc="toast.viewportResume",Vv=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=o1,label:o="Notifications ({hotkey})",...s}=e,i=xl(Hv,n),a=t1(n),l=y.useRef(null),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),h=Ce(t,d,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=i.toastCount>0;y.useEffect(()=>{const w=v=>{var g;r.length!==0&&r.every(S=>v[S]||v.code===S)&&((g=d.current)==null||g.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),y.useEffect(()=>{const w=l.current,v=d.current;if(x&&w&&v){const m=()=>{if(!i.isClosePausedRef.current){const E=new CustomEvent(Nc);v.dispatchEvent(E),i.isClosePausedRef.current=!0}},g=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(jc);v.dispatchEvent(E),i.isClosePausedRef.current=!1}},S=E=>{!w.contains(E.relatedTarget)&&g()},_=()=>{w.contains(document.activeElement)||g()};return w.addEventListener("focusin",m),w.addEventListener("focusout",S),w.addEventListener("pointermove",m),w.addEventListener("pointerleave",_),window.addEventListener("blur",m),window.addEventListener("focus",g),()=>{w.removeEventListener("focusin",m),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",m),w.removeEventListener("pointerleave",_),window.removeEventListener("blur",m),window.removeEventListener("focus",g)}}},[x,i.isClosePausedRef]);const p=y.useCallback(({tabbingDirection:w})=>{const m=a().map(g=>{const S=g.ref.current,_=[S,...v1(S)];return w==="forwards"?_:_.reverse()});return(w==="forwards"?m.reverse():m).flat()},[a]);return y.useEffect(()=>{const w=d.current;if(w){const v=m=>{var _,E,k;const g=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!g){const T=document.activeElement,N=m.shiftKey;if(m.target===w&&N){(_=u.current)==null||_.focus();return}const L=p({tabbingDirection:N?"backwards":"forwards"}),W=L.findIndex(I=>I===T);gu(L.slice(W+1))?m.preventDefault():N?(E=u.current)==null||E.focus():(k=c.current)==null||k.focus()}};return w.addEventListener("keydown",v),()=>w.removeEventListener("keydown",v)}},[a,p]),b.jsxs(VS,{ref:l,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&b.jsx(Ac,{ref:u,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"forwards"});gu(w)}}),b.jsx(uf.Slot,{scope:n,children:b.jsx(le.ol,{tabIndex:-1,...s,ref:h})}),x&&b.jsx(Ac,{ref:c,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"backwards"});gu(w)}})]})});Vv.displayName=Hv;var Kv="ToastFocusProxy",Ac=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=xl(Kv,n);return b.jsx(wl,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});Ac.displayName=Kv;var yi="Toast",s1="toast.swipeStart",i1="toast.swipeMove",a1="toast.swipeCancel",l1="toast.swipeEnd",qv=y.forwardRef((e,t)=>
40{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=Oc({prop:r,defaultProp:o??!0,onChange:s,caller:yi});return b.jsx(af,{present:n||a,children:b.jsx(d1,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:Bt(e.onPause),onResume:Bt(e.onResume),onSwipeStart:ee(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ee(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ee(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ee(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});qv.displayName=yi;var[u1,c1]=Bv(yi,{onClose(){}}),d1=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,...x}=e,p=xl(yi,n),[w,v]=y.useState(null),m=Ce(t,I=>v(I)),g=y.useRef(null),S=y.useRef(null),_=o||p.duration,E=y.useRef(0),k=y.useRef(_),T=y.useRef(0),{onToastAdd:N,onToastRemove:j}=p,U=Bt(()=>{var V;(w==null?void 0:w.contains(document.activeElement))&&((V=p.viewport)==null||V.focus()),i()}),L=y.useCallback(I=>{!I||I===1/0||(window.clearTimeout(T.current),E.current=new Date().getTime(),T.current=window.setTimeout(U,I))},[U]);y.useEffect(()=>{const I=p.viewport;if(I){const V=()=>{L(k.current),u==null||u()},F=()=>{const B=new Date().getTime()-E.current;k.current=k.current-B,window.clearTimeout(T.current),l==null||l()};return I.addEventListener(Nc,F),I.addEventListener(jc,V),()=>{I.removeEventListener(Nc,F),I.removeEventListener(jc,V)}}},[p.viewport,_,l,u,L]),y.useEffect(()=>{s&&!p.isClosePausedRef.current&&L(_)},[s,_,p.isClosePausedRef,L]),y.useEffect(()=>(N(),()=>j()),[N,j]);const W=y.useMemo(()=>w?ey(w):null,[w]);return p.viewport?b.jsxs(b.Fragment,{children:[W&&b.jsx(f1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),b.jsx(u1,{scope:n,onClose:U,children:Hr.createPortal(b.jsx(uf.ItemSlot,{scope:n,children:b.jsx(HS,{asChild:!0,onEscapeKeyDown:ee(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||U(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(le.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":p.swipeDirection,...x,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ee(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:ee(e.onPointerDown,I=>{I.button===0&&(g.current={x:I.clientX,y:I.clientY})}),onPointerMove:ee(e.onPointerMove,I=>{if(!g.current)return;const V=I.clientX-g.current.x,F=I.clientY-g.current.y,B=!!S.current,C=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,$=C?R(0,V):0,H=C?0:R(0,F),z=I.pointerType==="touch"?10:2,Y={x:$,y:H},K={originalEvent:I,delta:Y};B?(S.current=Y,Vi(i1,d,K,{discrete:!1})):tp(Y,p.swipeDirection,z)?(S.current=Y,Vi(s1,c,K,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(V)>z||Math.abs(F)>z)&&(g.current=null)}),onPointerUp:ee(e.onPointerUp,I=>{const V=S.current,F=I.target;if(F.hasPointerCapture(I.pointerId)&&F.releasePointerCapture(I.pointerId),S.current=null,g.current=null,V){const B=I.currentTarget,C={originalEvent:I,delta:V};tp(V,p.swipeDirection,p.swipeThreshold)?Vi(l1,f,C,{discrete:!0}):Vi(a1,h,C,{discrete:!0}),B.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),f1=e=>{const{__scopeToast:t,children:n,...r}=e,o=xl(yi,t),[s,i]=y.useState(!1),[a,l]=y.useState(!1);return m1(()=>i(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:b.jsx(sf,{asChild:!0,children:b.jsx(wl,{...r,children:s&&b.jsxs(b.Fragment,{children:[o.label," ",n]})})})},h1="ToastTitle",Gv=y.forwardRef((e,t)=>
vendor: 6,487 bytes, lines 40-90
40{const{__scopeToast:n,...r}=e;return b.jsx(le.div,{...r,ref:t})});Gv.displayName=h1;var p1="ToastDescription",Qv=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(le.div,{...r,ref:t})});Qv.displayName=p1;var Yv="ToastAction",Jv=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?b.jsx(Zv,{altText:n,asChild:!0,children:b.jsx(cf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Yv}\`. Expected non-empty \`string\`.`),null)});Jv.displayName=Yv;var Xv="ToastClose",cf=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=c1(Xv,n);return b.jsx(Zv,{asChild:!0,children:b.jsx(le.button,{type:"button",...r,ref:t,onClick:ee(e.onClick,o.onClose)})})});cf.displayName=Xv;var Zv=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return b.jsx(le.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function ey(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),g1(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...ey(r))}}),t}function Vi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mv(o,s):o.dispatchEvent(s)}var tp=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function m1(e=()=>{}){const t=Bt(e);Fe(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function g1(e){return e.nodeType===e.ELEMENT_NODE}function v1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var y1=Wv,ty=Vv,ny=qv,ry=Gv,oy=Qv,sy=Jv,iy=cf;function ay(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ay(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ly(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ay(e))&&(r&&(r+=" "),r+=t);return r}const np=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rp=ly,df=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return rp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=s==null?void 0:s[u];if(c===null)return null;const h=np(c)||np(d);return o[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,h]=c;return h===void 0||(u[d]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:h,...f}=c;return Object.entries(f).every(x=>{let[p,w]=x;return Array.isArray(w)?w.includes({...s,...a}[p]):{...s,...a}[p]===w})?[...u,d,h]:u},[]);return rp(e,i,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 w1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===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 x1={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 b1=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>y.createElement("svg",{ref:l,...x1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:uy("lucide",o),...a},[...i.map(([u,c])=>y.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
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 Zo=(e,t)=>{const n=y.forwardRef(({className:r,...o},s)=>y.createElement(b1,{ref:s,iconNode:t,className:uy(`lucide-${w1(e)}`,r),...o}));return n.displayName=`${e}`,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 S1=Zo("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 cy=Zo("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 _1=Zo("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
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 E1=Zo("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
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 k1=Zo("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
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 C1=Zo("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,906 bytes, line 90
90],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ff="-",T1=e=>{const t=R1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(ff);return a[0]===""&&a.length!==1&&a.shift(),dy(a,t)||P1(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},dy=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?dy(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(ff);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},op=/^\[(.+)\]$/,P1=e=>{if(op.test(e)){const t=op.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},R1=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return N1(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ic(i,r,s,t)}),r},Ic=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:sp(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(O1(o)){Ic(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ic(i,sp(t,s),n,r)})})},sp=(e,t)=>{let n=e;return t.split(ff).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},O1=e=>e.isThemeGetter,N1=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,j1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},fy="!",A1=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let u=0,c=0,d;for(let w=0;w<a.length;w++){let v=a[w];if(u===0){if(v===o&&(r||a.slice(w,w+s)===t)){l.push(a.slice(c,w)),c=w+s;continue}if(v==="/"){d=w;continue}}v==="["?u++:v==="]"&&u--}const h=l.length===0?a:a.substring(c),f=h.startsWith(fy),x=f?h.substring(1):h,p=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:i}):i},I1=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},L1=e=>({cache:j1(e.cacheSize),parseClassName:A1(e),...T1(e)}),$1=/\s+/,M1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split($1);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(u);let x=!!f,p=r(x?h.substring(0,f):h);if(!p){if(!x){a=u+(a.length>0?" "+a:a);continue}if(p=r(h),!p){a=u+(a.length>0?" "+a:a);continue}x=!1}const w=I1(c).join(":"),v=d?w+fy:w,m=v+p;if(s.includes(m))continue;s.push(m);const g=o(p,x);for(let S=0;S<g.length;++S){const _=g[S];s.push(v+_)}a=u+(a.length>0?" "+a:a)}return a};function D1(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=hy(t))&&(r&&(r+=" "),r+=n);return r}const hy=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=hy(e[r]))&&(n&&(n+=" "),n+=t);return n};function F1(e,...t){let n,r,o,s=i;function i(l){const u=t.reduce((c,d)=>d(c),e());return n=L1(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=M1(l,n);return o(l,c),c}return function(){return s(D1.apply(null,arguments))}}const he=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},py=/^\[(?:([a-z-]+):)?(.+)\]$/i,U1=/^\d+\/\d+$/,z1=new Set(["px","full","screen"]),B1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,W1=/\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$/,H1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,V1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sn=e=>Ro(e)||z1.has(e)||U1.test(e),Pn=e=>es(e,"length",e_),Ro=e=>!!e&&!Number.isNaN(Number(e)),vu=e=>es(e,"number",Ro),vs=e=>!!e&&Number.isInteger(Number(e)),q1=e=>e.endsWith("%")&&Ro(e.slice(0,-1)),J=e=>py.test(e),Rn=e=>B1.test(e),G1=new Set(["length","size","percentage"]),Q1=e=>es(e,G1,my),Y1=e=>es(e,"position",my),J1=new Set(["image","url"]),X1=e=>es(e,J1,n_),Z1=e=>es(e,"",t_),ys=()=>!0,es=(e,t,n)=>{const r=py.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},e_=e=>W1.test(e)&&!H1.test(e),my=()=>!1,t_=e=>V1.test(e),n_=e=>K1.test(e),r_=()=>{const e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),o=he("borderColor"),s=he("borderRadius"),i=he("borderSpacing"),a=he("borderWidth"),l=he("contrast"),u=he("grayscale"),c=he("hueRotate"),d=he("invert"),h=he("gap"),f=he("gradientColorStops"),x=he("gradientColorStopPositions"),p=he("inset"),w=he("margin"),v=he("opacity"),m=he("padding"),g=he("saturate"),S=he("scale"),_=he("sepia"),E=he("skew"),k=he("space"),T=he("translate"),N=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",J,t],L=()=>[J,t],W=()=>["",sn,Pn],I=()=>["auto",Ro,J],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",J],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Ro,J];return{cacheSize:500,separator:":",theme:{colors:[ys],spacing:[sn,Pn],blur:["none","",Rn,J],brightness:H(),borderColor:[e],borderRadius:["n
90one","","full",Rn,J],borderSpacing:L(),borderWidth:W(),contrast:H(),grayscale:R(),hueRotate:H(),invert:R(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[q1,Pn],inset:U(),margin:U(),opacity:H(),padding:L(),saturate:H(),scale:H(),sepia:R(),skew:H(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[Rn]}],"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:[...V(),J]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",vs,J]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",vs,J]}],"grid-cols":[{"grid-cols":[ys]}],"col-start-end":[{col:["auto",{span:["full",vs,J]},J]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[ys]}],"row-start-end":[{row:["auto",{span:[vs,J]},J]}],"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",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[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",J,t]}],"min-w":[{"min-w":[J,t,"min","max","fit"]}],"max-w":[{"max-w":[J,t,"none","full","min","max","fit","prose",{screen:[Rn]},Rn]}],h:[{h:[J,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rn,Pn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vu]}],"font-family":[{font:[ys]}],"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",J]}],"line-clamp":[{"line-clamp":["none",Ro,vu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",sn,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",sn,Pn]}],"underline-offset":[{"underline-offset":["auto",sn,J]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J]}],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",J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),Y1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Q1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},X1]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}
vendor: 5,172 bytes, line 90
90],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...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":[v]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[sn,J]}],"outline-w":[{outline:[sn,Pn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[sn,Pn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rn,Z1]}],"shadow-color":[{shadow:[ys]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Rn,J]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[vs,J]}],"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",J]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J]}],"caret-color":[{caret:[e]}],"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"]}
vendor: 4,646 bytes, line 90
90],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",J]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[sn,Pn,vu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},o_=F1(r_);function ye(...e){return o_(ly(e))}const s_=y1,gy=y.forwardRef(({className:e,...t},n)=>b.jsx(ty,{ref:n,className:ye("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));gy.displayName=ty.displayName;const i_=df("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"}}),vy=y.forwardRef(({className:e,variant:t,...n},r)=>b.jsx(ny,{ref:r,className:ye(i_({variant:t}),e),...n}));vy.displayName=ny.displayName;const a_=y.forwardRef(({className:e,...t},n)=>b.jsx(sy,{ref:n,className:ye("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));a_.displayName=sy.displayName;const yy=y.forwardRef(({className:e,...t},n)=>b.jsx(iy,{ref:n,className:ye("absolute right-2 top-2 rounded-md p-1 text-foreground
90/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:b.jsx(C1,{className:"h-4 w-4"})}));yy.displayName=iy.displayName;const wy=y.forwardRef(({className:e,...t},n)=>b.jsx(ry,{ref:n,className:ye("text-sm font-semibold",e),...t}));wy.displayName=ry.displayName;const xy=y.forwardRef(({className:e,...t},n)=>b.jsx(oy,{ref:n,className:ye("text-sm opacity-90",e),...t}));xy.displayName=oy.displayName;function l_(){const{toasts:e}=Av();return b.jsxs(s_,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return b.jsxs(vy,{...s,children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(wy,{children:n}),r&&b.jsx(xy,{children:r})]}),o,b.jsx(yy,{})]},t)}),b.jsx(gy,{})]})}var ip=["light","dark"],u_="(prefers-color-scheme: dark)",c_=y.createContext(void 0),d_={setTheme:e=>{},themes:[]},f_=()=>{var e;return(e=y.useContext(c_))!=null?e:d_};y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let u=s==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?ip.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(x,p=!1,w=!0)=>{let v=i?i[x]:x,m=p?x+"|| ''":`'${v}'`,g="";return o&&w&&!p&&ip.includes(x)&&(g+=`d.style.colorScheme = '${x}';`),n==="class"?p||v?g+=`c.add(${m})`:g+="null":v&&(g+=`d[s](n,${m})`),g},f=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${u_}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${u?"":"else{"+h(s,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${d}}catch(t){}}();`;return y.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var h_=e=>{switch(e){case"success":return g_;case"info":return y_;case"warning":return v_;case"error":return w_;default:return null}},p_=Array(12).fill(0),m_=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},p_.map((n,r)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),g_=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),v_=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.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"})),y_=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),w_=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),x_=A.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"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),b_=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{t(document.hidden)};
90return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Lc=1,S_=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Lc++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
90this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async l=>{if(s=["resolve",l],A.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(E_(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Lc++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},et=new S_,__=(e,t)=>{let n=(t==null?void 0:t.id)||Lc++;return et.addToast({title:e,...t,id:n}),n},E_=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",k_=__,C_=()=>et.toasts,T_=()=>et.getActiveToasts();Object.assign(k_,{success:et.success,info:et.info,warning:et.warning,error:et.error,custom:et.custom,message:et.message,promise:et.promise,dismiss:et.dismiss,loading:et.loading},{getHistory:C_,getToasts:T_});function P_(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}P_(`: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;
90left: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}
90: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%);
90--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%)}
91`);function Ki(e){return e.label!==void 0}var R_=3,O_="32px",N_="16px",ap=4e3,j_=356,A_=14,I_=20,L_=200;function Rt(...e){return e.filter(Boolean).join(" ")}function $_(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var M_=e=>{var t,n,r,o,s,i,a,l,u,c,d;let{invert:h,toast:f,unstyled:x,interacting:p,setHeights:w,visibleToasts:v,heights:m,index:g,toasts:S,expanded:_,removeToast:E,defaultRichColors:k,closeButton:T,style:N,cancelButtonStyle:j,actionButtonStyle:U,className:L="",descriptionClassName:W="",duration:I,position:V,gap:F,loadingIcon:B,expandByDefault:C,classNames:R,icons:$,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:z}=e,[Y,K]=A.useState(null),[fe,Se]=A.useState(null),[M,ie]=A.useState(!1),[_e,se]=A.useState(!1),[te,re]=A.useState(!1),[Ue,mt]=A.useState(!1),[hr,_n]=A.useState(!1),[pr,as]=A.useState(0),[Gr,Lf]=A.useState(0),ls=A.useRef(f.duration||I||ap),$f=A.useRef(null),mr=A.useRef(null),Bw=g===0,Ww=g+1<=v,gt=f.type,Qr=f.dismissible!==!1,Hw=f.className||"",Vw=f.descriptionClassName||"",ki=A.useMemo(()=>m.findIndex(q=>q.toastId===f.id)||0,[m,f.id]),Kw=A.useMemo(()=>{var q;return(q=f.closeButton)!=null?q:T},[f.closeButton,T]),Mf=A.useMemo(()=>f.duration||I||ap,[f.duration,I]),Fl=A.useRef(0),Yr=A.useRef(0),Df=A.useRef(0),Jr=A.useRef(null),[qw,Gw]=V.split("-"),Ff=A.useMemo(()=>m.reduce((q,ue,ge)=>ge>=ki?q:q+ue.height,0),[m,ki]),Uf=b_(),Qw=f.invert||h,Ul=gt==="loading";Yr.current=A.useMemo(()=>ki*F+Ff,[ki,Ff]),A.useEffect(()=>{ls.current=Mf},[Mf]),A.useEffect(()=>{ie(!0)},[]),A.useEffect(()=>{let q=mr.current;if(q){let ue=q.getBoundingClientRect().height;return Lf(ue),w(ge=>[{toastId:f.id,height:ue,position:f.position},...ge]),()=>w(ge=>ge.filter(kt=>kt.toastId!==f.id))}},[w,f.id]),A.useLayoutEffect(()=>{if(!M)return;let q=mr.current,ue=q.style.height;q.style.height="auto";let ge=q.getBoundingClientRect().height;q.style.height=ue,Lf(ge),w(kt=>kt.find(Ct=>Ct.toastId===f.id)?kt.map(Ct=>Ct.toastId===f.id?{...Ct,height:ge}:Ct):[{toastId:f.id,height:ge,position:f.position},...kt])},[M,f.title,f.description,w,f.id]);let En=A.useCallback(()=>{se(!0),as(Yr.current),w(q=>q.filter(ue=>ue.toastId!==f.id)),setTimeout(()=>{E(f)},L_)},[f,E,w,Yr]);A.useEffect(()=>{if(f.promise&&gt==="loading"||f.duration===1/0||f.type==="loading")return;let q;return _||p||z&&Uf?(()=>{if(Df.current<Fl.current){let ue=new Date().getTime()-Fl.current;ls.current=ls.current-ue}
91Df.current=new Date().getTime()})():ls.current!==1/0&&(Fl.current=new Date().getTime(),q=setTimeout(()=>{var ue;(ue=f.onAutoClose)==null||ue.call(f,f),En()},ls.current)),()=>clearTimeout(q)},[_,p,f,gt,z,Uf,En]),A.useEffect(()=>{f.delete&&En()},[En,f.delete]);function Yw(){var q,ue,ge;return $!=null&&$.loading?A.createElement("div",{className:Rt(R==null?void 0:R.loader,(q=f==null?void 0:f.classNames)==null?void 0:q.loader,"sonner-loader"),"data-visible":gt==="loading"},$.loading):B?A.createElement("div",{className:Rt(R==null?void 0:R.loader,(ue=f==null?void 0:f.classNames)==null?void 0:ue.loader,"sonner-loader"),"data-visible":gt==="loading"},B):A.createElement(m_,{className:Rt(R==null?void 0:R.loader,(ge=f==null?void 0:f.classNames)==null?void 0:ge.loader),visible:gt==="loading"})}return A.createElement("li",{tabIndex:0,ref:mr,className:Rt(L,Hw,R==null?void 0:R.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[gt],(n=f==null?void 0:f.classNames)==null?void 0:n[gt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||x),"data-mounted":M,"data-promise":!!f.promise,"data-swiped":hr,"data-removed":_e,"data-visible":Ww,"data-y-position":qw,"data-x-position":Gw,"data-index":g,"data-front":Bw,"data-swiping":te,"data-dismissible":Qr,"data-type":gt,"data-invert":Qw,"data-swipe-out":Ue,"data-swipe-direction":fe,"data-expanded":!!(_||C&&M),style:{"--index":g,"--toasts-before":g,"--z-index":S.length-g,"--offset":`${_e?pr:Yr.current}px`,"--initial-height":C?"auto":`${Gr}px`,...N,...f.style},onDragEnd:()=>{re(!1),K(null),Jr.current=null},onPointerDown:q=>{Ul||!Qr||($f.current=new Date,as(Yr.current),q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(re(!0),Jr.current={x:q.clientX,y:q.clientY}))},onPointerUp:()=>{var q,ue,ge,kt;if(Ue||!Qr)return;Jr.current=null;let Ct=Number(((q=mr.current)==null?void 0:q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),kn=Number(((ue=mr.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),gr=new Date().getTime()-((ge=$f.current)==null?void 0:ge.getTime()),Tt=Y==="x"?Ct:kn,Cn=Math.abs(Tt)/gr;if(Math.abs(Tt)>=I_||Cn>.11){as(Yr.current),(kt=f.onDismiss)==null||kt.call(f,f),Se(Y==="x"?Ct>0?"right":"left":kn>0?"down":"up"),En(),mt(!0),_n(!1);return}re(!1),K(null)},onPointerMove:q=>{var ue,ge,kt,Ct;if(!Jr.current||!Qr||((ue=window.getSelection())==null?void 0:ue.toString().length)>0)return;let kn=q.clientY-Jr.current.y,gr=q.clientX-Jr.current.x,Tt=(ge=e.swipeDirections)!=null?ge:$_(V);!Y&&(Math.abs(gr)>1||Math.abs(kn)>1)&&K(Math.abs(gr)>Math.abs(kn)?"x":"y");let Cn={x:0,y:0};Y==="y"?(Tt.includes("top")||Tt.includes("bottom"))&&(Tt.includes("top")&&kn<0||Tt.includes("bottom")&&kn>0)&&(Cn.y=kn):Y==="x"&&(Tt.includes("left")||Tt.includes("right"))&&(Tt.includes("left")&&gr<0||Tt.includes("right")&&gr>0)&&(Cn.x=gr),(Math.abs(Cn.x)>0||Math.abs(Cn.y)>0)&&_n(!0),(kt=mr.current)==null||kt.style.setProperty("--swipe-amount-x",`${Cn.x}px`),(Ct=mr.current)==null||Ct.style.setProperty("--swipe-amount-y",`${Cn.y}px`)}},Kw&&!f.jsx?A.createElement("button",{"aria-label":H,"data-disabled":Ul,"data-close-button":!0,onClick:Ul||!Qr?()=>{}:()=>{var q;En(),(q=f.onDismiss)==null||q.call(f,f)},className:Rt(R==null?void 0:R.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(s=$==null?void 0:$.close)!=null?s:x_):null,f.jsx||y.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:A.createElement(A.Fragment,null,gt||f.icon||f.promise?A.createElement("div",{"data-icon":"",className:Rt(R==null?void 0:R.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Yw():null,f.type!=="loading"?f.icon||($==null?void 0:$[gt])||h_(gt):null):null,A.createElement("div",{"data-content":"",className:Rt(R==null?void 0:R.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},A.createElement("div",{"data-title":"",className:Rt(R==null?void 0:R.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?A.createElement("div",{"data-description":"",className:Rt(W,Vw,R==null?void 0:R.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),y.isValidElement(f.cancel)?f.cancel:f.cancel&&Ki(f.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||j,onClick:q=>{var ue,ge;Ki(f.cancel)&&Qr&&((ge=(ue=f.cancel).onClick)==null||ge.call(ue,q),En())},className:Rt(R==null?void 0:R.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,y.isValidElement(f.action)?f.action:f.action&&Ki(f.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||U,onClick:q=>{var ue,ge;Ki(f.action)&&((ge=(ue=f.action).onClick)==null||ge.call(ue,q),!q.defaultPrevented&&En())},className:Rt(R==null?void 0:R.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function lp(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function D_(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?N_:O_;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${i}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var F_=y.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:h,style:f,visibleToasts:x=R_,toastOptions:p,dir:w=lp(),gap:v=A_,loadingIcon:m,icons:g,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:_}=e,[E,k]=A.useState([]),T=A.useMemo(()=>Array.from(new Set([r].concat(E.filter(z=>z.position).map(z=>z.position)))),[E,r]),[N,j]=A.useState([]),[U,L]=A.useState(!1),[W,I]=A.useState(!1),[V,F]=A.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
91k":"light"),B=A.useRef(null),C=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=A.useRef(null),$=A.useRef(!1),H=A.useCallback(z=>{k(Y=>{var K;return(K=Y.find(fe=>fe.id===z.id))!=null&&K.delete||et.dismiss(z.id),Y.filter(({id:fe})=>fe!==z.id)})},[]);return A.useEffect(()=>et.subscribe(z=>{if(z.dismiss){k(Y=>Y.map(K=>K.id===z.id?{...K,delete:!0}:K));return}setTimeout(()=>{Nv.flushSync(()=>{k(Y=>{let K=Y.findIndex(fe=>fe.id===z.id);return K!==-1?[...Y.slice(0,K),{...Y[K],...z},...Y.slice(K+1)]:[z,...Y]})})})}),[]),A.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:K})=>{try{F(K?"dark":"light")}catch(fe){console.error(fe)}})}},[c]),A.useEffect(()=>{E.length<=1&&L(!1)},[E]),A.useEffect(()=>{let z=Y=>{var K,fe;o.every(Se=>Y[Se]||Y.code===Se)&&(L(!0),(K=B.current)==null||K.focus()),Y.code==="Escape"&&(document.activeElement===B.current||(fe=B.current)!=null&&fe.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),A.useEffect(()=>{if(B.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,$.current=!1)}},[B.current]),A.createElement("section",{ref:t,"aria-label":`${S} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((z,Y)=>{var K;let[fe,Se]=z.split("-");return E.length?A.createElement("ol",{key:z,dir:w==="auto"?lp():w,tabIndex:-1,ref:B,className:a,"data-sonner-toaster":!0,"data-theme":V,"data-y-position":fe,"data-lifted":U&&E.length>1&&!s,"data-x-position":Se,style:{"--front-toast-height":`${((K=N[0])==null?void 0:K.height)||0}px`,"--width":`${j_}px`,"--gap":`${v}px`,...f,...D_(l,u)},onBlur:M=>{$.current&&!M.currentTarget.contains(M.relatedTarget)&&($.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:M=>{M.target instanceof HTMLElement&&M.target.dataset.dismissible==="false"||$.current||($.current=!0,R.current=M.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{W||L(!1)},onDragEnd:()=>L(!1),onPointerDown:M=>{M.target instanceof HTMLElement&&M.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},E.filter(M=>!M.position&&Y===0||M.position===z).map((M,ie)=>{var _e,se;return A.createElement(M_,{key:M.id,icons:g,index:ie,toast:M,defaultRichColors:d,duration:(_e=p==null?void 0:p.duration)!=null?_e:h,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:x,closeButton:(se=p==null?void 0:p.closeButton)!=null?se:i,interacting:W,position:z,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:H,toasts:E.filter(te=>te.position==M.position),heights:N.filter(te=>te.position==M.position),setHeights:j,expandByDefault:s,gap:v,loadingIcon:m,expanded:U,pauseWhenPageIsHidden:_,swipeDirections:e.swipeDirections})})):null}))});const U_=({...e})=>{const{theme:t="system"}=f_();return b.jsx(F_,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var z_=pd[" useId ".trim().toString()]||(()=>{}),B_=0;function hf(e){const[t,n]=y.useState(z_());return Fe(()=>{n(r=>r??String(B_++))},[e]),t?`radix-${t}`:""}const W_=["top","right","bottom","left"],sr=Math.min,lt=Math.max,Ka=Math.round,qi=Math.floor,nn=e=>({x:e,y:e}
vendor: 11,921 bytes, line 91
91),H_={left:"right",right:"left",bottom:"top",top:"bottom"},V_={start:"end",end:"start"};function $c(e,t,n){return lt(e,sr(t,n))}function xn(e,t){return typeof e=="function"?e(t):e}function bn(e){return e.split("-")[0]}function ts(e){return e.split("-")[1]}function pf(e){return e==="x"?"y":"x"}function mf(e){return e==="y"?"height":"width"}const K_=new Set(["top","bottom"]);function Zt(e){return K_.has(bn(e))?"y":"x"}function gf(e){return pf(Zt(e))}function q_(e,t,n){n===void 0&&(n=!1);const r=ts(e),o=gf(e),s=mf(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=qa(i)),[i,qa(i)]}function G_(e){const t=qa(e);return[Mc(e),t,Mc(t)]}function Mc(e){return e.replace(/start|end/g,t=>V_[t])}const up=["left","right"],cp=["right","left"],Q_=["top","bottom"],Y_=["bottom","top"];function J_(e,t,n){switch(e){case"top":case"bottom":return n?t?cp:up:t?up:cp;case"left":case"right":return t?Q_:Y_;default:return[]}}function X_(e,t,n,r){const o=ts(e);let s=J_(bn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Mc)))),s}function qa(e){return e.replace(/left|right|bottom|top/g,t=>H_[t])}function Z_(e){return{top:0,right:0,bottom:0,left:0,...e}}function by(e){return typeof e!="number"?Z_(e):{top:e,right:e,bottom:e,left:e}}function Ga(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function dp(e,t,n){let{reference:r,floating:o}=e;const s=Zt(t),i=gf(t),a=mf(i),l=bn(t),u=s==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:c,y:r.y-o.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(ts(t)){case"start":f[i]-=h*(n&&u?-1:1);break;case"end":f[i]+=h*(n&&u?-1:1);break}return f}const eE=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=dp(u,r,l),h=r,f={},x=0;for(let p=0;p<a.length;p++){const{name:w,fn:v}=a[p],{x:m,y:g,data:S,reset:_}=await v({x:c,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:u,platform:i,elements:{reference:e,floating:t}});c=m??c,d=g??d,f={...f,[w]:{...f[w],...S}},_&&x<=50&&(x++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(u=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:c,y:d}=dp(u,h,l)),p=-1)}return{x:c,y:d,placement:h,strategy:o,middlewareData:f}};async function ri(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=xn(t,e),x=by(f),w=a[h?d==="floating"?"reference":"floating":d],v=Ga(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),m=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,g=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(g))?await(s.getScale==null?void 0:s.getScale(g))||{x:1,y:1}:{x:1,y:1},_=Ga(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:g,strategy:l}):m);return{top:(v.top-_.top+x.top)/S.y,bottom:(_.bottom-v.bottom+x.bottom)/S.y,left:(v.left-_.left+x.left)/S.x,right:(_.right-v.right+x.right)/S.x}}const tE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=xn(e,t)||{};if(u==null)return{};const d=by(c),h={x:n,y:r},f=gf(o),x=mf(f),p=await i.getDimensions(u),w=f==="y",v=w?"top":"left",m=w?"bottom":"right",g=w?"clientHeight":"clientWidth",S=s.reference[x]+s.reference[f]-h[f]-s.floating[x],_=h[f]-s.reference[f],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=E?E[g]:0;(!k||!await(i.isElement==null?void 0:i.isElement(E)))&&(k=a.floating[g]||s.floating[x]);const T=S/2-_/2,N=k/2-p[x]/2-1,j=sr(d[v],N),U=sr(d[m],N),L=j,W=k-p[x]-U,I=k/2-p[x]/2+T,V=$c(L,I,W),F=!l.arrow&&ts(o)!=null&&I!==V&&s.reference[x]/2-(I<L?j:U)-p[x]/2<0,B=F?I<L?I-L:I-W:0;return{[f]:h[f]+B,data:{[f]:V,centerOffset:I-V-B,...F&&{alignmentOffset:B}},reset:F}}}),nE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:p=!0,...w}=xn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=bn(o),m=Zt(a),g=bn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=h||(g||!p?[qa(a)]:G_(a)),E=x!=="none";!h&&E&&_.push(...X_(a,p,x,S));const k=[a,..._],T=await ri(t,w),N=[];let j=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&N.push(T[v]),d){const I=q_(o,i,S);N.push(T[I[0]],T[I[1]])}if(j=[...j,{placement:o,overflows:N}],!N.every(I=>I<=0)){var U,L;const I=(((U=s.flip)==null?void 0:U.index)||0)+1,V=k[I];if(V&&(!(d==="alignment"?m!==Zt(V):!1)||j.every(C=>C.overflows[0]>0&&Zt(C.placement)===m)))return{data:{index:I,overflows:j},reset:{placement:V}};let F=(L=j.filter(B=>B.overflows[0]<=0).sort((B,C)=>B.overflows[1]-C.overflows[1])[0])==null?void 0:L.placement;if(!F)switch(f){case"bestFit":{var W;const B=(W=j.filter(C=>{if(E){const R=Zt(C.placement);return R===m||R==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,$)=>R+$,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:W[0];B&&(F=B);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function fp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hp(e){return W_.some(t=>e[t]>=0)}const rE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=xn(e,t);switch(r){case"referenceHidden":{const s=await ri(t,{...o,elementContext:"reference"}),i=fp(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:hp(i)}}}case"escaped":{const s=await ri(t,{...o,altBoundary:!0}),i=fp(s,n.floating);return{data:{escapedOffsets:i,escaped:hp(i)}}}default:return{}}}}},Sy=new Set(["left","top"]);async function oE(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=bn(n),a=ts(n),l=Zt(n)==="y",u=Sy.has(i)?-1:1,c=s&&l?-1:1,d=xn(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:x}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof x=="number"&&(f=a==="end"?x*-1:x),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const sE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await oE(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},iE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:v,y:m}=w;return{x:v,y:m}}},...l}=xn(e,t),u={x:n,y:r},c=await ri(t,l),d=Zt(bn(o)),h=pf(d);let f=u[h],x=u[d];if(s){const w=h==="y"?"top":"left",v=h==="y"?"bottom":"right",m=f+c[w],g=f-c[v];f=$c(m,f,g)}if(i){const w=d==="y"?"top":"left",v=d==="y"?"bottom":"right",m=x+c[w],g=x-c[v];x=$c(m,x,g)}const p=a.fn({...t,[h]:f,[d]:x});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:s,[d]:i}}}}}},aE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=xn(e,t),c={x:n,y:r},d=Zt(o),h=pf(d);let f=c[h],x=c[d];const p=xn(a,t),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const g=h==="y"?"height":"width",S=s.reference[h]-s.floating[g]+w.mainAxis,_=s.reference[h]+s.reference[g]-w.mainAxis;f<S?f=S:f>_&&(f=_)}if(u){var v,m;const g=h==="y"?"width":"height",S=Sy.has(bn(o)),_=s.reference[d]-s.floating[g]+(S&&((v=i.offset)==null?void 0:v[d])||0)+(S?0:w.crossAxis),E=s.reference[d]+s.reference[g]+(S?0:((m=i.offset)==null?void 0:m[d])||0)-(S?w.crossAxis:0);x<_?x=_:x>E&&(x=E)}return{[h]:f,[d]:x}}}},lE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=xn(e,t),c=await ri(t,u),d=bn(o),h=ts(o),f=Zt(o)==="y",{width:x,height:p}=s.floating;let w,v;d==="top"||d==="bottom"?(w=d,v=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,w=h==="end"?"top":"bottom");const m=p-c.top-c.bottom,g=x-c.left-c.right,S=sr(p-c[w],m),_=sr(x-c[v],g),E=!t.middlewareData.shift;let k=S,T=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=m),E&&!h){const j=lt(c.left,0),U=lt(c.right,0),L=lt(c.top,0),W=lt(c.bottom,0);f?T=x-2*(j!==0||U!==0?j+U:lt(c.left,c.right)):k=p-2*(L!==0||W!==0?L+W:lt(c.top,c.bottom))}await l({...t,availableWidth:T,availableHeight:k});const N=await i.getDimensions(a.floating);return x!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function bl(){return typeof window<"u"}function ns(e){return _y(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function on(e){var t;return(t=(_y(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _y(e){return bl()?e instanceof Node||e instanceof dt(e).Node:!1}function Wt(e){return bl()?e instanceof Element||e instanceof dt(e).Element:!1}function rn(e){return bl()?e instanceof HTMLElement||e instanceof dt(e).HTMLElement:!1}function pp(e){return!bl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}const uE=new Set(["inline","contents"]);function wi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!uE.has(o)}const cE=new Set(["table","td","th"]);function dE(e){return cE.has(ns(e))}const fE=[":popover-open",":modal"];function Sl(e){return fE.some(t=>{try{return e.matches(t)}catch{return!1}})}const hE=["transform","translate","scale","rotate","perspective"],pE=["transform","translate","scale","rotate","perspective","filter"],mE=["paint","layout","strict","content"];function vf(e){const t=yf(),n=Wt(e)?Ht(e):e;return hE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||pE.some(r=>(n.willChange||"").includes(r))||mE.some(r=>(n.contain||"").includes(r))}function gE(e){let t=ir(e);for(;rn(t)&&!qo(t);){if(vf(t))return t;if(Sl(t))return null;t=ir(t)}return null}function yf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vE=new Set(["html","body","#document"]);function qo(e){return vE.has(ns(e))}function Ht(e){return dt(e).getComputedStyle(e)}function _l(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ir(e){if(ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pp(e)&&e.host||on(e);return pp(t)?t.host:t}function Ey(e){const t=ir(e);return qo(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&wi(t)?t:Ey(t)}function oi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ey(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=dt(o);if(s){const a=Dc(i);
vendor: 4,772 bytes, line 91
91return t.concat(i,i.visualViewport||[],wi(o)?o:[],a&&n?oi(a):[])}return t.concat(o,oi(o,[],n))}function Dc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ky(e){const t=Ht(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Ka(n)!==s||Ka(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function wf(e){return Wt(e)?e:e.contextElement}function Oo(e){const t=wf(e);if(!rn(t))return nn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ky(t);let i=(s?Ka(n.width):n.width)/r,a=(s?Ka(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const yE=nn(0);function Cy(e){const t=dt(e);return!yf()||!t.visualViewport?yE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==dt(e)?!1:t}function Fr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=wf(e);let i=nn(1);t&&(r?Wt(r)&&(i=Oo(r)):i=Oo(e));const a=wE(s,n,r)?Cy(s):nn(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(s){const h=dt(s),f=r&&Wt(r)?dt(r):r;let x=h,p=Dc(x);for(;p&&r&&f!==x;){const w=Oo(p),v=p.getBoundingClientRect(),m=Ht(p),g=v.left+(p.clientLeft+parseFloat(m.paddingLeft))*w.x,S=v.top+(p.clientTop+parseFloat(m.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=g,u+=S,x=dt(p),p=Dc(x)}}return Ga({width:c,height:d,x:l,y:u})}function xf(e,t){const n=_l(e).scrollLeft;return t?t.left+n:Fr(on(e)).left+n}function Ty(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:xf(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function xE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=on(r),a=t?Sl(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=nn(1);const c=nn(0),d=rn(r);if((d||!d&&!s)&&((ns(r)!=="body"||wi(i))&&(l=_l(r)),rn(r))){const f=Fr(r);u=Oo(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const h=i&&!d&&!s?Ty(i,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+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}}function bE(e){return Array.from(e.getClientRects())}function SE(e){const t=on(e),n=_l(e),r=e.ownerDocument.body,o=lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+xf(e);const a=-n.scrollTop;return Ht(r).direction==="rtl"&&(i+=lt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function _E(e,t){const n=dt(e),r=on(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=yf();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const EE=new Set(["absolute","fixed"]);function kE(e,t){const n=Fr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=rn(e)?Oo(e):nn(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function mp(e,t,n){let r;if(t==="viewport")r=_E(e,n);else if(t==="document")r=SE(on(e));else if(Wt(t))r=kE(t,n);else{const o=Cy(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ga(r)}function Py(e,t){const n=ir(e);return n===t||!Wt(n)||qo(n)?!1:Ht(n).position==="fixed"||Py(n,t)}function CE(e,t){const n=t.get(e);if(n)return n;let r=oi(e,[],!1).filter(a=>Wt(a)&&ns(a)!=="body"),o=null;const s=Ht(e).position==="fixed";let i=s?ir(e):e;for(;Wt(i)&&!qo(i);){const a=Ht(i),l=vf(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&EE.has(o.position)||wi(i)&&!l&&Py(e,i))?r=r.filter(c=>c!==i):o=a,i=ir(i)}return t.set(e,r),r}function TE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Sl(t)?[]:CE(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,c)=>{const d=mp(t,c,o);return u.top=lt(d.top,u.top),u.right=sr(d.right,u.right),u.bottom=sr(d.bottom,u.bottom),u.left=lt(d.left,u.left),u},mp(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function PE(e){const{width:t,height:n}=ky(e);return{width:t,height:n}}function RE(e,t,n){const r=rn(t),o=on(t),s=n==="fixed",i=Fr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=nn(0);function u(){l.x=xf(o)}if(r||!r&&!s)if((ns(t)!=="body"||wi(o))&&(a=_l(t)),r){const f=Fr(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const c=o&&!r&&!s?Ty(o,a):nn(0),d=i.left+a.scrollLeft-l.x-c.x,h=i.top+a.scrollTop-l.y-c.y;return{x:d,y:h,width:i.width,height:i.height}}function yu(e){return Ht(e).position==="static"}function gp(e,t){if(!rn(e)||Ht(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return on(e)===n&&(n=n.ownerDocument.body),n}function Ry(e,t){const n=dt(e);
vendor: 9,138 bytes, line 91
91if(Sl(e))return n;if(!rn(e)){let o=ir(e);for(;o&&!qo(o);){if(Wt(o)&&!yu(o))return o;o=ir(o)}return n}let r=gp(e,t);for(;r&&dE(r)&&yu(r);)r=gp(r,t);return r&&qo(r)&&yu(r)&&!vf(r)?n:r||gE(e)||n}const OE=async function(e){const t=this.getOffsetParent||Ry,n=this.getDimensions,r=await n(e.floating);return{reference:RE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function NE(e){return Ht(e).direction==="rtl"}const jE={convertOffsetParentRelativeRectToViewportRelativeRect:xE,getDocumentElement:on,getClippingRect:TE,getOffsetParent:Ry,getElementRects:OE,getClientRects:bE,getDimensions:PE,getScale:Oo,isElement:Wt,isRTL:NE};function Oy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function AE(e,t){let n=null,r;const o=on(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:f}=u;if(a||t(),!h||!f)return;const x=qi(d),p=qi(o.clientWidth-(c+h)),w=qi(o.clientHeight-(d+f)),v=qi(c),g={rootMargin:-x+"px "+-p+"px "+-w+"px "+-v+"px",threshold:lt(0,sr(1,l))||1};let S=!0;function _(E){const k=E[0].intersectionRatio;if(k!==l){if(!S)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Oy(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return i(!0),s}function IE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=wf(e),c=o||s?[...u?oi(u):[],...oi(t)]:[];c.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=u&&a?AE(u,n):null;let h=-1,f=null;i&&(f=new ResizeObserver(v=>{let[m]=v;m&&m.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var g;(g=f)==null||g.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let x,p=l?Fr(e):null;l&&w();function w(){const v=Fr(e);p&&!Oy(p,v)&&n(),p=v,x=requestAnimationFrame(w)}return n(),()=>{var v;c.forEach(m=>{o&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),d==null||d(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(x)}}const LE=sE,$E=iE,ME=nE,DE=lE,FE=rE,vp=tE,UE=aE,zE=(e,t,n)=>{const r=new Map,o={platform:jE,...n},s={...o.platform,_c:r};return eE(e,t,{...o,platform:s})};var BE=typeof document<"u",WE=function(){},va=BE?y.useLayoutEffect:WE;function Qa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Qa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Qa(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ny(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yp(e,t){const n=Ny(e);return Math.round(t*n)/n}function wu(e){const t=y.useRef(e);return va(()=>{t.current=e}),t}function HE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=y.useState(r);Qa(h,r)||f(r);const[x,p]=y.useState(null),[w,v]=y.useState(null),m=y.useCallback(C=>{C!==E.current&&(E.current=C,p(C))},[]),g=y.useCallback(C=>{C!==k.current&&(k.current=C,v(C))},[]),S=s||x,_=i||w,E=y.useRef(null),k=y.useRef(null),T=y.useRef(c),N=l!=null,j=wu(l),U=wu(o),L=wu(u),W=y.useCallback(()=>{if(!E.current||!k.current)return;const C={placement:t,strategy:n,middleware:h};U.current&&(C.platform=U.current),zE(E.current,k.current,C).then(R=>{const $={...R,isPositioned:L.current!==!1};I.current&&!Qa(T.current,$)&&(T.current=$,Hr.flushSync(()=>{d($)}))})},[h,t,n,U,L]);va(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[u]);const I=y.useRef(!1);va(()=>(I.current=!0,()=>{I.current=!1}),[]),va(()=>{if(S&&(E.current=S),_&&(k.current=_),S&&_){if(j.current)return j.current(S,_,W);W()}},[S,_,W,j,N]);const V=y.useMemo(()=>({reference:E,floating:k,setReference:m,setFloating:g}),[m,g]),F=y.useMemo(()=>({reference:S,floating:_}),[S,_]),B=y.useMemo(()=>{const C={position:n,left:0,top:0};if(!F.floating)return C;const R=yp(F.floating,c.x),$=yp(F.floating,c.y);return a?{...C,transform:"translate("+R+"px, "+$+"px)",...Ny(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:$}},[n,a,F.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:W,refs:V,elements:F,floatingStyles:B}),[c,W,V,F,B])}const VE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?vp({element:r.current,padding:o}).fn(n):{}:r?vp({element:r,padding:o}).fn(n):{}}}},KE=(e,t)=>({...LE(e),options:[e,t]}),qE=(e,t)=>({...$E(e),options:[e,t]}),GE=(e,t)=>({...UE(e),options:[e,t]}),QE=(e,t)=>({...ME(e),options:[e,t]}),YE=(e,t)=>({...DE(e),options:[e,t]}),JE=(e,t)=>({...FE(e),options:[e,t]}),XE=(e,t)=>({...VE(e),options:[e,t]});var ZE="Arrow",jy=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return b.jsx(le.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});jy.displayName=ZE;var ek=jy;function tk(e){const[t,n]=y.useState(void 0);return Fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var bf="Popper",[Ay,El]=vi(bf),[nk,Iy]=Ay(bf),Ly=e=>{const{__scopePopper:t,children:n}=e,[r,o]=y.useState(null);return b.jsx(nk,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ly.displayName=bf;var $y="PopperAnchor",My=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Iy($y,n),i=y.useRef(null),a=Ce(t,i);return y.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:b.jsx(le.div,{...o,ref:a})});My.displayName=$y;var Sf="PopperContent",[rk,ok]=Ay(Sf),Dy=y.forwardRef((e,t)=>{var M,ie,_e,se,te,re;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:x,...p}=e,w=Iy(Sf,n),[v,m]=y.useState(null),g=Ce(t,Ue=>m(Ue)),[S,_]=y.useState(null),E=tk(S),k=(E==null?void 0:E.width)??0,T=(E==null?void 0:E.height)??0,N=r+(s!=="center"?"-"+s:""),j=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},U=Array.isArray(u)?u:[u],L=U.length>0,W={padding:j,boundary:U.filter(ik),altBoundary:L},{refs:I,floatingStyles:V,placement:F,isPositioned:B,middlewareData:C}=HE({strategy:"fixed",placement:N,whileElementsMounted:(...Ue)=>IE(...Ue,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[KE({mainAxis:o+T,alignmentAxis:i}),l&&qE({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?GE():void 0,...W}),l&&QE({...W}),YE({...W,apply:({elements:Ue,rects:mt,availableWidth:hr,availableHeight:_n})=>{const{width:pr,height:as}=mt.reference,Gr=Ue.floating.style;Gr.setProperty("--radix-popper-available-width",`${hr}px`),Gr.setProperty("--radix-popper-available-height",`${_n}px`),Gr.setProperty("--radix-popper-anchor-width",`${pr}px`),Gr.setProperty("--radix-popper-anchor-height",`${as}px`)}}),S&&XE({element:S,padding:a}),ak({arrowWidth:k,arrowHeight:T}),h&&JE({strategy:"referenceHidden",...W})]}),[R,$]=zy(F),H=Bt(x);Fe(()=>{B&&(H==null||H())},[B,H]);const z=(M=C.arrow)==null?void 0:M.x,Y=(ie=C.arrow)==null?void 0:ie.y,K=((_e=C.arrow)==null?void 0:_e.centerOffset)!==0,[fe,Se]=y.useState();return Fe(()=>{v&&Se(window.getComputedStyle(v).zIndex)},[v]),b.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:B?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(se=C.transformOrigin)==null?void 0:se.x,(te=C.transformOrigin)==null?void 0:te.y].join(" "),...((re=C.hide)==null?void 0:re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(rk,{scope:n,placedSide:R,onArrowChange:_,arrowX:z,arrowY:Y,shouldHideArrow:K,children:b.jsx(le.div,{"data-side":R,"data-align":$,...p,ref:g,style:{...p.style,animation:B?void 0:"none"}})})})});Dy.displayName=Sf;var Fy="PopperArrow",sk={top:"bottom",right:"left",bottom:"top",left:"r
91ight"},Uy=y.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=ok(Fy,r),i=sk[s.placedSide];return b.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:b.jsx(ek,{...o,ref:n,style:{...o.style,display:"block"}})})});Uy.displayName=Fy;function ik(e){return e!==null}var ak=e=>({name:"transformOrigin",options:e,fn(t){var w,v,m;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,c]=zy(n),d={start:"0%",center:"50%",end:"100%"}[c],h=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,f=(((m=o.arrow)==null?void 0:m.y)??0)+l/2;let x="",p="";return u==="bottom"?(x=i?d:`${h}px`,p=`${-l}px`):u==="top"?(x=i?d:`${h}px`,p=`${r.floating.height+l}px`):u==="right"?(x=`${-l}px`,p=i?d:`${f}px`):u==="left"&&(x=`${r.floating.width+l}px`,p=i?d:`${f}px`),{data:{x,y:p}}}});function zy(e){const[t,n="center"]=e.split("-");return[t,n]}var lk=Ly,By=My,Wy=Dy,Hy=Uy,[kl,sN]=vi("Tooltip",[El]),_f=El(),Vy="TooltipProvider",uk=700,wp="tooltip.open",[ck,Ky]=kl(Vy),qy=e=>{const{__scopeTooltip:t,delayDuration:n=uk,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=y.useRef(!0),a=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),b.jsx(ck,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:y.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};qy.displayName=Vy;var Gy="Tooltip",[iN,Cl]=kl(Gy),Fc="TooltipTrigger",dk=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Cl(Fc,n),s=Ky(Fc,n),i=_f(n),a=y.useRef(null),l=Ce(t,a,o.onTriggerChange),u=y.useRef(!1),c=y.useRef(!1),d=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),b.jsx(By,{asChild:!0,...i,children:b.jsx(le.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ee(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ee(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ee(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ee(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ee(e.onBlur,o.onClose),onClick:ee(e.onClick,o.onClose)})})});dk.displayName=Fc;var fk="TooltipPortal",[aN,hk]=kl(fk,{forceMount:void 0}),Go="TooltipContent",Qy=y.forwardRef((e,t)=>{const n=hk(Go,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Cl(Go,e.__scopeTooltip);return b.jsx(af,{present:r||i.open,children:i.disableHoverableContent?b.jsx(Yy,{side:o,...s,ref:t}):b.jsx(pk,{side:o,...s,ref:t})})}),pk=y.forwardRef((e,t)=>{const n=Cl(Go,e.__scopeTooltip),r=Ky(Go,e.__scopeTooltip),o=y.useRef(null),s=Ce(t,o),[i,a]=y.useState(null),{trigger:l,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,h=y.useCallback(()=>{a(null),d(!1)},[d]),f=y.useCallback((x,p)=>{const w=x.currentTarget,v={x:x.clientX,y:x.clientY},m=wk(v,w.getBoundingClientRect()),g=xk(v,m),S=bk(p.getBoundingClientRect()),_=_k([...g,...S]);a(_),d(!0)},[d]);return y.useEffect(()=>()=>h(),[h]),y.useEffect(()=>{if(l&&c){const x=w=>f(w,c),p=w=>f(w,l);return l.addEventListener("pointerleave",x),c.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",x),c.removeEventListener("pointerleave",p)}}},[l,c,f,h]),y.useEffect(()=>{if(i){const x=p=>{const w=p.target,v={x:p.clientX,y:p.clientY},m=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),g=!Sk(v,i);m?h():g&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,c,i,u,h]),b.jsx(Yy,{...e,ref:s})}),[mk,gk]=kl(Gy,{isInside:!1}
91),vk=jS("TooltipContent"),Yy=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Cl(Go,n),u=_f(n),{onClose:c}=l;return y.useEffect(()=>(document.addEventListener(wp,c),()=>document.removeEventListener(wp,c)),[c]),y.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),b.jsx(yl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:b.jsxs(Wy,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(vk,{children:r}),b.jsx(mk,{scope:n,isInside:!0,children:b.jsx(e1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Qy.displayName=Go;var Jy="TooltipArrow",yk=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_f(n);return gk(Jy,n).isInside?null:b.jsx(Hy,{...o,...r,ref:t})});yk.displayName=Jy;function wk(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function xk(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function bk(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Sk(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,c=a.y,d=l.x,h=l.y;c>r!=h>r&&n<(d-u)*(r-c)/(h-c)+u&&(o=!o)}return o}function _k(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ek(t)}function Ek(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var kk=qy,Xy=Qy;const Ck=kk,Tk=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>b.jsx(Xy,{ref:r,sideOffset:t,className:ye("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Tk.displayName=Xy.displayName;var Tl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Pl=typeof window>"u"||"Deno"in globalThis;function At(){}function Pk(e,t){return typeof e=="function"?e(t):e}function Rk(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ok(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Uc(e,t){return typeof e=="function"?e(t):e}function Nk(e,t){return typeof e=="function"?e(t):e}function xp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Ef(i,t.options))return!1}else if(!ii(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function bp(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(si(t.options.mutationKey)!==si(s))return!1}else if(!ii(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ef(e,t){return((t==null?void 0:t.queryKeyHashFn)||si)(e)}function si(e){return JSON.stringify(e,(t,n)=>zc(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ii(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ii(e[n],t[n])):!1}function Zy(e,t){if(e===t)return e;const n=Sp(e)&&Sp(t);if(n||zc(e)&&zc(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<i;c++){const d=n?c:s[c];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,u++):(a[d]=Zy(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return o===i&&u===o?e:a}return t}function Sp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zc(e){if(!_p(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!_p(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function _p(e){return Object.prototype.toString.call(e)==="[object Object]"}function jk(e){return new Promise(t=>{setTimeout(t,e)})}function Ak(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Zy(e,t):t}function Ik(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Lk(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var kf=Symbol();function e0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===kf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Cr,Un,jo,cm,$k=(cm=class extends Tl{constructor(){super();oe(this,Cr);oe(this,Un);oe(this,jo);G(this,jo,t=>{if(!Pl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,Un)||this.setEventListener(P(this,jo))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Un))==null||t.call(this),G(this,Un,void 0))}setEventListener(t){var n;G(this,jo,t),(n=P(this,Un))==null||n.call(this),G(this,Un,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Cr)!==t&&(G(this,Cr,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,912 bytes, line 91
91this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,Cr)=="boolean"?P(this,Cr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Cr=new WeakMap,Un=new WeakMap,jo=new WeakMap,cm),t0=new $k,Ao,zn,Io,dm,Mk=(dm=class extends Tl{constructor(){super();oe(this,Ao,!0);oe(this,zn);oe(this,Io);G(this,Io,t=>{if(!Pl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,zn)||this.setEventListener(P(this,Io))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,zn))==null||t.call(this),G(this,zn,void 0))}setEventListener(t){var n;G(this,Io,t),(n=P(this,zn))==null||n.call(this),G(this,zn,t(this.setOnline.bind(this)))}setOnline(t){P(this,Ao)!==t&&(G(this,Ao,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Ao)}},Ao=new WeakMap,zn=new WeakMap,Io=new WeakMap,dm),Ya=new Mk;function Dk(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Fk(e){return Math.min(1e3*2**e,3e4)}function n0(e){return(e??"online")==="online"?Ya.isOnline():!0}var r0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function xu(e){return e instanceof r0}function o0(e){let t=!1,n=0,r=!1,o;const s=Dk(),i=p=>{var w;r||(h(new r0(p)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>t0.isFocused()&&(e.networkMode==="always"||Ya.isOnline())&&e.canRun(),c=()=>n0(e.networkMode)&&e.canRun(),d=p=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,p),o==null||o(),s.resolve(p))},h=p=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,p),o==null||o(),s.reject(p))},f=()=>new Promise(p=>{var w;o=v=>{(r||u())&&p(v)},(w=e.onPause)==null||w.call(e)}).then(()=>{var p;o=void 0,r||(p=e.onContinue)==null||p.call(e)}),x=()=>{if(r)return;let p;const w=n===0?e.initialPromise:void 0;try{p=w??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(d).catch(v=>{var E;if(r)return;const m=e.retry??(Pl?0:3),g=e.retryDelay??Fk,S=typeof g=="function"?g(n,v):g,_=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,v);if(t||!_){h(v);return}n++,(E=e.onFail)==null||E.call(e,n,v),jk(S).then(()=>u()?void 0:f()).then(()=>{t?h(v):x()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?x():f().then(x),s)}}var Uk=e=>setTimeout(e,0);function zk(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Uk;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ye=zk(),Tr,fm,s0=(fm=class{constructor(){oe(this,Tr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rk(this.gcTime)&&G(this,Tr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pl?1/0:5*60*1e3))}clearGcTimeout(){P(this,Tr)&&(clearTimeout(P(this,Tr)),G(this,Tr,void 0))}},Tr=new WeakMap,fm),Lo,Pr,vt,Rr,He,ci,Or,It,an,hm,Bk=(hm=class extends s0{constructor(t){super();oe(this,It);oe(this,Lo);oe(this,Pr);oe(this,vt);oe(this,Rr);oe(this,He);oe(this,ci);oe(this,Or);G(this,Or,!1),G(this,ci,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,Rr,t.client),G(this,vt,P(this,Rr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,Lo,Hk(this.options)),this.state=t.state??P(this,Lo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,He))==null?void 0:t.promise}setOptions(t){this.options={...P(this,ci),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,vt).remove(this)}setData(t,n){const r=Ak(this.state.data,t,this.options);return ze(this,It,an).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ze(this,It,an).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=P(this,He))==null?void 0:r.promise;return(o=P(this,He))==null||o.cancel(t),n?n.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Lo))}isActive(){return this.observers.some(t=>Nk(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===kf||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 91
91Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Uc(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ok(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,He))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,He))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,vt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,He)&&(P(this,Or)?P(this,He).cancel({revert:!0}):P(this,He).cancelRetry()),this.scheduleGc()),P(this,vt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ze(this,It,an).call(this,{type:"invalidate"})}
vendor: 17,205 bytes, lines 91-100
91fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,He))return P(this,He).continueRetry(),P(this,He).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(G(this,Or,!0),r.signal)})},s=()=>{const h=e0(this.options,n),x=(()=>{const p={client:P(this,Rr),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return G(this,Or,!1),this.options.persister?this.options.persister(h,x,this):h(x)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,Rr),state:this.state,fetchFn:s};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),G(this,Pr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&ze(this,It,an).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,x,p,w;xu(h)&&h.silent||ze(this,It,an).call(this,{type:"error",error:h}),xu(h)||((x=(f=P(this,vt).config).onError)==null||x.call(f,h,this),(w=(p=P(this,vt).config).onSettled)==null||w.call(p,this.state.data,h,this)),this.scheduleGc()};return G(this,He,o0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,x,p,w;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(v){l(v);return}(x=(f=P(this,vt).config).onSuccess)==null||x.call(f,h,this),(w=(p=P(this,vt).config).onSettled)==null||w.call(p,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{ze(this,It,an).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{ze(this,It,an).call(this,{type:"pause"})},onContinue:()=>{ze(this,It,an).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),P(this,He).start()}},Lo=new WeakMap,Pr=new WeakMap,vt=new WeakMap,Rr=new WeakMap,He=new WeakMap,ci=new WeakMap,Or=new WeakMap,It=new WeakSet,an=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Wk(r.data,this.options),fetchMeta:t.meta??null};case"success":return G(this,Pr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return xu(o)&&o.revert&&P(this,Pr)?{...P(this,Pr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,vt).notify({query:this,type:"updated",action:t})})},hm);function Wk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:n0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Hk(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gt,pm,Vk=(pm=class extends Tl{constructor(t={}){super();oe(this,Gt);this.config=t,G(this,Gt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Ef(o,n);let i=this.get(s);return i||(i=new Bk({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){P(this,Gt).has(t.queryHash)||(P(this,Gt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,Gt).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,Gt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,Gt).get(t)}getAll(){return[...P(this,Gt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>xp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>xp(t,r)):n}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gt=new WeakMap,pm),Qt,Ge,Nr,Yt,Nn,mm,Kk=(mm=class extends s0{constructor(t){super();oe(this,Yt);oe(this,Qt);oe(this,Ge);oe(this,Nr);this.mutationId=t.mutationId,G(this,Ge,t.mutationCache),G(this,Qt,[]),this.state=t.state||qk(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Qt).includes(t)||(P(this,Qt).push(t),this.clearGcTimeout(),P(this,Ge).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,Qt,P(this,Qt).filter(n=>n!==t)),this.scheduleGc(),P(this,Ge).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Qt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Ge).remove(this))}continue(){var t;return((t=P(this,Nr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,u,c,d,h,f,x,p,w,v,m,g,S,_,E,k,T;const n=()=>{ze(this,Yt,Nn).call(this,{type:"continue"})};G(this,Nr,o0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,j)=>{ze(this,Yt,Nn).call(this,{type:"failed",failureCount:N,error:j})},onPause:()=>{ze(this,Yt,Nn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Ge).canRun(this)}));const r=this.state.status==="pending",o=!P(this,Nr).canStart();try{if(r)n();else{ze(this,Yt,Nn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=P(this,Ge).config).onMutate)==null?void 0:i.call(s,t,this));const j=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));j!==this.state.context&&ze(this,Yt,Nn).call(this,{type:"pending",context:j,variables:t,isPaused:o})}const N=await P(this,Nr).start();return await((c=(u=P(this,Ge).config).onSuccess)==null?void 0:c.call(u,N,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,N,t,this.state.context)),await((x=(f=P(this,Ge).config).onSettled)==null?void 0:x.call(f,N,null,this.state.variables,this.state.context,this)),await((w=(p=this.options).onSettled)==null?void 0:w.call(p,N,null,t,this.state.context)),ze(this,Yt,Nn).call(this,{type:"success",data:N}),N}catch(N){try{throw await((m=(v=P(this,Ge).config).onError)==null?void 0:m.call(v,N,t,this.state.context,this)),await((S=(g=this.options).onError)==null?void 0:S.call(g,N,t,this.state.context)),await((E=(_=P(this,Ge).config).onSettled)==null?void 0:E.call(_,void 0,N,this.state.variables,this.state.context,this)),await((T=(k=this.options).onSettled)==null?void 0:T.call(k,void 0,N,t,this.state.context)),N}finally{ze(this,Yt,Nn).call(this,{type:"error",error:N})}}finally{P(this,Ge).runNext(this)}}},Qt=new WeakMap,Ge=new WeakMap,Nr=new WeakMap,Yt=new WeakSet,Nn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ye.batch(()=>{P(this,Qt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Ge).notify({mutation:this,type:"updated",action:t})})},mm);function qk(){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,di,gm,Gk=(gm=class extends Tl{constructor(t={}){super();oe(this,fn);oe(this,Lt);oe(this,di);this.config=t,G(this,fn,new Set),G(this,Lt,new Map),G(this,di,0)}build(t,n,r){const o=new Kk({mutationCache:this,mutationId:++Ci(this,di)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,fn).add(t);const n=Gi(t);if(typeof n=="string"){const r=P(this,Lt).get(n);r?r.push(t):P(this,Lt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,fn).delete(t)){const n=Gi(t);if(typeof n=="string"){const r=P(this,Lt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&P(this,Lt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Gi(t);if(typeof n=="string"){const r=P(this,Lt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Gi(t);if(typeof n=="string"){const o=(r=P(this,Lt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ye.batch(()=>{P(this,fn).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,fn).clear(),P(this,Lt).clear()})}getAll(){return Array.from(P(this,fn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>bp(n,r))}findAll(t={}){return this.getAll().filter(n=>bp(t,n))}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(At))))}},fn=new WeakMap,Lt=new WeakMap,di=new WeakMap,gm);function Gi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Ep(e){return{onFetch:(t,n)=>{var c,d,h,f,x;const r=t.options,o=(h=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],i=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let p=!1;const w=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=e0(t.options,t.fetchOptions),m=async(g,S,_)=>{if(p)return Promise.reject();if(S==null&&g.pages.length)return Promise.resolve(g);const k=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};return w(U),U})(),T=await v(k),{maxPages:N}=t.options,j=_?Lk:Ik;return{pages:j(g.pages,T,N),pageParams:j(g.pageParams,S,N)}};if(o&&s.length){const g=o==="backward",S=g?Qk:kp,_={pages:s,pageParams:i},E=S(r,_);a=await m(_,E,g)}else{const g=e??s.length;do{const S=l===0?i[0]??r.initialPageParam:kp(r,a);if(l>0&&S==null)break;a=await m(a,S),l++}while(l<g)}return a};t.options.persister?t.fetchFn=()=>{var p,w;return(w=(p=t.options).persister)==null?void 0:w.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function kp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Qk(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ee,Bn,Wn,$o,Mo,Hn,Do,Fo,vm,Yk=(vm=class{constructor(e={}){oe(this,Ee);oe(this,Bn);oe(this,Wn);oe(this,$o);oe(this,Mo);oe(this,Hn);oe(this,Do);oe(this,Fo);G(this,Ee,e.queryCache||new Vk),G(this,Bn,e.mutationCache||new Gk),G(this,Wn,e.defaultOptions||{}),G(this,$o,new Map),G(this,Mo,new Map),G(this,Hn,0)}mount(){Ci(this,Hn)._++,P(this,Hn)===1&&(G(this,Do,t0.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Ee).onFocus())})),G(this,Fo,Ya.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Ee).onOnline())})))}unmount(){var e,t;Ci(this,Hn)._--,P(this,Hn)===0&&((e=P(this,Do))==null||e.call(this),G(this,Do,void 0),(t=P(this,Fo))==null||t.call(this),G(this,Fo,void 0))}isFetching(e){return P(this,Ee).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,Bn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Ee).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,Ee).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Uc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,Ee).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=P(this,Ee).get(r.queryHash),s=o==null?void 0:o.state.data,i=Pk(t,s);if(i!==void 0)return P(this,Ee).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ye.batch(()=>P(this,Ee).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Ee).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,Ee);Ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,Ee);return Ye.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ye.batch(()=>P(this,Ee).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(At).catch(At)}invalidateQueries(e,t={}){return Ye.batch(()=>(P(this,Ee).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ye.batch(()=>P(this,Ee).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(At)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(At)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,Ee).build(this,t);return n.isStaleByTime(Uc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(At).catch(At)}fetchInfiniteQuery(e){return e.behavior=Ep(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(At).catch(At)}ensureInfiniteQueryData(e){return e.behavior=Ep(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ya.isOnline()?P(this,Bn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,Ee)}getMutationCache(){return P(this,Bn)}getDefaultOptions(){return P(this,Wn)}setDefaultOptions(e){G(this,Wn,e)}setQueryDefaults(e,t){P(this,$o).set(si(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,$o).values()],n={};return t.forEach(r=>{ii(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,Mo).set(si(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Mo).values()],n={};return t.forEach(r=>{ii(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,Wn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ef(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===kf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,Wn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,Ee).clear(),P(this,Bn).clear()}},Ee=new WeakMap,Bn=new WeakMap,Wn=new WeakMap,$o=new WeakMap,Mo=new WeakMap,Hn=new WeakMap,Do=new WeakMap,Fo=new WeakMap,vm),Jk=y.createContext(void 0),Xk=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),b.jsx(Jk.Provider,{value:e,children:t}));/**
92 * @remix-run/router v1.23.0
93 *
94 * Copyright (c) Remix Software Inc.
95 *
96 * This source code is licensed under the MIT license found in the
97 * LICENSE.md file in the root directory of this source tree.
98 *
99 * @license MIT
100 */function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ai.apply(this,arguments)}var qn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}
vendor: 4,857 bytes, line 100
100)(qn||(qn={}));const Cp="popstate";function Zk(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=r.location;return Bc("",{pathname:s,search:i,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Ja(o)}return tC(t,n,null,e)}function Re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function i0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function eC(){return Math.random().toString(36).substr(2,8)}function Tp(e,t){return{usr:e.state,key:e.key,idx:t}}function Bc(e,t,n,r){return n===void 0&&(n=null),ai({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?rs(t):t,{state:n,key:t&&t.key||r||eC()})}function Ja(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function rs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function tC(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=qn.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(ai({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function d(){a=qn.Pop;let w=c(),v=w==null?null:w-u;u=w,l&&l({action:a,location:p.location,delta:v})}function h(w,v){a=qn.Push;let m=Bc(p.location,w,v);u=c()+1;let g=Tp(m,u),S=p.createHref(m);try{i.pushState(g,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(S)}s&&l&&l({action:a,location:p.location,delta:1})}function f(w,v){a=qn.Replace;let m=Bc(p.location,w,v);u=c();let g=Tp(m,u),S=p.createHref(m);i.replaceState(g,"",S),s&&l&&l({action:a,location:p.location,delta:0})}function x(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:Ja(w);return m=m.replace(/ $/,"%20"),Re(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let p={get action(){return a},get location(){return e(o,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Cp,d),l=w,()=>{o.removeEventListener(Cp,d),l=null}},createHref(w){return t(o,w)},createURL:x,encodeLocation(w){let v=x(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:f,go(w){return i.go(w)}};return p}var Pp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pp||(Pp={}));function nC(e,t,n){return n===void 0&&(n="/"),rC(e,t,n,!1)}function rC(e,t,n,r){let o=typeof t=="string"?rs(t):t,s=Cf(o.pathname||"/",n);if(s==null)return null;let i=a0(e);oC(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=mC(s);a=hC(i[l],u,r)}return a}function a0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(Re(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=nr([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(Re(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),a0(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:dC(u,s.index),routesMeta:c})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of l0(s.path))o(s,i,l)}),t}function l0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=l0(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function oC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const sC=/^:[\w-]+$/,iC=3,aC=2,lC=1,uC=10,cC=-2,Rp=e=>e==="*";function dC(e,t){let n=e.split("/"),r=n.length;return n.some(Rp)&&(r+=cC),t&&(r+=aC),n.filter(o=>!Rp(o)).reduce((o,s)=>o+(sC.test(s)?iC:s===""?lC:uC),r)}function fC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function hC(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=s==="/"?t:t.slice(s.length)||"/",d=Op({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Op({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
vendor: 13,456 bytes, lines 100-118
100Object.assign(o,d.params),i.push({params:o,pathname:nr([s,d.pathname]),pathnameBase:wC(nr([s,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(s=nr([s,d.pathnameBase]))}return i}function Op(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=pC(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:h,isOptional:f}=c;if(h==="*"){let p=a[d]||"";i=s.slice(0,s.length-p.length).replace(/(.)\/+$/,"$1")}const x=a[d];return f&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function pC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),i0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function mC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return i0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Cf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function gC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?rs(e):e;return{pathname:n?n.startsWith("/")?n:vC(n,t):t,search:xC(r),hash:bC(o)}}function vC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function bu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function yC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function u0(e,t){let n=yC(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function c0(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=rs(e):(o=ai({},e),Re(!o.pathname||!o.pathname.includes("?"),bu("?","pathname","search",o)),Re(!o.pathname||!o.pathname.includes("#"),bu("#","pathname","hash",o)),Re(!o.search||!o.search.includes("#"),bu("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=gC(o,a),u=i&&i!=="/"&&i.endsWith("/"),c=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const nr=e=>e.join("/").replace(/\/\/+/g,"/"),wC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function SC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const d0=["post","put","patch","delete"];new Set(d0);const _C=["get",...d0];new Set(_C);/**
101 * React Router v6.30.1
102 *
103 * Copyright (c) Remix Software Inc.
104 *
105 * This source code is licensed under the MIT license found in the
106 * LICENSE.md file in the root directory of this source tree.
107 *
108 * @license MIT
109 */function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},li.apply(this,arguments)}const Tf=y.createContext(null),EC=y.createContext(null),Vr=y.createContext(null),Rl=y.createContext(null),Kr=y.createContext({outlet:null,matches:[],isDataRoute:!1}),f0=y.createContext(null);function kC(e,t){let{relative:n}=t===void 0?{}:t;xi()||Re(!1);let{basename:r,navigator:o}=y.useContext(Vr),{hash:s,pathname:i,search:a}=m0(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:nr([r,i])),o.createHref({pathname:l,search:a,hash:s})}function xi(){return y.useContext(Rl)!=null}function bi(){return xi()||Re(!1),y.useContext(Rl).location}function h0(e){y.useContext(Vr).static||y.useLayoutEffect(e)}function p0(){let{isDataRoute:e}=y.useContext(Kr);return e?DC():CC()}function CC(){xi()||Re(!1);let e=y.useContext(Tf),{basename:t,future:n,navigator:r}=y.useContext(Vr),{matches:o}=y.useContext(Kr),{pathname:s}=bi(),i=JSON.stringify(u0(o,n.v7_relativeSplatPath)),a=y.useRef(!1);return h0(()=>{a.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=c0(u,JSON.parse(i),s,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:nr([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,i,s,e])}function m0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Vr),{matches:o}=y.useContext(Kr),{pathname:s}=bi(),i=JSON.stringify(u0(o,r.v7_relativeSplatPath));return y.useMemo(()=>c0(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function TC(e,t){return PC(e,t)}function PC(e,t,n,r){xi()||Re(!1);let{navigator:o}=y.useContext(Vr),{matches:s}=y.useContext(Kr),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=bi(),c;if(t){var d;let w=typeof t=="string"?rs(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||Re(!1),c=w}else c=u;let h=c.pathname||"/",f=h;if(l!=="/"){let w=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=nC(e,{pathname:f}),p=AC(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:nr([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:nr([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&p?y.createElement(Rl.Provider,{value:{location:li({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:qn.Pop}},p):p}function RC(){let e=MC(),t=SC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const OC=y.createElement(RC,null);class NC extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Kr.Provider,{value:this.props.routeContext},y.createElement(f0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jC(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(Tf);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Kr.Provider,{value:t},r)}function AC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||Re(!1),i=i.slice(0,Math.min(i.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<i.length;c++){let d=i[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:h,errors:f}=n,x=d.route.loader&&h[d.route.id]===void 0&&(!f||f[d.route.id]===void 0);if(d.route.lazy||x){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,d,h)=>{let f,x=!1,p=null,w=null;n&&(f=a&&d.route.id?a[d.route.id]:void 0,p=d.route.errorElement||OC,l&&(u<0&&h===0?(x=!0,w=null):u===h&&(x=!0,w=d.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,h+1)),m=()=>{let g;return f?g=p:x?g=w:d.route.Component?g=y.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,y.createElement(jC,{match:d,routeContext:{outlet:c,matches:v,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?y.createElement(NC,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var g0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(g0||{}),Xa=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Xa||{});function IC(e){let t=y.useContext(Tf);return t||Re(!1),t}function LC(e){let t=y.useContext(EC);return t||Re(!1),t}function $C(e){let t=y.useContext(Kr);return t||Re(!1),t}function v0(e){let t=$C(),n=t.matches[t.matches.length-1];return n.route.id||Re(!1),n.route.id}function MC(){var e;let t=y.useContext(f0),n=LC(Xa.UseRouteError),r=v0(Xa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function DC(){let{router:e}=IC(g0.UseNavigateStable),t=v0(Xa.UseNavigateStable),n=y.useRef(!1);return h0(()=>{n.current=!0}),y.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,li({fromRouteId:t},s)))},[e,t])}function FC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ya(e){Re(!1)}function UC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=qn.Pop,navigator:s,static:i=!1,future:a}=e;xi()&&Re(!1);let l=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:l,navigator:s,static:i,future:li({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=rs(r));let{pathname:c="/",search:d="",hash:h="",state:f=null,key:x="default"}=r,p=y.useMemo(()=>{let w=Cf(c,l);return w==null?null:{location:{pathname:w,search:d,hash:h,state:f,key:x},navigationType:o}},[l,c,d,h,f,x,o]);return p==null?null:y.createElement(Vr.Provider,{value:u},y.createElement(Rl.Provider,{children:n,value:p}))}function zC(e){let{children:t,location:n}=e;return TC(Wc(t),n)}new Promise(()=>{});function Wc(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,o)=>{if(!y.isValidElement(r))return;let s=[...t,o];if(r.type===y.Fragment){n.push.apply(n,Wc(r.props.children,s));return}r.type!==ya&&Re(!1),!r.props.index||!r.props.children||Re(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Wc(r.props.children,s)),n.push(i)}),n}/**
110 * React Router DOM v6.30.1
111 *
112 * Copyright (c) Remix Software Inc.
113 *
114 * This source code is licensed under the MIT license found in the
115 * LICENSE.md file in the root directory of this source tree.
116 *
117 * @license MIT
118 */function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hc.apply(this,arguments)}function BC(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function WC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function HC(e,t){return e.button===0&&(!t||t==="_self")&&!WC(e)}const VC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],KC="6";try{window.__reactRouterVersion=KC}catch{}const qC="startTransition",Np=pd[qC];function GC(e){let{basename:t,children:n,future:r,window:o}=e,s=y.useRef();s.current==null&&(s.current=Zk({window:o,v5Compat:!0}));let i=s.current,[a,l]=y.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},c=y.useCallback(d=>{u&&Np?Np(()=>l(d)):l(d)},[l,u]);return y.useLayoutEffect(()=>i.listen(c),[i,c]),y.useEffect(()=>
118FC(r),[r]),y.createElement(UC,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const QC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",YC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,JC=y.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,h=BC(t,VC),{basename:f}=y.useContext(Vr),x,p=!1;if(typeof u=="string"&&YC.test(u)&&(x=u,QC))try{let g=new URL(window.location.href),S=u.startsWith("//")?new URL(g.protocol+u):new URL(u),_=Cf(S.pathname,f);S.origin===g.origin&&_!=null?u=_+S.search+S.hash:p=!0}catch{}let w=kC(u,{relative:o}),v=XC(u,{replace:i,state:a,target:l,preventScrollReset:c,relative:o,viewTransition:d});function m(g){r&&r(g),g.defaultPrevented||v(g)}return y.createElement("a",Hc({},h,{href:x||w,onClick:p||s?r:m,ref:n,target:l}))});var jp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jp||(jp={}));var Ap;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ap||(Ap={}));function XC(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,viewTransition:a}=t===void 0?{}:t,l=p0(),u=bi(),c=m0(e,{relative:i});return y.useCallback(d=>{if(HC(d,n)){d.preventDefault();let h=r!==void 0?r:Ja(u)===Ja(c);l(e,{replace:h,state:o,preventScrollReset:s,relative:i,viewTransition:a})}},[u,l,c,r,o,n,e,s,i,a])}const ZC=df("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-soft",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",hero:"bg-hero-gradient text-primary-foreground font-semibold shadow-medium hover:shadow-strong transform transition-all duration-300 hover:scale-[1.02]",accent:"bg-hero-accent-gradient text-accent-foreground font-semibold shadow-medium hover:shadow-strong transform transition-all duration-300 hover:scale-[1.02]",form:"bg-primary text-primary-foreground hover:bg-primary-dark shadow-soft transition-all duration-200"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Pf=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?OS:"button";return b.jsx(i,{className:ye(ZC({variant:t,size:n,className:e})),ref:s,...o})});Pf.displayName="Button";const wa=y.forwardRef(({className:e,type:t,...n},r)=>b.jsx("input",{type:t,className:ye("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));wa.displayName="Input";var eT="Label",y0=y.forwardRef((e,t)=>b.jsx(le.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));y0.displayName=eT;var w0=y0;const tT=df("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ao=y.forwardRef(({className:e,...t},n)=>b.jsx(w0,{ref:n,className:ye(tT(),e),...t}));ao.displayName=w0.displayName;const x0=y.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:ye("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
vendor: 5,831 bytes, line 118
118x0.displayName="Card";const b0=y.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:ye("flex flex-col space-y-1.5 p-6",e),...t}));b0.displayName="CardHeader";const S0=y.forwardRef(({className:e,...t},n)=>b.jsx("h3",{ref:n,className:ye("text-2xl font-semibold leading-none tracking-tight",e),...t}));S0.displayName="CardTitle";const _0=y.forwardRef(({className:e,...t},n)=>b.jsx("p",{ref:n,className:ye("text-sm text-muted-foreground",e),...t}));_0.displayName="CardDescription";const E0=y.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:ye("p-6 pt-0",e),...t}));E0.displayName="CardContent";const nT=y.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:ye("flex items-center p-6 pt-0",e),...t}));nT.displayName="CardFooter";function Ip(e,[t,n]){return Math.min(n,Math.max(t,e))}var rT=y.createContext(void 0);function oT(e){const t=y.useContext(rT);return e||t||"ltr"}var Su=0;function sT(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Lp()),document.body.insertAdjacentElement("beforeend",e[1]??Lp()),Su++,()=>{Su===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Su--}},[])}function Lp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _u="focusScope.autoFocusOnMount",Eu="focusScope.autoFocusOnUnmount",$p={bubbles:!1,cancelable:!0},iT="FocusScope",k0=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=y.useState(null),u=Bt(o),c=Bt(s),d=y.useRef(null),h=Ce(t,p=>l(p)),f=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let p=function(g){if(f.paused||!a)return;const S=g.target;a.contains(S)?d.current=S:jn(d.current,{select:!0})},w=function(g){if(f.paused||!a)return;const S=g.relatedTarget;S!==null&&(a.contains(S)||jn(d.current,{select:!0}))},v=function(g){if(document.activeElement===document.body)for(const _ of g)_.removedNodes.length>0&&jn(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",w);const m=new MutationObserver(v);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",w),m.disconnect()}}},[r,a,f.paused]),y.useEffect(()=>{if(a){Dp.add(f);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(_u,$p);a.addEventListener(_u,u),a.dispatchEvent(v),v.defaultPrevented||(aT(fT(C0(a)),{select:!0}),document.activeElement===p&&jn(a))}return()=>{a.removeEventListener(_u,u),setTimeout(()=>{const v=new CustomEvent(Eu,$p);a.addEventListener(Eu,c),a.dispatchEvent(v),v.defaultPrevented||jn(p??document.body,{select:!0}),a.removeEventListener(Eu,c),Dp.remove(f)},0)}}},[a,u,c,f]);const x=y.useCallback(p=>{if(!n&&!r||f.paused)return;const w=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(w&&v){const m=p.currentTarget,[g,S]=lT(m);g&&S?!p.shiftKey&&v===S?(p.preventDefault(),n&&jn(g,{select:!0})):p.shiftKey&&v===g&&(p.preventDefault(),n&&jn(S,{select:!0})):v===m&&p.preventDefault()}},[n,r,f.paused]);return b.jsx(le.div,{tabIndex:-1,...i,ref:h,onKeyDown:x})});k0.displayName=iT;function aT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(jn(r,{select:t}),document.activeElement!==n)return}function lT(e){const t=C0(e),n=Mp(t,e),r=Mp(t.reverse(),e);return[n,r]}function C0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Mp(e,t){for(const n of e)if(!uT(n,{upTo:t}))return n}function uT(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cT(e){return e instanceof HTMLInputElement&&"select"in e}function jn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cT(e)&&t&&e.select()}}var Dp=dT();function dT(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Fp(e,t),e.unshift(t)},remove(t){var n;e=Fp(e,t),(n=e[0])==null||n.resume()}}}function Fp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function fT(e){return e.filter(t=>t.tagName!=="A")}function hT(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var pT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zr=new WeakMap,Qi=new WeakMap,Yi={},ku=0,T0=function(e){return e&&(e.host||T0(e.parentNode))},mT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=T0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},gT=function(e,t,n,r){var o=mT(t,Array.isArray(e)?e:[e]);Yi[n]||(Yi[n]=new WeakMap);var s=Yi[n],i=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))c(h);else try{var f=h.getAttribute(r),x=f!==null&&f!=="false",p=(Zr.get(h)||0)+1,w=(s.get(h)||0)+1;Zr.set(h,p),s.set(h,w),i.push(h),p===1&&x&&Qi.set(h,!0),w===1&&h.setAttribute(n,"true"),x||h.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};
vendor: 6,072 bytes, lines 118-133
118return c(t),a.clear(),ku++,function(){i.forEach(function(d){var h=Zr.get(d)-1,f=s.get(d)-1;Zr.set(d,h),s.set(d,f),h||(Qi.has(d)||d.removeAttribute(r),Qi.delete(d)),f||d.removeAttribute(n)}),ku--,ku||(Zr=new WeakMap,Zr=new WeakMap,Qi=new WeakMap,Yi={})}},vT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=pT(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),gT(r,o,n,"aria-hidden")):function(){return null}},Xt=function(){return Xt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Xt.apply(this,arguments)};function P0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function yT(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var xa="right-scroll-bar-position",ba="width-before-scroll-bar",wT="with-scroll-bars-hidden",xT="--removed-body-scroll-bar-size";function Cu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bT(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ST=typeof window<"u"?y.useLayoutEffect:y.useEffect,Up=new WeakMap;function _T(e,t){var n=bT(null,function(r){return e.forEach(function(o){return Cu(o,r)})});return ST(function(){var r=Up.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Cu(a,null)}),s.forEach(function(a){o.has(a)||Cu(a,i)})}Up.set(n,e)},[e]),n}function ET(e){return e}function kT(e,t){t===void 0&&(t=ET);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var c=i;i=[],c.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){i.push(c),u()},filter:function(c){return i=i.filter(c),n}}}};return o}function CT(e){e===void 0&&(e={});var t=kT(null);return t.options=Xt({async:!0,ssr:!1},e),t}var R0=function(e){var t=e.sideCar,n=P0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,Xt({},n))};R0.isSideCarExport=!0;function TT(e,t){return e.useMedium(t),R0}var O0=CT(),Tu=function(){},Ol=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:Tu,onWheelCapture:Tu,onTouchMoveCapture:Tu}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,h=e.sideCar,f=e.noRelative,x=e.noIsolation,p=e.inert,w=e.allowPinchZoom,v=e.as,m=v===void 0?"div":v,g=e.gapMode,S=P0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,E=_T([n,t]),k=Xt(Xt({},S),o);return y.createElement(y.Fragment,null,c&&y.createElement(_,{sideCar:O0,removeScrollBar:u,shards:d,noRelative:f,noIsolation:x,inert:p,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:g}),i?y.cloneElement(y.Children.only(a),Xt(Xt({},k),{ref:E})):y.createElement(m,Xt({},k,{className:l,ref:E}),a))});Ol.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ol.classNames={fullWidth:ba,zeroRight:xa};var PT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function RT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PT();return t&&e.setAttribute("nonce",t),e}function OT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function NT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=RT())&&(OT(t,n),NT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},AT=function(){var e=jT();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},N0=function(){var e=AT(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},IT={left:0,top:0,right:0,gap:0},Pu=function(e){return parseInt(e||"",10)||0},LT=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Pu(n),Pu(r),Pu(o)]},$T=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return IT;var t=LT(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},MT=N0(),No="data-scroll-locked",DT=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
119  .`.concat(wT,` {
120   overflow: hidden `).concat(r,`;
121   padding-right: `).concat(a,"px ").concat(r,`;
122  }
123  body[`).concat(No,`] {
124    overflow: hidden `).concat(r,`;
125    overscroll-behavior: contain;
126    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
127    padding-left: `.concat(o,`px;
128    padding-top: `).concat(s,`px;
129    padding-right: `).concat(i,`px;
130    margin-left:0;
131    margin-top:0;
132    margin-right: `).concat(a,"px ").concat(r,`;
133    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
133")].filter(Boolean).join(""),`
134  }
135  
136  .`).concat(xa,` {
137    right: `).concat(a,"px ").concat(r,`;
138  }
139  
140  .`).concat(ba,` {
141    margin-right: `).concat(a,"px ").concat(r,`;
142  }
143  
144  .`).concat(xa," .").concat(xa,` {
145    right: 0 `).concat(r,`;
146  }
147  
148  .`).concat(ba," .").concat(ba,` {
149    margin-right: 0 `).concat(r,`;
150  }
151  
152  body[`).concat(No,`] {
153    `).concat(xT,": ").concat(a,`px;
154  }
155`)},zp=function(){var e=parseInt(document.body.getAttribute(No)||"0",10);return isFinite(e)?e:0},FT=function(){y.useEffect(function(){return document.body.setAttribute(No,(zp()+1).toString()),function(){var e=zp()-1;e<=0?document.body.removeAttribute(No):document.body.setAttribute(No,e.toString())}},[])},UT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;FT();var s=y.useMemo(function(){return $T(o)},[o]);return y.createElement(MT,{styles:DT(s,!t,o,n?"":"!important")})},Vc=!1;if(typeof window<"u")try{var Ji=Object.defineProperty({},"passive",{get:function(){return Vc=!0,!0}});window.addEventListener("test",Ji,Ji),window.removeEventListener("test",Ji,Ji)}catch{Vc=!1}var eo=Vc?{passive:!1}:!1,zT=function(e){return e.tagName==="TEXTAREA"},j0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!zT(e)&&n[t]==="visible")},BT=function(e){return j0(e,"overflowY")},WT=function(e){return j0(e,"overflowX")},Bp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=A0(e,r);if(o){var s=I0(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},HT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},VT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},A0=function(e,t){return e==="v"?BT(t):WT(t)},I0=function(e,t){return e==="v"?HT(t):VT(t)},KT=function(e,t){return e==="h"&&t==="rtl"?-1:1},qT=function(e,t,n,r,o){var s=KT(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,c=i>0,d=0,h=0;do{if(!a)break;var f=I0(e,a),x=f[0],p=f[1],w=f[2],v=p-w-s*x;(x||v)&&A0(e,a)&&(d+=v,h+=x);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(h)<1||!o))&&(u=!0),u},Xi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wp=function(e){return[e.deltaX,e.deltaY]},Hp=function(e){return e&&"current"in e?e.current:e},GT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},QT=function(e){return`
156  .block-interactivity-`.concat(e,` {pointer-events: none;}
157  .allow-interactivity-`).concat(e,` {pointer-events: all;}
158`)},YT=0,to=[];function JT(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),o=y.useState(YT++)[0],s=y.useState(N0)[0],i=y.useRef(e);y.useEffect(function(){i.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=yT([e.lockRef.current],(e.shards||[]).map(Hp),!0).filter(Boolean);return p.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(p,w){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var v=Xi(p),m=n.current,g="deltaX"in p?p.deltaX:m[0]-v[0],S="deltaY"in p?p.deltaY:m[1]-v[1],_,E=p.target,k=Math.abs(g)>Math.abs(S)?"h":"v";if("touches"in p&&k==="h"&&E.type==="range")return!1;var T=Bp(k,E);if(!T)return!0;if(T?_=k:(_=k==="v"?"h":"v",T=Bp(k,E)),!T)return!1;if(!r.current&&"changedTouches"in p&&(g||S)&&(r.current=_),!_)return!0;var N=r.current||_;return qT(N,w,p,N==="h"?g:S,!0)},[]),l=y.useCallback(function(p){var w=p;if(!(!to.length||to[to.length-1]!==s)){var v="deltaY"in w?Wp(w):Xi(w),m=t.current.filter(function(_){return _.name===w.type&&(_.target===w.target||w.target===_.shadowParent)&&GT(_.delta,v)}
vendor: 4,281 bytes, line 158
158)[0];if(m&&m.should){w.cancelable&&w.preventDefault();return}if(!m){var g=(i.current.shards||[]).map(Hp).filter(Boolean).filter(function(_){return _.contains(w.target)}),S=g.length>0?a(w,g[0]):!i.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),u=y.useCallback(function(p,w,v,m){var g={name:p,delta:w,target:v,should:m,shadowParent:XT(v)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(S){return S!==g})},1)},[]),c=y.useCallback(function(p){n.current=Xi(p),r.current=void 0},[]),d=y.useCallback(function(p){u(p.type,Wp(p),p.target,a(p,e.lockRef.current))},[]),h=y.useCallback(function(p){u(p.type,Xi(p),p.target,a(p,e.lockRef.current))},[]);y.useEffect(function(){return to.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,eo),document.addEventListener("touchmove",l,eo),document.addEventListener("touchstart",c,eo),function(){to=to.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,eo),document.removeEventListener("touchmove",l,eo),document.removeEventListener("touchstart",c,eo)}},[]);var f=e.removeScrollBar,x=e.inert;return y.createElement(y.Fragment,null,x?y.createElement(s,{styles:QT(o)}):null,f?y.createElement(UT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function XT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ZT=TT(O0,JT);var L0=y.forwardRef(function(e,t){return y.createElement(Ol,Xt({},e,{ref:t,sideCar:ZT}))});L0.classNames=Ol.classNames;var eP=[" ","Enter","ArrowUp","ArrowDown"],tP=[" ","Enter"],Ur="Select",[Nl,jl,nP]=$v(Ur),[os,lN]=vi(Ur,[nP,El]),Al=El(),[rP,cr]=os(Ur),[oP,sP]=os(Ur),$0=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:h,required:f,form:x}=e,p=Al(t),[w,v]=y.useState(null),[m,g]=y.useState(null),[S,_]=y.useState(!1),E=oT(u),[k,T]=Oc({prop:r,defaultProp:o??!1,onChange:s,caller:Ur}),[N,j]=Oc({prop:i,defaultProp:a,onChange:l,caller:Ur}),U=y.useRef(null),L=w?x||!!w.closest("form"):!0,[W,I]=y.useState(new Set),V=Array.from(W).map(F=>F.props.value).join(";");return b.jsx(lk,{...p,children:b.jsxs(rP,{required:f,scope:t,trigger:w,onTriggerChange:v,valueNode:m,onValueNodeChange:g,valueNodeHasChildren:S,onValueNodeHasChildrenChange:_,contentId:hf(),value:N,onValueChange:j,open:k,onOpenChange:T,dir:E,triggerPointerDownPosRef:U,disabled:h,children:[b.jsx(Nl.Provider,{scope:t,children:b.jsx(oP,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(F=>{I(B=>new Set(B).add(F))},[]),onNativeOptionRemove:y.useCallback(F=>{I(B=>{const C=new Set(B);return C.delete(F),C})},[]),children:n})}),L?b.jsxs(iw,{"aria-hidden":!0,required:f,tabIndex:-1,name:c,autoComplete:d,value:N,onChange:F=>j(F.target.value),disabled:h,form:x,children:[N===void 0?b.jsx("option",{value:""}):null,Array.from(W)]},V):null]})})};$0.displayName=Ur;var M0="SelectTrigger",D0=y.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Al(n),i=cr(M0,n),a=i.disabled||r,l=Ce(t,i.onTriggerChange),u=jl(n),c=y.useRef("touch"),[d,h,f]=lw(p=>{const w=u().filter(g=>!g.disabled),v=w.find(g=>g.value===i.value),m=uw(w,p,v);m!==void 0&&i.onValueChange(m.value)}),x=p=>{a||(i.onOpenChange(!0),f()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return b.jsx(By,{asChild:!0,...s,children:b.jsx(le.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":aw(i.value)?"":void 0,...o,ref:l,onClick:ee(o.onClick,p=>{p.currentTarget.focus(),c.current!=="mouse"&&x(p)}),onPointerDown:ee(o.onPointerDown,p=>{c.current=p.pointerType;const w=p.target;w.hasPointerCapture(p.pointerId)&&w.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(x(p),p.preventDefault())}),onKeyDown:ee(o.onKeyDown,p=>{const w=d.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(w&&p.key===" ")&&eP.includes(p.key)&&(x(),p.preventDefault())})})})});D0.displayName=M0;var F0="SelectValue",U0=y.forwardRef((e,t)=>
vendor: 15,537 bytes, line 158
158{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=cr(F0,n),{onValueNodeHasChildrenChange:u}=l,c=s!==void 0,d=Ce(t,l.onValueNodeChange);return Fe(()=>{u(c)},[u,c]),b.jsx(le.span,{...a,ref:d,style:{pointerEvents:"none"},children:aw(l.value)?b.jsx(b.Fragment,{children:i}):s})});U0.displayName=F0;var iP="SelectIcon",z0=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return b.jsx(le.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});z0.displayName=iP;var aP="SelectPortal",B0=e=>b.jsx(sf,{asChild:!0,...e});B0.displayName=aP;var zr="SelectContent",W0=y.forwardRef((e,t)=>{const n=cr(zr,e.__scopeSelect),[r,o]=y.useState();if(Fe(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Hr.createPortal(b.jsx(H0,{scope:e.__scopeSelect,children:b.jsx(Nl.Slot,{scope:e.__scopeSelect,children:b.jsx("div",{children:e.children})})}),s):null}return b.jsx(V0,{...e,ref:t})});W0.displayName=zr;var Nt=10,[H0,dr]=os(zr),lP="SelectContentImpl",uP=ni("SelectContent.RemoveScroll"),V0=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:h,collisionPadding:f,sticky:x,hideWhenDetached:p,avoidCollisions:w,...v}=e,m=cr(zr,n),[g,S]=y.useState(null),[_,E]=y.useState(null),k=Ce(t,M=>S(M)),[T,N]=y.useState(null),[j,U]=y.useState(null),L=jl(n),[W,I]=y.useState(!1),V=y.useRef(!1);y.useEffect(()=>{if(g)return vT(g)},[g]),sT();const F=y.useCallback(M=>{const[ie,..._e]=L().map(re=>re.ref.current),[se]=_e.slice(-1),te=document.activeElement;for(const re of M)if(re===te||(re==null||re.scrollIntoView({block:"nearest"}),re===ie&&_&&(_.scrollTop=0),re===se&&_&&(_.scrollTop=_.scrollHeight),re==null||re.focus(),document.activeElement!==te))return},[L,_]),B=y.useCallback(()=>F([T,g]),[F,T,g]);y.useEffect(()=>{W&&B()},[W,B]);const{onOpenChange:C,triggerPointerDownPosRef:R}=m;y.useEffect(()=>{if(g){let M={x:0,y:0};const ie=se=>{var te,re;M={x:Math.abs(Math.round(se.pageX)-(((te=R.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(se.pageY)-(((re=R.current)==null?void 0:re.y)??0))}},_e=se=>{M.x<=10&&M.y<=10?se.preventDefault():g.contains(se.target)||C(!1),document.removeEventListener("pointermove",ie),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",_e,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",_e,{capture:!0})}}},[g,C,R]),y.useEffect(()=>{const M=()=>C(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[C]);const[$,H]=lw(M=>{const ie=L().filter(te=>!te.disabled),_e=ie.find(te=>te.ref.current===document.activeElement),se=uw(ie,M,_e);se&&setTimeout(()=>se.ref.current.focus())}),z=y.useCallback((M,ie,_e)=>{const se=!V.current&&!_e;(m.value!==void 0&&m.value===ie||se)&&(N(M),se&&(V.current=!0))},[m.value]),Y=y.useCallback(()=>g==null?void 0:g.focus(),[g]),K=y.useCallback((M,ie,_e)=>{const se=!V.current&&!_e;(m.value!==void 0&&m.value===ie||se)&&U(M)},[m.value]),fe=r==="popper"?Kc:K0,Se=fe===Kc?{side:a,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:h,collisionPadding:f,sticky:x,hideWhenDetached:p,avoidCollisions:w}:{};return b.jsx(H0,{scope:n,content:g,viewport:_,onViewportChange:E,itemRefCallback:z,selectedItem:T,onItemLeave:Y,itemTextRefCallback:K,focusSelectedItem:B,selectedItemText:j,position:r,isPositioned:W,searchRef:$,children:b.jsx(L0,{as:uP,allowPinchZoom:!0,children:b.jsx(k0,{asChild:!0,trapped:m.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:ee(o,M=>{var ie;(ie=m.trigger)==null||ie.focus({preventScroll:!0}),M.preventDefault()}),children:b.jsx(yl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:b.jsx(fe,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:M=>M.preventDefault(),...v,...Se,onPlaced:()=>I(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:ee(v.onKeyDown,M=>{const ie=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!ie&&M.key.length===1&&H(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let se=L().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(M.key)&&(se=se.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const te=M.target,re=se.indexOf(te);se=se.slice(re+1)}setTimeout(()=>F(se)),M.preventDefault()}})})})})})})});V0.displayName=lP;var cP="SelectItemAlignedPosition",K0=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=cr(zr,n),i=dr(zr,n),[a,l]=y.useState(null),[u,c]=y.useState(null),d=Ce(t,k=>c(k)),h=jl(n),f=y.useRef(!1),x=y.useRef(!0),{viewport:p,selectedItem:w,selectedItemText:v,focusSelectedItem:m}=i,g=y.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&p&&w&&v){const k=s.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),j=v.getBoundingClientRect();if(s.dir!=="rtl"){const te=j.left-T.left,re=N.left-te,Ue=k.left-re,mt=k.width+Ue,hr=Math.max(mt,T.width),_n=window.innerWidth-Nt,pr=Ip(re,[Nt,Math.max(Nt,_n-hr)]);a.style.minWidth=mt+"px",a.style.left=pr+"px"}else{const te=T.right-j.right,re=window.innerWidth-N.right-te,Ue=window.innerWidth-k.right-re,mt=k.width+Ue,hr=Math.max(mt,T.width),_n=window.innerWidth-Nt,pr=Ip(re,[Nt,Math.max(Nt,_n-hr)]);a.style.minWidth=mt+"px",a.style.right=pr+"px"}const U=h(),L=window.innerHeight-Nt*2,W=p.scrollHeight,I=window.getComputedStyle(u),V=parseInt(I.borderTopWidth,10),F=parseInt(I.paddingTop,10),B=parseInt(I.borderBottomWidth,10),C=parseInt(I.paddingBottom,10),R=V+F+W+C+B,$=Math.min(w.offsetHeight*5,R),H=window.getComputedStyle(p),z=parseInt(H.paddingTop,10),Y=parseInt(H.paddingBottom,10),K=k.top+k.height/2-Nt,fe=L-K,Se=w.offsetHeight/2,M=w.offsetTop+Se,ie=V+F+M,_e=R-ie;if(ie<=K){const te=U.length>0&&w===U[U.length-1].ref.current;a.style.bottom="0px";const re=u.clientHeight-p.offsetTop-p.offsetHeight,Ue=Math.max(fe,Se+(te?Y:0)+re+B),mt=ie+Ue;a.style.height=mt+"px"}else{const te=U.length>0&&w===U[0].ref.current;a.style.top="0px";const Ue=Math.max(K,V+p.offsetTop+(te?z:0)+Se)+_e;a.style.height=Ue+"px",p.scrollTop=ie-K+p.offsetTop}a.style.margin=`${Nt}px 0`,a.style.minHeight=$+"px",a.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>f.current=!0)}},[h,s.trigger,s.valueNode,a,u,p,w,v,s.dir,r]);Fe(()=>g(),[g]);const[S,_]=y.useState();Fe(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const E=y.useCallback(k=>{k&&x.current===!0&&(g(),m==null||m(),x.current=!1)},[g,m]);return b.jsx(fP,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:f,onScrollButtonChange:E,children:b.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:b.jsx(le.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});K0.displayName=cP;var dP="SelectPopperPosition",Kc=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Nt,...s}=e,i=Al(n);return b.jsx(Wy,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Kc.displayName=dP;var[fP,Rf]=os(zr,{}),qc="SelectViewport",q0=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=dr(qc,n),i=Rf(qc,n),a=Ce(t,s.onViewportChange),l=y.useRef(0);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),b.jsx(Nl.Slot,{scope:n,children:b.jsx(le.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ee(o.onScroll,u=>{const c=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=i;if(h!=null&&h.current&&d){const f=Math.abs(l.current-c.scrollTop);if(f>0){const x=window.innerHeight-Nt*2,p=parseFloat(d.style.minHeight),w=parseFloat(d.style.height),v=Math.max(p,w);if(v<x){const m=v+f,g=Math.min(x,m),S=m-g;d.style.height=g+"px",d.style.bottom==="0px"&&(c.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=c.scrollTop})})})]})});q0.displayName=qc;var G0="SelectGroup",[hP,pP]=os(G0),mP=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=hf();return b.jsx(hP,{scope:n,id:o,children:b.jsx(le.div,{role:"group","aria-labelledby":o,...r,ref:t})})});mP.displayName=G0;var Q0="SelectLabel",Y0=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=pP(Q0,n);return b.jsx(le.div,{id:o.id,...r,ref:t})});Y0.displayName=Q0;var Za="SelectItem",[gP,J0]=os(Za),X0=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=cr(Za,n),l=dr(Za,n),u=a.value===r,[c,d]=y.useState(s??""),[h,f]=y.useState(!1),x=Ce(t,m=>{var g;return(g=l.itemRefCallback)==null?void 0:g.call(l,m,r,o)}),p=hf(),w=y.useRef("touch"),v=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return b.jsx(gP,{scope:n,value:r,disabled:o,textId:p,isSelected:u,onItemTextChange:y.useCallback(m=>{d(g=>g||((m==null?void 0:m.textContent)??"").trim())},[]),children:b.jsx(Nl.ItemSlot,{scope:n,value:r,disabled:o,textValue:c,children:b.jsx(le.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:x,onFocus:ee(i.onFocus,()=>f(!0)),onBlur:ee(i.onBlur,()=>f(!1)),onClick:ee(i.onClick,()=>{w.current!=="mouse"&&v()}),onPointerUp:ee(i.onPointerUp,()=>{w.current==="mouse"&&v()}),onPointerDown:ee(i.onPointerDown,m=>{w.current=m.pointerType}),onPointerMove:ee(i.onPointerMove,m=>{var g;w.current=m.pointerType,o?(g=l.onItemLeave)==null||g.call(l):w.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ee(i.onPointerLeave,m=>{var g;m.currentTarget===document.activeElement&&((g=l.onItemLeave)==null||g.call(l))}),onKeyDown:ee(i.onKeyDown,m=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&m.key===" "||(tP.includes(m.key)&&v(),m.key===" "&&m.preventDefault())})})})})});X0.displayName=Za;var Es="SelectItemText",Z0=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=cr(Es,n),a=dr(Es,n),l=J0(Es,n),u=sP(Es,n),[c,d]=y.useState(null),h=Ce(t,v=>d(v),l.onItemTextChange,v=>{var m;return(m=a.itemTextRefCallback)==null?void 0:m.call(a,v,l.value,l.disabled)}),f=c==null?void 0:c.textContent,x=y.useMemo(()=>b.jsx("option",{value:l.value,disabled:l.disabled,children:f},l.value),[l.disabled,l.value,f]),{onNativeOptionAdd:p,onNativeOptionRemove:w}=u;return Fe(()=>(p(x),()=>w(x)),[p,w,x]),b.jsxs(b.Fragment,{children:[b.jsx(le.span,{id:l.textId,...s,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Hr.createPortal(s.children,i.valueNode):null]})});Z0.displayName=Es;var ew="SelectItemIndicator",tw=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return J0(ew,n).isSelected?b.jsx(le.span,{"aria-hidden":!0,...r,ref:t}):null});tw.displayName=ew;var Gc="SelectScrollUpButton",nw=y.forwardRef((e,t)=>{const n=dr(Gc,e.__scopeSelect),r=Rf(Gc,e.__scopeSelect),[o,s]=y.useState(!1),i=Ce(t,r.onScrollButtonChange);return Fe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?b.jsx(ow,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});nw.displayName=Gc;var Qc="SelectScrollDownButton",rw=y.forwardRef((e,t)=>{const n=dr(Qc,e.__scopeSelect),r=Rf(Qc,e.__scopeSelect),[o,s]=y.useState(!1),i=Ce(t,r.onScrollButtonChange);return Fe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,c=Math.ceil(l.scrollTop)<u;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?b.jsx(ow,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});rw.displayName=Qc;var ow=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=dr("SelectScrollButton",n),i=y.useRef(null),a=jl(n),l=y.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return y.useEffect(()=>()=>l(),[l]),Fe(()=>{var c;const u=a().find(d=>d.ref.current===document.activeElement);(c=u==null?void 0:u.ref.current)==null||c.scrollIntoView({block:"nearest"})},[a]),b.jsx(le.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ee(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ee(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ee(o.onPointerLeave,()=>{l()})})}),vP="SelectSeparator",sw=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return b.jsx(le.div,{"aria-hidden":!0,...r,ref:t})});sw.displayName=vP;var Yc="SelectArrow",yP=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Al(n),s=cr(Yc,n),i=dr(Yc,n);return s.open&&i.position==="popper"?b.jsx(Hy,{...o,...r,ref:t}):null});yP.displayName=Yc;var wP="SelectBubbleInput",iw=y.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=y.useRef(null),s=Ce(r,o),i=hT(t);return y.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&c){const d=new Event("change",{bubbles:!0});c.call(a,t),a.dispatchEvent(d)}},[i,t]),b.jsx(le.select,{...n,style:{...zv,...n.style},ref:s,defaultValue:t})});iw.displayName=wP;function aw(e){return e===""||e===void 0}function lw(e){const t=Bt(e),n=y.useRef(""),r=y.useRef(0),o=y.useCallback(i=>{const a=n.current+i;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=y.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function uw(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=xP(e,Math.max(s,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function xP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var bP=$0,cw=D0,SP=U0,_P=z0,EP=B0,dw=W0,kP=q0,fw=Y0,hw=X0,CP=Z0,TP=tw,pw=nw,mw=rw,gw=sw;const Vp=bP,Kp=SP,Jc=y.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(cw,{ref:r,className:ye("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
158ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,b.jsx(_P,{asChild:!0,children:b.jsx(cy,{className:"h-4 w-4 opacity-50"})})]}));Jc.displayName=cw.displayName;const vw=y.forwardRef(({className:e,...t},n)=>b.jsx(pw,{ref:n,className:ye("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(_1,{className:"h-4 w-4"})}));vw.displayName=pw.displayName;const yw=y.forwardRef(({className:e,...t},n)=>b.jsx(mw,{ref:n,className:ye("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(cy,{className:"h-4 w-4"})}));yw.displayName=mw.displayName;const Xc=y.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>b.jsx(EP,{children:b.jsxs(dw,{ref:o,className:ye("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[b.jsx(vw,{}),b.jsx(kP,{className:ye("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),b.jsx(yw,{})]})}));Xc.displayName=dw.displayName;const PP=y.forwardRef(({className:e,...t},n)=>b.jsx(fw,{ref:n,className:ye("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));PP.displayName=fw.displayName;const An=y.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(hw,{ref:r,className:ye("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(TP,{children:b.jsx(S1,{className:"h-4 w-4"})})}),b.jsx(CP,{children:t})]}));An.displayName=hw.displayName;const RP=y.forwardRef(({className:e,...t},n)=>b.jsx(gw,{ref:n,className:ye("-mx-1 my-1 h-px bg-muted",e),...t}));RP.displayName=gw.displayName;const OP="modulepreload",NP=function(e){return"/"+e},qp={},Si=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(l=>{if(l=NP(l),l in qp)return;qp[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":OP,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},jP=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Si(async()=>{const{default:r}=await Promise.resolve().then(()=>ss);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class Of extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class AP extends Of{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Gp extends Of{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Qp extends Of{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Zc;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Zc||(Zc={}));var IP=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}
158return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class LP{constructor(t,{headers:n={},customFetch:r,region:o=Zc.Any}={}){this.url=t,this.headers=n,this.region=o,this.fetch=jP(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return IP(this,void 0,void 0,function*(){try{const{headers:o,method:s,body:i}=n;let a={},{region:l}=n;l||(l=this.region);const u=new URL(`${this.url}/${t}`);l&&l!=="any"&&(a["x-region"]=l,u.searchParams.set("forceFunctionRegion",l));let c;i&&(o&&!Object.prototype.hasOwnProperty.call(o,"Content-Type")||!o)&&(typeof Blob<"u"&&i instanceof Blob||i instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",c=i):typeof i=="string"?(a["Content-Type"]="text/plain",c=i):typeof FormData<"u"&&i instanceof FormData?c=i:(a["Content-Type"]="application/json",c=JSON.stringify(i)));const d=yield this.fetch(u.toString(),{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),o),body:c}).catch(p=>{throw new AP(p)}),h=d.headers.get("x-relay-error");if(h&&h==="true")throw new Gp(d);if(!d.ok)throw new Qp(d);let f=((r=d.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),x;return f==="application/json"?x=yield d.json():f==="application/octet-stream"?x=yield d.blob():f==="text/event-stream"?x=d:f==="multipart/form-data"?x=yield d.formData():x=yield d.text(),{data:x,error:null,response:d}}catch(o){return{data:null,error:o,response:o instanceof Qp||o instanceof Gp?o.context:void 0}}})}}var nt={},Nf={},Il={},_i={},Ll={},$l={},$P=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")},Qo=$P();const MP=Qo.fetch,ww=Qo.fetch.bind(Qo),xw=Qo.Headers,DP=Qo.Request,FP=Qo.Response,ss=Object.freeze(Object.defineProperty({__proto__:null,Headers:xw,Request:DP,Response:FP,default:ww,fetch:MP},Symbol.toStringTag,{value:"Module"})),UP=Xw(ss);var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});let zP=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
158de=t.code}};Ml.default=zP;var bw=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($l,"__esModule",{value:!0});const BP=bw(UP),WP=bw(Ml);let HP=class{constructor(t){var n,r;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(n=t.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=t.signal,this.isMaybeSingle=(r=t.isMaybeSingle)!==null&&r!==void 0?r:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=BP.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=new Headers(this.headers),this.headers.set(t,n),this}then(t,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 o=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{var i,a,l,u;let c=null,d=null,h=null,f=s.status,x=s.statusText;if(s.ok){if(this.method!=="HEAD"){const m=await s.text();m===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((i=this.headers.get("Accept"))===null||i===void 0)&&i.includes("application/vnd.pgrst.plan+text"))?d=m:d=JSON.parse(m))}const w=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),v=(l=s.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");w&&v&&v.length>1&&(h=parseInt(v[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,h=null,f=406,x="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const w=await s.text();try{c=JSON.parse(w),Array.isArray(c)&&s.status===404&&(d=[],c=null,f=200,x="OK")}catch{s.status===404&&w===""?(f=204,x="No Content"):c={message:w}}if(c&&this.isMaybeSingle&&(!((u=c==null?void 0:c.details)===null||u===void 0)&&u.includes("0 rows"))&&(c=null,f=200,x="OK"),c&&this.shouldThrowOnError)throw new WP.default(c)}return{error:c,data:d,count:h,status:f,statusText:x}});return this.shouldThrowOnError||(o=o.catch(s=>{var i,a,l;return{error:{message:`${(i=s==null?void 0:s.name)!==null&&i!==void 0?i:"FetchError"}: ${s==null?void 0:s.message}`,details:`${(a=s==null?void 0:s.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=s==null?void 0:s.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),o.then(t,n)}returns(){return this}overrideTypes(){return this}};$l.default=HP;var VP=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ll,"__esModule",{value:!0});const KP=VP($l);let qP=class extends KP.default{select(t){let n=!1;const r=(t??"*").split("").map(o=>/\s/.test(o)&&!n?"":(o==='"'&&(n=!n),o)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:o,referencedTable:s=o}={}){const i=s?`${s}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const o=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(o,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:o=r}={}){const s=typeof o>"u"?"offset":`${o}.offset`,i=typeof o>"u"?"limit":`${o}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(i,`${n-t+1}`),this}abortSignal(t){return this.signal=t,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}
158explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:o=!1,wal:s=!1,format:i="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,o?"buffers":null,s?"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+${i}; for="${u}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};Ll.default=qP;var GP=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_i,"__esModule",{value:!0});const QP=GP(Ll);let YP=class extends QP.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(o=>typeof o=="string"&&new RegExp("[,()]").test(o)?`"${o}"`:`${o}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:o}={}){let s="";o==="plain"?s="pl":o==="phrase"?s="ph":o==="websearch"&&(s="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${s}fts${i}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const o=r?`${r}.or`:"or";return this.url.searchParams.append(o,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};_i.default=YP;var JP=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Il,"__esModule",{value:!0});const ws=JP(_i);let XP=class{constructor(t,{headers:n={},schema:r,fetch:o}){this.url=t,this.headers=new Headers(n),this.schema=r,this.fetch=o}select(t,{head:n=!1,count:r}={}){const o=n?"HEAD":"GET";let s=!1;const i=(t??"*").split("").map(a=>/\s/.test(a)&&!s?"":(a==='"'&&(s=!s),a)).join("");return this.url.searchParams.set("select",i),r&&this.headers.append("Prefer",`count=${r}`),new ws.default({method:o,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:n,defaultToNull:r=!0}={}){var o;const s="POST";if(n&&this.headers.append("Prefer",`count=${n}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const i=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(i.length>
1580){const a=[...new Set(i)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new ws.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:o,defaultToNull:s=!0}={}){var i;const a="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),o&&this.headers.append("Prefer",`count=${o}`),s||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const l=t.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 ws.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(t,{count:n}={}){var r;const o="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new ws.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:t}={}){var n;const r="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new ws.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};Il.default=XP;var Sw=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nf,"__esModule",{value:!0});const ZP=Sw(Il),eR=Sw(_i);let tR=class _w{constructor(t,{headers:n={},schema:r,fetch:o}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=o}from(t){const n=new URL(`${this.url}/${t}`);return new ZP.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new _w(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:o=!1,count:s}={}){var i;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;r||o?(a=r?"HEAD":"GET",Object.entries(n).filter(([d,h])=>h!==void 0).map(([d,h])=>[d,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([d,h])=>{l.searchParams.append(d,h)})):(a="POST",u=n);const c=new Headers(this.headers);return s&&c.set("Prefer",`count=${s}`),new eR.default({method:a,url:l,headers:c,schema:this.schemaName,body:u,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};Nf.default=tR;var is=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nt,"__esModule",{value:!0});nt.PostgrestError=nt.PostgrestBuilder=nt.PostgrestTransformBuilder=nt.PostgrestFilterBuilder=nt.PostgrestQueryBuilder=nt.PostgrestClient=void 0;const Ew=is(Nf);nt.PostgrestClient=Ew.default;const kw=is(Il);nt.PostgrestQueryBuilder=kw.default;const Cw=is(_i);nt.PostgrestFilterBuilder=Cw.default;const Tw=is(Ll);nt.PostgrestTransformBuilder=Tw.default;const Pw=is($l);nt.PostgrestBuilder=Pw.default;const Rw=is(Ml);nt.PostgrestError=Rw.default;var nR=nt.default={PostgrestClient:Ew.default,PostgrestQueryBuilder:kw.default,PostgrestFilterBuilder:Cw.default,PostgrestTransformBuilder:Tw.default,PostgrestBuilder:Pw.default,PostgrestError:Rw.default};const{PostgrestClient:rR,PostgrestQueryBuilder:pN,PostgrestFilterBuilder:mN,PostgrestTransformBuilder:gN,PostgrestBuilder:vN,PostgrestError:yN}=nR;class oR{static detectEnvironment(){var t;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"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.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,o=parseInt(r.replace(/^v/,"").split(".")[0]);return o>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${o} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${o} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
159import ws from "ws"
160new 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 t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
161
162Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const sR="2.15.5",iR=`realtime-js/${sR}`,aR="1.0.0",ed=1e4,lR=1e3,uR=100;var $s;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})($s||($s={}));var Oe;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Oe||(Oe={}));var Mt;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Mt||(Mt={}));var td;(function(e){e.websocket="websocket"})(td||(td={}));var Sr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Sr||(Sr={}));class cR{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const o=n.getUint8(1),s=n.getUint8(2);let i=this.HEADER_LENGTH+2;const a=r.decode(t.slice(i,i+o));i=i+o;const l=r.decode(t.slice(i,i+s));i=i+s;const u=JSON.parse(r.decode(t.slice(i,t.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class Ow{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,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 ce;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(ce||(ce={}));const Yp=(e,t,n={})=>{var r;const o=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((s,i)=>(s[i]=dR(i,e,t,o),s),{})},dR=(e,t,n,r)=>{const o=t.find(a=>a.name===e),s=o==null?void 0:o.type,i=n[e];return s&&!r.includes(s)?Nw(s,i):nd(i)},Nw=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return mR(t,n)}switch(e){case ce.bool:return fR(t);case ce.float4:case ce.float8:case ce.int2:case ce.int4:case ce.int8:case ce.numeric:case ce.oid:return hR(t);case ce.json:case ce.jsonb:return pR(t);case ce.timestamp:return gR(t);case ce.abstime:case ce.date:case ce.daterange:case ce.int4range:case ce.int8range:case ce.money:case ce.reltime:case ce.text:case ce.time:case ce.timestamptz:case ce.timetz:case ce.tsrange:case ce.tstzrange:return nd(t);default:return nd(t)}},nd=e=>e,fR=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},hR=e=>{if(typeof e=="string"){const t=parseFloat(e);
vendor: 5,062 bytes, line 162
162if(!Number.isNaN(t))return t}return e},pR=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},mR=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const i=e.slice(1,n);try{s=JSON.parse("["+i+"]")}catch{s=i?i.split(","):[]}return s.map(a=>Nw(t,a))}return e},gR=e=>typeof e=="string"?e.replace(" ","T"):e,jw=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class Ru{constructor(t,n,r={},o=ed){this.channel=t,this.event=n,this.payload=r,this.timeout=o,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,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(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,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:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Jp;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Jp||(Jp={}));class Ms{constructor(t,n){this.channel=t,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,{},o=>{const{onJoin:s,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Ms.syncState(this.state,o,s,i),this.pendingDiffs.forEach(l=>{this.state=Ms.syncDiff(this.state,l,s,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},o=>{const{onJoin:s,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=Ms.syncDiff(this.state,o,s,i),a())}),this.onJoin((o,s,i)=>{this.channel._trigger("presence",{event:"join",key:o,currentPresences:s,newPresences:i})}),this.onLeave((o,s,i)=>{this.channel._trigger("presence",{event:"leave",key:o,currentPresences:s,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,o){const s=this.cloneDeep(t),i=this.transformState(n),a={},l={};return this.map(s,(u,c)=>{i[u]||(l[u]=c)}),this.map(i,(u,c)=>{const d=s[u];if(d){const h=c.map(w=>w.presence_ref),f=d.map(w=>w.presence_ref),x=c.filter(w=>f.indexOf(w.presence_ref)<0),p=d.filter(w=>h.indexOf(w.presence_ref)<0);x.length>0&&(a[u]=x),p.length>0&&(l[u]=p)}else a[u]=c}),this.syncDiff(s,{joins:a,leaves:l},r,o)}static syncDiff(t,n,r,o){const{joins:s,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),o||(o=()=>{}),this.map(s,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const d=t[a].map(f=>f.presence_ref),h=c.filter(f=>d.indexOf(f.presence_ref)<0);t[a].unshift(...h)}r(a,c,l)}),this.map(i,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),t[a]=u,o(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const o=t[r];return"metas"in o?n[r]=o.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=o,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Xp;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Xp||(Xp={}));var Ds;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Ds||(Ds={}));var cn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(cn||(cn={}));
162class jf{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Oe.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.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 Ru(this,Mt.join,this.params,this.timeout),this.rejoinTimer=new Ow(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Oe.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Oe.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Oe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Oe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Oe.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Mt.reply,{},(o,s)=>{this._trigger(this._replyEventName(s),o)}),this.presence=new Ms(this),this.broadcastEndpointURL=jw(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,o,s;if(this.socket.isConnected()||this.socket.connect(),this.state==Oe.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,u=(o=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&o!==void 0?o:[],c=!!this.bindings[Ds.PRESENCE]&&this.bindings[Ds.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,d={},h={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(cn.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(cn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:f})=>{var x;if(this.socket.setAuth(),f===void 0){t==null||t(cn.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,w=(x=p==null?void 0:p.length)!==null&&x!==void 0?x:0,v=[];for(let m=0;m<w;m++){const g=p[m],{filter:{event:S,schema:_,table:E,filter:k}}=g,T=f&&f[m];if(T&&T.event===S&&T.schema===_&&T.table===E&&T.filter===k)v.push(Object.assign(Object.assign({},g),{id:T.id}));else{this.unsubscribe(),this.state=Oe.errored,t==null||t(cn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(cn.SUBSCRIBED);return}}).receive("error",f=>{this.state=Oe.errored,t==null||t(cn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(cn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===Oe.joined&&t===Ds.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(t,n,r)}async send(t,n={}){var r,o;if(!this._canPush()&&t.type==="broadcast"){const{event:s,payload:i}=t,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:s,payload:i,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((o=u.body)===null||o===void 0?void 0:o.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var i,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Oe.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(o=>{r=new Ru(this,Mt.leave,{},t),r.receive("ok",()=>{n(),o("ok")}).receive("timeout",()=>{n(),o("timed out")}).receive("error",()=>{o("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Oe.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const o=new AbortController,s=setTimeout(()=>
162o.abort(),r),i=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:o.signal}));return clearTimeout(s),i}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let o=new Ru(this,t,n,r);return this._canPush()?o.send():this._addToPushBuffer(o),o}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>uR){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var o,s;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=Mt;if(r&&[a,l,u,c].indexOf(i)>=0&&r!==this._joinRef())return;let h=this._onMessage(i,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(o=this.bindings.postgres_changes)===null||o===void 0||o.filter(f=>{var x,p,w;return((x=f.filter)===null||x===void 0?void 0:x.event)==="*"||((w=(p=f.filter)===null||p===void 0?void 0:p.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===i}).map(f=>f.callback(h,r)):(s=this.bindings[i])===null||s===void 0||s.filter(f=>{var x,p,w,v,m,g;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in f){const S=f.id,_=(x=f.filter)===null||x===void 0?void 0:x.event;return S&&((p=n.ids)===null||p===void 0?void 0:p.includes(S))&&(_==="*"||(_==null?void 0:_.toLocaleLowerCase())===((w=n.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const S=(m=(v=f==null?void 0:f.filter)===null||v===void 0?void 0:v.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return S==="*"||S===((g=n==null?void 0:n.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===i}).map(f=>{if(typeof h=="object"&&"ids"in h){const x=h.data,{schema:p,table:w,commit_timestamp:v,type:m,errors:g}=x;h=Object.assign(Object.assign({},{schema:p,table:w,commit_timestamp:v,eventType:m,new:{},old:{},errors:g}),this._getPayloadRecords(x))}f.callback(h,r)})}_isClosed(){return this.state===Oe.closed}_isJoined(){return this.state===Oe.joined}_isJoining(){return this.state===Oe.joining}_isLeaving(){return this.state===Oe.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const o=t.toLocaleLowerCase(),s={type:o,filter:n,callback:r};return this.bindings[o]?this.bindings[o].push(s):this.bindings[o]=[s],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(o=>{var s;return!(((s=o.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&jf.isEqual(o.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Mt.close,{},t)}_onError(t){this._on(Mt.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Oe.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Yp(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Yp(t.columns,t.old_record)),n}}const Ou=()=>{},Zi={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},vR=[1e3,2e3,5e3,1e4],yR=1e4,wR=`
163  addEventListener("message", (e) => {
164    if (e.data.event === "start") {
165      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
166    }
167  });`;class xR{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=ed,this.transport=null,this.heartbeatIntervalMs=Zi.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Ou,this.ref=0,this.reconnectTimer=null,this.logger=Ou,this.conn=null,this.sendBuffer=[],this.serializer
167=new cR,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=o=>{let s;return o?s=o:typeof fetch>"u"?s=(...i)=>Si(async()=>{const{default:a}=await Promise.resolve().then(()=>ss);return{default:a}},void 0).then(({default:a})=>a(...i)).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.`)}):s=fetch,(...i)=>s(...i)},!(!((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=`${t}/${td.websocket}`,this.httpEndpoint=jw(t),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=oR.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
168
169To use Realtime in Node.js, you need to provide a WebSocket implementation:
170
171Option 1: Use Node.js 22+ which has native WebSocket support
172Option 2: Install and provide the "ws" package:
173
174  npm install ws
175
176  import ws from "ws"
177  const client = new RealtimeClient(url, {
178    ...options,
179    transport: ws
180  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:aR}))}disconnect(t,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")},t?this.conn.close(t,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case $s.connecting:return Sr.Connecting;case $s.open:return Sr.Open;case $s.closing:return Sr.Closing;default:return Sr.Closed}}isConnected(){return this.connectionState()===Sr.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,o=this.getChannels().find(s=>s.topic===r);if(o)return o;{const s=new jf(`realtime:${t}`,n,this);return this.channels.push(s),s}}push(t){const{topic:n,event:r,payload:o,ref:s}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${s})`,o),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;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,(t=this.conn)===null||t===void 0||t.close(lR,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Zi.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(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
180{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:o,payload:s,ref:i}=n,a=i?`(${i})`:"",l=s.status||"";this.log("receive",`${l} ${r} ${o} ${a}`.trim(),s),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(o,s,i)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="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=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_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(t=>t.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 t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),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(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(Mt.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",o=new URLSearchParams(n);return`${t}${r}${o}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([wR],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n;t?n=t:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const o={access_token:n,version:iR};n&&r.updateJoinPayload(o),r.joinedOnce&&r._isJoined()&&r._push(Mt.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(o){this.log("error",`error in ${t} callback`,o)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new Ow(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Zi.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,o,s,i,a,l,u,c;if(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.t
180imeout)!==null&&r!==void 0?r:ed,this.heartbeatIntervalMs=(o=t==null?void 0:t.heartbeatIntervalMs)!==null&&o!==void 0?o:Zi.HEARTBEAT_INTERVAL,this.worker=(s=t==null?void 0:t.worker)!==null&&s!==void 0?s:!1,this.accessToken=(i=t==null?void 0:t.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:Ou,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(l=t==null?void 0:t.reconnectAfterMs)!==null&&l!==void 0?l:d=>vR[d-1]||yR,this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(d,h)=>h(JSON.stringify(d)),this.decode=(c=t==null?void 0:t.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=t==null?void 0:t.workerUrl}}}class Af extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Ne(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class bR extends Af{constructor(t,n,r){super(t),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class rd extends Af{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var SR=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Aw=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Si(async()=>{const{default:r}=await Promise.resolve().then(()=>ss);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},_R=()=>SR(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Si(()=>Promise.resolve().then(()=>ss),void 0)).Response:Response}),od=e=>{if(Array.isArray(e))return e.map(n=>od(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[o]=od(r)}),t},ER=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var qr=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Nu=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),kR=(e,t,n)=>qr(void 0,void 0,void 0,function*(){const r=yield _R();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(o=>{const s=e.status||500,i=(o==null?void 0:o.statusCode)||s+"";t(new bR(Nu(o),s,i))}).catch(o=>{t(new rd(Nu(o),o))}):t(new rd(Nu(e),e))}),CR=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?o:(ER(r)?(o.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),o.body=JSON.stringify(r)):o.body=r,t!=null&&t.duplex&&(o.duplex=t.duplex),Object.assign(Object.assign({},o),n))};function Ei(e,t,n,r,o,s){return qr(this,void 0,void 0,function*(){return new Promise((i,a)=>{e(n,CR(t,r,o,s)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>kR(l,a,r))})})}function el(e,t,n,r){return qr(this,void 0,void 0,function*(){return Ei(e,"GET",t,n,r)})}function qt(e,t,n,r,o){return qr(this,void 0,void 0,function*(){return Ei(e,"POST",t,r,o,n)})}function sd(e,t,n,r,o){return qr(this,void 0,void 0,function*(){return Ei(e,"PUT",t,r,o,n)})}function TR(e,t,n,r){return qr(this,void 0,void 0,function*(){return Ei(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function Iw(e,t,n,r,o){return qr(this,void 0,void 0,function*(){return Ei(e,"DELETE",t,r,o,n)})}var qe=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}
180return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const PR={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Zp={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class RR{constructor(t,n={},r,o){this.shouldThrowOnError=!1,this.url=t,this.headers=n,this.bucketId=r,this.fetch=Aw(o)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,n,r,o){return qe(this,void 0,void 0,function*(){try{let s;const i=Object.assign(Object.assign({},Zp),o);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&r instanceof Blob?(s=new FormData,s.append("cacheControl",i.cacheControl),l&&s.append("metadata",this.encodeMetadata(l)),s.append("",r)):typeof FormData<"u"&&r instanceof FormData?(s=r,s.append("cacheControl",i.cacheControl),l&&s.append("metadata",this.encodeMetadata(l))):(s=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),o!=null&&o.headers&&(a=Object.assign(Object.assign({},a),o.headers));const u=this._removeEmptyFolders(n),c=this._getFinalPath(u),d=yield(t=="PUT"?sd:qt)(this.fetch,`${this.url}/object/${c}`,s,Object.assign({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:u,id:d.Id,fullPath:d.Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ne(s))return{data:null,error:s};throw s}})}upload(t,n,r){return qe(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,o){return qe(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(t),i=this._getFinalPath(s),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:Zp.upsert},o),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 sd(this.fetch,a.toString(),l,{headers:c});return{data:{path:s,fullPath:d.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Ne(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return qe(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const o=Object.assign({},this.headers);n!=null&&n.upsert&&(o["x-upsert"]="true");const s=yield qt(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:o}),i=new URL(this.url+s.url),a=i.searchParams.get("token");if(!a)throw new Af("No token returned by API");return{data:{signedUrl:i.toString(),path:t,token:a},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ne(r))return{data:null,error:r};throw r}})}update(t,n,r){return qe(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return qe(this,void 0,void 0,function*(){try{return{data:yield qt(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Ne(o))return{data:null,error:o};throw o}})}copy(t,n,r){return qe(this,void 0,void 0,function*(){try{return{data:{path:(yield qt(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Ne(o))return{data:null,error:o};throw o}})}createSignedUrl(t,n,r){return qe(this,void 0,void 0,function*(){try{let o=this._getFinalPath(t),s=yield qt(this.fetch,`${this.url}/object/sign/${o}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${i}`)},{data:s,error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Ne(o))return{data:null,error:o};throw o}})}createSignedUrls(t,n,r){return qe(this,void 0,void 0,function*(){try{const o=yield qt(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:o.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${s}`):null})),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Ne(o))return{data:null,error:o};throw o}})}download(t,n){return qe(this,void 0,void 0,function*(){const o=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),i=s?`?${s}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield el(this.fetch,`${this.url}/${o}/${a}${i}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ne(a))return{data:null,error:a};throw a}})}info(t){return qe(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield el(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:od(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ne(r))return{data:null,error:r};throw r}})}exists(t){return qe(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield TR(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ne(r)&&r instanceof rd){const o=r.originalError;if([400,404].includes(o==null?void 0:o.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),o=[],s=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";s!==""&&o.push(s);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&o.push(l);let u=o.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return qe(this,void 0,void 0,function*(){try{return{data:yield Iw(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ne(n))return{data:null,error:n};throw n}})}list(t,n,r){return qe(this,void 0,void 0,function*(){try{const o=Object.assign(Object.assign(Object.assign({},PR),n),{prefix:t||""});return{data:yield qt(this.fetch,`${this.url}/object/list/${this.bucketId}`,o,{headers:this.headers},r),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Ne(o))return{data:null,error:o};throw o}})}listV2(t,n){return qe(this,void 0,void 0,function*(){try{const r=Object.assign({},t);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(Ne(r))return{data:null,error:r};throw r}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const OR="2.12.1",NR={"X-Client-Info":`storage-js/${OR}`};var no=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}
180return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class jR{constructor(t,n={},r,o){this.shouldThrowOnError=!1;const s=new URL(t);o!=null&&o.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href,this.headers=Object.assign(Object.assign({},NR),n),this.fetch=Aw(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return no(this,void 0,void 0,function*(){try{return{data:yield el(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Ne(t))return{data:null,error:t};throw t}})}getBucket(t){return no(this,void 0,void 0,function*(){try{return{data:yield el(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ne(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return no(this,void 0,void 0,function*(){try{return{data:yield qt(this.fetch,`${this.url}/bucket`,{id:t,name:t,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(Ne(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return no(this,void 0,void 0,function*(){try{return{data:yield sd(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,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(Ne(r))return{data:null,error:r};throw r}})}emptyBucket(t){return no(this,void 0,void 0,function*(){try{return{data:yield qt(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ne(n))return{data:null,error:n};throw n}})}deleteBucket(t){return no(this,void 0,void 0,function*(){try{return{data:yield Iw(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ne(n))return{data:null,error:n};throw n}})}}class AR extends jR{constructor(t,n={},r,o){super(t,n,r,o)}from(t){return new RR(this.url,this.headers,t,this.fetch)}}const IR="2.57.4";let ks="";typeof Deno<"u"?ks="deno":typeof document<"u"?ks="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ks="react-native":ks="node";const LR={"X-Client-Info":`supabase-js-${ks}/${IR}`},$R={headers:LR},MR={schema:"public"},DR={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},FR={};var UR=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const zR=e=>{let t;return e?t=e:typeof fetch>"u"?t=ww:t=fetch,(...n)=>t(...n)},BR=()=>typeof Headers>"u"?xw:Headers,WR=(e,t,n)=>{const r=zR(n),o=BR();return(s,i)=>UR(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let u=new o(i==null?void 0:i.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(s,Object.assign(Object.assign({},i),{headers:u}))})};var HR=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};function VR(e){return e.endsWith("/")?e:e+"/"}function KR(e,t){var n,r;const{db:o,auth:s,realtime:i,global:a}=e,{db:l,auth:u,realtime:c,global:d}=t,h={db:Object.assign(Object.assign({},l),o),auth:Object.assign(Object.assign({},u),s),realtime:Object.assign(Object.assign({},c),i),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:()=>HR(this,void 0,void 0,function*(){return""})};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function qR(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
180if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(VR(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const Lw="2.71.1",lo=30*1e3,id=3,ju=id*lo,GR="http://localhost:9999",QR="supabase.auth.token",YR={"X-Client-Info":`gotrue-js/${Lw}`},ad="X-Supabase-Api-Version",$w={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},JR=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,XR=10*60*1e3;class If extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function Q(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class ZR extends If{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function eO(e){return Q(e)&&e.name==="AuthApiError"}class Mw extends If{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class fr extends If{constructor(t,n,r,o){super(t,r,o),this.name=n,this.status=r}}class In extends fr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function tO(e){return Q(e)&&e.name==="AuthSessionMissingError"}class ea extends fr{constructor(){super("Auth session or user missing","AuthInvalidToken
180ResponseError",500,void 0)}}class ta extends fr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class na extends fr{constructor(t,n=null){super(t,"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 nO(e){return Q(e)&&e.name==="AuthImplicitGrantRedirectError"}class em extends fr{constructor(t,n=null){super(t,"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 ld extends fr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Au(e){return Q(e)&&e.name==="AuthRetryableFetchError"}class tm extends fr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class ud extends fr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const tl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),nm=` 	
181\r=`.split(""),rO=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<nm.length;t+=1)e[nm[t].charCodeAt(0)]=-2;for(let t=0;t<tl.length;t+=1)e[tl[t].charCodeAt(0)]=t;return e})();function rm(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(tl[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(tl[r]),t.queuedBits-=6}}function Dw(e,t,n){const r=rO[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function om(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},s=i=>{iO(i,r,n)};for(let i=0;i<e.length;i+=1)Dw(e.charCodeAt(i),o,s);return t.join("")}function oO(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function sO(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const o=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|o)+65536,n+=1}oO(r,t)}}function iO(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function aO(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};for(let o=0;o<e.length;o+=1)Dw(e.charCodeAt(o),n,r);return new Uint8Array(t)}function lO(e){const t=[];return sO(e,n=>t.push(n)),new Uint8Array(t)}function uO(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};return e.forEach(o=>rm(o,n,r)),rm(null,n,r),t.join("")}function cO(e){return Math.round(Date.now()/1e3)+e}function dO(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const Ot=()=>typeof window<"u"&&typeof document<"u",vr={tested:!1,writable:!1},Fw=()=>{if(!Ot())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(vr.tested)return vr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),vr.tested=!0,vr.writable=!0}catch{vr.tested=!0,vr.writable=!1}return vr.writable};function fO(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((o,s)=>{t[s]=o})}catch{}return n.searchParams.forEach((r,o)=>{t[o]=r}),t}const Uw=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Si(async()=>{const{default:r}=await Promise.resolve().then(()=>ss);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},hO=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",uo=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},yr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},On=async(e,t)=>{await e.removeItem(t)};class Dl{constructor(){this.promise=new Dl.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Dl.promiseConstructor=Promise;function Iu(e){const t=e.split(".");if(t.length!==3)throw new ud("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!JR.test(t[r]))throw new ud("JWT not in base64url format");
181return{header:JSON.parse(om(t[0])),payload:JSON.parse(om(t[1])),signature:aO(t[2]),raw:{header:t[0],payload:t[1]}}}async function pO(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function mO(e,t){return new Promise((r,o)=>{(async()=>{for(let s=0;s<1/0;s++)try{const i=await e(s);if(!t(s,null,i)){r(i);return}}catch(i){if(!t(s,i)){o(i);return}}})()})}function gO(e){return("0"+e.toString(16)).substr(-2)}function vO(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let o="";for(let s=0;s<56;s++)o+=n.charAt(Math.floor(Math.random()*r));return o}return crypto.getRandomValues(t),Array.from(t,gO).join("")}async function yO(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(r);return Array.from(o).map(s=>String.fromCharCode(s)).join("")}async function wO(e){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."),e;const n=await yO(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ro(e,t,n=!1){const r=vO();let o=r;n&&(o+="/PASSWORD_RECOVERY"),await uo(e,`${t}-code-verifier`,o);const s=await wO(r);return[s,r===s?"plain":"s256"]}const xO=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function bO(e){const t=e.headers.get(ad);if(!t||!t.match(xO))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function SO(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function _O(e){switch(e){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 EO=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function oo(e){if(!EO.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Lu(){const e={};return new Proxy(e,{get:(t,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:(t,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:(t,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 sm(e){return JSON.parse(JSON.stringify(e))}var kO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const br=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),CO=[502,503,504];async function im(e){var t;if(!hO(e))throw new ld(br(e),0);if(CO.includes(e.status))throw new ld(br(e),e.status);let n;try{n=await e.json()}catch(s){throw new Mw(br(s),s)}let r;const o=bO(e);if(o&&o.getTime()>=$w["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 tm(br(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new In}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((s,i)=>s&&typeof i=="string",!0))throw new tm(br(n),e.status,n.weak_password.reasons);throw new ZR(br(n),e.status||500,r)}const TO=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),o.body=JSON.stringify(r),Object.assign(Object.assign({},o),n))};async function X(e,t,n,r){var o;const s=Object.assign({},r==null?void 0:r.headers);s[ad]||(s[ad]=$w["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const i=(o=r==null?void 0:r.query)!==null&&o!==void 0?o:{};r!=null&&r.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await PO(e,t,n+a,{headers:s,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 PO(e,t,n,r,o,s){const i=TO(t,r,o,s);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new ld(br(l),0)}if(a.ok||await im(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await im(l)}}function ln(e){var t;let n=null;jO(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=cO(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function am(e){const t=ln(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Fn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function RO(e){return{data:e,error:null}}function OO(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s}=e,i=kO(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function NO(e){return e}function jO(e){return e.access_token&&e.refresh_token&&e.expires_in}const $u=["global","local","others"];var AO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};class IO{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=Uw(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n=$u[0]){if($u.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${$u.join(", ")}`);try{return await X(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(Q(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await X(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Fn})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=AO(t,["options"]),o=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(o.new_email=r==null?void 0:r.newEmail,delete o.newEmail),await X(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:OO,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(Q(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await X(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Fn})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,o,s,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await X(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(o=t==null?void 0:t.perPage)===null||o===void 0?void 0:o.toString())!==null&&s!==void 0?s:""},xform:NO});if(c.error)throw c.error;const d=await c.json(),h=(i=c.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(x=>{const p=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(x.split(";")[1].split("=")[1]);u[`${w}Page`]=p}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(Q(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){oo(t);try{return await X(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Fn})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){oo(t);try{return await X(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Fn})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){oo(t);
181try{return await X(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Fn})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){oo(t.userId);try{const{data:n,error:r}=await X(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:n,error:r}}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _deleteFactor(t){oo(t.userId),oo(t.id);try{return{data:await X(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(Q(n))return{data:null,error:n};throw n}}}function lm(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function LO(){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 so={debug:!!(globalThis&&Fw()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class zw extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class $O extends zw{}async function MO(e,t,n){so.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),so.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async o=>{if(o){so.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,o.name);try{return await n()}finally{so.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,o.name)}}else{if(t===0)throw so.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new $O(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(so.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null,"  "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}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()}}))}LO();const DO={url:GR,storageKey:QR,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:YR,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function um(e,t,n){return await n()}const io={};class ui{constructor(t){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=ui.nextInstanceID,ui.nextInstanceID+=1,this.instanceID>0&&Ot()&&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 o=Object.assign(Object.assign({},DO),t);if(this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.persistSession=o.persistSession,this.storageKey=o.storageKey,this.autoRefreshToken=o.autoRefreshToken,this.admin=new IO({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=Uw(o.fetch),this.lock=o.lock||um,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,o.lock?this.lock=o.lock:Ot()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=MO:this.lock=um,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?(o.storage?this.storage=o.storage:Fw()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=lm(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=lm(this.memoryStorage)),Ot()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}get jwks(){var t,n;return(n=(t=io[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){io[this.storageKey]=Object.assign(Object.assign({},io[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=io[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){io[this.storageKey]=Object.assign(Object.assign({},io[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Lw}) ${new Date().toISOString()}`,...t),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 t;try{const n=fO(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),Ot()&&this.detectSessionInUrl&&r!=="none"){const{data:o,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),nO(s)){const l=(t=s.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:s}}return await this._removeSession(),{error:s}}const{session:i,redirectType:a}=o;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return Q(n)?{error:n}:{error:new Mw("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,o;try{const s=await X(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(o=t==null?void 0:t.options)===null||o===void 0?void 0:o.captchaToken}},xform:ln}),{data:i,error:a}=s;
181if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(Q(s))return{data:{user:null,session:null},error:s};throw s}}async signUp(t){var n,r,o;try{let s;if("email"in t){const{email:c,password:d,options:h}=t;let f=null,x=null;this.flowType==="pkce"&&([f,x]=await ro(this.storage,this.storageKey)),s=await X(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:c,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:x},xform:ln})}else if("phone"in t){const{phone:c,password:d,options:h}=t;s=await X(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(o=h==null?void 0:h.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:ln})}else throw new ta("You must provide either an email or phone number and a password");const{data:i,error:a}=s;
181if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(Q(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:i,options:a}=t;n=await X(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:am})}else if("phone"in t){const{phone:s,password:i,options:a}=t;n=await X(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:am})}else throw new ta("You must provide either an email or phone number and a password");const{data:r,error:o}=n;return o?{data:{user:null,session:null},error:o}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new ea}:(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:o})}catch(n){if(Q(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,o,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(o=t.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;if(n==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(t){var n,r,o,s,i,a,l,u,c,d,h,f;let x,p;if("message"in t)x=t.message,p=t.signature;else{const{chain:w,wallet:v,statement:m,options:g}=t;let S;if(Ot())if(typeof v=="object")S=v;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"))S=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 v!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=v}const _=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const E=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},g==null?void 0:g.signInWithSolana),{version:"1",domain:_.host,uri:_.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)x=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),p=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");x=[`${_.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${_.href}`,`Issued At: ${(o=(r=g==null?void 0:g.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&o!==void 0?o:new Date().toISOString()}`,...!((s=g==null?void 0:g.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...!((i=g==null?void 0:g.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...!((a=g==null?void 0:g.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...!((l=g==null?void 0:g.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...!((u=g==null?void 0:g.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...!((d=(c=g==null?void 0:g.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||d===void 0)&&d.length?["Resources",...g.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(`
182`);const E=await S.signMessage(new TextEncoder().encode(x),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=E}}try{const{data:w,error:v}=await X(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:x,signature:uO(p)}
182,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:ln});if(v)throw v;return!w||!w.session||!w.user?{data:{user:null,session:null},error:new ea}:(w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),{data:Object.assign({},w),error:v})}catch(w){if(Q(w))return{data:{user:null,session:null},error:w};throw w}}async _exchangeCodeForSession(t){const n=await yr(this.storage,`${this.storageKey}-code-verifier`),[r,o]=(n??"").split("/");try{const{data:s,error:i}=await X(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:ln});if(await On(this.storage,`${this.storageKey}-code-verifier`),i)throw i;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new ea}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign(Object.assign({},s),{redirectType:o??null}),error:i})}catch(s){if(Q(s))return{data:{user:null,session:null,redirectType:null},error:s};throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:o,access_token:s,nonce:i}=t,a=await X(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:o,access_token:s,nonce:i,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:ln}),{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 ea}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(Q(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,o,s,i;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await ro(this.storage,this.storageKey));const{error:d}=await X(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 t){const{phone:a,options:l}=t,{data:u,error:c}=await X(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(o=l==null?void 0:l.data)!==null&&o!==void 0?o:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new ta("You must provide either an email or phone number.")}catch(a){if(Q(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let o,s;"options"in t&&(o=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await X(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:o,xform:ln});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,u=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(o){if(Q(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithSSO(t){var n,r,o;try{let s=null,i=null;return this.flowType==="pkce"&&([s,i]=await ro(this.storage,this.storageKey)),await X(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((o=t==null?void 0:t.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:i}),headers:this.headers,xform:RO})}catch(s){if(Q(s))return{data:null,error:s};throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new In;const{error:o}=await X(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:o}})}catch(t){if(Q(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:o,options:s}=t,{error:i}=await X(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return{data:{user:null,session:null},error:i}}else if("phone"in t){const{phone:r,type:o,options:s}=t,{data:i,error:a}=await X(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return{data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a}}throw new ta("You must provide either an email or phone number and a type")}catch(n){if(Q(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(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,t,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 o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.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(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(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 t=null;const n=await yr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
182id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<ju:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const i=await yr(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=Lu()}if(this.storage.isServer&&t.user){let i=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,u,c)=>(!i&&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."),i=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,u,c))})}return{data:{session:t},error:null}}const{session:o,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{session:null},error:s}:{data:{session:o},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await X(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Fn}):await this._useSession(async n=>{var r,o,s;const{data:i,error:a}=n;if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new In}:await X(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(o=i.session)===null||o===void 0?void 0:o.access_token)!==null&&s!==void 0?s:void 0,xform:Fn})})}catch(n){if(Q(n))return tO(n)&&(await this._removeSession(),await On(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:o,error:s}=r;if(s)throw s;if(!o.session)throw new In;const i=o.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await ro(this.storage,this.storageKey));const{data:u,error:c}=await X(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:Fn});if(c)throw c;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new In;const n=Date.now()/1e3;let r=n,o=!0,s=null;const{payload:i}=Iu(t.access_token);if(i.exp&&(r=i.exp,o=r<=n),o){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};s=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;s={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return{data:{user:s.user,session:s},error:null}}catch(n){if(Q(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:i,error:a}=n;if(a)throw a;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new In;const{session:o,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{user:null,session:null},error:s}:o?{data:{user:o.user,session:o},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(Q(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!Ot())throw new na("No browser detected.");
182if(t.error||t.error_description||t.error_code)throw new na(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new em("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new na("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new em("No code detected.");const{data:m,error:g}=await this._exchangeCodeForSession(t.code);if(g)throw g;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:m.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:o,access_token:s,refresh_token:i,expires_in:a,expires_at:l,token_type:u}=t;if(!s||!a||!i||!u)throw new na("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(a);let h=c+d;l&&(h=parseInt(l));const f=h-c;f*1e3<=lo&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${d}s`);const x=h-d;c-x>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",x,h,c):c-x<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",x,h,c);const{data:p,error:w}=await this._getUser(s);if(w)throw w;const v={provider_token:r,provider_refresh_token:o,access_token:s,expires_in:d,expires_at:h,refresh_token:i,token_type:u,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:t.type},error:null}}catch(r){if(Q(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await yr(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s)return{error:s};const i=(r=o.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(eO(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await On(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=dO(),r={id:n,callback:t,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(t){return await this._useSession(async n=>{var r,o;try{const{data:{session:s},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((o=this.stateChangeEmitters.get(t))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,o=null;this.flowType==="pkce"&&([r,o]=await ro(this.storage,this.storageKey,!0));try{return await X(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:o,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(Q(s))return{data:null,error:s};throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(Q(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:o}=await this._useSession(async s=>{var i,a,l,u,c;const{data:d,error:h}=s;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await X(this.fetch,"GET",f,{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(o)throw o;return Ot()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(Q(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,o;const{data:s,error:i}=n;if(i)throw i;
182return await X(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(o=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&o!==void 0?o:void 0})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await mO(async o=>(o>0&&await pO(200*Math.pow(2,o-1)),this._debug(n,"refreshing attempt",o),await X(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:ln})),(o,s)=>{const i=200*Math.pow(2,o);return s&&Au(s)&&Date.now()+i-r<lo})}catch(r){if(this._debug(n,"error",r),Q(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Ot()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const o=await yr(this.storage,this.storageKey);if(o&&this.userStorage){let i=await yr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:o.user},await uo(this.userStorage,this.storageKey+"-user",i)),o.user=(t=i==null?void 0:i.user)!==null&&t!==void 0?t:Lu()}else if(o&&!o.user&&!o.user){const i=await yr(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(o.user=i.user,await On(this.storage,this.storageKey+"-user"),await uo(this.storage,this.storageKey,o)):o.user=Lu()}if(this._debug(r,"session from storage",o),!this._isValidSession(o)){this._debug(r,"session is not valid"),o!==null&&await this._removeSession();return}const s=((n=o.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<ju;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${ju}s`),s){if(this.autoRefreshToken&&o.refresh_token){const{error:i}=await this._callRefreshToken(o.refresh_token);i&&(console.error(i),Au(i)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(o.user&&o.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(o.access_token);!a&&(i!=null&&i.user)?(o.user=i.user,await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(r,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",o)}catch(o){this._debug(r,"error",o),console.error(o);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new In;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new Dl;const{data:s,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!s.session)throw new In;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={session:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(o,"error",s),Q(s)){const i={session:null,error:s};return Au(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(o,"end")}}async _notifyAllSubscribers(t,n,r=!0){const o=`#_notifyAllSubscribers(${t})`;this._debug(o,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(i),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(o,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await uo(this.userStorage,this.storageKey+"-user",{user:n.user});const o=Object.assign({},n);delete o.user;const s=sm(o);await uo(this.storage,this.storageKey,s)}else{const o=sm(n);await uo(this.storage,this.storageKey,o)}}async _removeSession(){this._debug("#_removeSession()"),await On(this.storage,this.storageKey),await On(this.storage,this.storageKey+"-code-verifier"),await On(this.storage,this.storageKey+"-user"),this.userStorage&&await On(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Ot()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
182catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),lo);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}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 t=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 o=Math.floor((r.expires_at*1e3-t)/lo);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${lo}ms, refresh threshold is ${id} ticks`),o<=id&&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(t){if(t.isAcquireTimeout||t instanceof zw)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ot()||!(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(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(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(t,n,r){const o=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&o.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&o.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,i]=await ro(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(i)}`});o.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);o.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&o.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${o.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;return s?{data:null,error:s}:await X(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,o;const{data:s,error:i}=n;if(i)return{data:null,error:i};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:l,error:u}=await X(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&(!((o=l==null?void 0:l.totp)===null||o===void 0)&&o.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s)return{data:null,error:s};const{data:i,error:a}=await X(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=o==null?void 0:o.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)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:a})})}catch(n){if(Q(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;return s?{data:null,error:s}:await X(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Q(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],o=r.filter(i=>i.factor_type==="totp"&&i.status==="verified"),s=r.filter(i=>i.factor_type==="phone"&&i.status==="verified");return{data:{all:r,totp:o,phone:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:o},error:s}=t;if(s)return{data:null,error:s};if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=Iu(o.access_token);let a=null;i.aal&&(a=i.aal);let l=a;((r=(n=o.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=i.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const o=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+XR>o)return r;const{data:s,error:i}=await X(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=o,r=s.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:f,error:x}
182=await this.getSession();if(x||!f.session)return{data:null,error:x};r=f.session.access_token}const{header:o,payload:s,signature:i,raw:{header:a,payload:l}}=Iu(r);n!=null&&n.allowExpired||SO(s.exp);const u=!o.alg||o.alg.startsWith("HS")||!o.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(o.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:s,header:o,signature:i},error:null}}const c=_O(o.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,i,lO(`${a}.${l}`)))throw new ud("Invalid JWT signature");return{data:{claims:s,header:o,signature:i},error:null}}catch(r){if(Q(r))return{data:null,error:r};throw r}}}ui.nextInstanceID=0;const FO=ui;class UO extends FO{constructor(t){super(t)}}var zO=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class BO{constructor(t,n,r){var o,s,i;this.supabaseUrl=t,this.supabaseKey=n;const a=qR(t);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:MR,realtime:FR,auth:Object.assign(Object.assign({},DR),{storageKey:l}),global:$R},c=KR(r??{},u);this.storageKey=(o=c.auth.storageKey)!==null&&o!==void 0?o:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken?(this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=c.auth)!==null&&i!==void 0?i:{},this.headers,c.global.fetch),this.fetch=WR(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 rR(new URL("rest/v1",a).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new AR(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new LP(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return zO(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:o,userStorage:s,storageKey:i,flowType:a,lock:l,debug:u},c,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new UO({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),c),storageKey:i,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:o,userStorage:s,flowType:a,lock:l,debug:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new xR(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const WO=(e,t,n)=>new BO(e,t,n);function HO(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}HO()&&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 N
182ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const VO="https://kcildkrxhrnlgiqpdpcv.supabase.co",KO="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImtjaWxka3J4aHJubGdpcXBkcGN2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTgzMDgxMDUsImV4cCI6MjA3Mzg4NDEwNX0.AKR-GW1_h4NyrIgCfjs-PEgzbQNJaa46H5q7IRO2Z9g",qO=WO(VO,KO,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}});function GO(){const{toast:e}=Av(),t=p0(),[n,r]=y.useState({fullName:"",email:"",phone:"",rentalDoors:"",landlordStage:""}),[o,s]=y.useState(!1),i=(l,u)=>{r(c=>({...c,[l]:u}))},a=async l=>{if(l.preventDefault(),s(!0),!n.fullName||!n.email||!n.phone||!n.rentalDoors||!n.landlordStage){e({title:"Please fill in all fields",description:"All fields are required to complete your registration.",variant:"destructive"}),s(!1);return}try{const{error:u}=await qO.from("registrations").insert({full_name:n.fullName,email:n.email,phone:n.phone,rental_doors:n.rentalDoors,landlord_stage:n.landlordStage,property_address:null});if(u)throw u;if(n.rentalDoors==="2-4"||n.rentalDoors==="5+"){const d={additionalInfo:`Residential doors owned: ${n.rentalDoors}, Landlord stage: ${n.landlordStage}`,utmSource:"Lunch & Learn Lead"};try{await fetch("https://apollo-production.flockhomes.com/",{method:"POST",body:JSON.stringify({operationName:"LandingCreateLead",query:"mutation LandingCreateLead($createLeadInput: Core_CreateLeadRequestInput!) {createLead(input: $createLeadInput) {    lead {     uuid      __typename    }    __typename  }}",variables:{createLeadInput:{fullName:n.fullName,email:n.email,phoneNumber:n.phone,source:"inbound",transactionType:"TRANSACTION_TYPE_CONTACT_INFORMATION",answers:JSON.stringify(d)}}}),headers:{"Content-type":"application/json; charset=UTF-8",origin:"https://flockhomes.com/"}})}catch(h){console.error("Apollo API error:",h)}}e({title:"Registration successful!",description:"Thank you for registering. We'll see you at the event!"}),t("/thank-you")}catch(u){console.error("Registration error:",u),e({title:"Registration failed",description:"Please try again or contact support.",variant:"destructive"})}finally{s(!1)}};return b.jsxs(x0,{className:"w-full max-w-md mx-auto shadow-strong border-0 bg-card min-h-[500px]",children:[b.jsxs(b0,{className:"text-center pb-6",children:[b.jsx(S0,{className:"text-2xl font-playfair font-bold text-foreground",children:"Reserve Your Spot"}),b.jsx(_0,{className:"font-outfit text-muted-foreground",children:"Limited seats • $30 gift card included"})]}),b.jsx(E0,{className:"flex-1",children:b.jsxs("form",{onSubmit:a,className:"space-y-4 h-full flex flex-col justify-between",children:[b.jsxs("div",{className:"space-y-2",children:[b.jsx(ao,{htmlFor:"fullName",className:"text-sm font-outfit font-medium text-foreground",children:"Full Name *"}),b.jsx(wa,{id:"fullName",type:"text",value:n.fullName,onChange:l=>i("fullName",l.target.value),placeholder:"Enter your full name",className:"transition-all duration-200 focus:shadow-soft",required:!0})]}),b.jsxs("div",{className:"space-y-2",children:[b.jsx(ao,{htmlFor:"email",className:"text-sm font-outfit font-medium text-foreground",children:"Email Address *"}),b.jsx(wa,{id:"email",type:"email",value:n.email,onChange:l=>i("email",l.target.value),placeholder:"Enter your email",className:"transition-all duration-200 focus:shadow-soft",required:!0})]}),b.jsxs("div",{className:"space-y-2",children:[b.jsx(ao,{htmlFor:"phone",className:"text-sm font-outfit font-medium text-foreground",children:"Phone Number *"}),b.jsx(wa,{id:"phone",type:"tel",value:n.phone,onChange:l=>i("phone",l.target.value),placeholder:"Enter your phone number",className:"transition-all duration-200 focus:shadow-soft",required:!0})]}),b.jsxs("div",{className:"space-y-2",children:[b.jsx(ao,{htmlFor:"rentalDoors",className:"text-sm font-outfit font-medium text-foreground",children:"How many residential rental doors do you own? *"}),b.jsxs(Vp,{value:n.rentalDoors,onValueChange:l=>i("rentalDoors",l),children:[b.jsx(Jc,{className:"transition-all duration-200 focus:shadow-soft",children:b.jsx(Kp,{placeholder:"Select number of doors"})}),b.jsxs(Xc,{children:[b.jsx(An,{value:"0",children:"0"}),b.jsx(An,{value:"1",children:"1"}),b.jsx(An,{value:"2-4",children:"2-4"}),b.jsx(An,{value:"5+",children:"5+"})]})]})]}),b.jsxs("div",{className:"space-y-2",children:[b.jsx(ao,{htmlFor:"landlordStage",className:"text-sm font-outfit font-medium text-foreground",children:"What best describes your current situation? *"}),b.jsxs(Vp,{value:n.landlordStage,onValueChange:l=>i("landlordStage",l),children:[b.jsx(Jc,{className:"transition-all duration-200 focus:shadow-soft",children:b.jsx(Kp,{placeholder:"Select your situation"})}),b.jsxs(Xc,{children:[b.jsx(An,{value:"holding",children:"Holding my current portfolio"}),b.jsx(An,{value:"buying",children:"Buying more doors"}),b.jsx(An,{value:"selling",children:"Considering selling some doors"})]})]})]}),b.jsx(Pf,{type:"submit",variant:"hero",size:"lg",className:"w-full mt-6",disabled:o,children:o?"Registering...":"Register"}),b.jsxs("p",{className:"text-xs font-outfit text-muted-foreground text-center mt-4",children:["By clicking 'Register' you agree to the use of your data in accordance with Flock Home's"," ",b.jsx("a",{href:"https://flockhomes.com/privacy/",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Privacy Notice"}),", including for marketing purposes."]})]})})]})}const QO="/assets/ari-rubin-new-C8-I455Z.png",YO="/assets/charles-reynolds-DvkD9Le1.png",JO="/assets/flock-logo-DiNFnQh2.png",XO=()=>b.jsxs("div",{className:"min-h-screen bg-background flex flex-col p-6 sm:p-8 lg:p-12",children:[b.jsx("div",{className:"flex-1 flex items-center justify-center",children:b.jsx("div",{className:"max-w-6xl w-full mx-auto",children:b.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 lg:gap-16 items-start min-h-[70vh]",children:[b.jsxs("div",{className:"flex flex-col justify-between h-full space-y-8",children:[b.jsxs("div",{children:[b.jsx("img",{src:JO,alt:"Flock Homes",className:"h-10 mb-6"}),b.jsxs("h1",{className:"text-4xl lg:text-5xl font-playfair font-black text-foreground leading-tight mb-8",children:[b.jsx("span",{className:"bg-text-gradient bg-clip-text text-transparent",children:"Exit your real estate,"}),b.jsx("br",{}),b.jsx("span",{className:"text-foreground",children:"without giving up your hard earned gains"})]}),b.jsx("p",{className:"text-xl font-outfit text-muted-foreground mb-6",children:"Join Flock Homes CEO Ari Rubin and PeakFi Co-Founder and Managing Partner Charles Reynolds for a virtual lunch and learn as they discuss exclusive insights on real estate exit options. Flock Homes has more than 1,000 homes and $200M+ of real estate under management."})]}),b.jsxs("div",{className:"bg-card p-4 rounded-xl shadow-soft border border-border/20 flex-1 flex flex-col justify-center",children:[b.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[b.jsx("div",{className:"bg-primary/10 p-3 rounded-lg",children:b.jsx("svg",{className:"w-6 h-6 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-lg font-outfit font-semibold text-foreground",children:"Tuesday, December 16th"}),b.jsx("p",{className:"font-outfit text-muted-foreground",children:"1:00 PM EDT / 10:00 AM PDT"})]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"bg-primary/10 p-3 rounded-lg",children:b.jsx(k1,{className:"w-6 h-6 text-primary"})}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-lg font-outfit font-semibold text-foreground",children:"$30 DoorDash Gift Card"}),b.jsx("p",{className:"font-outfit text-muted-foreground",children:"Free lunch on us for all attendees"})]})]})]})]}),b.jsx("div",{className:"flex items-start justify-center h-full",children:b.jsx("div",{className:"w-full",children:b.jsx(GO,{})})})]})})}),b.jsx("div",{className:"bg-muted/30 py-6 px-6 border-t border-border/20 rounded-lg mt-8",children:b.jsxs("div",{className:"max-w-6xl mx-auto",children:[b.jsx("h3",{className:"text-lg font-outfit font-semibold text-foreground mb-4 text-center",children:"Speakers"}),b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"w-16 min-w-16 h-16 rounded-full overflow-hidden flex-shrink-0",children:b.jsx("img",{src:QO,alt:"Chad Nowakowski, Head of Business Operations, Flock Homes",className:"w-full h-full object-cover"})}),b.jsxs("p",{className:"font-outfit text-muted-foreground",children:[b.jsx("strong",{className:"text-foreground",children:"Chad Nowakowski"}),", Head of Business Operations, Flock Homes"]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"w-16 min-w-16 h-16 rounded-full overflow-hidden shadow-medium flex-shrink-0",children:b.jsx("img",{src:YO,alt:"Charles Reynolds, Managing Partner at PeakeFi",className:"w-full h-full object-cover object-top scale-[2]"})}),b.jsxs("p",{className:"font-outfit text-muted-foreground",children:[b.jsx("strong",{className:"text-foreground",children:"Charles Reynolds"}),", Co-Founder and Managing Partner, PeakFi"]})]})]})]})}),b.jsx("div",{className:"py-4 px-6 mt-4",children:b.jsx("div",{className:"max-w-4xl mx-auto",children:b.jsxs("p",{className:"text-xs font-outfit text-muted-foreground text-center leading-relaxed",children:[b.jsx("strong",{children:"Gift card eligibility:"})," Gift card eligibility requires participant to own three or more 1-4 door single family rental properties, provide a property address that is within Flock's buy box, register for the webinar, and attend the full one hour webinar over Zoom. Qualifying participants will receive their gift card within seven (7) business days following attendance of the webinar. Flock Homes reserves the right in Flock's sole discretion to withhold any gift card for failure to meet the qualifying terms. This promotion is not affiliated with or endorsed by Doordash.  If you qual
182ify for the promotion, we will contact you via the email address provided. Promotional gift cards are limited to one per individual in total. Participation in multiple offers will not result in multiple rewards. Flock reserves the right to modify or cancel this promotion or any terms or conditions applicable to this promotion in its sole discretion, at any time and without any notice, and for any reason, including, without limitation, for technical issues or other unforeseen circumstances. Flock is not responsible for any technical issues, or other technical or human errors that may affect the operation or outcome of this promotion. Employees, contractors, and other agents of Flock and its affiliates, as well as their immediate family members, are not eligible to participate in this promotion. Employees of government entities, government-controlled entities, or government-owned entities are not eligible to participate in this promotion. This offer is void where prohibited by applicable law."]})})})]}),ZO=()=>b.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-6",children:b.jsx("div",{className:"max-w-2xl w-full mx-auto text-center",children:b.jsxs("div",{className:"bg-card p-8 rounded-2xl shadow-strong border border-border/20",children:[b.jsxs("div",{className:"mb-6",children:[b.jsx(E1,{className:"w-16 h-16 text-primary mx-auto mb-4"}),b.jsx("h1",{className:"text-3xl font-playfair font-bold text-foreground mb-4",children:"Thank You for Your Submission"})]}),b.jsxs("div",{className:"space-y-4 mb-8",children:[b.jsxs("p",{className:"text-lg font-outfit text-muted-foreground leading-relaxed",children:["If you qualify, you'll receive an email invitation to the virtual lunch and learn on"," ",b.jsx("strong",{className:"text-foreground",children:"Tuesday, December 16th at 1:00 PM EDT / 10:00 AM PDT"})]}),b.jsx("div",{className:"bg-muted/30 p-4 rounded-lg",children:b.jsx("p",{className:"text-sm font-outfit text-muted-foreground",children:"We'll review your submission and send qualifying participants an email with the Zoom link and your $30 DoorDash gift card details within 24 hours."})})]}),b.jsx(Pf,{variant:"hero",size:"lg",asChild:!0,children:b.jsx(JC,{to:"/",children:"Return to Event Page"})})]})})}),eN=()=>{const e=bi();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),b.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:b.jsxs("div",{className:"text-center",children:[b.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),b.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),b.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},tN=new Yk,nN=()=>b.jsx(Xk,{client:tN,children:b.jsxs(Ck,{children:[b.jsx(l_,{}),b.jsx(U_,{}),b.jsx(GC,{children:b.jsxs(zC,{children:[b.jsx(ya,{path:"/",element:b.jsx(XO,{})}),b.jsx(ya,{path:"/thank-you",element:b.jsx(ZO,{})}),b.jsx(ya,{path:"*",element:b.jsx(eN,{})})]})})]})});jv(document.getElementById("root")).render(b.jsx(nN,{}));

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.