PageSourceSearch

https://gods-house-events.lovable.app/assets/index-De9QvpRF.js

js gods-house-events.lovable.app collected 2026-10-03 03:57:15 UTC 531,438 bytes, 182 lines download raw bytes

vendor: 6,726 bytes, lines 1-9
1var Dw=Object.defineProperty;var Nh=t=>{throw TypeError(t)};var Mw=(t,e,r)=>e in t?Dw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var er=(t,e,r)=>Mw(t,typeof e!="symbol"?e+"":e,r),Ll=(t,e,r)=>e.has(t)||Nh("Cannot "+r);var T=(t,e,r)=>(Ll(t,e,"read from private field"),r?r.call(t):e.get(t)),te=(t,e,r)=>e.has(t)?Nh("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),K=(t,e,r,n)=>(Ll(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Ne=(t,e,r)=>(Ll(t,e,"access private method"),r);var yi=(t,e,r,n)=>({set _(s){K(t,e,s,r)},get _(){return T(t,e,n)}});function vm(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in t)){const o=Object.getOwnPropertyDescriptor(n,s);o&&Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function oi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Uw(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return t[n]}})}),r}var ym={exports:{}},el={},wm={exports:{}},Y={};/**
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 ii=Symbol.for("react.element"),Fw=Symbol.for("react.portal"),zw=Symbol.for("react.fragment"),Bw=Symbol.for("react.strict_mode"),Hw=Symbol.for("react.profiler"),Vw=Symbol.for("react.provider"),Ww=Symbol.for("react.context"),Kw=Symbol.for("react.forward_ref"),qw=Symbol.for("react.suspense"),Gw=Symbol.for("react.memo"),Qw=Symbol.for("react.lazy"),Ih=Symbol.iterator;function Jw(t){return t===null||typeof t!="object"?null:(t=Ih&&t[Ih]||t["@@iterator"],typeof t=="function"?t:null)}var bm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_m=Object.assign,xm={};function Ks(t,e,r){this.props=t,this.context=e,this.refs=xm,this.updater=r||bm}Ks.prototype.isReactComponent={};Ks.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ks.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Em(){}Em.prototype=Ks.prototype;function rd(t,e,r){this.props=t,this.context=e,this.refs=xm,this.updater=r||bm}var nd=rd.prototype=new Em;nd.constructor=rd;_m(nd,Ks.prototype);nd.isPureReactComponent=!0;var $h=Array.isArray,Sm=Object.prototype.hasOwnProperty,sd={current:null},km={key:!0,ref:!0,__self:!0,__source:!0};function Tm(t,e,r){var n,s={},o=null,i=null;if(e!=null)for(n in e.ref!==void 0&&(i=e.ref),e.key!==void 0&&(o=""+e.key),e)Sm.call(e,n)&&!km.hasOwnProperty(n)&&(s[n]=e[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(t&&t.defaultProps)for(n in a=t.defaultProps,a)s[n]===void 0&&(s[n]=a[n]);return{$$typeof:ii,type:t,key:o,ref:i,props:s,_owner:sd.current}}function Yw(t,e){return{$$typeof:ii,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function od(t){return typeof t=="object"&&t!==null&&t.$$typeof===ii}function Xw(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var Lh=/\/+/g;function Dl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Xw(""+t.key):e.toString(36)}function Yi(t,e,r,n,s){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var i=!1;if(t===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case ii:case Fw:i=!0}}if(i)return i=t,s=s(i),t=n===""?"."+Dl(i,0):n,$h(s)?(r="",t!=null&&(r=t.replace(Lh,"$&/")+"/"),Yi(s,e,r,"",function(u){return u})):s!=null&&(od(s)&&(s=Yw(s,r+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(Lh,"$&/")+"/")+t)),e.push(s)),1;if(i=0,n=n===""?".":n+":",$h(t))for(var a=0;a<t.length;a++){o=t[a];var l=n+Dl(o,a);i+=Yi(o,e,r,l,s)}else if(l=Jw(t),typeof l=="function")for(t=l.call(t),a=0;!(o=t.next()).done;)o=o.value,l=n+Dl(o,a++),i+=Yi(o,e,r,l,s);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return i}function wi(t,e,r){if(t==null)return t;var n=[],s=0;return Yi(t,n,"","",function(o){return e.call(r,o,s++)}),n}function Zw(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Ve={current:null},Xi={transition:null},eb={ReactCurrentDispatcher:Ve,ReactCurrentBatchConfig:Xi,ReactCurrentOwner:sd};function Cm(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:wi,forEach:function(t,e,r){wi(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return wi(t,function(){e++}),e},toArray:function(t){return wi(t,function(e){return e})||[]},only:function(t){if(!od(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Y.Component=Ks;Y.Fragment=zw;Y.Profiler=Hw;Y.PureComponent=rd;Y.StrictMode=Bw;Y.Suspense=qw;
vendor: 6,986 bytes, lines 9-25
9Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eb;Y.act=Cm;Y.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=_m({},t.props),s=t.key,o=t.ref,i=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,i=sd.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Sm.call(e,l)&&!km.hasOwnProperty(l)&&(n[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:ii,type:t.type,key:s,ref:o,props:n,_owner:i}};Y.createContext=function(t){return t={$$typeof:Ww,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Vw,_context:t},t.Consumer=t};Y.createElement=Tm;Y.createFactory=function(t){var e=Tm.bind(null,t);return e.type=t,e};Y.createRef=function(){return{current:null}};Y.forwardRef=function(t){return{$$typeof:Kw,render:t}};Y.isValidElement=od;Y.lazy=function(t){return{$$typeof:Qw,_payload:{_status:-1,_result:t},_init:Zw}};Y.memo=function(t,e){return{$$typeof:Gw,type:t,compare:e===void 0?null:e}};Y.startTransition=function(t){var e=Xi.transition;Xi.transition={};try{t()}finally{Xi.transition=e}};Y.unstable_act=Cm;Y.useCallback=function(t,e){return Ve.current.useCallback(t,e)};Y.useContext=function(t){return Ve.current.useContext(t)};Y.useDebugValue=function(){};Y.useDeferredValue=function(t){return Ve.current.useDeferredValue(t)};Y.useEffect=function(t,e){return Ve.current.useEffect(t,e)};Y.useId=function(){return Ve.current.useId()};Y.useImperativeHandle=function(t,e,r){return Ve.current.useImperativeHandle(t,e,r)};Y.useInsertionEffect=function(t,e){return Ve.current.useInsertionEffect(t,e)};Y.useLayoutEffect=function(t,e){return Ve.current.useLayoutEffect(t,e)};Y.useMemo=function(t,e){return Ve.current.useMemo(t,e)};Y.useReducer=function(t,e,r){return Ve.current.useReducer(t,e,r)};Y.useRef=function(t){return Ve.current.useRef(t)};Y.useState=function(t){return Ve.current.useState(t)};Y.useSyncExternalStore=function(t,e,r){return Ve.current.useSyncExternalStore(t,e,r)};Y.useTransition=function(){return Ve.current.useTransition()};Y.version="18.3.1";wm.exports=Y;var _=wm.exports;const O=oi(_),Pm=vm({__proto__:null,default:O},[_]);/**
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 tb=_,rb=Symbol.for("react.element"),nb=Symbol.for("react.fragment"),sb=Object.prototype.hasOwnProperty,ob=tb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ib={key:!0,ref:!0,__self:!0,__source:!0};function Om(t,e,r){var n,s={},o=null,i=null;r!==void 0&&(o=""+r),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(i=e.ref);for(n in e)sb.call(e,n)&&!ib.hasOwnProperty(n)&&(s[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)s[n]===void 0&&(s[n]=e[n]);return{$$typeof:rb,type:t,key:o,ref:i,props:s,_owner:ob.current}}el.Fragment=nb;el.jsx=Om;el.jsxs=Om;ym.exports=el;var b=ym.exports,Rm={exports:{}},lt={},Am={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(t){function e(C,R){var L=C.length;C.push(R);e:for(;0<L;){var G=L-1>>>1,F=C[G];if(0<s(F,R))C[G]=R,C[L]=F,L=G;else break e}}function r(C){return C.length===0?null:C[0]}function n(C){if(C.length===0)return null;var R=C[0],L=C.pop();if(L!==R){C[0]=L;e:for(var G=0,F=C.length,J=F>>>1;G<J;){var Z=2*(G+1)-1,we=C[Z],je=Z+1,re=C[je];if(0>s(we,L))je<F&&0>s(re,we)?(C[G]=re,C[je]=L,G=je):(C[G]=we,C[Z]=L,G=Z);else if(je<F&&0>s(re,L))C[G]=re,C[je]=L,G=je;else break e}}return R}function s(C,R){var L=C.sortIndex-R.sortIndex;return L!==0?L:C.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();t.unstable_now=function(){return i.now()-a}}var l=[],u=[],c=1,h=null,f=3,d=!1,y=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(C){for(var R=r(u);R!==null;){if(R.callback===null)n(u);else if(R.startTime<=C)n(u),R.sortIndex=R.expirationTime,e(l,R);else break;R=r(u)}}function x(C){if(v=!1,m(C),!y)if(r(l)!==null)y=!0,H(E);else{var R=r(u);R!==null&&q(x,R.startTime-C)}}function E(C,R){y=!1,v&&(v=!1,g(P),P=-1),d=!0;var L=f;try{for(m(R),h=r(l);h!==null&&(!(h.expirationTime>R)||C&&!z());){var G=h.callback;if(typeof G=="function"){h.callback=null,f=h.priorityLevel;var F=G(h.expirationTime<=R);R=t.unstable_now(),typeof F=="function"?h.callback=F:h===r(l)&&n(l),m(R)}else n(l);h=r(l)}if(h!==null)var J=!0;else{var Z=r(u);Z!==null&&q(x,Z.startTime-R),J=!1}return J}finally{h=null,f=L,d=!1}}var S=!1,k=null,P=-1,j=5,N=-1;function z(){return!(t.unstable_now()-N<j)}function $(){if(k!==null){var C=t.unstable_now();N=C;var R=!0;try{R=k(!0,C)}finally{R?V():(S=!1,k=null)}}else S=!1}var V;if(typeof p=="function")V=function(){p($)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,X=I.port2;I.port1.onmessage=$,V=function(){X.postMessage(null)}}else V=function(){w($,0)};function H(C){k=C,S||(S=!0,V())}function q(C,R){P=w(function(){C(t.unstable_now())},R)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(C){C.callback=null},t.unstable_continueExecution=function(){y||d||(y=!0,H(E))},t.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"):j=0<C?Math.floor(1e3/C):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(C){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var L=f;f=R;try{return C()}finally{f=L}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(C,R){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var L=f;f=C;try{return R()}finally{f=L}},t.unstable_scheduleCallback=function(C,R,L){var G=t.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?G+L:G):L=G,C){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}
vendor: 4,614 bytes, lines 25-33
25return F=L+F,C={id:c++,callback:R,priorityLevel:C,startTime:L,expirationTime:F,sortIndex:-1},L>G?(C.sortIndex=L,e(u,C),r(l)===null&&C===r(u)&&(v?(g(P),P=-1):v=!0,q(x,L-G))):(C.sortIndex=F,e(l,C),y||d||(y=!0,H(E))),C},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(C){var R=f;return function(){var L=f;f=R;try{return C.apply(this,arguments)}finally{f=L}}}})(jm);Am.exports=jm;var ab=Am.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var lb=_,at=ab;function A(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Nm=new Set,No={};function Un(t,e){Ls(t,e),Ls(t+"Capture",e)}function Ls(t,e){for(No[t]=e,t=0;t<e.length;t++)Nm.add(e[t])}var cr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ru=Object.prototype.hasOwnProperty,ub=/^[: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]*$/,Dh={},Mh={};function cb(t){return Ru.call(Mh,t)?!0:Ru.call(Dh,t)?!1:ub.test(t)?Mh[t]=!0:(Dh[t]=!0,!1)}function db(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function hb(t,e,r,n){if(e===null||typeof e>"u"||db(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function We(t,e,r,n,s,o,i){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=i}var Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ae[t]=new We(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ae[e]=new We(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ae[t]=new We(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ae[t]=new We(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ae[t]=new We(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ae[t]=new We(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ae[t]=new We(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ae[t]=new We(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ae[t]=new We(t,5,!1,t.toLowerCase(),null,!1,!1)});var id=/[\-:]([a-z])/g;function ad(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
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(t){var e=t.replace(id,ad);Ae[e]=new We(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(id,ad);Ae[e]=new We(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(id,ad);Ae[e]=new We(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ae[t]=new We(t,1,!1,t.toLowerCase(),null,!1,!1)});Ae.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ae[t]=new We(t,1,!1,t.toLowerCase(),null,!0,!0)});function ld(t,e,r,n){var s=Ae.hasOwnProperty(e)?Ae[e]:null;(s!==null?s.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(hb(e,r,s,n)&&(r=null),n||s===null?cb(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):s.mustUseProperty?t[s.propertyName]=r===null?s.type===3?!1:"":r:(e=s.attributeName,n=s.attributeNamespace,r===null?t.removeAttribute(e):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var gr=lb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bi=Symbol.for("react.element"),ss=Symbol.for("react.portal"),os=Symbol.for("react.fragment"),ud=Symbol.for("react.strict_mode"),Au=Symbol.for("react.profiler"),Im=Symbol.for("react.provider"),$m=Symbol.for("react.context"),cd=Symbol.for("react.forward_ref"),ju=Symbol.for("react.suspense"),Nu=Symbol.for("react.suspense_list"),dd=Symbol.for("react.memo"),Pr=Symbol.for("react.lazy"),Lm=Symbol.for("react.offscreen"),Uh=Symbol.iterator;function no(t){return t===null||typeof t!="object"?null:(t=Uh&&t[Uh]||t["@@iterator"],typeof t=="function"?t:null)}var me=Object.assign,Ml;function go(t){if(Ml===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);Ml=e&&e[1]||""}return`
34`+Ml+t}var Ul=!1;function Fl(t,e){if(!t||Ul)return"";Ul=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var n=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){n=u}t.call(e.prototype)}else{try{throw Error()}catch(u){n=u}t()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),o=n.stack.split(`
36`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=`
37`+s[i].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=i&&0<=a);break}}}finally{Ul=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?go(t):""}function fb(t){switch(t.tag){case 5:return go(t.type);case 16:return go("Lazy");case 13:return go("Suspense");case 19:return go("SuspenseList");case 0:case 2:case 15:return t=Fl(t.type,!1),t;case 11:return t=Fl(t.type.render,!1),t;case 1:return t=Fl(t.type,!0),t;default:return""}}function Iu(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case os:return"Fragment";case ss:return"Portal";case Au:return"Profiler";case ud:return"StrictMode";case ju:return"Suspense";case Nu:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case $m:return(t.displayName||"Context")+".Consumer";case Im:return(t._context.displayName||"Context")+".Provider";case cd:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case dd:return e=t.displayName||null,e!==null?e:Iu(t.type)||"Memo";case Pr:e=t._payload,t=t._init;try{return Iu(t(e))}catch{}}return null}function pb(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Iu(e);case 8:return e===ud?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Qr(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Dm(t){var e=t.type;
vendor: 14,189 bytes, line 37
37return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function mb(t){var e=Dm(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,o=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function _i(t){t._valueTracker||(t._valueTracker=mb(t))}function Mm(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=Dm(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function ga(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function $u(t,e){var r=e.checked;return me({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Fh(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Qr(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Um(t,e){e=e.checked,e!=null&&ld(t,"checked",e,!1)}function Lu(t,e){Um(t,e);var r=Qr(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Du(t,e.type,r):e.hasOwnProperty("defaultValue")&&Du(t,e.type,Qr(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function zh(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Du(t,e,r){(e!=="number"||ga(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var vo=Array.isArray;function gs(t,e,r,n){if(t=t.options,e){e={};for(var s=0;s<r.length;s++)e["$"+r[s]]=!0;for(r=0;r<t.length;r++)s=e.hasOwnProperty("$"+t[r].value),t[r].selected!==s&&(t[r].selected=s),s&&n&&(t[r].defaultSelected=!0)}else{for(r=""+Qr(r),e=null,s=0;s<t.length;s++){if(t[s].value===r){t[s].selected=!0,n&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Mu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(A(91));return me({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Bh(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(A(92));if(vo(r)){if(1<r.length)throw Error(A(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:Qr(r)}}function Fm(t,e){var r=Qr(e.value),n=Qr(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function Hh(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function zm(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Uu(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?zm(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var xi,Bm=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,s){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(xi=xi||document.createElement("div"),xi.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=xi.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Io(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var _o={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},gb=["Webkit","ms","Moz","O"];Object.keys(_o).forEach(function(t){gb.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),_o[e]=_o[t]})});function Hm(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||_o.hasOwnProperty(t)&&_o[t]?(""+e).trim():e+"px"}function Vm(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=Hm(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,s):t[r]=s}}var vb=me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fu(t,e){if(e){if(vb[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(A(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(A(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(A(61))}if(e.style!=null&&typeof e.style!="object")throw Error(A(62))}}function zu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bu=null;function hd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Hu=null,vs=null,ys=null;function Vh(t){if(t=ui(t)){if(typeof Hu!="function")throw Error(A(280));var e=t.stateNode;e&&(e=ol(e),Hu(t.stateNode,t.type,e))}}function Wm(t){vs?ys?ys.push(t):ys=[t]:vs=t}function Km(){if(vs){var t=vs,e=ys;if(ys=vs=null,Vh(t),e)for(t=0;t<e.length;t++)Vh(e[t])}}function qm(t,e){return t(e)}function Gm(){}var zl=!1;function Qm(t,e,r){if(zl)return t(e,r);zl=!0;try{return qm(t,e,r)}finally{zl=!1,(vs!==null||ys!==null)&&(Gm(),Km())}}function $o(t,e){var r=t.stateNode;if(r===null)return null;var n=ol(r);if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(A(231,e,typeof r));return r}var Vu=!1;if(cr)try{var so={};Object.defineProperty(so,"passive",{get:function(){Vu=!0}}),window.addEventListener("test",so,so),window.removeEventListener("test",so,so)}catch{Vu=!1}function yb(t,e,r,n,s,o,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(r,u)}catch(c){this.onError(c)}}var xo=!1,va=null,ya=!1,Wu=null,wb={onError:function(t){xo=!0,va=t}};function bb(t,e,r,n,s,o,i,a,l){xo=!1,va=null,yb.apply(wb,arguments)}function _b(t,e,r,n,s,o,i,a,l){if(bb.apply(this,arguments),xo){if(xo){var u=va;xo=!1,va=null}else throw Error(A(198));ya||(ya=!0,Wu=u)}}function Fn(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function Jm(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Wh(t){if(Fn(t)!==t)throw Error(A(188))}function xb(t){var e=t.alternate;if(!e){if(e=Fn(t),e===null)throw Error(A(188));return e!==t?null:t}for(var r=t,n=e;;){var s=r.return;if(s===null)break;var o=s.alternate;if(o===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===r)return Wh(s),t;if(o===n)return Wh(s),e;o=o.sibling}throw Error(A(188))}if(r.return!==n.return)r=s,n=o;else{for(var i=!1,a=s.child;a;){if(a===r){i=!0,r=s,n=o;break}if(a===n){i=!0,n=s,r=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===r){i=!0,r=o,n=s;break}if(a===n){i=!0,n=o,r=s;break}a=a.sibling}if(!i)throw Error(A(189))}}if(r.alternate!==n)throw Error(A(190))}if(r.tag!==3)throw Error(A(188));return r.stateNode.current===r?t:e}function Ym(t){return t=xb(t),t!==null?Xm(t):null}function Xm(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Xm(t);if(e!==null)return e;t=t.sibling}return null}var Zm=at.unstable_scheduleCallback,Kh=at.unstable_cancelCallback,Eb=at.unstable_shouldYield,Sb=at.unstable_requestPaint,ye=at.unstable_now,kb=at.unstable_getCurrentPriorityLevel,fd=at.unstable_ImmediatePriority,eg=at.unstable_UserBlockingPriority,wa=at.unstable_NormalPriority,Tb=at.unstable_LowPriority,tg=at.unstable_IdlePriority,tl=null,Qt=null;function Cb(t){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(tl,t,void 0,(t.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:Rb,Pb=Math.log,Ob=Math.LN2;function Rb(t){return t>>>=0,t===0?32:31-(Pb(t)/Ob|0)|0}var Ei=64,Si=4194304;function yo(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function ba(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,s=t.suspendedLanes,o=t.pingedLanes,i=r&268435455;if(i!==0){var a=i&~s;a!==0?n=yo(a):(o&=i,o!==0&&(n=yo(o)))}else i=r&~s,i!==0?n=yo(i):o!==0&&(n=yo(o));if(n===0)return 0;if(e!==0&&e!==n&&!(e&s)&&(s=n&-n,o=e&-e,s>=o||s===16&&(o&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-$t(e),s=1<<r,n|=t[r],e&=~s;return n}function Ab(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jb(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,s=t.expirationTimes,o=t.pendingLanes;0<o;){var i=31-$t(o),a=1<<i,l=s[i];l===-1?(!(a&r)||a&n)&&(s[i]=Ab(a,e)):l<=e&&(t.expiredLanes|=a),o&=~a}}function Ku(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function rg(){var t=Ei;return Ei<<=1,!(Ei&4194240)&&(Ei=64),t}function Bl(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function ai(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-$t(e),t[e]=r}function Nb(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var s=31-$t(r),o=1<<s;e[s]=0,n[s]=-1,t[s]=-1,r&=~o}}function pd(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-$t(r),s=1<<n;s&e|t[n]&e&&(t[n]|=e),r&=~s}}var ne=0;function ng(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var sg,md,og,ig,ag,qu=!1,ki=[],zr=null,Br=null,Hr=null,Lo=new Map,Do=new Map,Rr=[],Ib="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 qh(t,e){switch(t){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":Br=null;break;case"mouseover":case"mouseout":Hr=null;break;case"pointerover":case"pointerout":Lo.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Do.delete(e.pointerId)}}function oo(t,e,r,n,s,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[s]},e!==null&&(e=ui(e),e!==null&&md(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function $b(t,e,r,n,s){switch(e){case"focusin":return zr=oo(zr,t,e,r,n,s),!0;case"dragenter":return Br=oo(Br,t,e,r,n,s),!0;case"mouseover":return Hr=oo(Hr,t,e,r,n,s),!0;case"pointerover":var o=s.pointerId;return Lo.set(o,oo(Lo.get(o)||null,t,e,r,n,s)),!0;case"gotpointercapture":return o=s.pointerId,Do.set(o,oo(Do.get(o)||null,t,e,r,n,s)),!0}return!1}function lg(t){var e=wn(t.target);if(e!==null){var r=Fn(e);if(r!==null){if(e=r.tag,e===13){if(e=Jm(r),e!==null){t.blockedOn=e,ag(t.priority,function(){og(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Zi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=Gu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);Bu=n,r.target.dispatchEvent(n),Bu=null}else return e=ui(r),e!==null&&md(e),t.blockedOn=r,!1;e.shift()}return!0}function Gh(t,e,r){Zi(t)&&r.delete(e)}
vendor: 11,957 bytes, line 37
37function Lb(){qu=!1,zr!==null&&Zi(zr)&&(zr=null),Br!==null&&Zi(Br)&&(Br=null),Hr!==null&&Zi(Hr)&&(Hr=null),Lo.forEach(Gh),Do.forEach(Gh)}function io(t,e){t.blockedOn===e&&(t.blockedOn=null,qu||(qu=!0,at.unstable_scheduleCallback(at.unstable_NormalPriority,Lb)))}function Mo(t){function e(s){return io(s,t)}if(0<ki.length){io(ki[0],t);for(var r=1;r<ki.length;r++){var n=ki[r];n.blockedOn===t&&(n.blockedOn=null)}}for(zr!==null&&io(zr,t),Br!==null&&io(Br,t),Hr!==null&&io(Hr,t),Lo.forEach(e),Do.forEach(e),r=0;r<Rr.length;r++)n=Rr[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<Rr.length&&(r=Rr[0],r.blockedOn===null);)lg(r),r.blockedOn===null&&Rr.shift()}var ws=gr.ReactCurrentBatchConfig,_a=!0;function Db(t,e,r,n){var s=ne,o=ws.transition;ws.transition=null;try{ne=1,gd(t,e,r,n)}finally{ne=s,ws.transition=o}}function Mb(t,e,r,n){var s=ne,o=ws.transition;ws.transition=null;try{ne=4,gd(t,e,r,n)}finally{ne=s,ws.transition=o}}function gd(t,e,r,n){if(_a){var s=Gu(t,e,r,n);if(s===null)Xl(t,e,n,xa,r),qh(t,n);else if($b(s,t,e,r,n))n.stopPropagation();else if(qh(t,n),e&4&&-1<Ib.indexOf(t)){for(;s!==null;){var o=ui(s);if(o!==null&&sg(o),o=Gu(t,e,r,n),o===null&&Xl(t,e,n,xa,r),o===s)break;s=o}s!==null&&n.stopPropagation()}else Xl(t,e,n,null,r)}}var xa=null;function Gu(t,e,r,n){if(xa=null,t=hd(n),t=wn(t),t!==null)if(e=Fn(t),e===null)t=null;else if(r=e.tag,r===13){if(t=Jm(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return xa=t,null}function ug(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"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(kb()){case fd:return 1;case eg:return 4;case wa:case Tb:return 16;case tg:return 536870912;default:return 16}default:return 16}}var Mr=null,vd=null,ea=null;function cg(){if(ea)return ea;var t,e=vd,r=e.length,n,s="value"in Mr?Mr.value:Mr.textContent,o=s.length;for(t=0;t<r&&e[t]===s[t];t++);var i=r-t;for(n=1;n<=i&&e[r-n]===s[o-n];n++);return ea=s.slice(t,1<n?1-n:void 0)}function ta(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ti(){return!0}function Qh(){return!1}function ut(t){function e(r,n,s,o,i){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(r=t[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ti:Qh,this.isPropagationStopped=Qh,this}return me(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ti)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ti)},persist:function(){},isPersistent:Ti}),e}var qs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yd=ut(qs),li=me({},qs,{view:0,detail:0}),Ub=ut(li),Hl,Vl,ao,rl=me({},li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wd,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ao&&(ao&&t.type==="mousemove"?(Hl=t.screenX-ao.screenX,Vl=t.screenY-ao.screenY):Vl=Hl=0,ao=t),Hl)},movementY:function(t){return"movementY"in t?t.movementY:Vl}}),Jh=ut(rl),Fb=me({},rl,{dataTransfer:0}),zb=ut(Fb),Bb=me({},li,{relatedTarget:0}),Wl=ut(Bb),Hb=me({},qs,{animationName:0,elapsedTime:0,pseudoElement:0}),Vb=ut(Hb),Wb=me({},qs,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Kb=ut(Wb),qb=me({},qs,{data:0}),Yh=ut(qb),Gb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qb={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"},Jb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yb(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Jb[t])?!!e[t]:!1}function wd(){return Yb}var Xb=me({},li,{key:function(t){if(t.key){var e=Gb[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ta(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Qb[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wd,charCode:function(t){return t.type==="keypress"?ta(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ta(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Zb=ut(Xb),e_=me({},rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xh=ut(e_),t_=me({},li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wd}),r_=ut(t_),n_=me({},qs,{propertyName:0,elapsedTime:0,pseudoElement:0}),s_=ut(n_),o_=me({},rl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),i_=ut(o_),a_=[9,13,27,32],bd=cr&&"CompositionEvent"in window,Eo=null;cr&&"documentMode"in document&&(Eo=document.documentMode);var l_=cr&&"TextEvent"in window&&!Eo,dg=cr&&(!bd||Eo&&8<Eo&&11>=Eo),Zh=" ",ef=!1;function hg(t,e){switch(t){case"keyup":return a_.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var is=!1;function u_(t,e){switch(t){case"compositionend":return fg(e);case"keypress":return e.which!==32?null:(ef=!0,Zh);case"textInput":return t=e.data,t===Zh&&ef?null:t;default:return null}}function c_(t,e){if(is)return t==="compositionend"||!bd&&hg(t,e)?(t=cg(),ea=vd=Mr=null,is=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return dg&&e.locale!=="ko"?null:e.data;default:return null}}var d_={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 tf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!d_[t.type]:e==="textarea"}function pg(t,e,r,n){Wm(n),e=Ea(e,"onChange"),0<e.length&&(r=new yd("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var So=null,Uo=null;function h_(t){kg(t,0)}function nl(t){var e=us(t);if(Mm(e))return t}function f_(t,e){if(t==="change")return e}var mg=!1;if(cr){var Kl;if(cr){var ql="oninput"in document;if(!ql){var rf=document.createElement("div");rf.setAttribute("oninput","return;"),ql=typeof rf.oninput=="function"}Kl=ql}else Kl=!1;mg=Kl&&(!document.documentMode||9<document.documentMode)}function nf(){So&&(So.detachEvent("onpropertychange",gg),Uo=So=null)}function gg(t){if(t.propertyName==="value"&&nl(Uo)){var e=[];pg(e,Uo,t,hd(t)),Qm(h_,e)}}function p_(t,e,r){t==="focusin"?(nf(),So=e,Uo=r,So.attachEvent("onpropertychange",gg)):t==="focusout"&&nf()}function m_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return nl(Uo)}function g_(t,e){if(t==="click")return nl(e)}function v_(t,e){if(t==="input"||t==="change")return nl(e)}function y_(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Dt=typeof Object.is=="function"?Object.is:y_;function Fo(t,e){if(Dt(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!Ru.call(e,s)||!Dt(t[s],e[s]))return!1}return!0}function sf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function of(t,e){var r=sf(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sf(r)}}function vg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?vg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function yg(){for(var t=window,e=ga();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=ga(t.document)}return e}function _d(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function w_(t){var e=yg(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&vg(r.ownerDocument.documentElement,r)){if(n!==null&&_d(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=r.textContent.length,o=Math.min(n.start,s);n=n.end===void 0?o:Math.min(n.end,s),!t.extend&&o>n&&(s=n,n=o,o=s),s=of(r,o);var i=of(r,n);s&&i&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==i.node||t.focusOffset!==i.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),o>n?(t.addRange(e),t.extend(i.node,i.offset)):(e.setEnd(i.node,i.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var b_=cr&&"documentMode"in document&&11>=document.documentMode,as=null,Qu=null,ko=null,Ju=!1;function af(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ju||as==null||as!==ga(n)||(n=as,"selectionStart"in n&&_d(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),ko&&Fo(ko,n)||(ko=n,n=Ea(Qu,"onSelect"),0<n.length&&(e=new yd("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=as)))}function Ci(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var ls={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionend:Ci("Transition","TransitionEnd")},Gl={},wg={};cr&&(wg=document.createElement("div").style,"AnimationEvent"in window||(delete ls.animationend.animation,delete ls.animationiteration.animation,delete ls.animationstart.animation),"TransitionEvent"in window||delete ls.transitionend.transition);function sl(t){if(Gl[t])return Gl[t];if(!ls[t])return t;var e=ls[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in wg)return Gl[t]=e[r];return t}var bg=sl("animationend"),_g=sl("animationiteration"),xg=sl("animationstart"),Eg=sl("transitionend"),Sg=new Map,lf="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 tn(t,e){Sg.set(t,e),Un(e,[t])}for(var Ql=0;Ql<lf.length;Ql++){var Jl=lf[Ql],__=Jl.toLowerCase(),x_=Jl[0].toUpperCase()+Jl.slice(1);tn(__,"on"+x_)}tn(bg,"onAnimationEnd");tn(_g,"onAnimationIteration");tn(xg,"onAnimationStart");tn("dblclick","onDoubleClick");tn("focusin","onFocus");tn("focusout","onBlur");tn(Eg,"onTransitionEnd");Ls("onMouseEnter",["mouseout","mouseover"]);Ls("onMouseLeave",["mouseout","mouseover"]);Ls("onPointerEnter",["pointerout","pointerover"]);Ls("onPointerLeave",["pointerout","pointerover"]);Un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Un("onBeforeInput",["compositionend","keypress","textInput","paste"]);Un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wo="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(" "),E_=new Set("cancel close invalid load scroll toggle".split(" ").concat(wo));function uf(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,_b(n,e,void 0,t),t.currentTarget=null}function kg(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],s=n.event;n=n.listeners;e:{var o=void 0;if(e)for(var i=n.length-1;0<=i;i--){var a=n[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;uf(s,a,u),o=l}else for(i=0;i<n.length;i++){if(a=n[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;uf(s,a,u),o=l}}}if(ya)throw t=Wu,ya=!1,Wu=null,t}function le(t,e){var r=e[tc];r===void 0&&(r=e[tc]=new Set);var n=t+"__bubble";r.has(n)||(Tg(e,t,2,!1),r.add(n))}function Yl(t,e,r){var n=0;e&&(n|=4),Tg(r,t,n,e)}var Pi="_reactListening"+Math.random().toString(36).slice(2);function zo(t){if(!t[Pi]){t[Pi]=!0,Nm.forEach(function(r){r!=="selectionchange"&&(E_.has(r)||Yl(r,!1,t),Yl(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Pi]||(e[Pi]=!0,Yl("selectionchange",!1,e))}}function Tg(t,e,r,n){switch(ug(e)){case 1:var s=Db;break;case 4:s=Mb;break;default:s=gd}r=s.bind(null,e,r,t),s=void 0,!Vu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),n?s!==void 0?t.addEventListener(e,r,{capture:!0,passive:s}):t.addEventListener(e,r,!0):s!==void 0?t.addEventListener(e,r,{passive:s}):t.addEventListener(e,r,!1)}function Xl(t,e,r,n,s){var o=n;if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var a=n.stateNode.containerInfo;
vendor: 5,316 bytes, lines 37-38
37if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=n.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=wn(a),i===null)return;if(l=i.tag,l===5||l===6){n=o=i;continue e}a=a.parentNode}}n=n.return}Qm(function(){var u=o,c=hd(r),h=[];e:{var f=Sg.get(t);if(f!==void 0){var d=yd,y=t;switch(t){case"keypress":if(ta(r)===0)break e;case"keydown":case"keyup":d=Zb;break;case"focusin":y="focus",d=Wl;break;case"focusout":y="blur",d=Wl;break;case"beforeblur":case"afterblur":d=Wl;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=Jh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=zb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=r_;break;case bg:case _g:case xg:d=Vb;break;case Eg:d=s_;break;case"scroll":d=Ub;break;case"wheel":d=i_;break;case"copy":case"cut":case"paste":d=Kb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=Xh}var v=(e&4)!==0,w=!v&&t==="scroll",g=v?f!==null?f+"Capture":null:f;v=[];for(var p=u,m;p!==null;){m=p;var x=m.stateNode;if(m.tag===5&&x!==null&&(m=x,g!==null&&(x=$o(p,g),x!=null&&v.push(Bo(p,x,m)))),w)break;p=p.return}0<v.length&&(f=new d(f,y,null,r,c),h.push({event:f,listeners:v}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",d=t==="mouseout"||t==="pointerout",f&&r!==Bu&&(y=r.relatedTarget||r.fromElement)&&(wn(y)||y[dr]))break e;if((d||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,d?(y=r.relatedTarget||r.toElement,d=u,y=y?wn(y):null,y!==null&&(w=Fn(y),y!==w||y.tag!==5&&y.tag!==6)&&(y=null)):(d=null,y=u),d!==y)){if(v=Jh,x="onMouseLeave",g="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&(v=Xh,x="onPointerLeave",g="onPointerEnter",p="pointer"),w=d==null?f:us(d),m=y==null?f:us(y),f=new v(x,p+"leave",d,r,c),f.target=w,f.relatedTarget=m,x=null,wn(c)===u&&(v=new v(g,p+"enter",y,r,c),v.target=m,v.relatedTarget=w,x=v),w=x,d&&y)t:{for(v=d,g=y,p=0,m=v;m;m=qn(m))p++;for(m=0,x=g;x;x=qn(x))m++;for(;0<p-m;)v=qn(v),p--;for(;0<m-p;)g=qn(g),m--;for(;p--;){if(v===g||g!==null&&v===g.alternate)break t;v=qn(v),g=qn(g)}v=null}else v=null;d!==null&&cf(h,f,d,v,!1),y!==null&&w!==null&&cf(h,w,y,v,!0)}}e:{if(f=u?us(u):window,d=f.nodeName&&f.nodeName.toLowerCase(),d==="select"||d==="input"&&f.type==="file")var E=f_;else if(tf(f))if(mg)E=v_;else{E=m_;var S=p_}else(d=f.nodeName)&&d.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=g_);if(E&&(E=E(t,u))){pg(h,E,r,c);break e}S&&S(t,f,u),t==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&Du(f,"number",f.value)}switch(S=u?us(u):window,t){case"focusin":(tf(S)||S.contentEditable==="true")&&(as=S,Qu=u,ko=null);break;case"focusout":ko=Qu=as=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,af(h,r,c);break;case"selectionchange":if(b_)break;case"keydown":case"keyup":af(h,r,c)}var k;if(bd)e:{switch(t){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else is?hg(t,r)&&(P="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(dg&&r.locale!=="ko"&&(is||P!=="onCompositionStart"?P==="onCompositionEnd"&&is&&(k=cg()):(Mr=c,vd="value"in Mr?Mr.value:Mr.textContent,is=!0)),S=Ea(u,P),0<S.length&&(P=new Yh(P,t,null,r,c),h.push({event:P,listeners:S}),k?P.data=k:(k=fg(r),k!==null&&(P.data=k)))),(k=l_?u_(t,r):c_(t,r))&&(u=Ea(u,"onBeforeInput"),0<u.length&&(c=new Yh("onBeforeInput","beforeinput",null,r,c),h.push({event:c,listeners:u}),c.data=k))}kg(h,e)})}function Bo(t,e,r){return{instance:t,listener:e,currentTarget:r}}function Ea(t,e){for(var r=e+"Capture",n=[];t!==null;){var s=t,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=$o(t,r),o!=null&&n.unshift(Bo(t,o,s)),o=$o(t,e),o!=null&&n.push(Bo(t,o,s))),t=t.return}return n}function qn(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function cf(t,e,r,n,s){for(var o=e._reactName,i=[];r!==null&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&u!==null&&(a=u,s?(l=$o(r,o),l!=null&&i.unshift(Bo(r,l,a))):s||(l=$o(r,o),l!=null&&i.push(Bo(r,l,a)))),r=r.return}i.length!==0&&t.push({event:e,listeners:i})}var S_=/\r\n?/g,k_=/\u0000|\uFFFD/g;function df(t){return(typeof t=="string"?t:""+t).replace(S_,`
38`).replace(k_,"")}function Oi(t,e,r){if(e=df(e),df(t)!==e&&r)throw Error(A(425))}function Sa(){}var Yu=null,Xu=null;function Zu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var ec=typeof setTimeout=="function"?setTimeout:void 0,T_=typeof clearTimeout=="function"?clearTimeout:void 0,hf=typeof Promise=="function"?Promise:void 0,C_=typeof queueMicrotask=="function"?queueMicrotask:typeof hf<"u"?function(t){return hf.resolve(null).then(t).cat
vendor: 1,415 bytes, line 38
38ch(P_)}:ec;function P_(t){setTimeout(function(){throw t})}function Zl(t,e){var r=e,n=0;do{var s=r.nextSibling;if(t.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){t.removeChild(s),Mo(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);Mo(e)}function Vr(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function ff(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Gs=Math.random().toString(36).slice(2),qt="__reactFiber$"+Gs,Ho="__reactProps$"+Gs,dr="__reactContainer$"+Gs,tc="__reactEvents$"+Gs,O_="__reactListeners$"+Gs,R_="__reactHandles$"+Gs;function wn(t){var e=t[qt];if(e)return e;for(var r=t.parentNode;r;){if(e=r[dr]||r[qt]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=ff(t);t!==null;){if(r=t[qt])return r;t=ff(t)}return e}t=r,r=t.parentNode}return null}function ui(t){return t=t[qt]||t[dr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function us(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(A(33))}function ol(t){return t[Ho]||null}var rc=[],cs=-1;function rn(t){return{current:t}}function ue(t){0>cs||(t.current=rc[cs],rc[cs]=null,cs--)}function ie(t,e){cs++,rc[cs]=t.current,t.current=e}
vendor: 14,471 bytes, line 38
38var Jr={},Me=rn(Jr),Qe=rn(!1),jn=Jr;function Ds(t,e){var r=t.type.contextTypes;if(!r)return Jr;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in r)s[o]=e[o];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function Je(t){return t=t.childContextTypes,t!=null}function ka(){ue(Qe),ue(Me)}function pf(t,e,r){if(Me.current!==Jr)throw Error(A(168));ie(Me,e),ie(Qe,r)}function Cg(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in e))throw Error(A(108,pb(t)||"Unknown",s));return me({},r,n)}function Ta(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Jr,jn=Me.current,ie(Me,t),ie(Qe,Qe.current),!0}function mf(t,e,r){var n=t.stateNode;if(!n)throw Error(A(169));r?(t=Cg(t,e,jn),n.__reactInternalMemoizedMergedChildContext=t,ue(Qe),ue(Me),ie(Me,t)):ue(Qe),ie(Qe,r)}var or=null,il=!1,eu=!1;function Pg(t){or===null?or=[t]:or.push(t)}function A_(t){il=!0,Pg(t)}function nn(){if(!eu&&or!==null){eu=!0;var t=0,e=ne;try{var r=or;for(ne=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}or=null,il=!1}catch(s){throw or!==null&&(or=or.slice(t+1)),Zm(fd,nn),s}finally{ne=e,eu=!1}}return null}var ds=[],hs=0,Ca=null,Pa=0,pt=[],mt=0,Nn=null,ar=1,lr="";function fn(t,e){ds[hs++]=Pa,ds[hs++]=Ca,Ca=t,Pa=e}function Og(t,e,r){pt[mt++]=ar,pt[mt++]=lr,pt[mt++]=Nn,Nn=t;var n=ar;t=lr;var s=32-$t(n)-1;n&=~(1<<s),r+=1;var o=32-$t(e)+s;if(30<o){var i=s-s%5;o=(n&(1<<i)-1).toString(32),n>>=i,s-=i,ar=1<<32-$t(e)+s|r<<s|n,lr=o+t}else ar=1<<o|r<<s|n,lr=t}function xd(t){t.return!==null&&(fn(t,1),Og(t,1,0))}function Ed(t){for(;t===Ca;)Ca=ds[--hs],ds[hs]=null,Pa=ds[--hs],ds[hs]=null;for(;t===Nn;)Nn=pt[--mt],pt[mt]=null,lr=pt[--mt],pt[mt]=null,ar=pt[--mt],pt[mt]=null}var ot=null,st=null,de=!1,Nt=null;function Rg(t,e){var r=gt(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function gf(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,ot=t,st=Vr(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,ot=t,st=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=Nn!==null?{id:ar,overflow:lr}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=gt(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,ot=t,st=null,!0):!1;default:return!1}}function nc(t){return(t.mode&1)!==0&&(t.flags&128)===0}function sc(t){if(de){var e=st;if(e){var r=e;if(!gf(t,e)){if(nc(t))throw Error(A(418));e=Vr(r.nextSibling);var n=ot;e&&gf(t,e)?Rg(n,r):(t.flags=t.flags&-4097|2,de=!1,ot=t)}}else{if(nc(t))throw Error(A(418));t.flags=t.flags&-4097|2,de=!1,ot=t}}}function vf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;ot=t}function Ri(t){if(t!==ot)return!1;if(!de)return vf(t),de=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Zu(t.type,t.memoizedProps)),e&&(e=st)){if(nc(t))throw Ag(),Error(A(418));for(;e;)Rg(t,e),e=Vr(e.nextSibling)}if(vf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(A(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){st=Vr(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}st=null}}else st=ot?Vr(t.stateNode.nextSibling):null;return!0}function Ag(){for(var t=st;t;)t=Vr(t.nextSibling)}function Ms(){st=ot=null,de=!1}function Sd(t){Nt===null?Nt=[t]:Nt.push(t)}var j_=gr.ReactCurrentBatchConfig;function lo(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(A(309));var n=r.stateNode}if(!n)throw Error(A(147,t));var s=n,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},e._stringRef=o,e)}if(typeof t!="string")throw Error(A(284));if(!r._owner)throw Error(A(290,t))}return t}function Ai(t,e){throw t=Object.prototype.toString.call(e),Error(A(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function yf(t){var e=t._init;return e(t._payload)}function jg(t){function e(g,p){if(t){var m=g.deletions;m===null?(g.deletions=[p],g.flags|=16):m.push(p)}}function r(g,p){if(!t)return null;for(;p!==null;)e(g,p),p=p.sibling;return null}function n(g,p){for(g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function s(g,p){return g=Gr(g,p),g.index=0,g.sibling=null,g}function o(g,p,m){return g.index=m,t?(m=g.alternate,m!==null?(m=m.index,m<p?(g.flags|=2,p):m):(g.flags|=2,p)):(g.flags|=1048576,p)}function i(g){return t&&g.alternate===null&&(g.flags|=2),g}function a(g,p,m,x){return p===null||p.tag!==6?(p=au(m,g.mode,x),p.return=g,p):(p=s(p,m),p.return=g,p)}function l(g,p,m,x){var E=m.type;return E===os?c(g,p,m.props.children,x,m.key):p!==null&&(p.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Pr&&yf(E)===p.type)?(x=s(p,m.props),x.ref=lo(g,p,m),x.return=g,x):(x=la(m.type,m.key,m.props,null,g.mode,x),x.ref=lo(g,p,m),x.return=g,x)}function u(g,p,m,x){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=lu(m,g.mode,x),p.return=g,p):(p=s(p,m.children||[]),p.return=g,p)}function c(g,p,m,x,E){return p===null||p.tag!==7?(p=An(m,g.mode,x,E),p.return=g,p):(p=s(p,m),p.return=g,p)}function h(g,p,m){if(typeof p=="string"&&p!==""||typeof p=="number")return p=au(""+p,g.mode,m),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case bi:return m=la(p.type,p.key,p.props,null,g.mode,m),m.ref=lo(g,null,p),m.return=g,m;case ss:return p=lu(p,g.mode,m),p.return=g,p;case Pr:var x=p._init;return h(g,x(p._payload),m)}if(vo(p)||no(p))return p=An(p,g.mode,m,null),p.return=g,p;Ai(g,p)}return null}function f(g,p,m,x){var E=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return E!==null?null:a(g,p,""+m,x);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case bi:return m.key===E?l(g,p,m,x):null;case ss:return m.key===E?u(g,p,m,x):null;case Pr:return E=m._init,f(g,p,E(m._payload),x)}if(vo(m)||no(m))return E!==null?null:c(g,p,m,x,null);Ai(g,m)}return null}function d(g,p,m,x,E){if(typeof x=="string"&&x!==""||typeof x=="number")return g=g.get(m)||null,a(p,g,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case bi:return g=g.get(x.key===null?m:x.key)||null,l(p,g,x,E);case ss:return g=g.get(x.key===null?m:x.key)||null,u(p,g,x,E);case Pr:var S=x._init;return d(g,p,m,S(x._payload),E)}if(vo(x)||no(x))return g=g.get(m)||null,c(p,g,x,E,null);Ai(p,x)}return null}function y(g,p,m,x){for(var E=null,S=null,k=p,P=p=0,j=null;k!==null&&P<m.length;P++){k.index>P?(j=k,k=null):j=k.sibling;var N=f(g,k,m[P],x);if(N===null){k===null&&(k=j);break}t&&k&&N.alternate===null&&e(g,k),p=o(N,p,P),S===null?E=N:S.sibling=N,S=N,k=j}if(P===m.length)return r(g,k),de&&fn(g,P),E;if(k===null){for(;P<m.length;P++)k=h(g,m[P],x),k!==null&&(p=o(k,p,P),S===null?E=k:S.sibling=k,S=k);return de&&fn(g,P),E}for(k=n(g,k);P<m.length;P++)j=d(k,g,P,m[P],x),j!==null&&(t&&j.alternate!==null&&k.delete(j.key===null?P:j.key),p=o(j,p,P),S===null?E=j:S.sibling=j,S=j);return t&&k.forEach(function(z){return e(g,z)}),de&&fn(g,P),E}function v(g,p,m,x){var E=no(m);if(typeof E!="function")throw Error(A(150));if(m=E.call(m),m==null)throw Error(A(151));for(var S=E=null,k=p,P=p=0,j=null,N=m.next();k!==null&&!N.done;P++,N=m.next()){k.index>P?(j=k,k=null):j=k.sibling;var z=f(g,k,N.value,x);if(z===null){k===null&&(k=j);break}t&&k&&z.alternate===null&&e(g,k),p=o(z,p,P),S===null?E=z:S.sibling=z,S=z,k=j}if(N.done)return r(g,k),de&&fn(g,P),E;if(k===null){for(;!N.done;P++,N=m.next())N=h(g,N.value,x),N!==null&&(p=o(N,p,P),S===null?E=N:S.sibling=N,S=N);return de&&fn(g,P),E}for(k=n(g,k);!N.done;P++,N=m.next())N=d(k,g,P,N.value,x),N!==null&&(t&&N.alternate!==null&&k.delete(N.key===null?P:N.key),p=o(N,p,P),S===null?E=N:S.sibling=N,S=N);return t&&k.forEach(function($){return e(g,$)}),de&&fn(g,P),E}function w(g,p,m,x){if(typeof m=="object"&&m!==null&&m.type===os&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case bi:e:{for(var E=m.key,S=p;S!==null;){if(S.key===E){if(E=m.type,E===os){if(S.tag===7){r(g,S.sibling),p=s(S,m.props.children),p.return=g,g=p;break e}}else if(S.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Pr&&yf(E)===S.type){r(g,S.sibling),p=s(S,m.props),p.ref=lo(g,S,m),p.return=g,g=p;break e}r(g,S);break}else e(g,S);S=S.sibling}m.type===os?(p=An(m.props.children,g.mode,x,m.key),p.return=g,g=p):(x=la(m.type,m.key,m.props,null,g.mode,x),x.ref=lo(g,p,m),x.return=g,g=x)}return i(g);case ss:e:{for(S=m.key;p!==null;){if(p.key===S)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){r(g,p.sibling),p=s(p,m.children||[]),p.return=g,g=p;break e}else{r(g,p);break}else e(g,p);p=p.sibling}p=lu(m,g.mode,x),p.return=g,g=p}return i(g);case Pr:return S=m._init,w(g,p,S(m._payload),x)}if(vo(m))return y(g,p,m,x);if(no(m))return v(g,p,m,x);Ai(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(r(g,p.sibling),p=s(p,m),p.return=g,g=p):(r(g,p),p=au(m,g.mode,x),p.return=g,g=p),i(g)):r(g,p)}return w}var Us=jg(!0),Ng=jg(!1),Oa=rn(null),Ra=null,fs=null,kd=null;function Td(){kd=fs=Ra=null}function Cd(t){var e=Oa.current;ue(Oa),t._currentValue=e}function oc(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function bs(t,e){Ra=t,kd=fs=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Ge=!0),t.firstContext=null)}function yt(t){var e=t._currentValue;if(kd!==t)if(t={context:t,memoizedValue:e,next:null},fs===null){if(Ra===null)throw Error(A(308));fs=t,Ra.dependencies={lanes:0,firstContext:t}}else fs=fs.next=t;return e}var bn=null;function Pd(t){bn===null?bn=[t]:bn.push(t)}function Ig(t,e,r,n){var s=e.interleaved;return s===null?(r.next=r,Pd(e)):(r.next=s.next,s.next=r),e.interleaved=r,hr(t,n)}function hr(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var Or=!1;function Od(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $g(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function ur(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Wr(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,ee&2){var s=n.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),n.pending=e,hr(t,r)}return s=n.interleaved,s===null?(e.next=e,Pd(n)):(e.next=s.next,s.next=e),n.interleaved=e,hr(t,r)}function ra(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,pd(t,r)}}function wf(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?s=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?s=o=e:o=o.next=e}else s=o=e;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function Aa(t,e,r,n){var s=t.updateQueue;Or=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?o=u:i.next=u,i=l;var c=t.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==i&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var h=s.baseState;i=0,c=u=l=null,a=o;do{var f=a.lane,d=a.eventTime;if((n&f)===f){c!==null&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=t,v=a;switch(f=e,d=r,v.tag){case 1:if(y=v.payload,typeof y=="function"){h=y.call(d,h,f);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,f=typeof y=="function"?y.call(d,h,f):y,f==null)break e;h=me({},h,f);break e;case 2:Or=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,f=s.effects,f===null?s.effects=[a]:f.push(a))}else d={eventTime:d,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=d,l=h):c=c.next=d,i|=f;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;f=a,a=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(c===null&&(l=h),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,e=s.shared.interleaved,e!==null){s=e;do i|=s.lane,s=s.next;while(s!==e)}else o===null&&(s.shared.lanes=0);$n|=i,t.lanes=i,t.memoizedState=h}}function bf(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(A(191,s));s.call(n)}}}var ci={},Jt=rn(ci),Vo=rn(ci),Wo=rn(ci);function _n(t){if(t===ci)throw Error(A(174));return t}function Rd(t,e){switch(ie(Wo,e),ie(Vo,t),ie(Jt,ci),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Uu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Uu(e,t)}ue(Jt),ie(Jt,e)}function Fs(){ue(Jt),ue(Vo),ue(Wo)}function Lg(t){_n(Wo.current);var e=_n(Jt.current),r=Uu(e,t.type);e!==r&&(ie(Vo,t),ie(Jt,r))}function Ad(t){Vo.current===t&&(ue(Jt),ue(Vo))}var fe=rn(0);function ja(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var tu=[];
vendor: 6,064 bytes, line 38
38function jd(){for(var t=0;t<tu.length;t++)tu[t]._workInProgressVersionPrimary=null;tu.length=0}var na=gr.ReactCurrentDispatcher,ru=gr.ReactCurrentBatchConfig,In=0,pe=null,Ee=null,Te=null,Na=!1,To=!1,Ko=0,N_=0;function Ie(){throw Error(A(321))}function Nd(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!Dt(t[r],e[r]))return!1;return!0}function Id(t,e,r,n,s,o){if(In=o,pe=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,na.current=t===null||t.memoizedState===null?D_:M_,t=r(n,s),To){o=0;do{if(To=!1,Ko=0,25<=o)throw Error(A(301));o+=1,Te=Ee=null,e.updateQueue=null,na.current=U_,t=r(n,s)}while(To)}if(na.current=Ia,e=Ee!==null&&Ee.next!==null,In=0,Te=Ee=pe=null,Na=!1,e)throw Error(A(300));return t}function $d(){var t=Ko!==0;return Ko=0,t}function Ht(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?pe.memoizedState=Te=t:Te=Te.next=t,Te}function wt(){if(Ee===null){var t=pe.alternate;t=t!==null?t.memoizedState:null}else t=Ee.next;var e=Te===null?pe.memoizedState:Te.next;if(e!==null)Te=e,Ee=t;else{if(t===null)throw Error(A(310));Ee=t,t={memoizedState:Ee.memoizedState,baseState:Ee.baseState,baseQueue:Ee.baseQueue,queue:Ee.queue,next:null},Te===null?pe.memoizedState=Te=t:Te=Te.next=t}return Te}function qo(t,e){return typeof e=="function"?e(t):e}function nu(t){var e=wt(),r=e.queue;if(r===null)throw Error(A(311));r.lastRenderedReducer=t;var n=Ee,s=n.baseQueue,o=r.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}n.baseQueue=s=o,r.pending=null}if(s!==null){o=s.next,n=n.baseState;var a=i=null,l=null,u=o;do{var c=u.lane;if((In&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:t(n,u.action);else{var h={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=h,i=n):l=l.next=h,pe.lanes|=c,$n|=c}u=u.next}while(u!==null&&u!==o);l===null?i=n:l.next=a,Dt(n,e.memoizedState)||(Ge=!0),e.memoizedState=n,e.baseState=i,e.baseQueue=l,r.lastRenderedState=n}if(t=r.interleaved,t!==null){s=t;do o=s.lane,pe.lanes|=o,$n|=o,s=s.next;while(s!==t)}else s===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function su(t){var e=wt(),r=e.queue;if(r===null)throw Error(A(311));r.lastRenderedReducer=t;var n=r.dispatch,s=r.pending,o=e.memoizedState;if(s!==null){r.pending=null;var i=s=s.next;do o=t(o,i.action),i=i.next;while(i!==s);Dt(o,e.memoizedState)||(Ge=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),r.lastRenderedState=o}return[o,n]}function Dg(){}function Mg(t,e){var r=pe,n=wt(),s=e(),o=!Dt(n.memoizedState,s);if(o&&(n.memoizedState=s,Ge=!0),n=n.queue,Ld(zg.bind(null,r,n,t),[t]),n.getSnapshot!==e||o||Te!==null&&Te.memoizedState.tag&1){if(r.flags|=2048,Go(9,Fg.bind(null,r,n,s,e),void 0,null),Ce===null)throw Error(A(349));In&30||Ug(r,e,s)}return s}function Ug(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=pe.updateQueue,e===null?(e={lastEffect:null,stores:null},pe.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function Fg(t,e,r,n){e.value=r,e.getSnapshot=n,Bg(e)&&Hg(t)}function zg(t,e,r){return r(function(){Bg(e)&&Hg(t)})}function Bg(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Dt(t,r)}catch{return!0}}function Hg(t){var e=hr(t,1);e!==null&&Lt(e,t,1,-1)}function _f(t){var e=Ht();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},e.queue=t,t=t.dispatch=L_.bind(null,pe,t),[e.memoizedState,t]}function Go(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=pe.updateQueue,e===null?(e={lastEffect:null,stores:null},pe.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function Vg(){return wt().memoizedState}function sa(t,e,r,n){var s=Ht();pe.flags|=t,s.memoizedState=Go(1|e,r,void 0,n===void 0?null:n)}function al(t,e,r,n){var s=wt();n=n===void 0?null:n;var o=void 0;if(Ee!==null){var i=Ee.memoizedState;if(o=i.destroy,n!==null&&Nd(n,i.deps)){s.memoizedState=Go(e,r,o,n);return}}pe.flags|=t,s.memoizedState=Go(1|e,r,o,n)}function xf(t,e){return sa(8390656,8,t,e)}function Ld(t,e){return al(2048,8,t,e)}function Wg(t,e){return al(4,2,t,e)}function Kg(t,e){return al(4,4,t,e)}function qg(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Gg(t,e,r){return r=r!=null?r.concat([t]):null,al(4,4,qg.bind(null,e,t),r)}function Dd(){}function Qg(t,e){var r=wt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Nd(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function Jg(t,e){var r=wt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Nd(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function Yg(t,e,r){return In&21?(Dt(r,e)||(r=rg(),pe.lanes|=r,$n|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Ge=!0),t.memoizedState=r)}function I_(t,e){var r=ne;ne=r!==0&&4>r?r:4,t(!0);var n=ru.transition;ru.transition={};try{t(!1),e()}finally{ne=r,ru.transition=n}}function Xg(){return wt().memoizedState}function $_(t,e,r){var n=qr(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Zg(t))ev(e,r);else if(r=Ig(t,e,r,n),r!==null){var s=He();Lt(r,t,n,s),tv(r,e,n)}}function L_(t,e,r){var n=qr(t),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Zg(t))ev(e,s);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var i=e.lastRenderedState,a=o(i,r);if(s.hasEagerState=!0,s.eagerState=a,Dt(a,i)){var l=e.interleaved;l===null?(s.next=s,Pd(e)):(s.next=l.next,l.next=s),e.interleaved=s;return}}catch{}finally{}r=Ig(t,e,s,n),r!==null&&(s=He(),Lt(r,t,n,s),tv(r,e,n))}}function Zg(t){var e=t.alternate;return t===pe||e!==null&&e===pe}function ev(t,e){To=Na=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function tv(t,e,r){if(r&4194240){var n=e.lanes;
vendor: 6,961 bytes, lines 38-40
38n&=t.pendingLanes,r|=n,e.lanes=r,pd(t,r)}}var Ia={readContext:yt,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},D_={readContext:yt,useCallback:function(t,e){return Ht().memoizedState=[t,e===void 0?null:e],t},useContext:yt,useEffect:xf,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,sa(4194308,4,qg.bind(null,e,t),r)},useLayoutEffect:function(t,e){return sa(4194308,4,t,e)},useInsertionEffect:function(t,e){return sa(4,2,t,e)},useMemo:function(t,e){var r=Ht();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Ht();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=$_.bind(null,pe,t),[n.memoizedState,t]},useRef:function(t){var e=Ht();return t={current:t},e.memoizedState=t},useState:_f,useDebugValue:Dd,useDeferredValue:function(t){return Ht().memoizedState=t},useTransition:function(){var t=_f(!1),e=t[0];return t=I_.bind(null,t[1]),Ht().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=pe,s=Ht();if(de){if(r===void 0)throw Error(A(407));r=r()}else{if(r=e(),Ce===null)throw Error(A(349));In&30||Ug(n,e,r)}s.memoizedState=r;var o={value:r,getSnapshot:e};return s.queue=o,xf(zg.bind(null,n,o,t),[t]),n.flags|=2048,Go(9,Fg.bind(null,n,o,r,e),void 0,null),r},useId:function(){var t=Ht(),e=Ce.identifierPrefix;if(de){var r=lr,n=ar;r=(n&~(1<<32-$t(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Ko++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=N_++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},M_={readContext:yt,useCallback:Qg,useContext:yt,useEffect:Ld,useImperativeHandle:Gg,useInsertionEffect:Wg,useLayoutEffect:Kg,useMemo:Jg,useReducer:nu,useRef:Vg,useState:function(){return nu(qo)},useDebugValue:Dd,useDeferredValue:function(t){var e=wt();return Yg(e,Ee.memoizedState,t)},useTransition:function(){var t=nu(qo)[0],e=wt().memoizedState;return[t,e]},useMutableSource:Dg,useSyncExternalStore:Mg,useId:Xg,unstable_isNewReconciler:!1},U_={readContext:yt,useCallback:Qg,useContext:yt,useEffect:Ld,useImperativeHandle:Gg,useInsertionEffect:Wg,useLayoutEffect:Kg,useMemo:Jg,useReducer:su,useRef:Vg,useState:function(){return su(qo)},useDebugValue:Dd,useDeferredValue:function(t){var e=wt();return Ee===null?e.memoizedState=t:Yg(e,Ee.memoizedState,t)},useTransition:function(){var t=su(qo)[0],e=wt().memoizedState;return[t,e]},useMutableSource:Dg,useSyncExternalStore:Mg,useId:Xg,unstable_isNewReconciler:!1};function Ct(t,e){if(t&&t.defaultProps){e=me({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}function ic(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:me({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var ll={isMounted:function(t){return(t=t._reactInternals)?Fn(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=He(),s=qr(t),o=ur(n,s);o.payload=e,r!=null&&(o.callback=r),e=Wr(t,o,s),e!==null&&(Lt(e,t,s,n),ra(e,t,s))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=He(),s=qr(t),o=ur(n,s);o.tag=1,o.payload=e,r!=null&&(o.callback=r),e=Wr(t,o,s),e!==null&&(Lt(e,t,s,n),ra(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=He(),n=qr(t),s=ur(r,n);s.tag=2,e!=null&&(s.callback=e),e=Wr(t,s,n),e!==null&&(Lt(e,t,n,r),ra(e,t,n))}};function Ef(t,e,r,n,s,o,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,o,i):e.prototype&&e.prototype.isPureReactComponent?!Fo(r,n)||!Fo(s,o):!0}function rv(t,e,r){var n=!1,s=Jr,o=e.contextType;return typeof o=="object"&&o!==null?o=yt(o):(s=Je(e)?jn:Me.current,n=e.contextTypes,o=(n=n!=null)?Ds(t,s):Jr),e=new e(r,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=ll,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=o),e}function Sf(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&ll.enqueueReplaceState(e,e.state,null)}function ac(t,e,r,n){var s=t.stateNode;s.props=r,s.state=t.memoizedState,s.refs={},Od(t);var o=e.contextType;typeof o=="object"&&o!==null?s.context=yt(o):(o=Je(e)?jn:Me.current,s.context=Ds(t,o)),s.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(ic(t,e,o,r),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&ll.enqueueReplaceState(s,s.state,null),Aa(t,r,s,n),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function zs(t,e){try{var r="",n=e;do r+=fb(n),n=n.return;while(n);var s=r}catch(o){s=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:t,source:e,stack:s,digest:null}}function ou(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function lc(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var F_=typeof WeakMap=="function"?WeakMap:Map;function nv(t,e,r){r=ur(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){La||(La=!0,yc=n),lc(t,e)},r}function sv(t,e,r){r=ur(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var s=e.value;r.payload=function(){return n(s)},r.callback=function(){lc(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){lc(t,e),typeof n!="function"&&(Kr===null?Kr=new Set([this]):Kr.add(this));var i=e.stack;this.componentDidCatch(e.value,{componentStack:i!==null?i:""})}),r}function kf(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new F_;var s=new Set;n.set(e,s)}else s=n.get(e),s===void 0&&(s=new Set,n.set(e,s));s.has(r)||(s.add(r),t=ex.bind(null,t,e,r),e.then(t,t))}function Tf(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Cf(t,e,r,n,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=ur(-1,1),e.tag=2,Wr(r,e,1))),r.lanes|=1),t)}var z_=gr.ReactCurrentOwner,Ge=!1;function Fe(t,e,r,n){e.child=t===null?Ng(e,null,r,n):Us(e,t.child,r,n)}function Pf(t,e,r,n,s){r=r.render;var o=e.ref;
vendor: 6,220 bytes, line 40
40return bs(e,s),n=Id(t,e,r,n,o,s),r=$d(),t!==null&&!Ge?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,fr(t,e,s)):(de&&r&&xd(e),e.flags|=1,Fe(t,e,n,s),e.child)}function Of(t,e,r,n,s){if(t===null){var o=r.type;return typeof o=="function"&&!Wd(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=o,ov(t,e,o,n,s)):(t=la(r.type,null,n,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&s)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:Fo,r(i,n)&&t.ref===e.ref)return fr(t,e,s)}return e.flags|=1,t=Gr(o,n),t.ref=e.ref,t.return=e,e.child=t}function ov(t,e,r,n,s){if(t!==null){var o=t.memoizedProps;if(Fo(o,n)&&t.ref===e.ref)if(Ge=!1,e.pendingProps=n=o,(t.lanes&s)!==0)t.flags&131072&&(Ge=!0);else return e.lanes=t.lanes,fr(t,e,s)}return uc(t,e,r,n,s)}function iv(t,e,r){var n=e.pendingProps,s=n.children,o=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ie(ms,et),et|=r;else{if(!(r&1073741824))return t=o!==null?o.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ie(ms,et),et|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,ie(ms,et),et|=n}else o!==null?(n=o.baseLanes|r,e.memoizedState=null):n=r,ie(ms,et),et|=n;return Fe(t,e,s,r),e.child}function av(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function uc(t,e,r,n,s){var o=Je(r)?jn:Me.current;return o=Ds(e,o),bs(e,s),r=Id(t,e,r,n,o,s),n=$d(),t!==null&&!Ge?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,fr(t,e,s)):(de&&n&&xd(e),e.flags|=1,Fe(t,e,r,s),e.child)}function Rf(t,e,r,n,s){if(Je(r)){var o=!0;Ta(e)}else o=!1;if(bs(e,s),e.stateNode===null)oa(t,e),rv(e,r,n),ac(e,r,n,s),n=!0;else if(t===null){var i=e.stateNode,a=e.memoizedProps;i.props=a;var l=i.context,u=r.contextType;typeof u=="object"&&u!==null?u=yt(u):(u=Je(r)?jn:Me.current,u=Ds(e,u));var c=r.getDerivedStateFromProps,h=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==n||l!==u)&&Sf(e,i,n,u),Or=!1;var f=e.memoizedState;i.state=f,Aa(e,n,i,s),l=e.memoizedState,a!==n||f!==l||Qe.current||Or?(typeof c=="function"&&(ic(e,r,c,n),l=e.memoizedState),(a=Or||Ef(e,r,a,n,f,l,u))?(h||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"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),i.props=n,i.state=l,i.context=u,n=a):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{i=e.stateNode,$g(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:Ct(e.type,a),i.props=u,h=e.pendingProps,f=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=yt(l):(l=Je(r)?jn:Me.current,l=Ds(e,l));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==h||f!==l)&&Sf(e,i,n,l),Or=!1,f=e.memoizedState,i.state=f,Aa(e,n,i,s);var y=e.memoizedState;a!==h||f!==y||Qe.current||Or?(typeof d=="function"&&(ic(e,r,d,n),y=e.memoizedState),(u=Or||Ef(e,r,u,n,f,y,l)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,y,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,y,l)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=y),i.props=n,i.state=y,i.context=l,n=u):(typeof i.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),n=!1)}return cc(t,e,r,n,o,s)}function cc(t,e,r,n,s,o){av(t,e);var i=(e.flags&128)!==0;if(!n&&!i)return s&&mf(e,r,!1),fr(t,e,o);n=e.stateNode,z_.current=e;var a=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&i?(e.child=Us(e,t.child,null,o),e.child=Us(e,null,a,o)):Fe(t,e,a,o),e.memoizedState=n.state,s&&mf(e,r,!0),e.child}function lv(t){var e=t.stateNode;e.pendingContext?pf(t,e.pendingContext,e.pendingContext!==e.context):e.context&&pf(t,e.context,!1),Rd(t,e.containerInfo)}function Af(t,e,r,n,s){return Ms(),Sd(s),e.flags|=256,Fe(t,e,r,n),e.child}var dc={dehydrated:null,treeContext:null,retryLane:0};function hc(t){return{baseLanes:t,cachePool:null,transitions:null}}function uv(t,e,r){var n=e.pendingProps,s=fe.current,o=!1,i=(e.flags&128)!==0,a;if((a=i)||(a=t!==null&&t.memoizedState===null?!1:(s&2)!==0),a?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),ie(fe,s&1),t===null)return sc(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(i=n.children,t=n.fallback,o?(n=e.mode,o=e.child,i={mode:"hidden",children:i},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=dl(i,n,0,null),t=An(t,n,r,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=hc(r),e.memoizedState=dc,t):Md(e,i));if(s=t.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return B_(t,e,i,n,a,s,r);if(o){o=n.fallback,i=e.mode,s=t.child,a=s.sibling;var l={mode:"hidden",children:n.children};return!(i&1)&&e.child!==s?(n=e.child,n.childLanes=0,n.pendingProps=l,e.deletions=null):(n=Gr(s,l),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=Gr(a,o):(o=An(o,i,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,n=o,o=e.child,i=t.child.memoizedState,i=i===null?hc(r):{base
vendor: 8,213 bytes, line 40
40Lanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=t.childLanes&~r,e.memoizedState=dc,n}return o=t.child,t=o.sibling,n=Gr(o,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function Md(t,e){return e=dl({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function ji(t,e,r,n){return n!==null&&Sd(n),Us(e,t.child,null,r),t=Md(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function B_(t,e,r,n,s,o,i){if(r)return e.flags&256?(e.flags&=-257,n=ou(Error(A(422))),ji(t,e,i,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=n.fallback,s=e.mode,n=dl({mode:"visible",children:n.children},s,0,null),o=An(o,s,i,null),o.flags|=2,n.return=e,o.return=e,n.sibling=o,e.child=n,e.mode&1&&Us(e,t.child,null,i),e.child.memoizedState=hc(i),e.memoizedState=dc,o);if(!(e.mode&1))return ji(t,e,i,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(A(419)),n=ou(o,n,void 0),ji(t,e,i,n)}if(a=(i&t.childLanes)!==0,Ge||a){if(n=Ce,n!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,hr(t,s),Lt(n,t,s,-1))}return Vd(),n=ou(Error(A(421))),ji(t,e,i,n)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=tx.bind(null,t),s._reactRetry=e,null):(t=o.treeContext,st=Vr(s.nextSibling),ot=e,de=!0,Nt=null,t!==null&&(pt[mt++]=ar,pt[mt++]=lr,pt[mt++]=Nn,ar=t.id,lr=t.overflow,Nn=e),e=Md(e,n.children),e.flags|=4096,e)}function jf(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),oc(t.return,e,r)}function iu(t,e,r,n,s){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=s)}function cv(t,e,r){var n=e.pendingProps,s=n.revealOrder,o=n.tail;if(Fe(t,e,n.children,r),n=fe.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&jf(t,r,e);else if(t.tag===19)jf(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(ie(fe,n),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(r=e.child,s=null;r!==null;)t=r.alternate,t!==null&&ja(t)===null&&(s=r),r=r.sibling;r=s,r===null?(s=e.child,e.child=null):(s=r.sibling,r.sibling=null),iu(e,!1,s,r,o);break;case"backwards":for(r=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&ja(t)===null){e.child=s;break}t=s.sibling,s.sibling=r,r=s,s=t}iu(e,!0,r,null,o);break;case"together":iu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function oa(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function fr(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),$n|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(A(153));if(e.child!==null){for(t=e.child,r=Gr(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Gr(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function H_(t,e,r){switch(e.tag){case 3:lv(e),Ms();break;case 5:Lg(e);break;case 1:Je(e.type)&&Ta(e);break;case 4:Rd(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,s=e.memoizedProps.value;ie(Oa,n._currentValue),n._currentValue=s;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(ie(fe,fe.current&1),e.flags|=128,null):r&e.child.childLanes?uv(t,e,r):(ie(fe,fe.current&1),t=fr(t,e,r),t!==null?t.sibling:null);ie(fe,fe.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return cv(t,e,r);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ie(fe,fe.current),n)break;return null;case 22:case 23:return e.lanes=0,iv(t,e,r)}return fr(t,e,r)}var dv,fc,hv,fv;dv=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};fc=function(){};hv=function(t,e,r,n){var s=t.memoizedProps;if(s!==n){t=e.stateNode,_n(Jt.current);var o=null;switch(r){case"input":s=$u(t,s),n=$u(t,n),o=[];break;case"select":s=me({},s,{value:void 0}),n=me({},n,{value:void 0}),o=[];break;case"textarea":s=Mu(t,s),n=Mu(t,n),o=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=Sa)}Fu(r,n);var i;r=null;for(u in s)if(!n.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(i in a)a.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(No.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(a=s!=null?s[u]:void 0,n.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(o||(o=[]),o.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(No.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&le("scroll",t),o||a===l||(o=[])):(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(e.updateQueue=u)&&(e.flags|=4)}};fv=function(t,e,r,n){r!==n&&(e.flags|=4)};function uo(t,e){if(!de)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function $e(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var s=t.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function V_(t,e,r){var n=e.pendingProps;switch(Ed(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(e),null;case 1:return Je(e.type)&&ka(),$e(e),null;case 3:return n=e.stateNode,Fs(),ue(Qe),ue(Me),jd(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ri(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Nt!==null&&(_c(Nt),Nt=null))),fc(t,e),$e(e),null;case 5:Ad(e);var s=_n(Wo.current);if(r=e.type,t!==null&&e.stateNode!=null)hv(t,e,r,n,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(A(166));return $e(e),null}if(t=_n(Jt.current),Ri(e)){n=e.stateNode,r=e.type;var o=e.memoizedProps;switch(n[qt]=e,n[Ho]=o,t=(e.mode&1)!==0,r){case"dialog":le("cancel",n),le("close",n);break;case"iframe":case"object":case"embed":le("load",n);break;case"video":case"audio":for(s=0;s<wo.length;s++)le(wo[s],n);break;case"source":le("error",n);break;case"img":case"image":case"link":le("error",n),le("load",n);break;case"details":le("toggle",n);break;case"input":Fh(n,o),le("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},le("invalid",n);break;case"textarea":Bh(n,o),le("invalid",n)}Fu(r,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];
vendor: 30,121 bytes, line 40
40i==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&Oi(n.textContent,a,t),s=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Oi(n.textContent,a,t),s=["children",""+a]):No.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&le("scroll",n)}switch(r){case"input":_i(n),zh(n,o,!0);break;case"textarea":_i(n),Hh(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Sa)}n=s,e.updateQueue=n,n!==null&&(e.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=zm(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=i.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=i.createElement(r,{is:n.is}):(t=i.createElement(r),r==="select"&&(i=t,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):t=i.createElementNS(t,r),t[qt]=e,t[Ho]=n,dv(t,e,!1,!1),e.stateNode=t;e:{switch(i=zu(r,n),r){case"dialog":le("cancel",t),le("close",t),s=n;break;case"iframe":case"object":case"embed":le("load",t),s=n;break;case"video":case"audio":for(s=0;s<wo.length;s++)le(wo[s],t);s=n;break;case"source":le("error",t),s=n;break;case"img":case"image":case"link":le("error",t),le("load",t),s=n;break;case"details":le("toggle",t),s=n;break;case"input":Fh(t,n),s=$u(t,n),le("invalid",t);break;case"option":s=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},s=me({},n,{value:void 0}),le("invalid",t);break;case"textarea":Bh(t,n),s=Mu(t,n),le("invalid",t);break;default:s=n}Fu(r,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Vm(t,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Bm(t,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Io(t,l):typeof l=="number"&&Io(t,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(No.hasOwnProperty(o)?l!=null&&o==="onScroll"&&le("scroll",t):l!=null&&ld(t,o,l,i))}switch(r){case"input":_i(t),zh(t,n,!1);break;case"textarea":_i(t),Hh(t);break;case"option":n.value!=null&&t.setAttribute("value",""+Qr(n.value));break;case"select":t.multiple=!!n.multiple,o=n.value,o!=null?gs(t,!!n.multiple,o,!1):n.defaultValue!=null&&gs(t,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=Sa)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return $e(e),null;case 6:if(t&&e.stateNode!=null)fv(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(A(166));if(r=_n(Wo.current),_n(Jt.current),Ri(e)){if(n=e.stateNode,r=e.memoizedProps,n[qt]=e,(o=n.nodeValue!==r)&&(t=ot,t!==null))switch(t.tag){case 3:Oi(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Oi(n.nodeValue,r,(t.mode&1)!==0)}o&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[qt]=e,e.stateNode=n}return $e(e),null;case 13:if(ue(fe),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(de&&st!==null&&e.mode&1&&!(e.flags&128))Ag(),Ms(),e.flags|=98560,o=!1;else if(o=Ri(e),n!==null&&n.dehydrated!==null){if(t===null){if(!o)throw Error(A(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(A(317));o[qt]=e}else Ms(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;$e(e),o=!1}else Nt!==null&&(_c(Nt),Nt=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||fe.current&1?ke===0&&(ke=3):Vd())),e.updateQueue!==null&&(e.flags|=4),$e(e),null);case 4:return Fs(),fc(t,e),t===null&&zo(e.stateNode.containerInfo),$e(e),null;case 10:return Cd(e.type._context),$e(e),null;case 17:return Je(e.type)&&ka(),$e(e),null;case 19:if(ue(fe),o=e.memoizedState,o===null)return $e(e),null;if(n=(e.flags&128)!==0,i=o.rendering,i===null)if(n)uo(o,!1);else{if(ke!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(i=ja(t),i!==null){for(e.flags|=128,uo(o,!1),n=i.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)o=r,t=n,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,t=i.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return ie(fe,fe.current&1|2),e.child}t=t.sibling}o.tail!==null&&ye()>Bs&&(e.flags|=128,n=!0,uo(o,!1),e.lanes=4194304)}else{if(!n)if(t=ja(i),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),uo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!de)return $e(e),null}else 2*ye()-o.renderingStartTime>Bs&&r!==1073741824&&(e.flags|=128,n=!0,uo(o,!1),e.lanes=4194304);o.isBackwards?(i.sibling=e.child,e.child=i):(r=o.last,r!==null?r.sibling=i:e.child=i,o.last=i)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ye(),e.sibling=null,r=fe.current,ie(fe,n?r&1|2:r&1),e):($e(e),null);case 22:case 23:return Hd(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?et&1073741824&&($e(e),e.subtreeFlags&6&&(e.flags|=8192)):$e(e),null;case 24:return null;case 25:return null}throw Error(A(156,e.tag))}function W_(t,e){switch(Ed(e),e.tag){case 1:return Je(e.type)&&ka(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Fs(),ue(Qe),ue(Me),jd(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Ad(e),null;case 13:if(ue(fe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(A(340));Ms()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ue(fe),null;case 4:return Fs(),null;case 10:return Cd(e.type._context),null;case 22:case 23:return Hd(),null;case 24:return null;default:return null}}var Ni=!1,De=!1,K_=typeof WeakSet=="function"?WeakSet:Set,D=null;function ps(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ve(t,e,n)}else r.current=null}function pc(t,e,r){try{r()}catch(n){ve(t,e,n)}}var Nf=!1;function q_(t,e){if(Yu=_a,t=yg(),_d(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,a=-1,l=-1,u=0,c=0,h=t,f=null;t:for(;;){for(var d;h!==r||s!==0&&h.nodeType!==3||(a=i+s),h!==o||n!==0&&h.nodeType!==3||(l=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(d=h.firstChild)!==null;)f=h,h=d;for(;;){if(h===t)break t;if(f===r&&++u===s&&(a=i),f===o&&++c===n&&(l=i),(d=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=d}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xu={focusedElem:t,selectionRange:r},_a=!1,D=e;D!==null;)if(e=D,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,D=t;else for(;D!==null;){e=D;try{var y=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,w=y.memoizedState,g=e.stateNode,p=g.getSnapshotBeforeUpdate(e.elementType===e.type?v:Ct(e.type,v),w);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=e.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(x){ve(e,e.return,x)}if(t=e.sibling,t!==null){t.return=e.return,D=t;break}D=e.return}return y=Nf,Nf=!1,y}function Co(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&t)===t){var o=s.destroy;s.destroy=void 0,o!==void 0&&pc(e,r,o)}s=s.next}while(s!==n)}}function ul(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function mc(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function pv(t){var e=t.alternate;e!==null&&(t.alternate=null,pv(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[qt],delete e[Ho],delete e[tc],delete e[O_],delete e[R_])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function mv(t){return t.tag===5||t.tag===3||t.tag===4}function If(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||mv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function gc(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Sa));else if(n!==4&&(t=t.child,t!==null))for(gc(t,e,r),t=t.sibling;t!==null;)gc(t,e,r),t=t.sibling}function vc(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(vc(t,e,r),t=t.sibling;t!==null;)vc(t,e,r),t=t.sibling}var Oe=null,jt=!1;function Er(t,e,r){for(r=r.child;r!==null;)gv(t,e,r),r=r.sibling}function gv(t,e,r){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(tl,r)}catch{}switch(r.tag){case 5:De||ps(r,e);case 6:var n=Oe,s=jt;Oe=null,Er(t,e,r),Oe=n,jt=s,Oe!==null&&(jt?(t=Oe,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Oe.removeChild(r.stateNode));break;case 18:Oe!==null&&(jt?(t=Oe,r=r.stateNode,t.nodeType===8?Zl(t.parentNode,r):t.nodeType===1&&Zl(t,r),Mo(t)):Zl(Oe,r.stateNode));break;case 4:n=Oe,s=jt,Oe=r.stateNode.containerInfo,jt=!0,Er(t,e,r),Oe=n,jt=s;break;case 0:case 11:case 14:case 15:if(!De&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&pc(r,e,i),s=s.next}while(s!==n)}Er(t,e,r);break;case 1:if(!De&&(ps(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){ve(r,e,a)}Er(t,e,r);break;case 21:Er(t,e,r);break;case 22:r.mode&1?(De=(n=De)||r.memoizedState!==null,Er(t,e,r),De=n):Er(t,e,r);break;default:Er(t,e,r)}}function $f(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new K_),e.forEach(function(n){var s=rx.bind(null,t,n);r.has(n)||(r.add(n),n.then(s,s))})}}function Et(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var o=t,i=e,a=i;e:for(;a!==null;){switch(a.tag){case 5:Oe=a.stateNode,jt=!1;break e;case 3:Oe=a.stateNode.containerInfo,jt=!0;break e;case 4:Oe=a.stateNode.containerInfo,jt=!0;break e}a=a.return}if(Oe===null)throw Error(A(160));gv(o,i,s),Oe=null,jt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){ve(s,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)vv(e,t),e=e.sibling}function vv(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Et(e,t),Bt(t),n&4){try{Co(3,t,t.return),ul(3,t)}catch(v){ve(t,t.return,v)}try{Co(5,t,t.return)}catch(v){ve(t,t.return,v)}}break;case 1:Et(e,t),Bt(t),n&512&&r!==null&&ps(r,r.return);break;case 5:if(Et(e,t),Bt(t),n&512&&r!==null&&ps(r,r.return),t.flags&32){var s=t.stateNode;try{Io(s,"")}catch(v){ve(t,t.return,v)}}if(n&4&&(s=t.stateNode,s!=null)){var o=t.memoizedProps,i=r!==null?r.memoizedProps:o,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Um(s,o),zu(a,i);var u=zu(a,o);for(i=0;i<l.length;i+=2){var c=l[i],h=l[i+1];c==="style"?Vm(s,h):c==="dangerouslySetInnerHTML"?Bm(s,h):c==="children"?Io(s,h):ld(s,c,h,u)}switch(a){case"input":Lu(s,o);break;case"textarea":Fm(s,o);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var d=o.value;d!=null?gs(s,!!o.multiple,d,!1):f!==!!o.multiple&&(o.defaultValue!=null?gs(s,!!o.multiple,o.defaultValue,!0):gs(s,!!o.multiple,o.multiple?[]:"",!1))}s[Ho]=o}catch(v){ve(t,t.return,v)}}break;case 6:if(Et(e,t),Bt(t),n&4){if(t.stateNode===null)throw Error(A(162));s=t.stateNode,o=t.memoizedProps;try{s.nodeValue=o}catch(v){ve(t,t.return,v)}}break;case 3:if(Et(e,t),Bt(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Mo(e.containerInfo)}catch(v){ve(t,t.return,v)}break;case 4:Et(e,t),Bt(t);break;case 13:Et(e,t),Bt(t),s=t.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(zd=ye())),n&4&&$f(t);break;case 22:if(c=r!==null&&r.memoizedState!==null,t.mode&1?(De=(u=De)||c,Et(e,t),De=u):Et(e,t),Bt(t),n&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!c&&t.mode&1)for(D=t,c=t.child;c!==null;){for(h=D=c;D!==null;){switch(f=D,d=f.child,f.tag){case 0:case 11:case 14:case 15:Co(4,f,f.return);break;case 1:ps(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){n=f,r=f.return;try{e=n,y.props=e.memoizedProps,y.state=e.memoizedState,y.componentWillUnmount()}catch(v){ve(n,r,v)}}break;case 5:ps(f,f.return);break;case 22:if(f.memoizedState!==null){Df(h);continue}}d!==null?(d.return=f,D=d):Df(h)}c=c.sibling}e:for(c=null,h=t;;){if(h.tag===5){if(c===null){c=h;try{s=h.stateNode,u?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Hm("display",i))}catch(v){ve(t,t.return,v)}}}else if(h.tag===6){if(c===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(v){ve(t,t.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;c===h&&(c=null),h=h.return}c===h&&(c=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Et(e,t),Bt(t),n&4&&$f(t);break;case 21:break;default:Et(e,t),Bt(t)}}function Bt(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(mv(r)){var n=r;break e}r=r.return}throw Error(A(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(Io(s,""),n.flags&=-33);var o=If(t);vc(t,o,s);break;case 3:case 4:var i=n.stateNode.containerInfo,a=If(t);gc(t,a,i);break;default:throw Error(A(161))}}catch(l){ve(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function G_(t,e,r){D=t,yv(t)}function yv(t,e,r){for(var n=(t.mode&1)!==0;D!==null;){var s=D,o=s.child;if(s.tag===22&&n){var i=s.memoizedState!==null||Ni;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||De;a=Ni;var u=De;if(Ni=i,(De=l)&&!u)for(D=s;D!==null;)i=D,l=i.child,i.tag===22&&i.memoizedState!==null?Mf(s):l!==null?(l.return=i,D=l):Mf(s);for(;o!==null;)D=o,yv(o),o=o.sibling;D=s,Ni=a,De=u}Lf(t)}else s.subtreeFlags&8772&&o!==null?(o.return=s,D=o):Lf(t)}}function Lf(t){for(;D!==null;){var e=D;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:De||ul(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!De)if(r===null)n.componentDidMount();else{var s=e.elementType===e.type?r.memoizedProps:Ct(e.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&bf(e,o,n);break;case 3:var i=e.updateQueue;if(i!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}bf(e,i,r)}break;case 5:var a=e.stateNode;if(r===null&&e.flags&4){r=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var h=c.dehydrated;h!==null&&Mo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}De||e.flags&512&&mc(e)}catch(f){ve(e,e.return,f)}}if(e===t){D=null;break}if(r=e.sibling,r!==null){r.return=e.return,D=r;break}D=e.return}}function Df(t){for(;D!==null;){var e=D;if(e===t){D=null;break}var r=e.sibling;if(r!==null){r.return=e.return,D=r;break}D=e.return}}function Mf(t){for(;D!==null;){var e=D;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{ul(4,e)}catch(l){ve(e,r,l)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var s=e.return;try{n.componentDidMount()}catch(l){ve(e,s,l)}}var o=e.return;try{mc(e)}catch(l){ve(e,o,l)}break;case 5:var i=e.return;try{mc(e)}catch(l){ve(e,i,l)}}}catch(l){ve(e,e.return,l)}if(e===t){D=null;break}var a=e.sibling;if(a!==null){a.return=e.return,D=a;break}D=e.return}}var Q_=Math.ceil,$a=gr.ReactCurrentDispatcher,Ud=gr.ReactCurrentOwner,vt=gr.ReactCurrentBatchConfig,ee=0,Ce=null,_e=null,Re=0,et=0,ms=rn(0),ke=0,Qo=null,$n=0,cl=0,Fd=0,Po=null,qe=null,zd=0,Bs=1/0,nr=null,La=!1,yc=null,Kr=null,Ii=!1,Ur=null,Da=0,Oo=0,wc=null,ia=-1,aa=0;function He(){return ee&6?ye():ia!==-1?ia:ia=ye()}function qr(t){return t.mode&1?ee&2&&Re!==0?Re&-Re:j_.transition!==null?(aa===0&&(aa=rg()),aa):(t=ne,t!==0||(t=window.event,t=t===void 0?16:ug(t.type)),t):1}function Lt(t,e,r,n){if(50<Oo)throw Oo=0,wc=null,Error(A(185));ai(t,r,n),(!(ee&2)||t!==Ce)&&(t===Ce&&(!(ee&2)&&(cl|=r),ke===4&&Ar(t,Re)),Ye(t,n),r===1&&ee===0&&!(e.mode&1)&&(Bs=ye()+500,il&&nn()))}function Ye(t,e){var r=t.callbackNode;jb(t,e);var n=ba(t,t===Ce?Re:0);if(n===0)r!==null&&Kh(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&Kh(r),e===1)t.tag===0?A_(Uf.bind(null,t)):Pg(Uf.bind(null,t)),C_(function(){!(ee&6)&&nn()}),r=null;else{switch(ng(n)){case 1:r=fd;break;case 4:r=eg;break;case 16:r=wa;break;case 536870912:r=tg;break;default:r=wa}r=Tv(r,wv.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function wv(t,e){if(ia=-1,aa=0,ee&6)throw Error(A(327));var r=t.callbackNode;if(_s()&&t.callbackNode!==r)return null;var n=ba(t,t===Ce?Re:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=Ma(t,n);else{e=n;var s=ee;ee|=2;var o=_v();(Ce!==t||Re!==e)&&(nr=null,Bs=ye()+500,Rn(t,e));do try{X_();break}catch(a){bv(t,a)}while(!0);Td(),$a.current=o,ee=s,_e!==null?e=0:(Ce=null,Re=0,e=ke)}if(e!==0){if(e===2&&(s=Ku(t),s!==0&&(n=s,e=bc(t,s))),e===1)throw r=Qo,Rn(t,0),Ar(t,n),Ye(t,ye()),r;if(e===6)Ar(t,n);else{if(s=t.current.alternate,!(n&30)&&!J_(s)&&(e=Ma(t,n),e===2&&(o=Ku(t),o!==0&&(n=o,e=bc(t,o))),e===1))throw r=Qo,Rn(t,0),Ar(t,n),Ye(t,ye()),r;switch(t.finishedWork=s,t.finishedLanes=n,e){case 0:case 1:throw Error(A(345));case 2:pn(t,qe,nr);break;case 3:if(Ar(t,n),(n&130023424)===n&&(e=zd+500-ye(),10<e)){if(ba(t,0)!==0)break;if(s=t.suspendedLanes,(s&n)!==n){He(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=ec(pn.bind(null,t,qe,nr),e);break}pn(t,qe,nr);break;case 4:if(Ar(t,n),(n&4194240)===n)break;for(e=t.eventTimes,s=-1;0<n;){var i=31-$t(n);o=1<<i,i=e[i],i>s&&(s=i),n&=~o}if(n=s,n=ye()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Q_(n/1960))-n,10<n){t.timeoutHandle=ec(pn.bind(null,t,qe,nr),n);break}pn(t,qe,nr);break;case 5:pn(t,qe,nr);break;default:throw Error(A(329))}}}return Ye(t,ye()),t.callbackNode===r?wv.bind(null,t):null}function bc(t,e){var r=Po;return t.current.memoizedState.isDehydrated&&(Rn(t,e).flags|=256),t=Ma(t,e),t!==2&&(e=qe,qe=r,e!==null&&_c(e)),t}function _c(t){qe===null?qe=t:qe.push.apply(qe,t)}function J_(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],o=s.getSnapshot;s=s.value;try{if(!Dt(o(),s))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ar(t,e){for(e&=~Fd,e&=~cl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-$t(e),n=1<<r;t[r]=-1,e&=~n}}function Uf(t){if(ee&6)throw Error(A(327));_s();var e=ba(t,0);if(!(e&1))return Ye(t,ye()),null;var r=Ma(t,e);if(t.tag!==0&&r===2){var n=Ku(t);n!==0&&(e=n,r=bc(t,n))}if(r===1)throw r=Qo,Rn(t,0),Ar(t,e),Ye(t,ye()),r;if(r===6)throw Error(A(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,pn(t,qe,nr),Ye(t,ye()),null}function Bd(t,e){var r=ee;ee|=1;try{return t(e)}finally{ee=r,ee===0&&(Bs=ye()+500,il&&nn())}}function Ln(t){Ur!==null&&Ur.tag===0&&!(ee&6)&&_s();var e=ee;ee|=1;var r=vt.transition,n=ne;try{if(vt.transition=null,ne=1,t)return t()}finally{ne=n,vt.transition=r,ee=e,!(ee&6)&&nn()}}function Hd(){et=ms.current,ue(ms)}function Rn(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,T_(r)),_e!==null)for(r=_e.return;r!==null;){var n=r;switch(Ed(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&ka();break;case 3:Fs(),ue(Qe),ue(Me),jd();break;case 5:Ad(n);break;case 4:Fs();break;case 13:ue(fe);break;case 19:ue(fe);break;case 10:Cd(n.type._context);break;case 22:case 23:Hd()}r=r.return}if(Ce=t,_e=t=Gr(t.current,null),Re=et=e,ke=0,Qo=null,Fd=cl=$n=0,qe=Po=null,bn!==null){for(e=0;e<bn.length;e++)if(r=bn[e],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,o=r.pending;if(o!==null){var i=o.next;o.next=s,n.next=i}r.pending=n}bn=null}return t}function bv(t,e){do{var r=_e;try{if(Td(),na.current=Ia,Na){for(var n=pe.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}Na=!1}if(In=0,Te=Ee=pe=null,To=!1,Ko=0,Ud.current=null,r===null||r.return===null){ke=1,Qo=e,_e=null;break}e:{var o=t,i=r.return,a=r,l=e;if(e=Re,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,h=c.tag;if(!(c.mode&1)&&(h===0||h===11||h===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=Tf(i);if(d!==null){d.flags&=-257,Cf(d,i,a,o,e),d.mode&1&&kf(o,u,e),e=d,l=u;var y=e.updateQueue;if(y===null){var v=new Set;v.add(l),e.updateQueue=v}else y.add(l);break e}else{if(!(e&1)){kf(o,u,e),Vd();break e}l=Error(A(426))}}else if(de&&a.mode&1){var w=Tf(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Cf(w,i,a,o,e),Sd(zs(l,a));break e}}o=l=zs(l,a),ke!==4&&(ke=2),Po===null?Po=[o]:Po.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var g=nv(o,l,e);wf(o,g);break e;case 1:a=l;var p=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof p.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Kr===null||!Kr.has(m)))){o.flags|=65536,e&=-e,o.lanes|=e;var x=sv(o,a,e);wf(o,x);break e}}o=o.return}while(o!==null)}Ev(r)}catch(E){e=E,_e===r&&r!==null&&(_e=r=r.return);continue}break}while(!0)}function _v(){var t=$a.current;return $a.current=Ia,t===null?Ia:t}function Vd(){(ke===0||ke===3||ke===2)&&(ke=4),Ce===null||!($n&268435455)&&!(cl&268435455)||Ar(Ce,Re)}function Ma(t,e){var r=ee;ee|=2;var n=_v();(Ce!==t||Re!==e)&&(nr=null,Rn(t,e));do try{Y_();break}catch(s){bv(t,s)}while(!0);if(Td(),ee=r,$a.current=n,_e!==null)throw Error(A(261));return Ce=null,Re=0,ke}function Y_(){for(;_e!==null;)xv(_e)}function X_(){for(;_e!==null&&!Eb();)xv(_e)}function xv(t){var e=kv(t.alternate,t,et);t.memoizedProps=t.pendingProps,e===null?Ev(t):_e=e,Ud.current=null}function Ev(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=W_(r,e),r!==null){r.flags&=32767,_e=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{ke=6,_e=null;return}}else if(r=V_(r,e,et),r!==null){_e=r;return}if(e=e.sibling,e!==null){_e=e;return}_e=e=t}while(e!==null);ke===0&&(ke=5)}function pn(t,e,r){var n=ne,s=vt.transition;try{vt.transition=null,ne=1,Z_(t,e,r,n)}finally{vt.transition=s,ne=n}return null}function Z_(t,e,r,n){do _s();while(Ur!==null);if(ee&6)throw Error(A(327));r=t.finishedWork;var s=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(A(177));t.callbackNode=null,t.callbackPriority=0;var o=r.lanes|r.childLanes;if(Nb(t,o),t===Ce&&(_e=Ce=null,Re=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Ii||(Ii=!0,Tv(wa,function(){return _s(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=vt.transition,vt.transition=null;var i=ne;ne=1;var a=ee;ee|=4,Ud.current=null,q_(t,r),vv(r,t),w_(Xu),_a=!!Yu,Xu=Yu=null,t.current=r,G_(r),Sb(),ee=a,ne=i,vt.transition=o}else t.current=r;if(Ii&&(Ii=!1,Ur=t,Da=s),o=t.pendingLanes,o===0&&(Kr=null),Cb(r.stateNode),Ye(t,ye()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)s=e[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(La)throw La=!1,t=yc,yc=null,t;return Da&1&&t.tag!==0&&_s(),o=t.pendingLanes,o&1?t===wc?Oo++:(Oo=0,wc=t):Oo=0,nn(),null}function _s(){if(Ur!==null){var t=ng(Da),e=vt.transition,r=ne;try{if(vt.transition=null,ne=16>t?16:t,Ur===null)var n=!1;else{if(t=Ur,Ur=null,Da=0,ee&6)throw Error(A(331));var s=ee;for(ee|=4,D=t.current;D!==null;){var o=D,i=o.child;if(D.flags&16){var a=o.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:Co(8,c,o)}var h=c.child;if(h!==null)h.return=c,D=h;else for(;D!==null;){c=D;var f=c.sibling,d=c.return;if(pv(c),c===u){D=null;break}if(f!==null){f.return=d,D=f;break}D=d}}}var y=o.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}D=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,D=i;else e:for(;D!==null;){if(o=D,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Co(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,D=g;break e}D=o.return}}var p=t.current;for(D=p;D!==null;){i=D;var m=i.child;if(i.subtreeFlags&2064&&m!==null)m.return=i,D=m;else e:for(i=p;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ul(9,a)}}catch(E){ve(a,a.return,E)}if(a===i){D=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,D=x;break e}D=a.return}}if(ee=s,nn(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(tl,t)}catch{}n=!0}return n}finally{ne=r,vt.transition=e}}return!1}function Ff(t,e,r){e=zs(r,e),e=nv(t,e,1),t=Wr(t,e,1),e=He(),t!==null&&(ai(t,1,e),Ye(t,e))}function ve(t,e,r){if(t.tag===3)Ff(t,t,r);else for(;e!==null;){if(e.tag===3){Ff(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Kr===null||!Kr.has(n))){t=zs(r,t),t=sv(e,t,1),e=Wr(e,t,1),t=He(),e!==null&&(ai(e,1,t),Ye(e,t));break}}e=e.return}}function ex(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=He(),t.pingedLanes|=t.suspendedLanes&r,Ce===t&&(Re&r)===r&&(ke===4||ke===3&&(Re&130023424)===Re&&500>ye()-zd?Rn(t,0):Fd|=r),Ye(t,e)}function Sv(t,e){e===0&&(t.mode&1?(e=Si,Si<<=1,!(Si&130023424)&&(Si=4194304)):e=1);var r=He();t=hr(t,e),t!==null&&(ai(t,e,r),Ye(t,r))}function tx(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),Sv(t,r)}function rx(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,s=t.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(A(314))}n!==null&&n.delete(e),Sv(t,r)}var kv;kv=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Qe.current)Ge=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return Ge=!1,H_(t,e,r);Ge=!!(t.flags&131072)}else Ge=!1,de&&e.flags&1048576&&Og(e,Pa,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;oa(t,e),t=e.pendingProps;var s=Ds(e,Me.current);bs(e,r),s=Id(null,e,n,t,s,r);var o=$d();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Je(n)?(o=!0,Ta(e)):o=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Od(e),s.updater=ll,e.stateNode=s,s._reactInternals=e,ac(e,n,t,r),e=cc(null,e,n,!0,o,r)):(e.tag=0,de&&o&&xd(e),Fe(null,e,s,r),e=e.child),e;case 16:n=e.elementType;e:{switch(oa(t,e),t=e.pendingProps,s=n._init,n=s(n._payload),e.type=n,s=e.tag=sx(n),t=Ct(n,t),s){case 0:e=uc(null,e,n,t,r);break e;case 1:e=Rf(null,e,n,t,r);break e;case 11:e=Pf(null,e,n,t,r);break e;case 14:e=Of(null,e,n,Ct(n.type,t),r);break e}throw Error(A(306,n,""))}return e;case 0:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:Ct(n,s),uc(t,e,n,s,r);case 1:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:Ct(n,s),Rf(t,e,n,s,r);case 3:e:{if(lv(e),t===null)throw Error(A(387));n=e.pendingProps,o=e.memoizedState,s=o.element,$g(t,e),Aa(e,n,null,r);var i=e.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){s=zs(Error(A(423)),e),e=Af(t,e,n,r,s);break e}else if(n!==s){s=zs(Error(A(424)),e),e=Af(t,e,n,r,s);break e}else for(st=Vr(e.stateNode.containerInfo.firstChild),ot=e,de=!0,Nt=null,r=Ng(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ms(),n===s){e=fr(t,e,r);break e}Fe(t,e,n,r)}e=e.child}return e;case 5:return Lg(e),t===null&&sc(e),n=e.type,s=e.pendingProps,o=t!==null?t.memoizedProps:null,i=s.children,Zu(n,s)?i=null:o!==null&&Zu(n,o)&&(e.flags|=32),av(t,e),Fe(t,e,i,r),e.child;case 6:return t===null&&sc(e),null;case 13:return uv(t,e,r);case 4:return Rd(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Us(e,null,n,r):Fe(t,e,n,r),e.child;case 11:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:Ct(n,s),Pf(t,e,n,s,r);case 7:return Fe(t,e,e.pendingProps,r),e.child;case 8:return Fe(t,e,e.pendingProps.children,r),e.child;case 12:return Fe(t,e,e.pendingProps.children,r),e.child;
vendor: 2,882 bytes, line 40
40case 10:e:{if(n=e.type._context,s=e.pendingProps,o=e.memoizedProps,i=s.value,ie(Oa,n._currentValue),n._currentValue=i,o!==null)if(Dt(o.value,i)){if(o.children===s.children&&!Qe.current){e=fr(t,e,r);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=ur(-1,r&-r),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),oc(o.return,r,e),a.lanes|=r;break}l=l.next}}else if(o.tag===10)i=o.type===e.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(A(341));i.lanes|=r,a=i.alternate,a!==null&&(a.lanes|=r),oc(i,r,e),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===e){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Fe(t,e,s.children,r),e=e.child}return e;case 9:return s=e.type,n=e.pendingProps.children,bs(e,r),s=yt(s),n=n(s),e.flags|=1,Fe(t,e,n,r),e.child;case 14:return n=e.type,s=Ct(n,e.pendingProps),s=Ct(n.type,s),Of(t,e,n,s,r);case 15:return ov(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:Ct(n,s),oa(t,e),e.tag=1,Je(n)?(t=!0,Ta(e)):t=!1,bs(e,r),rv(e,n,s),ac(e,n,s,r),cc(null,e,n,!0,t,r);case 19:return cv(t,e,r);case 22:return iv(t,e,r)}throw Error(A(156,e.tag))};function Tv(t,e){return Zm(t,e)}function nx(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(t,e,r,n){return new nx(t,e,r,n)}function Wd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function sx(t){if(typeof t=="function")return Wd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===cd)return 11;if(t===dd)return 14}return 2}function Gr(t,e){var r=t.alternate;return r===null?(r=gt(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function la(t,e,r,n,s,o){var i=2;if(n=t,typeof t=="function")Wd(t)&&(i=1);else if(typeof t=="string")i=5;else e:switch(t){case os:return An(r.children,s,o,e);case ud:i=8,s|=8;break;case Au:return t=gt(12,r,e,s|2),t.elementType=Au,t.lanes=o,t;
vendor: 6,258 bytes, line 40
40case ju:return t=gt(13,r,e,s),t.elementType=ju,t.lanes=o,t;case Nu:return t=gt(19,r,e,s),t.elementType=Nu,t.lanes=o,t;case Lm:return dl(r,s,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Im:i=10;break e;case $m:i=9;break e;case cd:i=11;break e;case dd:i=14;break e;case Pr:i=16,n=null;break e}throw Error(A(130,t==null?t:typeof t,""))}return e=gt(i,r,e,s),e.elementType=t,e.type=n,e.lanes=o,e}function An(t,e,r,n){return t=gt(7,t,n,e),t.lanes=r,t}function dl(t,e,r,n){return t=gt(22,t,n,e),t.elementType=Lm,t.lanes=r,t.stateNode={isHidden:!1},t}function au(t,e,r){return t=gt(6,t,null,e),t.lanes=r,t}function lu(t,e,r){return e=gt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ox(t,e,r,n,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bl(0),this.expirationTimes=Bl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bl(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Kd(t,e,r,n,s,o,i,a,l){return t=new ox(t,e,r,a,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=gt(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Od(o),t}function ix(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ss,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function Cv(t){if(!t)return Jr;t=t._reactInternals;e:{if(Fn(t)!==t||t.tag!==1)throw Error(A(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Je(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(A(171))}if(t.tag===1){var r=t.type;if(Je(r))return Cg(t,r,e)}return e}function Pv(t,e,r,n,s,o,i,a,l){return t=Kd(r,n,!0,t,s,o,i,a,l),t.context=Cv(null),r=t.current,n=He(),s=qr(r),o=ur(n,s),o.callback=e??null,Wr(r,o,s),t.current.lanes=s,ai(t,s,n),Ye(t,n),t}function hl(t,e,r,n){var s=e.current,o=He(),i=qr(s);return r=Cv(r),e.context===null?e.context=r:e.pendingContext=r,e=ur(o,i),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=Wr(s,e,i),t!==null&&(Lt(t,s,i,o),ra(t,s,i)),i}function Ua(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function zf(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function qd(t,e){zf(t,e),(t=t.alternate)&&zf(t,e)}function ax(){return null}var Ov=typeof reportError=="function"?reportError:function(t){console.error(t)};function Gd(t){this._internalRoot=t}fl.prototype.render=Gd.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(A(409));hl(t,e,null,null)};fl.prototype.unmount=Gd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ln(function(){hl(null,t,null,null)}),e[dr]=null}};function fl(t){this._internalRoot=t}fl.prototype.unstable_scheduleHydration=function(t){if(t){var e=ig();t={blockedOn:null,target:t,priority:e};for(var r=0;r<Rr.length&&e!==0&&e<Rr[r].priority;r++);Rr.splice(r,0,t),r===0&&lg(t)}};function Qd(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function pl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Bf(){}function lx(t,e,r,n,s){if(s){if(typeof n=="function"){var o=n;n=function(){var u=Ua(i);o.call(u)}}var i=Pv(e,n,t,0,null,!1,!1,"",Bf);return t._reactRootContainer=i,t[dr]=i.current,zo(t.nodeType===8?t.parentNode:t),Ln(),i}for(;s=t.lastChild;)t.removeChild(s);if(typeof n=="function"){var a=n;n=function(){var u=Ua(l);a.call(u)}}var l=Kd(t,0,!1,null,null,!1,!1,"",Bf);return t._reactRootContainer=l,t[dr]=l.current,zo(t.nodeType===8?t.parentNode:t),Ln(function(){hl(e,l,r,n)}),l}function ml(t,e,r,n,s){var o=r._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=Ua(i);a.call(l)}}hl(e,i,t,s)}else i=lx(r,e,t,s,n);return Ua(i)}sg=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=yo(e.pendingLanes);r!==0&&(pd(e,r|1),Ye(e,ye()),!(ee&6)&&(Bs=ye()+500,nn()))}break;case 13:Ln(function(){var n=hr(t,1);if(n!==null){var s=He();Lt(n,t,1,s)}}),qd(t,1)}};md=function(t){if(t.tag===13){var e=hr(t,134217728);if(e!==null){var r=He();Lt(e,t,134217728,r)}qd(t,134217728)}};og=function(t){if(t.tag===13){var e=qr(t),r=hr(t,e);if(r!==null){var n=He();Lt(r,t,e,n)}qd(t,e)}};ig=function(){return ne};ag=function(t,e){var r=ne;try{return ne=t,e()}finally{ne=r}};Hu=function(t,e,r){switch(e){case"input":if(Lu(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var s=ol(n);if(!s)throw Error(A(90));Mm(n),Lu(n,s)}}}break;case"textarea":Fm(t,r);break;case"select":e=r.value,e!=null&&gs(t,!!r.multiple,e,!1)}};qm=Bd;Gm=Ln;var ux={usingClientEntryPoint:!1,Events:[ui,us,ol,Wm,Km,Bd]},co={findFiberByHostInstance:wn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cx={bundleType:co.bundleType,version:co.version,rendererPackageName:co.rendererPackageName,rendererConfig:co.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gr.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Ym(t),t===null?null:t.stateNode},findFiberByHostInstance:co.findFiberByHostInstance||ax,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$i.isDisabled&&$i.supportsFiber)try{tl=$i.inject(cx),Qt=$i}catch{}}lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ux;lt.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qd(e))throw Error(A(200));return ix(t,e,null,r)};lt.createRoot=function(t,e){if(!Qd(t))throw Error(A(299));var r=!1,n="",s=Ov;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=Kd(t,1,!1,null,null,r,!1,n,s),t[dr]=e.current,zo(t.nodeType===8?t.parentNode:t),new Gd(e)};lt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(A(188)):(t=Object.keys(t).join(","),Error(A(268,t)));return t=Ym(e),t=t===null?null:t.stateNode,t};lt.flushSync=function(t){return Ln(t)};lt.hydrate=function(t,e,r){if(!pl(e))throw Error(A(200));return ml(null,t,e,!0,r)};lt.hydrateRoot=function(t,e,r){if(!Qd(t))throw Error(A(405));var n=r!=null&&r.hydratedSources||null,s=!1,o="",i=Ov;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),e=Pv(e,null,t,1,r??null,s,!1,o,i),t[dr]=e.current,zo(t),n)for(t=0;t<n.length;t++)r=n[t],s=r._getVersion,s=s(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,s]:e.mutableSourceEagerHydrationData.push(r,s);return new fl(e)};lt.render=function(t,e,r){if(!pl(e))throw Error(A(200));return ml(null,t,e,!1,r)};lt.unmountComponentAtNode=function(t){if(!pl(t))throw Error(A(40));return t._reactRootContainer?(Ln(function(){ml(null,null,t,!1,function(){t._reactRootContainer=null,t[dr]=null})}),!0):!1};lt.unstable_batchedUpdates=Bd;lt.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!pl(r))throw Error(A(200));if(t==null||t._reactInternals===void 0)throw Error(A(38));return ml(t,e,r,!1,n)};lt.version="18.3.1-next-f1338f8080-20240426";function Rv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rv)}catch(t){console.error(t)}}Rv(),Rm.exports=lt;var di=Rm.exports;const Av=oi(di);var jv,Hf=di;jv=Hf.createRoot,Hf.hydrateRoot;var dx=typeof Element<"u",hx=typeof Map=="function",fx=typeof Set=="function",px=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ua(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,s;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!ua(t[n],e[n]))return!1;return!0}var o;if(hx&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(n=o.next()).done;)if(!e.has(n.value[0]))return!1;for(o=t.entries();!(n=o.next()).done;)if(!ua(n.value[1],e.get(n.value[0])))return!1;return!0}if(fx&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(n=o.next()).done;)if(!e.has(n.value[0]))return!1;return!0}if(px&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(t[n]!==e[n])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;if(dx&&t instanceof Element)return!1;for(n=r;n--!==0;)if(!((s[n]==="_owner"||s[n]==="__v"||s[n]==="__o")&&t.$$typeof)&&!ua(t[s[n]],e[s[n]]))return!1;return!0}return t!==t&&e!==e}var mx=function(e,r){try{return ua(e,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const gx=oi(mx);var vx=function(t,e,r,n,s,o,i,a){if(!t){var l;if(e===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,s,o,i,a],c=0;
40l=new Error(e.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},yx=vx;const Vf=oi(yx);var wx=function(e,r,n,s){var o=n?n.call(s,e,r):void 0;if(o!==void 0)return!!o;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var i=Object.keys(e),a=Object.keys(r);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),u=0;u<i.length;u++){var c=i[u];if(!l(c))return!1;var h=e[c],f=r[c];if(o=n?n.call(s,h,f,c):void 0,o===!1||o===void 0&&h!==f)return!1}return!0};const bx=oi(wx);var Nv=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(Nv||{}),uu={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Wf=Object.values(Nv),gl={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Iv=Object.entries(gl).reduce((t,[e,r])=>(t[r]=e,t),{}),It="data-rh",xs={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Es=(t,e)=>{for(let r=t.length-1;r>=0;r-=1){const n=t[r];if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}return null},_x=t=>{let e=Es(t,"title");const r=Es(t,xs.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),r&&e)return r.replace(/%s/g,()=>e);const n=Es(t,xs.DEFAULT_TITLE);return e||n||void 0},xx=t=>Es(t,xs.ON_CHANGE_CLIENT_STATE)||(()=>{}),cu=(t,e)=>e.filter(r=>typeof r[t]<"u").map(r=>r[t]).reduce((r,n)=>({...r,...n}),{}),Ex=(t,e)=>e.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const s=Object.keys(n);for(let o=0;o<s.length;o+=1){const a=s[o].toLowerCase();if(t.indexOf(a)!==-1&&n[a])return r.concat(n)}}return r},[]),Sx=t=>console&&typeof console.warn=="function"&&console.warn(t),ho=(t,e,r)=>{const n={};return r.filter(s=>Array.isArray(s[t])?!0:(typeof s[t]<"u"&&Sx(`Helmet: ${t} should be of type "Array". Instead found type "${typeof s[t]}"`),!1)).map(s=>s[t]).reverse().reduce((s,o)=>{const i={};o.filter(l=>{let u;const c=Object.keys(l);for(let f=0;f<c.length;f+=1){const d=c[f],y=d.toLowerCase();e.indexOf(y)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(y==="rel"&&l[y].toLowerCase()==="stylesheet")&&(u=y),e.indexOf(d)!==-1&&(d==="innerHTML"||d==="cssText"||d==="itemprop")&&(u=d)}if(!u||!l[u])return!1;const h=l[u].toLowerCase();return n[u]||(n[u]={}),i[u]||(i[u]={}),n[u][h]?!1:(i[u][h]=!0,!0)}).reverse().forEach(l=>s.push(l));const a=Object.keys(i);for(let l=0;l<a.length;l+=1){const u=a[l],c={...n[u],...i[u]};n[u]=c}return s},[]).reverse()},kx=(t,e)=>{if(Array.isArray(t)&&t.length){for(let r=0;r<t.length;r+=1)if(t[r][e])return!0}return!1},Tx=t=>({baseTag:Ex(["href"],t),bodyAttributes:cu("bodyAttributes",t),defer:Es(t,xs.DEFER),encode:Es(t,xs.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:cu("htmlAttributes",t),linkTags:ho("link",["rel","href"],t),metaTags:ho("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:ho("noscript",["innerHTML"],t),onChangeClientState:xx(t),scriptTags:ho("script",["src","innerHTML"],t),styleTags:ho("style",["cssText"],t),title:_x(t),titleAttributes:cu("titleAttributes",t),prioritizeSeoTags:kx(t,xs.PRIORITIZE_SEO_TAGS)}),$v=t=>Array.isArray(t)?t.join(""):t,Cx=(t,e)=>{const r=Object.keys(t);for(let n=0;n<r.length;n+=1)if(e[r[n]]&&e[r[n]].includes(t[r[n]]))return!0;return!1},du=(t,e)=>Array.isArray(t)?t.reduce((r,n)=>(Cx(n,e)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:t,priority:[]},Kf=(t,e)=>({...t,[e]:void 0}),Px=["noscript","script","style"],xc=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Lv=t=>Object.keys(t).reduce((e,r)=>{const n=typeof t[r]<"u"?`${r}="${t[r]}"`:`${r}`;return e?`${e} ${n}`:n},""),Ox=(t,e,r,n)=>{const s=Lv(r),o=$v(e);return s?`<${t} ${It}="true" ${s}>${xc(o,n)}</${t}>`:`<${t} ${It}="true">${xc(o,n)}</${t}>`},Rx=(t,e,r=!0)=>e.reduce((n,s)=>{const o=s,i=Object.keys(o).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,c)=>{const h=typeof o[c]>"u"?c:`${c}="${xc(o[c],r)}"`;return u?`${u} ${h}`:h},""),a=o.innerHTML||o.cssText||"",l=Px.indexOf(t)===-1;return`${n}<${t} ${It}="true" ${i}${l?"/>":`>${a}</${t}>`}`},""),Dv=(t,e={})=>Object.keys(t).reduce((r,n)=>{const s=gl[n];return r[s||n]=t[n],r},e),Ax=(t,e,r)=>{const n={key:e,[It]:!0},s=Dv(r,n);return[O.createElement("title",s,e)]},ca=(t,e)=>e.map((r,n)=>{const s={key:n,[It]:!0};return Object.keys(r).forEach(o=>{const a=gl[o]||o;if(a==="innerHTML"||a==="cssText"){const l=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=r[o]}),O.createElement(t,s)}),dt=(t,e,r=!0)=>{switch(t){case"title":return{toComponent:()=>Ax(t,e.title,e.titleAttributes),toString:()=>Ox(t,e.title,e.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Dv(e),toString:()=>Lv(e)};default:return{toComponent:()=>ca(t,e),toString:()=>Rx(t,e,r)}}}
40,jx=({metaTags:t,linkTags:e,scriptTags:r,encode:n})=>{const s=du(t,uu.meta),o=du(e,uu.link),i=du(r,uu.script);return{priorityMethods:{toComponent:()=>[...ca("meta",s.priority),...ca("link",o.priority),...ca("script",i.priority)],toString:()=>`${dt("meta",s.priority,n)} ${dt("link",o.priority,n)} ${dt("script",i.priority,n)}`},metaTags:s.default,linkTags:o.default,scriptTags:i.default}},Nx=t=>{const{baseTag:e,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:o,styleTags:i,title:a="",titleAttributes:l,prioritizeSeoTags:u}=t;let{linkTags:c,metaTags:h,scriptTags:f}=t,d={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:d,linkTags:c,metaTags:h,scriptTags:f}=jx(t)),{priority:d,base:dt("base",e,n),bodyAttributes:dt("bodyAttributes",r,n),htmlAttributes:dt("htmlAttributes",s,n),link:dt("link",c,n),meta:dt("meta",h,n),noscript:dt("noscript",o,n),script:dt("script",f,n),style:dt("style",i,n),title:dt("title",{title:a,titleAttributes:l},n)}},Ec=Nx,Li=[],Jd=!!(typeof window<"u"&&window.document&&window.document.createElement),Sc=class{constructor(t,e){er(this,"instances",[]);er(this,"canUseDOM",Jd);er(this,"context");er(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?Li:this.instances,add:t=>{(this.canUseDOM?Li:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?Li:this.instances).indexOf(t);(this.canUseDOM?Li:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=Ec({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Ix=parseInt(O.version.split(".")[0],10),kc=Ix>=19,$x={},Mv=O.createContext($x),En,Uv=(En=class extends _.Component{constructor(r){super(r);er(this,"helmetData");kc?this.helmetData=null:this.helmetData=new Sc(this.props.context||{},En.canUseDOM)}render(){return kc?O.createElement(O.Fragment,null,this.props.children):O.createElement(Mv.Provider,{value:this.helmetData.value},this.props.children)}},er(En,"canUseDOM",Jd),En),Gn=(t,e)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${t}[${It}]`),s=[].slice.call(n),o=[];let i;return e&&e.length&&e.forEach(a=>{const l=document.createElement(t);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText"){const c=a.cssText;l.appendChild(document.createTextNode(c))}else{const c=u,h=typeof a[c]>"u"?"":a[c];l.setAttribute(u,h)}l.setAttribute(It,"true"),s.some((u,c)=>(i=c,l.isEqualNode(u)))?s.splice(i,1):o.push(l)}),s.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),o.forEach(a=>r.appendChild(a)),{oldTags:s,newTags:o}},Tc=(t,e)=>{const r=document.getElementsByTagName(t)[0];if(!r)return;const n=r.getAttribute(It),s=n?n.split(","):[],o=[...s],i=Object.keys(e);for(const a of i){const l=e[a]||"";r.getAttribute(a)!==l&&r.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const u=o.indexOf(a);u!==-1&&o.splice(u,1)}for(let a=o.length-1;a>=0;a-=1)r.removeAttribute(o[a]);s.length===o.length?r.removeAttribute(It):r.getAttribute(It)!==i.join(",")&&r.setAttribute(It,i.join(","))},Lx=(t,e)=>{typeof t<"u"&&document.title!==t&&(document.title=$v(t)),Tc("title",e)},qf=(t,e)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:o,metaTags:i,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:c,title:h,titleAttributes:f}=t;Tc("body",n),Tc("html",s),Lx(h,f);const d={baseTag:Gn("base",r),linkTags:Gn("link",o),metaTags:Gn("meta",i),noscriptTags:Gn("noscript",a),scriptTags:Gn("script",u),styleTags:Gn("style",c)},y={},v={};Object.keys(d).forEach(w=>{const{newTags:g,oldTags:p}=d[w];g.length&&(y[w]=g),p.length&&(v[w]=d[w].oldTags)}),e&&e(),l(t,y,v)},fo=null,Dx=t=>{fo&&cancelAnimationFrame(fo),t.defer?fo=requestAnimationFrame(()=>{qf(t,()=>{fo=null})}):(qf(t),fo=null)},Mx=Dx,Gf=class extends _.Component{constructor(){super(...arguments);er(this,"rendered",!1)}shouldComponentUpdate(e){return!bx(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:r}=this.props.context;let n=null;const s=Tx(e.get().map(o=>{const{context:i,...a}=o.props;return a}));Uv.canUseDOM?Mx(s):Ec&&(n=Ec(s)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},da=[],Qf=t=>{const e={};for(const r of Object.keys(t))e[Iv[r]||r]=t[r];return e},cn=t=>{const e={};for(const r of Object.keys(t)){const n=gl[r];e[n||r]=t[r]}return e},Jf=(t,e)=>{if(!Jd)return;const r=document.getElementsByTagName(t)[0];if(!r)return;const n="data-rh-managed",s=r.getAttribute(n),o=s?s.split(","):[],i=Object.keys(e);for(const a of o)i.includes(a)||r.removeAttribute(a);for(const a of i){const l=e[a];l==null||l===!1?r.removeAttribute(a):l===!0?r.setAttribute(a,""):r.setAttribute(a,String(l))}i.length>0?r.setAttribute(n,i.join(",")):r.removeAttribute(n)},hu=()=>{const t={},e={};for(const r of da){const{htmlAttributes:n,bodyAttributes:s}=r.props;n&&Object.assign(t,Qf(n)),s&&Object.assign(e,Qf(s))}Jf("html",t),Jf("body",e)},Ux=class extends _.Component{componentDidMount(){da.push(this),hu()}componentDidUpdate(){hu()}componentWillUnmount(){const t=da.indexOf(this);t!==-1&&da.splice(t,1),hu()}resolveTitle(){const{title:t,titleTemplate:e,defaultTitle:r}=this.props;return t&&e?e.replace(/%s/g,()=>Array.isArray(t)?t.join(""):t):t||r||void 0}renderTitle(){const t=this.resolveTitle();if(t===void 0)return null;const e=this.props.titleAttributes||{};return O.createElement("title",cn(e),t)}renderBase(){const{base:t}=this.props;return t?O.createElement("base",cn(t)):null}renderMeta(){const{meta:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,r)=>O.createElement("meta",{key:r,...cn(e)}))}renderLink(){const{link:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,r)=>O.createElement("link",{key:r,...cn(e)}))}renderScript(){const{script:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,r)=>{const{innerHTML:n,...s}=e,o=cn(s);return n&&(o.dangerouslySetInnerHTML={__html:n}),O.createElement("script",{key:r,...o}
40)})}renderStyle(){const{style:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,r)=>{const{cssText:n,...s}=e,o=cn(s);return n&&(o.dangerouslySetInnerHTML={__html:n}),O.createElement("style",{key:r,...o})})}renderNoscript(){const{noscript:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,r)=>{const{innerHTML:n,...s}=e,o=cn(s);return n&&(o.dangerouslySetInnerHTML={__html:n}),O.createElement("noscript",{key:r,...o})})}render(){return O.createElement(O.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Ou,Fx=(Ou=class extends _.Component{shouldComponentUpdate(t){return!gx(Kf(this.props,"helmetData"),Kf(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,r,n){return{...e,[t.type]:[...e[t.type]||[],{...r,...this.mapNestedChildrenToProps(t,n)}]}}mapObjectTypeChildren(t,e,r,n){switch(t.type){case"title":return{...e,[t.type]:n,titleAttributes:{...r}};case"body":return{...e,bodyAttributes:{...r}};case"html":return{...e,htmlAttributes:{...r}};default:return{...e,[t.type]:{...r}}}}mapArrayTypeChildrenToProps(t,e){let r={...e};return Object.keys(t).forEach(n=>{r={...r,[n]:t[n]}}),r}warnOnInvalidChildren(t,e){return Vf(Wf.some(r=>t.type===r),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Wf.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),Vf(!e||typeof e=="string"||Array.isArray(e)&&!e.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let r={};return O.Children.forEach(t,n=>{if(!n||!n.props)return;const{children:s,...o}=n.props,i=Object.keys(o).reduce((l,u)=>(l[Iv[u]||u]=o[u],l),{});let{type:a}=n;
40switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(n,s),a){case"Symbol(react.fragment)":e=this.mapChildrenToProps(s,e);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,i,s);break;default:e=this.mapObjectTypeChildren(n,e,i,s);break}}),this.mapArrayTypeChildrenToProps(r,e)}render(){const{children:t,...e}=this.props;let r={...e},{helmetData:n}=e;if(t&&(r=this.mapChildrenToProps(t,r)),n&&!(n instanceof Sc)){const s=n;n=new Sc(s.context,!0),delete r.helmetData}return kc?O.createElement(Ux,{...r}):n?O.createElement(Gf,{...r,context:n.value}):O.createElement(Mv.Consumer,null,s=>O.createElement(Gf,{...r,context:s}))}},er(Ou,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Ou);const zx=1,Bx=1e6;let fu=0;function Hx(){return fu=(fu+1)%Number.MAX_SAFE_INTEGER,fu.toString()}const pu=new Map,Yf=t=>{if(pu.has(t))return;const e=setTimeout(()=>{pu.delete(t),Ro({type:"REMOVE_TOAST",toastId:t})},Bx);pu.set(t,e)},Vx=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,zx)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;return r?Yf(r):t.toasts.forEach(n=>{Yf(n.id)}),{...t,toasts:t.toasts.map(n=>
vendor: 10,055 bytes, line 40
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},ha=[];let fa={toasts:[]};function Ro(t){fa=Vx(fa,t),ha.forEach(e=>{e(fa)})}function Fv({...t}){const e=Hx(),r=s=>Ro({type:"UPDATE_TOAST",toast:{...s,id:e}}),n=()=>Ro({type:"DISMISS_TOAST",toastId:e});return Ro({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||n()}}}),{id:e,dismiss:n,update:r}}function Wx(){const[t,e]=_.useState(fa);return _.useEffect(()=>(ha.push(e),()=>{const r=ha.indexOf(e);r>-1&&ha.splice(r,1)}),[t]),{...t,toast:Fv,dismiss:r=>Ro({type:"DISMISS_TOAST",toastId:r})}}function Se(t,e,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function Xf(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function zv(...t){return e=>{let r=!1;const n=t.map(s=>{const o=Xf(s,e);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s<n.length;s++){const o=n[s];typeof o=="function"?o():Xf(t[s],null)}}}}function Mt(...t){return _.useCallback(zv(...t),t)}function vl(t,e=[]){let r=[];function n(o,i){const a=_.createContext(i),l=r.length;r=[...r,i];const u=h=>{var g;const{scope:f,children:d,...y}=h,v=((g=f==null?void 0:f[t])==null?void 0:g[l])||a,w=_.useMemo(()=>y,Object.values(y));return b.jsx(v.Provider,{value:w,children:d})};u.displayName=o+"Provider";function c(h,f){var v;const d=((v=f==null?void 0:f[t])==null?void 0:v[l])||a,y=_.useContext(d);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[u,c]}const s=()=>{const o=r.map(i=>_.createContext(i));return function(a){const l=(a==null?void 0:a[t])||o;return _.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return s.scopeName=t,[n,Kx(s,...e)]}function Kx(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=n.reduce((a,{useScope:l,scopeName:u})=>{const h=l(o)[`__scope${u}`];return{...a,...h}},{});return _.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return r.scopeName=e.scopeName,r}function Fa(t){const e=Gx(t),r=_.forwardRef((n,s)=>{const{children:o,...i}=n,a=_.Children.toArray(o),l=a.find(Jx);if(l){const u=l.props.children,c=a.map(h=>h===l?_.Children.count(u)>1?_.Children.only(null):_.isValidElement(u)?u.props.children:null:h);return b.jsx(e,{...i,ref:s,children:_.isValidElement(u)?_.cloneElement(u,void 0,c):null})}return b.jsx(e,{...i,ref:s,children:o})});return r.displayName=`${t}.Slot`,r}var qx=Fa("Slot");function Gx(t){const e=_.forwardRef((r,n)=>{const{children:s,...o}=r;if(_.isValidElement(s)){const i=Xx(s),a=Yx(o,s.props);return s.type!==_.Fragment&&(a.ref=n?zv(n,i):i),_.cloneElement(s,a)}return _.Children.count(s)>1?_.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Bv=Symbol("radix.slottable");function Qx(t){const e=({children:r})=>b.jsx(b.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=Bv,e}function Jx(t){return _.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Bv}function Yx(t,e){const r={...e};for(const n in e){const s=t[n],o=e[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...a)=>{const l=o(...a);return s(...a),l}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...t,...r}}function Xx(t){var n,s;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function Zx(t){const e=t+"CollectionProvider",[r,n]=vl(e),[s,o]=r(e,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:w,children:g}=v,p=O.useRef(null),m=O.useRef(new Map).current;return b.jsx(s,{scope:w,itemMap:m,collectionRef:p,children:g})};i.displayName=e;const a=t+"CollectionSlot",l=Fa(a),u=O.forwardRef((v,w)=>{const{scope:g,children:p}=v,m=o(a,g),x=Mt(w,m.collectionRef);return b.jsx(l,{ref:x,children:p})});u.displayName=a;const c=t+"CollectionItemSlot",h="data-radix-collection-item",f=Fa(c),d=O.forwardRef((v,w)=>{const{scope:g,children:p,...m}=v,x=O.useRef(null),E=Mt(w,x),S=o(c,g);return O.useEffect(()=>(S.itemMap.set(x,{ref:x,...m}),()=>void S.itemMap.delete(x))),b.jsx(f,{[h]:"",ref:E,children:p})});d.displayName=c;function y(v){const w=o(t+"CollectionConsumer",v);return O.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const m=Array.from(p.querySelectorAll(`[${h}]`));return Array.from(w.itemMap.values()).sort((S,k)=>m.indexOf(S.ref.current)-m.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:d},y,n]}var e1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=e1.reduce((t,e)=>{const r=Fa(`Primitive.${e}`),n=_.forwardRef((s,o)=>{const{asChild:i,...a}=s,l=i?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...a,ref:o})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function Hv(t,e){t&&di.flushSync(()=>t.dispatchEvent(e))}function Yr(t){const e=_.useRef(t);return _.useEffect(()=>{e.current=t}),_.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function t1(t,e=globalThis==null?void 0:globalThis.document){const r=Yr(t);_.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var r1="DismissableLayer",Cc="dismissableLayer.update",n1="dismissableLayer.pointerDownOutside",s1="dismissableLayer.focusOutside",Zf,Vv=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yd=_.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=t,u=_.useContext(Vv),[c,h]=_.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=_.useState({}),y=Mt(e,k=>h(k)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(w),p=c?v.indexOf(c):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,x=p>=g,E=i1(k=>{const P=k.target,j=[...u.branches].some(N=>N.contains(P));!x||j||(s==null||s(k),i==null||i(k),k.defaultPrevented||a==null||a())},f),S=a1(k=>{const P=k.target;[...u.branches].some(N=>N.contains(P))||(o==null||o(k),i==null||i(k),k.defaultPrevented||a==null||a())},f);return t1(k=>{p===u.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},f),_.useEffect(()=>{if(c)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Zf=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),ep(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Zf)}},[c,f,r,u]),_.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),ep())},[c,u]),_.useEffect(()=>{const k=()=>d({});return document.addEventListener(Cc,k),()=>document.removeEventListener(Cc,k)},[]),b.jsx(Ze.div,{...l,ref:y,style:{pointerEvents:m?x?"auto":"none":void 0,...t.style},onFocusCapture:Se(t.onFocusCapture,S.onFocusCapture),onBlurCapture:Se(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Se(t.onPointerDownCapture,E.onPointerDownCapture)})});Yd.displayName=r1;var o1="DismissableLayerBranch",Wv=_.forwardRef((t,e)=>{const r=_.useContext(Vv),n=_.useRef(null),s=Mt(e,n);return _.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),b.jsx(Ze.div,{...t,ref:s})});Wv.displayName=o1;function i1(t,e=globalThis==null?void 0:globalThis.document){const r=Yr(t),n=_.useRef(!1),s=_.useRef(()=>{});return _.useEffect(()=>{const o=a=>{if(a.target&&!n.current){let l=function(){Kv(n1,r,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=l,e.addEventListener("click",s.current,{once:!0})):l()}else e.removeEventListener("click",s.current);n.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",o),e.removeEventListener("click",s.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function a1(t,e=globalThis==null?void 0:globalThis.document){const r=Yr(t),n=_.useRef(!1);return _.useEffect(()=>{const s=o=>{o.target&&!n.current&&Kv(s1,r,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ep(){const t=new CustomEvent(Cc);document.dispatchEvent(t)}function Kv(t,e,r,{discrete:n}){const s=r.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?Hv(s,o):s.dispatchEvent(o)}var l1=Yd,u1=Wv,Xr=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},c1="Portal",qv=_.forwardRef((t,e)=>{var a;const{container:r,...n}=t,[s,o]=_.useState(!1);Xr(()=>o(!0),[]);const i=r||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Av.createPortal(b.jsx(Ze.div,{...n,ref:e}),i):null});qv.displayName=c1;function d1(t,e){return _.useReducer((r,n)=>e[r][n]??r,t)}var Xd=t=>{const{present:e,children:r}=t,n=h1(e),s=typeof r=="function"?r({present:n.isPresent}):_.Children.only(r),o=Mt(n.ref,f1(s));return typeof r=="function"||n.isPresent?_.cloneElement(s,{ref:o}):null};Xd.displayName="Presence";function h1(t){const[e,r]=_.useState(),n=_.useRef(null),s=_.useRef(t),o=_.useRef("none"),i=t?"mounted":"unmounted",[a,l]=d1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>
40{const u=Di(n.current);o.current=a==="mounted"?u:"none"},[a]),Xr(()=>{const u=n.current,c=s.current;if(c!==t){const f=o.current,d=Di(u);t?l("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==d?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,l]),Xr(()=>{if(e){let u;const c=e.ownerDocument.defaultView??window,h=d=>{const v=Di(n.current).includes(d.animationName);if(d.target===e&&v&&(l("ANIMATION_END"),!s.current)){const w=e.style.animationFillMode;e.style.animationFillMode="forwards",u=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=w)})}},f=d=>{d.target===e&&(o.current=Di(n.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{c.clearTimeout(u),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:_.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Di(t){return(t==null?void 0:t.animationName)||"none"}function f1(t){var n,s;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var p1=Pm[" useInsertionEffect ".trim().toString()]||Xr;function m1({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[s,o,i]=g1({defaultProp:e,onChange:r}),a=t!==void 0,l=a?t:s;{const c=_.useRef(t!==void 0);_.useEffect(()=>{const h=c.current;h!==a&&console.warn(`${n} is changing from ${h?"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,n])}const u=_.useCallback(c=>{var h;if(a){const f=v1(c)?c(t):c;f!==t&&((h=i.current)==null||h.call(i,f))}else o(c)},[a,t,o,i]);return[l,u]}function g1({defaultProp:t,onChange:e}){const[r,n]=_.useState(t),s=_.useRef(r),o=_.useRef(e);return p1(()=>{o.current=e},[e]),_.useEffect(()=>{var i;s.current!==r&&((i=o.current)==null||i.call(o,r),s.current=r)},[r,s]),[r,n,o]}function v1(t){return typeof t=="function"}var y1=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"}),w1="VisuallyHidden",yl=_.forwardRef((t,e)=>b.jsx(Ze.span,{...t,ref:e,style:{...y1,...t.style}}));yl.displayName=w1;var b1=yl,Zd="ToastProvider",[eh,_1,x1]=Zx("Toast"),[Gv,tA]=vl("Toast",[x1]),[E1,wl]=Gv(Zd),Qv=t=>{const{__scopeToast:e,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=t,[a,l]=_.useState(null),[u,c]=_.useState(0),h=_.useRef(!1),f=_.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Zd}\`. Expected non-empty \`string\`.`),b.jsx(eh.Provider,{scope:e,children:b.jsx(E1,{scope:e,label:r,duration:n,swipeDirection:s,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:_.useCallback(()=>c(d=>d+1),[]),onToastRemove:_.useCallback(()=>c(d=>d-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:i})})};Qv.displayName=Zd;var Jv="ToastViewport",S1=["F8"],Pc="toast.viewportPause",Oc="toast.viewportResume",Yv=_.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=S1,label:s="Notifications ({hotkey})",...o}=t,i=wl(Jv,r),a=_1(r),l=_.useRef(null),u=_.useRef(null),c=_.useRef(null),h=_.useRef(null),f=Mt(e,h,i.onViewportChange),d=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=i.toastCount>0;_.useEffect(()=>{const w=g=>{var m;n.length!==0&&n.every(x=>g[x]||g.code===x)&&((m=h.current)==null||m.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[n]),_.useEffect(()=>{const w=l.current,g=h.current;if(y&&w&&g){const p=()=>{if(!i.isClosePausedRef.current){const S=new CustomEvent(Pc);g.dispatchEvent(S),i.isClosePausedRef.current=!0}},m=()=>{if(i.isClosePausedRef.current){const S=new CustomEvent(Oc);g.dispatchEvent(S),i.isClosePausedRef.current=!1}},x=S=>{!w.contains(S.relatedTarget)&&m()},E=()=>{w.contains(document.activeElement)||m()};return w.addEventListener("focusin",p),w.addEventListener("focusout",x),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",E),window.addEventListener("blur",p),window.addEventListener("focus",m),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",x),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",p),window.removeEventListener("focus",m)}}},[y,i.isClosePausedRef]);const v=_.useCallback(({tabbingDirection:w})=>{const p=a().map(m=>{const x=m.ref.current,E=[x,...D1(x)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?p.reverse():p).flat()},[a]);return _.useEffect(()=>{const w=h.current;if(w){const g=p=>{var E,S,k;const m=p.altKey||p.ctrlKey||p.metaKey;
40if(p.key==="Tab"&&!m){const P=document.activeElement,j=p.shiftKey;if(p.target===w&&j){(E=u.current)==null||E.focus();return}const $=v({tabbingDirection:j?"backwards":"forwards"}),V=$.findIndex(I=>I===P);mu($.slice(V+1))?p.preventDefault():j?(S=u.current)==null||S.focus():(k=c.current)==null||k.focus()}};return w.addEventListener("keydown",g),()=>w.removeEventListener("keydown",g)}},[a,v]),b.jsxs(u1,{ref:l,role:"region","aria-label":s.replace("{hotkey}",d),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&b.jsx(Rc,{ref:u,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});mu(w)}}),b.jsx(eh.Slot,{scope:r,children:b.jsx(Ze.ol,{tabIndex:-1,...o,ref:f})}),y&&b.jsx(Rc,{ref:c,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});mu(w)}})]})});Yv.displayName=Jv;var Xv="ToastFocusProxy",Rc=_.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=t,o=wl(Xv,r);return b.jsx(yl,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&n()}})});Rc.displayName=Xv;var hi="Toast",k1="toast.swipeStart",T1="toast.swipeMove",C1="toast.swipeCancel",P1="toast.swipeEnd",Zv=_.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:o,...i}=t,[a,l]=m1({prop:n,defaultProp:s??!0,onChange:o,caller:hi});return b.jsx(Xd,{present:r||a,children:b.jsx(A1,{open:a,...i,ref:e,onClose:()=>l(!1),onPause:Yr(t.onPause),onResume:Yr(t.onResume),onSwipeStart:Se(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Se(t.onSwipeMove,u=>{const{x:c,y:h}=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",`${h}px`)}),onSwipeCancel:Se(t.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Se(t.onSwipeEnd,u=>{const{x:c,y:h}=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",`${h}px`),l(!1)})})})});Zv.displayName=hi;var[O1,R1]=Gv(hi,{onClose(){}}),A1=_.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:d,...y}=t,v=wl(hi,r),[w,g]=_.useState(null),p=Mt(e,I=>g(I)),m=_.useRef(null),x=_.useRef(null),E=s||v.duration,S=_.useRef(0),k=_.useRef(E),P=_.useRef(0),{onToastAdd:j,onToastRemove:N}=v,z=Yr(()=>{var X;(w==null?void 0:w.contains(document.activeElement))&&((X=v.viewport)==null||X.focus()),i()}),$=_.useCallback(I=>{!I||I===1/0||(window.clearTimeout(P.current),S.current=new Date().getTime(),P.current=window.setTimeout(z,I))},[z]);_.useEffect(()=>{const I=v.viewport;if(I){const X=()=>{$(k.current),u==null||u()},H=()=>{const q=new Date().getTime()-S.current;k.current=k.current-q,window.clearTimeout(P.current),l==null||l()};return I.addEventListener(Pc,H),I.addEventListener(Oc,X),()=>{I.removeEventListener(Pc,H),I.removeEventListener(Oc,X)}}},[v.viewport,E,l,u,$]),_.useEffect(()=>{o&&!v.isClosePausedRef.current&&$(E)},[o,E,v.isClosePausedRef,$]),_.useEffect(()=>(j(),()=>N()),[j,N]);const V=_.useMemo(()=>w?iy(w):null,[w]);return v.viewport?b.jsxs(b.Fragment,{children:[V&&b.jsx(j1,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),b.jsx(O1,{scope:r,onClose:z,children:di.createPortal(b.jsx(eh.ItemSlot,{scope:r,children:b.jsx(l1,{asChild:!0,onEscapeKeyDown:Se(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||z(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(Ze.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":v.swipeDirection,...y,ref:p,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Se(t.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:Se(t.onPointerDown,I=>{I.button===0&&(m.current={x:I.clientX,y:I.clientY})}),onPointerMove:Se(t.onPointerMove,I=>{if(!m.current)return;const X=I.clientX-m.current.x,H=I.clientY-m.current.y,q=!!x.current,C=["left","right"].includes(v.swipeDirection),R=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,L=C?R(0,X):0,G=C?0:R(0,H),F=I.pointerType==="touch"?10:2,J={x:L,y:G},Z={originalEvent:I,delta:J};q?(x.current=J,Mi(T1,h,Z,{discrete:!1})):tp(J,v.swipeDirection,F)?(x.current=J,Mi(k1,c,Z,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(X)>F||Math.abs(H)>F)&&(m.current=null)}),onPointerUp:Se(t.onPointerUp,I=>{const X=x.current,H=I.target;if(H.hasPointerCapture(I.pointerId)&&H.releasePointerCapture(I.pointerId),x.current=null,m.current=null,X){const q=I.currentTarget,C={originalEvent:I,delta:X};tp(X,v.swipeDirection,v.swipeThreshold)?Mi(P1,d,C,{discrete:!0}):Mi(C1,f,C,{discrete:!0}),q.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),j1=t=>{const{__scopeToast:e,children:r,...n}=t,s=wl(hi,e),[o,i]=_.useState(!1),[a,l]=_.useState(!1);return $1(()=>i(!0)),_.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:b.jsx(qv,{asChild:!0,children:b.jsx(yl,{...n,children:o&&b.jsxs(b.Fragment,{children:[s.label," ",r]})})})},N1="ToastTitle",ey=_.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return b.jsx(Ze.div,{...n,ref:e})});ey.displayName=N1;var I1="ToastDescription",ty=_.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return b.jsx(Ze.div,{...n,ref:e})});ty.displayName=I1;var ry="ToastAction",ny=_.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?b.jsx(oy,{altText:r,asChild:!0,children:b.jsx(th,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${ry}\`. Expected non-empty \`string\`.`),null)});ny.displayName=ry;var sy="ToastClose",th=_.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,s=R1(sy,r);return b.jsx(oy,{asChild:!0,children:b.jsx(Ze.button,{type:"button",...n,ref:e,onClick:Se(t.onClick,s.onClose)})})});th.displayName=sy;var oy=_.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...s}=t;return b.jsx(Ze.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:e})});function iy(t){const e=[];
vendor: 7,679 bytes, lines 40-115
40return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),L1(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=n.dataset.radixToastAnnounceAlt;i&&e.push(i)}else e.push(...iy(n))}}),e}function Mi(t,e,r,{discrete:n}){const s=r.originalEvent.currentTarget,o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?Hv(s,o):s.dispatchEvent(o)}var tp=(t,e,r=0)=>{const n=Math.abs(t.x),s=Math.abs(t.y),o=n>s;return e==="left"||e==="right"?o&&n>r:!o&&s>r};function $1(t=()=>{}){const e=Yr(t);Xr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function L1(t){return t.nodeType===t.ELEMENT_NODE}function D1(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function mu(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}var M1=Qv,ay=Yv,ly=Zv,uy=ey,cy=ty,dy=ny,hy=th;function fy(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(r=fy(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function py(){for(var t,e,r=0,n="",s=arguments.length;r<s;r++)(t=arguments[r])&&(e=fy(t))&&(n&&(n+=" "),n+=e);return n}const rp=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,np=py,my=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return np(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=e,i=Object.keys(s).map(u=>{const c=r==null?void 0:r[u],h=o==null?void 0:o[u];if(c===null)return null;const f=rp(c)||rp(h);return s[u][f]}),a=r&&Object.entries(r).reduce((u,c)=>{let[h,f]=c;return f===void 0||(u[h]=f),u},{}),l=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((u,c)=>{let{class:h,className:f,...d}=c;return Object.entries(d).every(y=>{let[v,w]=y;return Array.isArray(w)?w.includes({...o,...a}[v]):{...o,...a}[v]===w})?[...u,h,f]:u},[]);return np(t,i,l,r==null?void 0:r.class,r==null?void 0:r.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 U1=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gy=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).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 F1={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 z1=_.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:o,iconNode:i,...a},l)=>_.createElement("svg",{ref:l,...F1,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:gy("lucide",s),...a},[...i.map(([u,c])=>_.createElement(u,c)),...Array.isArray(o)?o:[o]]));/**
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 zt=(t,e)=>{const r=_.forwardRef(({className:n,...s},o)=>_.createElement(z1,{ref:o,iconNode:e,className:gy(`lucide-${U1(t)}`,n),...s}));return r.displayName=`${t}`,r};/**
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 B1=zt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
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 H1=zt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
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 V1=zt("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
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 vy=zt("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
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 W1=zt("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
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 yy=zt("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const K1=zt("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const q1=zt("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const wy=zt("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const G1=zt("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const Q1=zt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 12,223 bytes, line 115
115],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),rh="-",J1=t=>{const e=X1(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{const a=i.split(rh);return a[0]===""&&a.length!==1&&a.shift(),by(a,e)||Y1(i)},getConflictingClassGroupIds:(i,a)=>{const l=r[i]||[];return a&&n[i]?[...l,...n[i]]:l}}},by=(t,e)=>{var i;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),s=n?by(t.slice(1),n):void 0;if(s)return s;if(e.validators.length===0)return;const o=t.join(rh);return(i=e.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},sp=/^\[(.+)\]$/,Y1=t=>{if(sp.test(t)){const e=sp.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},X1=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return eE(Object.entries(t.classGroups),r).forEach(([o,i])=>{Ac(i,n,o,e)}),n},Ac=(t,e,r,n)=>{t.forEach(s=>{if(typeof s=="string"){const o=s===""?e:op(e,s);o.classGroupId=r;return}if(typeof s=="function"){if(Z1(s)){Ac(s(n),e,r,n);return}e.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,i])=>{Ac(i,op(e,o),r,n)})})},op=(t,e)=>{let r=t;return e.split(rh).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Z1=t=>t.isThemeGetter,eE=(t,e)=>e?t.map(([r,n])=>{const s=n.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[e+i,a])):o);return[r,s]}):t,tE=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const s=(o,i)=>{r.set(o,i),e++,e>t&&(e=0,n=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return s(o,i),i},set(o,i){r.has(o)?r.set(o,i):s(o,i)}}},_y="!",rE=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,s=e[0],o=e.length,i=a=>{const l=[];let u=0,c=0,h;for(let w=0;w<a.length;w++){let g=a[w];if(u===0){if(g===s&&(n||a.slice(w,w+o)===e)){l.push(a.slice(c,w)),c=w+o;continue}if(g==="/"){h=w;continue}}g==="["?u++:g==="]"&&u--}const f=l.length===0?a:a.substring(c),d=f.startsWith(_y),y=d?f.substring(1):f,v=h&&h>c?h-c:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:y,maybePostfixModifierPosition:v}};return r?a=>r({className:a,parseClassName:i}):i},nE=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},sE=t=>({cache:tE(t.cacheSize),parseClassName:rE(t),...J1(t)}),oE=/\s+/,iE=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=e,o=[],i=t.trim().split(oE);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}=r(u);let y=!!d,v=n(y?f.substring(0,d):f);if(!v){if(!y){a=u+(a.length>0?" "+a:a);continue}if(v=n(f),!v){a=u+(a.length>0?" "+a:a);continue}y=!1}const w=nE(c).join(":"),g=h?w+_y:w,p=g+v;if(o.includes(p))continue;o.push(p);const m=s(v,y);for(let x=0;x<m.length;++x){const E=m[x];o.push(g+E)}a=u+(a.length>0?" "+a:a)}return a};function aE(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=xy(e))&&(n&&(n+=" "),n+=r);return n}const xy=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=xy(t[n]))&&(r&&(r+=" "),r+=e);return r};function lE(t,...e){let r,n,s,o=i;function i(l){const u=e.reduce((c,h)=>h(c),t());return r=sE(u),n=r.cache.get,s=r.cache.set,o=a,a(l)}function a(l){const u=n(l);if(u)return u;const c=iE(l,r);return s(l,c),c}return function(){return o(aE.apply(null,arguments))}}const ae=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},Ey=/^\[(?:([a-z-]+):)?(.+)\]$/i,uE=/^\d+\/\d+$/,cE=new Set(["px","full","screen"]),dE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hE=/\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$/,fE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tr=t=>Ss(t)||cE.has(t)||uE.test(t),Sr=t=>Qs(t,"length",EE),Ss=t=>!!t&&!Number.isNaN(Number(t)),gu=t=>Qs(t,"number",Ss),po=t=>!!t&&Number.isInteger(Number(t)),gE=t=>t.endsWith("%")&&Ss(t.slice(0,-1)),Q=t=>Ey.test(t),kr=t=>dE.test(t),vE=new Set(["length","size","percentage"]),yE=t=>Qs(t,vE,Sy),wE=t=>Qs(t,"position",Sy),bE=new Set(["image","url"]),_E=t=>Qs(t,bE,kE),xE=t=>Qs(t,"",SE),mo=()=>!0,Qs=(t,e,r)=>{const n=Ey.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},EE=t=>hE.test(t)&&!fE.test(t),Sy=()=>!1,SE=t=>pE.test(t),kE=t=>mE.test(t),TE=()=>{const t=ae("colors"),e=ae("spacing"),r=ae("blur"),n=ae("brightness"),s=ae("borderColor"),o=ae("borderRadius"),i=ae("borderSpacing"),a=ae("borderWidth"),l=ae("contrast"),u=ae("grayscale"),c=ae("hueRotate"),h=ae("invert"),f=ae("gap"),d=ae("gradientColorStops"),y=ae("gradientColorStopPositions"),v=ae("inset"),w=ae("margin"),g=ae("opacity"),p=ae("padding"),m=ae("saturate"),x=ae("scale"),E=ae("sepia"),S=ae("skew"),k=ae("space"),P=ae("translate"),j=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",Q,e],$=()=>[Q,e],V=()=>["",tr,Sr],I=()=>["auto",Ss,Q],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],q=()=>["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",Q],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Ss,Q];return{cacheSize:500,separator:":",theme:{colors:[mo],spacing:[tr,Sr],blur:["none","",kr,Q],brightness:G(),borderColor:[t],borderRadius:["none","","full",kr,Q],borderSpacing:$(),borderWidth:V(),contrast:G(),grayscale:R(),hueRotate:G(),invert:R(),gap:$(),gradientColorStops:[t],gradientColorStopPositions:[gE,Sr],inset:z(),margin:z(),opacity:G(),padding:$(),saturate:G(),scale:G(),sepia:R(),skew:G(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[kr]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:[...X(),Q]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",po,Q]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Q]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",po,Q]}],"grid-cols":[{"grid-cols":[mo]}],"col-start-end":[{col:["auto",{span:["full",po,Q]},Q]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[mo]}],"row-start-end":[{row:["auto",{span:[po,Q]},Q]}],"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",Q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Q]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"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:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],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",Q,e]}],"min-w":[{"min-w":[Q,e,"min","max","fit"]}],"max-w":[{"max-w":[Q,e,"none","full","min","max","fit","prose",{screen:[kr]},kr]}],h:[{h:[Q,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Q,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Q,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Q,e,"auto","min","max","fit"]}],"font-size":[{text:["base",kr,Sr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gu]}],"font-family":[{font:[mo]}],"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",Q]}],"line-clamp":[{"line-clamp":["none",Ss,gu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tr,Q]}],"list-image":[{"list-image":["none",Q]}],"list-style-type":[{list:["none","disc","decimal",Q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",tr,Sr]}],"underline-offset":[{"underline-offset":["auto",tr,Q]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q]}],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",Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),wE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_E]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[y]}
vendor: 5,172 bytes, line 115
115],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:H()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[tr,Q]}],"outline-w":[{outline:[tr,Sr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[tr,Sr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",kr,xE]}],"shadow-color":[{shadow:[mo]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",kr,Q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[m]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"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",Q]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[po,Q]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Q]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,646 bytes, line 115
115],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",Q]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[tr,Sr,gu]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},CE=lE(TE);function sn(...t){return CE(py(t))}const PE=M1,ky=_.forwardRef(({className:t,...e},r)=>b.jsx(ay,{ref:r,className:sn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));ky.displayName=ay.displayName;const OE=my("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"}}),Ty=_.forwardRef(({className:t,variant:e,...r},n)=>b.jsx(ly,{ref:n,className:sn(OE({variant:e}),t),...r}));Ty.displayName=ly.displayName;const RE=_.forwardRef(({className:t,...e},r)=>b.jsx(dy,{ref:r,className:sn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));RE.displayName=dy.displayName;const Cy=_.forwardRef(({className:t,...e},r)=>b.jsx(hy,{ref:r,className:sn("absolute right-2 top-2 rounded-md p-1 text-foreground
115/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:b.jsx(Q1,{className:"h-4 w-4"})}));Cy.displayName=hy.displayName;const Py=_.forwardRef(({className:t,...e},r)=>b.jsx(uy,{ref:r,className:sn("text-sm font-semibold",t),...e}));Py.displayName=uy.displayName;const Oy=_.forwardRef(({className:t,...e},r)=>b.jsx(cy,{ref:r,className:sn("text-sm opacity-90",t),...e}));Oy.displayName=cy.displayName;function AE(){const{toasts:t}=Wx();return b.jsxs(PE,{children:[t.map(function({id:e,title:r,description:n,action:s,...o}){return b.jsxs(Ty,{...o,children:[b.jsxs("div",{className:"grid gap-1",children:[r&&b.jsx(Py,{children:r}),n&&b.jsx(Oy,{children:n})]}),s,b.jsx(Cy,{})]},e)}),b.jsx(ky,{})]})}var ip=["light","dark"],jE="(prefers-color-scheme: dark)",NE=_.createContext(void 0),IE={setTheme:t=>{},themes:[]},$E=()=>{var t;return(t=_.useContext(NE))!=null?t:IE};_.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let u=o==="system",c=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?ip.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(y,v=!1,w=!0)=>{let g=i?i[y]:y,p=v?y+"|| ''":`'${g}'`,m="";return s&&w&&!v&&ip.includes(y)&&(m+=`d.style.colorScheme = '${y}';`),r==="class"?v||g?m+=`c.add(${p})`:m+="null":g&&(m+=`d[s](n,${p})`),m},d=t?`!function(){${c}${f(t)}}()`:n?`!function(){try{${c}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${u})){var t='${jE}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${u?"":"else{"+f(o,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${e}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${h}}catch(t){}}();`;return _.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:d}})});var LE=t=>{switch(t){case"success":return UE;case"info":return zE;case"warning":return FE;case"error":return BE;default:return null}},DE=Array(12).fill(0),ME=({visible:t,className:e})=>O.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},O.createElement("div",{className:"sonner-spinner"},DE.map((r,n)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),UE=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),FE=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),zE=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),BE=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),HE=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),VE=()=>{let[t,e]=O.useState(document.hidden);return O.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},jc=1,WE=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>
115{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...n}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:jc++,o=this.toasts.find(a=>a.id===s),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...t,id:s,title:r}),{...a,...t,id:s,dismissible:i,title:r}):a):this.addToast({title:r,...n,dismissible:i,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let n=t instanceof Promise?t:t(),s=r!==void 0,o,i=n.then(async l=>{if(o=["resolve",l],O.isValidElement(l))s=!1,this.create({id:r,type:"default",message:l});else if(qE(l)&&!l.ok){s=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,c=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:r,type:"error",message:u,description:c})}else if(e.success!==void 0){s=!1;let u=typeof e.success=="function"?await e.success(l):e.success,c=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"success",message:u,description:c})}}).catch(async l=>{if(o=["reject",l],e.error!==void 0){s=!1;let u=typeof e.error=="function"?await e.error(l):e.error,c=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"error",message:u,description:c})}}).finally(()=>{var l;s&&(this.dismiss(r),r=void 0),(l=e.finally)==null||l.call(e)}),a=()=>new Promise((l,u)=>i.then(()=>o[0]==="reject"?u(o[1]):l(o[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||jc++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ke=new WE,KE=(t,e)=>{let r=(e==null?void 0:e.id)||jc++;return Ke.addToast({title:t,...e,id:r}),r},qE=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",GE=KE,QE=()=>Ke.toasts,JE=()=>Ke.getActiveToasts();Object.assign(GE,{success:Ke.success,info:Ke.info,warning:Ke.warning,error:Ke.error,custom:Ke.custom,message:Ke.message,promise:Ke.promise,dismiss:Ke.dismiss,loading:Ke.loading},{getHistory:QE,getToasts:JE});function YE(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}YE(`: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;
115left: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}
115: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%);
115--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%)}
116`);function Ui(t){return t.label!==void 0}var XE=3,ZE="32px",eS="16px",ap=4e3,tS=356,rS=14,nS=20,sS=200;function St(...t){return t.filter(Boolean).join(" ")}function oS(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var iS=t=>{var e,r,n,s,o,i,a,l,u,c,h;let{invert:f,toast:d,unstyled:y,interacting:v,setHeights:w,visibleToasts:g,heights:p,index:m,toasts:x,expanded:E,removeToast:S,defaultRichColors:k,closeButton:P,style:j,cancelButtonStyle:N,actionButtonStyle:z,className:$="",descriptionClassName:V="",duration:I,position:X,gap:H,loadingIcon:q,expandByDefault:C,classNames:R,icons:L,closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:F}=t,[J,Z]=O.useState(null),[we,je]=O.useState(null),[re,zn]=O.useState(!1),[vr,an]=O.useState(!1),[yr,Bn]=O.useState(!1),[wr,mi]=O.useState(!1),[jl,gi]=O.useState(!1),[Nl,to]=O.useState(0),[Hn,Ch]=O.useState(0),ro=O.useRef(d.duration||I||ap),Ph=O.useRef(null),ln=O.useRef(null),Pw=m===0,O
vendor: 1,659 bytes, line 116
116w=m+1<=g,ct=d.type,Vn=d.dismissible!==!1,Rw=d.className||"",Aw=d.descriptionClassName||"",vi=O.useMemo(()=>p.findIndex(W=>W.toastId===d.id)||0,[p,d.id]),jw=O.useMemo(()=>{var W;return(W=d.closeButton)!=null?W:P},[d.closeButton,P]),Oh=O.useMemo(()=>d.duration||I||ap,[d.duration,I]),Il=O.useRef(0),Wn=O.useRef(0),Rh=O.useRef(0),Kn=O.useRef(null),[Nw,Iw]=X.split("-"),Ah=O.useMemo(()=>p.reduce((W,se,ce)=>ce>=vi?W:W+se.height,0),[p,vi]),jh=VE(),$w=d.invert||f,$l=ct==="loading";Wn.current=O.useMemo(()=>vi*H+Ah,[vi,Ah]),O.useEffect(()=>{ro.current=Oh},[Oh]),O.useEffect(()=>{zn(!0)},[]),O.useEffect(()=>{let W=ln.current;if(W){let se=W.getBoundingClientRect().height;return Ch(se),w(ce=>[{toastId:d.id,height:se,position:d.position},...ce]),()=>w(ce=>ce.filter(bt=>bt.toastId!==d.id))}},[w,d.id]),O.useLayoutEffect(()=>{if(!re)return;let W=ln.current,se=W.style.height;W.style.height="auto";let ce=W.getBoundingClientRect().height;W.style.height=se,Ch(ce),w(bt=>bt.find(_t=>_t.toastId===d.id)?bt.map(_t=>_t.toastId===d.id?{..._t,height:ce}:_t):[{toastId:d.id,height:ce,position:d.position},...bt])},[re,d.title,d.description,w,d.id]);let br=O.useCallback(()=>{an(!0),to(Wn.current),w(W=>W.filter(se=>se.toastId!==d.id)),setTimeout(()=>{S(d)},sS)},[d,S,w,Wn]);O.useEffect(()=>{if(d.promise&&ct==="loading"||d.duration===1/0||d.type==="loading")return;let W;return E||v||F&&jh?(()=>{if(Rh.current<Il.current){let se=new Date().getTime()-Il.current;ro.current=ro.current-se}Rh.current=new Date().getTime()})():ro.current!==1/0&&(Il.current=new Date().getTime(),W=setTimeout(()=>{var se;(se=d.onAutoClose)==null||se.call(d,d),br()},ro.current)),()=>clearTimeout(W)}
116,[E,v,d,ct,F,jh,br]),O.useEffect(()=>{d.delete&&br()},[br,d.delete]);function Lw(){var W,se,ce;return L!=null&&L.loading?O.createElement("div",{className:St(R==null?void 0:R.loader,(W=d==null?void 0:d.classNames)==null?void 0:W.loader,"sonner-loader"),"data-visible":ct==="loading"},L.loading):q?O.createElement("div",{className:St(R==null?void 0:R.loader,(se=d==null?void 0:d.classNames)==null?void 0:se.loader,"sonner-loader"),"data-visible":ct==="loading"},q):O.createElement(ME,{className:St(R==null?void 0:R.loader,(ce=d==null?void 0:d.classNames)==null?void 0:ce.loader),visible:ct==="loading"})}return O.createElement("li",{tabIndex:0,ref:ln,className:St($,Rw,R==null?void 0:R.toast,(e=d==null?void 0:d.classNames)==null?void 0:e.toast,R==null?void 0:R.default,R==null?void 0:R[ct],(r=d==null?void 0:d.classNames)==null?void 0:r[ct]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:k,"data-styled":!(d.jsx||d.unstyled||y),"data-mounted":re,"data-promise":!!d.promise,"data-swiped":jl,"data-removed":vr,"data-visible":Ow,"data-y-position":Nw,"data-x-position":Iw,"data-index":m,"data-front":Pw,"data-swiping":yr,"data-dismissible":Vn,"data-type":ct,"data-invert":$w,"data-swipe-out":wr,"data-swipe-direction":we,"data-expanded":!!(E||C&&re),style:{"--index":m,"--toasts-before":m,"--z-index":x.length-m,"--offset":`${vr?Nl:Wn.current}px`,"--initial-height":C?"auto":`${Hn}px`,...j,...d.style},onDragEnd:()=>{Bn(!1),Z(null),Kn.current=null},onPointerDown:W=>{$l||!Vn||(Ph.current=new Date,to(Wn.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(Bn(!0),Kn.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,se,ce,bt;if(wr||!Vn)return;Kn.current=null;let _t=Number(((W=ln.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),_r=Number(((se=ln.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),un=new Date().getTime()-((ce=Ph.current)==null?void 0:ce.getTime()),xt=J==="x"?_t:_r,xr=Math.abs(xt)/un;if(Math.abs(xt)>=nS||xr>.11){to(Wn.current),(bt=d.onDismiss)==null||bt.call(d,d),je(J==="x"?_t>0?"right":"left":_r>0?"down":"up"),br(),mi(!0),gi(!1);return}Bn(!1),Z(null)},onPointerMove:W=>{var se,ce,bt,_t;if(!Kn.current||!Vn||((se=window.getSelection())==null?void 0:se.toString().length)>0)return;let _r=W.clientY-Kn.current.y,un=W.clientX-Kn.current.x,xt=(ce=t.swipeDirections)!=null?ce:oS(X);!J&&(Math.abs(un)>1||Math.abs(_r)>1)&&Z(Math.abs(un)>Math.abs(_r)?"x":"y");let xr={x:0,y:0};J==="y"?(xt.includes("top")||xt.includes("bottom"))&&(xt.includes("top")&&_r<0||xt.includes("bottom")&&_r>0)&&(xr.y=_r):J==="x"&&(xt.includes("left")||xt.includes("right"))&&(xt.includes("left")&&un<0||xt.includes("right")&&un>0)&&(xr.x=un),(Math.abs(xr.x)>0||Math.abs(xr.y)>0)&&gi(!0),(bt=ln.current)==null||bt.style.setProperty("--swipe-amount-x",`${xr.x}px`),(_t=ln.current)==null||_t.style.setProperty("--swipe-amount-y",`${xr.y}px`)}},jw&&!d.jsx?O.createElement("button",{"aria-label":G,"data-disabled":$l,"data-close-button":!0,onClick:$l||!Vn?()=>{}:()=>{var W;br(),(W=d.onDismiss)==null||W.call(d,d)},className:St(R==null?void 0:R.closeButton,(s=d==null?void 0:d.classNames)==null?void 0:s.closeButton)},(o=L==null?void 0:L.close)!=null?o:HE):null,d.jsx||_.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:O.createElement(O.Fragment,null,ct||d.icon||d.promise?O.createElement("div",{"data-icon":"",className:St(R==null?void 0:R.icon,(i=d==null?void 0:d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Lw():null,d.type!=="loading"?d.icon||(L==null?void 0:L[ct])||LE(ct):null):null,O.createElement("div",{"data-content":"",className:St(R==null?void 0:R.content,(a=d==null?void 0:d.classNames)==null?void 0:a.content)},O.createElement("div",{"data-title":"",className:St(R==null?void 0:R.title,(l=d==null?void 0:d.classNames)==null?void 0:l.title)},typeof d.title=="function"?d.title():d.title),d.description?O.createElement("div",{"data-description":"",className:St(V,Aw,R==null?void 0:R.description,(u=d==null?void 0:d.classNames)==null?void 0:u.description)},typeof d.description=="function"?d.description():d.description):null),_.isValidElement(d.cancel)?d.cancel:d.cancel&&Ui(d.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||N,onClick:W=>{var se,ce;Ui(d.cancel)&&Vn&&((ce=(se=d.cancel).onClick)==null||ce.call(se,W),br())},className:St(R==null?void 0:R.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,_.isValidElement(d.action)?d.action:d.action&&Ui(d.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||z,onClick:W=>{var se,ce;Ui(d.action)&&((ce=(se=d.action).onClick)==null||ce.call(se,W),!W.defaultPrevented&&br())},className:St(R==null?void 0:R.actionButton,(h=d==null?void 0:d.classNames)==null?void 0:h.actionButton)},d.action.label):null))};function lp(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function aS(t,e){let r={};return[t,e].forEach((n,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",a=o?eS:ZE;function l(u){["top","right","bottom","left"].forEach(c=>{r[`${i}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${i}-${u}`]=a:r[`${i}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):l(a)}),r}var lS=_.forwardRef(function(t,e){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:h,duration:f,style:d,visibleToasts:y=XE,toastOptions:v,dir:w=lp(),gap:g=rS,loadingIcon:p,icons:m,containerAriaLabel:x="Notifications",pauseWhenPageIsHidden:E}=t,[S,k]=O.useState([]),P=O.useMemo(()=>Array.from(new Set([n].concat(S.filter(F=>F.position).map(F=>F.position)))),[S,n]),[j,N]=O.useState([]),[z,$]=O.useState(!1),[V,I]=O.useState(!1),[X,H]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
116k":"light"),q=O.useRef(null),C=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=O.useRef(null),L=O.useRef(!1),G=O.useCallback(F=>{k(J=>{var Z;return(Z=J.find(we=>we.id===F.id))!=null&&Z.delete||Ke.dismiss(F.id),J.filter(({id:we})=>we!==F.id)})},[]);return O.useEffect(()=>Ke.subscribe(F=>{if(F.dismiss){k(J=>J.map(Z=>Z.id===F.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{Av.flushSync(()=>{k(J=>{let Z=J.findIndex(we=>we.id===F.id);return Z!==-1?[...J.slice(0,Z),{...J[Z],...F},...J.slice(Z+1)]:[F,...J]})})})}),[]),O.useEffect(()=>{if(c!=="system"){H(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:J})=>{H(J?"dark":"light")})}catch{F.addListener(({matches:Z})=>{try{H(Z?"dark":"light")}catch(we){console.error(we)}})}},[c]),O.useEffect(()=>{S.length<=1&&$(!1)},[S]),O.useEffect(()=>{let F=J=>{var Z,we;s.every(je=>J[je]||J.code===je)&&($(!0),(Z=q.current)==null||Z.focus()),J.code==="Escape"&&(document.activeElement===q.current||(we=q.current)!=null&&we.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[s]),O.useEffect(()=>{if(q.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,L.current=!1)}},[q.current]),O.createElement("section",{ref:e,"aria-label":`${x} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((F,J)=>{var Z;let[we,je]=F.split("-");return S.length?O.createElement("ol",{key:F,dir:w==="auto"?lp():w,tabIndex:-1,ref:q,className:a,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":we,"data-lifted":z&&S.length>1&&!o,"data-x-position":je,style:{"--front-toast-height":`${((Z=j[0])==null?void 0:Z.height)||0}px`,"--width":`${tS}px`,"--gap":`${g}px`,...d,...aS(l,u)},onBlur:re=>{L.current&&!re.currentTarget.contains(re.relatedTarget)&&(L.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||L.current||(L.current=!0,R.current=re.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{V||$(!1)},onDragEnd:()=>$(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},S.filter(re=>!re.position&&J===0||re.position===F).map((re,zn)=>{var vr,an;return O.createElement(iS,{key:re.id,icons:m,index:zn,toast:re,defaultRichColors:h,duration:(vr=v==null?void 0:v.duration)!=null?vr:f,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:r,visibleToasts:y,closeButton:(an=v==null?void 0:v.closeButton)!=null?an:i,interacting:V,position:F,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:G,toasts:S.filter(yr=>yr.position==re.position),heights:j.filter(yr=>yr.position==re.position),setHeights:N,expandByDefault:o,gap:g,loadingIcon:p,expanded:z,pauseWhenPageIsHidden:E,swipeDirections:t.swipeDirections})})):null}))});const uS=({...t})=>{const{theme:e="system"}=$E();return b.jsx(lS,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})},cS=["top","right","bottom","left"],Zr=Math.min,tt=Math.max,za=Math.round,Fi=Math.floor,Yt=t=>({x:t,y:t}),dS={left:"right",right:"left",bottom:"top",top:"bottom"},hS={start:"end",end:"start"};function Nc(t,e,r){return tt(t,Zr(e,r))}function pr(t,e){return typeof t=="function"?t(e):t}function mr(t){return t.split("-")[0]}function Js(t){return t.split("-")[1]}function nh(t){return t==="x"?"y":"x"}function sh(t){return t==="y"?"height":"width"}const fS=new Set(["top","bottom"]);function Gt(t){return fS.has(mr(t))?"y":"x"}function oh(t){return nh(Gt(t))}function pS(t,e,r){r===void 0&&(r=!1);const n=Js(t),s=oh(t),o=sh(s);let i=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(i=Ba(i)),[i,Ba(i)]}function mS(t){const e=Ba(t);return[Ic(t),e,Ic(e)]}function Ic(t){return t.replace(/start|end/g,e=>hS[e])}const up=["left","right"],cp=["right","left"],gS=["top","bottom"],vS=["bottom","top"];function yS(t,e,r){switch(t){case"top":case"bottom":return r?e?cp:up:e?up:cp;case"left":case"right":return e?gS:vS;default:return[]}}function wS(t,e,r,n){const s=Js(t);let o=yS(mr(t),r==="start",n);return s&&(o=o.map(i=>i+"-"+s),e&&(o=o.concat(o.map(Ic)))),o}function Ba(t){return t.replace(/left|right|bottom|top/g,e=>dS[e])}function bS(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ry(t){return typeof t!="number"?bS(t):{top:t,right:t,bottom:t,left:t}}function Ha(t){const{x:e,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:e,right:e+n,bottom:r+s,x:e,y:r}}function dp(t,e,r){let{reference:n,floating:s}=t;const o=Gt(e),i=oh(e),a=sh(i),l=mr(e),u=o==="y",c=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2,f=n[a]/2-s[a]/2;let d;switch(l){case"top":d={x:c,y:n.y-s.height};break;case"bottom":d={x:c,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:h};break;case"left":d={x:n.x-s.width,y:h};break;default:d={x:n.x,y:n.y}}switch(Js(e)){case"start":d[i]-=f*(r&&u?-1:1);break;case"end":d[i]+=f*(r&&u?-1:1);break}return d}const _S=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:o=[],platform:i}
vendor: 9,931 bytes, line 116
116=r,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:s}),{x:c,y:h}=dp(u,n,l),f=n,d={},y=0;for(let v=0;v<a.length;v++){const{name:w,fn:g}=a[v],{x:p,y:m,data:x,reset:E}=await g({x:c,y:h,initialPlacement:n,placement:f,strategy:s,middlewareData:d,rects:u,platform:i,elements:{reference:t,floating:e}});c=p??c,h=m??h,d={...d,[w]:{...d[w],...x}},E&&y<=50&&(y++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:s}):E.rects),{x:c,y:h}=dp(u,f,l)),v=-1)}return{x:c,y:h,placement:f,strategy:s,middlewareData:d}};async function Jo(t,e){var r;e===void 0&&(e={});const{x:n,y:s,platform:o,rects:i,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=pr(e,t),y=Ry(d),w=a[f?h==="floating"?"reference":"floating":h],g=Ha(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(w)))==null||r?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),p=h==="floating"?{x:n,y:s,width:i.floating.width,height:i.floating.height}:i.reference,m=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),x=await(o.isElement==null?void 0:o.isElement(m))?await(o.getScale==null?void 0:o.getScale(m))||{x:1,y:1}:{x:1,y:1},E=Ha(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:p,offsetParent:m,strategy:l}):p);return{top:(g.top-E.top+y.top)/x.y,bottom:(E.bottom-g.bottom+y.bottom)/x.y,left:(g.left-E.left+y.left)/x.x,right:(E.right-g.right+y.right)/x.x}}const xS=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=e,{element:u,padding:c=0}=pr(t,e)||{};if(u==null)return{};const h=Ry(c),f={x:r,y:n},d=oh(s),y=sh(d),v=await i.getDimensions(u),w=d==="y",g=w?"top":"left",p=w?"bottom":"right",m=w?"clientHeight":"clientWidth",x=o.reference[y]+o.reference[d]-f[d]-o.floating[y],E=f[d]-o.reference[d],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=S?S[m]:0;(!k||!await(i.isElement==null?void 0:i.isElement(S)))&&(k=a.floating[m]||o.floating[y]);const P=x/2-E/2,j=k/2-v[y]/2-1,N=Zr(h[g],j),z=Zr(h[p],j),$=N,V=k-v[y]-z,I=k/2-v[y]/2+P,X=Nc($,I,V),H=!l.arrow&&Js(s)!=null&&I!==X&&o.reference[y]/2-(I<$?N:z)-v[y]/2<0,q=H?I<$?I-$:I-V:0;return{[d]:f[d]+q,data:{[d]:X,centerOffset:I-X-q,...H&&{alignmentOffset:q}},reset:H}}}),ES=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...w}=pr(t,e);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const g=mr(s),p=Gt(a),m=mr(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=f||(m||!v?[Ba(a)]:mS(a)),S=y!=="none";!f&&S&&E.push(...wS(a,v,y,x));const k=[a,...E],P=await Jo(e,w),j=[];let N=((n=o.flip)==null?void 0:n.overflows)||[];if(c&&j.push(P[g]),h){const I=pS(s,i,x);j.push(P[I[0]],P[I[1]])}if(N=[...N,{placement:s,overflows:j}],!j.every(I=>I<=0)){var z,$;const I=(((z=o.flip)==null?void 0:z.index)||0)+1,X=k[I];if(X&&(!(h==="alignment"?p!==Gt(X):!1)||N.every(C=>C.overflows[0]>0&&Gt(C.placement)===p)))return{data:{index:I,overflows:N},reset:{placement:X}};let H=($=N.filter(q=>q.overflows[0]<=0).sort((q,C)=>q.overflows[1]-C.overflows[1])[0])==null?void 0:$.placement;if(!H)switch(d){case"bestFit":{var V;const q=(V=N.filter(C=>{if(S){const R=Gt(C.placement);return R===p||R==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,L)=>R+L,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:V[0];q&&(H=q);break}case"initialPlacement":H=a;break}if(s!==H)return{reset:{placement:H}}}return{}}}};function hp(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function fp(t){return cS.some(e=>t[e]>=0)}const SS=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...s}=pr(t,e);switch(n){case"referenceHidden":{const o=await Jo(e,{...s,elementContext:"reference"}),i=hp(o,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:fp(i)}}}case"escaped":{const o=await Jo(e,{...s,altBoundary:!0}),i=hp(o,r.floating);return{data:{escapedOffsets:i,escaped:fp(i)}}}default:return{}}}}},Ay=new Set(["left","top"]);async function kS(t,e){const{placement:r,platform:n,elements:s}=t,o=await(n.isRTL==null?void 0:n.isRTL(s.floating)),i=mr(r),a=Js(r),l=Gt(r)==="y",u=Ay.has(i)?-1:1,c=o&&l?-1:1,h=pr(e,t);let{mainAxis:f,crossAxis:d,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof y=="number"&&(d=a==="end"?y*-1:y),l?{x:d*c,y:f*u}:{x:f*u,y:d*c}}const TS=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:s,y:o,placement:i,middlewareData:a}=e,l=await kS(e,t);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},CS=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:g,y:p}=w;return{x:g,y:p}}},...l}=pr(t,e),u={x:r,y:n},c=await Jo(e,l),h=Gt(mr(s)),f=nh(h);let d=u[f],y=u[h];if(o){const w=f==="y"?"top":"left",g=f==="y"?"bottom":"right",p=d+c[w],m=d-c[g];d=Nc(p,d,m)}if(i){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",p=y+c[w],m=y-c[g];y=Nc(p,y,m)}const v=a.fn({...e,[f]:d,[h]:y});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[f]:o,[h]:i}}}}}},PS=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:s,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=pr(t,e),c={x:r,y:n},h=Gt(s),f=nh(h);let d=c[f],y=c[h];const v=pr(a,e),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const m=f==="y"?"height":"width",x=o.reference[f]-o.floating[m]+w.mainAxis,E=o.reference[f]+o.reference[m]-w.mainAxis;d<x?d=x:d>E&&(d=E)}if(u){var g,p;const m=f==="y"?"width":"height",x=Ay.has(mr(s)),E=o.reference[h]-o.floating[m]+(x&&((g=i.offset)==null?void 0:g[h])||0)+(x?0:w.crossAxis),S=o.reference[h]+o.reference[m]+(x?0:((p=i.offset)==null?void 0:p[h])||0)-(x?w.crossAxis:0);y<E?y=E:y>S&&(y=S)}return{[f]:d,[h]:y}}}},OS=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:s,rects:o,platform:i,elements:a}=e,{apply:l=()=>{},...u}=pr(t,e),c=await Jo(e,u),h=mr(s),f=Js(s),d=Gt(s)==="y",{width:y,height:v}=o.floating;let w,g;h==="top"||h==="bottom"?(w=h,g=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=h,w=f==="end"?"top":"bottom");const p=v-c.top-c.bottom,m=y-c.left-c.right,x=Zr(v-c[w],p),E=Zr(y-c[g],m),S=!e.middlewareData.shift;let k=x,P=E;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(P=m),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(k=p),S&&!f){const N=tt(c.left,0),z=tt(c.right,0),$=tt(c.top,0),V=tt(c.bottom,0);d?P=y-2*(N!==0||z!==0?N+z:tt(c.left,c.right)):k=v-2*($!==0||V!==0?$+V:tt(c.top,c.bottom))}await l({...e,availableWidth:P,availableHeight:k});const j=await i.getDimensions(a.floating);return y!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}};function bl(){return typeof window<"u"}function Ys(t){return jy(t)?(t.nodeName||"").toLowerCase():"#document"}function it(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Zt(t){var e;return(e=(jy(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function jy(t){return bl()?t instanceof Node||t instanceof it(t).Node:!1}function Ut(t){return bl()?t instanceof Element||t instanceof it(t).Element:!1}function Xt(t){return bl()?t instanceof HTMLElement||t instanceof it(t).HTMLElement:!1}function pp(t){return!bl()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof it(t).ShadowRoot}const RS=new Set(["inline","contents"]);function fi(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=Ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!RS.has(s)}const AS=new Set(["table","td","th"]);function jS(t){return AS.has(Ys(t))}const NS=[":popover-open",":modal"];function _l(t){return NS.some(e=>{try{return t.matches(e)}catch{return!1}})}const IS=["transform","translate","scale","rotate","perspective"],$S=["transform","translate","scale","rotate","perspective","filter"],LS=["paint","layout","strict","content"];function ih(t){const e=ah(),r=Ut(t)?Ft(t):t;return IS.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||$S.some(n=>(r.willChange||"").includes(n))||LS.some(n=>(r.contain||"").includes(n))}function DS(t){let e=en(t);for(;Xt(e)&&!Hs(e);){if(ih(e))return e;if(_l(e))return null;e=en(e)}return null}function ah(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const MS=new Set(["html","body","#document"]);function Hs(t){return MS.has(Ys(t))}function Ft(t){return it(t).getComputedStyle(t)}function xl(t){return Ut(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function en(t){if(Ys(t)==="html")return t;const e=t.assignedSlot||t.parentNode||pp(t)&&t.host||Zt(t);return pp(e)?e.host:e}function Ny(t){const e=en(t);return Hs(e)?t.ownerDocument?t.ownerDocument.body:t.body:Xt(e)&&fi(e)?e:Ny(e)}function Yo(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=Ny(t),o=s===((n=t.ownerDocument)==null?void 0:n.body),i=it(s);if(o){const a=$c(i);
vendor: 5,067 bytes, line 116
116return e.concat(i,i.visualViewport||[],fi(s)?s:[],a&&r?Yo(a):[])}return e.concat(s,Yo(s,[],r))}function $c(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Iy(t){const e=Ft(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=Xt(t),o=s?t.offsetWidth:r,i=s?t.offsetHeight:n,a=za(r)!==o||za(n)!==i;return a&&(r=o,n=i),{width:r,height:n,$:a}}function lh(t){return Ut(t)?t:t.contextElement}function ks(t){const e=lh(t);if(!Xt(e))return Yt(1);const r=e.getBoundingClientRect(),{width:n,height:s,$:o}=Iy(e);let i=(o?za(r.width):r.width)/n,a=(o?za(r.height):r.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const US=Yt(0);function $y(t){const e=it(t);return!ah()||!e.visualViewport?US:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function FS(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==it(t)?!1:e}function Dn(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),o=lh(t);let i=Yt(1);e&&(n?Ut(n)&&(i=ks(n)):i=ks(t));const a=FS(o,r,n)?$y(o):Yt(0);let l=(s.left+a.x)/i.x,u=(s.top+a.y)/i.y,c=s.width/i.x,h=s.height/i.y;if(o){const f=it(o),d=n&&Ut(n)?it(n):n;let y=f,v=$c(y);for(;v&&n&&d!==y;){const w=ks(v),g=v.getBoundingClientRect(),p=Ft(v),m=g.left+(v.clientLeft+parseFloat(p.paddingLeft))*w.x,x=g.top+(v.clientTop+parseFloat(p.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,h*=w.y,l+=m,u+=x,y=it(v),v=$c(y)}}return Ha({width:c,height:h,x:l,y:u})}function uh(t,e){const r=xl(t).scrollLeft;return e?e.left+r:Dn(Zt(t)).left+r}function Ly(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),s=n.left+e.scrollLeft-(r?0:uh(t,n)),o=n.top+e.scrollTop;return{x:s,y:o}}function zS(t){let{elements:e,rect:r,offsetParent:n,strategy:s}=t;const o=s==="fixed",i=Zt(n),a=e?_l(e.floating):!1;if(n===i||a&&o)return r;let l={scrollLeft:0,scrollTop:0},u=Yt(1);const c=Yt(0),h=Xt(n);if((h||!h&&!o)&&((Ys(n)!=="body"||fi(i))&&(l=xl(n)),Xt(n))){const d=Dn(n);u=ks(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}const f=i&&!h&&!o?Ly(i,l,!0):Yt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:r.y*u.y-l.scrollTop*u.y+c.y+f.y}}function BS(t){return Array.from(t.getClientRects())}function HS(t){const e=Zt(t),r=xl(t),n=t.ownerDocument.body,s=tt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=tt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+uh(t);const a=-r.scrollTop;return Ft(n).direction==="rtl"&&(i+=tt(e.clientWidth,n.clientWidth)-s),{width:s,height:o,x:i,y:a}}function VS(t,e){const r=it(t),n=Zt(t),s=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const u=ah();(!u||u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}const WS=new Set(["absolute","fixed"]);function KS(t,e){const r=Dn(t,!0,e==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,o=Xt(t)?ks(t):Yt(1),i=t.clientWidth*o.x,a=t.clientHeight*o.y,l=s*o.x,u=n*o.y;return{width:i,height:a,x:l,y:u}}function mp(t,e,r){let n;if(e==="viewport")n=VS(t,r);else if(e==="document")n=HS(Zt(t));else if(Ut(e))n=KS(e,r);else{const s=$y(t);n={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Ha(n)}function Dy(t,e){const r=en(t);return r===e||!Ut(r)||Hs(r)?!1:Ft(r).position==="fixed"||Dy(r,e)}function qS(t,e){const r=e.get(t);if(r)return r;let n=Yo(t,[],!1).filter(a=>Ut(a)&&Ys(a)!=="body"),s=null;const o=Ft(t).position==="fixed";let i=o?en(t):t;for(;Ut(i)&&!Hs(i);){const a=Ft(i),l=ih(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&WS.has(s.position)||fi(i)&&!l&&Dy(t,i))?n=n.filter(c=>c!==i):s=a,i=en(i)}return e.set(t,n),n}function GS(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const i=[...r==="clippingAncestors"?_l(e)?[]:qS(e,this._c):[].concat(r),n],a=i[0],l=i.reduce((u,c)=>{const h=mp(e,c,s);return u.top=tt(h.top,u.top),u.right=Zr(h.right,u.right),u.bottom=Zr(h.bottom,u.bottom),u.left=tt(h.left,u.left),u},mp(e,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function QS(t){const{width:e,height:r}=Iy(t);return{width:e,height:r}}function JS(t,e,r){const n=Xt(e),s=Zt(e),o=r==="fixed",i=Dn(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const l=Yt(0);function u(){l.x=uh(s)}if(n||!n&&!o)if((Ys(e)!=="body"||fi(s))&&(a=xl(e)),n){const d=Dn(e,!0,o,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else s&&u();o&&!n&&s&&u();const c=s&&!n&&!o?Ly(s,a):Yt(0),h=i.left+a.scrollLeft-l.x-c.x,f=i.top+a.scrollTop-l.y-c.y;return{x:h,y:f,width:i.width,height:i.height}}function vu(t){return Ft(t).position==="static"}function gp(t,e){if(!Xt(t)||Ft(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Zt(t)===r&&(r=r.ownerDocument.body),r}function My(t,e){const r=it(t);if(_l(t))return r;if(!Xt(t)){let s=en(t);for(;s&&!Hs(s);){if(Ut(s)&&!vu(s))return s;s=en(s)}return r}let n=gp(t,e);for(;n&&jS(n)&&vu(n);)n=gp(n,e);return n&&Hs(n)&&vu(n)&&!ih(n)?r:n||DS(t)||r}const YS=async function(t){const e=this.getOffsetParent||My,r=this.getDimensions,n=await r(t.floating);
vendor: 5,646 bytes, line 116
116return{reference:JS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function XS(t){return Ft(t).direction==="rtl"}const ZS={convertOffsetParentRelativeRectToViewportRelativeRect:zS,getDocumentElement:Zt,getClippingRect:GS,getOffsetParent:My,getElementRects:YS,getClientRects:BS,getDimensions:QS,getScale:ks,isElement:Ut,isRTL:XS};function Uy(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ek(t,e){let r=null,n;const s=Zt(t);function o(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=t.getBoundingClientRect(),{left:c,top:h,width:f,height:d}=u;if(a||e(),!f||!d)return;const y=Fi(h),v=Fi(s.clientWidth-(c+f)),w=Fi(s.clientHeight-(h+d)),g=Fi(c),m={rootMargin:-y+"px "+-v+"px "+-w+"px "+-g+"px",threshold:tt(0,Zr(1,l))||1};let x=!0;function E(S){const k=S[0].intersectionRatio;if(k!==l){if(!x)return i();k?i(!1,k):n=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Uy(u,t.getBoundingClientRect())&&i(),x=!1}try{r=new IntersectionObserver(E,{...m,root:s.ownerDocument})}catch{r=new IntersectionObserver(E,m)}r.observe(t)}return i(!0),o}function tk(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=lh(t),c=s||o?[...u?Yo(u):[],...Yo(e)]:[];c.forEach(g=>{s&&g.addEventListener("scroll",r,{passive:!0}),o&&g.addEventListener("resize",r)});const h=u&&a?ek(u,r):null;let f=-1,d=null;i&&(d=new ResizeObserver(g=>{let[p]=g;p&&p.target===u&&d&&(d.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var m;(m=d)==null||m.observe(e)})),r()}),u&&!l&&d.observe(u),d.observe(e));let y,v=l?Dn(t):null;l&&w();function w(){const g=Dn(t);v&&!Uy(v,g)&&r(),v=g,y=requestAnimationFrame(w)}return r(),()=>{var g;c.forEach(p=>{s&&p.removeEventListener("scroll",r),o&&p.removeEventListener("resize",r)}),h==null||h(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(y)}}const rk=TS,nk=CS,sk=ES,ok=OS,ik=SS,vp=xS,ak=PS,lk=(t,e,r)=>{const n=new Map,s={platform:ZS,...r},o={...s.platform,_c:n};return _S(t,e,{...s,platform:o})};var uk=typeof document<"u",ck=function(){},pa=uk?_.useLayoutEffect:ck;function Va(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Va(t[n],e[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){const o=s[n];if(!(o==="_owner"&&t.$$typeof)&&!Va(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function Fy(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function yp(t,e){const r=Fy(t);return Math.round(e*r)/r}function yu(t){const e=_.useRef(t);return pa(()=>{e.current=t}),e}function dk(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=t,[c,h]=_.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,d]=_.useState(n);Va(f,n)||d(n);const[y,v]=_.useState(null),[w,g]=_.useState(null),p=_.useCallback(C=>{C!==S.current&&(S.current=C,v(C))},[]),m=_.useCallback(C=>{C!==k.current&&(k.current=C,g(C))},[]),x=o||y,E=i||w,S=_.useRef(null),k=_.useRef(null),P=_.useRef(c),j=l!=null,N=yu(l),z=yu(s),$=yu(u),V=_.useCallback(()=>{if(!S.current||!k.current)return;const C={placement:e,strategy:r,middleware:f};z.current&&(C.platform=z.current),lk(S.current,k.current,C).then(R=>{const L={...R,isPositioned:$.current!==!1};I.current&&!Va(P.current,L)&&(P.current=L,di.flushSync(()=>{h(L)}))})},[f,e,r,z,$]);pa(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,h(C=>({...C,isPositioned:!1})))},[u]);const I=_.useRef(!1);pa(()=>(I.current=!0,()=>{I.current=!1}),[]),pa(()=>{if(x&&(S.current=x),E&&(k.current=E),x&&E){if(N.current)return N.current(x,E,V);V()}},[x,E,V,N,j]);const X=_.useMemo(()=>({reference:S,floating:k,setReference:p,setFloating:m}),[p,m]),H=_.useMemo(()=>({reference:x,floating:E}),[x,E]),q=_.useMemo(()=>{const C={position:r,left:0,top:0};if(!H.floating)return C;const R=yp(H.floating,c.x),L=yp(H.floating,c.y);return a?{...C,transform:"translate("+R+"px, "+L+"px)",...Fy(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:R,top:L}},[r,a,H.floating,c.x,c.y]);return _.useMemo(()=>({...c,update:V,refs:X,elements:H,floatingStyles:q}),[c,V,X,H,q])}const hk=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?vp({element:n.current,padding:s}).fn(r):{}:n?vp({element:n,padding:s}).fn(r):{}}}},fk=(t,e)=>({...rk(t),options:[t,e]}),pk=(t,e)=>({...nk(t),options:[t,e]}),mk=(t,e)=>({...ak(t),options:[t,e]}),gk=(t,e)=>({...sk(t),options:[t,e]}),vk=(t,e)=>({...ok(t),options:[t,e]}),yk=(t,e)=>({...ik(t),options:[t,e]}),wk=(t,e)=>({...hk(t),options:[t,e]});var bk="Arrow",zy=_.forwardRef((t,e)=>{const{children:r,width:n=10,height:s=5,...o}=t;return b.jsx(Ze.svg,{...o,ref:e,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});zy.displayName=bk;var _k=zy;function xk(t){const[e,r]=_.useState(void 0);return Xr(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>
vendor: 10,719 bytes, line 116
116{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=t.offsetWidth,a=t.offsetHeight;r({width:i,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var By="Popper",[Hy,Vy]=vl(By),[rA,Wy]=Hy(By),Ky="PopperAnchor",qy=_.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...s}=t,o=Wy(Ky,r),i=_.useRef(null),a=Mt(e,i);return _.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:b.jsx(Ze.div,{...s,ref:a})});qy.displayName=Ky;var ch="PopperContent",[Ek,Sk]=Hy(ch),Gy=_.forwardRef((t,e)=>{var re,zn,vr,an,yr,Bn;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:d="optimized",onPlaced:y,...v}=t,w=Wy(ch,r),[g,p]=_.useState(null),m=Mt(e,wr=>p(wr)),[x,E]=_.useState(null),S=xk(x),k=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,j=n+(o!=="center"?"-"+o:""),N=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},z=Array.isArray(u)?u:[u],$=z.length>0,V={padding:N,boundary:z.filter(Tk),altBoundary:$},{refs:I,floatingStyles:X,placement:H,isPositioned:q,middlewareData:C}=dk({strategy:"fixed",placement:j,whileElementsMounted:(...wr)=>tk(...wr,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[fk({mainAxis:s+P,alignmentAxis:i}),l&&pk({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?mk():void 0,...V}),l&&gk({...V}),vk({...V,apply:({elements:wr,rects:mi,availableWidth:jl,availableHeight:gi})=>{const{width:Nl,height:to}=mi.reference,Hn=wr.floating.style;Hn.setProperty("--radix-popper-available-width",`${jl}px`),Hn.setProperty("--radix-popper-available-height",`${gi}px`),Hn.setProperty("--radix-popper-anchor-width",`${Nl}px`),Hn.setProperty("--radix-popper-anchor-height",`${to}px`)}}),x&&wk({element:x,padding:a}),Ck({arrowWidth:k,arrowHeight:P}),f&&yk({strategy:"referenceHidden",...V})]}),[R,L]=Yy(H),G=Yr(y);Xr(()=>{q&&(G==null||G())},[q,G]);const F=(re=C.arrow)==null?void 0:re.x,J=(zn=C.arrow)==null?void 0:zn.y,Z=((vr=C.arrow)==null?void 0:vr.centerOffset)!==0,[we,je]=_.useState();return Xr(()=>{g&&je(window.getComputedStyle(g).zIndex)},[g]),b.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,"--radix-popper-transform-origin":[(an=C.transformOrigin)==null?void 0:an.x,(yr=C.transformOrigin)==null?void 0:yr.y].join(" "),...((Bn=C.hide)==null?void 0:Bn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:b.jsx(Ek,{scope:r,placedSide:R,onArrowChange:E,arrowX:F,arrowY:J,shouldHideArrow:Z,children:b.jsx(Ze.div,{"data-side":R,"data-align":L,...v,ref:m,style:{...v.style,animation:q?void 0:"none"}})})})});Gy.displayName=ch;var Qy="PopperArrow",kk={top:"bottom",right:"left",bottom:"top",left:"right"},Jy=_.forwardRef(function(e,r){const{__scopePopper:n,...s}=e,o=Sk(Qy,n),i=kk[o.placedSide];return b.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:b.jsx(_k,{...s,ref:r,style:{...s.style,display:"block"}})})});Jy.displayName=Qy;function Tk(t){return t!==null}var Ck=t=>({name:"transformOrigin",options:t,fn(e){var w,g,p;const{placement:r,rects:n,middlewareData:s}=e,i=((w=s.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:t.arrowWidth,l=i?0:t.arrowHeight,[u,c]=Yy(r),h={start:"0%",center:"50%",end:"100%"}[c],f=(((g=s.arrow)==null?void 0:g.x)??0)+a/2,d=(((p=s.arrow)==null?void 0:p.y)??0)+l/2;let y="",v="";return u==="bottom"?(y=i?h:`${f}px`,v=`${-l}px`):u==="top"?(y=i?h:`${f}px`,v=`${n.floating.height+l}px`):u==="right"?(y=`${-l}px`,v=i?h:`${d}px`):u==="left"&&(y=`${n.floating.width+l}px`,v=i?h:`${d}px`),{data:{x:y,y:v}}}});function Yy(t){const[e,r="center"]=t.split("-");return[e,r]}var Pk=qy,Ok=Gy,Rk=Jy,[El,nA]=vl("Tooltip",[Vy]),dh=Vy(),Xy="TooltipProvider",Ak=700,wp="tooltip.open",[jk,Zy]=El(Xy),e0=t=>{const{__scopeTooltip:e,delayDuration:r=Ak,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:o}=t,i=_.useRef(!0),a=_.useRef(!1),l=_.useRef(0);return _.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),b.jsx(jk,{scope:e,isOpenDelayedRef:i,delayDuration:r,onOpen:_.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:_.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:_.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:o})};e0.displayName=Xy;var t0="Tooltip",[sA,Sl]=El(t0),Lc="TooltipTrigger",Nk=_.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=Sl(Lc,r),o=Zy(Lc,r),i=dh(r),a=_.useRef(null),l=Mt(e,a,s.onTriggerChange),u=_.useRef(!1),c=_.useRef(!1),h=_.useCallback(()=>u.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),b.jsx(Pk,{asChild:!0,...i,children:b.jsx(Ze.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:l,onPointerMove:Se(t.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),c.current=!0)}),onPointerLeave:Se(t.onPointerLeave,()=>{s.onTriggerLeave(),c.current=!1}),onPointerDown:Se(t.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Se(t.onFocus,()=>{u.current||s.onOpen()}),onBlur:Se(t.onBlur,s.onClose),onClick:Se(t.onClick,s.onClose)})})});Nk.displayName=Lc;var Ik="TooltipPortal",[oA,$k]=El(Ik,{forceMount:void 0}),Vs="TooltipContent",r0=_.forwardRef((t,e)=>{const r=$k(Vs,t.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...o}=t,i=Sl(Vs,t.__scopeTooltip);return b.jsx(Xd,{present:n||i.open,children:i.disableHoverableContent?b.jsx(n0,{side:s,...o,ref:e}):b.jsx(Lk,{side:s,...o,ref:e})})}),Lk=_.forwardRef((t,e)=>{const r=Sl(Vs,t.__scopeTooltip),n=Zy(Vs,t.__scopeTooltip),s=_.useRef(null),o=Mt(e,s),[i,a]=_.useState(null),{trigger:l,onClose:u}=r,c=s.current,{onPointerInTransitChange:h}=n,f=_.useCallback(()=>{a(null),h(!1)},[h]),d=_.useCallback((y,v)=>{const w=y.currentTarget,g={x:y.clientX,y:y.clientY},p=zk(g,w.getBoundingClientRect()),m=Bk(g,p),x=Hk(v.getBoundingClientRect()),E=Wk([...m,...x]);a(E),h(!0)},[h]);return _.useEffect(()=>()=>f(),[f]),_.useEffect(()=>{if(l&&c){const y=w=>d(w,c),v=w=>d(w,l);return l.addEventListener("pointerleave",y),c.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",y),c.removeEventListener("pointerleave",v)}}},[l,c,d,f]),_.useEffect(()=>{if(i){const y=v=>{const w=v.target,g={x:v.clientX,y:v.clientY},p=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),m=!Vk(g,i);p?f():m&&(f(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,c,i,u,f]),b.jsx(n0,{...t,ref:o})}),[Dk,Mk]=El(t0,{isInside:!1}),Uk=Qx("TooltipContent"),n0=_.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=t,l=Sl(Vs,r),u=dh(r),{onClose:c}=l;return _.useEffect(()=>(document.addEventListener(wp,c),()=>document.removeEventListener(wp,c)),[c]),_.useEffect(()=>{if(l.trigger){const h=f=>{const d=f.target;d!=null&&d.contains(l.trigger)&&c()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,c]),b.jsx(Yd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:b.jsxs(Ok,{"data-state":l.stateAttribute,...u,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(Uk,{children:n}),b.jsx(Dk,{scope:r,isInside:!0,children:b.jsx(b1,{id:l.contentId,role:"tooltip",children:s||n})})]})})});r0.displayName=Vs;var s0="TooltipArrow",Fk=_.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=dh(r);return Mk(s0,r).isInside?null:b.jsx(Rk,{...s,...n,ref:e})});Fk.displayName=s0;function zk(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(r,n,s,o)){case o:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Bk(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function Hk(t){const{top:e,right:r,bottom:n,left:s}=t;return[{x:s,y:e},{x:r,y:e},{x:r,y:n},{x:s,y:n}]}function Vk(t,e){const{x:r,y:n}=t;let s=!1;for(let o=0,i=e.length-1;o<e.length;i=o++){const a=e[o],l=e[i],u=a.x,c=a.y,h=l.x,f=l.y;c>n!=f>n&&r<(h-u)*(n-c)/(f-c)+u&&(s=!s)}return s}function Wk(t){const e=t.slice();return e.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Kk(e)}function Kk(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const s=t[n];for(;e.length>=2;){const o=e[e.length-1],i=e[e.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))e.pop();else break}e.push(s)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const s=t[n];for(;r.length>=2;){const o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))r.pop();else break}r.push(s)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var qk=e0,o0=r0;const Gk=qk,Qk=_.forwardRef(({className:t,sideOffset:e=4,...r},n)=>b.jsx(o0,{ref:n,sideOffset:e,className:sn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
116de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));Qk.displayName=o0.displayName;var kl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Tl=typeof window>"u"||"Deno"in globalThis;function Pt(){}function Jk(t,e){return typeof t=="function"?t(e):t}function Yk(t){return typeof t=="number"&&t>=0&&t!==1/0}function Xk(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Dc(t,e){return typeof t=="function"?t(e):t}function Zk(t,e){return typeof t=="function"?t(e):t}function bp(t,e){const{type:r="all",exact:n,fetchStatus:s,predicate:o,queryKey:i,stale:a}=t;if(i){if(n){if(e.queryHash!==hh(i,e.options))return!1}else if(!Zo(e.queryKey,i))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||o&&!o(e))}function _p(t,e){const{exact:r,status:n,predicate:s,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(r){if(Xo(e.options.mutationKey)!==Xo(o))return!1}else if(!Zo(e.options.mutationKey,o))return!1}return!(n&&e.state.status!==n||s&&!s(e))}function hh(t,e){return((e==null?void 0:e.queryKeyHashFn)||Xo)(t)}function Xo(t){return JSON.stringify(t,(e,r)=>Mc(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function Zo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>Zo(t[r],e[r])):!1}function i0(t,e){if(t===e)return t;const r=xp(t)&&xp(e);if(r||Mc(t)&&Mc(e)){const n=r?t:Object.keys(t),s=n.length,o=r?e:Object.keys(e),i=o.length,a=r?[]:{},l=new Set(n);let u=0;for(let c=0;c<i;c++){const h=r?c:o[c];(!r&&l.has(h)||r)&&t[h]===void 0&&e[h]===void 0?(a[h]=void 0,u++):(a[h]=i0(t[h],e[h]),a[h]===t[h]&&t[h]!==void 0&&u++)}return s===i&&u===s?t:a}return e}function xp(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Mc(t){if(!Ep(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!Ep(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Ep(t){return Object.prototype.toString.call(t)==="[object Object]"}function eT(t){return new Promise(e=>{setTimeout(e,t)})}function tT(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?i0(t,e):e}function rT(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function nT(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var fh=Symbol();function a0(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===fh?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Sn,Nr,Ps,um,sT=(um=class extends kl{constructor(){super();te(this,Sn);te(this,Nr);te(this,Ps);K(this,Ps,e=>{if(!Tl&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){T(this,Nr)||this.setEventListener(T(this,Ps))}onUnsubscribe(){var e;this.hasListeners()||((e=T(this,Nr))==null||e.call(this),K(this,Nr,void 0))}setEventListener(e){var r;K(this,Ps,e),(r=T(this,Nr))==null||r.call(this),K(this,Nr,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){T(this,Sn)!==e&&(K(this,Sn,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof T(this,Sn)=="boolean"?T(this,Sn):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Sn=new WeakMap,Nr=new WeakMap,Ps=new WeakMap,um),l0=new sT,Os,Ir,Rs,cm,oT=(cm=class extends kl{constructor(){super();te(this,Os,!0);te(this,Ir);te(this,Rs);K(this,Rs,e=>{if(!Tl&&window.addEventListener){const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n
vendor: 4,342 bytes, line 116
116)}}})}onSubscribe(){T(this,Ir)||this.setEventListener(T(this,Rs))}onUnsubscribe(){var e;this.hasListeners()||((e=T(this,Ir))==null||e.call(this),K(this,Ir,void 0))}setEventListener(e){var r;K(this,Rs,e),(r=T(this,Ir))==null||r.call(this),K(this,Ir,e(this.setOnline.bind(this)))}setOnline(e){T(this,Os)!==e&&(K(this,Os,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return T(this,Os)}},Os=new WeakMap,Ir=new WeakMap,Rs=new WeakMap,cm),Wa=new oT;function iT(){let t,e;const r=new Promise((s,o)=>{t=s,e=o});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),t(s)},r.reject=s=>{n({status:"rejected",reason:s}),e(s)},r}function aT(t){return Math.min(1e3*2**t,3e4)}function u0(t){return(t??"online")==="online"?Wa.isOnline():!0}var c0=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function wu(t){return t instanceof c0}function d0(t){let e=!1,r=0,n=!1,s;const o=iT(),i=v=>{var w;n||(f(new c0(v)),(w=t.abort)==null||w.call(t))},a=()=>{e=!0},l=()=>{e=!1},u=()=>l0.isFocused()&&(t.networkMode==="always"||Wa.isOnline())&&t.canRun(),c=()=>u0(t.networkMode)&&t.canRun(),h=v=>{var w;n||(n=!0,(w=t.onSuccess)==null||w.call(t,v),s==null||s(),o.resolve(v))},f=v=>{var w;n||(n=!0,(w=t.onError)==null||w.call(t,v),s==null||s(),o.reject(v))},d=()=>new Promise(v=>{var w;s=g=>{(n||u())&&v(g)},(w=t.onPause)==null||w.call(t)}).then(()=>{var v;s=void 0,n||(v=t.onContinue)==null||v.call(t)}),y=()=>{if(n)return;let v;const w=r===0?t.initialPromise:void 0;try{v=w??t.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(h).catch(g=>{var S;if(n)return;const p=t.retry??(Tl?0:3),m=t.retryDelay??aT,x=typeof m=="function"?m(r,g):m,E=p===!0||typeof p=="number"&&r<p||typeof p=="function"&&p(r,g);if(e||!E){f(g);return}r++,(S=t.onFail)==null||S.call(t,r,g),eT(x).then(()=>u()?void 0:d()).then(()=>{e?f(g):y()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?y():d().then(y),o)}}var lT=t=>setTimeout(t,0);function uT(){let t=[],e=0,r=a=>{a()},n=a=>{a()},s=lT;const o=a=>{e?t.push(a):s(()=>{r(a)})},i=()=>{const a=t;t=[],a.length&&s(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;e++;try{l=a()}finally{e--,e||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var ze=uT(),kn,dm,h0=(dm=class{constructor(){te(this,kn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yk(this.gcTime)&&K(this,kn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Tl?1/0:5*60*1e3))}clearGcTimeout(){T(this,kn)&&(clearTimeout(T(this,kn)),K(this,kn,void 0))}},kn=new WeakMap,dm),As,Tn,ht,Cn,Le,ni,Pn,Rt,rr,hm,cT=(hm=class extends h0{constructor(e){super();te(this,Rt);te(this,As);te(this,Tn);te(this,ht);te(this,Cn);te(this,Le);te(this,ni);te(this,Pn);K(this,Pn,!1),K(this,ni,e.defaultOptions),this.setOptions(e.options),this.observers=[],K(this,Cn,e.client),K(this,ht,T(this,Cn).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,K(this,As,hT(this.options)),this.state=e.state??T(this,As),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=T(this,Le))==null?void 0:e.promise}setOptions(e){this.options={...T(this,ni),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,ht).remove(this)}setData(e,r){const n=tT(this.state.data,e,this.options);return Ne(this,Rt,rr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){Ne(this,Rt,rr).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var n,s;const r=(n=T(this,Le))==null?void 0:n.promise;return(s=T(this,Le))==null||s.cancel(e),r?r.then(Pt).catch(Pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,As))}isActive(){return this.observers.some(e=>Zk(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fh||this.state.dataUpdateCount+this.state.errorUpdate
116Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Dc(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Xk(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=T(this,Le))==null||r.continue()}onOnline(){var r;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=T(this,Le))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),T(this,ht).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(T(this,Le)&&(T(this,Pn)?T(this,Le).cancel({revert:!0}):T(this,Le).cancelRetry()),this.scheduleGc()),T(this,ht).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ne(this,Rt,rr).call(this,{type:"invalidate"})}fetch(e,r){var u,c,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(T(this,Le))return T(this,Le).continueRetry(),T(this,Le).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(K(this,Pn,!0),n.signal)})},o=()=>{const f=a0(this.options,r),y=(()=>{const v={client:T(this,Cn),queryKey:this.queryKey,meta:this.meta};return s(v),v})();return K(this,Pn,!1),this.options.persister?this.options.persister(f,y,this):f(y)},a=(()=>{const f={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:T(this,Cn),state:this.state,fetchFn:o};return s(f),f})();(u=this.options.behavior)==null||u.onFetch(a,this),K(this,Tn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Ne(this,Rt,rr).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=f=>{var d,y,v,w;wu(f)&&f.silent||Ne(this,Rt,rr).call(this,{type:"error",error:f}),wu(f)||((y=(d=T(this,ht).config).onError)==null||y.call(d,f,this),(w=(v=T(this,ht).config).onSettled)==null||w.call(v,this.state.data,f,this)),this.scheduleGc()};return K(this,Le,d0({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var d,y,v,w;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(g){l(g);return}(y=(d=T(this,ht).config).onSuccess)==null||y.call(d,f,this),(w=(v=T(this,ht).config).onSettled)==null||w.call(v,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,d)=>{Ne(this,Rt,rr).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{Ne(this,Rt,rr).call(this,{type:"pause"})},onContinue:()=>{Ne(this,Rt,rr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,Le).start()}},As=new WeakMap,Tn=new WeakMap,ht=new WeakMap,Cn=new WeakMap,Le=new WeakMap,ni=new WeakMap,Pn=new WeakMap,Rt=new WeakSet,rr=function(e){const r=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...dT(n.data,this.options),fetchMeta:e.meta??null};case"success":return K(this,Tn,void 0),{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return wu(s)&&s.revert&&T(this,Tn)?{...T(this,Tn),fetchStatus:"idle"}
vendor: 4,844 bytes, line 116
116:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),ze.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),T(this,ht).notify({query:this,type:"updated",action:e})})},hm);function dT(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:u0(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function hT(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Vt,fm,fT=(fm=class extends kl{constructor(e={}){super();te(this,Vt);this.config=e,K(this,Vt,new Map)}build(e,r,n){const s=r.queryKey,o=r.queryHash??hh(s,r);let i=this.get(o);return i||(i=new cT({client:e,queryKey:s,queryHash:o,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(i)),i}add(e){T(this,Vt).has(e.queryHash)||(T(this,Vt).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=T(this,Vt).get(e.queryHash);r&&(e.destroy(),r===e&&T(this,Vt).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ze.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return T(this,Vt).get(e)}getAll(){return[...T(this,Vt).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(n=>bp(r,n))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(n=>bp(e,n)):r}notify(e){ze.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){ze.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ze.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Vt=new WeakMap,fm),Wt,Ue,On,Kt,Cr,pm,pT=(pm=class extends h0{constructor(e){super();te(this,Kt);te(this,Wt);te(this,Ue);te(this,On);this.mutationId=e.mutationId,K(this,Ue,e.mutationCache),K(this,Wt,[]),this.state=e.state||mT(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){T(this,Wt).includes(e)||(T(this,Wt).push(e),this.clearGcTimeout(),T(this,Ue).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){K(this,Wt,T(this,Wt).filter(r=>r!==e)),this.scheduleGc(),T(this,Ue).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){T(this,Wt).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ue).remove(this))}continue(){var e;return((e=T(this,On))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,i,a,l,u,c,h,f,d,y,v,w,g,p,m,x,E,S,k,P;const r=()=>{Ne(this,Kt,Cr).call(this,{type:"continue"})};K(this,On,d0({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(j,N)=>{Ne(this,Kt,Cr).call(this,{type:"failed",failureCount:j,error:N})},onPause:()=>{Ne(this,Kt,Cr).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ue).canRun(this)}));const n=this.state.status==="pending",s=!T(this,On).canStart();try{if(n)r();else{Ne(this,Kt,Cr).call(this,{type:"pending",variables:e,isPaused:s}),await((i=(o=T(this,Ue).config).onMutate)==null?void 0:i.call(o,e,this));const N=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e));N!==this.state.context&&Ne(this,Kt,Cr).call(this,{type:"pending",context:N,variables:e,isPaused:s})}const j=await T(this,On).start();return await((c=(u=T(this,Ue).config).onSuccess)==null?void 0:c.call(u,j,e,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,j,e,this.state.context)),await((y=(d=T(this,Ue).config).onSettled)==null?void 0:y.call(d,j,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,j,null,e,this.state.context)),Ne(this,Kt,Cr).call(this,{type:"success",data:j}),j}catch(j){try{throw await((p=(g=T(this,Ue).config).onError)==null?void 0:p.call(g,j,e,this.state.context,this)),await((x=(m=this.options).onError)==null?void 0:x.call(m,j,e,this.state.context)),await((S=(E=T(this,Ue).config).onSettled)==null?void 0:S.call(E,void 0,j,this.state.variables,this.state.context,this)),await((P=(k=this.options).onSettled)==null?void 0:P.call(k,void 0,j,e,this.state.context)),j}finally{Ne(this,Kt,Cr).call(this,{type:"error",error:j})}}finally{T(this,Ue).runNext(this)}}}
116,Wt=new WeakMap,Ue=new WeakMap,On=new WeakMap,Kt=new WeakSet,Cr=function(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ze.batch(()=>{T(this,Wt).forEach(n=>{n.onMutationUpdate(e)}),T(this,Ue).notify({mutation:this,type:"updated",action:e})})},pm);function mT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ir,At,si,mm,gT=(mm=class extends kl{constructor(e={}){super();te(this,ir);te(this,At);te(this,si);this.config=e,K(this,ir,new Set),K(this,At,new Map),K(this,si,0)}build(e,r,n){const s=new pT({mutationCache:this,mutationId:++yi(this,si)._,options:e.defaultMutationOptions(r),state:n});return this.add(s),s}add(e){T(this,ir).add(e);const r=zi(e);if(typeof r=="string"){const n=T(this,At).get(r);n?n.push(e):T(this,At).set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(T(this,ir).delete(e)){const r=zi(e);if(typeof r=="string"){const n=T(this,At).get(r);if(n)if(n.length>1){const s=n.indexOf(e);s!==-1&&n.splice(s,1)}else n[0]===e&&T(this,At).delete(r)}}this.notify({type:"removed",mutation:e})}canRun(e){const r=zi(e);if(typeof r=="string"){const n=T(this,At).get(r),s=n==null?void 0:n.find(o=>o.state.status==="pending");return!s||s===e}else return!0}runNext(e){var n;const r=zi(e);if(typeof r=="string"){const s=(n=T(this,At).get(r))==null?void 0:n.find(o=>o!==e&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ze.batch(()=>{T(this,ir).forEach(e=>{this.notify({type:"removed",mutation:e})}),T(this,ir).clear(),T(this,At).clear()})}getAll(){return Array.from(T(this,ir))}find(e){const r={exact:!0,...e};return this.getAll().find(n=>_p(r,n))}findAll(e={}){return this.getAll().filter(r=>_p(e,r))}notify(e){ze.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>
vendor: 4,721 bytes, line 116
116r.state.isPaused);return ze.batch(()=>Promise.all(e.map(r=>r.continue().catch(Pt))))}},ir=new WeakMap,At=new WeakMap,si=new WeakMap,mm);function zi(t){var e;return(e=t.options.scope)==null?void 0:e.id}function Sp(t){return{onFetch:(e,r)=>{var c,h,f,d,y;const n=e.options,s=(f=(h=(c=e.fetchOptions)==null?void 0:c.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,o=((d=e.state.data)==null?void 0:d.pages)||[],i=((y=e.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let v=!1;const w=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(e.signal.aborted?v=!0:e.signal.addEventListener("abort",()=>{v=!0}),e.signal)})},g=a0(e.options,e.fetchOptions),p=async(m,x,E)=>{if(v)return Promise.reject();if(x==null&&m.pages.length)return Promise.resolve(m);const k=(()=>{const z={client:e.client,queryKey:e.queryKey,pageParam:x,direction:E?"backward":"forward",meta:e.options.meta};return w(z),z})(),P=await g(k),{maxPages:j}=e.options,N=E?nT:rT;return{pages:N(m.pages,P,j),pageParams:N(m.pageParams,x,j)}};if(s&&o.length){const m=s==="backward",x=m?vT:kp,E={pages:o,pageParams:i},S=x(n,E);a=await p(E,S,m)}else{const m=t??o.length;do{const x=l===0?i[0]??n.initialPageParam:kp(n,a);if(l>0&&x==null)break;a=await p(a,x),l++}while(l<m)}return a};e.options.persister?e.fetchFn=()=>{var v,w;return(w=(v=e.options).persister)==null?void 0:w.call(v,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=u}}}function kp(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function vT(t,{pages:e,pageParams:r}){var n;return e.length>0?(n=t.getPreviousPageParam)==null?void 0:n.call(t,e[0],e,r[0],r):void 0}var ge,$r,Lr,js,Ns,Dr,Is,$s,gm,yT=(gm=class{constructor(t={}){te(this,ge);te(this,$r);te(this,Lr);te(this,js);te(this,Ns);te(this,Dr);te(this,Is);te(this,$s);K(this,ge,t.queryCache||new fT),K(this,$r,t.mutationCache||new gT),K(this,Lr,t.defaultOptions||{}),K(this,js,new Map),K(this,Ns,new Map),K(this,Dr,0)}mount(){yi(this,Dr)._++,T(this,Dr)===1&&(K(this,Is,l0.subscribe(async t=>{t&&(await this.resumePausedMutations(),T(this,ge).onFocus())})),K(this,$s,Wa.subscribe(async t=>{t&&(await this.resumePausedMutations(),T(this,ge).onOnline())})))}unmount(){var t,e;yi(this,Dr)._--,T(this,Dr)===0&&((t=T(this,Is))==null||t.call(this),K(this,Is,void 0),(e=T(this,$s))==null||e.call(this),K(this,$s,void 0))}isFetching(t){return T(this,ge).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return T(this,$r).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=T(this,ge).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=T(this,ge).build(this,e),n=r.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Dc(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return T(this,ge).findAll(t).map(({queryKey:e,state:r})=>{const n=r.data;return[e,n]})}setQueryData(t,e,r){const n=this.defaultQueryOptions({queryKey:t}),s=T(this,ge).get(n.queryHash),o=s==null?void 0:s.state.data,i=Jk(e,o);if(i!==void 0)return T(this,ge).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(t,e,r){return ze.batch(()=>T(this,ge).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=T(this,ge).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=T(this,ge);ze.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=T(this,ge);return ze.batch(()=>(r.findAll(t).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const r={revert:!0,...e},n=ze.batch(()=>T(this,ge).findAll(t).map(s=>s.cancel(r)));return Promise.all(n).then(Pt).catch(Pt)}invalidateQueries(t,e={}){return ze.batch(()=>(T(this,ge).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},n=ze.batch(()=>T(this,ge).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,r);return r.throwOnError||(o=o.catch(Pt)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Pt)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=T(this,ge).build(this,e);return r.isStaleByTime(Dc(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Pt).catch(Pt)}
116fetchInfiniteQuery(t){return t.behavior=Sp(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Pt).catch(Pt)}ensureInfiniteQueryData(t){return t.behavior=Sp(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Wa.isOnline()?T(this,$r).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,ge)}getMutationCache(){return T(this,$r)}getDefaultOptions(){return T(this,Lr)}setDefaultOptions(t){K(this,Lr,t)}setQueryDefaults(t,e){T(this,js).set(Xo(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...T(this,js).values()],r={};return e.forEach(n=>{Zo(t,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(t,e){T(this,Ns).set(Xo(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...T(this,Ns).values()],r={};return e.forEach(n=>{Zo(t,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...T(this,Lr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=hh(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===fh&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...T(this,Lr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){T(this,ge).clear(),T(this,$r).clear()}},ge=new WeakMap,$r=new WeakMap,Lr=new WeakMap,js=new WeakMap,Ns=new WeakMap,Dr=new WeakMap,Is=new WeakMap,$s=new WeakMap,gm),wT=_.createContext(void 0),bT=({client:t,children:e})=>(_.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),b.jsx(wT.Provider,{value:t,children:e}));/**
117 * @remix-run/router v1.23.0
118 *
119 * Copyright (c) Remix Software Inc.
120 *
121 * This source code is licensed under the MIT license found in the
122 * LICENSE.md file in the root directory of this source tree.
123 *
124 * @license MIT
125 */function Ka(){return Ka=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ka.apply(this,arguments)}var Fr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Fr||(Fr={}));const Tp="popstate";function _T(t){t===void 0&&(t={});function e(n,s){let{pathname:o,search:i,hash:a}=n.location;return Uc("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:p0(s)}return ET(e,r,null,t)}function Xe(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function f0(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function xT(){return Math.random().toString(36).substr(2,8)}function Cp(t,e){return{usr:t.state,key:t.key,idx:e}}function Uc(t,e,r,n){return r===void 0&&(r=null),Ka({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Cl(e):e,{state:r,key:e&&e.key||n||xT()})}function p0(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Cl(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function ET(t,e,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:o=!1}=n,i=s.history,a=Fr.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(Ka({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function h(){a=Fr.Pop;let w=c(),g=w==null?null:w-u;u=w,l&&l({action:a,location:v.location,delta:g})}function f(w,g){a=Fr.Push;let p=Uc(v.location,w,g);u=c()+1;let m=Cp(p,u),x=v.createHref(p);try{i.pushState(m,"",x)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(x)}o&&l&&l({action:a,location:v.location,delta:1})}function d(w,g){a=Fr.Replace;let p=Uc(v.location,w,g);u=c();let m=Cp(p,u),x=v.createHref(p);i.replaceState(m,"",x),o&&l&&l({action:a,location:v.location,delta:0})}function y(w){let g=s.location.origin!=="null"?s.location.origin:s.location.href,p=typeof w=="string"?w:p0(w);return p=p.replace(/ $/,"%20"),Xe(g,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,g)}let v={get action(){return a},get location(){return t(s,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Tp,h),l=w,()=>{s.removeEventListener(Tp,h),l=null}},createHref(w){return e(s,w)},createURL:y,encodeLocation(w){let g=y(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:d,go(w){return i.go(w)}};return v}var Pp;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Pp||(Pp={}));function ST(t,e,r){return r===void 0&&(r="/"),kT(t,e,r,!1)}function kT(t,e,r,n){let s=typeof e=="string"?Cl(e):e,o=v0(s.pathname||"/",r);if(o==null)return null;let i=m0(t);TT(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=DT(o);a=$T(i[l],u,n)}return a}function m0(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(Xe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not val
125id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Ts([n,l.relativePath]),c=r.concat(l);o.children&&o.children.length>0&&(Xe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),m0(o.children,e,c,u)),!(o.path==null&&!o.index)&&e.push({path:u,score:NT(u,o.index),routesMeta:c})};return t.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of g0(o.path))s(o,i,l)}),e}function g0(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return s?[o,""]:[o];let i=g0(n.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function TT(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:IT(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const CT=/^:[\w-]+$/,PT=3,OT=2,RT=1,AT=10,jT=-2,Op=t=>t==="*";function NT(t,e){let r=t.split("/"),n=r.length;return r.some(Op)&&(n+=jT),e&&(n+=OT),r.filter(s=>!Op(s)).reduce((s,o)=>s+(CT.test(o)?PT:o===""?RT:AT),n)}function IT(t,e){return t.length===e.length&&t.slice(0,-1).every((n,s)=>n===e[s])?t[t.length-1]-e[e.length-1]:0}function $T(t,e,r){let{routesMeta:n}=t,s={},o="/",i=[];for(let a=0;a<n.length;++a){let l=n[a],u=a===n.length-1,c=o==="/"?e:e.slice(o.length)||"/",h=Rp({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!h&&u&&r&&!n[n.length-1].route.index&&(h=Rp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!h)return null;
vendor: 4,131 bytes, lines 125-134
125Object.assign(s,h.params),i.push({params:s,pathname:Ts([o,h.pathname]),pathnameBase:MT(Ts([o,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(o=Ts([o,h.pathnameBase]))}return i}function Rp(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=LT(t.path,t.caseSensitive,t.end),s=e.match(r);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:n.reduce((u,c,h)=>{let{paramName:f,isOptional:d}=c;if(f==="*"){let v=a[h]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const y=a[h];return d&&!y?u[f]=void 0:u[f]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:t}}function LT(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),f0(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),n]}function DT(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return f0(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function v0(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}const Ts=t=>t.join("/").replace(/\/\/+/g,"/"),MT=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/");function UT(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const y0=["post","put","patch","delete"];new Set(y0);const FT=["get",...y0];new Set(FT);/**
126 * React Router v6.30.1
127 *
128 * Copyright (c) Remix Software Inc.
129 *
130 * This source code is licensed under the MIT license found in the
131 * LICENSE.md file in the root directory of this source tree.
132 *
133 * @license MIT
134 */function qa(){return qa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qa.apply(this,arguments)}const zT=_.createContext(null),BT=_.createContext(null),w0=_.createContext(null),Pl=_.createContext(null),Ol=_.createContext({outlet:null,matches:[],isDataRoute:!1}),b0=_.createContext(null);function ph(){return _.useContext(Pl)!=null}function _0(){return ph()||Xe(!1),_.useContext(Pl).location}function HT(t,e){return VT(t,e)}function VT(t,e,r,n){ph()||Xe(!1);let{navigator:s}=_.useContext(w0),{matches:o}=_.useContext(Ol),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=_0(),c;if(e){var h;let w=typeof e=="string"?Cl(e):e;l==="/"||(h=w.pathname)!=null&&h.startsWith(l)||Xe(!1),c=w}else c=u;let f=c.pathname||"/",d=f;if(l!=="/"){let w=l.replace(/^\//,"").split("/");d="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=ST(t,{pathname:d}),v=QT(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Ts([l,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Ts([l,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,r,n);return e&&v?_.createElement(Pl.Provider,{value:{location:qa({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Fr.Pop}},v):v}function WT(){let t=ZT(),e=UT(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application 
134Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},e),r?_.createElement("pre",{style:s},r):null,null)}const KT=_.createElement(WT,null);class qT extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?_.createElement(Ol.Provider,{value:this.props.routeContext},_.createElement(b0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function GT(t){let{routeContext:e,match:r,children:n}=t,s=_.useContext(zT);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),_.createElement(Ol.Provider,{value:e},n)}function QT(t,e,r,n){var s;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var o;if(!r)return null;if(r.errors)t=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let i=t,a=(s=r)==null?void 0:s.errors;if(a!=null){let c=i.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);c>=0||Xe(!1),i=i.slice(0,Math.min(i.length,c+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c<i.length;c++){let h=i[c];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=c),h.route.id){let{loaderData:f,errors:d}=r,y=h.route.loader&&f[h.route.id]===void 0&&(!d||d[h.route.id]===void 0);if(h.route.lazy||y){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,h,f)=>{let d,y=!1,v=null,w=null;r&&(d=a&&h.route.id?a[h.route.id]:void 0,v=h.route.errorElement||KT,l&&(u<0&&f===0?(y=!0,w=null):u===f&&(y=!0,w=h.route.hydrateFallbackElement||null)));let g=e.concat(i.slice(0,f+1)),p=()=>{let m;return d?m=v:y?m=w:h.route.Component?m=_.createElement(h.route.Component,null):h.route.element?m=h.route.element:m=c,_.createElement(GT,{match:h,routeContext:{outlet:c,matches:g,isDataRoute:r!=null},children:m})};return r&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?_.createElement(qT,{location:r.location,revalidation:r.revalidation,component:v,error:d,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()},null)}var Fc=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Fc||{});function JT(t){let e=_.useContext(BT);return e||Xe(!1),e}function YT(t){let e=_.useContext(Ol);return e||Xe(!1),e}function XT(t){let e=YT(),r=e.matches[e.matches.length-1];return r.route.id||Xe(!1),r.route.id}function ZT(){var t;let e=_.useContext(b0),r=JT(Fc.UseRouteError),n=XT(Fc.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function eC(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function ts(t){Xe(!1)}function tC(t){let{basename:e="/",children:r=null,location:n,navigationType:s=Fr.Pop,navigator:o,static:i=!1,future:a}=t;ph()&&Xe(!1);let l=e.replace(/^\/*/,"/"),u=_.useMemo(()=>({basename:l,navigator:o,static:i,future:qa({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof n=="string"&&(n=Cl(n));let{pathname:c="/",search:h="",hash:f="",state:d=null,key:y="default"}=n,v=_.useMemo(()=>{let w=v0(c,l);return w==null?null:{location:{pathname:w,search:h,hash:f,state:d,key:y},navigationType:s}},[l,c,h,f,d,y,s]);return v==null?null:_.createElement(w0.Provider,{value:u},_.createElement(Pl.Provider,{children:r,value:v}))}function rC(t){let{children:e,location:r}=t;return HT(zc(e),r)}new Promise(()=>{});function zc(t,e){e===void 0&&(e=[]);let r=[];
134return _.Children.forEach(t,(n,s)=>{if(!_.isValidElement(n))return;let o=[...e,s];if(n.type===_.Fragment){r.push.apply(r,zc(n.props.children,o));return}n.type!==ts&&Xe(!1),!n.props.index||!n.props.children||Xe(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=zc(n.props.children,o)),r.push(i)}),r}/**
135 * React Router DOM v6.30.1
136 *
137 * Copyright (c) Remix Software Inc.
138 *
139 * This source code is licensed under the MIT license found in the
140 * LICENSE.md file in the root directory of this source tree.
141 *
142 * @license MIT
143 */const nC="6";try{window.__reactRouterVersion=nC}catch{}const sC="startTransition",Ap=Pm[sC];function oC(t){let{basename:e,children:r,future:n,window:s}=t,o=_.useRef();o.current==null&&(o.current=_T({window:s,v5Compat:!0}));let i=o.current,[a,l]=_.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=_.useCallback(h=>{u&&Ap?Ap(()=>l(h)):l(h)},[l,u]);return _.useLayoutEffect(()=>i.listen(c),[i,c]),_.useEffect(()=>eC(n),[n]),_.createElement(tC,{basename:e,children:r,location:a.location,navigationType:a.action,navigator:i,future:n})}var jp;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(jp||(jp={}));var Np;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Np||(Np={}));const iC=my("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Mn=_.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...s},o)=>{const i=n?qx:"button";return b.jsx(i,{className:sn(iC({variant:e,size:r,className:t})),ref:o,...s})});Mn.displayName="Button";const mh=()=>b.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:b.jsx("nav",{className:"container mx-auto px-4 py-4",children:b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("div",{className:"text-xl font-bold text-primary tracking-wider",children:"GODS HOUSE EVENTS"}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("a",{href:"https://fb.me/e/5K1bcAVtc",target:"_blank",rel:"noopener noreferrer",className:"text-foreground hover:text-primary transition-colors duration-300","aria-label":"Facebook",children:b.jsx(vy,{className:"w-6 h-6"})}),b.jsx("a",{href:"https://instagram.com",target:"_blank",rel:"noopener noreferrer",className:"text-foreground hover:text-primary transition-colors duration-300","aria-label":"Instagram",children:b.jsx(yy,{className:"w-6 h-6"})}),b.jsx(Mn,{variant:"default",size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-bold gap-2 px-6 py-6 text-lg",asChild:!0,children:b.jsxs("a",{href:"https://www.nowonlinetickets.nl/Shop/EventDetails/EC4A925ADCE0299E3F84802618DFFB8A",target:"_blank",rel:"noopener noreferrer",children:[b.jsx(wy,{className:"w-5 h-5"}),"TICKETS"]})})]})]})})});
vendor: 5,499 bytes, line 143
143var Bc=function(t,e){return Bc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},Bc(t,e)};function x0(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Bc(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Ga=function(){return Ga=Object.assign||function(e){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ga.apply(this,arguments)};function Xs(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function E0(t,e,r,n){var s=arguments.length,o=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function S0(t,e){return function(r,n){e(r,n,t)}}function k0(t,e,r,n,s,o){function i(g){if(g!==void 0&&typeof g!="function")throw new TypeError("Function expected");return g}for(var a=n.kind,l=a==="getter"?"get":a==="setter"?"set":"value",u=!e&&t?n.static?t:t.prototype:null,c=e||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),h,f=!1,d=r.length-1;d>=0;d--){var y={};for(var v in n)y[v]=v==="access"?{}:n[v];for(var v in n.access)y.access[v]=n.access[v];y.addInitializer=function(g){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(i(g||null))};var w=(0,r[d])(a==="accessor"?{get:c.get,set:c.set}:c[l],y);if(a==="accessor"){if(w===void 0)continue;if(w===null||typeof w!="object")throw new TypeError("Object expected");(h=i(w.get))&&(c.get=h),(h=i(w.set))&&(c.set=h),(h=i(w.init))&&s.unshift(h)}else(h=i(w))&&(a==="field"?s.unshift(h):c[l]=h)}u&&Object.defineProperty(u,n.name,c),f=!0}function T0(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function C0(t){return typeof t=="symbol"?t:"".concat(t)}function P0(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function O0(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function M(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(c){try{u(n.next(c))}catch(h){i(h)}}function l(c){try{u(n.throw(c))}catch(h){i(h)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((n=n.apply(t,e||[])).next())})}function R0(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=a(0),i.throw=a(1),i.return=a(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(r=0)),r;)try{if(n=1,s&&(o=u[0]&2?s.return:u[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,u[1])).done)return o;switch(s=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,s=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(c){u=[6,c],s=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Rl=Object.create?function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]};function A0(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Rl(e,t,r)}function Qa(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function gh(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),s,o=[],i;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)o.push(s.value)}catch(a){i={error:a}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o}function j0(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(gh(arguments[e]));return t}function N0(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),s=0,e=0;e<r;e++)for(var o=arguments[e],i=0,a=o.length;i<a;i++,s++)n[s]=o[i];return n}function I0(t,e,r){if(r||arguments.length===2)for(var n=0,s=e.length,o;n<s;
vendor: 4,195 bytes, line 143
143n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}function Ws(t){return this instanceof Ws?(this.v=t,this):new Ws(t)}function $0(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),s[Symbol.asyncIterator]=function(){return this},s;function i(d){return function(y){return Promise.resolve(y).then(d,h)}}function a(d,y){n[d]&&(s[d]=function(v){return new Promise(function(w,g){o.push([d,v,w,g])>1||l(d,v)})},y&&(s[d]=y(s[d])))}function l(d,y){try{u(n[d](y))}catch(v){f(o[0][3],v)}}function u(d){d.value instanceof Ws?Promise.resolve(d.value.v).then(c,h):f(o[0][2],d)}function c(d){l("next",d)}function h(d){l("throw",d)}function f(d,y){d(y),o.shift(),o.length&&l(o[0][0],o[0][1])}}function L0(t){var e,r;return e={},n("next"),n("throw",function(s){throw s}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(s,o){e[s]=t[s]?function(i){return(r=!r)?{value:Ws(t[s](i)),done:!1}:o?o(i):i}:o}}function D0(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Qa=="function"?Qa(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(i){return new Promise(function(a,l){i=t[o](i),s(a,l,i.done,i.value)})}}function s(o,i,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},i)}}function M0(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var aC=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},Hc=function(t){return Hc=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},Hc(t)};function U0(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=Hc(t),n=0;n<r.length;n++)r[n]!=="default"&&Rl(e,t,r[n]);return aC(e,t),e}function F0(t){return t&&t.__esModule?t:{default:t}}function z0(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function B0(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r}function H0(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function V0(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(s=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(o){return Promise.reject(o)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}var lC=typeof SuppressedError=="function"?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function W0(t){function e(o){t.error=t.hasError?new lC(o,t.error,"An error was suppressed during disposal."):o,t.hasError=!0}var r,n=0;function s(){for(;r=t.stack.pop();)try{if(!r.async&&n===1)return n=0,t.stack.push(r),Promise.resolve().then(s);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(s,function(i){return e(i),s()})}else n|=1}catch(i){e(i)}
143if(n===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return s()}function K0(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,s,o,i){return n?e?".jsx":".js":s&&(!o||!i)?r:s+o+"."+i.toLowerCase()+"js"}):t}const uC={__extends:x0,__assign:Ga,__rest:Xs,__decorate:E0,__param:S0,__esDecorate:k0,__runInitializers:T0,__propKey:C0,__setFunctionName:P0,__metadata:O0,__awaiter:M,__generator:R0,__createBinding:Rl,__exportStar:A0,__values:Qa,__read:gh,__spread:j0,__spreadArrays:N0,__spreadArray:I0,__await:Ws,__asyncGenerator:$0,__asyncDelegator:L0,__asyncValues:D0,__makeTemplateObject:M0,__importStar:U0,__importDefault:F0,__classPrivateFieldGet:z0,__classPrivateFieldSet:B0,__classPrivateFieldIn:H0,__addDisposableResource:V0,__disposeResources:W0,__rewriteRelativeImportExtension:K0},cC=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:V0,get __assign(){return Ga},__asyncDelegator:L0,__asyncGenerator:$0,__asyncValues:D0,__await:Ws,__awaiter:M,__classPrivateFieldGet:z0,__classPrivateFieldIn:H0,__classPrivateFieldSet:B0,__createBinding:Rl,__decorate:E0,__disposeResources:W0,__esDecorate:k0,__exportStar:A0,__extends:x0,__generator:R0,__importDefault:F0,__importStar:U0,__makeTemplateOb
143ject:M0,__metadata:O0,__param:S0,__propKey:C0,__read:gh,__rest:Xs,__rewriteRelativeImportExtension:K0,__runInitializers:T0,__setFunctionName:P0,__spread:j0,__spreadArray:I0,__spreadArrays:N0,__values:Qa,default:uC},Symbol.toStringTag,{value:"Module"})),dC=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class vh extends Error{constructor(e,r="FunctionsError",n){super(e),this.name=r,this.context=n}}class hC extends vh{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Ip extends vh{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class $p extends vh{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Vc;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Vc||(Vc={}));class fC{constructor(e,{headers:r={},customFetch:n,region:s=Vc.Any}={}){this.url=e,this.headers=r,this.region=s,this.fetch=dC(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return M(this,arguments,void 0,function*(r,n={}){var s;let o,i;try{const{headers:a,method:l,body:u,signal:c,timeout:h}=n;let f={},{region:d}=n;d||(d=this.region);const y=new URL(`${this.url}/${r}`);d&&d!=="any"&&(f["x-region"]=d,y.searchParams.set("forceFunctionRegion",d));let v;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",v=u):typeof u=="string"?(f["Content-Type"]="text/plain",v=u):typeof FormData<"u"&&u instanceof FormData?v=u:(f["Content-Type"]="application/json",v=JSON.stringify(u)):v=u;let w=c;h&&(i=new AbortController,o=setTimeout(()=>i.abort(),h),c?(w=i.signal,c.addEventListener("abort",()=>i.abort())):w=i.signal);const g=yield this.fetch(y.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),a),body:v,signal:w}).catch(E=>{throw new hC(E)}),p=g.headers.get("x-relay-error");if(p&&p==="true")throw new Ip(g);if(!g.ok)throw new $p(g);let m=((s=g.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),x;return m==="application/json"?x=yield g.json():m==="application/octet-stream"||m==="application/pdf"?x=yield g.blob():m==="text/event-stream"?x=g:m==="multipart/form-data"?x=yield g.formData():x=yield g.text(),{data:x,error:null,response:g}}catch(a){return{data:null,error:a,response:a instanceof $p||a instanceof Ip?a.context:void 0}}finally{o&&clearTimeout(o)}})}}var Be={};const Zs=Uw(cC);var Bi={},Hi={},Vi={},Wi={},Ki={},qi={},Lp;function q0(){if(Lp)return qi;Lp=1,Object.defineProperty(qi,"__esModule",{value:!0});class t extends Error{constructor(r){super(r.message),this.name="PostgrestError",this.details=r.details,this.hint=r.hint,this.co
143de=r.code}}return qi.default=t,qi}var Dp;function G0(){if(Dp)return Ki;Dp=1,Object.defineProperty(Ki,"__esModule",{value:!0});const e=Zs.__importDefault(q0());class r{constructor(s){var o,i;this.shouldThrowOnError=!1,this.method=s.method,this.url=s.url,this.headers=new Headers(s.headers),this.schema=s.schema,this.body=s.body,this.shouldThrowOnError=(o=s.shouldThrowOnError)!==null&&o!==void 0?o:!1,this.signal=s.signal,this.isMaybeSingle=(i=s.isMaybeSingle)!==null&&i!==void 0?i:!1,s.fetch?this.fetch=s.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(s,o){return this.headers=new Headers(this.headers),this.headers.set(s,o),this}then(s,o){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 i=this.fetch;let a=i(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async l=>{var u,c,h,f;let d=null,y=null,v=null,w=l.status,g=l.statusText;if(l.ok){if(this.method!=="HEAD"){const E=await l.text();E===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((u=this.headers.get("Accept"))===null||u===void 0)&&u.includes("application/vnd.pgrst.plan+text"))?y=E:y=JSON.parse(E))}const m=(c=this.headers.get("Prefer"))===null||c===void 0?void 0:c.match(/count=(exact|planned|estimated)/),x=(h=l.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");m&&x&&x.length>1&&(v=parseInt(x[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(y)&&(y.length>1?(d={code:"PGRST116",details:`Results contain ${y.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},y=null,v=null,w=406,g="Not Acceptable"):y.length===1?y=y[0]:y=null)}else{const m=await l.text();try{d=JSON.parse(m),Array.isArray(d)&&l.status===404&&(y=[],d=null,w=200,g="OK")}catch{l.status===404&&m===""?(w=204,g="No Content"):d={message:m}}if(d&&this.isMaybeSingle&&(!((f=d==null?void 0:d.details)===null||f===void 0)&&f.includes("0 rows"))&&(d=null,w=200,g="OK"),d&&this.shouldThrowOnError)throw new e.default(d)}return{error:d,data:y,count:v,status:w,statusText:g}});return this.shouldThrowOnError||(a=a.catch(l=>{var u,c,h;return{error:{message:`${(u=l==null?void 0:l.name)!==null&&u!==void 0?u:"FetchError"}: ${l==null?void 0:l.message}`,details:`${(c=l==null?void 0:l.stack)!==null&&c!==void 0?c:""}`,hint:"",code:`${(h=l==null?void 0:l.code)!==null&&h!==void 0?h:""}`},data:null,count:null,status:0,statusText:""}})),a.then(s,o)}returns(){return this}overrideTypes(){return this}}return Ki.default=r,Ki}var Mp;function Q0(){if(Mp)return Wi;Mp=1,Object.defineProperty(Wi,"__esModule",{value:!0});const e=Zs.__importDefault(G0());class r extends e.default{select(s){let o=!1;const i=(s??"*").split("").map(a=>/\s/.test(a)&&!o?"":(a==='"'&&(o=!o),a)).join("");return this.url.searchParams.set("select",i),this.headers.append("Prefer","return=representation"),this}order(s,{ascending:o=!0,nullsFirst:i,foreignTable:a,referencedTable:l=a}={}){const u=l?`${l}.order`:"order",c=this.url.searchParams.get(u);return this.url.searchParams.set(u,`${c?`${c},`:""}${s}.${o?"asc":"desc"}${i===void 0?"":i?".nullsfirst":".nullslast"}`),this}limit(s,{foreignTable:o,referencedTable:i=o}={}){const a=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(a,`${s}`),this}range(s,o,{foreignTable:i,referencedTable:a=i}={}){const l=typeof a>"u"?"offset":`${a}.offset`,u=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(l,`${s}`),this.url.searchParams.set(u,`${o-s+1}`),this}abortSignal(s){return this.signal=s,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}
143explain({analyze:s=!1,verbose:o=!1,settings:i=!1,buffers:a=!1,wal:l=!1,format:u="text"}={}){var c;const h=[s?"analyze":null,o?"verbose":null,i?"settings":null,a?"buffers":null,l?"wal":null].filter(Boolean).join("|"),f=(c=this.headers.get("Accept"))!==null&&c!==void 0?c:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${u}; for="${f}"; options=${h};`),u==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(s){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${s}`),this}}return Wi.default=r,Wi}var Up;function yh(){if(Up)return Vi;Up=1,Object.defineProperty(Vi,"__esModule",{value:!0});const e=Zs.__importDefault(Q0()),r=new RegExp("[,()]");class n extends e.default{eq(o,i){return this.url.searchParams.append(o,`eq.${i}`),this}neq(o,i){return this.url.searchParams.append(o,`neq.${i}`),this}gt(o,i){return this.url.searchParams.append(o,`gt.${i}`),this}gte(o,i){return this.url.searchParams.append(o,`gte.${i}`),this}lt(o,i){return this.url.searchParams.append(o,`lt.${i}`),this}lte(o,i){return this.url.searchParams.append(o,`lte.${i}`),this}like(o,i){return this.url.searchParams.append(o,`like.${i}`),this}likeAllOf(o,i){return this.url.searchParams.append(o,`like(all).{${i.join(",")}}`),this}likeAnyOf(o,i){return this.url.searchParams.append(o,`like(any).{${i.join(",")}}`),this}ilike(o,i){return this.url.searchParams.append(o,`ilike.${i}`),this}ilikeAllOf(o,i){return this.url.searchParams.append(o,`ilike(all).{${i.join(",")}}`),this}ilikeAnyOf(o,i){return this.url.searchParams.append(o,`ilike(any).{${i.join(",")}}`),this}is(o,i){return this.url.searchParams.append(o,`is.${i}`),this}in(o,i){const a=Array.from(new Set(i)).map(l=>typeof l=="string"&&r.test(l)?`"${l}"`:`${l}`).join(",");return this.url.searchParams.append(o,`in.(${a})`),this}contains(o,i){return typeof i=="string"?this.url.searchParams.append(o,`cs.${i}`):Array.isArray(i)?this.url.searchParams.append(o,`cs.{${i.join(",")}}`):this.url.searchParams.append(o,`cs.${JSON.stringify(i)}`),this}containedBy(o,i){return typeof i=="string"?this.url.searchParams.append(o,`cd.${i}`):Array.isArray(i)?this.url.searchParams.append(o,`cd.{${i.join(",")}}`):this.url.searchParams.append(o,`cd.${JSON.stringify(i)}`),this}rangeGt(o,i){return this.url.searchParams.append(o,`sr.${i}`),this}rangeGte(o,i){return this.url.searchParams.append(o,`nxl.${i}`),this}rangeLt(o,i){return this.url.searchParams.append(o,`sl.${i}`),this}rangeLte(o,i){return this.url.searchParams.append(o,`nxr.${i}`),this}rangeAdjacent(o,i){return this.url.searchParams.append(o,`adj.${i}`),this}overlaps(o,i){return typeof i=="string"?this.url.searchParams.append(o,`ov.${i}`):this.url.searchParams.append(o,`ov.{${i.join(",")}}`),this}textSearch(o,i,{config:a,type:l}={}){let u="";l==="plain"?u="pl":l==="phrase"?u="ph":l==="websearch"&&(u="w");const c=a===void 0?"":`(${a})`;return this.url.searchParams.append(o,`${u}fts${c}.${i}`),this}match(o){return Object.entries(o).forEach(([i,a])=>{this.url.searchParams.append(i,`eq.${a}`)}),this}not(o,i,a){return this.url.searchParams.append(o,`not.${i}.${a}`),this}or(o,{foreignTable:i,referencedTable:a=i}={}){const l=a?`${a}.or`:"or";return this.url.searchParams.append(l,`(${o})`),this}filter(o,i,a){return this.url.searchParams.append(o,`${i}.${a}`),this}}return Vi.default=n,Vi}var Fp;function J0(){if(Fp)return Hi;Fp=1,Object.defineProperty(Hi,"__esModule",{value:!0});const e=Zs.__importDefault(yh());class r{constructor(s,{headers:o={},schema:i,fetch:a}){this.url=s,this.headers=new Headers(o),this.schema=i,this.fetch=a}select(s,o){const{head:i=!1,count:a}=o??{},l=i?"HEAD":"GET";let u=!1;const c=(s??"*").split("").map(h=>/\s/.test(h)&&!u?"":(h==='"'&&(u=!u),h)).join("");return this.url.searchParams.set("select",c),a&&this.headers.append("Prefer",`count=${a}`),new e.default({method:l,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(s,{count:o,defaultToNull:i=!0}={}){var a;const l="POST";if(o&&this.headers.append("Prefer",`count=${o}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(s)){const u=s.reduce((c,h)=>c.concat(Object.keys(h)),[]);if(u.length>0){const c=[...new Set(u)].map(h=>`"${h}"`);this.url.searchParams.set("columns",c.join(","))}}return new e.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}upsert(s,{onConflict:o,ignoreDuplicates:i=!1,count:a,defaultToNull:l=!0}={}){var u;const c="POST";if(this.headers.append("Prefer",`resolution=${i?"ignore":"merge"}-duplicates`),o!==void 0&&this.url.searchParams.set("on_conflict",o),a&&this.headers.append("Prefer",`count=${a}`),l||this.headers.append("Prefer","missing=default"),Array.isArray(s)){const h=s.reduce((f,d)=>f.concat(Object.keys(d)),[]);if(h.length>0){const f=[...new Set(h)].map(d=>`"${d}"`);this.url.searchParams.set("columns",f.join(","))}}return new e.default({method:c,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch})}update(s,{count:o}={}){var i;const a="PATCH";return o&&this.headers.append("Prefer",`count=${o}`),new e.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}delete({count:s}={}){var o;const i="DELETE";return s&&this.headers.append("Prefer",`count=${s}`),new e.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}}return Hi.default=r,Hi}var zp;function pC(){if(zp)return Bi;zp=1,Object.defineProperty(Bi,"__esModule",{value:!0});const t=Zs,e=t.__importDefault(J0()),r=t.__importDefault(yh());
143class n{constructor(o,{headers:i={},schema:a,fetch:l}={}){this.url=o,this.headers=new Headers(i),this.schemaName=a,this.fetch=l}from(o){const i=new URL(`${this.url}/${o}`);return new e.default(i,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(o){return new n(this.url,{headers:this.headers,schema:o,fetch:this.fetch})}rpc(o,i={},{head:a=!1,get:l=!1,count:u}={}){var c;let h;const f=new URL(`${this.url}/rpc/${o}`);let d;a||l?(h=a?"HEAD":"GET",Object.entries(i).filter(([v,w])=>w!==void 0).map(([v,w])=>[v,Array.isArray(w)?`{${w.join(",")}}`:`${w}`]).forEach(([v,w])=>{f.searchParams.append(v,w)})):(h="POST",d=i);const y=new Headers(this.headers);return u&&y.set("Prefer",`count=${u}`),new r.default({method:h,url:f,headers:y,schema:this.schemaName,body:d,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch})}}return Bi.default=n,Bi}Object.defineProperty(Be,"__esModule",{value:!0});var Y0=Be.PostgrestError=aw=Be.PostgrestBuilder=ow=Be.PostgrestTransformBuilder=nw=Be.PostgrestFilterBuilder=tw=Be.PostgrestQueryBuilder=Z0=Be.PostgrestClient=void 0;const eo=Zs,X0=eo.__importDefault(pC());var Z0=Be.PostgrestClient=X0.default;const ew=eo.__importDefault(J0());var tw=Be.PostgrestQueryBuilder=ew.default;const rw=eo.__importDefault(yh());var nw=Be.PostgrestFilterBuilder=rw.default;const sw=eo.__importDefault(Q0());var ow=Be.PostgrestTransformBuilder=sw.default;const iw=eo.__importDefault(G0());var aw=Be.PostgrestBuilder=iw.default;const lw=eo.__importDefault(q0());Y0=Be.PostgrestError=lw.default;var uw=Be.default={PostgrestClient:X0.default,PostgrestQueryBuilder:ew.default,PostgrestFilterBuilder:rw.default,PostgrestTransformBuilder:sw.default,PostgrestBuilder:iw.default,PostgrestError:lw.default};const mC=vm({__proto__:null,get PostgrestBuilder(){return aw},get PostgrestClient(){return Z0},get PostgrestError(){return Y0},get PostgrestFilterBuilder(){return nw},get PostgrestQueryBuilder(){return tw},get PostgrestTransformBuilder(){return ow},default:uw},[Be]),{PostgrestClient:gC,PostgrestQueryBuilder:iA,PostgrestFilterBuilder:aA,PostgrestTransformBuilder:lA,PostgrestBuilder:uA,PostgrestError:cA}=uw||mC;class vC{static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const n=r.node,s=parseInt(n.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
144import ws from "ws"
145new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let r=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(r+=`
146
147Suggested solution: ${e.workaround}`),new Error(r)}static createWebSocket(e,r){const n=this.getWebSocketConstructor();return new n(e,r)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const yC="2.81.1",wC=`realtime-js/${yC}`,cw="1.0.0",bC="2.0.0",Bp=cw,Wc=1e4,_C=1e3,xC=100;var gn;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(gn||(gn={}));var xe;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(xe||(xe={}));var ft;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(ft||(ft={}));var Kc;(function(t){t.websocket="websocket"})(Kc||(Kc={}));var vn;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(vn||(vn={}));class EC{constructor(){this.HEADER_LENGTH=1,this.META_LENGTH=4,this.USER_BROADCAST_PUSH_META_LENGTH=5,this.KINDS={push:0,reply:1,broadcast:2,userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST="broadcast"}encode(e,r){if(this._isArrayBuffer(e.payload))return r(this._binaryEncodePush(e));if(e.event===this.BROADCAST&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(e));let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return r(JSON.stringify(n))}_binaryEncodePush(e){const{join_ref:r,ref:n,event:s,topic:o,payload:i}=e,a=this.META_LENGTH+r.length+n.length+o.length+s.length,l=new ArrayBuffer(this.HEADER_LENGTH+a);let u=new DataView(l),c=0;u.setUint8(c++,this.KINDS.push),u.setUint8(c++,r.length),u.setUint8(c++,n.length),u.setUint8(c++,o.length),u.setUint8(c++,s.length),Array.from(r,f=>u.setUint8(c++,f.charCodeAt(0))),Array.from(n,f=>u.setUint8(c++,f.charCodeAt(0))),Array.from(o,f=>u.setUint8(c++,f.charCodeAt(0))),Array.from(s,f=>u.setUint8(c++,f.charCodeAt(0)));var h=new Uint8Array(l.byteLength+i.byteLength);return h.set(new Uint8Array(l),0),h.set(new Uint8Array(i),l.byteLength),h.buffer}_binaryEncodeUserBroadcastPush(e){var r;return this._isArrayBuffer((r=e.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var r,n;const{join_ref:s,ref:o,topic:i}=e,a=e.payload.event,l=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0),u=this.USER_BROADCAST_PUSH_META_LENGTH+s.length+o.length+i.length+a.length,c=new ArrayBuffer(this.HEADER_LENGTH+u);let h=new DataView(c),f=0;h.setUint8(f++,this.KINDS.userBroadcastPush),h.setUint8(f++,s.length),h.setUint8(f++,o.length),h.setUint8(f++,i.length),h.setUint8(f++,a.length),h.setUint8(f++,this.BINARY_ENCODING),Array.from(s,y=>
147h.setUint8(f++,y.charCodeAt(0))),Array.from(o,y=>h.setUint8(f++,y.charCodeAt(0))),Array.from(i,y=>h.setUint8(f++,y.charCodeAt(0))),Array.from(a,y=>h.setUint8(f++,y.charCodeAt(0)));var d=new Uint8Array(c.byteLength+l.byteLength);return d.set(new Uint8Array(c),0),d.set(new Uint8Array(l),c.byteLength),d.buffer}_encodeJsonUserBroadcastPush(e){var r,n;const{join_ref:s,ref:o,topic:i}=e,a=e.payload.event,l=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},c=new TextEncoder().encode(JSON.stringify(l)).buffer,h=this.USER_BROADCAST_PUSH_META_LENGTH+s.length+o.length+i.length+a.length,f=new ArrayBuffer(this.HEADER_LENGTH+h);let d=new DataView(f),y=0;d.setUint8(y++,this.KINDS.userBroadcastPush),d.setUint8(y++,s.length),d.setUint8(y++,o.length),d.setUint8(y++,i.length),d.setUint8(y++,a.length),d.setUint8(y++,this.JSON_ENCODING),Array.from(s,w=>d.setUint8(y++,w.charCodeAt(0))),Array.from(o,w=>d.setUint8(y++,w.charCodeAt(0))),Array.from(i,w=>d.setUint8(y++,w.charCodeAt(0))),Array.from(a,w=>d.setUint8(y++,w.charCodeAt(0)));var v=new Uint8Array(f.byteLength+c.byteLength);return v.set(new Uint8Array(f),0),v.set(new Uint8Array(c),f.byteLength),v.buffer}decode(e,r){if(this._isArrayBuffer(e)){let n=this._binaryDecode(e);return r(n)}if(typeof e=="string"){const n=JSON.parse(e),[s,o,i,a,l]=n;return r({join_ref:s,ref:o,topic:i,event:a,payload:l})}return r({})}_binaryDecode(e){const r=new DataView(e),n=r.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.push:return this._decodePush(e,r,s);case this.KINDS.reply:return this._decodeReply(e,r,s);case this.KINDS.broadcast:return this._decodeBroadcast(e,r,s);case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,r,s)}}_decodePush(e,r,n){const s=r.getUint8(1),o=r.getUint8(2),i=r.getUint8(3);let a=this.HEADER_LENGTH+this.META_LENGTH-1;const l=n.decode(e.slice(a,a+s));a=a+s;const u=n.decode(e.slice(a,a+o));a=a+o;const c=n.decode(e.slice(a,a+i));a=a+i;const h=JSON.parse(n.decode(e.slice(a,e.byteLength)));return{join_ref:l,ref:null,topic:u,event:c,payload:h}}_decodeReply(e,r,n){const s=r.getUint8(1),o=r.getUint8(2),i=r.getUint8(3),a=r.getUint8(4);let l=this.HEADER_LENGTH+this.META_LENGTH;const u=n.decode(e.slice(l,l+s));l=l+s;const c=n.decode(e.slice(l,l+o));l=l+o;const h=n.decode(e.slice(l,l+i));l=l+i;const f=n.decode(e.slice(l,l+a));l=l+a;const d=JSON.parse(n.decode(e.slice(l,e.byteLength))),y={status:f,response:d};return{join_ref:u,ref:c,topic:h,event:ft.reply,payload:y}}_decodeBroadcast(e,r,n){const s=r.getUint8(1),o=r.getUint8(2);let i=this.HEADER_LENGTH+2;const a=n.decode(e.slice(i,i+s));i=i+s;const l=n.decode(e.slice(i,i+o));i=i+o;const u=JSON.parse(n.decode(e.slice(i,e.byteLength)));return{join_ref:null,ref:null,topic:a,event:l,payload:u}}_decodeUserBroadcast(e,r,n){const s=r.getUint8(1),o=r.getUint8(2),i=r.getUint8(3),a=r.getUint8(4);let l=this.HEADER_LENGTH+4;const u=n.decode(e.slice(l,l+s));l=l+s;const c=n.decode(e.slice(l,l+o));l=l+o;const h=n.decode(e.slice(l,l+i));l=l+i;const f=e.slice(l,e.byteLength),d=a===this.JSON_ENCODING?JSON.parse(n.decode(f)):f,y={type:this.BROADCAST,event:c,payload:d};return i>0&&(y.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST,payload:y}}_isArrayBuffer(e){var r;return e instanceof ArrayBuffer||((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}}class dw{constructor(e,r){this.callback=e,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=r}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 oe;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.t
147srange="tsrange",t.tstzrange="tstzrange"})(oe||(oe={}));const Hp=(t,e,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return e?Object.keys(e).reduce((o,i)=>(o[i]=SC(i,t,e,s),o),{}):{}},SC=(t,e,r,n)=>{const s=e.find(a=>a.name===t),o=s==null?void 0:s.type,i=r[t];return o&&!n.includes(o)?hw(o,i):qc(i)},hw=(t,e)=>{if(t.charAt(0)==="_"){const r=t.slice(1,t.length);return PC(e,r)}switch(t){case oe.bool:return kC(e);case oe.float4:case oe.float8:case oe.int2:case oe.int4:case oe.int8:case oe.numeric:case oe.oid:return TC(e);case oe.json:case oe.jsonb:return CC(e);case oe.timestamp:return OC(e);case oe.abstime:case oe.date:case oe.daterange:case oe.int4range:case oe.int8range:case oe.money:case oe.reltime:case oe.text:case oe.time:case oe.timestamptz:case oe.timetz:case oe.tsrange:case oe.tstzrange:return qc(e);default:return qc(e)}},qc=t=>t,kC=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},TC=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},CC=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},PC=(t,e)=>{if(typeof t!="string")return t;const r=t.length-1,n=t[r];if(t[0]==="{"&&n==="}"){let o;const i=t.slice(1,r);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>hw(e,a))}return t},OC=t=>typeof t=="string"?t.replace(" ","T"):t,fw=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};class bu{constructor(e,r,n={},s=Wc){this.channel=e,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,r){var n;return this._hasReceived(e)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:e,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(r))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var Vp;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"}
147)(Vp||(Vp={}));class Ao{constructor(e,r){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Ao.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=Ao.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Ao.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,r,n,s){const o=this.cloneDeep(e),i=this.transformState(r),a={},l={};return this.map(o,(u,c)=>{i[u]||(l[u]=c)}),this.map(i,(u,c)=>{const h=o[u];if(h){const f=c.map(w=>w.presence_ref),d=h.map(w=>w.presence_ref),y=c.filter(w=>d.indexOf(w.presence_ref)<0),v=h.filter(w=>f.indexOf(w.presence_ref)<0);y.length>0&&(a[u]=y),v.length>0&&(l[u]=v)}else a[u]=c}),this.syncDiff(o,{joins:a,leaves:l},n,s)}static syncDiff(e,r,n,s){const{joins:o,leaves:i}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(o,(a,l)=>{var u;const c=(u=e[a])!==null&&u!==void 0?u:[];if(e[a]=this.cloneDeep(l),c.length>0){const h=e[a].map(d=>d.presence_ref),f=c.filter(d=>h.indexOf(d.presence_ref)<0);e[a].unshift(...f)}n(a,c,l)}),this.map(i,(a,l)=>{let u=e[a];if(!u)return;const c=l.map(h=>h.presence_ref);u=u.filter(h=>c.indexOf(h.presence_ref)<0),e[a]=u,s(a,u,l),u.length===0&&delete e[a]}),e}static map(e,r){return Object.getOwnPropertyNames(e).map(n=>r(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((r,n)=>{const s=e[n];return"metas"in s?r[n]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):r[n]=s,r},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Wp;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(Wp||(Wp={}));var jo;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(jo||(jo={}));var sr;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(sr||(sr={}));class wh{constructor(e,r={config:{}},n){var s,o;if(this.topic=e,this.params=r,this.socket=n,this.bindings={},this.state=xe.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new bu(this,ft.join,this.params,this.timeout),this.rejoinTimer=new dw(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=xe.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=xe.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=xe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=xe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=xe.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ft.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new Ao(this),this.broadcastEndpointURL=fw(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((o=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||o===void 0)&&o.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,r=this.timeout){var n,s,o;if(this.socket.isConnected()||this.socket.connect(),this.state==xe.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,u=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(d=>d.filter))!==null&&s!==void 0?s:[],c=!!this.bindings[jo.PRESENCE]&&this.bindings[jo.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,h={},f={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(d=>e==null?void 0:e(sr.CHANNEL_ERROR,d)),this._onClose(()=>e==null?void 0:e(sr.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:d})=>{var y;if(this.socket.setAuth(),d===void 0){e==null||e(sr.SUBSCRIBED);return}else{const v=this.bindings.postgres_changes,w=(y=v==null?void 0:v.length)!==null&&y!==void 0?y:0,g=[];for(let p=0;p<w;p++){const m=v[p],{filter:{event:x,schema:E,table:S,filter:k}}=m,P=d&&d[p];if(P&&P.event===x&&P.schema===E&&P.table===S&&P.filter===k)g.push(Object.assign(Object.assign({},m),{id:P.id}));else{this.unsubscribe(),this.state=xe.errored,e==null||e(sr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=g,e&&e(sr.SUBSCRIBED);return}}).receive("error",d=>{this.state=xe.errored,e==null||e(sr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(d).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(sr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,r={}){return await this.send({type:"presence",event:"track",payload:e},r.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,r,n){return this.state===xe.joined&&e===jo.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(e,r,n)}async httpSend(e,r,n={}){var s;const o=this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"";if(r==null)return Promise.reject("Payload is required for httpSend()");const i={method:"POST",headers:{Authorization:o,apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:r,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,i,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
147try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(e,r={}){var n,s;if(!this._canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:o,payload:i}=e,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,l;const u=this._push(e.type,e,r.timeout||this.timeout);e.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)&&o("ok"),u.receive("ok",()=>o("ok")),u.receive("error",()=>o("error")),u.receive("timeout",()=>o("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=xe.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ft.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new bu(this,ft.leave,{},e),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=xe.closed,this.bindings={}}async _fetchWithTimeout(e,r,n){const s=new AbortController,o=setTimeout(()=>s.abort(),n),i=await this.socket.fetch(e,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(o),i}_push(e,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new bu(this,e,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>xC){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(e,r,n){return r}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,r,n){var s,o;const i=e.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=ft;if(n&&[a,l,u,c].indexOf(i)>=0&&n!==this._joinRef())return;let f=this._onMessage(i,r,n);if(r&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(d=>{var y,v,w;return((y=d.filter)===null||y===void 0?void 0:y.event)==="*"||((w=(v=d.filter)===null||v===void 0?void 0:v.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===i}).map(d=>d.callback(f,n)):(o=this.bindings[i])===null||o===void 0||o.filter(d=>{var y,v,w,g,p,m;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in d){const x=d.id,E=(y=d.filter)===null||y===void 0?void 0:y.event;return x&&((v=r.ids)===null||v===void 0?void 0:v.includes(x))&&(E==="*"||(E==null?void 0:E.toLocaleLowerCase())===((w=r.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const x=(p=(g=d==null?void 0:d.filter)===null||g===void 0?void 0:g.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return x==="*"||x===((m=r==null?void 0:r.event)===null||m===void 0?void 0:m.toLocaleLowerCase())}else return d.type.toLocaleLowerCase()===i}).map(d=>{if(typeof f=="object"&&"ids"in f){const y=f.data,{schema:v,table:w,commit_timestamp:g,type:p,errors:m}=y;f=Object.assign(Object.assign({},{schema:v,table:w,commit_timestamp:g,eventType:p,new:{},old:{},errors:m}),this._getPayloadRecords(y))}d.callback(f,n)})}_isClosed(){return this.state===xe.closed}_isJoined(){return this.state===xe.joined}_isJoining(){return this.state===xe.joining}_isLeaving(){return this.state===xe.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,r,n){const s=e.toLocaleLowerCase(),o={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(e,r){const n=e.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===n&&wh.isEqual(s.filter,r))})),this}static isEqual(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const n in e)if(e[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(ft.close,{},e)}_onError(e){this._on(ft.error,{},r=>e(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=xe.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const r={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(r.new=Hp(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(r.old=Hp(e.columns,e.old_record)),r}}const _u=()=>{},Gi={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},RC=[1e3,2e3,5e3,1e4],AC=1e4,jC=`
148  addEventListener("message", (e) => {
149    if (e.data.event === "start") {
150      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
151    }
152  });`;class NC{constructor(e,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Wc,this.transport=null,this.heartbeatIntervalMs=Gi.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=_u,this.ref=0,this.reconnectTimer=null,this.vsn=Bp,this.logger=_u,this.conn=null,this.sendBuffer=[],this.serializer
152=new EC,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>s?(...o)=>s(...o):(...o)=>fetch(...o),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${e}/${Kc.websocket}`,this.httpEndpoint=fw(e),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=vC.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const r=e.message;throw r.includes("Node.js")?new Error(`${r}
153
154To use Realtime in Node.js, you need to provide a WebSocket implementation:
155
156Option 1: Use Node.js 22+ which has native WebSocket support
157Option 2: Install and provide the "ws" package:
158
159  npm install ws
160
161  import ws from "ws"
162  const client = new RealtimeClient(url, {
163    ...options,
164    transport: ws
165  })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(e,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(e?this.conn.close(e,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const r=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const e=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,r,n){this.logger(e,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case gn.connecting:return vn.Connecting;case gn.open:return vn.Open;case gn.closing:return vn.Closing;default:return vn.Closed}}isConnected(){return this.connectionState()===vn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,r={config:{}}){const n=`realtime:${e}`,s=this.getChannels().find(o=>o.topic===n);if(s)return s;{const o=new wh(`realtime:${e}`,r,this);return this.channels.push(o),o}}push(e){const{topic:r,event:n,payload:s,ref:o}=e,i=()=>{this.encode(e,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(_C,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
165heduleTimeout()},Gi.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let r=this.channels.find(n=>n.topic===e&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${e}"`),r.unsubscribe())}_remove(e){this.channels=this.channels.filter(r=>r.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:s,payload:o,ref:i}=r,a=i?`(${i})`:"",l=o.status||"";this.log("receive",`${l} ${n} ${s} ${a}`.trim(),o),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(s,o,i)),this._triggerStateCallbacks("message",r)})}_clearTimer(e){var r;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){if(this.conn){if(this.conn.readyState===gn.open||this.conn.readyState===gn.connecting)try{this.conn.close()}catch(e){this.log("error","Error closing connection",e)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var r;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
165heduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(ft.error))}_appendParams(e,r){if(Object.keys(r).length===0)return e;const n=e.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${e}${n}${s}`}_workerObjectUrl(e){let r;if(e)r=e;else{const n=new Blob([jC],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(e,r=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(e=null){let r;e?r=e:this.accessToken?r=await this.accessToken():r=this.accessTokenValue,this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(n=>{const s={access_token:r,version:wC};r&&n.updateJoinPayload(s),n.joinedOnce&&n._isJoined()&&n._push(ft.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(r=>{this.log("error",`error setting auth in ${e}`,r)})}_triggerStateCallbacks(e,r){try{this.stateChangeCallbacks[e].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new dw(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Gi.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var r,n,s,o,i,a,l,u,c,h,f,d;switch(this.transport=(r=e==null?void 0:e.transport)!==null&&r!==void 0?r:null,this.timeout=(n=e==null?void 0:e.timeout)!==null&&n!==void 0?n:Wc,this.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:Gi.HEARTBEAT_INTERVAL,this.worker=(o=e==null?void 0:e.worker)!==null&&o!==void 0?o:!1,this.accessToken=(i=e==null?void 0:e.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(a=e==null?void 0:e.heartbeatCallback)!==null&&a!==void 0?a:_u,this.vsn=(l=e==null?void 0:e.vsn)!==null&&l!==void 0?l:Bp,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=e==null?void 0:e.reconnectAfterMs)!==null&&u!==void 0?u:y=>RC[y-1]||AC,this.vsn){case cw:this.encode=(c=e==null?void 0:e.encode)!==null&&c!==void 0?c:(y,v)=>v(JSON.stringify(y)),this.decode=(h=e==null?void 0:e.decode)!==null&&h!==void 0?h:(y,v)=>v(JSON.parse(y));break;case bC:this.encode=(f=e==null?void 0:e.encode)!==null&&f!==void 0?f:this.serializer.encode.bind(this.serializer),this.decode=(d=e==null?void 0:e.decode)!==null&&d!==void 0?d:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}
165class bh extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function he(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class IC extends bh{constructor(e,r,n){super(e),this.name="StorageApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Gc extends bh{constructor(e,r){super(e),this.name="StorageUnknownError",this.originalError=r}}const _h=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),$C=()=>Response,Qc=t=>{if(Array.isArray(t))return t.map(r=>Qc(r));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));e[s]=Qc(n)}),e},LC=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},xu=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},DC=(t,e,r)=>M(void 0,void 0,void 0,function*(){const n=yield $C();t instanceof n&&!(r!=null&&r.noResolveJson)?t.json().then(s=>{const o=t.status||500,i=(s==null?void 0:s.statusCode)||o+"";e(new IC(xu(s),o,i))}).catch(s=>{e(new Gc(xu(s),s))}):e(new Gc(xu(t),t))}),MC=(t,e,r,n)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!n?s:(LC(n)?(s.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(n)):s.body=n,e!=null&&e.duplex&&(s.duplex=e.duplex),Object.assign(Object.assign({},s),r))};function pi(t,e,r,n,s,o){return M(this,void 0,void 0,function*(){return new Promise((i,a)=>{t(r,MC(e,n,s,o)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>DC(l,a,n))})})}function ei(t,e,r,n){return M(this,void 0,void 0,function*(){return pi(t,"GET",e,r,n)})}function Ot(t,e,r,n,s){return M(this,void 0,void 0,function*(){return pi(t,"POST",e,n,s,r)})}function Jc(t,e,r,n,s){return M(this,void 0,void 0,function*(){return pi(t,"PUT",e,n,s,r)})}function UC(t,e,r,n){return M(this,void 0,void 0,function*(){return pi(t,"HEAD",e,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function xh(t,e,r,n,s){return M(this,void 0,void 0,function*(){return pi(t,"DELETE",e,n,s,r)})}class FC{constructor(e,r){this.downloadFn=e,this.shouldThrowOnError=r}then(e,r){return this.execute().then(e,r)}execute(){return M(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(he(e))return{data:null,error:e};throw e}})}}var pw;class zC{constructor(e,r){this.downloadFn=e,this.shouldThrowOnError=r,this[pw]="BlobDownloadBuilder",this.promise=null}asStream(){return new FC(this.downloadFn,this.shouldThrowOnError)}then(e,r){return this.getPromise().then(e,r)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}execute(){return M(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(he(e))return{data:null,error:e};throw e}})}}pw=Symbol.toStringTag;const BC={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Kp={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class HC{constructor(e,r={},n,s){this.shouldThrowOnError=!1,this.url=e,this.headers=r,this.bucketId=n,this.fetch=_h(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(e,r,n,s){return M(this,void 0,void 0,function*(){try{let o;const i=Object.assign(Object.assign({},Kp),s);let a=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&n instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l)),o.append("",n)):typeof FormData<"u"&&n instanceof FormData?(o=n,o.has("cacheControl")||o.append("cacheControl",i.cacheControl),l&&!o.has("metadata")&&o.append("metadata",this.encodeMetadata(l))):(o=n,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l))),(typeof ReadableStream<"u"&&o instanceof ReadableStream||o&&typeof o=="object"&&"pipe"in o&&typeof o.pipe=="function")&&!i.duplex&&(i.duplex="half")),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(r),c=this._getFinalPath(u),h=yield(e=="PUT"?Jc:Ot)(this.fetch,`${this.url}/object/${c}`,o,Object.assign({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:u,id:h.Id,fullPath:h.Key},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(he(o))return{data:null,error:o};throw o}})}upload(e,r,n){return M(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,r,n)})}uploadToSignedUrl(e,r,n,s){return M(this,void 0,void 0,function*(){const o=this._removeEmptyFolders(e),i=this._getFinalPath(o),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",r);try{let l;const u=Object.assign({upsert:Kp.upsert},s),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",u.cacheControl)):(l=n,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const h=yield Jc(this.fetch,a.toString(),l,{headers:c});return{data:{path:o,fullPath:h.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(he(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(e,r){return M(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e);const s=Object.assign({},this.headers);r!=null&&r.upsert&&(s["x-upsert"]="true");const o=yield Ot(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:s}),i=new URL(this.url+o.url),a=i.searchParams.get("token");if(!a)throw new bh("No token returned by API");return{data:{signedUrl:i.toString(),path:e,token:a},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(he(n))return{data:null,error:n};throw n}})}update(e,r,n){return M(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,r,n)})}move(e,r,n){return M(this,void 0,void 0,function*(){try{return{data:yield Ot(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(he(s))return{data:null,error:s};throw s}})}copy(e,r,n){return M(this,void 0,void 0,function*(){try{return{data:{path:(yield Ot(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(he(s))return{data:null,error:s};throw s}})}createSignedUrl(e,r,n){return M(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e),o=yield Ot(this.fetch,`${this.url}/object/sign/${s}
165`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return o={signedUrl:encodeURI(`${this.url}${o.signedURL}${i}`)},{data:o,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(he(s))return{data:null,error:s};throw s}})}createSignedUrls(e,r,n){return M(this,void 0,void 0,function*(){try{const s=yield Ot(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:e},{headers:this.headers}),o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:s.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${o}`):null})),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(he(s))return{data:null,error:s};throw s}})}download(e,r){const s=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",o=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),i=o?`?${o}`:"",a=this._getFinalPath(e),l=()=>ei(this.fetch,`${this.url}/${s}/${a}${i}`,{headers:this.headers,noResolveJson:!0});return new zC(l,this.shouldThrowOnError)}info(e){return M(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{const n=yield ei(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:Qc(n),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(he(n))return{data:null,error:n};throw n}})}exists(e){return M(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{return yield UC(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(he(n)&&n instanceof Gc){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}})}getPublicUrl(e,r){const n=this._getFinalPath(e),s=[],o=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";o!==""&&s.push(o);const a=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});l!==""&&s.push(l);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${u}`)}}}remove(e){return M(this,void 0,void 0,function*(){try{return{data:yield xh(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(he(r))return{data:null,error:r};throw r}})}list(e,r,n){return M(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},BC),r),{prefix:e||""});return{data:yield Ot(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},n),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(he(s))return{data:null,error:s};throw s}})}listV2(e,r){return M(this,void 0,void 0,function*(){try{const n=Object.assign({},e);return{data:yield Ot(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,n,{headers:this.headers},r),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(he(n))return{data:null,error:n};throw n}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const r=[];return e.width&&r.push(`width=${e.width}`),e.height&&r.push(`height=${e.height}`),e.resize&&r.push(`resize=${e.resize}`),e.format&&r.push(`format=${e.format}`),e.quality&&r.push(`quality=${e.quality}`),r.join("&")}}const mw="2.81.1",gw={"X-Client-Info":`storage-js/${mw}`};class VC{constructor(e,r={},n,s){this.shouldThrowOnError=!1;const o=new URL(e);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase.")),this.url=o.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},gw),r),this.fetch=_h(n)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(e){return M(this,void 0,void 0,function*(){try{const r=this.listBucketOptionsToQueryString(e);return{data:yield ei(this.fetch,`${this.url}/bucket${r}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(he(r))return{data:null,error:r};throw r}})}getBucket(e){return M(this,void 0,void 0,function*(){try{return{data:yield ei(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(he(r))return{data:null,error:r};throw r}})}createBucket(e){return M(this,arguments,void 0,function*(r,n={public:!1}){try{return{data:yield Ot(this.fetch,`${this.url}/bucket`,{id:r,name:r,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(he(s))return{data:null,error:s};throw s}})}updateBucket(e,r){return M(this,void 0,void 0,function*(){try{return{data:yield Jc(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(he(n))return{data:null,error:n};throw n}})}emptyBucket(e){return M(this,void 0,void 0,function*(){try{return{data:yield Ot(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(he(r))return{data:null,error:r};throw r}})}deleteBucket(e){return M(this,void 0,void 0,function*(){try{return{data:yield xh(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(he(r))return{data:null,error:r};throw r}})}listBucketOptionsToQueryString(e){const r={};return e&&("limit"in e&&(r.limit=String(e.limit)),"offset"in e&&(r.offset=String(e.offset)),e.search&&(r.search=e.search),e.sortColumn&&(r.sortColumn=e.sortColumn),e.sortOrder&&(r.sortOrder=e.sortOrder)),Object.keys(r).length>0?"?"+new URLSearchParams(r).toString():""}}class WC{constructor(e,r={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},gw),r),this.fetch=_h(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(e){return M(this,void 0,void 0,function*(){try{return{data:yield Ot(this.fetch,`${this.url}/bucket`,{name:e},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(he(r))return{data:null,error:r};throw r}})}listBuckets(e){return M(this,void 0,void 0,function*(){try{const r=new 
165URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),s=n?`${this.url}/bucket?${n}`:`${this.url}/bucket`;return{data:yield ei(this.fetch,s,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(he(r))return{data:null,error:r};throw r}})}deleteBucket(e){return M(this,void 0,void 0,function*(){try{return{data:yield xh(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(he(r))return{data:null,error:r};throw r}})}}const Eh={"X-Client-Info":`storage-js/${mw}`,"Content-Type":"application/json"};class vw extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}}function rt(t){return typeof t=="object"&&t!==null&&"__isStorageVectorsError"in t}class Eu extends vw{constructor(e,r,n){super(e),this.name="StorageVectorsApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class KC extends vw{constructor(e,r){super(e),this.name="StorageVectorsUnknownError",this.originalError=r}}var qp;(function(t){t.InternalError="InternalError",t.S3VectorConflictException="S3VectorConflictException",t.S3VectorNotFoundException="S3VectorNotFoundException",t.S3VectorBucketNotEmpty="S3VectorBucketNotEmpty",t.S3VectorMaxBucketsExceeded="S3VectorMaxBucketsExceeded",t.S3VectorMaxIndexesExceeded="S3VectorMaxIndexesExceeded"})(qp||(qp={}));const Sh=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),qC=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Gp=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),GC=(t,e,r)=>M(void 0,void 0,void 0,function*(){if(t&&typeof t=="object"&&"status"in t&&"ok"in t&&typeof t.status=="number"&&!(r!=null&&r.noResolveJson)){const s=t.status||500,o=t;if(typeof o.json=="function")o.json().then(i=>{const a=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||s+"";e(new Eu(Gp(i),s,a))}).catch(()=>{const i=s+"",a=o.statusText||`HTTP ${s} error`;e(new Eu(a,s,i))});else{const i=s+"",a=o.statusText||`HTTP ${s} error`;e(new Eu(a,s,i))}}else e(new KC(Gp(t),t))}),QC=(t,e,r,n)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return n?(qC(n)?(s.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(n)):s.body=n,Object.assign(Object.assign({},s),r)):s};function JC(t,e,r,n,s,o){return M(this,void 0,void 0,function*(){return new Promise((i,a)=>{t(r,QC(e,n,s,o)).then(l=>{if(!l.ok)throw l;if(n!=null&&n.noResolveJson)return l;const u=l.headers.get("content-type");return!u||!u.includes("application/json")?{}:l.json()}).then(l=>i(l)).catch(l=>GC(l,a,n))})})}function nt(t,e,r,n,s){return M(this,void 0,void 0,function*(){return JC(t,"POST",e,n,s,r)})}class YC{constructor(e,r={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Eh),r),this.fetch=Sh(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createIndex(e){return M(this,void 0,void 0,function*(){try{return{data:(yield nt(this.fetch,`${this.url}/CreateIndex`,e,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(rt(r))return{data:null,error:r};throw r}})}getIndex(e,r){return M(this,void 0,void 0,function*(){try{return{data:yield nt(this.fetch,`${this.url}/GetIndex`,{vectorBucketName:e,indexName:r},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(rt(n))return{data:null,error:n};throw n}})}listIndexes(e){return M(this,void 0,void 0,function*(){try{return{data:yield nt(this.fetch,`${this.url}/ListIndexes`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(rt(r))return{data:null,error:r};throw r}})}deleteIndex(e,r){return M(this,void 0,void 0,function*(){try{return{data:(yield nt(this.fetch,`${this.url}/DeleteIndex`,{vectorBucketName:e,indexName:r},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(rt(n))return{data:null,error:n};throw n}})}}class XC{constructor(e,r={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Eh),r),this.fetch=Sh(n)}throwOnError(){return this.shouldThrowOnError=!0,this}putVectors(e){return M(this,void 0,void 0,function*(){try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:(yield nt(this.fetch,`${this.url}/PutVectors`,e,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(rt(r))return{data:null,error:r};throw r}})}getVectors(e){return M(this,void 0,void 0,function*(){try{return{data:yield nt(this.fetch,`${this.url}/GetVectors`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(rt(r))return{data:null,error:r};throw r}})}listVectors(e){return M(this,void 0,void 0,function*(){try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
165if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:yield nt(this.fetch,`${this.url}/ListVectors`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(rt(r))return{data:null,error:r};throw r}})}queryVectors(e){return M(this,void 0,void 0,function*(){try{return{data:yield nt(this.fetch,`${this.url}/QueryVectors`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(rt(r))return{data:null,error:r};throw r}})}deleteVectors(e){return M(this,void 0,void 0,function*(){try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:(yield nt(this.fetch,`${this.url}/DeleteVectors`,e,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(rt(r))return{data:null,error:r};throw r}})}}class ZC{constructor(e,r={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Eh),r),this.fetch=Sh(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(e){return M(this,void 0,void 0,function*(){try{return{data:(yield nt(this.fetch,`${this.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(rt(r))return{data:null,error:r};throw r}})}getBucket(e){return M(this,void 0,void 0,function*(){try{return{data:yield nt(this.fetch,`${this.url}/GetVectorBucket`,{vectorBucketName:e},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(rt(r))return{data:null,error:r};throw r}})}listBuckets(){return M(this,arguments,void 0,function*(e={}){try{return{data:yield nt(this.fetch,`${this.url}/ListVectorBuckets`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(rt(r))return{data:null,error:r};throw r}})}deleteBucket(e){return M(this,void 0,void 0,function*(){try{return{data:(yield nt(this.fetch,`${this.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(rt(r))return{data:null,error:r};throw r}})}}class eP extends ZC{constructor(e,r={}){super(e,r.headers||{},r.fetch)}from(e){return new tP(this.url,this.headers,e,this.fetch)}}class tP extends YC{constructor(e,r,n,s){super(e,r,s),this.vectorBucketName=n}createIndex(e){const r=Object.create(null,{createIndex:{get:()=>super.createIndex}});return M(this,void 0,void 0,function*(){return r.createIndex.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName}))})}listIndexes(){const e=Object.create(null,{listIndexes:{get:()=>super.listIndexes}});return M(this,arguments,void 0,function*(r={}){return e.listIndexes.call(this,Object.assign(Object.assign({},r),{vectorBucketName:this.vectorBucketName}))})}getIndex(e){const r=Object.create(null,{getIndex:{get:()=>super.getIndex}});return M(this,void 0,void 0,function*(){return r.getIndex.call(this,this.vectorBucketName,e)})}deleteIndex(e){const r=Object.create(null,{deleteIndex:{get:()=>super.deleteIndex}});return M(this,void 0,void 0,function*(){return r.deleteIndex.call(this,this.vectorBucketName,e)})}index(e){return new rP(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}class rP extends XC{constructor(e,r,n,s,o){super(e,r,o),this.vectorBucketName=n,this.indexName=s}putVectors(e){const r=Object.create(null,{putVectors:{get:()=>super.putVectors}});return M(this,void 0,void 0,function*(){return r.putVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}getVectors(e){const r=Object.create(null,{getVectors:{get:()=>super.getVectors}});return M(this,void 0,void 0,function*(){return r.getVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}listVectors(){const e=Object.create(null,{listVectors:{get:()=>super.listVectors}});return M(this,arguments,void 0,function*(r={}){return e.listVectors.call(this,Object.assign(Object.assign({},r),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}queryVectors(e){const r=Object.create(null,{queryVectors:{get:()=>super.queryVectors}});return M(this,void 0,void 0,function*(){return r.queryVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}deleteVectors(e){const r=Object.create(null,{deleteVectors:{get:()=>super.deleteVectors}});return M(this,void 0,void 0,function*(){return r.deleteVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}}class nP extends VC{constructor(e,r={},n,s){super(e,r,n,s)}from(e){return new HC(this.url,this.headers,e,this.fetch)}get vectors(){return new eP(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new WC(this.url+"/iceberg",this.headers,this.fetch)}}const sP="2.81.1";let bo="";
165typeof Deno<"u"?bo="deno":typeof document<"u"?bo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?bo="react-native":bo="node";const oP={"X-Client-Info":`supabase-js-${bo}/${sP}`},iP={headers:oP},aP={schema:"public"},lP={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},uP={},cP=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),dP=()=>Headers,hP=(t,e,r)=>{const n=cP(r),s=dP();return async(o,i)=>{var a;const l=(a=await e())!==null&&a!==void 0?a:t;let u=new s(i==null?void 0:i.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),n(o,Object.assign(Object.assign({},i),{headers:u}))}};function fP(t){return t.endsWith("/")?t:t+"/"}function pP(t,e){var r,n;const{db:s,auth:o,realtime:i,global:a}=t,{db:l,auth:u,realtime:c,global:h}=e,f={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},u),o),realtime:Object.assign(Object.assign({},c),i),storage:{},global:Object.assign(Object.assign(Object.assign({},h),a),{headers:Object.assign(Object.assign({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=a==null?void 0:a.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return t.accessToken?f.accessToken=t.accessToken:delete f.accessToken,f}function mP(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(fP(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const yw="2.81.1",rs=30*1e3,Yc=3,Su=Yc*rs,gP="http://localhost:9999",vP="supabase.auth.token",yP={"X-Client-Info":`gotrue-js/${yw}`},Xc="X-Supabase-Api-Version",ww={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},wP=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,bP=10*60*1e3;class ti extends Error{constructor(e,r,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function U(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class _P extends ti{constructor(e,r,n){super(e,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function xP(t){return U(t)&&t.name==="AuthApiError"}class yn extends ti{constructor(e,r){super(e),this.name="AuthUnknownError",this.originalError=r}}class on extends ti{constructor(e,r,n,s){super(e,n,s),this.name=r,this.status=n}}class kt extends on{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function EP(t){return U(t)&&t.name==="AuthSessionMissingError"}class Qn extends on{constructor(){super("Auth session or user missing","AuthInvalidToken
165ResponseError",500,void 0)}}class Qi extends on{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Ji extends on{constructor(e,r=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function SP(t){return U(t)&&t.name==="AuthImplicitGrantRedirectError"}class Qp extends on{constructor(e,r=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Zc extends on{constructor(e,r){super(e,"AuthRetryableFetchError",r,void 0)}}function ku(t){return U(t)&&t.name==="AuthRetryableFetchError"}class Jp extends on{constructor(e,r,n){super(e,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class ed extends on{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Yp=` 	
166\r=`.split(""),kP=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Yp.length;e+=1)t[Yp[e].charCodeAt(0)]=-2;for(let e=0;e<Ja.length;e+=1)t[Ja[e].charCodeAt(0)]=e;return t})();function Xp(t,e,r){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(Ja[n]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(Ja[n]),e.queuedBits-=6}}function bw(t,e,r){const n=kP[t];if(n>-1)for(e.queue=e.queue<<6|n,e.queuedBits+=6;e.queuedBits>=8;)r(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Zp(t){const e=[],r=i=>{e.push(String.fromCodePoint(i))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{PP(i,n,r)};for(let i=0;i<t.length;i+=1)bw(t.charCodeAt(i),s,o);return e.join("")}function TP(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function CP(t,e){for(let r=0;r<t.length;r+=1){let n=t.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(t.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}TP(n,e)}}function PP(t,e,r){if(e.utf8seq===0){if(t<=127){r(t);return}for(let n=1;n<6;n+=1)if(!(t>>7-n&1)){e.utf8seq=n;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&r(e.codepoint)}}function Cs(t){const e=[],r={queue:0,queuedBits:0},n=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)bw(t.charCodeAt(s),r,n);return new Uint8Array(e)}function OP(t){const e=[];return CP(t,r=>e.push(r)),new Uint8Array(e)}function xn(t){const e=[],r={queue:0,queuedBits:0},n=s=>{e.push(s)};return t.forEach(s=>Xp(s,r,n)),Xp(null,r,n),e.join("")}function RP(t){return Math.round(Date.now()/1e3)+t}function AP(){return Symbol("auth-callback")}const Pe=()=>typeof window<"u"&&typeof document<"u",dn={tested:!1,writable:!1},_w=()=>{if(!Pe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(dn.tested)return dn.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),dn.tested=!0,dn.writable=!0}catch{dn.tested=!0,dn.writable=!1}return dn.writable};function jP(t){const e={},r=new URL(t);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((s,o)=>{e[o]=s})}catch{}return r.searchParams.forEach((n,s)=>{e[s]=n}),e}const xw=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),NP=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",ns=async(t,e,r)=>{await t.setItem(e,JSON.stringify(r))},hn=async(t,e)=>{const r=await t.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Tr=async(t,e)=>{await t.removeItem(e)};class Al{constructor(){this.promise=new Al.promiseConstructor((e,r)=>{this.resolve=e,this.reject=r})}}Al.promiseConstructor=Promise;function Tu(t){const e=t.split(".");if(e.length!==3)throw new ed("Invalid JWT structure");for(let n=0;n<e.length;n++)if(!wP.test(e[n]))throw new ed("JWT not in base64url format");return{header:JSON.parse(Zp(e[0])),payload:JSON.parse(Zp(e[1])),signature:Cs(e[2]),raw:{header:e[0],payload:e[1]}}}async function IP(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function $P(t,e){return new Promise((n,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await t(o);if(!e(o,null,i)){n(i);return}}catch(i){if(!e(o,i)){s(i);return}}})()})}function LP(t){return("0"+t.toString(16)).substr(-2)}function DP(){const e=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let o=0;o<56;o++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(e),Array.from(e,LP).join("")}async function MP(t){const r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function UP(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code 
166challenge method will default to use plain instead of sha256."),t;const r=await MP(t);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Jn(t,e,r=!1){const n=DP();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await ns(t,`${e}-code-verifier`,s);const o=await UP(n);return[o,n===o?"plain":"s256"]}const FP=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function zP(t){const e=t.headers.get(Xc);if(!e||!e.match(FP))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function BP(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function HP(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const VP=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Yn(t){if(!VP.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Cu(){const t={};return new Proxy(t,{get:(e,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="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 "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function WP(t,e){return new Proxy(t,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const o=n.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!e.value&&typeof n=="string"&&(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."),e.value=!0),Reflect.get(r,n,s)}})}function em(t){return JSON.parse(JSON.stringify(t))}const mn=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),KP=[502,503,504];async function tm(t){var e;if(!NP(t))throw new Zc(mn(t),0);if(KP.includes(t.status))throw new Zc(mn(t),t.status);let r;try{r=await t.json()}catch(o){throw new yn(mn(o),o)}let n;const s=zP(t);if(s&&s.getTime()>=ww["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new Jp(mn(r),t.status,((e=r.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(n==="session_not_found")throw new kt}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new Jp(mn(r),t.status,r.weak_password.reasons);throw new _P(mn(r),t.status||500,n)}const qP=(t,e,r,n)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function B(t,e,r,n){var s;const o=Object.assign({},n==null?void 0:n.headers);o[Xc]||(o[Xc]=ww["2024-01-01"].name),n!=null&&n.jwt&&(o.Authorization=`Bearer ${n.jwt}`);const i=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(i.redirect_to=n.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await GP(t,e,r+a,{headers:o,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function GP(t,e,r,n,s,o){const i=qP(e,n,s,o);let a;try{a=await t(r,Object.assign({},i))}catch(l){throw console.error(l),new Zc(mn(l),0)}if(a.ok||await tm(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await tm(l)}}function Tt(t){var e;let r=null;YP(t)&&(r=Object.assign({},t),t.expires_at||(r.expires_at=RP(t.expires_in)));const n=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:r,user:n},error:null}}function rm(t){const e=Tt(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(e.data.weak_password=t.weak_password),e}function jr(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function QP(t){return{data:t,error:null}}function JP(t){const{action_link:e,email_otp:r,hashed_token:n,redirect_to:s,verification_type:o}=t,i=Xs(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:r,hashed_token:n,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function nm(t){return t}function YP(t){return t.access_token&&t.refresh_token&&t.expires_in}const Pu=["global","local","others"];class XP{constructor({url:e="",headers:r={},fetch:n}){this.url=e,this.headers=r,this.fetch=xw(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(e,r=Pu[0]){if(Pu.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Pu.join(", ")}`);try{return await B(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(U(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e,r={}){try{return await B(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:jr})}catch(n){if(U(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const{options:r}=e,n=Xs(e,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await B(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:JP,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(U(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(e){try{return await B(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:jr})}catch(r){if(U(r))return{data:{user:null},error:r};throw r}}async listUsers(e){var r,n,s,o,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await B(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:nm});if(c.error)throw c.error;const h=await c.json(),f=(i=c.headers.get("x-total-count"))!==null&&i!==void 0?i:0,d=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return d.length>
1660&&(d.forEach(y=>{const v=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(y.split(";")[1].split("=")[1]);u[`${w}Page`]=v}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(U(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){Yn(e);try{return await B(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:jr})}catch(r){if(U(r))return{data:{user:null},error:r};throw r}}async updateUserById(e,r){Yn(e);try{return await B(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:r,headers:this.headers,xform:jr})}catch(n){if(U(n))return{data:{user:null},error:n};throw n}}async deleteUser(e,r=!1){Yn(e);try{return await B(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:r},xform:jr})}catch(n){if(U(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){Yn(e.userId);try{const{data:r,error:n}=await B(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(U(r))return{data:null,error:r};throw r}}async _deleteFactor(e){Yn(e.userId),Yn(e.id);try{return{data:await B(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(r){if(U(r))return{data:null,error:r};throw r}}async _listOAuthClients(e){var r,n,s,o,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await B(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:nm});if(c.error)throw c.error;const h=await c.json(),f=(i=c.headers.get("x-total-count"))!==null&&i!==void 0?i:0,d=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return d.length>0&&(d.forEach(y=>{const v=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(y.split(";")[1].split("=")[1]);u[`${w}Page`]=v}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(U(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(e){try{return await B(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(U(r))return{data:null,error:r};throw r}}async _getOAuthClient(e){try{return await B(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(U(r))return{data:null,error:r};throw r}}async _updateOAuthClient(e,r){try{return await B(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(U(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(e){try{return await B(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(U(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(e){try{return await B(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(U(r))return{data:null,error:r};throw r}}}function sm(t={}){return{getItem:e=>t[e]||null,setItem:(e,r)=>{t[e]=r},removeItem:e=>{delete t[e]}}}const Xn={debug:!!(globalThis&&_w()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
166class Ew extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class ZP extends Ew{}async function eO(t,e,r){Xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const n=new globalThis.AbortController;return e>0&&setTimeout(()=>{n.abort(),Xn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){Xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,s.name);try{return await r()}finally{Xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,s.name)}}else{if(e===0)throw Xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new ZP(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Xn.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null,"  "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}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 r()}}))}function tO(){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)}}function Sw(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function rO(t){return parseInt(t,16)}function nO(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,n=>n.toString(16).padStart(2,"0")).join("")}function sO(t){var e;const{chainId:r,domain:n,expirationTime:s,issuedAt:o=new Date,nonce:i,notBefore:a,requestId:l,resources:u,scheme:c,uri:h,version:f}=t;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
167`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const d=Sw(t.address),y=c?`${c}://${n}`:n,v=t.statement?`${t.statement}
168`:"",w=`${y} wants you to sign in with your Ethereum account:
169${d}
170
171${v}`;let g=`URI: ${h}
172Version: ${f}
173Chain ID: ${r}${i?`
174Nonce: ${i}`:""}
175Issued At: ${o.toISOString()}`;if(s&&(g+=`
176Expiration Time: ${s.toISOString()}`),a&&(g+=`
177Not Before: ${a.toISOString()}`),l&&(g+=`
178Request ID: ${l}`),u){let p=`
179Resources:`;for(const m of u){if(!m||typeof m!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${m}`);p+=`
180- ${m}`}g+=p}return`${w}
181${g}`}class be extends Error{constructor({message:e,code:r,cause:n,name:s}){var o;super(e,{cause:n}),this.__isWebAuthnError=!0,this.name=(o=s??(n instanceof Error?n.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.code=r}}class Ya extends be{constructor(e,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:e}),this.name="WebAuthnUnknownError",this.originalError=r}}function oO({error:t,options:e}){var r,n,s;const{publicKey:o}=e;if(!o)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new be({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((r=o.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new be({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((n=o.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new be({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((s=o.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new be({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new be({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new be({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return o.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new be({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new be({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const i=window.location.hostname;if(kw(i)){if(o.rp.id!==i)return new be({message:`The RP ID "${o.rp.id}
181" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new be({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new be({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new be({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new be({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function iO({error:t,options:e}){const{publicKey:r}=e;if(!r)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new be({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new be({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const n=window.location.hostname;if(kw(n)){if(r.rpId!==n)return new be({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new be({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new be({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new be({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class aO{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const lO=new aO;function uO(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:r,excludeCredentials:n}=t,s=Xs(t,["challenge","user","excludeCredentials"]),o=Cs(e).buffer,i=Object.assign(Object.assign({},r),{id:Cs(r.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:o,user:i});if(n&&n.length>0){a.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const u=n[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:Cs(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function cO(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:r}=t,n=Xs(t,["challenge","allowCredentials"]),s=Cs(e).buffer,o=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){o.allowCredentials=new Array(r.length);for(let i=0;i<r.length;i++){const a=r[i];o.allowCredentials[i]=Object.assign(Object.assign({},a),{id:Cs(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return o}function dO(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t;return{id:t.id,rawId:t.id,response:{attestationObject:xn(new Uint8Array(t.response.attestationObject)),clientDataJSON:xn(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function hO(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t,n=t.getClientExtensionResults(),s=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:xn(new Uint8Array(s.authenticatorData)),clientDataJSON:xn(new Uint8Array(s.clientDataJSON)),signature:xn(new Uint8Array(s.signature)),userHandle:s.userHandle?xn(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function kw(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function om(){var t,e;return!!(Pe()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.get)=="function")}async function fO(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Ya("Browser returned unexpected credential type",e)}:{data:null,error:new Ya("Empty credential response",e)}}catch(e){return{data:null,error:oO({error:e,options:t})}}}async function pO(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Ya("Browser returned unexpected credential type",e)}:{data:null,error:new Ya("Empty credential response",e)}}catch(e){return{data:null,error:iO({error:e,options:t})}}}const mO={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},gO={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Xa(...t){const e=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of t)if(s)for(const o in s){const i=s[o];if(i!==void 0)if(Array.isArray(i))n[o]=i;else if(r(i))n[o]=i;else if(e(i)){const a=n[o];e(a)?n[o]=Xa(a,i):n[o]=Xa(i)}else n[o]=i}return n}function vO(t,e){return Xa(mO,t,e||{})}function yO(t,e){return Xa(gO,t,e||{})}class wO{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:r,friendlyName:n,signal:s},o){try{const{data:i,error:a}=await this.client.mfa.challenge({factorId:e,webauthn:r});if(!i)return{data:null,error:a};const l=s??lO.createNewAbortSignal();if(i.webauthn.type==="create"){const{user:u}=i.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${n}`),u.displayName||(u.displayName=u.name)}
181switch(i.webauthn.type){case"create":{const u=vO(i.webauthn.credential_options.publicKey,o==null?void 0:o.create),{data:c,error:h}=await fO({publicKey:u,signal:l});return c?{data:{factorId:e,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:c}},error:null}:{data:null,error:h}}case"request":{const u=yO(i.webauthn.credential_options.publicKey,o==null?void 0:o.request),{data:c,error:h}=await pO(Object.assign(Object.assign({},i.webauthn.credential_options),{publicKey:u,signal:l}));return c?{data:{factorId:e,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:c}},error:null}:{data:null,error:h}}}}catch(i){return U(i)?{data:null,error:i}:{data:null,error:new yn("Unexpected error in challenge",i)}}}async _verify({challengeId:e,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:e,webauthn:n})}async _authenticate({factorId:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},o){if(!r)return{data:null,error:new ti("rpId is required for WebAuthn authentication")};try{if(!om())return{data:null,error:new yn("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this.challenge({factorId:e,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:o});if(!i)return{data:null,error:a};const{webauthn:l}=i;return this._verify({factorId:e,challengeId:i.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(i){return U(i)?{data:null,error:i}:{data:null,error:new yn("Unexpected error in authenticate",i)}}}async _register({friendlyName:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},o){if(!r)return{data:null,error:new ti("rpId is required for WebAuthn registration")};try{if(!om())return{data:null,error:new yn("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this._enroll({friendlyName:e});if(!i)return await this.client.mfa.listFactors().then(c=>{var h;return(h=c.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===e&&f.status!=="unverified")}).then(c=>c?this.client.mfa.unenroll({factorId:c==null?void 0:c.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:i.id,friendlyName:i.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:o});return l?this._verify({factorId:i.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(i){return U(i)?{data:null,error:i}:{data:null,error:new yn("Unexpected error in register",i)}}}}tO();const bO={url:gP,storageKey:vP,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:yP,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function im(t,e,r){return await r()}const Zn={};class ri{get jwks(){var e,r;return(r=(e=Zn[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(e){Zn[this.storageKey]=Object.assign(Object.assign({},Zn[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,r;return(r=(e=Zn[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Zn[this.storageKey]=Object.assign(Object.assign({},Zn[this.storageKey]),{cachedAt:e})}constructor(e){var r,n,s;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;const o=Object.assign(Object.assign({},bO),e);if(this.storageKey=o.storageKey,this.instanceID=(r=ri.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,ri.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&Pe()){const i=`${this._logPrefix()} 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.`;console.warn(i),this.logDebugMessages&&console.trace(i)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.admin=new XP({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=xw(o.fetch),this.lock=o.lock||im,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,o.lock?this.lock=o.lock:Pe()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=eO:this.lock=im,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),webauthn:new wO(this)}
181,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:_w()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=sm(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=sm(this.memoryStorage)),Pe()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${yw}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{let r={},n="none";if(Pe()&&(r=jP(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Pe()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:o}=await this._getSessionFromURL(r,n);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),SP(o)){const l=(e=o.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:o}}return await this._removeSession(),{error:o}}const{session:i,redirectType:a}=s;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(r){return U(r)?this._returnResult({error:r}):this._returnResult({error:new yn("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var r,n,s;try{const o=await B(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:Tt}),{data:i,error:a}=o;if(a||!i)return this._returnResult({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)),this._returnResult({data:{user:u,session:l},error:null})}catch(o){if(U(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signUp(e){var r,n,s;try{let o;if("email"in e){const{email:c,password:h,options:f}=e;let d=null,y=null;this.flowType==="pkce"&&([d,y]=await Jn(this.storage,this.storageKey)),o=await B(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:c,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:d,code_challenge_method:y},xform:Tt})}else if("phone"in e){const{phone:c,password:h,options:f}=e;o=await B(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Tt})}else throw new Qi("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return this._returnResult({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)),this._returnResult({data:{user:u,session:l},error:null})}catch(o){if(U(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithPassword(e){try{let r;if("email"in e){const{email:o,password:i,options:a}=e;r=await B(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:rm})}else if("phone"in e){const{phone:o,password:i,options:a}=e;r=await B(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:rm})}else throw new Qi("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const o=new Qn;return this._returnResult({data:{user:null,session:null},error:o})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(U(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(e){var r,n,s,o;return await this._handleProviderSignIn(e.provider,{redirectTo:(r=e.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=e.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=e.options)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:r}=e;switch(r){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(e){var r,n,s,o,i,a,l,u,c,h,f;let d,y;if("message"in e)d=e.message,y=e.signature;else{const{chain:v,wallet:w,statement:g,options:p}=e;let m;if(Pe())if(typeof w=="object")m=w;else{const j=window;if("ethereum"in j&&typeof j.ethereum=="object"&&"request"in j.ethereum&&typeof j.ethereum.request=="function")m=j.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(p!=null&&p.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");m=w}const x=new URL((r=p==null?void 0:p.url)!==null&&r!==void 0?r:window.location.href),E=await m.request({method:"eth_requestAccounts"}).then(j=>j).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!E||E.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const S=Sw(E[0]);
181let k=(n=p==null?void 0:p.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!k){const j=await m.request({method:"eth_chainId"});k=rO(j)}const P={domain:x.host,address:S,statement:g,uri:x.href,version:"1",chainId:k,nonce:(s=p==null?void 0:p.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(i=(o=p==null?void 0:p.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&i!==void 0?i:new Date,expirationTime:(a=p==null?void 0:p.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=p==null?void 0:p.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=p==null?void 0:p.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=p==null?void 0:p.signInWithEthereum)===null||c===void 0?void 0:c.resources};d=sO(P),y=await m.request({method:"personal_sign",params:[nO(d),S]})}try{const{data:v,error:w}=await B(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:d,signature:y},!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Tt});if(w)throw w;if(!v||!v.session||!v.user){const g=new Qn;return this._returnResult({data:{user:null,session:null},error:g})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:w})}catch(v){if(U(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async signInWithSolana(e){var r,n,s,o,i,a,l,u,c,h,f,d;let y,v;if("message"in e)y=e.message,v=e.signature;else{const{chain:w,wallet:g,statement:p,options:m}=e;let x;if(Pe())if(typeof g=="object")x=g;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))x=S.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=g}const E=new URL((r=m==null?void 0:m.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in x&&x.signIn){const S=await x.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},m==null?void 0:m.signInWithSolana),{version:"1",domain:E.host,uri:E.href}),p?{statement:p}:null));let k;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")k=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)k=S;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)y=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),v=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in x)||typeof x.signMessage!="function"||!("publicKey"in x)||typeof x!="object"||!x.publicKey||!("toBase58"in x.publicKey)||typeof x.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${E.host} wants you to sign in with your Solana account:`,x.publicKey.toBase58(),...p?["",p,""]:[""],"Version: 1",`URI: ${E.href}`,`Issued At: ${(s=(n=m==null?void 0:m.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=m==null?void 0:m.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${m.signInWithSolana.notBefore}`]:[],...!((i=m==null?void 0:m.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${m.signInWithSolana.expirationTime}`]:[],...!((a=m==null?void 0:m.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${m.signInWithSolana.chainId}`]:[],...!((l=m==null?void 0:m.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${m.signInWithSolana.nonce}`]:[],...!((u=m==null?void 0:m.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${m.signInWithSolana.requestId}`]:[],...!((h=(c=m==null?void 0:m.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||h===void 0)&&h.length?["Resources",...m.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(`
182`);const S=await x.signMessage(new TextEncoder().encode(y),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=S}}try{const{data:w,error:g}=await B(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:xn(v)},!((f=e.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(d=e.options)===null||d===void 0?void 0:d.captchaToken}}:null),xform:Tt});if(g)throw g;if(!w||!w.session||!w.user){const p=new Qn;return this._returnResult({data:{user:null,session:null},error:p})}return w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),this._returnResult({data:Object.assign({},w),error:g})}catch(w){if(U(w))return this._returnResult({data:{user:null,session:null},error:w});throw w}}async _exchangeCodeForSession(e){const r=await hn(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{const{data:o,error:i}=await B(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:Tt});if(await Tr(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!o||!o.session||!o.user){const a=new Qn;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),this._returnResult({data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(U(o))return this._returnResult({data:{user:null,session:null,redirectType:null},error:o});throw o}}async signInWithIdToken(e){try{const{options:r,provider:n,token:s,access_token:o,nonce:i}=e,a=await B(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Tt}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const c=new Qn;return this._returnResult({data:{user:null,session:null},error:c})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(r){if(U(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(e){var r,n,s,o,i;try{if("email"in e){const{email:a,options:l}=e;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await Jn(this.storage,this.storageKey));const{error:h}=await B(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!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 this._returnResult({data:{user:null,session:null},error:h})}if("phone"in e){const{phone:a,options:l}=e,{data:u,error:c}=await B(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!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 this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c})}throw new Qi("You must provide either an email or phone number.")}catch(a){if(U(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(e){var r,n;try{let s,o;"options"in e&&(s=(r=e.options)===null||r===void 0?void 0:r.redirectTo,o=(n=e.options)===null||n===void 0?void 0:n.captchaToken);const{data:i,error:a}=await B(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:Tt});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(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(U(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(e){var r,n,s,o,i;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await Jn(this.storage,this.storageKey));const u=await B(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(n=(r=e.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:QP});return!((o=u.data)===null||o===void 0)&&o.url&&Pe()&&!(!((i=e.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(U(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;if(n)throw n;if(!r)throw new kt;const{error:s}=await B(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(e){if(U(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const r=`${this.url}/resend`;if("email"in e){const{email:n,type:s,options:o}=e,{error:i}=await B(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:i})}else if("phone"in e){const{phone:n,type:s,options:o}=e,{data:i,error:a}=await B(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a})}throw new Qi("You must provide either an email or phone number and a type")}catch(r){if(U(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(e,r){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await e(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const r=await hn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?e=r:(this._debug("#getSession()","session from storage is not val
182id"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=e.expires_at?e.expires_at*1e3-Date.now()<Su:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.userStorage){const i=await hn(this.userStorage,this.storageKey+"-user");i!=null&&i.user?e.user=i.user:e.user=Cu()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const i={value:this.suppressGetSessionWarning};e.user=WP(e.user,i),i.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:s,error:o}=await this._callRefreshToken(e.refresh_token);return o?this._returnResult({data:{session:null},error:o}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await B(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:jr}):await this._useSession(async r=>{var n,s,o;const{data:i,error:a}=r;if(a)throw a;return!(!((n=i.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new kt}:await B(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:jr})})}catch(r){if(U(r))return EP(r)&&(await this._removeSession(),await Tr(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(e,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,r))}async _updateUser(e,r={}){try{return await this._useSession(async n=>{const{data:s,error:o}=n;if(o)throw o;if(!s.session)throw new kt;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await Jn(this.storage,this.storageKey));const{data:u,error:c}=await B(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:jr});if(c)throw c;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),this._returnResult({data:{user:i.user},error:null})})}catch(n){if(U(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new kt;const r=Date.now()/1e3;let n=r,s=!0,o=null;const{payload:i}=Tu(e.access_token);if(i.exp&&(n=i.exp,s=n<=r),s){const{data:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(e.access_token);if(l)throw l;o={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return this._returnResult({data:{user:o.user,session:o},error:null})}catch(r){if(U(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async r=>{var n;if(!e){const{data:i,error:a}=r;if(a)throw a;e=(n=i.session)!==null&&n!==void 0?n:void 0}if(!(e!=null&&e.refresh_token))throw new kt;const{data:s,error:o}=await this._callRefreshToken(e.refresh_token);return o?this._returnResult({data:{user:null,session:null},error:o}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(U(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(e,r){try{if(!Pe())throw new Ji("No browser detected.");
182if(e.error||e.error_description||e.error_code)throw new Ji(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new Qp("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Ji("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Qp("No code detected.");const{data:p,error:m}=await this._exchangeCodeForSession(e.code);if(m)throw m;const x=new URL(window.location.href);return x.searchParams.delete("code"),window.history.replaceState(window.history.state,"",x.toString()),{data:{session:p.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:u}=e;if(!o||!a||!i||!u)throw new Ji("No session defined in URL");const c=Math.round(Date.now()/1e3),h=parseInt(a);let f=c+h;l&&(f=parseInt(l));const d=f-c;d*1e3<=rs&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${d}s, should have been closer to ${h}s`);const y=f-h;c-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,f,c):c-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,f,c);const{data:v,error:w}=await this._getUser(o);if(w)throw w;const g={provider_token:n,provider_refresh_token:s,access_token:o,expires_in:h,expires_at:f,refresh_token:i,token_type:u,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:e.type},error:null})}catch(n){if(U(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const r=await hn(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&r)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({error:o});const i=(n=s.session)===null||n===void 0?void 0:n.access_token;if(i){const{error:a}=await this.admin.signOut(i,e);if(a&&!(xP(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return e!=="others"&&(await this._removeSession(),await Tr(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const r=AP(),n={id:r,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async r=>{var n,s;try{const{data:{session:o},error:i}=r;if(i)throw i;await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",e,"session",o)}catch(o){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",o),console.error(o)}})}async resetPasswordForEmail(e,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await Jn(this.storage,this.storageKey,!0));try{return await B(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(o){if(U(o))return this._returnResult({data:null,error:o});throw o}}async getUserIdentities(){var e;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(e=r.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var r;try{const{data:n,error:s}=await this._useSession(async o=>{var i,a,l,u,c;const{data:h,error:f}=o;if(f)throw f;const d=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(i=e.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await B(this.fetch,"GET",d,{headers:this.headers,jwt:(c=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return Pe()&&!(!((r=e.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:e.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(U(n))return this._returnResult({data:{provider:e.provider,url:null},error:n});throw n}}async linkIdentityIdToken(e){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:o}}=r;if(s)throw s;const{options:i,provider:a,token:l,access_token:u,nonce:c}=e,h=await B(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=o==null?void 0:o.access_token)!==null&&n!==void 0?n:void 0,body:{provider:a,id_token:l,access_token:u,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:Tt}),{data:f,error:d}=h;return d?this._returnResult({data:{user:null,session:null},error:d}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new Qn}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:d}))}catch(s){if(U(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(e){try{return await this._useSession(async r=>{var n,s;const{data:o,error:i}=r;if(i)throw i;
182return await B(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(n=o.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(e){const r=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await $P(async s=>(s>0&&await IP(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await B(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Tt})),(s,o)=>{const i=200*Math.pow(2,s);return o&&ku(o)&&Date.now()+i-n<rs})}catch(n){if(this._debug(r,"error",n),U(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",r,"url",n),Pe()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await hn(this.storage,this.storageKey);if(s&&this.userStorage){let i=await hn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:s.user},await ns(this.userStorage,this.storageKey+"-user",i)),s.user=(e=i==null?void 0:i.user)!==null&&e!==void 0?e:Cu()}else if(s&&!s.user&&!s.user){const i=await hn(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(s.user=i.user,await Tr(this.storage,this.storageKey+"-user"),await ns(this.storage,this.storageKey,s)):s.user=Cu()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const o=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Su;if(this._debug(n,`session has${o?"":" not"} expired with margin of ${Su}s`),o){if(this.autoRefreshToken&&s.refresh_token){const{error:i}=await this._callRefreshToken(s.refresh_token);i&&(console.error(i),ku(i)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(s.access_token);!a&&(i!=null&&i.user)?(s.user=i.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(n,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(e){var r,n;if(!e)throw new kt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Al;const{data:o,error:i}=await this._refreshAccessToken(e);if(i)throw i;if(!o.session)throw new kt;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={data:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),U(o)){const i={data:null,error:o};return ku(o)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(i),i}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,r,n=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:r});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(e,r)}catch(l){o.push(l)}});if(await Promise.all(i),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const r=Object.assign({},e),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await ns(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const o=em(s);await ns(this.storage,this.storageKey,o)}else{const s=em(r);await ns(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await Tr(this.storage,this.storageKey),await Tr(this.storage,this.storageKey+"-code-verifier"),await Tr(this.storage,this.storageKey+"-user"),this.userStorage&&await Tr(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Pe()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
182catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),rs);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-e)/rs);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${rs}ms, refresh threshold is ${Yc} ticks`),s<=Yc&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof Ew)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Pe()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const r=`#_onVisibilityChanged(${e})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[o,i]=await Jn(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const o=new URLSearchParams(n.queryParams);s.push(o.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;return o?this._returnResult({data:null,error:o}):await B(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(e){try{return await this._useSession(async r=>{var n,s;const{data:o,error:i}=r;if(i)return this._returnResult({data:null,error:i});const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:l,error:u}=await B(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=o==null?void 0:o.session)===null||n===void 0?void 0:n.access_token});return u?this._returnResult({data:null,error:u}):(e.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?dO(e.webauthn.credential_response):hO(e.webauthn.credential_response)})}:{code:e.code}),{data:a,error:l}=await B(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:i,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=await B(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});if(i.error)return i;const{data:a}=i;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:uO(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:cO(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(e){const{data:r,error:n}=await this._challenge({factorId:e.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:e.factorId,challengeId:r.id,code:e.code})}async _listFactors(){var e;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const o of(e=r==null?void 0:r.factors)!==null&&e!==void 0?e:[])s.all.push(o),o.status==="verified"&&s[o.factor_type].push(o);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var e,r;const{data:{session:n},error:s}
182=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Tu(n.access_token);let i=null;o.aal&&(i=o.aal);let a=i;((r=(e=n.user.factors)===null||e===void 0?void 0:e.filter(c=>c.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(a="aal2");const u=o.amr||[];return{data:{currentLevel:i,nextLevel:a,currentAuthenticationMethods:u},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await B(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new kt})})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new kt});const i=await B(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&Pe()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new kt});const i=await B(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&Pe()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(e,r={keys:[]}){let n=r.keys.find(a=>a.kid===e);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(a=>a.kid===e),n&&this.jwks_cached_at+bP>s)return n;const{data:o,error:i}=await B(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=s,n=o.keys.find(a=>a.kid===e),!n)?null:n}async getClaims(e,r={}){try{let n=e;if(!n){const{data:d,error:y}
182=await this.getSession();if(y||!d.session)return this._returnResult({data:null,error:y});n=d.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:l}}=Tu(n);r!=null&&r.allowExpired||BP(o.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!u){const{error:d}=await this.getUser(n);if(d)throw d;return{data:{claims:o,header:s,signature:i},error:null}}const c=HP(s.alg),h=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,h,i,OP(`${a}.${l}`)))throw new ed("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}}}ri.nextInstanceID={};const _O=ri;class xO extends _O{constructor(e){super(e)}}class EO{constructor(e,r,n){var s,o,i;this.supabaseUrl=e,this.supabaseKey=r;const a=mP(e);if(!r)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:aP,realtime:uP,auth:Object.assign(Object.assign({},lP),{storageKey:l}),global:iP},c=pP(n??{},u);this.storageKey=(s=c.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=c.global.headers)!==null&&o!==void 0?o:{},c.accessToken?(this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(h,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=c.auth)!==null&&i!==void 0?i:{},this.headers,c.global.fetch),this.fetch=hP(r,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.accessToken&&this.accessToken().then(h=>this.realtime.setAuth(h)).catch(h=>console.warn("Failed to set initial Realtime auth token:",h)),this.rest=new gC(new URL("rest/v1",a).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new nP(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new fC(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,r={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,r,n)}channel(e,r={config:{}}){return this.realtime.channel(e,r)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e,r;if(this.accessToken)return await this.accessToken();const{data:n}=await this.auth.getSession();return(r=(e=n.session)===null||e===void 0?void 0:e.access_token)!==null&&r!==void 0?r:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:r,detectSessionInUrl:n,storage:s,userStorage:o,storageKey:i,flowType:a,lock:l,debug:u,throwOnError:c},h,f){const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new xO({url:this.authUrl.href,headers:Object.assign(Object.assign({},d),h),storageKey:i,autoRefreshToken:e,persistSession:r,detectSessionInUrl:n,storage:s,userStorage:o,flowType:a,lock:l,debug:u,throwOnError:c,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(y=>y.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new NC(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(e,r,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const SO=(t,e,r)=>new EO(t,e,r);function kO(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}kO()&&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");function TO(){var w,g;if(typeof window>"u")return;const t=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(p=>t===p||t.endsWith("."+p)),n="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=r?((w=t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+n+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:w[1])??((g=t.match(new RegExp("^("+n+")(?=[.-])","i")))==null?void 0:g[1]):void 0,o=window.parent&&window.parent!==window;if(!s||!o)return localStorage;const i=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),a=i?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=l&&a.test(l)?[l]:i?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],c="lovable-preview-auth:result",h=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),d=(p,m,x)=>new Promise(E=>{const S=f();let k=!1,P;const j=$=>{k||(k=!0,clearTimeout(P),window.removeEventListener("message",N),E($))},N=$=>{if(u.indexOf($.origin)<0)return;const V=$.data;V&&V.type===c&&V.requestId===S&&j(V)};window.addEventListener("message",N);const z={type:p,requestId:S,projectId:s,key:m};x!==void 0&&(z.value=x);for(const $ of u)window.parent.postMessage(z,$);P=setTimeout(()=>j(null),h)});let y=!0;const v=250;return{getItem:async p=>{let m=await d("lovable-preview-auth:get",p);return!m&&y&&(await new Promise(x=>setTimeout(x,v)),m=await d("lovable-preview-auth:get",p)),y=!1,m&&m.ok&&typeof m.value=="string"?m.value===""?(localStorage.removeItem(p),null):m.value:localStorage.getItem(p)},setItem:(p,m)=>(localStorage.setItem(p,m),d("lovable-preview-auth:set",p,m).then(()=>{})),removeItem:p=>(localStorage.removeItem(p),d("lovable-preview-auth:remove",p).then(()=>{}))}}const CO="https://vvababxyxdcdxmzbrqtd.supabase.co",PO="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InZ2YWJhYnh5eGRjZHhtemJycXRkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjMzNDc3MDcsImV4cCI6MjA3ODkyMzcwN30.zvpd1fFsUerfHpSYcHn5v1pcrLohEeHPYg1tot9HFCI",Za=SO(CO,PO,{auth:{storage:TO(),persistSession:!0,autoRefreshToken:!0}}),kh=()=>{const[t,e]=_.useState(0);return _.useEffect(()=>{const r=Za.channel("online-visitors");return r.on("presence",{event:"sync"},()=>{const n=r.presenceState(),s=Object.keys(n).length;e(s)}).subscribe(async n=>{n==="SUBSCRIBED"&&await r.track({online_at:new Date().toISOString(),user_id:Math.random().toString(36).substring(7)})}),()=>{Za.removeChannel(r)}},[]),b.jsx("footer",{className:"bg-card border-t border-border mt-20",children:b.jsx("div",{className:"container mx-auto px-4 py-8",children:b.jsxs("div",{className:"flex flex-col items-center gap-4",children:[b.jsx("a",{href:"https://huurdanskooien.lovable.app",target:"_blank",rel:"noopener noreferrer",className:"text-foreground hover:text-primary transition-colors duration-300 font-medium",title:"danskooi huren, danskooien huren",children:"Danskooien huren"}),b.jsxs("div",{className:"w-full max-w-xs text-center",children:[b.jsx("h4",{className:"text-sm font-semibold text-foreground mb-2",children:"Onze andere evenementen"}),b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("a",{href:"http://www.dineranddance.nl",target:"_blank",rel:"noopener noreferrer",className:"text-foreground hover:text-primary transition-colors duration-300 font-bold",children:"Diner and Dance"}),b.jsx("a",{href:"http://www.royalbeatz.nl",target:"_blank",rel:"noopener noreferrer",className:"text-foreground hover:text-primary transition-colors duration-300 font-bold",children:"Royal Beatz Outdoor"}),b.jsx("a",{href:"http://www.royalbeatz.nl",target:"_blank",rel:"noopener noreferrer",className:"text-foreground hover:text-primary transition-colors duration-300 font-bold",children:"DJ Contest"})]})]}),b.jsxs("div",{className:"flex items-center gap-2 text-primary",children:[b.jsx(G1,{className:"w-5 h-5"}),b.jsxs("span",{className:"text-sm font-medium",children:[t," ",t===1?"visitor":"visitors"," online"]})]}),b.jsx("h3",{className:"text-xl font-bold text-primary",children:"Gods House Events"}),b.jsxs("p",{className:"text-muted-foreground text-sm",children:["© ",new Date().getFullYear()," Gods House Events. All rights reserved."]})]})})})},OO=()=>{const[t,e]=_.useState({days:0,hours:0,minutes:0,seconds:0});_.useEffect(()=>{const n=new Date("2026-12-19T12:30:00").getTime(),s=()=>{const i=new Date().getTime(),a=n-i;a>0&&e({days:Math.floor(a/(1e3*60*60*24)),hours:Math.floor(a%(1e3*60*60*24)/(1e3*60*60)),minutes:Math.floor(a%(1e3*60*60)/(1e3*60)),seconds:Math.floor(a%(1e3*60)/1e3)})};s();const o=setInterval(s,1e3);return()=>clearInterval(o)},[]);const r=[{label:"Days",value:t.days},{label:"Hours",value:t.hours},{label:"Minutes",value:t.minutes},{label:"Seconds",value:t.seconds}];return b.jsx("div",{className:"grid grid-cols-4 gap-4 md:gap-6",children:r.map(n=>b.jsxs("div",{className:"flex flex-col items-center justify-center p-3 md:p-6 rounded-lg bg-gradient-to-b from-primary/20 to-secondary/10 border border-primary/30 shadow-lg shadow-primary/10",children:[b.jsx("span",{className:"text-2xl md:text-5xl font-bold text-primary tabular-nums",children:String(n.value).padStart(2,"0")}),b.jsx("span",{className:"text-xs md:text-sm text-muted-foreground mt-1 md:mt-2 uppercase tracking-wider",children:n.label})]},n.label))})},Th=()=>{const t="+31645199212",e="Hi! I need help with Gods House Events.",r=()=>{const n=`https://wa.me/${t.replace(/[^0-9]/g,"")}?text=${encodeURIComponent(e)}`;window.open(n,"_blank")};return b.jsxs(Mn,{onClick:r,className:"fixed bottom-6 right-6 z-50 h-14 roun
182ded-full shadow-lg shadow-primary/30 bg-primary hover:bg-primary/90 text-primary-foreground px-6 flex items-center justify-center gap-2","aria-label":"Contact us on WhatsApp",children:[b.jsx(K1,{className:"h-6 w-6"}),b.jsx("span",{className:"font-semibold",children:"Live Help"})]})},Tw=({title:t="Invite a Friend"})=>{const e=window.location.href,r=(s,o)=>{window.open(o,"_blank","width=600,height=400"),Fv({title:"Sharing...",description:`Opening ${s} share dialog`})},n=[{name:"Facebook",icon:vy,url:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,color:"hover:text-[#1877F2]"},{name:"Instagram",icon:yy,url:"https://www.instagram.com/",color:"hover:text-[#E4405F]"}];return b.jsxs("div",{className:"w-full max-w-2xl animate-fade-in",children:[b.jsx("h3",{className:"text-xl md:text-2xl font-bold text-center text-foreground mb-4",children:t}),b.jsx("div",{className:"flex flex-wrap gap-3 justify-center items-center",children:n.map(s=>{const o=s.icon;return b.jsxs(Mn,{variant:"outline",size:"lg",onClick:()=>r(s.name,s.url),className:`border-primary/30 hover:border-primary hover:bg-primary/10 transition-all ${s.color}`,"aria-label":`Share on ${s.name}`,children:[b.jsx(o,{className:"w-5 h-5 mr-2"}),s.name]},s.name)})})]})},am="/assets/the-end-of-2026-poster-CMBMlnib.jpg",RO=1,AO="9bae8d37-f606-419e-b37c-789f8e25aca6",jO="87536849-6083-4387-8c86-fd6ac3c9ad67",NO="/__l5e/assets-v1/9bae8d37-f606-419e-b37c-789f8e25aca6/promovideo.mp4",IO="a/v1/87536849-6083-4387-8c86-fd6ac3c9ad67/9bae8d37-f606-419e-b37c-789f8e25aca6/promovideo.mp4",$O="promovideo.mp4",LO=15195434,DO="video/mp4",MO="2026-09-01T06:46:48Z",UO={version:RO,asset_id:AO,project_id:jO,url:NO,r2_key:IO,original_filename:$O,size:LO,content_type:DO,created_at:MO},lm="promovideo",FO=()=>{const[t,e]=_.useState(null),r=_.useRef(!1);_.useEffect(()=>{Za.from("video_stats").select("views").eq("id",lm).maybeSingle().then(({data:s})=>{s&&e(Number(s.views))})},[]);const n=async()=>{if(r.current)return;r.current=!0;const{data:s}=await Za.rpc("increment_video_views",{_id:lm});s!=null&&e(Number(s))};return b.jsxs("div",{className:"min-h-screen bg-background",children:[b.jsx(mh,{}),b.jsxs("main",{className:"pt-20",children:[b.jsx("section",{className:"py-8 md:py-12",children:b.jsx("div",{className:"container mx-auto px-4",children:b.jsxs("div",{className:"max-w-3xl mx-auto flex flex-col items-center gap-8",children:[b.jsx("div",{className:"w-full rounded-lg overflow-hidden shadow-2xl shadow-primary/20 border border-primary/20",children:b.jsx("video",{src:UO.url,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,controls:!0,preload:"auto",onPlay:n,className:"w-full h-auto",poster:am,children:"Je browser ondersteunt geen video weergave."})}),b.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[b.jsx(V1,{className:"w-4 h-4 text-primary"}),b.jsxs("span",{className:"text-sm font-medium",children:[t===null?"…":t.toLocaleString("nl-NL")," keer bekeken"]})]}),b.jsx(Tw,{title:"Deel deze Gods House The End Of 2026 video"}),b.jsx("a",{href:"/kids-edition",className:"inline-block bg-primary hover:bg-primary/90 text-primary-foreground font-bold px-6 py-3 rounded-lg transition-colors duration-300",children:"Gods House The Kids Edition"}),b.jsxs("div",{className:"w-full max-w-4xl animate-fade-in",children:[b.jsx("h3",{className:"text-xl md:text-2xl font-bold text-center text-foreground mb-4",children:"Koop je tickets"}),b.jsx("div",{className:"w-full rounded-lg overflow-hidden shadow-2xl shadow-primary/20 border border-primary/20 bg-black",children:b.jsx("iframe",{width:"100%",height:"430",scrolling:"yes",frameBorder:"0",src:"https://www.nowonlinetickets.nl/Shop/EventDetails/EC4A925ADCE0299E3F84802618DFFB8A?bgColor=000000&iframe=true&iframeSource=event",title:"Ticketverkoop The End of 2026",className:"w-full min-h-[430px]"})})]})]})})}),b.jsxs("section",{className:"relative min-h-[calc(100vh-5rem)] py-12 overflow-hidden",children:[b.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-cyan-dark/30 via-background to-background"}),b.jsx("div",{className:"absolute inset-0 opacity-20",style:{background:"radial-gradient(ellipse at center top, hsl(190 80% 60% / 0.3) 0%, transparent 60%)"}}),b.jsxs("div",{className:"container mx-auto px-4 relative z-10 flex flex-col items-center justify-center min-h-[calc(100vh-10rem)] gap-8",children:[b.jsx("div",{className:"w-full max-w-4xl animate-fade-in",children:b.jsx("img",{src:am,alt:"Gods House Events - The End of 2026 - 19 December 2026",className:"w-full h-auto rounded-lg shadow-2xl shadow-primary/30 hover:shadow-
182primary/40 transition-shadow duration-500"})}),b.jsxs("div",{className:"w-full max-w-2xl animate-fade-in",children:[b.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-center text-foreground mb-6",children:"Event Starts In"}),b.jsx(OO,{})]})]})]})]}),b.jsx(kh,{}),b.jsx(Th,{})]})},zO=()=>b.jsxs("div",{className:"min-h-screen bg-background",children:[b.jsx(mh,{}),b.jsx("main",{className:"pt-20",children:b.jsx("section",{className:"container mx-auto px-4 py-12",children:b.jsxs("div",{className:"max-w-4xl mx-auto animate-fade-in",children:[b.jsxs("div",{className:"flex justify-between items-center mb-8",children:[b.jsx(Mn,{variant:"outline",className:"gap-2",asChild:!0,children:b.jsxs("a",{href:"/",children:[b.jsx(W1,{className:"w-4 h-4"}),"Home"]})}),b.jsxs(Mn,{variant:"outline",className:"gap-2",onClick:()=>"To edit this page, go to Dev Mode and open src/pages/Festivalverhuur.tsx",children:[b.jsx(q1,{className:"w-4 h-4"}),"Edit Page"]})]}),b.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-center text-primary mb-8",children:"Festivalverhuur"}),b.jsx("div",{className:"prose prose-invert max-w-none mb-12",children:b.jsx("p",{className:"text-lg text-foreground/80 text-center",children:"Huur danskooien via Gods House Events"})}),b.jsxs("div",{className:"mb-12",children:[b.jsx("div",{className:"rounded-lg overflow-hidden shadow-lg shadow-primary/10",children:b.jsx("div",{className:"bg-card h-64 flex items-center justify-center border border-border",children:b.jsx("p",{className:"text-muted-foreground",children:"Add your first image here"})})}),b.jsx("p",{className:"mt-4 text-foreground/70 text-center",children:"Add your image caption or description here"}),b.jsx("div",{className:"text-center mt-4",children:b.jsx("a",{href:"/rental-form",className:"inline-block bg-primary hover:bg-primary/90 text-primary-foreground font-semibold px-6 py-2 rounded-lg transition-colors duration-300",children:"Request Rental"})})]}),b.jsxs("div",{className:"prose prose-invert max-w-none mb-12",children:[b.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"Section Title"}),b.jsx("p",{className:"text-foreground/80",children:"Add your detailed text content here. You can include multiple paragraphs, lists, or any other content you need."})]}),b.jsxs("div",{className:"mb-12",children:[b.jsx("div",{className:"rounded-lg overflow-hidden shadow-lg shadow-primary/10",children:b.jsx("div",{className:"bg-card h-64 flex items-center justify-center border border-border",children:b.jsx("p",{className:"text-muted-foreground",children:"Add your second image here"})})}),b.jsx("p",{className:"mt-4 text-foreground/70 text-center",children:"Add your image caption or description here"}),b.jsx("div",{className:"text-center mt-4",children:b.jsx("a",{href:"/rental-form",className:"inline-block bg-primary hover:bg-primary/90 text-primary-foreground font-semibold px-6 py-2 rounded-lg transition-colors duration-300",children:"Request Rental"})})]}),b.jsxs("div",{className:"prose prose-invert max-w-none mb-12",children:[b.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"Another Section"}),b.jsx("p",{className:"text-foreground/80",children:"Add more content as needed. This template is fully editable."})]}),b.jsx("div",{className:"text-center mt-16",children:b.jsx("a",{href:"/",className:"inline-block bg-primary hover:bg-primary/90 text-primary-foreground font-semibold px-8 py-3 rounded-lg transition-colors duration-300",children:"Back to Home"})})]})})}),b.jsx(kh,{}),b.jsx(Th,{})]}),BO=()=>(_.useEffect(()=>{const t=document.createElement("script");return t.src="https://cdn.jotfor.ms/s/umd/latest/for-form-embed-handler.js",t.async=!0,document.body.appendChild(t),t.onload=()=>{window.jotformEmbedHandler&&window.jotformEmbedHandler("iframe[id='JotFormIFrame-253267837740061']","https://form.jotform.com/")},()=>{document.body.removeChild(t)}},[]),b.jsx("div",{className:"min-h-screen bg-background",children:b.jsx("iframe",{id:"JotFormIFrame-253267837740061",title:"Verhuur en Reservering",onLoad:()=>window.parent.scrollTo(0,0),allow:"geolocation; microphone; camera; fullscreen;
182 payment",src:"https://form.jotform.com/253267837740061",style:{minWidth:"100%",maxWidth:"100%",height:"100vh",border:"none"},scrolling:"no"})})),HO=1,VO="338dbe86-dbb5-4b1d-a42c-bb8b59443e8b",WO="87536849-6083-4387-8c86-fd6ac3c9ad67",KO="/__l5e/assets-v1/338dbe86-dbb5-4b1d-a42c-bb8b59443e8b/Lady_Tess.png",qO="a/v1/87536849-6083-4387-8c86-fd6ac3c9ad67/338dbe86-dbb5-4b1d-a42c-bb8b59443e8b/Lady_Tess.png",GO="Lady_Tess.png",QO=1965203,JO="image/png",YO="2026-09-09T14:07:43Z",Cw={version:HO,asset_id:VO,project_id:WO,url:KO,r2_key:qO,original_filename:GO,size:QO,content_type:JO,created_at:YO},XO=1,ZO="4cb1d8c3-8f6a-4a37-8b62-49050772997e",eR="87536849-6083-4387-8c86-fd6ac3c9ad67",tR="/__l5e/assets-v1/4cb1d8c3-8f6a-4a37-8b62-49050772997e/Evy_solo_music.png",rR="a/v1/87536849-6083-4387-8c86-fd6ac3c9ad67/4cb1d8c3-8f6a-4a37-8b62-49050772997e/Evy_solo_music.png",nR="Evy_solo_music.png",sR=1775788,oR="image/png",iR="2026-09-09T14:07:49Z",aR={version:XO,asset_id:ZO,project_id:eR,url:tR,r2_key:rR,original_filename:nR,size:sR,content_type:oR,created_at:iR},lR=1,uR="7ce076cb-751b-4515-80e2-7edcb380fdf5",cR="87536849-6083-4387-8c86-fd6ac3c9ad67",dR="/__l5e/assets-v1/7ce076cb-751b-4515-80e2-7edcb380fdf5/Essociaal_1.mp4",hR="a/v1/87536849-6083-4387-8c86-fd6ac3c9ad67/7ce076cb-751b-4515-80e2-7edcb380fdf5/Essociaal_1.mp4",fR="Essociaal_1.mp4",pR=18229756,mR="video/mp4",gR="2026-09-09T14:08:00Z",vR={version:lR,asset_id:uR,project_id:cR,url:dR,r2_key:hR,original_filename:fR,size:pR,content_type:mR,created_at:gR},yR=1,wR="7a396bd3-0c3e-4396-b682-f4b7cd4f8fd0",bR="87536849-6083-4387-8c86-fd6ac3c9ad67",_R="/__l5e/assets-v1/7a396bd3-0c3e-4396-b682-f4b7cd4f8fd0/Logan.mp4",xR="a/v1/87536849-6083-4387-8c86-fd6ac3c9ad67/7a396bd3-0c3e-4396-b682-f4b7cd4f8fd0/Logan.mp4",ER="Logan.mp4",SR=6708064,kR="video/mp4",TR="2026-09-09T14:08:07Z",CR={version:yR,asset_id:wR,project_id:bR,url:_R,r2_key:xR,original_filename:ER,size:SR,content_type:kR,created_at:TR},PR=1,OR="bb540a1d-c3d1-41e8-8a87-571bc8b6b2c9",RR="87536849-6083-4387-8c86-fd6ac3c9ad67",AR="/__l5e/assets-v1/bb540a1d-c3d1-41e8-8a87-571bc8b6b2c9/Duke_solo_music.mp4",jR="a/v1/87536849-6083-4387-8c86-fd6ac3c9ad67/bb540a1d-c3d1-41e8-8a87-571bc8b6b2c9/Duke_solo_music.mp4",NR="Duke_solo_music.mp4",IR=9406203,$R="video/mp4",LR="2026-09-09T14:08:14Z",DR={version:PR,asset_id:OR,project_id:RR,url:AR,r2_key:jR,original_filename:NR,size:IR,content_type:$R,created_at:LR},MR=1,UR="ff6463cb-bd9e-4cad-9077-7df9bc077e97",FR="87536849-6083-4387-8c86-fd6ac3c9ad67",zR="/__l5e/assets-v1/ff6463cb-bd9e-4cad-9077-7df9bc077e97/kids-edition-top.mp4",BR="a/v1/87536849-6083-4387-8c86-fd6ac3c9ad67/ff6463cb-bd9e-4cad-9077-7df9bc077e97/kids-edition-top.mp4",HR="kids-edition-top.mp4",VR=4817168,WR="video/mp4",KR="2026-09-09T14:16:55Z",qR={version:MR,asset_id:UR,project_id:FR,url:zR,r2_key:BR,original_filename:HR,size:VR,content_type:WR,created_at:KR},es=[{type:"image",url:Cw.url,label:"Lady Tess"},{type:"video",url:vR.url,label:"Essociaal"},{type:"image",url:aR.url,label:"Evy"},{type:"video",url:CR.url,label:"Logan"},{type:"video",url:DR.url,label:"Duke"}],GR=6e3,ma=`${window.location.origin}/kids-edition`,td=`${window.location.origin}${Cw.url}`,QR={"@context":"https://schema.org","@type":"Event",name:"Gods House Kids Edition",description:"Gods House Kids Edition op zaterdag 19 december 2026 in Fort Sint Gertrudis, Geertruidenberg. Een festival voor alle leeftijden met de beste DJ's en artiesten!",startDate:"2026-12-19T12:30:00+01:00",endDate:"2026-12-19T23:59:00+01:00",eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",location:{"@type":"Place",name:"Fort Sint Gertrudis",address:{"@type":"PostalAddress",addressLocality:"Geertruidenberg",addressCountry:"NL"}},image:td,url:ma,organizer:{"@type":"Organization",name:"Gods House Events"},offers:{"@type":"Offer",url:"https://godshouse.nl",availability:"https://schema.org/InStock"}},JR=()=>{const[t,e]=_.useState(0),r=_.useRef(null),n=_.useRef(null),s=es[t],o=()=>e(a=>(a+1)%es.length),i=()=>e(a=>(a-1+es.length)%es.length);return _.useEffect(()=>{n.current&&(n.current.volume=.15)},[]),_.useEffect(()=>{if(s.type!=="image")return;const a=setTimeout(()=>e(l=>(l+1)%es.length),GR);return()=>clearTimeout(a)},[t,s.type]),_.useEffect(()=>{s.type==="video"&&r.current&&(r.current.currentTime=0,r.current.play().catch(()=>{}))},[t,s.type]),b.jsxs("div",{className:"min-h-screen bg-background",children:[b.jsxs(Fx,{children:[b.jsx("title",{children:"Gods House Kids Edition - 19 december 2026 | Gods House Events"}),b.jsx("meta",{name:"description",content:"Gods House Kids Edition op zaterdag 19 december 2026 in Fort Sint Gertrudis, Geertruidenberg. Een festival voor alle leeftijden met de beste DJ's en artiesten. Tickets via GODSHOUSE.NL!"}),b.jsx("link",{rel:"canonical",href:ma}),b.jsx("meta",{property:"og:type",content:"website"}),b.jsx("meta",{property:"og:url",content:ma}),b.jsx("meta",{property:"og:title",content:"Gods House Kids Edition - 19 december 2026"}),b.jsx("meta",{property:"og:description",content:"Gods House Kids Edition op zaterdag 19 december 2026 in Fort Sint Gertrudis, Geertruidenberg. Een festival voor alle leeftijden!"}),b.jsx("meta",{property:"og:image",content:td}),b.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),b.jsx("meta",{name:"twitter:url",content:ma}),b.jsx("meta",{name:"twitter:title",content:"Gods House Kids Edition - 19 december 2026"}),b.jsx("meta",{name:"twitter:description",content:"Gods House Kids Edition op zaterdag 19 december 2026 in Fort Sint Gertrudis, Geertruidenberg. Een festival voor alle leeftijden!"}),b.jsx("meta",{name:"twitter:image",content:td}),b.jsx("script",{type:"application/ld+json",children:JSON.stringify(QR)})]}),b.jsx(mh,{}),b.jsx("main",{className:"pt-24",children:b.jsx("section",{className:"container mx-auto px-4 pb-8",children:b.jsxs("div",{className:"max-w-3xl mx-auto flex flex-col items-center gap-6",children:[b.jsx("h1",{className:"text-3xl md:text-5xl font-bold text-center text-primary",children:"Gods House Kids Edition 19 december 2026"}
182),b.jsx("p",{className:"text-center text-foreground/80 text-lg",children:"Fort Sint Gertrudis, Geertruidenberg · 12:15 deuren open | 12:30 start"}),b.jsx("video",{ref:n,src:qR.url,autoPlay:!0,muted:!1,loop:!0,playsInline:!0,controls:!0,className:"w-full rounded-lg overflow-hidden border border-primary/20 shadow-2xl shadow-primary/20 bg-black",children:"Je browser ondersteunt geen video weergave."}),b.jsxs("div",{className:"relative w-full rounded-lg overflow-hidden border border-primary/20 shadow-2xl shadow-primary/20 bg-black",children:[s.type==="image"?b.jsx("img",{src:s.url,alt:`${s.label} - Gods House The Kids Edition, 19 december 2026`,className:"w-full h-auto animate-fade-in"},s.url):b.jsx("video",{ref:r,src:s.url,autoPlay:!0,muted:!0,playsInline:!0,controls:!0,onEnded:o,className:"w-full h-auto animate-fade-in",children:"Je browser ondersteunt geen video weergave."},s.url),b.jsx("button",{onClick:i,"aria-label":"Vorige",className:"absolute left-2 top-1/2 -translate-y-1/2 rounded-full bg-background/70 p-2 text-foreground hover:text-primary transition-colors",children:b.jsx(B1,{className:"w-6 h-6"})}),b.jsx("button",{onClick:o,"aria-label":"Volgende",className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-full bg-background/70 p-2 text-foreground hover:text-primary transition-colors",children:b.jsx(H1,{className:"w-6 h-6"})})]}),b.jsx("div",{className:"flex items-center gap-2",children:es.map((a,l)=>b.jsx("button",{onClick:()=>e(l),"aria-label":a.label,className:`h-2.5 rounded-full transition-all ${l===t?"w-8 bg-primary":"w-2.5 bg-muted"}`},a.url))}),b.jsxs("div",{className:"w-full max-w-3xl rounded-xl border border-primary/20 bg-card/50 p-6 md:p-8 shadow-xl shadow-primary/10",children:[b.jsx("p",{className:"text-center text-2xl md:text-3xl font-extrabold text-primary mb-4",children:"🎉🔥 GODS HOUSE KIDS EDITION! 🔥🎉"}),b.jsxs("p",{className:"text-center text-lg text-foreground/90 mb-4",children:["Zaterdag 19 december is het zover! 🥳",b.jsx("br",{}),"Vanaf 12:30 uur gaat het dak eraf! 🚀"]}),b.jsxs("p",{className:"text-center text-lg text-foreground/90 mb-6",children:["En nee… niet alleen voor 21+! 😉",b.jsx("br",{}),"Deze keer zijn ALLE leeftijden welkom! ❤️"]}),b.jsx("p",{className:"text-center text-foreground/90 mb-6",children:"In de grote zaal van Fort Sint Gertrudis bouwen we een mega dikke GODS HOUSE KIDS EDITION — net zoals we eerder deden in Onze Kerk in Hooge Zwaluwe. En geloof ons… dit wordt weer één groot feest! 🎶💥"}),b.jsx("h2",{className:"text-center text-xl md:text-2xl font-bold text-primary mb-3",children:"🔥 DE LINE-UP LIEGT ER NIET OM: 🔥"}),b.jsxs("ul",{className:"text-center text-lg text-foreground/90 space-y-1 mb-4",children:[b.jsx("li",{children:"🎧 Essociaal"}),b.jsx("li",{children:"🎧 Lady Tess"}),b.jsx("li",{children:"🎧 Sam Yup"}),b.jsx("li",{children:"🎧 The Retro Project"})]}),b.jsx("p",{className:"text-center text-foreground/90 mb-4",children:"En alsof dat nog niet genoeg is komen ook onze jonge gabberhelden gezellig langs! 😈🔥"}),b.jsxs("ul",{className:"text-center text-lg text-foreground/90 space-y-1 mb-6",children:[b.jsx("li",{children:"💥 Gabber Logan"}),b.jsx("li",{children:"💥 Duke"}),b.jsx("li",{children:"💥 Evy"})]}),b.jsx("p",{className:"text-center text-foreground/90 mb-6",children:"Zij komen de dansvloer opzoeken en natuurlijk gaan we flink HAKKUH! 🕺💃🔥"}),b.jsxs("div",{className:"text-center text-lg text-foreground/90 space-y-1 mb-6",children:[b.jsx("p",{children:"⏰ Deuren open: 12:15 uur"}),b.jsx("p",{children:"🚀 Start: 12:30 uur — DIRECT VOL GAS!"})]}),b.jsxs("p",{className:"text-center text-foreground/90 mb-6",children:["Uiteraard houden we rekening met onze jonge bezoekers. ❤️",b.jsx("br",{}),"Het volume wordt aangepast voor de kids, maar dat betekent absoluut niet dat het minder spectaculair wordt!"]}),b.jsxs("ul",{className:"text-center text-lg text-foreground/90 space-y-1 mb-6",children:[b.jsx("li",{children:"✨ Een dikke laser- & lichtshow"}),b.jsx("li",{children:"💃 Danseressen"}),b.jsx("li",{children:"🍭 Lekkers voor de kids"}),b.jsx("li",{children:"🎶 En natuurlijk de vertrouwde Gods House energie!"})]}
182),b.jsx("p",{className:"text-center text-lg text-foreground/90 mb-6",children:"Een middag vol muziek, dansen, licht, gezelligheid en vooral… HEEL VEEL FEEST! 🥳🔥"}),b.jsx("p",{className:"text-center text-lg text-foreground/90 mb-6",children:"👑 Dus trommel je vrienden bij elkaar, trek je dansschoenen aan en kom gezellig naar Gods House Kids Edition!"}),b.jsx("p",{className:"text-center text-xl font-bold text-primary mb-4",children:"BEN JIJ ER OOK BIJ? ❤️🔥"}),b.jsxs("div",{className:"text-center text-lg text-foreground/90 space-y-1",children:[b.jsx("p",{children:"📅 Zaterdag 19 december"}),b.jsx("p",{children:"⏰ 12:15 deuren open | 12:30 start"}),b.jsx("p",{children:"📍 Fort Sint Gertrudis"})]})]}),b.jsxs("p",{className:"text-center text-lg font-semibold text-foreground",children:["Tickets nog verkrijgbaar via"," ",b.jsx("a",{href:"https://godshouse.nl",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"GODSHOUSE.NL"})]}),b.jsx(Mn,{size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-bold gap-2 px-6 py-6 text-lg",asChild:!0,children:b.jsxs("a",{href:"https://godshouse.nl",target:"_blank",rel:"noopener noreferrer",children:[b.jsx(wy,{className:"w-5 h-5"}),"TICKETS"]})}),b.jsx(Tw,{title:"Deel Gods House The Kids Edition"})]})})}),b.jsx(kh,{}),b.jsx(Th,{})]})},YR=()=>{const t=_0();return _.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),b.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",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-muted-foreground",children:"Oops! Page not found"}),b.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},XR=new yT,ZR=()=>b.jsx(bT,{client:XR,children:b.jsxs(Gk,{children:[b.jsx(AE,{}),b.jsx(uS,{}),b.jsx(oC,{children:b.jsxs(rC,{children:[b.jsx(ts,{path:"/",element:b.jsx(FO,{})}),b.jsx(ts,{path:"/festivalverhuur",element:b.jsx(zO,{})}),b.jsx(ts,{path:"/rental-form",element:b.jsx(BO,{})}),b.jsx(ts,{path:"/kids-edition",element:b.jsx(JR,{})}),b.jsx(ts,{path:"*",element:b.jsx(YR,{})})]})})]})});jv(document.getElementById("root")).render(b.jsx(Uv,{children:b.jsx(ZR,{})}));

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.