PageSourceSearch

https://www.drivezeeba.com/assets/index-CKLCCt0v.js

js drivezeeba.com collected 2026-10-04 13:23:21 UTC 489,247 bytes, 235 lines download raw bytes

vendor: 6,390 bytes, lines 1-9
1var o0=Object.defineProperty;var i0=(e,t,n)=>t in e?o0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var jt=(e,t,n)=>i0(e,typeof t!="symbol"?t+"":t,n);function s0(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Bp={exports:{}},ga={},Hp={exports:{}},F={};/**
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 xi=Symbol.for("react.element"),l0=Symbol.for("react.portal"),u0=Symbol.for("react.fragment"),c0=Symbol.for("react.strict_mode"),d0=Symbol.for("react.profiler"),f0=Symbol.for("react.provider"),h0=Symbol.for("react.context"),p0=Symbol.for("react.forward_ref"),m0=Symbol.for("react.suspense"),g0=Symbol.for("react.memo"),v0=Symbol.for("react.lazy"),of=Symbol.iterator;function y0(e){return e===null||typeof e!="object"?null:(e=of&&e[of]||e["@@iterator"],typeof e=="function"?e:null)}var Vp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qp=Object.assign,Kp={};function ro(e,t,n){this.props=e,this.context=t,this.refs=Kp,this.updater=n||Vp}ro.prototype.isReactComponent={};ro.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ro.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gp(){}Gp.prototype=ro.prototype;function Ec(e,t,n){this.props=e,this.context=t,this.refs=Kp,this.updater=n||Vp}var kc=Ec.prototype=new Gp;kc.constructor=Ec;qp(kc,ro.prototype);kc.isPureReactComponent=!0;var sf=Array.isArray,Yp=Object.prototype.hasOwnProperty,xc={current:null},Jp={key:!0,ref:!0,__self:!0,__source:!0};function Qp(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Yp.call(t,r)&&!Jp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:xi,type:e,key:i,ref:s,props:o,_owner:xc.current}}function w0(e,t){return{$$typeof:xi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Cc(e){return typeof e=="object"&&e!==null&&e.$$typeof===xi}function _0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var af=/\/+/g;function Xa(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_0(""+e.key):t.toString(36)}function fs(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case xi:case l0:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Xa(s,0):r,sf(o)?(n="",e!=null&&(n=e.replace(af,"$&/")+"/"),fs(o,t,n,"",function(u){return u})):o!=null&&(Cc(o)&&(o=w0(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(af,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",sf(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Xa(i,a);s+=fs(i,t,n,l,o)}else if(l=y0(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Xa(i,a++),s+=fs(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Di(e,t,n){if(e==null)return e;var r=[],o=0;return fs(e,r,"","",function(i){return t.call(n,i,o++)}),r}function b0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Oe={current:null},hs={transition:null},S0={ReactCurrentDispatcher:Oe,ReactCurrentBatchConfig:hs,ReactCurrentOwner:xc};function Xp(){throw Error("act(...) is not supported in production builds of React.")}F.Children={map:Di,forEach:function(e,t,n){Di(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Di(e,function(){t++}),t},toArray:function(e){return Di(e,function(t){return t})||[]},only:function(e){if(!Cc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};F.Component=ro;F.Fragment=u0;F.Profiler=d0;F.PureComponent=Ec;F.StrictMode=c0;F.Suspense=m0;
vendor: 5,036 bytes, lines 9-25
9F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S0;F.act=Xp;F.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=qp({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=xc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Yp.call(t,l)&&!Jp.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:xi,type:e.type,key:o,ref:i,props:r,_owner:s}};F.createContext=function(e){return e={$$typeof:h0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:f0,_context:e},e.Consumer=e};F.createElement=Qp;F.createFactory=function(e){var t=Qp.bind(null,e);return t.type=e,t};F.createRef=function(){return{current:null}};F.forwardRef=function(e){return{$$typeof:p0,render:e}};F.isValidElement=Cc;F.lazy=function(e){return{$$typeof:v0,_payload:{_status:-1,_result:e},_init:b0}};F.memo=function(e,t){return{$$typeof:g0,type:e,compare:t===void 0?null:t}};F.startTransition=function(e){var t=hs.transition;hs.transition={};try{e()}finally{hs.transition=t}};F.unstable_act=Xp;F.useCallback=function(e,t){return Oe.current.useCallback(e,t)};F.useContext=function(e){return Oe.current.useContext(e)};F.useDebugValue=function(){};F.useDeferredValue=function(e){return Oe.current.useDeferredValue(e)};F.useEffect=function(e,t){return Oe.current.useEffect(e,t)};F.useId=function(){return Oe.current.useId()};F.useImperativeHandle=function(e,t,n){return Oe.current.useImperativeHandle(e,t,n)};F.useInsertionEffect=function(e,t){return Oe.current.useInsertionEffect(e,t)};F.useLayoutEffect=function(e,t){return Oe.current.useLayoutEffect(e,t)};F.useMemo=function(e,t){return Oe.current.useMemo(e,t)};F.useReducer=function(e,t,n){return Oe.current.useReducer(e,t,n)};F.useRef=function(e){return Oe.current.useRef(e)};F.useState=function(e){return Oe.current.useState(e)};F.useSyncExternalStore=function(e,t,n){return Oe.current.useSyncExternalStore(e,t,n)};F.useTransition=function(){return Oe.current.useTransition()};F.version="18.3.1";Hp.exports=F;var v=Hp.exports;const Ut=ki(v),Tc=s0({__proto__:null,default:Ut},[v]);/**
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 E0=v,k0=Symbol.for("react.element"),x0=Symbol.for("react.fragment"),C0=Object.prototype.hasOwnProperty,T0=E0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P0={key:!0,ref:!0,__self:!0,__source:!0};function Zp(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)C0.call(t,r)&&!P0.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:k0,type:e,key:i,ref:s,props:o,_owner:T0.current}}ga.Fragment=x0;ga.jsx=Zp;ga.jsxs=Zp;Bp.exports=ga;var x=Bp.exports,em={exports:{}},Ge={},tm={exports:{}},nm={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(C,A){var N=C.length;C.push(A);e:for(;0<N;){var $=N-1>>>1,V=C[$];if(0<o(V,A))C[$]=A,C[N]=V,N=$;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var A=C[0],N=C.pop();if(N!==A){C[0]=N;e:for(var $=0,V=C.length,xe=V>>>1;$<xe;){var Ce=2*($+1)-1,Ue=C[Ce],Xe=Ce+1,at=C[Xe];if(0>o(Ue,N))Xe<V&&0>o(at,Ue)?(C[$]=at,C[Xe]=N,$=Xe):(C[$]=Ue,C[Ce]=N,$=Ce);else if(Xe<V&&0>o(at,N))C[$]=at,C[Xe]=N,$=Xe;else break e}}return A}function o(C,A){var N=C.sortIndex-A.sortIndex;return N!==0?N:C.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,w=!1,y=!1,_=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(C){for(var A=n(u);A!==null;){if(A.callback===null)r(u);else if(A.startTime<=C)r(u),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(u)}}function b(C){if(y=!1,g(C),!w)if(n(l)!==null)w=!0,H(S);else{var A=n(u);A!==null&&G(b,A.startTime-C)}}function S(C,A){w=!1,y&&(y=!1,m(T),T=-1),p=!0;var N=f;try{for(g(A),d=n(l);d!==null&&(!(d.expirationTime>A)||C&&!U());){var $=d.callback;
vendor: 9,160 bytes, lines 25-34
25if(typeof $=="function"){d.callback=null,f=d.priorityLevel;var V=$(d.expirationTime<=A);A=e.unstable_now(),typeof V=="function"?d.callback=V:d===n(l)&&r(l),g(A)}else r(l);d=n(l)}if(d!==null)var xe=!0;else{var Ce=n(u);Ce!==null&&G(b,Ce.startTime-A),xe=!1}return xe}finally{d=null,f=N,p=!1}}var k=!1,E=null,T=-1,O=5,R=-1;function U(){return!(e.unstable_now()-R<O)}function j(){if(E!==null){var C=e.unstable_now();R=C;var A=!0;try{A=E(!0,C)}finally{A?z():(k=!1,E=null)}}else k=!1}var z;if(typeof h=="function")z=function(){h(j)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,ae=B.port2;B.port1.onmessage=j,z=function(){ae.postMessage(null)}}else z=function(){_(j,0)};function H(C){E=C,k||(k=!0,z())}function G(C,A){T=_(function(){C(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){w||p||(w=!0,H(S))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(C){switch(f){case 1:case 2:case 3:var A=3;break;default:A=f}var N=f;f=A;try{return C()}finally{f=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,A){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var N=f;f=C;try{return A()}finally{f=N}},e.unstable_scheduleCallback=function(C,A,N){var $=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?$+N:$):N=$,C){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=N+V,C={id:c++,callback:A,priorityLevel:C,startTime:N,expirationTime:V,sortIndex:-1},N>$?(C.sortIndex=N,t(u,C),n(l)===null&&C===n(u)&&(y?(m(T),T=-1):y=!0,G(b,N-$))):(C.sortIndex=V,t(l,C),w||p||(w=!0,H(S))),C},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(C){var A=f;return function(){var N=f;f=A;try{return C.apply(this,arguments)}finally{f=N}}}})(nm);tm.exports=nm;var O0=tm.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 R0=v,qe=O0;function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var rm=new Set,Xo={};function rr(e,t){qr(e,t),qr(e+"Capture",t)}function qr(e,t){for(Xo[e]=t,e=0;e<t.length;e++)rm.add(t[e])}var Bt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eu=Object.prototype.hasOwnProperty,A0=/^[: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]*$/,lf={},uf={};function I0(e){return eu.call(uf,e)?!0:eu.call(lf,e)?!1:A0.test(e)?uf[e]=!0:(lf[e]=!0,!1)}function N0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function j0(e,t,n,r){if(t===null||typeof t>"u"||N0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Re(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){we[e]=new Re(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];we[t]=new Re(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){we[e]=new Re(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){we[e]=new Re(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){we[e]=new Re(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){we[e]=new Re(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){we[e]=new Re(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){we[e]=new Re(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){we[e]=new Re(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pc=/[\-:]([a-z])/g;function Oc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Pc,Oc);we[t]=new Re(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Pc,Oc);we[t]=new Re(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Pc,Oc);we[t]=new Re(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){we[e]=new Re(e,1,!1,e.toLowerCase(),null,!1,!1)});we.xlinkHref=new Re("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){we[e]=new Re(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rc(e,t,n,r){var o=we.hasOwnProperty(t)?we[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(j0(t,n,o,r)&&(n=null),r||o===null?I0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Jt=R0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Li=Symbol.for("react.element"),br=Symbol.for("react.portal"),Sr=Symbol.for("react.fragment"),Ac=Symbol.for("react.strict_mode"),tu=Symbol.for("react.profiler"),om=Symbol.for("react.provider"),im=Symbol.for("react.context"),Ic=Symbol.for("react.forward_ref"),nu=Symbol.for("react.suspense"),ru=Symbol.for("react.suspense_list"),Nc=Symbol.for("react.memo"),sn=Symbol.for("react.lazy"),sm=Symbol.for("react.offscreen"),cf=Symbol.iterator;function yo(e){return e===null||typeof e!="object"?null:(e=cf&&e[cf]||e["@@iterator"],typeof e=="function"?e:null)}var re=Object.assign,Za;function Do(e){if(Za===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Za=t&&t[1]||""}return`
34`+Za+e}var el=!1;function tl(e,t){if(!e||el)return"";el=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 16,101 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35`),i=r.stack.split(`
36`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
37`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{el=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Do(e):""}function D0(e){switch(e.tag){case 5:return Do(e.type);case 16:return Do("Lazy");case 13:return Do("Suspense");case 19:return Do("SuspenseList");case 0:case 2:case 15:return e=tl(e.type,!1),e;case 11:return e=tl(e.type.render,!1),e;case 1:return e=tl(e.type,!0),e;default:return""}}function ou(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Sr:return"Fragment";case br:return"Portal";case tu:return"Profiler";case Ac:return"StrictMode";case nu:return"Suspense";case ru:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case im:return(e.displayName||"Context")+".Consumer";case om:return(e._context.displayName||"Context")+".Provider";case Ic:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nc:return t=e.displayName||null,t!==null?t:ou(e.type)||"Memo";case sn:t=e._payload,e=e._init;try{return ou(e(t))}catch{}}return null}function L0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ou(t);case 8:return t===Ac?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function am(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function M0(e){var t=am(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mi(e){e._valueTracker||(e._valueTracker=M0(e))}function lm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=am(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ns(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function iu(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function df(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function um(e,t){t=t.checked,t!=null&&Rc(e,"checked",t,!1)}function su(e,t){um(e,t);var n=kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?au(e,t.type,n):t.hasOwnProperty("defaultValue")&&au(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ff(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function au(e,t,n){(t!=="number"||Ns(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Lo=Array.isArray;function jr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+kn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function lu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(Lo(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:kn(n)}}function cm(e,t){var n=kn(t.value),r=kn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function pf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dm(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function uu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $i,fm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for($i=$i||document.createElement("div"),$i.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$i.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fo={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},$0=["Webkit","ms","Moz","O"];Object.keys(Fo).forEach(function(e){$0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fo[t]=Fo[e]})});function hm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fo.hasOwnProperty(e)&&Fo[e]?(""+t).trim():t+"px"}function pm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=hm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var U0=re({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 cu(e,t){if(t){if(U0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function du(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fu=null;function jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hu=null,Dr=null,Lr=null;function mf(e){if(e=Pi(e)){if(typeof hu!="function")throw Error(P(280));var t=e.stateNode;t&&(t=ba(t),hu(e.stateNode,e.type,t))}}function mm(e){Dr?Lr?Lr.push(e):Lr=[e]:Dr=e}function gm(){if(Dr){var e=Dr,t=Lr;if(Lr=Dr=null,mf(e),t)for(e=0;e<t.length;e++)mf(t[e])}}function vm(e,t){return e(t)}function ym(){}var nl=!1;function wm(e,t,n){if(nl)return e(t,n);nl=!0;try{return vm(e,t,n)}finally{nl=!1,(Dr!==null||Lr!==null)&&(ym(),gm())}}function ei(e,t){var n=e.stateNode;if(n===null)return null;var r=ba(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(P(231,t,typeof n));return n}var pu=!1;if(Bt)try{var wo={};Object.defineProperty(wo,"passive",{get:function(){pu=!0}}),window.addEventListener("test",wo,wo),window.removeEventListener("test",wo,wo)}catch{pu=!1}function F0(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var zo=!1,js=null,Ds=!1,mu=null,z0={onError:function(e){zo=!0,js=e}};function W0(e,t,n,r,o,i,s,a,l){zo=!1,js=null,F0.apply(z0,arguments)}function B0(e,t,n,r,o,i,s,a,l){if(W0.apply(this,arguments),zo){if(zo){var u=js;zo=!1,js=null}else throw Error(P(198));Ds||(Ds=!0,mu=u)}}function or(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function _m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function gf(e){if(or(e)!==e)throw Error(P(188))}function H0(e){var t=e.alternate;if(!t){if(t=or(e),t===null)throw Error(P(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return gf(o),e;if(i===r)return gf(o),t;i=i.sibling}throw Error(P(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function bm(e){return e=H0(e),e!==null?Sm(e):null}function Sm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Sm(e);if(t!==null)return t;e=e.sibling}return null}var Em=qe.unstable_scheduleCallback,vf=qe.unstable_cancelCallback,V0=qe.unstable_shouldYield,q0=qe.unstable_requestPaint,ie=qe.unstable_now,K0=qe.unstable_getCurrentPriorityLevel,Dc=qe.unstable_ImmediatePriority,km=qe.unstable_UserBlockingPriority,Ls=qe.unstable_NormalPriority,G0=qe.unstable_LowPriority,xm=qe.unstable_IdlePriority,va=null,Pt=null;function Y0(e){if(Pt&&typeof Pt.onCommitFiberRoot=="function")try{Pt.onCommitFiberRoot(va,e,void 0,(e.current.flags&128)===128)}catch{}}var mt=Math.clz32?Math.clz32:X0,J0=Math.log,Q0=Math.LN2;function X0(e){return e>>>=0,e===0?32:31-(J0(e)/Q0|0)|0}var Ui=64,Fi=4194304;function Mo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ms(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Mo(a):(i&=s,i!==0&&(r=Mo(i)))}else s=n&~o,s!==0?r=Mo(s):i!==0&&(r=Mo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-mt(t),o=1<<n,r|=e[n],t&=~o;return r}function Z0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function e_(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-mt(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=Z0(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function gu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Cm(){var e=Ui;return Ui<<=1,!(Ui&4194240)&&(Ui=64),e}function rl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ci(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mt(t),e[t]=n}function t_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-mt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Lc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-mt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var K=0;function Tm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Pm,Mc,Om,Rm,Am,vu=!1,zi=[],pn=null,mn=null,gn=null,ti=new Map,ni=new Map,ln=[],n_="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 yf(e,t){switch(e){case"focusin":case"focusout":pn=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":gn=null;break;case"pointerover":case"pointerout":ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ni.delete(t.pointerId)}}function _o(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Pi(t),t!==null&&Mc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function r_(e,t,n,r,o){switch(t){case"focusin":return pn=_o(pn,e,t,n,r,o),!0;case"dragenter":return mn=_o(mn,e,t,n,r,o),!0;case"mouseover":return gn=_o(gn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ti.set(i,_o(ti.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ni.set(i,_o(ni.get(i)||null,e,t,n,r,o)),!0}return!1}function Im(e){var t=Bn(e.target);if(t!==null){var n=or(t);if(n!==null){if(t=n.tag,t===13){if(t=_m(n),t!==null){e.blockedOn=t,Am(e.priority,function(){Om
vendor: 9,920 bytes, line 37
37(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ps(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fu=r,n.target.dispatchEvent(r),fu=null}else return t=Pi(n),t!==null&&Mc(t),e.blockedOn=n,!1;t.shift()}return!0}function wf(e,t,n){ps(e)&&n.delete(t)}function o_(){vu=!1,pn!==null&&ps(pn)&&(pn=null),mn!==null&&ps(mn)&&(mn=null),gn!==null&&ps(gn)&&(gn=null),ti.forEach(wf),ni.forEach(wf)}function bo(e,t){e.blockedOn===t&&(e.blockedOn=null,vu||(vu=!0,qe.unstable_scheduleCallback(qe.unstable_NormalPriority,o_)))}function ri(e){function t(o){return bo(o,e)}if(0<zi.length){bo(zi[0],e);for(var n=1;n<zi.length;n++){var r=zi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(pn!==null&&bo(pn,e),mn!==null&&bo(mn,e),gn!==null&&bo(gn,e),ti.forEach(t),ni.forEach(t),n=0;n<ln.length;n++)r=ln[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ln.length&&(n=ln[0],n.blockedOn===null);)Im(n),n.blockedOn===null&&ln.shift()}var Mr=Jt.ReactCurrentBatchConfig,$s=!0;function i_(e,t,n,r){var o=K,i=Mr.transition;Mr.transition=null;try{K=1,$c(e,t,n,r)}finally{K=o,Mr.transition=i}}function s_(e,t,n,r){var o=K,i=Mr.transition;Mr.transition=null;try{K=4,$c(e,t,n,r)}finally{K=o,Mr.transition=i}}function $c(e,t,n,r){if($s){var o=yu(e,t,n,r);if(o===null)hl(e,t,r,Us,n),yf(e,r);else if(r_(o,e,t,n,r))r.stopPropagation();else if(yf(e,r),t&4&&-1<n_.indexOf(e)){for(;o!==null;){var i=Pi(o);if(i!==null&&Pm(i),i=yu(e,t,n,r),i===null&&hl(e,t,r,Us,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else hl(e,t,r,null,n)}}var Us=null;function yu(e,t,n,r){if(Us=null,e=jc(r),e=Bn(e),e!==null)if(t=or(e),t===null)e=null;else if(n=t.tag,n===13){if(e=_m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Us=e,null}function Nm(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(K0()){case Dc:return 1;case km:return 4;case Ls:case G0:return 16;case xm:return 536870912;default:return 16}default:return 16}}var dn=null,Uc=null,ms=null;function jm(){if(ms)return ms;var e,t=Uc,n=t.length,r,o="value"in dn?dn.value:dn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return ms=o.slice(e,1<r?1-r:void 0)}function gs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Wi(){return!0}function _f(){return!1}function Ye(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Wi:_f,this.isPropagationStopped=_f,this}return re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Wi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wi)},persist:function(){},isPersistent:Wi}),t}var oo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fc=Ye(oo),Ti=re({},oo,{view:0,detail:0}),a_=Ye(Ti),ol,il,So,ya=re({},Ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==So&&(So&&e.type==="mousemove"?(ol=e.screenX-So.screenX,il=e.screenY-So.screenY):il=ol=0,So=e),ol)},movementY:function(e){return"movementY"in e?e.movementY:il}}),bf=Ye(ya),l_=re({},ya,{dataTransfer:0}),u_=Ye(l_),c_=re({},Ti,{relatedTarget:0}),sl=Ye(c_),d_=re({},oo,{animationName:0,elapsedTime:0,pseudoElement:0}),f_=Ye(d_),h_=re({},oo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),p_=Ye(h_),m_=re({},oo,{data:0}),Sf=Ye(m_),g_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},v_={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"},y_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function w_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=y_[e])?!!t[e]:!1}function zc(){return w_}var __=re({},Ti,{key:function(e){if(e.key){var t=g_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?v_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zc,charCode:function(e){return e.type==="keypress"?gs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),b_=Ye(__),S_=re({},ya,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ef=Ye(S_),E_=re({},Ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zc}),k_=Ye(E_),x_=re({},oo,{propertyName:0,elapsedTime:0,pseudoElement:0}),C_=Ye(x_),T_=re({},ya,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),P_=Ye(T_),O_=[9,13,27,32],Wc=Bt&&"CompositionEvent"in window,Wo=null;Bt&&"documentMode"in document&&(Wo=document.documentMode);var R_=Bt&&"TextEvent"in window&&!Wo,Dm=Bt&&(!Wc||Wo&&8<Wo&&11>=Wo),kf=" ",xf=!1;function Lm(e,t){switch(e){case"keyup":return O_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function A_(e,t){switch(e){case"compositionend":return Mm(t);case"keypress":return t.which!==32?null:(xf=!0,kf);case"textInput":return e=t.data,e===kf&&xf?null:e;default:return null}}function I_(e,t){if(Er)return e==="compositionend"||!Wc&&Lm(e,t)?(e=jm(),ms=Uc=dn=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dm&&t.locale!=="ko"?null:t.data;default:return null}}var N_={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 Cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!N_[e.type]:t==="textarea"}function $m(e,t,n,r){mm(r),t=Fs(t,"onChange"),0<t.length&&(n=new Fc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bo=null,oi=null;function j_(e){Ym(e,0)}function wa(e){var t=Cr(e);if(lm(t))return e}function D_(e,t){if(e==="change")return t}var Um=!1;if(Bt){var al;if(Bt){var ll="oninput"in document;if(!ll){var Tf=document.createElement("div");Tf.setAttribute("oninput","return;"),ll=typeof Tf.oninput=="function"}al=ll}else al=!1;Um=al&&(!document.documentMode||9<document.documentMode)}function Pf(){Bo&&(Bo.detachEvent("onpropertychange",Fm),oi=Bo=null)}function Fm(e){if(e.propertyName==="value"&&wa(oi)){var t=[];$m(t,oi,e,jc(e)),wm(j_,t)}}function L_(e,t,n){e==="focusin"?(Pf(),Bo=t,oi=n,Bo.attachEvent("onpropertychange",Fm)):e==="focusout"&&Pf()}function M_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wa(oi)}function $_(e,t){if(e==="click")return wa(t)}function U_(e,t){if(e==="input"||e==="change")return wa(t)}function F_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:F_;function ii(e,t){if(vt(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!eu.call(t,o)||!vt(e[o],t[o]))return!1}return!0}function Of(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rf(e,t){var n=Of(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Of(n)}}function zm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wm(){for(var e=window,t=Ns();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ns(e.document)}return t}function Bc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function z_(e){var t=Wm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&zm(n.ownerDocument.documentElement,n)){if(r!==null&&Bc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Rf(n,i);var s=Rf(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var W_=Bt&&"documentMode"in document&&11>=document.documentMode,kr=null,wu=null,Ho=null,_u=!1;function Af(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_u||kr==null||kr!==Ns(r)||(r=kr,"selectionStart"in r&&Bc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ho&&ii(Ho,r)||(Ho=r,r=Fs(wu,"onSelect"),0<r.length&&(t=new Fc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=kr)))}function Bi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionend:Bi("Transition","TransitionEnd")},ul={},Bm={};Bt&&(Bm=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);function _a(e){if(ul[e])return ul[e];if(!xr[e])return e;var t=xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bm)return ul[e]=t[n];return e}var Hm=_a("animationend"),Vm=_a("animationiteration"),qm=_a("animationstart"),Km=_a("transitionend"),Gm=new Map,If="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 Rn(e,t){Gm.set(e,t),rr(t,[e])}for(var cl=0;cl<If.length;cl++){var dl=If[cl],B_=dl.toLowerCase(),H_=dl[0].toUpperCase()+dl.slice(1);Rn(B_,"on"+H_)}Rn(Hm,"onAnimationEnd");Rn(Vm,"onAnimationIteration");Rn(qm,"onAnimationStart");Rn("dblclick","onDoubleClick");Rn("focusin","onFocus");Rn("focusout","onBlur");Rn(Km,"onTransitionEnd");qr("onMouseEnter",["mouseout","mouseover"]);qr("onMouseLeave",["mouseout","mouseover"]);qr("onPointerEnter",["pointerout","pointerover"]);qr("onPointerLeave",["pointerout","pointerover"]);rr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,387 bytes, line 37
37rr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));rr("onBeforeInput",["compositionend","keypress","textInput","paste"]);rr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));rr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));rr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $o="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(" "),V_=new Set("cancel close invalid load scroll toggle".split(" ").concat($o));function Nf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,B0(r,t,void 0,e),e.currentTarget=null}function Ym(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Nf(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Nf(o,a,u),i=l}}}if(Ds)throw e=mu,Ds=!1,mu=null,e}function X(e,t){var n=t[xu];n===void 0&&(n=t[xu]=new Set);var r=e+"__bubble";n.has(r)||(Jm(t,e,2,!1),n.add(r))}function fl(e,t,n){var r=0;t&&(r|=4),Jm(n,e,r,t)}var Hi="_reactListening"+Math.random().toString(36).slice(2);function si(e){if(!e[Hi]){e[Hi]=!0,rm.forEach(function(n){n!=="selectionchange"&&(V_.has(n)||fl(n,!1,e),fl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hi]||(t[Hi]=!0,fl("selectionchange",!1,t))}}function Jm(e,t,n,r){switch(Nm(t)){case 1:var o=i_;break;case 4:o=s_;break;default:o=$c}n=o.bind(null,t,n,e),o=void 0,!pu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function hl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Bn(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}wm(function(){var u=i,c=jc(n),d=[];e:{var f=Gm.get(e);if(f!==void 0){var p=Fc,w=e;switch(e){case"keypress":if(gs(n)===0)break e;case"keydown":case"keyup":p=b_;break;case"focusin":w="focus",p=sl;break;case"focusout":w="blur",p=sl;break;case"beforeblur":case"afterblur":p=sl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=bf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=u_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=k_;break;case Hm:case Vm:case qm:p=f_;break;case Km:p=C_;break;case"scroll":p=a_;break;case"wheel":p=P_;break;case"copy":case"cut":case"paste":p=p_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Ef}var y=(t&4)!==0,_=!y&&e==="scroll",m=y?f!==null?f+"Capture":null:f;y=[];for(var h=u,g;h!==null;){g=h;var b=g.stateNode;if(g.tag===5&&b!==null&&(g=b,m!==null&&(b=ei(h,m),b!=null&&y.push(ai(h,b,g)))),_)break;h=h.return}0<y.length&&(f=new p(f,w,null,n,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==fu&&(w=n.relatedTarget||n.fromElement)&&(Bn(w)||w[Ht]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=u,w=w?Bn(w):null,w!==null&&(_=or(w),w!==_||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=u),p!==w)){if(y=bf,b="onMouseLeave",m="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=Ef,b="onPointerLeave",m="onPointerEnter",h="pointer"),_=p==null?f:Cr(p),g=w==null?f:Cr(w),f=new y(b,h+"leave",p,n,c
vendor: 6,738 bytes, lines 37-38
37),f.target=_,f.relatedTarget=g,b=null,Bn(c)===u&&(y=new y(m,h+"enter",w,n,c),y.target=g,y.relatedTarget=_,b=y),_=b,p&&w)t:{for(y=p,m=w,h=0,g=y;g;g=sr(g))h++;for(g=0,b=m;b;b=sr(b))g++;for(;0<h-g;)y=sr(y),h--;for(;0<g-h;)m=sr(m),g--;for(;h--;){if(y===m||m!==null&&y===m.alternate)break t;y=sr(y),m=sr(m)}y=null}else y=null;p!==null&&jf(d,f,p,y,!1),w!==null&&_!==null&&jf(d,_,w,y,!0)}}e:{if(f=u?Cr(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var S=D_;else if(Cf(f))if(Um)S=U_;else{S=M_;var k=L_}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=$_);if(S&&(S=S(e,u))){$m(d,S,n,c);break e}k&&k(e,f,u),e==="focusout"&&(k=f._wrapperState)&&k.controlled&&f.type==="number"&&au(f,"number",f.value)}switch(k=u?Cr(u):window,e){case"focusin":(Cf(k)||k.contentEditable==="true")&&(kr=k,wu=u,Ho=null);break;case"focusout":Ho=wu=kr=null;break;case"mousedown":_u=!0;break;case"contextmenu":case"mouseup":case"dragend":_u=!1,Af(d,n,c);break;case"selectionchange":if(W_)break;case"keydown":case"keyup":Af(d,n,c)}var E;if(Wc)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Er?Lm(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Dm&&n.locale!=="ko"&&(Er||T!=="onCompositionStart"?T==="onCompositionEnd"&&Er&&(E=jm()):(dn=c,Uc="value"in dn?dn.value:dn.textContent,Er=!0)),k=Fs(u,T),0<k.length&&(T=new Sf(T,e,null,n,c),d.push({event:T,listeners:k}),E?T.data=E:(E=Mm(n),E!==null&&(T.data=E)))),(E=R_?A_(e,n):I_(e,n))&&(u=Fs(u,"onBeforeInput"),0<u.length&&(c=new Sf("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=E))}Ym(d,t)})}function ai(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fs(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=ei(e,n),i!=null&&r.unshift(ai(e,i,o)),i=ei(e,t),i!=null&&r.push(ai(e,i,o))),e=e.return}return r}function sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function jf(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=ei(n,i),l!=null&&s.unshift(ai(n,l,a))):o||(l=ei(n,i),l!=null&&s.push(ai(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var q_=/\r\n?/g,K_=/\u0000|\uFFFD/g;function Df(e){return(typeof e=="string"?e:""+e).replace(q_,`
38`).replace(K_,"")}function Vi(e,t,n){if(t=Df(t),Df(e)!==t&&n)throw Error(P(425))}function zs(){}var bu=null,Su=null;function Eu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ku=typeof setTimeout=="function"?setTimeout:void 0,G_=typeof clearTimeout=="function"?clearTimeout:void 0,Lf=typeof Promise=="function"?Promise:void 0,Y_=typeof queueMicrotask=="function"?queueMicrotask:typeof Lf<"u"?function(e){return Lf.resolve(null).then(e).catch(J_)}:ku;function J_(e){setTimeout(function(){throw e})}function pl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ri(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ri(t)}function vn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Mf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var io=Math.random().toString(36).slice(2),kt="__reactFiber$"+io,li="__reactProps$"+io,Ht="__reactContainer$"+io,xu="__reactEvents$"+io,Q_="__reactListeners$"+io,X_="__reactHandles$"+io;function Bn(e){var t=e[kt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ht]||n[kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Mf(e);e!==null;){if(n=e[kt])return n;e=Mf(e)}return t}e=n,n=e.parentNode}return null}function Pi(e){return e=e[kt]||e[Ht],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function ba(e){return e[li]||null}var Cu=[],Tr=-1;function An(e){return{current:e}}function Z(e){0>Tr||(e.current=Cu[Tr],Cu[Tr]=null,Tr--)}function J(e,t){Tr++,Cu[Tr]=e.current,e.current=t}var xn={},ke=An(xn),De=An(!1),Jn=xn;function Kr(e,t){var n=e.type.contextTypes;if(!n)return xn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Le(e){return e=e.childContextTypes,e!=null}function Ws(){Z(De),Z(ke)}function $f(e,t,n){if(ke.current!==xn)throw Error(P(168));J(ke,t),J(De,n)}function Qm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(P(108,L0(e)||"Unknown",o));return re({},n,r)}function Bs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Jn=ke.current,J(ke,e),J(De,De.current),!0}function Uf(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Qm(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,Z(De),Z(ke),J(ke,e)):Z(De),J(De,n)}var $t=null,Sa=!1,ml=!1;function Xm(e){$t===null?$t=[e]:$t.push(e)}function Z_(e){Sa=!0,Xm(e)}function In(){if(!ml&&$t!==null){ml=!0;var e=0,t=K;try{var n=$t;for(K=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$t=null,Sa=!1}catch(o){throw $t!==null&&($t=$t.slice(e+1)),Em(Dc,In),o}finally{K=t,ml=!1}}return null}var Pr=[],Or=0,Hs=null,Vs=0,et=[],tt=0,Qn=null,Ft=1,zt="";function Mn(e,t){Pr[Or++]=Vs,Pr[Or++]=Hs,Hs=e,Vs=t}function Zm(e,t,n){et[tt++]=Ft,et[tt++]=zt,et[tt++]=Qn,Qn=e;var r=Ft;e=zt;var o=32-mt(r)-1;r&=~(1<<o),n+=1;var i=32-mt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Ft=1<<32-mt(t)+o|n<<o|r,zt=i+e}else Ft=1<<i|n<<o|r,zt=e}function Hc(e){e.return!==null&&(Mn(e,1),Zm(e,1,0))}function Vc(e){for(;e===Hs;)Hs=Pr[--Or],Pr[Or]=null,Vs=Pr[--Or],Pr[Or]=null;for(;e===Qn;)Qn=et[--tt],et[tt]=null,zt=et[--tt],et[tt]=null,Ft=et[--tt],et[tt]=null}var He=null,Be=null,ee=!1,ht=null;function eg(e,t){var n=nt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ff(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 26,816 bytes, lines 38-40
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,He=e,Be=vn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,He=e,Be=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Qn!==null?{id:Ft,overflow:zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=nt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,He=e,Be=null,!0):!1;default:return!1}}function Tu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Pu(e){if(ee){var t=Be;if(t){var n=t;if(!Ff(e,t)){if(Tu(e))throw Error(P(418));t=vn(n.nextSibling);var r=He;t&&Ff(e,t)?eg(r,n):(e.flags=e.flags&-4097|2,ee=!1,He=e)}}else{if(Tu(e))throw Error(P(418));e.flags=e.flags&-4097|2,ee=!1,He=e}}}function zf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;He=e}function qi(e){if(e!==He)return!1;if(!ee)return zf(e),ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Eu(e.type,e.memoizedProps)),t&&(t=Be)){if(Tu(e))throw tg(),Error(P(418));for(;t;)eg(e,t),t=vn(t.nextSibling)}if(zf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Be=vn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Be=null}}else Be=He?vn(e.stateNode.nextSibling):null;return!0}function tg(){for(var e=Be;e;)e=vn(e.nextSibling)}function Gr(){Be=He=null,ee=!1}function qc(e){ht===null?ht=[e]:ht.push(e)}var eb=Jt.ReactCurrentBatchConfig;function Eo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(P(309));var r=n.stateNode}if(!r)throw Error(P(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(P(284));if(!n._owner)throw Error(P(290,e))}return e}function Ki(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wf(e){var t=e._init;return t(e._payload)}function ng(e){function t(m,h){if(e){var g=m.deletions;g===null?(m.deletions=[h],m.flags|=16):g.push(h)}}function n(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function r(m,h){for(m=new Map;h!==null;)h.key!==null?m.set(h.key,h):m.set(h.index,h),h=h.sibling;return m}function o(m,h){return m=bn(m,h),m.index=0,m.sibling=null,m}function i(m,h,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<h?(m.flags|=2,h):g):(m.flags|=2,h)):(m.flags|=1048576,h)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,h,g,b){return h===null||h.tag!==6?(h=Sl(g,m.mode,b),h.return=m,h):(h=o(h,g),h.return=m,h)}function l(m,h,g,b){var S=g.type;return S===Sr?c(m,h,g.props.children,b,g.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===sn&&Wf(S)===h.type)?(b=o(h,g.props),b.ref=Eo(m,h,g),b.return=m,b):(b=Es(g.type,g.key,g.props,null,m.mode,b),b.ref=Eo(m,h,g),b.return=m,b)}function u(m,h,g,b){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=El(g,m.mode,b),h.return=m,h):(h=o(h,g.children||[]),h.return=m,h)}function c(m,h,g,b,S){return h===null||h.tag!==7?(h=Yn(g,m.mode,b,S),h.return=m,h):(h=o(h,g),h.return=m,h)}function d(m,h,g){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Sl(""+h,m.mode,g),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Li:return g=Es(h.type,h.key,h.props,null,m.mode,g),g.ref=Eo(m,null,h),g.return=m,g;case br:return h=El(h,m.mode,g),h.return=m,h;case sn:var b=h._init;return d(m,b(h._payload),g)}if(Lo(h)||yo(h))return h=Yn(h,m.mode,g,null),h.return=m,h;Ki(m,h)}return null}function f(m,h,g,b){var S=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return S!==null?null:a(m,h,""+g,b);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Li:return g.key===S?l(m,h,g,b):null;case br:return g.key===S?u(m,h,g,b):null;case sn:return S=g._init,f(m,h,S(g._payload),b)}if(Lo(g)||yo(g))return S!==null?null:c(m,h,g,b,null);Ki(m,g)}return null}function p(m,h,g,b,S){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(g)||null,a(h,m,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Li:return m=m.get(b.key===null?g:b.key)||null,l(h,m,b,S);case br:return m=m.get(b.key===null?g:b.key)||null,u(h,m,b,S);case sn:var k=b._init;return p(m,h,g,k(b._payload),S)}if(Lo(b)||yo(b))return m=m.get(g)||null,c(h,m,b,S,null);Ki(h,b)}return null}function w(m,h,g,b){for(var S=null,k=null,E=h,T=h=0,O=null;E!==null&&T<g.length;T++){E.index>T?(O=E,E=null):O=E.sibling;var R=f(m,E,g[T],b);if(R===null){E===null&&(E=O);break}e&&E&&R.alternate===null&&t(m,E),h=i(R,h,T),k===null?S=R:k.sibling=R,k=R,E=O}if(T===g.length)return n(m,E),ee&&Mn(m,T),S;if(E===null){for(;T<g.length;T++)E=d(m,g[T],b),E!==null&&(h=i(E,h,T),k===null?S=E:k.sibling=E,k=E);return ee&&Mn(m,T),S}for(E=r(m,E);T<g.length;T++)O=p(E,m,T,g[T],b),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?T:O.key),h=i(O,h,T),k===null?S=O:k.sibling=O,k=O);return e&&E.forEach(function(U){return t(m,U)}),ee&&Mn(m,T),S}function y(m,h,g,b){var S=yo(g);if(typeof S!="function")throw Error(P(150));if(g=S.call(g),g==null)throw Error(P(151));for(var k=S=null,E=h,T=h=0,O=null,R=g.next();E!==null&&!R.done;T++,R=g.next()){E.index>T?(O=E,E=null):O=E.sibling;var U=f(m,E,R.value,b);if(U===null){E===null&&(E=O);break}e&&E&&U.alternate===null&&t(m,E),h=i(U,h,T),k===null?S=U:k.sibling=U,k=U,E=O}if(R.done)return n(m,E),ee&&Mn(m,T),S;if(E===null){for(;!R.done;T++,R=g.next())R=d(m,R.value,b),R!==null&&(h=i(R,h,T),k===null?S=R:k.sibling=R,k=R);return ee&&Mn(m,T),S}for(E=r(m,E);!R.done;T++,R=g.next())R=p(E,m,T,R.value,b),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?T:R.key),h=i(R,h,T),k===null?S=R:k.sibling=R,k=R);return e&&E.forEach(function(j){return t(m,j)}),ee&&Mn(m,T),S}function _(m,h,g,b){if(typeof g=="object"&&g!==null&&g.type===Sr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Li:e:{for(var S=g.key,k=h;k!==null;){if(k.key===S){if(S=g.type,S===Sr){if(k.tag===7){n(m,k.sibling),h=o(k,g.props.children),h.return=m,m=h;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===sn&&Wf(S)===k.type){n(m,k.sibling),h=o(k,g.props),h.ref=Eo(m,k,g),h.return=m,m=h;break e}n(m,k);break}else t(m,k);k=k.sibling}g.type===Sr?(h=Yn(g.props.children,m.mode,b,g.key),h.return=m,m=h):(b=Es(g.type,g.key,g.props,null,m.mode,b),b.ref=Eo(m,h,g),b.return=m,m=b)}return s(m);case br:e:{for(k=g.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=o(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=El(g,m.mode,b),h.return=m,m=h}return s(m);case sn:return k=g._init,_(m,h,k(g._payload),b)}if(Lo(g))return w(m,h,g,b);if(yo(g))return y(m,h,g,b);Ki(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,g),h.return=m,m=h):(n(m,h),h=Sl(g,m.mode,b),h.return=m,m=h),s(m)):n(m,h)}return _}var Yr=ng(!0),rg=ng(!1),qs=An(null),Ks=null,Rr=null,Kc=null;function Gc(){Kc=Rr=Ks=null}function Yc(e){var t=qs.current;Z(qs),e._currentValue=t}function Ou(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function $r(e,t){Ks=e,Kc=Rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(Kc!==e)if(e={context:e,memoizedValue:t,next:null},Rr===null){if(Ks===null)throw Error(P(308));Rr=e,Ks.dependencies={lanes:0,firstContext:e}}else Rr=Rr.next=e;return t}var Hn=null;function Jc(e){Hn===null?Hn=[e]:Hn.push(e)}function og(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Jc(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vt(e,r)}function Vt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var an=!1;function Qc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ig(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vt(e,n)}return o=r.interleaved,o===null?(t.next=t,Jc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vt(e,n)}function vs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Lc(e,n)}}function Bf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gs(e,t,n,r){var o=e.updateQueue;an=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,y=a;switch(f=t,p=n,y.tag){case 1:if(w=y.payload,typeof w=="function"){d=w.call(p,d,f);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=y.payload,f=typeof w=="function"?w.call(p,d,f):w,f==null)break e;d=re({},d,f);break e;case 2:an=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Zn|=s,e.lanes=s,e.memoizedState=d}}function Hf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(P(191,o));o.call(r)}}}var Oi={},Ot=An(Oi),ui=An(Oi),ci=An(Oi);function Vn(e){if(e===Oi)throw Error(P(174));return e}function Xc(e,t){switch(J(ci,t),J(ui,e),J(Ot,Oi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:uu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=uu(t,e)}Z(Ot),J(Ot,t)}function Jr(){Z(Ot),Z(ui),Z(ci)}function sg(e){Vn(ci.current);var t=Vn(Ot.current),n=uu(t,e.type);t!==n&&(J(ui,e),J(Ot,n))}function Zc(e){ui.current===e&&(Z(Ot),Z(ui))}var te=An(0);function Ys(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gl=[];function ed(){for(var e=0;e<gl.length;e++)gl[e]._workInProgressVersionPrimary=null;gl.length=0}var ys=Jt.ReactCurrentDispatcher,vl=Jt.ReactCurrentBatchConfig,Xn=0,ne=null,fe=null,pe=null,Js=!1,Vo=!1,di=0,tb=0;function _e(){throw Error(P(321))}function td(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vt(e[n],t[n]))return!1;return!0}function nd(e,t,n,r,o,i){if(Xn=i,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ys.current=e===null||e.memoizedState===null?ib:sb,e=n(r,o),Vo){i=0;do{if(Vo=!1,di=0,25<=i)throw Error(P(301));i+=1,pe=fe=null,t.updateQueue=null,ys.current=ab,e=n(r,o)}while(Vo)}if(ys.current=Qs,t=fe!==null&&fe.next!==null,Xn=0,pe=fe=ne=null,Js=!1,t)throw Error(P(300));return e}function rd(){var e=di!==0;return di=0,e}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pe===null?ne.memoizedState=pe=e:pe=pe.next=e,pe}function st(){if(fe===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=pe===null?ne.memoizedState:pe.next;if(t!==null)pe=t,fe=e;else{if(e===null)throw Error(P(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},pe===null?ne.memoizedState=pe=e:pe=pe.next=e}return pe}function fi(e,t){return typeof t=="function"?t(e):t}function yl(e){var t=st(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=fe,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if((Xn&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,ne.lanes|=c,Zn|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,vt(r,t.memoizedState)||(je=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ne.lanes|=i,Zn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wl(e){var t=st(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);vt(i,t.memoizedState)||(je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ag(){}function lg(e,t){var n=ne,r=st(),o=t(),i=!vt(r.memoizedState,o);if(i&&(r.memoizedState=o,je=!0),r=r.queue,od(dg.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||pe!==null&&pe.memoizedState.tag&1){if(n.flags|=2048,hi(9,cg.bind(null,n,r,o,t),void 0,null),me===null)throw Error(P(349));Xn&30||ug(n,t,o)}return o}function ug(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t={lastEffect:null,stores:null},ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function cg(e,t,n,r){t.value=n,t.getSnapshot=r,fg(t)&&hg(e)}function dg(e,t,n){return n(function(){fg(t)&&hg(e)})}function fg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vt(e,n)}catch{return!0}}function hg(e){var t=Vt(e,1);t!==null&&gt(t,e,1,-1)}function Vf(e){var t=St();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:e},t.queue=e,e=e.dispatch=ob.bind(null,ne,e),[t.memoizedState,e]}function hi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ne.updateQueue,t===null?(t={lastEffect:null,stores:null},ne.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function pg(){return st().memoizedState}function ws(e,t,n,r){var o=St();ne.flags|=e,o.memoizedState=hi(1|t,n,void 0,r===void 0?null:r)}function Ea(e,t,n,r){var o=st();r=r===void 0?null:r;var i=void 0;if(fe!==null){var s=fe.memoizedState;if(i=s.destroy,r!==null&&td(r,s.deps)){o.memoizedState=hi(t,n,i,r);return}}ne.flags|=e,o.memoizedState=hi(1|t,n,i,r)}function qf(e,t){return ws(8390656,8,e,t)}function od(e,t){return Ea(2048,8,e,t)}function mg(e,t){return Ea(4,2,e,t)}function gg(e,t){return Ea(4,4,e,t)}function vg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function yg(e,t,n){return n=n!=null?n.concat([e]):null,Ea(4,4,vg.bind(null,t,e),n)}function id(){}function wg(e,t){var n=st();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&td(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _g(e,t){var n=st();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&td(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function bg(e,t,n){return Xn&21?(vt(n,t)||(n=Cm(),ne.lanes|=n,Zn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,je=!0),e.memoizedState=n)}function nb(e,t){var n=K;K=n!==0&&4>n?n:4,e(!0);var r=vl.transition;vl.transition={};try{e(!1),t()}finally{K=n,vl.transition=r}}function Sg(){return st().memoizedState}function rb(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Eg(e))kg(t,n);else if(n=og(e,t,n,r),n!==null){var o=Pe();gt(n,e,r,o),xg(n,t,r)}}function ob(e,t,n){var r=_n(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Eg(e))kg(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,vt(a,s)){var l=t.interleaved;l===null?(o.next=o,Jc(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=og(e,t,o,r),n!==null&&(o=Pe(),gt(n,e,r,o),xg(n,t,r))}}function Eg(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function kg(e,t){Vo=Js=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Lc(e,n)}}var Qs={readContext:it,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useInsertionEffect:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useSyncExternalStore:_e,useId:_e,unstable_isNewReconciler:!1},ib={readContext:it,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:qf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ws(4194308,4,vg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ws(4194308,4,e,t)},useInsertionEffect:function(e,t){return ws(4,2,e,t)},useMemo:function(e,t){var n=St();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=St();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=rb.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:Vf,useDebugValue:id,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=Vf(!1),t=e[0];return e=nb.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,o=St();if(ee){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),me===null)throw Error(P(349));Xn&30||ug(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qf(dg.bind(null,r,i,e),[e]),r.flags|=2048,hi(9,cg.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=St(),t=me.identifierPrefix;if(ee){var n=zt,r=Ft;n=(r&~(1<<32-mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=di++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=tb++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sb={readContext:it,useCallback:wg,useContext:it,useEffect:od,useImperativeHandle:yg,useInsertionEffect:mg,useLayoutEffect:gg,useMemo:_g,useReducer:yl,useRef:pg,useState:function(){return yl(fi)},useDebugValue:id,useDeferredValue:function(e){var t=st();return bg(t,fe.memoizedState,e)},useTransition:function(){var e=yl(fi)[0],t=st().memoizedState;return[e,t]},useMutableSource:ag,useSyncExternalStore:lg,useId:Sg,unstable_isNewReconciler:!1},ab={readContext:it,useCallback:wg,useContext:it,useEffect:od,useImperativeHandle:yg,useInsertionEffect:mg,useLayoutEffect:gg,useMemo:_g,useReducer:wl,useRef:pg,useState:function(){return wl(fi)},useDebugValue:id,useDeferredValue:function(e){var t=st();return fe===null?t.memoizedState=e:bg(t,fe.memoizedState,e)},useTransition:function(){var e=wl(fi)[0],t=st().memoizedState;return[e,t]},useMutableSource:ag,useSyncExternalStore:lg,useId:Sg,unstable_isNewReconciler:!1};function ct(e,t){if(e&&e.defaultProps){t=re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ru(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ka={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pe(),o=_n(e),i=Wt(r,o);i.payload=t,n!=null&&(i.callback=n),t=yn(e,i,o),t!==null&&(gt(t,e,o,r),vs(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pe(),o=_n(e),i=Wt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=yn(e,i,o),t!==null&&(gt(t,e,o,r),vs(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pe(),r=_n(e),o=Wt(n,r);o.tag=2,t!=null&&(o.callback=t),t=yn(e,o,r),t!==null&&(gt(t,e,r,n),vs(t,e,r))}};function Kf(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!ii(n,r)||!ii(o,i):!0}function Cg(e,t,n){var r=!1,o=xn,i=t.contextType;return typeof i=="object"&&i!==null?i=it(i):(o=Le(t)?Jn:ke.current,r=t.contextTypes,i=(r=r!=null)?Kr(e,o):xn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ka,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Gf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ka.enqueueReplaceState(t,t.state,null)}function Au(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Qc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=it(i):(i=Le(t)?Jn:ke.current,o.context=Kr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ru(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ka.enqueueReplaceState(o,o.state,null),Gs(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Qr(e,t){try{var n="",r=t;do n+=D0(r),r=r.return;while(r);var o=n}catch(i){o=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:o,digest:null}}function _l(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Iu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var lb=typeof WeakMap=="function"?WeakMap:Map;function Tg(e,t,n){n=Wt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zs||(Zs=!0,Wu=r),Iu(e,t)},n}function Pg(e,t,n){n=Wt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Iu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Iu(e,t),typeof r!="function"&&(wn===null?wn=new Set([this]):wn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Yf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new lb;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Sb.bind(null,e,t,n),t.then(e,e))}function Jf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Qf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Wt(-1,1),t.tag=2,yn(n,t,1))),n.lanes|=1),e)}var ub=Jt.ReactCurrentOwner,je=!1;function Te(e,t,n,r){t.child=e===null?rg(t,null,n,r):Yr(t,e.child,n,r)}function Xf(e,t,n,r,o){n=n.render;var i=t.ref;return $r(t,o),r=nd(e,t,n,r,i,o),n=rd(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qt(e,t,o)):(ee&&n&&Hc(t),t.flags|=1,Te(e,t,r,o),t.child)}function Zf(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!hd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Og(e,t,i,r,o)):(e=Es(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:ii,n(s,r)&&e.ref===t.ref)return qt(e,t,o)}return t.flags|=1,e=bn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Og(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ii(i,r)&&e.ref===t.ref)if(je=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(je=!0);else return t.lanes=e.lanes,qt(e,t,o)}return Nu(e,t,n,r,o)}function Rg(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},J(Ir,ze),ze|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,J(Ir,ze),ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,J(Ir,ze),ze|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,J(Ir,ze),ze|=r;return Te(e,t,o,n),t.child}function Ag(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 6,637 bytes, line 40
40function Nu(e,t,n,r,o){var i=Le(n)?Jn:ke.current;return i=Kr(t,i),$r(t,o),n=nd(e,t,n,r,i,o),r=rd(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qt(e,t,o)):(ee&&r&&Hc(t),t.flags|=1,Te(e,t,n,o),t.child)}function eh(e,t,n,r,o){if(Le(n)){var i=!0;Bs(t)}else i=!1;if($r(t,o),t.stateNode===null)_s(e,t),Cg(t,n,r),Au(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=it(u):(u=Le(n)?Jn:ke.current,u=Kr(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Gf(t,s,r,u),an=!1;var f=t.memoizedState;s.state=f,Gs(t,r,s,o),l=t.memoizedState,a!==r||f!==l||De.current||an?(typeof c=="function"&&(Ru(t,n,c,r),l=t.memoizedState),(a=an||Kf(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,ig(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:ct(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=it(l):(l=Le(n)?Jn:ke.current,l=Kr(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&Gf(t,s,r,l),an=!1,f=t.memoizedState,s.state=f,Gs(t,r,s,o);var w=t.memoizedState;a!==d||f!==w||De.current||an?(typeof p=="function"&&(Ru(t,n,p,r),w=t.memoizedState),(u=an||Kf(t,n,u,r,f,w,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ju(e,t,n,r,i,o)}function ju(e,t,n,r,o,i){Ag(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Uf(t,n,!1),qt(e,t,i);r=t.stateNode,ub.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Yr(t,e.child,null,i),t.child=Yr(t,null,a,i)):Te(e,t,a,i),t.memoizedState=r.state,o&&Uf(t,n,!0),t.child}function Ig(e){var t=e.stateNode;t.pendingContext?$f(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$f(e,t.context,!1),Xc(e,t.containerInfo)}function th(e,t,n,r,o){return Gr(),qc(o),t.flags|=256,Te(e,t,n,r),t.child}var Du={dehydrated:null,treeContext:null,retryLane:0};function Lu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ng(e,t,n){var r=t.pendingProps,o=te.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),J(te,o&1),e===null)return Pu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Ta(s,r,0,null),e=Yn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Lu(n),t.memoizedState=Du,e):sd(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return cb(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=bn(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=bn(a,i):(i=Yn(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Lu(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Du,r}return i=e.child,e=i.sibling,r=bn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function sd(e,t){return t=Ta({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gi(e,t,n,r){return r!==null&&qc(r),Yr(t,e.child,null,n),e=sd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cb(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=_l(Error(P(422))),Gi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ta({mode:"visible",children:r.children},o,0,null),i=Yn(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Yr(t,e.child,null,s),t.child.memoizedState=Lu(s),t.memoizedState=Du,i);if(!(t.mode&1))return Gi(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(P(419)),r=_l(i,r,void 0),Gi(e,t,s,r)}if(a=(s&e.childLanes)!==0,je||a){if(r=me,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Vt(e,o),gt(r,e,o,-1))}return fd(),r=_l(Error(P(421))),Gi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Eb.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Be=vn(o.nextSibling),He=t,ee=!0,ht=null,e!==null&&(et[tt++]=Ft,et[tt++]=zt,et[tt++]=Qn,Ft=e.id,zt=e.overflow,Qn=t),t=sd(t,r.children),t.flags|=4096,t)}
vendor: 5,426 bytes, line 40
40function nh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ou(e.return,t,n)}function bl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function jg(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Te(e,t,r.children,n),r=te.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nh(e,n,t);else if(e.tag===19)nh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(J(te,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ys(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ys(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}bl(t,!0,n,null,i);break;case"together":bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _s(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function db(e,t,n){switch(t.tag){case 3:Ig(t),Gr();break;case 5:sg(t);break;case 1:Le(t.type)&&Bs(t);break;case 4:Xc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;J(qs,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(J(te,te.current&1),t.flags|=128,null):n&t.child.childLanes?Ng(e,t,n):(J(te,te.current&1),e=qt(e,t,n),e!==null?e.sibling:null);J(te,te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return jg(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),J(te,te.current),r)break;return null;case 22:case 23:return t.lanes=0,Rg(e,t,n)}return qt(e,t,n)}var Dg,Mu,Lg,Mg;Dg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Mu=function(){};Lg=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Vn(Ot.current);var i=null;switch(n){case"input":o=iu(e,o),r=iu(e,r),i=[];break;case"select":o=re({},o,{value:void 0}),r=re({},r,{value:void 0}),i=[];break;case"textarea":o=lu(e,o),r=lu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=zs)}cu(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Xo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Xo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&X("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Mg=function(e,t,n,r){n!==r&&(t.flags|=4)};function ko(e,t){if(!ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function fb(e,t,n){var r=t.pendingProps;switch(Vc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return be(t),null;case 1:return Le(t.type)&&Ws(),be(t),null;case 3:return r=t.stateNode,Jr(),Z(De),Z(ke),ed(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ht!==null&&(Vu(ht),ht=null))),Mu(e,t),be(t),null;
vendor: 31,138 bytes, line 40
40case 5:Zc(t);var o=Vn(ci.current);if(n=t.type,e!==null&&t.stateNode!=null)Lg(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(P(166));return be(t),null}if(e=Vn(Ot.current),qi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[kt]=t,r[li]=i,e=(t.mode&1)!==0,n){case"dialog":X("cancel",r),X("close",r);break;case"iframe":case"object":case"embed":X("load",r);break;case"video":case"audio":for(o=0;o<$o.length;o++)X($o[o],r);break;case"source":X("error",r);break;case"img":case"image":case"link":X("error",r),X("load",r);break;case"details":X("toggle",r);break;case"input":df(r,i),X("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},X("invalid",r);break;case"textarea":hf(r,i),X("invalid",r)}cu(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Vi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Vi(r.textContent,a,e),o=["children",""+a]):Xo.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&X("scroll",r)}switch(n){case"input":Mi(r),ff(r,i,!0);break;case"textarea":Mi(r),pf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=zs)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=dm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[kt]=t,e[li]=r,Dg(e,t,!1,!1),t.stateNode=e;e:{switch(s=du(n,r),n){case"dialog":X("cancel",e),X("close",e),o=r;break;case"iframe":case"object":case"embed":X("load",e),o=r;break;case"video":case"audio":for(o=0;o<$o.length;o++)X($o[o],e);o=r;break;case"source":X("error",e),o=r;break;case"img":case"image":case"link":X("error",e),X("load",e),o=r;break;case"details":X("toggle",e),o=r;break;case"input":df(e,r),o=iu(e,r),X("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=re({},r,{value:void 0}),X("invalid",e);break;case"textarea":hf(e,r),o=lu(e,r),X("invalid",e);break;default:o=r}cu(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?pm(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&fm(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Zo(e,l):typeof l=="number"&&Zo(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Xo.hasOwnProperty(i)?l!=null&&i==="onScroll"&&X("scroll",e):l!=null&&Rc(e,i,l,s))}switch(n){case"input":Mi(e),ff(e,r,!1);break;case"textarea":Mi(e),pf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+kn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?jr(e,!!r.multiple,i,!1):r.defaultValue!=null&&jr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=zs)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return be(t),null;case 6:if(e&&t.stateNode!=null)Mg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(P(166));if(n=Vn(ci.current),Vn(Ot.current),qi(t)){if(r=t.stateNode,n=t.memoizedProps,r[kt]=t,(i=r.nodeValue!==n)&&(e=He,e!==null))switch(e.tag){case 3:Vi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[kt]=t,t.stateNode=r}return be(t),null;case 13:if(Z(te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ee&&Be!==null&&t.mode&1&&!(t.flags&128))tg(),Gr(),t.flags|=98560,i=!1;else if(i=qi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(P(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(P(317));i[kt]=t}else Gr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;be(t),i=!1}else ht!==null&&(Vu(ht),ht=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||te.current&1?he===0&&(he=3):fd())),t.updateQueue!==null&&(t.flags|=4),be(t),null);case 4:return Jr(),Mu(e,t),e===null&&si(t.stateNode.containerInfo),be(t),null;case 10:return Yc(t.type._context),be(t),null;case 17:return Le(t.type)&&Ws(),be(t),null;case 19:if(Z(te),i=t.memoizedState,i===null)return be(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)ko(i,!1);else{if(he!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ys(e),s!==null){for(t.flags|=128,ko(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return J(te,te.current&1|2),t.child}e=e.sibling}i.tail!==null&&ie()>Xr&&(t.flags|=128,r=!0,ko(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ys(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ko(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ee)return be(t),null}else 2*ie()-i.renderingStartTime>Xr&&n!==1073741824&&(t.flags|=128,r=!0,ko(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ie(),t.sibling=null,n=te.current,J(te,r?n&1|2:n&1),t):(be(t),null);case 22:case 23:return dd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ze&1073741824&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function hb(e,t){switch(Vc(t),t.tag){case 1:return Le(t.type)&&Ws(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jr(),Z(De),Z(ke),ed(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zc(t),null;case 13:if(Z(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(te),null;case 4:return Jr(),null;case 10:return Yc(t.type._context),null;case 22:case 23:return dd(),null;case 24:return null;default:return null}}var Yi=!1,Se=!1,pb=typeof WeakSet=="function"?WeakSet:Set,I=null;function Ar(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function $u(e,t,n){try{n()}catch(r){oe(e,t,r)}}var rh=!1;function mb(e,t){if(bu=$s,e=Wm(),Bc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Su={focusedElem:e,selectionRange:n},$s=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var y=w.memoizedProps,_=w.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:ct(t.type,y),_);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(b){oe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return w=rh,rh=!1,w}function qo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&$u(t,n,i)}o=o.next}while(o!==r)}}function xa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Uu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $g(e){var t=e.alternate;t!==null&&(e.alternate=null,$g(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kt],delete t[li],delete t[xu],delete t[Q_],delete t[X_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ug(e){return e.tag===5||e.tag===3||e.tag===4}function oh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ug(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zs));else if(r!==4&&(e=e.child,e!==null))for(Fu(e,t,n),e=e.sibling;e!==null;)Fu(e,t,n),e=e.sibling}function zu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zu(e,t,n),e=e.sibling;e!==null;)zu(e,t,n),e=e.sibling}var ve=null,dt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Fg(e,t,n),n=n.sibling}function Fg(e,t,n){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(va,n)}catch{}switch(n.tag){case 5:Se||Ar(n,t);case 6:var r=ve,o=dt;ve=null,Qt(e,t,n),ve=r,dt=o,ve!==null&&(dt?(e=ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ve.removeChild(n.stateNode));break;case 18:ve!==null&&(dt?(e=ve,n=n.stateNode,e.nodeType===8?pl(e.parentNode,n):e.nodeType===1&&pl(e,n),ri(e)):pl(ve,n.stateNode));break;case 4:r=ve,o=dt,ve=n.stateNode.containerInfo,dt=!0,Qt(e,t,n),ve=r,dt=o;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&$u(n,t,s),o=o.next}while(o!==r)}Qt(e,t,n);break;case 1:if(!Se&&(Ar(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Qt(e,t,n),Se=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function ih(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pb),t.forEach(function(r){var o=kb.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function lt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:ve=a.stateNode,dt=!1;break e;case 3:ve=a.stateNode.containerInfo,dt=!0;break e;case 4:ve=a.stateNode.containerInfo,dt=!0;break e}a=a.return}if(ve===null)throw Error(P(160));Fg(i,s,o),ve=null,dt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){oe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zg(t,e),t=t.sibling}function zg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lt(t,e),bt(e),r&4){try{qo(3,e,e.return),xa(3,e)}catch(y){oe(e,e.return,y)}try{qo(5,e,e.return)}catch(y){oe(e,e.return,y)}}break;case 1:lt(t,e),bt(e),r&512&&n!==null&&Ar(n,n.return);break;case 5:if(lt(t,e),bt(e),r&512&&n!==null&&Ar(n,n.return),e.flags&32){var o=e.stateNode;try{Zo(o,"")}catch(y){oe(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&um(o,i),du(a,s);var u=du(a,i);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?pm(o,d):c==="dangerouslySetInnerHTML"?fm(o,d):c==="children"?Zo(o,d):Rc(o,c,d,u)}switch(a){case"input":su(o,i);break;case"textarea":cm(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?jr(o,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?jr(o,!!i.multiple,i.defaultValue,!0):jr(o,!!i.multiple,i.multiple?[]:"",!1))}o[li]=i}catch(y){oe(e,e.return,y)}}break;case 6:if(lt(t,e),bt(e),r&4){if(e.stateNode===null)throw Error(P(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){oe(e,e.return,y)}}break;case 3:if(lt(t,e),bt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ri(t.containerInfo)}catch(y){oe(e,e.return,y)}break;case 4:lt(t,e),bt(e);break;case 13:lt(t,e),bt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(ud=ie())),r&4&&ih(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Se=(u=Se)||c,lt(t,e),Se=u):lt(t,e),bt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(I=e,c=e.child;c!==null;){for(d=I=c;I!==null;){switch(f=I,p=f.child,f.tag){case 0:case 11:case 14:case 15:qo(4,f,f.return);break;case 1:Ar(f,f.return);var w=f.stateNode;if(typeof w.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(y){oe(r,n,y)}}break;case 5:Ar(f,f.return);break;case 22:if(f.memoizedState!==null){ah(d);continue}}p!==null?(p.return=f,I=p):ah(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=hm("display",s))}catch(y){oe(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){oe(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:lt(t,e),bt(e),r&4&&ih(e);break;case 21:break;default:lt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ug(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Zo(o,""),r.flags&=-33);var i=oh(e);zu(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=oh(e);Fu(e,a,s);break;default:throw Error(P(161))}}catch(l){oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gb(e,t,n){I=e,Wg(e)}function Wg(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var o=I,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Yi;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Se;a=Yi;var u=Se;if(Yi=s,(Se=l)&&!u)for(I=o;I!==null;)s=I,l=s.child,s.tag===22&&s.memoizedState!==null?lh(o):l!==null?(l.return=s,I=l):lh(o);for(;i!==null;)I=i,Wg(i),i=i.sibling;I=o,Yi=a,Se=u}sh(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,I=i):sh(e)}}function sh(e){for(;I!==null;){var t=I;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Se||xa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Se)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ct(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Hf(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Hf(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&ri(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}Se||t.flags&512&&Uu(t)}catch(f){oe(t,t.return,f)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function ah(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function lh(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xa(4,t)}catch(l){oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){oe(t,o,l)}}var i=t.return;try{Uu(t)}catch(l){oe(t,i,l)}break;case 5:var s=t.return;try{Uu(t)}catch(l){oe(t,s,l)}}}catch(l){oe(t,t.return,l)}if(t===e){I=null;break}var a=t.sibling;if(a!==null){a.return=t.return,I=a;break}I=t.return}}var vb=Math.ceil,Xs=Jt.ReactCurrentDispatcher,ad=Jt.ReactCurrentOwner,rt=Jt.ReactCurrentBatchConfig,W=0,me=null,ce=null,ye=0,ze=0,Ir=An(0),he=0,pi=null,Zn=0,Ca=0,ld=0,Ko=null,Ie=null,ud=0,Xr=1/0,Lt=null,Zs=!1,Wu=null,wn=null,Ji=!1,fn=null,ea=0,Go=0,Bu=null,bs=-1,Ss=0;function Pe(){return W&6?ie():bs!==-1?bs:bs=ie()}function _n(e){return e.mode&1?W&2&&ye!==0?ye&-ye:eb.transition!==null?(Ss===0&&(Ss=Cm()),Ss):(e=K,e!==0||(e=window.event,e=e===void 0?16:Nm(e.type)),e):1}function gt(e,t,n,r){if(50<Go)throw Go=0,Bu=null,Error(P(185));Ci(e,n,r),(!(W&2)||e!==me)&&(e===me&&(!(W&2)&&(Ca|=n),he===4&&un(e,ye)),Me(e,r),n===1&&W===0&&!(t.mode&1)&&(Xr=ie()+500,Sa&&In()))}function Me(e,t){var n=e.callbackNode;e_(e,t);var r=Ms(e,e===me?ye:0);if(r===0)n!==null&&vf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vf(n),t===1)e.tag===0?Z_(uh.bind(null,e)):Xm(uh.bind(null,e)),Y_(function(){!(W&6)&&In()}),n=null;else{switch(Tm(r)){case 1:n=Dc;break;case 4:n=km;break;case 16:n=Ls;break;case 536870912:n=xm;break;default:n=Ls}n=Jg(n,Bg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Bg(e,t){if(bs=-1,Ss=0,W&6)throw Error(P(327));var n=e.callbackNode;if(Ur()&&e.callbackNode!==n)return null;var r=Ms(e,e===me?ye:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ta(e,r);else{t=r;var o=W;W|=2;var i=Vg();(me!==e||ye!==t)&&(Lt=null,Xr=ie()+500,Gn(e,t));do try{_b();break}catch(a){Hg(e,a)}while(!0);Gc(),Xs.current=i,W=o,ce!==null?t=0:(me=null,ye=0,t=he)}if(t!==0){if(t===2&&(o=gu(e),o!==0&&(r=o,t=Hu(e,o))),t===1)throw n=pi,Gn(e,0),un(e,r),Me(e,ie()),n;if(t===6)un(e,r);else{if(o=e.current.alternate,!(r&30)&&!yb(o)&&(t=ta(e,r),t===2&&(i=gu(e),i!==0&&(r=i,t=Hu(e,i))),t===1))throw n=pi,Gn(e,0),un(e,r),Me(e,ie()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(P(345));case 2:$n(e,Ie,Lt);break;case 3:if(un(e,r),(r&130023424)===r&&(t=ud+500-ie(),10<t)){if(Ms(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Pe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ku($n.bind(null,e,Ie,Lt),t);break}$n(e,Ie,Lt);break;case 4:if(un(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-mt(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vb(r/1960))-r,10<r){e.timeoutHandle=ku($n.bind(null,e,Ie,Lt),r);break}$n(e,Ie,Lt);break;case 5:$n(e,Ie,Lt);break;default:throw Error(P(329))}}}return Me(e,ie()),e.callbackNode===n?Bg.bind(null,e):null}function Hu(e,t){var n=Ko;return e.current.memoizedState.isDehydrated&&(Gn(e,t).flags|=256),e=ta(e,t),e!==2&&(t=Ie,Ie=n,t!==null&&Vu(t)),e}function Vu(e){Ie===null?Ie=e:Ie.push.apply(Ie,e)}function yb(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!vt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function un(e,t){for(t&=~ld,t&=~Ca,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-mt(t),r=1<<n;e[n]=-1,t&=~r}}function uh(e){if(W&6)throw Error(P(327));Ur();var t=Ms(e,0);if(!(t&1))return Me(e,ie()),null;var n=ta(e,t);if(e.tag!==0&&n===2){var r=gu(e);r!==0&&(t=r,n=Hu(e,r))}if(n===1)throw n=pi,Gn(e,0),un(e,t),Me(e,ie()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$n(e,Ie,Lt),Me(e,ie()),null}function cd(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(Xr=ie()+500,Sa&&In())}}function er(e){fn!==null&&fn.tag===0&&!(W&6)&&Ur();var t=W;W|=1;var n=rt.transition,r=K;try{if(rt.transition=null,K=1,e)return e()}finally{K=r,rt.transition=n,W=t,!(W&6)&&In()}}function dd(){ze=Ir.current,Z(Ir)}function Gn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,G_(n)),ce!==null)for(n=ce.return;n!==null;){var r=n;switch(Vc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ws();break;case 3:Jr(),Z(De),Z(ke),ed();break;case 5:Zc(r);break;case 4:Jr();break;case 13:Z(te);break;case 19:Z(te);break;case 10:Yc(r.type._context);break;case 22:case 23:dd()}n=n.return}if(me=e,ce=e=bn(e.current,null),ye=ze=t,he=0,pi=null,ld=Ca=Zn=0,Ie=Ko=null,Hn!==null){for(t=0;t<Hn.length;t++)if(n=Hn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Hn=null}return e}function Hg(e,t){do{var n=ce;try{if(Gc(),ys.current=Qs,Js){for(var r=ne.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Js=!1}if(Xn=0,pe=fe=ne=null,Vo=!1,di=0,ad.current=null,n===null||n.return===null){he=1,pi=t,ce=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=ye,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Jf(s);if(p!==null){p.flags&=-257,Qf(p,s,a,i,t),p.mode&1&&Yf(i,u,t),t=p,l=u;var w=t.updateQueue;if(w===null){var y=new Set;y.add(l),t.updateQueue=y}else w.add(l);break e}else{if(!(t&1)){Yf(i,u,t),fd();break e}l=Error(P(426))}}else if(ee&&a.mode&1){var _=Jf(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Qf(_,s,a,i,t),qc(Qr(l,a));break e}}i=l=Qr(l,a),he!==4&&(he=2),Ko===null?Ko=[i]:Ko.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Tg(i,l,t);Bf(i,m);break e;case 1:a=l;var h=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(wn===null||!wn.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=Pg(i,a,t);Bf(i,b);break e}}i=i.return}while(i!==null)}Kg(n)}catch(S){t=S,ce===n&&n!==null&&(ce=n=n.return);continue}break}while(!0)}function Vg(){var e=Xs.current;return Xs.current=Qs,e===null?Qs:e}function fd(){(he===0||he===3||he===2)&&(he=4),me===null||!(Zn&268435455)&&!(Ca&268435455)||un(me,ye)}function ta(e,t){var n=W;W|=2;var r=Vg();(me!==e||ye!==t)&&(Lt=null,Gn(e,t));do try{wb();break}catch(o){Hg(e,o)}while(!0);if(Gc(),W=n,Xs.current=r,ce!==null)throw Error(P(261));return me=null,ye=0,he}function wb(){for(;ce!==null;)qg(ce)}function _b(){for(;ce!==null&&!V0();)qg(ce)}function qg(e){var t=Yg(e.alternate,e,ze);e.memoizedProps=e.pendingProps,t===null?Kg(e):ce=t,ad.current=null}function Kg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hb(n,t),n!==null){n.flags&=32767,ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{he=6,ce=null;return}}else if(n=fb(n,t,ze),n!==null){ce=n;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);he===0&&(he=5)}function $n(e,t,n){var r=K,o=rt.transition;try{rt.transition=null,K=1,bb(e,t,n,r)}finally{rt.transition=o,K=r}return null}function bb(e,t,n,r){do Ur();while(fn!==null);if(W&6)throw Error(P(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(t_(e,i),e===me&&(ce=me=null,ye=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ji||(Ji=!0,Jg(Ls,function(){return Ur(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=rt.transition,rt.transition=null;var s=K;K=1;var a=W;W|=4,ad.current=null,mb(e,n),zg(n,e),z_(Su),$s=!!bu,Su=bu=null,e.current=n,gb(n),q0(),W=a,K=s,rt.transition=i}else e.current=n;if(Ji&&(Ji=!1,fn=e,ea=o),i=e.pendingLanes,i===0&&(wn=null),Y0(n.stateNode),Me(e,ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Zs)throw Zs=!1,e=Wu,Wu=null,e;return ea&1&&e.tag!==0&&Ur(),i=e.pendingLanes,i&1?e===Bu?Go++:(Go=0,Bu=e):Go=0,In(),null}function Ur(){if(fn!==null){var e=Tm(ea),t=rt.transition,n=K;try{if(rt.transition=null,K=16>e?16:e,fn===null)var r=!1;else{if(e=fn,fn=null,ea=0,W&6)throw Error(P(331));var o=W;for(W|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(I=u;I!==null;){var c=I;switch(c.tag){case 0:case 11:case 15:qo(8,c,i)}var d=c.child;if(d!==null)d.return=c,I=d;else for(;I!==null;){c=I;var f=c.sibling,p=c.return;if($g(c),c===u){I=null;break}if(f!==null){f.return=p,I=f;break}I=p}}}var w=i.alternate;if(w!==null){var y=w.child;if(y!==null){w.child=null;do{var _=y.sibling;y.sibling=null,y=_}while(y!==null)}}I=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,I=s;else e:for(;I!==null;){if(i=I,i.flags&2048)switch(i.tag){case 0:case 11:case 15:qo(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,I=m;break e}I=i.return}}var h=e.current;for(I=h;I!==null;){s=I;var g=s.child;if(s.subtreeFlags&2064&&g!==null)g.return=s,I=g;else e:for(s=h;I!==null;){if(a=I,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:xa(9,a)}}catch(S){oe(a,a.return,S)}if(a===s){I=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,I=b;break e}I=a.return}}if(W=o,In(),Pt&&typeof Pt.onPostCommitFiberRoot=="function")try{Pt.onPostCommitFiberRoot(va,e)}catch{}r=!0}return r}finally{K=n,rt.transition=t}}return!1}function ch(e,t,n){t=Qr(n,t),t=Tg(e,t,1),e=yn(e,t,1),t=Pe(),e!==null&&(Ci(e,1,t),Me(e,t))}function oe(e,t,n){if(e.tag===3)ch(e,e,n);else for(;t!==null;){if(t.tag===3){ch(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(wn===null||!wn.has(r))){e=Qr(n,e),e=Pg(t,e,1),t=yn(t,e,1),e=Pe(),t!==null&&(Ci(t,1,e),Me(t,e));break}}t=t.return}}function Sb(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Pe(),e.pingedLanes|=e.suspendedLanes&n,me===e&&(ye&n)===n&&(he===4||he===3&&(ye&130023424)===ye&&500>ie()-ud?Gn(e,0):ld|=n),Me(e,t)}function Gg(e,t){t===0&&(e.mode&1?(t=Fi,Fi<<=1,!(Fi&130023424)&&(Fi=4194304)):t=1);var n=Pe();e=Vt(e,t),e!==null&&(Ci(e,t,n),Me(e,n))}function Eb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gg(e,n)}function kb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),Gg(e,n)}var Yg;Yg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,db(e,t,n);je=!!(e.flags&131072)}else je=!1,ee&&t.flags&1048576&&Zm(t,Vs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_s(e,t),e=t.pendingProps;var o=Kr(t,ke.current);$r(t,n),o=nd(null,t,r,e,o,n);var i=rd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Le(r)?(i=!0,Bs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Qc(t),o.updater=ka,t.stateNode=o,o._reactInternals=t,Au(t,r,e,n),t=ju(null,t,r,!0,i,n)):(t.tag=0,ee&&i&&Hc(t),Te(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_s(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Cb(r),e=ct(r,e),o){case 0:t=Nu(null,t,r,e,n);break e;case 1:t=eh(null,t,r,e,n);break e;case 11:t=Xf(null,t,r,e,n);break e;case 14:t=Zf(null,t,r,ct(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),Nu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),eh(e,t,r,o,n);case 3:e:{if(Ig(t),e===null)throw Error(P(387));r=t.pendingProps,i=t.memoizedState,o=i.element,ig(e,t),Gs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Qr(Error(P(423)),t),t=th(e,t,r,n,o);break e}else if(r!==o){o=Qr(Error(P(424)),t),t=th(e,t,r,n,o);break e}else for(Be=vn(t.stateNode.containerInfo.firstChild),He=t,ee=!0,ht=null,n=rg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gr(),r===o){t=qt(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return sg(t),e===null&&Pu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Eu(r,o)?s=null:i!==null&&Eu(r,i)&&(t.flags|=32),Ag(e,t),Te(e,t,s,n),t.child;case 6:return e===null&&Pu(t),null;case 13:return Ng(e,t,n);case 4:return Xc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yr(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),Xf(e,t,r,o,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,J(qs,r._currentValue),r._currentValue=s,i!==null)if(vt(i.value,s)){if(i.children===o.children&&!De.current){t=qt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);
vendor: 6,614 bytes, line 40
40i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Wt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ou(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(P(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ou(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Te(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$r(t,n),o=it(o),r=r(o),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,o=ct(r,t.pendingProps),o=ct(r.type,o),Zf(e,t,r,o,n);case 15:return Og(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),_s(e,t),t.tag=1,Le(r)?(e=!0,Bs(t)):e=!1,$r(t,n),Cg(t,r,o),Au(t,r,o,n),ju(null,t,r,!0,e,n);case 19:return jg(e,t,n);case 22:return Rg(e,t,n)}throw Error(P(156,t.tag))};function Jg(e,t){return Em(e,t)}function xb(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nt(e,t,n,r){return new xb(e,t,n,r)}function hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cb(e){if(typeof e=="function")return hd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ic)return 11;if(e===Nc)return 14}return 2}function bn(e,t){var n=e.alternate;return n===null?(n=nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Es(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")hd(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Sr:return Yn(n.children,o,i,t);case Ac:s=8,o|=8;break;case tu:return e=nt(12,n,t,o|2),e.elementType=tu,e.lanes=i,e;case nu:return e=nt(13,n,t,o),e.elementType=nu,e.lanes=i,e;case ru:return e=nt(19,n,t,o),e.elementType=ru,e.lanes=i,e;case sm:return Ta(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case om:s=10;break e;case im:s=9;break e;case Ic:s=11;break e;case Nc:s=14;break e;case sn:s=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=nt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Yn(e,t,n,r){return e=nt(7,e,r,t),e.lanes=n,e}function Ta(e,t,n,r){return e=nt(22,e,r,t),e.elementType=sm,e.lanes=n,e.stateNode={isHidden:!1},e}function Sl(e,t,n){return e=nt(6,e,null,t),e.lanes=n,e}function El(e,t,n){return t=nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Tb(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rl(0),this.expirationTimes=rl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function pd(e,t,n,r,o,i,s,a,l){return e=new Tb(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=nt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qc(i),e}function Pb(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:br,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Qg(e){if(!e)return xn;e=e._reactInternals;e:{if(or(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Le(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(Le(n))return Qm(e,n,t)}return t}function Xg(e,t,n,r,o,i,s,a,l){return e=pd(n,r,!0,e,o,i,s,a,l),e.context=Qg(null),n=e.current,r=Pe(),o=_n(n),i=Wt(r,o),i.callback=t??null,yn(n,i,o),e.current.lanes=o,Ci(e,o,r),Me(e,r),e}function Pa(e,t,n,r){var o=t.current,i=Pe(),s=_n(o);return n=Qg(n),t.context===null?t.context=n:t.pendingContext=n,t=Wt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=yn(o,t,s),e!==null&&(gt(e,o,s,i),vs(e,o,s)),s}function na(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function dh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function md(e,t){dh(e,t),(e=e.alternate)&&dh(e,t)}function Ob(){return null}var Zg=typeof reportError=="function"?reportError:function(e){console.error(e)};function gd(e){this._internalRoot=e}Oa.prototype.render=gd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));Pa(e,t,null,null)};Oa.prototype.unmount=gd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;er(function(){Pa(null,e,null,null)}),t[Ht]=null}};function Oa(e){this._internalRoot=e}Oa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ln.length&&t!==0&&t<ln[n].priority;n++);ln.splice(n,0,e),n===0&&Im(e)}};function vd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ra(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function fh(){}function Rb(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=na(s);i.call(u)}}var s=Xg(t,r,e,0,null,!1,!1,"",fh);return e._reactRootContainer=s,e[Ht]=s.current,si(e.nodeType===8?e.parentNode:e),er(),s}for(;
vendor: 4,852 bytes, line 40
40o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=na(l);a.call(u)}}var l=pd(e,0,!1,null,null,!1,!1,"",fh);return e._reactRootContainer=l,e[Ht]=l.current,si(e.nodeType===8?e.parentNode:e),er(function(){Pa(t,l,n,r)}),l}function Aa(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=na(s);a.call(l)}}Pa(t,s,e,o)}else s=Rb(n,t,e,o,r);return na(s)}Pm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Mo(t.pendingLanes);n!==0&&(Lc(t,n|1),Me(t,ie()),!(W&6)&&(Xr=ie()+500,In()))}break;case 13:er(function(){var r=Vt(e,1);if(r!==null){var o=Pe();gt(r,e,1,o)}}),md(e,1)}};Mc=function(e){if(e.tag===13){var t=Vt(e,134217728);if(t!==null){var n=Pe();gt(t,e,134217728,n)}md(e,134217728)}};Om=function(e){if(e.tag===13){var t=_n(e),n=Vt(e,t);if(n!==null){var r=Pe();gt(n,e,t,r)}md(e,t)}};Rm=function(){return K};Am=function(e,t){var n=K;try{return K=e,t()}finally{K=n}};hu=function(e,t,n){switch(t){case"input":if(su(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ba(r);if(!o)throw Error(P(90));lm(r),su(r,o)}}}break;case"textarea":cm(e,n);break;case"select":t=n.value,t!=null&&jr(e,!!n.multiple,t,!1)}};vm=cd;ym=er;var Ab={usingClientEntryPoint:!1,Events:[Pi,Cr,ba,mm,gm,cd]},xo={findFiberByHostInstance:Bn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ib={bundleType:xo.bundleType,version:xo.version,rendererPackageName:xo.rendererPackageName,rendererConfig:xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Jt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=bm(e),e===null?null:e.stateNode},findFiberByHostInstance:xo.findFiberByHostInstance||Ob,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qi.isDisabled&&Qi.supportsFiber)try{va=Qi.inject(Ib),Pt=Qi}catch{}}Ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ab;Ge.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vd(t))throw Error(P(200));return Pb(e,t,null,n)};Ge.createRoot=function(e,t){if(!vd(e))throw Error(P(299));var n=!1,r="",o=Zg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=pd(e,1,!1,null,null,n,!1,r,o),e[Ht]=t.current,si(e.nodeType===8?e.parentNode:e),new gd(t)};Ge.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=bm(t),e=e===null?null:e.stateNode,e};Ge.flushSync=function(e){return er(e)};Ge.hydrate=function(e,t,n){if(!Ra(t))throw Error(P(200));return Aa(null,e,t,!0,n)};Ge.hydrateRoot=function(e,t,n){if(!vd(e))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Zg;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Xg(t,null,e,1,n??null,o,!1,i,s),e[Ht]=t.current,si(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Oa(t)};Ge.render=function(e,t,n){if(!Ra(t))throw Error(P(200));return Aa(null,e,t,!1,n)};Ge.unmountComponentAtNode=function(e){if(!Ra(e))throw Error(P(40));return e._reactRootContainer?(er(function(){Aa(null,null,e,!1,function(){e._reactRootContainer=null,e[Ht]=null})}),!0):!1};Ge.unstable_batchedUpdates=cd;Ge.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ra(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return Aa(e,t,n,!1,r)};Ge.version="18.3.1-next-f1338f8080-20240426";function ev(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ev)}catch(e){console.error(e)}}ev(),em.exports=Ge;var Ia=em.exports;const Nb=ki(Ia);var jb,hh=Ia;jb=hh.createRoot,hh.hydrateRoot;var Db=typeof Element<"u",Lb=typeof Map=="function",Mb=typeof Set=="function",$b=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ks(e,t){if(e===t)return!0;
40if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ks(e[r],t[r]))return!1;return!0}var i;if(Lb&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ks(r.value[1],t.get(r.value[0])))return!1;return!0}if(Mb&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if($b&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Db&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!ks(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var Ub=function(t,n){try{return ks(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Fb=ki(Ub);var zb=function(e,t,n,r,o,i,s,a){if(!e){var l;if(t===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=[n,r,o,i,s,a],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},Wb=zb;const ph=ki(Wb);var Bb=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var s=Object.keys(t),a=Object.keys(n);if(s.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<s.length;u++){var c=s[u];if(!l(c))return!1;var d=t[c],f=n[c];if(i=r?r.call(o,d,f,c):void 0,i===!1||i===void 0&&d!==f)return!1}return!0};const Hb=ki(Bb);var tv=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(tv||{}),kl={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"]}},mh=Object.values(tv),yd={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Vb=Object.entries(yd).reduce((e,[t,n])=>(e[n]=t,e),{}),pt="data-rh",Fr={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},zr=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},qb=e=>{let t=zr(e,"title");const n=zr(e,Fr.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=zr(e,Fr.DEFAULT_TITLE);return t||r||void 0},Kb=e=>zr(e,Fr.ON_CHANGE_CLIENT_STATE)||(()=>{}),xl=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),Gb=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const o=Object.keys(r);for(let i=0;i<o.length;i+=1){const a=o[i].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),Yb=e=>console&&typeof console.warn=="function"&&console.warn(e),Co=(e,t,n)=>{const r={};return n.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&Yb(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,i)=>{const s={};i.filter(l=>{let u;const c=Object.keys(l);for(let f=0;f<c.length;f+=1){const p=c[f],w=p.toLowerCase();t.indexOf(w)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(w==="rel"&&l[w].toLowerCase()==="stylesheet")&&(u=w),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(u=p)}if(!u||!l[u])return!1;const d=l[u].toLowerCase();return r[u]||(r[u]={}),s[u]||(s[u]={}),r[u][d]?!1:(s[u][d]=!0,!0)}
40).reverse().forEach(l=>o.push(l));const a=Object.keys(s);for(let l=0;l<a.length;l+=1){const u=a[l],c={...r[u],...s[u]};r[u]=c}return o},[]).reverse()},Jb=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},Qb=e=>({baseTag:Gb(["href"],e),bodyAttributes:xl("bodyAttributes",e),defer:zr(e,Fr.DEFER),encode:zr(e,Fr.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:xl("htmlAttributes",e),linkTags:Co("link",["rel","href"],e),metaTags:Co("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Co("noscript",["innerHTML"],e),onChangeClientState:Kb(e),scriptTags:Co("script",["src","innerHTML"],e),styleTags:Co("style",["cssText"],e),title:qb(e),titleAttributes:xl("titleAttributes",e),prioritizeSeoTags:Jb(e,Fr.PRIORITIZE_SEO_TAGS)}),nv=e=>Array.isArray(e)?e.join(""):e,Xb=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Cl=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(Xb(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},gh=(e,t)=>({...e,[t]:void 0}),Zb=["noscript","script","style"],qu=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),rv=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),eS=(e,t,n,r)=>{const o=rv(n),i=nv(t);return o?`<${e} ${pt}="true" ${o}>${qu(i,r)}</${e}>`:`<${e} ${pt}="true">${qu(i,r)}</${e}>`},tS=(e,t,n=!0)=>t.reduce((r,o)=>{const i=o,s=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,c)=>{const d=typeof i[c]>"u"?c:`${c}="${qu(i[c],n)}"`;return u?`${u} ${d}`:d},""),a=i.innerHTML||i.cssText||"",l=Zb.indexOf(e)===-1;return`${r}<${e} ${pt}="true" ${s}${l?"/>":`>${a}</${e}>`}`},""),ov=(e,t={})=>Object.keys(e).reduce((n,r)=>{const o=yd[r];return n[o||r]=e[r],n},t),nS=(e,t,n)=>{const r={key:t,[pt]:!0},o=ov(n,r);return[Ut.createElement("title",o,t)]},xs=(e,t)=>t.map((n,r)=>{const o={key:r,[pt]:!0};return Object.keys(n).forEach(i=>{const a=yd[i]||i;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:l}}else o[a]=n[i]}),Ut.createElement(e,o)}),Ze=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>nS(e,t.title,t.titleAttributes),toString:()=>eS(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>ov(t),toString:()=>rv(t)};default:return{toComponent:()=>xs(e,t),toString:()=>tS(e,t,n)}}},rS=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=Cl(e,kl.meta),i=Cl(t,kl.link),s=Cl(n,kl.script);return{priorityMethods:{toComponent:()=>[...xs("meta",o.priority),...xs("link",i.priority),...xs("script",s.priority)],toString:()=>`${Ze("meta",o.priority,r)} ${Ze("link",i.priority,r)} ${Ze("script",s.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:s.default}},oS=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,styleTags:s,title:a="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:c,metaTags:d,scriptTags:f}=e,p={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:p,linkTags:c,metaTags:d,scriptTags:f}=rS(e)),{priority:p,base:Ze("base",t,r),bodyAttributes:Ze("bodyAttributes",n,r),htmlAttributes:Ze("htmlAttributes",o,r),link:Ze("link",c,r),meta:Ze("meta",d,r),noscript:Ze("noscript",i,r),script:Ze("script",f,r),style:Ze("style",s,r),title:Ze("title",{title:a,titleAttributes:l},r)}},Ku=oS,Xi=[],iv=!!(typeof window<"u"&&window.document&&window.document.createElement),Gu=class{constructor(e,t){jt(this,"instances",[]);jt(this,"canUseDOM",iv);jt(this,"context");jt(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Xi:this.instances,add:e=>{(this.canUseDOM?Xi:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Xi:this.instances).indexOf(e);(this.canUseDOM?Xi:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Ku({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},iS={},sv=Ut.createContext(iS),Kn,sS=(Kn=class extends v.Component{constructor(n){super(n);jt(this,"helmetData");this.helmetData=new Gu(this.props.context||{},Kn.canUseDOM)}render(){return Ut.createElement(sv.Provider,{value:this.helmetData.value},this.props.children)}},jt(Kn,"canUseDOM",iv),Kn),ar=(e,t)=>
40{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${pt}]`),o=[].slice.call(r),i=[];let s;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText")l.styleSheet?l.styleSheet.cssText=a.cssText:l.appendChild(document.createTextNode(a.cssText));else{const c=u,d=typeof a[c]>"u"?"":a[c];l.setAttribute(u,d)}l.setAttribute(pt,"true"),o.some((u,c)=>(s=c,l.isEqualNode(u)))?o.splice(s,1):i.push(l)}),o.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),i.forEach(a=>n.appendChild(a)),{oldTags:o,newTags:i}},Yu=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(pt),o=r?r.split(","):[],i=[...o],s=Object.keys(t);for(const a of s){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),o.indexOf(a)===-1&&o.push(a);const u=i.indexOf(a);u!==-1&&i.splice(u,1)}for(let a=i.length-1;a>=0;a-=1)n.removeAttribute(i[a]);o.length===i.length?n.removeAttribute(pt):n.getAttribute(pt)!==s.join(",")&&n.setAttribute(pt,s.join(","))},aS=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=nv(e)),Yu("title",t)},vh=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:i,metaTags:s,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:c,title:d,titleAttributes:f}=e;Yu("body",r),Yu("html",o),aS(d,f);const p={baseTag:ar("base",n),linkTags:ar("link",i),metaTags:ar("meta",s),noscriptTags:ar("noscript",a),scriptTags:ar("script",u),styleTags:ar("style",c)},w={},y={};Object.keys(p).forEach(_=>{const{newTags:m,oldTags:h}=p[_];m.length&&(w[_]=m),h.length&&(y[_]=p[_].oldTags)}),t&&t(),l(e,w,y)},To=null,lS=e=>{To&&cancelAnimationFrame(To),e.defer?To=requestAnimationFrame(()=>{vh(e,()=>{To=null})}):(vh(e),To=null)},uS=lS,yh=class extends v.Component{constructor(){super(...arguments);jt(this,"rendered",!1)}shouldComponentUpdate(t){return!Hb(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const o=Qb(t.get().map(i=>{const s={...i.props};return delete s.context,s}));sS.canUseDOM?uS(o):Ku&&(r=Ku(o)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Zl,$A=(Zl=class extends v.Component{shouldComponentUpdate(e){return!Fb(gh(this.props,"helmetData"),gh(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return ph(mh.some(n=>e.type===n),typeof e.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 ${mh.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),ph(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return Ut.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:o,...i}=r.props,s=Object.keys(i).reduce((l,u)=>(l[Vb[u]||u]=i[u],l),{});let{type:a}=r;
vendor: 18,017 bytes, lines 40-105
40switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,o),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,s,o);break;default:t=this.mapObjectTypeChildren(r,t,s,o);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Gu)){const o=r;r=new Gu(o.context,!0),delete n.helmetData}return r?Ut.createElement(yh,{...n,context:r.value}):Ut.createElement(sv.Consumer,null,o=>Ut.createElement(yh,{...n,context:o}))}},jt(Zl,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Zl);function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function wh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function av(...e){return t=>{let n=!1;const r=e.map(o=>{const i=wh(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():wh(e[o],null)}}}}function Je(...e){return v.useCallback(av(...e),e)}function cS(e,t){const n=v.createContext(t),r=i=>{const{children:s,...a}=i,l=v.useMemo(()=>a,Object.values(a));return x.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=v.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Na(e,t=[]){let n=[];function r(i,s){const a=v.createContext(s),l=n.length;n=[...n,s];const u=d=>{var m;const{scope:f,children:p,...w}=d,y=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,_=v.useMemo(()=>w,Object.values(w));return x.jsx(y.Provider,{value:_,children:p})};u.displayName=i+"Provider";function c(d,f){var y;const p=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,w=v.useContext(p);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,dS(o,...t)]}function dS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function wd(e){const t=hS(e),n=v.forwardRef((r,o)=>{const{children:i,...s}=r,a=v.Children.toArray(i),l=a.find(mS);if(l){const u=l.props.children,c=a.map(d=>d===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:d);return x.jsx(t,{...s,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,c):null})}return x.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var fS=wd("Slot");function hS(e){const t=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const s=vS(o),a=gS(i,o.props);return o.type!==v.Fragment&&(a.ref=r?av(r,s):s),v.cloneElement(o,a)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lv=Symbol("radix.slottable");function pS(e){const t=({children:n})=>x.jsx(x.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=lv,t}function mS(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lv}function gS(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function vS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=yS.reduce((e,t)=>{const n=wd(`Primitive.${t}`),r=v.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function wS(e,t){e&&Ia.flushSync(()=>e.dispatchEvent(t))}function Zr(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function _S(e,t=globalThis==null?void 0:globalThis.document){const n=Zr(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var bS="DismissableLayer",Ju="dismissableLayer.update",SS="dismissableLayer.pointerDownOutside",ES="dismissableLayer.focusOutside",_h,uv=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ja=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=v.useContext(uv),[c,d]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=v.useState({}),w=Je(t,E=>d(E)),y=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=y.indexOf(_),h=c?y.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,b=h>=m,S=xS(E=>{const T=E.target,O=[...u.branches].some(R=>R.contains(T));!b||O||(o==null||o(E),s==null||s(E),E.defaultPrevented||a==null||a())},f),k=CS(E=>{const T=E.target;[...u.branches].some(R=>R.contains(T))||(i==null||i(E),s==null||s(E),E.defaultPrevented||a==null||a())},f);return _S(E=>{h===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),v.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(_h=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),bh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=_h)}},[c,f,n,u]),v.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),bh())},[c,u]),v.useEffect(()=>{const E=()=>p({});return document.addEventListener(Ju,E),()=>document.removeEventListener(Ju,E)},[]),x.jsx(ge.div,{...l,ref:w,style:{pointerEvents:g?b?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,S.onPointerDownCapture)})});ja.displayName=bS;var kS="DismissableLayerBranch",cv=v.forwardRef((e,t)=>{const n=v.useContext(uv),r=v.useRef(null),o=Je(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),x.jsx(ge.div,{...e,ref:o})});cv.displayName=kS;function xS(e,t=globalThis==null?void 0:globalThis.document){const n=Zr(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){dv(SS,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function CS(e,t=globalThis==null?void 0:globalThis.document){const n=Zr(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&dv(ES,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function bh(){const e=new CustomEvent(Ju);document.dispatchEvent(e)}function dv(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?wS(o,i):o.dispatchEvent(i)}var UA=ja,FA=cv,Cn=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},TS="Portal",fv=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);Cn(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Nb.createPortal(x.jsx(ge.div,{...r,ref:t}),s):null});fv.displayName=TS;function PS(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var so=e=>{const{present:t,children:n}=e,r=OS(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Je(r.ref,RS(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};so.displayName="Presence";function OS(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=PS(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Zi(r.current);i.current=a==="mounted"?u:"none"},[a]),Cn(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,p=Zi(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Cn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=p=>{const y=Zi(r.current).includes(p.animationName);if(p.target===t&&y&&(l("ANIMATION_END"),!o.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},f=p=>{p.target===t&&(i.current=Zi(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Zi(e){return(e==null?void 0:e.animationName)||"none"}function RS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var AS=Tc[" useInsertionEffect ".trim().toString()]||Cn;function _d({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=IS({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=v.useRef(e!==void 0);v.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=v.useCallback(c=>{var d;if(a){const f=NS(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else i(c)},[a,e,i,s]);return[l,u]}function IS({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),i=v.useRef(t);return AS(()=>{i.current=t},[t]),v.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function NS(e){return typeof e=="function"}var jS=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"}),DS="VisuallyHidden",hv=v.forwardRef((e,t)=>x.jsx(ge.span,{...e,ref:t,style:{...jS,...e.style}}));hv.displayName=DS;var LS=hv;function pv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=pv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mv(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=pv(e))&&(r&&(r+=" "),r+=t);return r}const Sh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Eh=mv,gv=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Eh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=Sh(c)||Sh(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...p}=c;return Object.entries(p).every(w=>{let[y,_]=w;return Array.isArray(_)?_.includes({...i,...a}[y]):{...i,...a}[y]===_})?[...u,d,f]:u},[]);return Eh(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const MS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var $S={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 US=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>v.createElement("svg",{ref:l,...$S,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:vv("lucide",o),...a},[...s.map(([u,c])=>v.createElement(u,c)),...Array.isArray(i)?i:[i]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Qe=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(US,{ref:i,iconNode:t,className:vv(`lucide-${MS(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const zA=Qe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
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 WA=Qe("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
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 FS=Qe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 BA=Qe("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
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 kh=Qe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 HA=Qe("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
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 VA=Qe("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 zS=Qe("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
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 qA=Qe("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 9,055 bytes, lines 105-125
105y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
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 KA=Qe("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
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 GA=Qe("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"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const YA=Qe("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const WS=Qe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),bd="-",BS=e=>{const t=VS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(bd);return a[0]===""&&a.length!==1&&a.shift(),yv(a,t)||HS(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},yv=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?yv(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(bd);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},xh=/^\[(.+)\]$/,HS=e=>{if(xh.test(e)){const t=xh.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},VS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return KS(Object.entries(e.classGroups),n).forEach(([i,s])=>{Qu(s,r,i,t)}),r},Qu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Ch(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(qS(o)){Qu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Qu(s,Ch(t,i),n,r)})})},Ch=(e,t)=>{let n=e;return t.split(bd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},qS=e=>e.isThemeGetter,KS=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,GS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},wv="!",YS=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let u=0,c=0,d;for(let _=0;_<a.length;_++){let m=a[_];if(u===0){if(m===o&&(r||a.slice(_,_+i)===t)){l.push(a.slice(c,_)),c=_+i;continue}if(m==="/"){d=_;continue}}m==="["?u++:m==="]"&&u--}const f=l.length===0?a:a.substring(c),p=f.startsWith(wv),w=p?f.substring(1):f,y=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:w,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:s}):s},JS=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},QS=e=>({cache:GS(e.cacheSize),parseClassName:YS(e),...BS(e)}),XS=/\s+/,ZS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(XS);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(u);let w=!!p,y=r(w?f.substring(0,p):f);if(!y){if(!w){a=u+(a.length>0?" "+a:a);continue}if(y=r(f),!y){a=u+(a.length>0?" "+a:a);continue}w=!1}const _=JS(c).join(":"),m=d?_+wv:_,h=m+y;if(i.includes(h))continue;i.push(h);const g=o(y,w);for(let b=0;b<g.length;++b){const S=g[b];i.push(m+S)}a=u+(a.length>0?" "+a:a)}return a};function eE(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=_v(t))&&(r&&(r+=" "),r+=n);return r}const _v=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_v(e[r]))&&(n&&(n+=" "),n+=t);return n};function tE(e,...t){let n,r,o,i=s;function s(l){const u=t.reduce((c,d)=>d(c),e());return n=QS(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=ZS(l,n);return o(l,c),c}return function(){return i(eE.apply(null,arguments))}}const Q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},bv=/^\[(?:([a-z-]+):)?(.+)\]$/i,nE=/^\d+\/\d+$/,rE=new Set(["px","full","screen"]),oE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iE=/\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$/,sE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,aE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dt=e=>Wr(e)||rE.has(e)||nE.test(e),Xt=e=>ao(e,"length",gE),Wr=e=>!!e&&!Number.isNaN(Number(e)),Tl=e=>ao(e,"number",Wr),Po=e=>!!e&&Number.isInteger(Number(e)),uE=e=>e.endsWith("%")&&Wr(e.slice(0,-1)),M=e=>bv.test(e),Zt=e=>oE.test(e),cE=new Set(["length","size","percentage"]),dE=e=>ao(e,cE,Sv),fE=e=>ao(e,"position",Sv),hE=new Set(["image","url"]),pE=e=>ao(e,hE,yE),mE=e=>ao(e,"",vE),Oo=()=>!0,ao=(e,t,n)=>{const r=bv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},gE=e=>iE.test(e)&&!sE.test(e),Sv=()=>!1,vE=e=>aE.test(e),yE=e=>lE.test(e),wE=()=>{const e=Q("colors"),t=Q("spacing"),n=Q("blur"),r=Q("brightness"),o=Q("borderColor"),i=Q("borderRadius"),s=Q("borderSpacing"),a=Q("borderWidth"),l=Q("contrast"),u=Q("grayscale"),c=Q("hueRotate"),d=Q("invert"),f=Q("gap"),p=Q("gradientColorStops"),w=Q("gradientColorStopPositions"),y=Q("inset"),_=Q("margin"),m=Q("opacity"),h=Q("padding"),g=Q("saturate"),b=Q("scale"),S=Q("sepia"),k=Q("skew"),E=Q("space"),T=Q("translate"),O=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",M,t],j=()=>[M,t],z=()=>["",Dt,Xt],B=()=>["auto",Wr,M],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],G=()=>["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"],A=()=>["","0",M],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Wr,M];return{cacheSize:500,separator:":",theme:{colors:[Oo],spacing:[Dt,Xt],blur:["none","",Zt,M],brightness:$(),borderColor:[e],borderRadius:["none","","full",Zt,M],borderSpacing:j(),borderWidth:z(),contrast:$(),grayscale:A(),hueRotate:$(),invert:A(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[uE,Xt],inset:U(),margin:U(),opacity:$(),padding:j(),saturate:$(),scale:$(),sepia:A(),skew:$(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[Zt]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:[...ae(),M]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}
vendor: 9,917 bytes, line 125
125],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Po,M]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",Po,M]}],"grid-cols":[{"grid-cols":[Oo]}],"col-start-end":[{col:["auto",{span:["full",Po,M]},M]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[Oo]}],"row-start-end":[{row:["auto",{span:[Po,M]},M]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],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:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-w":[{"min-w":[M,t,"min","max","fit"]}],"max-w":[{"max-w":[M,t,"none","full","min","max","fit","prose",{screen:[Zt]},Zt]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Zt,Xt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Tl]}],"font-family":[{font:[Oo]}],"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",M]}],"line-clamp":[{"line-clamp":["none",Wr,Tl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Dt,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Dt,Xt]}],"underline-offset":[{"underline-offset":["auto",Dt,M]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],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",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),fE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"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":[m]}],"divide-style":[{divide:H()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[Dt,M]}],"outline-w":[{outline:[Dt,Xt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Dt,Xt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Zt,mE]}],"shadow-color":[{shadow:[Oo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Zt,M]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Po,M]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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: 14,873 bytes, line 125
125],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",M]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Dt,Xt,Tl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},_E=tE(wE);function $e(...e){return _E(mv(e))}var bE=Tc[" useId ".trim().toString()]||(()=>{}),SE=0;function Cs(e){const[t,n]=v.useState(bE());return Cn(()=>{n(r=>r??String(SE++))},[e]),t?`radix-${t}`:""}const EE=["top","right","bottom","left"],Tn=Math.min,We=Math.max,ra=Math.round,es=Math.floor,Rt=e=>({x:e,y:e}),kE={left:"right",right:"left",bottom:"top",top:"bottom"},xE={start:"end",end:"start"};function Xu(e,t,n){return We(e,Tn(t,n))}function Kt(e,t){return typeof e=="function"?e(t):e}function Gt(e){return e.split("-")[0]}function lo(e){return e.split("-")[1]}function Sd(e){return e==="x"?"y":"x"}function Ed(e){return e==="y"?"height":"width"}const CE=new Set(["top","bottom"]);function Ct(e){return CE.has(Gt(e))?"y":"x"}function kd(e){return Sd(Ct(e))}function TE(e,t,n){n===void 0&&(n=!1);const r=lo(e),o=kd(e),i=Ed(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=oa(s)),[s,oa(s)]}function PE(e){const t=oa(e);return[Zu(e),t,Zu(t)]}function Zu(e){return e.replace(/start|end/g,t=>xE[t])}const Th=["left","right"],Ph=["right","left"],OE=["top","bottom"],RE=["bottom","top"];function AE(e,t,n){switch(e){case"top":case"bottom":return n?t?Ph:Th:t?Th:Ph;case"left":case"right":return t?OE:RE;default:return[]}}function IE(e,t,n,r){const o=lo(e);let i=AE(Gt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Zu)))),i}function oa(e){return e.replace(/left|right|bottom|top/g,t=>kE[t])}function NE(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ev(e){return typeof e!="number"?NE(e):{top:e,right:e,bottom:e,left:e}}function ia(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Oh(e,t,n){let{reference:r,floating:o}=e;const i=Ct(t),s=kd(t),a=Ed(s),l=Gt(t),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(lo(t)){case"start":p[s]-=f*(n&&u?-1:1);break;case"end":p[s]+=f*(n&&u?-1:1);break}return p}const jE=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Oh(u,r,l),f=r,p={},w=0;for(let y=0;y<a.length;y++){const{name:_,fn:m}=a[y],{x:h,y:g,data:b,reset:S}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=h??c,d=g??d,p={...p,[_]:{...p[_],...b}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:c,y:d}=Oh(u,f,l)),y=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function mi(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Kt(t,e),w=Ev(p),_=a[f?d==="floating"?"reference":"floating":d],m=ia(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),h=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(g))?await(i.getScale==null?void 0:i.getScale(g))||{x:1,y:1}:{x:1,y:1},S=ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:h,offsetParent:g,strategy:l}):h);return{top:(m.top-S.top+w.top)/b.y,bottom:(S.bottom-m.bottom+w.bottom)/b.y,left:(m.left-S.left+w.left)/b.x,right:(S.right-m.right+w.right)/b.x}}const DE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Kt(e,t)||{};if(u==null)return{};const d=Ev(c),f={x:n,y:r},p=kd(o),w=Ed(p),y=await s.getDimensions(u),_=p==="y",m=_?"top":"left",h=_?"bottom":"right",g=_?"clientHeight":"clientWidth",b=i.reference[w]+i.reference[p]-f[p]-i.floating[w],S=f[p]-i.reference[p],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let E=k?k[g]:0;(!E||!await(s.isElement==null?void 0:s.isElement(k)))&&(E=a.floating[g]||i.floating[w]);const T=b/2-S/2,O=E/2-y[w]/2-1,R=Tn(d[m],O),U=Tn(d[h],O),j=R,z=E-y[w]-U,B=E/2-y[w]/2+T,ae=Xu(j,B,z),H=!l.arrow&&lo(o)!=null&&B!==ae&&i.reference[w]/2-(B<j?R:U)-y[w]/2<0,G=H?B<j?B-j:B-z:0;return{[p]:f[p]+G,data:{[p]:ae,centerOffset:B-ae-G,...H&&{alignmentOffset:G}},reset:H}}}),LE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:y=!0,..._}=Kt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Gt(o),h=Ct(a),g=Gt(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(g||!y?[oa(a)]:PE(a)),k=w!=="none";!f&&k&&S.push(...IE(a,y,w,b));const E=[a,...S],T=await mi(t,_),O=[];let R=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&O.push(T[m]),d){const B=TE(o,s,b);O.push(T[B[0]],T[B[1]])}if(R=[...R,{placement:o,overflows:O}],!O.every(B=>B<=0)){var U,j;const B=(((U=i.flip)==null?void 0:U.index)||0)+1,ae=E[B];if(ae&&(!(d==="alignment"?h!==Ct(ae):!1)||R.every(C=>C.overflows[0]>0&&Ct(C.placement)===h)))return{data:{index:B,overflows:R},reset:{placement:ae}};let H=(j=R.filter(G=>G.overflows[0]<=0).sort((G,C)=>G.overflows[1]-C.overflows[1])[0])==null?void 0:j.placement;if(!H)switch(p){case"bestFit":{var z;const G=(z=R.filter(C=>{if(k){const A=Ct(C.placement);return A===h||A==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(A=>A>0).reduce((A,N)=>A+N,0)]).sort((C,A)=>C[1]-A[1])[0])==null?void 0:z[0];G&&(H=G);break}case"initialPlacement":H=a;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function Rh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ah(e){return EE.some(t=>e[t]>=0)}const ME=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Kt(e,t);switch(r){case"referenceHidden":{const i=await mi(t,{...o,elementContext:"reference"}),s=Rh(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ah(s)}}}case"escaped":{const i=await mi(t,{...o,altBoundary:!0}),s=Rh(i,n.floating);return{data:{escapedOffsets:s,escaped:Ah(s)}}}default:return{}}}}},kv=new Set(["left","top"]);async function $E(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Gt(n),a=lo(n),l=Ct(n)==="y",u=kv.has(s)?-1:1,c=i&&l?-1:1,d=Kt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof w=="number"&&(p=a==="end"?w*-1:w),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}const UE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await $E(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},FE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:_=>{let{x:m,y:h}=_;return{x:m,y:h}}},...l}=Kt(e,t),u={x:n,y:r},c=await mi(t,l),d=Ct(Gt(o)),f=Sd(d);let p=u[f],w=u[d];if(i){const _=f==="y"?"top":"left",m=f==="y"?"bottom":"right",h=p+c[_],g=p-c[m];p=Xu(h,p,g)}if(s){const _=d==="y"?"top":"left",m=d==="y"?"bottom":"right",h=w+c[_],g=w-c[m];w=Xu(h,w,g)}const y=a.fn({...t,[f]:p,[d]:w});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:i,[d]:s}}}}}},zE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Kt(e,t),c={x:n,y:r},d=Ct(o),f=Sd(d);let p=c[f],w=c[d];const y=Kt(a,t),_=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const g=f==="y"?"height":"width",b=i.reference[f]-i.floating[g]+_.mainAxis,S=i.reference[f]+i.reference[g]-_.mainAxis;p<b?p=b:p>S&&(p=S)}if(u){var m,h;const g=f==="y"?"width":"height",b=kv.has(Gt(o)),S=i.reference[d]-i.floating[g]+(b&&((m=s.offset)==null?void 0:m[d])||0)+(b?0:_.crossAxis),k=i.reference[d]+i.reference[g]+(b?0:((h=s.offset)==null?void 0:h[d])||0)-(b?_.crossAxis:0);w<S?w=S:w>k&&(w=k)}return{[f]:p,[d]:w}}}},WE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Kt(e,t),c=await mi(t,u),d=Gt(o),f=lo(o),p=Ct(o)==="y",{width:w,height:y}=i.floating;let _,m;d==="top"||d==="bottom"?(_=d,m=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=d,_=f==="end"?"top":"bottom");const h=y-c.top-c.bottom,g=w-c.left-c.right,b=Tn(y-c[_],h),S=Tn(w-c[m],g),k=!t.middlewareData.shift;let E=b,T=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=h),k&&!f){const R=We(c.left,0),U=We(c.right,0),j=We(c.top,0),z=We(c.bottom,0);p?T=w-2*(R!==0||U!==0?R+U:We(c.left,c.right)):E=y-2*(j!==0||z!==0?j+z:We(c.top,c.bottom))}await l({...t,availableWidth:T,availableHeight:E});const O=await s.getDimensions(a.floating);return w!==O.width||y!==O.height?{reset:{rects:!0}}:{}}}};function Da(){return typeof window<"u"}function uo(e){return xv(e)?(e.nodeName||"").toLowerCase():"#document"}function Ve(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){var t;return(t=(xv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xv(e){return Da()?e instanceof Node||e instanceof Ve(e).Node:!1}function yt(e){return Da()?e instanceof Element||e instanceof Ve(e).Element:!1}function At(e){return Da()?e instanceof HTMLElement||e instanceof Ve(e).HTMLElement:!1}function Ih(e){return!Da()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ve(e).ShadowRoot}const BE=new Set(["inline","contents"]);function Ri(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!BE.has(o)}const HE=new Set(["table","td","th"]);function VE(e){return HE.has(uo(e))}const qE=[":popover-open",":modal"];function La(e){return qE.some(t=>{try{return e.matches(t)}catch{return!1}})}const KE=["transform","translate","scale","rotate","perspective"],GE=["transform","translate","scale","rotate","perspective","filter"],YE=["paint","layout","strict","content"];function xd(e){const t=Cd(),n=yt(e)?wt(e):e;return KE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||GE.some(r=>(n.willChange||"").includes(r))||YE.some(r=>(n.contain||"").includes(r))}function JE(e){let t=Pn(e);for(;At(t)&&!eo(t);){if(xd(t))return t;if(La(t))return null;t=Pn(t)}return null}function Cd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const QE=new Set(["html","body","#document"]);function eo(e){return QE.has(uo(e))}function wt(e){return Ve(e).getComputedStyle(e)}function Ma(e){return yt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pn(e){if(uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ih(e)&&e.host||It(e);return Ih(t)?t.host:t}function Cv(e){const t=Pn(e);return eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:At(t)&&Ri(t)?t:Cv(t)}function gi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Cv(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ve(o);if(i){const a=ec(s);
vendor: 6,504 bytes, line 125
125return t.concat(s,s.visualViewport||[],Ri(o)?o:[],a&&n?gi(a):[])}return t.concat(o,gi(o,[],n))}function ec(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tv(e){const t=wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=At(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ra(n)!==i||ra(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Td(e){return yt(e)?e:e.contextElement}function Br(e){const t=Td(e);if(!At(t))return Rt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tv(t);let s=(i?ra(n.width):n.width)/r,a=(i?ra(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const XE=Rt(0);function Pv(e){const t=Ve(e);return!Cd()||!t.visualViewport?XE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ve(e)?!1:t}function tr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Td(e);let s=Rt(1);t&&(r?yt(r)&&(s=Br(r)):s=Br(e));const a=ZE(i,n,r)?Pv(i):Rt(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){const f=Ve(i),p=r&&yt(r)?Ve(r):r;let w=f,y=ec(w);for(;y&&r&&p!==w;){const _=Br(y),m=y.getBoundingClientRect(),h=wt(y),g=m.left+(y.clientLeft+parseFloat(h.paddingLeft))*_.x,b=m.top+(y.clientTop+parseFloat(h.paddingTop))*_.y;l*=_.x,u*=_.y,c*=_.x,d*=_.y,l+=g,u+=b,w=Ve(y),y=ec(w)}}return ia({width:c,height:d,x:l,y:u})}function Pd(e,t){const n=Ma(e).scrollLeft;return t?t.left+n:tr(It(e)).left+n}function Ov(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Pd(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function ek(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=It(r),a=t?La(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Rt(1);const c=Rt(0),d=At(r);if((d||!d&&!i)&&((uo(r)!=="body"||Ri(s))&&(l=Ma(r)),At(r))){const p=tr(r);u=Br(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const f=s&&!d&&!i?Ov(s,l,!0):Rt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function tk(e){return Array.from(e.getClientRects())}function nk(e){const t=It(e),n=Ma(e),r=e.ownerDocument.body,o=We(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=We(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Pd(e);const a=-n.scrollTop;return wt(r).direction==="rtl"&&(s+=We(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function rk(e,t){const n=Ve(e),r=It(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Cd();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}const ok=new Set(["absolute","fixed"]);function ik(e,t){const n=tr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=At(e)?Br(e):Rt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function Nh(e,t,n){let r;if(t==="viewport")r=rk(e,n);else if(t==="document")r=nk(It(e));else if(yt(t))r=ik(t,n);else{const o=Pv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ia(r)}function Rv(e,t){const n=Pn(e);return n===t||!yt(n)||eo(n)?!1:wt(n).position==="fixed"||Rv(n,t)}function sk(e,t){const n=t.get(e);if(n)return n;let r=gi(e,[],!1).filter(a=>yt(a)&&uo(a)!=="body"),o=null;const i=wt(e).position==="fixed";let s=i?Pn(e):e;for(;yt(s)&&!eo(s);){const a=wt(s),l=xd(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&ok.has(o.position)||Ri(s)&&!l&&Rv(e,s))?r=r.filter(c=>c!==s):o=a,s=Pn(s)}return t.set(e,r),r}function ak(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?La(t)?[]:sk(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const d=Nh(t,c,o);return u.top=We(d.top,u.top),u.right=Tn(d.right,u.right),u.bottom=Tn(d.bottom,u.bottom),u.left=We(d.left,u.left),u},Nh(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function lk(e){const{width:t,height:n}=Tv(e);return{width:t,height:n}}function uk(e,t,n){const r=At(t),o=It(t),i=n==="fixed",s=tr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Rt(0);function u(){l.x=Pd(o)}if(r||!r&&!i)if((uo(t)!=="body"||Ri(o))&&(a=Ma(t)),r){const p=tr(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?Ov(o,a):Rt(0),d=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function Pl(e){return wt(e).position==="static"}function jh(e,t){if(!At(e)||wt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return It(e)===n&&(n=n.ownerDocument.body),n}function Av(e,t){const n=Ve(e);if(La(e))return n;if(!At(e)){let o=Pn(e);for(;o&&!eo(o);){if(yt(o)&&!Pl(o))return o;o=Pn(o)}return n}let r=jh(e,t);for(;r&&VE(r)&&Pl(r);)r=jh(r,t);return r&&eo(r)&&Pl(r)&&!xd(r)?n:r||JE(e)||n}const ck=async function(e){const t=this.getOffsetParent||Av,n=this.getDimensions,r=await n(e.floating);return{reference:uk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function dk(e){return wt(e).direction==="rtl"}const fk={convertOffsetParentRelativeRectToViewportRelativeRect:ek,getDocumentElement:It,getClippingRect:ak,getOffsetParent:Av,getElementRects:ck,getClientRects:tk,getDimensions:lk,getScale:Br,isElement:yt,isRTL:dk};function Iv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hk(e,t){let n=null,r;const o=It(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(a||t(),!f||!p)return;const w=es(d),y=es(o.clientWidth-(c+f)),_=es(o.clientHeight-(d+p)),m=es(c),g={rootMargin:-w+"px "+-y+"px "+-_+"px "+-m+"px",threshold:We(0,Tn(1,l))||1};let b=!0;function S(k){const E=k[0].intersectionRatio;if(E!==l){if(!b)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!Iv(u,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(S,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,g)}n.observe(e)}return s(!0),i}function pk(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Td(e),c=o||i?[...u?gi(u):[],...gi(t)]:[];
vendor: 8,292 bytes, line 125
125c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=u&&a?hk(u,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(m=>{let[h]=m;h&&h.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=p)==null||g.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let w,y=l?tr(e):null;l&&_();function _(){const m=tr(e);y&&!Iv(y,m)&&n(),y=m,w=requestAnimationFrame(_)}return n(),()=>{var m;c.forEach(h=>{o&&h.removeEventListener("scroll",n),i&&h.removeEventListener("resize",n)}),d==null||d(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(w)}}const mk=UE,gk=FE,vk=LE,yk=WE,wk=ME,Dh=DE,_k=zE,bk=(e,t,n)=>{const r=new Map,o={platform:fk,...n},i={...o.platform,_c:r};return jE(e,t,{...o,platform:i})};var Sk=typeof document<"u",Ek=function(){},Ts=Sk?v.useLayoutEffect:Ek;function sa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!sa(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Nv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lh(e,t){const n=Nv(e);return Math.round(t*n)/n}function Ol(e){const t=v.useRef(e);return Ts(()=>{t.current=e}),t}function kk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);sa(f,r)||p(r);const[w,y]=v.useState(null),[_,m]=v.useState(null),h=v.useCallback(C=>{C!==k.current&&(k.current=C,y(C))},[]),g=v.useCallback(C=>{C!==E.current&&(E.current=C,m(C))},[]),b=i||w,S=s||_,k=v.useRef(null),E=v.useRef(null),T=v.useRef(c),O=l!=null,R=Ol(l),U=Ol(o),j=Ol(u),z=v.useCallback(()=>{if(!k.current||!E.current)return;const C={placement:t,strategy:n,middleware:f};U.current&&(C.platform=U.current),bk(k.current,E.current,C).then(A=>{const N={...A,isPositioned:j.current!==!1};B.current&&!sa(T.current,N)&&(T.current=N,Ia.flushSync(()=>{d(N)}))})},[f,t,n,U,j]);Ts(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[u]);const B=v.useRef(!1);Ts(()=>(B.current=!0,()=>{B.current=!1}),[]),Ts(()=>{if(b&&(k.current=b),S&&(E.current=S),b&&S){if(R.current)return R.current(b,S,z);z()}},[b,S,z,R,O]);const ae=v.useMemo(()=>({reference:k,floating:E,setReference:h,setFloating:g}),[h,g]),H=v.useMemo(()=>({reference:b,floating:S}),[b,S]),G=v.useMemo(()=>{const C={position:n,left:0,top:0};if(!H.floating)return C;const A=Lh(H.floating,c.x),N=Lh(H.floating,c.y);return a?{...C,transform:"translate("+A+"px, "+N+"px)",...Nv(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:N}},[n,a,H.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:z,refs:ae,elements:H,floatingStyles:G}),[c,z,ae,H,G])}const xk=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Dh({element:r.current,padding:o}).fn(n):{}:r?Dh({element:r,padding:o}).fn(n):{}}}},Ck=(e,t)=>({...mk(e),options:[e,t]}),Tk=(e,t)=>({...gk(e),options:[e,t]}),Pk=(e,t)=>({..._k(e),options:[e,t]}),Ok=(e,t)=>({...vk(e),options:[e,t]}),Rk=(e,t)=>({...yk(e),options:[e,t]}),Ak=(e,t)=>({...wk(e),options:[e,t]}),Ik=(e,t)=>({...xk(e),options:[e,t]});var Nk="Arrow",jv=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return x.jsx(ge.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});jv.displayName=Nk;var jk=jv;function Dv(e){const[t,n]=v.useState(void 0);return Cn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Od="Popper",[Lv,Mv]=Na(Od),[Dk,$v]=Lv(Od),Uv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return x.jsx(Dk,{scope:t,anchor:r,onAnchorChange:o,children:n})};Uv.displayName=Od;var Fv="PopperAnchor",zv=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=$v(Fv,n),s=v.useRef(null),a=Je(t,s);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:x.jsx(ge.div,{...o,ref:a})});zv.displayName=Fv;var Rd="PopperContent",[Lk,Mk]=Lv(Rd),Wv=v.forwardRef((e,t)=>{var at,go,Zd,ef,tf,nf;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:w,...y}=e,_=$v(Rd,n),[m,h]=v.useState(null),g=Je(t,vo=>h(vo)),[b,S]=v.useState(null),k=Dv(b),E=(k==null?void 0:k.width)??0,T=(k==null?void 0:k.height)??0,O=r+(i!=="center"?"-"+i:""),R=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},U=Array.isArray(u)?u:[u],j=U.length>0,z={padding:R,boundary:U.filter(Uk),altBoundary:j},{refs:B,floatingStyles:ae,placement:H,isPositioned:G,middlewareData:C}=kk({strategy:"fixed",placement:O,whileElementsMounted:(...vo)=>pk(...vo,{animationFrame:p==="always"}),elements:{reference:_.anchor},middleware:[Ck({mainAxis:o+T,alignmentAxis:s}),l&&Tk({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Pk():void 0,...z}),l&&Ok({...z}),Rk({...z,apply:({elements:vo,rects:rf,availableWidth:e0,availableHeight:t0})=>{const{width:n0,height:r0}=rf.reference,ji=vo.floating.style;ji.setProperty("--radix-popper-available-width",`${e0}px`),ji.setProperty("--radix-popper-available-height",`${t0}px`),ji.setProperty("--radix-popper-anchor-width",`${n0}px`),ji.setProperty("--radix-popper-anchor-height",`${r0}px`)}}),b&&Ik({element:b,padding:a}),Fk({arrowWidth:E,arrowHeight:T}),f&&Ak({strategy:"referenceHidden",...z})]}),[A,N]=Vv(H),$=Zr(w);Cn(()=>{G&&($==null||$())},[G,$]);const V=(at=C.arrow)==null?void 0:at.x,xe=(go=C.arrow)==null?void 0:go.y,Ce=((Zd=C.arrow)==null?void 0:Zd.centerOffset)!==0,[Ue,Xe]=v.useState();return Cn(()=>{m&&Xe(window.getComputedStyle(m).zIndex)},[m]),x.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:G?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ue,"--radix-popper-transform-origin":[(ef=C.transformOrigin)==null?void 0:ef.x,(tf=C.transformOrigin)==null?void 0:tf.y].join(" "),...((nf=C.hide)==null?void 0:nf.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(Lk,{scope:n,placedSide:A,onArrowChange:S,arrowX:V,arrowY:xe,shouldHideArrow:Ce,children:x.jsx(ge.div,{"data-side":A,"data-align":N,...y,ref:g,style:{...y.style,animation:G?void 0:"none"}})})})});Wv.displayName=Rd;var Bv="PopperArrow",$k={top:"bottom",right:"left",bottom:"top",left:"right"},Hv=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Mk(Bv,r),s=$k[i.placedSide];return x.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:x.jsx(jk,{...o,ref:n,style:{...o.style,display:"block"}})})});Hv.displayName=Bv;function Uk(e){return e!==null}var Fk=e=>({name:"transformOrigin",options:e,fn(t){var _,m,h;const{placement:n,rects:r,middlewareData:o}=t,s=((_=o.arrow)==null?void 0:_.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=Vv(n),d={start:"0%",center:"50%",end:"100%"}
vendor: 4,745 bytes, line 125
125[c],f=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,p=(((h=o.arrow)==null?void 0:h.y)??0)+l/2;let w="",y="";return u==="bottom"?(w=s?d:`${f}px`,y=`${-l}px`):u==="top"?(w=s?d:`${f}px`,y=`${r.floating.height+l}px`):u==="right"?(w=`${-l}px`,y=s?d:`${p}px`):u==="left"&&(w=`${r.floating.width+l}px`,y=s?d:`${p}px`),{data:{x:w,y}}}});function Vv(e){const[t,n="center"]=e.split("-");return[t,n]}var zk=Uv,Wk=zv,Bk=Wv,Hk=Hv,[$a]=Na("Tooltip",[Mv]),Ua=Mv(),qv="TooltipProvider",Vk=700,tc="tooltip.open",[qk,Ad]=$a(qv),Kv=e=>{const{__scopeTooltip:t,delayDuration:n=Vk,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=v.useRef(!0),a=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),x.jsx(qk,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:v.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:i})};Kv.displayName=qv;var vi="Tooltip",[Kk,Fa]=$a(vi),Gv=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=Ad(vi,e.__scopeTooltip),u=Ua(t),[c,d]=v.useState(null),f=Cs(),p=v.useRef(0),w=s??l.disableHoverableContent,y=a??l.delayDuration,_=v.useRef(!1),[m,h]=_d({prop:r,defaultProp:o??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(tc))):l.onClose(),i==null||i(E)},caller:vi}),g=v.useMemo(()=>m?_.current?"delayed-open":"instant-open":"closed",[m]),b=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,_.current=!1,h(!0)},[h]),S=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,h(!1)},[h]),k=v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{_.current=!0,h(!0),p.current=0},y)},[y,h]);return v.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),x.jsx(zk,{...u,children:x.jsx(Kk,{scope:t,contentId:f,open:m,stateAttribute:g,trigger:c,onTriggerChange:d,onTriggerEnter:v.useCallback(()=>{l.isOpenDelayedRef.current?k():b()},[l.isOpenDelayedRef,k,b]),onTriggerLeave:v.useCallback(()=>{w?S():(window.clearTimeout(p.current),p.current=0)},[S,w]),onOpen:b,onClose:S,disableHoverableContent:w,children:n})})};Gv.displayName=vi;var nc="TooltipTrigger",Yv=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Fa(nc,n),i=Ad(nc,n),s=Ua(n),a=v.useRef(null),l=Je(t,a,o.onTriggerChange),u=v.useRef(!1),c=v.useRef(!1),d=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),x.jsx(Wk,{asChild:!0,...s,children:x.jsx(ge.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:Ee(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:Ee(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:Ee(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ee(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Ee(e.onBlur,o.onClose),onClick:Ee(e.onClick,o.onClose)})})});Yv.displayName=nc;var Gk="TooltipPortal",[JA,Yk]=$a(Gk,{forceMount:void 0}),to="TooltipContent",Jv=v.forwardRef((e,t)=>{const n=Yk(to,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Fa(to,e.__scopeTooltip);return x.jsx(so,{present:r||s.open,children:s.disableHoverableContent?x.jsx(Qv,{side:o,...i,ref:t}):x.jsx(Jk,{side:o,...i,ref:t})})}),Jk=v.forwardRef((e,t)=>{const n=Fa(to,e.__scopeTooltip),r=Ad(to,e.__scopeTooltip),o=v.useRef(null),i=Je(t,o),[s,a]=v.useState(null),{trigger:l,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,f=v.useCallback(()=>{a(null),d(!1)},[d]),p=v.useCallback((w,y)=>{const _=w.currentTarget,m={x:w.clientX,y:w.clientY},h=tx(m,_.getBoundingClientRect()),g=nx(m,h),b=rx(y.getBoundingClientRect()),S=ix([...g,...b]);a(S),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(l&&c){const w=_=>p(_,c),y=_=>p(_,l);return l.addEventListener("pointerleave",w),c.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",w),c.removeEventListener("pointerleave",y)}}},[l,c,p,f]),v.useEffect(()=>{if(s){const w=y=>{const _=y.target,m={x:y.clientX,y:y.clientY},h=(l==null?void 0:l.contains(_))||(c==null?void 0:c.contains(_)),g=!ox(m,s);h?f():g&&(f(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,c,s,u,f]),x.jsx(Qv,{...e,ref:i})}),[Qk,Xk]=$a(vi,{isInside:!1}),Zk=pS("TooltipContent"),Qv=v.forwardRef((e,t)=>
vendor: 4,177 bytes, lines 125-134
125{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Fa(to,n),u=Ua(n),{onClose:c}=l;return v.useEffect(()=>(document.addEventListener(tc,c),()=>document.removeEventListener(tc,c)),[c]),v.useEffect(()=>{if(l.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),x.jsx(ja,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:x.jsxs(Bk,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[x.jsx(Zk,{children:r}),x.jsx(Qk,{scope:n,isInside:!0,children:x.jsx(LS,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Jv.displayName=to;var Xv="TooltipArrow",ex=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ua(n);return Xk(Xv,n).isInside?null:x.jsx(Hk,{...o,...r,ref:t})});ex.displayName=Xv;function tx(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function nx(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function rx(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ox(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],l=t[s],u=a.x,c=a.y,d=l.x,f=l.y;c>r!=f>r&&n<(d-u)*(r-c)/(f-c)+u&&(o=!o)}return o}function ix(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),sx(t)}function sx(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ax=Kv,lx=Gv,ux=Yv,Zv=Jv;const QA=ax,XA=lx,ZA=ux,cx=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(Zv,{ref:r,sideOffset:t,className:$e("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));cx.displayName=Zv.displayName;/**
126 * @remix-run/router v1.23.0
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 yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yi.apply(this,arguments)}var hn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(hn||(hn={}));const Mh="popstate";function dx(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:s,hash:a}=r.location;return rc("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}
vendor: 4,275 bytes, line 134
134function n(r,o){return typeof o=="string"?o:aa(o)}return hx(t,n,null,e)}function se(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ey(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fx(){return Math.random().toString(36).substr(2,8)}function $h(e,t){return{usr:e.state,key:e.key,idx:t}}function rc(e,t,n,r){return n===void 0&&(n=null),yi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?co(t):t,{state:n,key:t&&t.key||r||fx()})}function aa(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function co(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hx(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=hn.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(yi({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=hn.Pop;let _=c(),m=_==null?null:_-u;u=_,l&&l({action:a,location:y.location,delta:m})}function f(_,m){a=hn.Push;let h=rc(y.location,_,m);u=c()+1;let g=$h(h,u),b=y.createHref(h);try{s.pushState(g,"",b)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(b)}i&&l&&l({action:a,location:y.location,delta:1})}function p(_,m){a=hn.Replace;let h=rc(y.location,_,m);u=c();let g=$h(h,u),b=y.createHref(h);s.replaceState(g,"",b),i&&l&&l({action:a,location:y.location,delta:0})}function w(_){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof _=="string"?_:aa(_);return h=h.replace(/ $/,"%20"),se(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let y={get action(){return a},get location(){return e(o,s)},listen(_){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Mh,d),l=_,()=>{o.removeEventListener(Mh,d),l=null}},createHref(_){return t(o,_)},createURL:w,encodeLocation(_){let m=w(_);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:p,go(_){return s.go(_)}};return y}var Uh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Uh||(Uh={}));function px(e,t,n){return n===void 0&&(n="/"),mx(e,t,n)}function mx(e,t,n,r){let o=typeof t=="string"?co(t):t,i=Id(o.pathname||"/",n);if(i==null)return null;let s=ty(e);gx(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=Px(i);a=xx(s[l],u)}return a}function ty(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(se(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Sn([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(se(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ty(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Ex(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of ny(i.path))o(i,s,l)}),t}function ny(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=ny(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function gx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:kx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const vx=/^:[\w-]+$/,yx=3,wx=2,_x=1,bx=10,Sx=-2,Fh=e=>e==="*";function Ex(e,t){let n=e.split("/"),r=n.length;return n.some(Fh)&&(r+=Sx),t&&(r+=wx),n.filter(o=>!Fh(o)).reduce((o,i)=>o+(vx.test(i)?yx:i===""?_x:bx),r)}function kx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}
vendor: 9,651 bytes, lines 134-143
134function xx(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",d=Cx({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d)return null;Object.assign(o,d.params),s.push({params:o,pathname:Sn([i,d.pathname]),pathnameBase:Ix(Sn([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=Sn([i,d.pathnameBase]))}return s}function Cx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Tx(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:p}=c;if(f==="*"){let y=a[d]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const w=a[d];return p&&!w?u[f]=void 0:u[f]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function Tx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ey(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Px(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ey(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Id(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Ox(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?co(e):e;return{pathname:n?n.startsWith("/")?n:Rx(n,t):t,search:Nx(r),hash:jx(o)}}function Rx(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Rl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ax(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nd(e,t){let n=Ax(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jd(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=co(e):(o=yi({},e),se(!o.pathname||!o.pathname.includes("?"),Rl("?","pathname","search",o)),se(!o.pathname||!o.pathname.includes("#"),Rl("#","pathname","hash",o)),se(!o.search||!o.search.includes("#"),Rl("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=Ox(o,a),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Sn=e=>e.join("/").replace(/\/\/+/g,"/"),Ix=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Nx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Dx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ry=["post","put","patch","delete"];new Set(ry);const Lx=["get",...ry];new Set(Lx);/**
135 * React Router 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 */function wi(){return wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wi.apply(this,arguments)}const Dd=v.createContext(null),Mx=v.createContext(null),Nn=v.createContext(null),za=v.createContext(null),Nt=v.createContext({outlet:null,matches:[],isDataRoute:!1}),oy=v.createContext(null);function $x(e,t){let{relative:n}=t===void 0?{}:t;fo()||se(!1);let{basename:r,navigator:o}=v.useContext(Nn),{hash:i,pathname:s,search:a}=sy(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Sn([r,s])),o.createHref({pathname:l,search:a,hash:i})}function fo(){return v.useContext(za)!=null}function ho(){return fo()||se(!1),v.useContext(za).location}function iy(e){v.useContext(Nn).static||v.useLayoutEffect(e)}function Ld(){let{isDataRoute:e}=v.useContext(Nt);return e?Zx():Ux()}function Ux(){fo()||se(!1);let e=v.useContext(Dd),{basename:t,future:n,navigator:r}=v.useContext(Nn),{matches:o}=v.useContext(Nt),{pathname:i}=ho(),s=JSON.stringify(Nd(o,n.v7_relativeSplatPath)),a=v.useRef(!1);return iy(()=>{a.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=jd(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Sn([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,i,e])}const Fx=v.createContext(null);function zx(e){let t=v.useContext(Nt).outlet;return t&&v.createElement(Fx.Provider,{value:e},t)}function eI(){let{matches:e}=v.useContext(Nt),t=e[e.length-1];return t?t.params:{}}function sy(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(Nn),{matches:o}=v.useContext(Nt),{pathname:i}=ho(),s=JSON.stringify(Nd(o,r.v7_relativeSplatPath));return v.useMemo(()=>jd(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function Wx(e,t){return Bx(e,t)}function Bx(e,t,n,r){fo()||se(!1);let{navigator:o}=v.useContext(Nn),{matches:i}=v.useContext(Nt),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=ho(),c;if(t){var d;let _=typeof t=="string"?co(t):t;l==="/"||(d=_.pathname)!=null&&d.startsWith(l)||se(!1),c=_}else c=u;let f=c.pathname||"/",p=f;if(l!=="/"){let _=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(_.length).join("/")}let w=px(e,{pathname:p}),y=Gx(w&&w.map(_=>Object.assign({},_,{params:Object.assign({},a,_.params),pathname:Sn([l,o.encodeLocation?o.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?l:Sn([l,o.encodeLocation?o.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),i,n,r);return t&&y?v.createElement(za.Provider,{value:{location:wi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:hn.Pop}},y):y}function Hx(){let e=Xx(),t=Dx(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const Vx=v.createElement(Hx,null);class qx extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Nt.Provider,{value:this.props.routeContext},v.createElement(oy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Kx(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(Dd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Nt.Provider,{value:t},r)}function Gx(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||se(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:p}=n,w=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||w){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let p,w=!1,y=null,_=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||Vx,l&&(u<0&&f===0?(e1("route-fallback"),w=!0,_=null):u===f&&(w=!0,_=d.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,f+1)),h=()=>{let g;return p?g=y:w?g=_:d.route.Component?g=v.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,v.createElement(Kx,{match:d,routeC
143ontext:{outlet:c,matches:m,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?v.createElement(qx,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var ay=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ay||{}),ly=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ly||{});function Yx(e){let t=v.useContext(Dd);return t||se(!1),t}function Jx(e){let t=v.useContext(Mx);return t||se(!1),t}function Qx(e){let t=v.useContext(Nt);return t||se(!1),t}function uy(e){let t=Qx(),n=t.matches[t.matches.length-1];return n.route.id||se(!1),n.route.id}function Xx(){var e;let t=v.useContext(oy),n=Jx(),r=uy();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Zx(){let{router:e}=Yx(ay.UseNavigateStable),t=uy(ly.UseNavigateStable),n=v.useRef(!1);return iy(()=>{n.current=!0}),v.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,wi({fromRouteId:t},i)))},[e,t])}const zh={};function e1(e,t,n){zh[e]||(zh[e]=!0)}function t1(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function tI(e){let{to:t,replace:n,state:r,relative:o}=e;fo()||se(!1);let{future:i,static:s}=v.useContext(Nn),{matches:a}=v.useContext(Nt),{pathname:l}=ho(),u=Ld(),c=jd(t,Nd(a,i.v7_relativeSplatPath),l,o==="path"),d=JSON.stringify(c);return v.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:o}),[u,d,o,n,r]),null}function nI(e){return zx(e.context)}function n1(e){se(!1)}function r1(e){let{basename:t="/",children:n=null,location:r,navigationType:o=hn.Pop,navigator:i,static:s=!1,future:a}=e;fo()&&se(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:s,future:wi({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=co(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:w="default"}=r,y=v.useMemo(()=>{let _=Id(c,l);return _==null?null:{location:{pathname:_,search:d,hash:f,state:p,key:w},navigationType:o}},[l,c,d,f,p,w,o]);return y==null?null:v.createElement(Nn.Provider,{value:u},v.createElement(za.Provider,{children:n,value:y}))}function rI(e){let{children:t,location:n}=e;return Wx(oc(t),n)}new Promise(()=>{});function oc(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,oc(r.props.children,i));return}r.type!==n1&&se(!1),!r.props.index||!r.props.children||se(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=oc(r.props.children,i)),n.push(s)}),n}/**
144 * React Router DOM v6.30.1
145 *
146 * Copyright (c) Remix Software Inc.
147 *
148 * This source code is licensed under the MIT license found in the
149 * LICENSE.md file in the root directory of this source tree.
150 *
151 * @license MIT
152 */function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ic.apply(this,arguments)}function o1(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function i1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s1(e,t){return e.button===0&&(!t||t==="_self")&&!i1(e)}function sc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function a1(e,t){let n=sc(e);return t&&t.forEach((r,o)=>
152{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const l1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],u1="6";try{window.__reactRouterVersion=u1}catch{}const c1="startTransition",Wh=Tc[c1];function oI(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=dx({window:o,v5Compat:!0}));let s=i.current,[a,l]=v.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&Wh?Wh(()=>l(d)):l(d)},[l,u]);return v.useLayoutEffect(()=>s.listen(c),[s,c]),v.useEffect(()=>t1(r),[r]),v.createElement(r1,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const d1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",f1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,iI=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,f=o1(t,l1),{basename:p}=v.useContext(Nn),w,y=!1;if(typeof u=="string"&&f1.test(u)&&(w=u,d1))try{let g=new URL(window.location.href),b=u.startsWith("//")?new URL(g.protocol+u):new URL(u),S=Id(b.pathname,p);b.origin===g.origin&&S!=null?u=S+b.search+b.hash:y=!0}catch{}let _=$x(u,{relative:o}),m=h1(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o,viewTransition:d});function h(g){r&&r(g),g.defaultPrevented||m(g)}return v.createElement("a",ic({},f,{href:w||_,onClick:y||i?r:h,ref:n,target:l}))});var Bh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Bh||(Bh={}));var Hh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hh||(Hh={}));function h1(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=Ld(),u=ho(),c=sy(e,{relative:s});return v.useCallback(d=>{if(s1(d,n)){d.preventDefault();let f=r!==void 0?r:aa(u)===aa(c);l(e,{replace:f,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[u,l,c,r,o,n,e,i,s,a])}function p1(e){let t=v.useRef(sc(e)),n=v.useRef(!1),r=ho(),o=v.useMemo(()=>a1(r.search,n.current?null:t.current),[r.search]),i=Ld(),s=v.useCallback((a,l)=>{const u=sc(typeof a=="function"?a(o):a);n.current=!0,i("?"+u,l)},[i,o]);return[o,s]}const m1="modulepreload",g1=function(e){return"/"+e},Vh={},Ai=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(n.map(l=>{if(l=g1(l),l in Vh)return;Vh[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":m1,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},v1=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ai(async()=>{const{default:r}=await Promise.resolve().then(()=>po);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class Md extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class qh extends Md{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Kh extends Md{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Gh extends Md{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var ac;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(ac||(ac={}));var y1=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}
152return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class cy{constructor(t,{headers:n={},customFetch:r,region:o=ac.Any}={}){this.url=t,this.headers=n,this.region=o,this.fetch=v1(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return y1(this,arguments,void 0,function*(n,r={}){var o;try{const{headers:i,method:s,body:a,signal:l}=r;let u={},{region:c}=r;c||(c=this.region);const d=new URL(`${this.url}/${n}`);c&&c!=="any"&&(u["x-region"]=c,d.searchParams.set("forceFunctionRegion",c));let f;a&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&(typeof Blob<"u"&&a instanceof Blob||a instanceof ArrayBuffer?(u["Content-Type"]="application/octet-stream",f=a):typeof a=="string"?(u["Content-Type"]="text/plain",f=a):typeof FormData<"u"&&a instanceof FormData?f=a:(u["Content-Type"]="application/json",f=JSON.stringify(a)));const p=yield this.fetch(d.toString(),{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},u),this.headers),i),body:f,signal:l}).catch(m=>{throw m.name==="AbortError"?m:new qh(m)}),w=p.headers.get("x-relay-error");if(w&&w==="true")throw new Kh(p);if(!p.ok)throw new Gh(p);let y=((o=p.headers.get("Content-Type"))!==null&&o!==void 0?o:"text/plain").split(";")[0].trim(),_;return y==="application/json"?_=yield p.json():y==="application/octet-stream"?_=yield p.blob():y==="text/event-stream"?_=p:y==="multipart/form-data"?_=yield p.formData():_=yield p.text(),{data:_,error:null,response:p}}catch(i){return i instanceof Error&&i.name==="AbortError"?{data:null,error:new qh(i)}:{data:null,error:i,response:i instanceof Gh||i instanceof Kh?i.context:void 0}}})}}var Ne={},$d={},Wa={},Ii={},Ba={},Ha={},w1=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},no=w1();const _1=no.fetch,dy=no.fetch.bind(no),fy=no.Headers,b1=no.Request,S1=no.Response,po=Object.freeze(Object.defineProperty({__proto__:null,Headers:fy,Request:b1,Response:S1,default:dy,fetch:_1},Symbol.toStringTag,{value:"Module"})),E1=a0(po);var Va={};Object.defineProperty(Va,"__esModule",{value:!0});let k1=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
152de=t.code}};Va.default=k1;var hy=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ha,"__esModule",{value:!0});const x1=hy(E1),C1=hy(Va);let T1=class{constructor(t){var n,r;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(n=t.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=t.signal,this.isMaybeSingle=(r=t.isMaybeSingle)!==null&&r!==void 0?r:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=x1.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=new Headers(this.headers),this.headers.set(t,n),this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let o=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var s,a,l,u;let c=null,d=null,f=null,p=i.status,w=i.statusText;if(i.ok){if(this.method!=="HEAD"){const h=await i.text();h===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((s=this.headers.get("Accept"))===null||s===void 0)&&s.includes("application/vnd.pgrst.plan+text"))?d=h:d=JSON.parse(h))}const _=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),m=(l=i.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");_&&m&&m.length>1&&(f=parseInt(m[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(c={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,f=null,p=406,w="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const _=await i.text();try{c=JSON.parse(_),Array.isArray(c)&&i.status===404&&(d=[],c=null,p=200,w="OK")}catch{i.status===404&&_===""?(p=204,w="No Content"):c={message:_}}if(c&&this.isMaybeSingle&&(!((u=c==null?void 0:c.details)===null||u===void 0)&&u.includes("0 rows"))&&(c=null,p=200,w="OK"),c&&this.shouldThrowOnError)throw new C1.default(c)}return{error:c,data:d,count:f,status:p,statusText:w}});return this.shouldThrowOnError||(o=o.catch(i=>{var s,a,l;return{error:{message:`${(s=i==null?void 0:i.name)!==null&&s!==void 0?s:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=i==null?void 0:i.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),o.then(t,n)}returns(){return this}overrideTypes(){return this}};Ha.default=T1;var P1=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ba,"__esModule",{value:!0});const O1=P1(Ha);let R1=class extends O1.default{select(t){let n=!1;const r=(t??"*").split("").map(o=>/\s/.test(o)&&!n?"":(o==='"'&&(n=!n),o)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:o,referencedTable:i=o}={}){const s=i?`${i}.order`:"order",a=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const o=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(o,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:o=r}={}){const i=typeof o>"u"?"offset":`${o}.offset`,s=typeof o>"u"?"limit":`${o}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(s,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
152explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:o=!1,wal:i=!1,format:s="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,o?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${u}"; options=${l};`),s==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};Ba.default=R1;var A1=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ii,"__esModule",{value:!0});const I1=A1(Ba);let N1=class extends I1.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(o=>typeof o=="string"&&new RegExp("[,()]").test(o)?`"${o}"`:`${o}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:o}={}){let i="";o==="plain"?i="pl":o==="phrase"?i="ph":o==="websearch"&&(i="w");const s=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${i}fts${s}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const o=r?`${r}.or`:"or";return this.url.searchParams.append(o,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};Ii.default=N1;var j1=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wa,"__esModule",{value:!0});const Ro=j1(Ii);let D1=class{constructor(t,{headers:n={},schema:r,fetch:o}){this.url=t,this.headers=new Headers(n),this.schema=r,this.fetch=o}select(t,n){const{head:r=!1,count:o}=n??{},i=r?"HEAD":"GET";let s=!1;const a=(t??"*").split("").map(l=>/\s/.test(l)&&!s?"":(l==='"'&&(s=!s),l)).join("");return this.url.searchParams.set("select",a),o&&this.headers.append("Prefer",`count=${o}`),new Ro.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:n,defaultToNull:r=!0}={}){var o;const i="POST";if(n&&this.headers.append("Prefer",`count=${n}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const s=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(s.length>
1520){const a=[...new Set(s)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Ro.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:o,defaultToNull:i=!0}={}){var s;const a="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),o&&this.headers.append("Prefer",`count=${o}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const l=t.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new Ro.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}update(t,{count:n}={}){var r;const o="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new Ro.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:t}={}){var n;const r="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new Ro.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};Wa.default=D1;var py=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($d,"__esModule",{value:!0});const L1=py(Wa),M1=py(Ii);let $1=class my{constructor(t,{headers:n={},schema:r,fetch:o}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=o}from(t){const n=new URL(`${this.url}/${t}`);return new L1.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new my(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:o=!1,count:i}={}){var s;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;r||o?(a=r?"HEAD":"GET",Object.entries(n).filter(([d,f])=>f!==void 0).map(([d,f])=>[d,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([d,f])=>{l.searchParams.append(d,f)})):(a="POST",u=n);const c=new Headers(this.headers);return i&&c.set("Prefer",`count=${i}`),new M1.default({method:a,url:l,headers:c,schema:this.schemaName,body:u,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}};$d.default=$1;var mo=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.PostgrestError=Ne.PostgrestBuilder=Ne.PostgrestTransformBuilder=Ne.PostgrestFilterBuilder=Ne.PostgrestQueryBuilder=Ne.PostgrestClient=void 0;const gy=mo($d);Ne.PostgrestClient=gy.default;const vy=mo(Wa);Ne.PostgrestQueryBuilder=vy.default;const yy=mo(Ii);Ne.PostgrestFilterBuilder=yy.default;const wy=mo(Ba);Ne.PostgrestTransformBuilder=wy.default;const _y=mo(Ha);Ne.PostgrestBuilder=_y.default;const by=mo(Va);Ne.PostgrestError=by.default;var U1=Ne.default={PostgrestClient:gy.default,PostgrestQueryBuilder:vy.default,PostgrestFilterBuilder:yy.default,PostgrestTransformBuilder:wy.default,PostgrestBuilder:_y.default,PostgrestError:by.default};const{PostgrestClient:F1,PostgrestQueryBuilder:dI,PostgrestFilterBuilder:fI,PostgrestTransformBuilder:hI,PostgrestBuilder:pI,PostgrestError:mI}=U1;class z1{static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const r=n.node,o=parseInt(r.replace(/^v/,"").split(".")[0]);return o>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${o} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${o} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
153import ws from "ws"
154new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
155
156Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const W1="2.75.0",B1=`realtime-js/${W1}`,H1="1.0.0",lc=1e4,V1=1e3,q1=100;var Yo;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Yo||(Yo={}));var de;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(de||(de={}));var ft;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(ft||(ft={}));var uc;(function(e){e.websocket="websocket"})(uc||(uc={}));var zn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(zn||(zn={}));class K1{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const o=n.getUint8(1),i=n.getUint8(2);let s=this.HEADER_LENGTH+2;const a=r.decode(t.slice(s,s+o));s=s+o;const l=r.decode(t.slice(s,s+i));s=s+i;const u=JSON.parse(r.decode(t.slice(s,t.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class Sy{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Y;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Y||(Y={}));const Yh=(e,t,n={})=>{var r;const o=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,s)=>(i[s]=G1(s,e,t,o),i),{}):{}},G1=(e,t,n,r)=>{const o=t.find(a=>a.name===e),i=o==null?void 0:o.type,s=n[e];return i&&!r.includes(i)?Ey(i,s):cc(s)},Ey=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return X1(t,n)}switch(e){case Y.bool:return Y1(t);case Y.float4:case Y.float8:case Y.int2:case Y.int4:case Y.int8:case Y.numeric:case Y.oid:return J1(t);case Y.json:case Y.jsonb:return Q1(t);case Y.timestamp:return Z1(t);case Y.abstime:case Y.date:case Y.daterange:case Y.int4range:case Y.int8range:case Y.money:case Y.reltime:case Y.text:case Y.time:case Y.timestamptz:case Y.timetz:case Y.tsrange:case Y.tstzrange:return cc(t);default:return cc(t)}}
156,cc=e=>e,Y1=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},J1=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},Q1=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},X1=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const s=e.slice(1,n);try{i=JSON.parse("["+s+"]")}catch{i=s?s.split(","):[]}return i.map(a=>Ey(t,a))}return e},Z1=e=>typeof e=="string"?e.replace(" ","T"):e,ky=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class Al{constructor(t,n,r={},o=lc){this.channel=t,this.event=n,this.payload=r,this.timeout=o,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Jh;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Jh||(Jh={}));class Jo{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},o=>{const{onJoin:i,onLeave:s,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Jo.syncState(this.state,o,i,s),this.pendingDiffs.forEach(l=>{this.state=Jo.syncDiff(this.state,l,i,s)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},o=>{const{onJoin:i,onLeave:s,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=Jo.syncDiff(this.state,o,i,s),a())}),this.onJoin((o,i,s)=>{this.channel._trigger("presence",{event:"join",key:o,currentPresences:i,newPresences:s})}),this.onLeave((o,i,s)=>{this.channel._trigger("presence",{event:"leave",key:o,currentPresences:i,leftPresences:s})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,o){const i=this.cloneDeep(t),s=this.transformState(n),a={},l={};return this.map(i,(u,c)=>{s[u]||(l[u]=c)}),this.map(s,(u,c)=>{const d=i[u];if(d){const f=c.map(_=>_.presence_ref),p=d.map(_=>_.presence_ref),w=c.filter(_=>p.indexOf(_.presence_ref)<0),y=d.filter(_=>f.indexOf(_.presence_ref)<0);w.length>0&&(a[u]=w),y.length>0&&(l[u]=y)}else a[u]=c}),this.syncDiff(i,{joins:a,leaves:l},r,o)}static syncDiff(t,n,r,o){const{joins:i,leaves:s}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),o||(o=()=>{}),this.map(i,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const d=t[a].map(p=>p.presence_ref),f=c.filter(p=>d.indexOf(p.presence_ref)<0);t[a].unshift(...f)}r(a,c,l)}),this.map(s,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),t[a]=u,o(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const o=t[r];return"metas"in o?n[r]=o.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=o,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Qh;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Qh||(Qh={}));var Qo;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Qo||(Qo={}));var Mt;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Mt||(Mt={}));class Ud{constructor(t,n={config:{}},r){var o,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=de.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Al(this,ft.join,this.params,this.timeout),this.rejoinTimer=new Sy(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=de.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=de.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=de.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=de.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=de.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ft.reply,{},(s,a)=>{this._trigger(this._replyEventName(a),s)}),this.presence=new Jo(this),this.broadcastEndpointURL=ky(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(o=this.params.config)===null||o===void 0?void 0:o.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,o,i;if(this.socket.isConnected()||this.socket.connect(),this.state==de.closed){const{config:{broadcast:s,presence:a,private:l}}=this.params,u=(o=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&o!==void 0?o:[],c=!!this.bindings[Qo.PRESENCE]&&this.bindings[Qo.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},f={broadcast:s,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(p=>t==null?void 0:t(Mt.CHANNEL_ERROR,p)),this._onClose(()=>t==null?void 0:t(Mt.CLOSED)),this.updateJoinPayload(Object.assign({config:f},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:p})=>{var w;if(this.socket.setAuth(),p===void 0){t==null||t(Mt.SUBSCRIBED);return}else{const y=this.bindings.postgres_changes,_=(w=y==null?void 0:y.length)!==null&&w!==void 0?w:0,m=[];for(let h=0;h<_;h++){const g=y[h],{filter:{event:b,schema:S,table:k,filter:E}}=g,T=p&&p[h];if(T&&T.event===b&&T.schema===S&&T.table===k&&T.filter===E)m.push(Object.assign(Object.assign({},g),{id:T.id}));else{this.unsubscribe(),this.state=de.errored,t==null||t(Mt.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=m,t&&t(Mt.SUBSCRIBED);return}}).receive("error",p=>{this.state=de.errored,t==null||t(Mt.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Mt.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===de.joined&&t===Qo.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,n,r)}async send(t,n={}){var r,o;
156if(!this._canPush()&&t.type==="broadcast"){const{event:i,payload:s}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:s,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((o=u.body)===null||o===void 0?void 0:o.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var s,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(s=this.params)===null||s===void 0?void 0:s.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=de.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ft.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(o=>{r=new Al(this,ft.leave,{},t),r.receive("ok",()=>{n(),o("ok")}).receive("timeout",()=>{n(),o("timed out")}).receive("error",()=>{o("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=de.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const o=new AbortController,i=setTimeout(()=>o.abort(),r),s=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:o.signal}));return clearTimeout(i),s}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let o=new Al(this,t,n,r);return this._canPush()?o.send():this._addToPushBuffer(o),o}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>q1){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var o,i;const s=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=ft;if(r&&[a,l,u,c].indexOf(s)>=0&&r!==this._joinRef())return;let f=this._onMessage(s,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(s)?(o=this.bindings.postgres_changes)===null||o===void 0||o.filter(p=>{var w,y,_;return((w=p.filter)===null||w===void 0?void 0:w.event)==="*"||((_=(y=p.filter)===null||y===void 0?void 0:y.event)===null||_===void 0?void 0:_.toLocaleLowerCase())===s}).map(p=>p.callback(f,r)):(i=this.bindings[s])===null||i===void 0||i.filter(p=>{var w,y,_,m,h,g;if(["broadcast","presence","postgres_changes"].includes(s))if("id"in p){const b=p.id,S=(w=p.filter)===null||w===void 0?void 0:w.event;return b&&((y=n.ids)===null||y===void 0?void 0:y.includes(b))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((_=n.data)===null||_===void 0?void 0:_.type.toLocaleLowerCase()))}else{const b=(h=(m=p==null?void 0:p.filter)===null||m===void 0?void 0:m.event)===null||h===void 0?void 0:h.toLocaleLowerCase();return b==="*"||b===((g=n==null?void 0:n.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===s}).map(p=>{if(typeof f=="object"&&"ids"in f){const w=f.data,{schema:y,table:_,commit_timestamp:m,type:h,errors:g}=w;f=Object.assign(Object.assign({},{schema:y,table:_,commit_timestamp:m,eventType:h,new:{},old:{},errors:g}),this._getPayloadRecords(w))}p.callback(f,r)})}_isClosed(){return this.state===de.closed}_isJoined(){return this.state===de.joined}_isJoining(){return this.state===de.joining}_isLeaving(){return this.state===de.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const o=t.toLocaleLowerCase(),i={type:o,filter:n,callback:r};return this.bindings[o]?this.bindings[o].push(i):this.bindings[o]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(o=>{var i;return!(((i=o.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&Ud.isEqual(o.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(ft.close,{},t)}_onError(t){this._on(ft.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=de.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Yh(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Yh(t.columns,t.old_record)),n}}const Il=()=>{},ts={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},eC=[1e3,2e3,5e3,1e4],tC=1e4,nC=`
157  addEventListener("message", (e) => {
158    if (e.data.event === "start") {
159      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
160    }
161  });`;class rC{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=lc,this.transport=null,this.heartbeatIntervalMs=ts.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Il,this.ref=0,this.reconnectTimer=null,this.logger=Il,this.conn=null,this.sendBuffer=[],this.serializer
161=new K1,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=o=>{let i;return o?i=o:typeof fetch>"u"?i=(...s)=>Ai(async()=>{const{default:a}=await Promise.resolve().then(()=>po);return{default:a}},void 0).then(({default:a})=>a(...s)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...s)=>i(...s)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${uc.websocket}`,this.httpEndpoint=ky(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=z1.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
162
163To use Realtime in Node.js, you need to provide a WebSocket implementation:
164
165Option 1: Use Node.js 22+ which has native WebSocket support
166Option 2: Install and provide the "ws" package:
167
168  npm install ws
169
170  import ws from "ws"
171  const client = new RealtimeClient(url, {
172    ...options,
173    transport: ws
174  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:H1}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},t?this.conn.close(t,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Yo.connecting:return zn.Connecting;case Yo.open:return zn.Open;case Yo.closing:return zn.Closing;default:return zn.Closed}}isConnected(){return this.connectionState()===zn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,o=this.getChannels().find(i=>i.topic===r);if(o)return o;{const i=new Ud(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:o,ref:i}=t,s=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,o),this.isConnected()?s():this.sendBuffer.push(s)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(V1,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},ts.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
174{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:o,payload:i,ref:s}=n,a=s?`(${s})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${o} ${a}`.trim(),i),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(o,i,s)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(ft.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",o=new URLSearchParams(n);return`${t}${r}${o}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([nC],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n;t?n=t:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const o={access_token:n,version:B1};n&&r.updateJoinPayload(o),r.joinedOnce&&r._isJoined()&&r._push(ft.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(o){this.log("error",`error in ${t} callback`,o)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new Sy(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},ts.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,o,i,s,a,l,u,c;if(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.t
174imeout)!==null&&r!==void 0?r:lc,this.heartbeatIntervalMs=(o=t==null?void 0:t.heartbeatIntervalMs)!==null&&o!==void 0?o:ts.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(s=t==null?void 0:t.accessToken)!==null&&s!==void 0?s:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:Il,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(l=t==null?void 0:t.reconnectAfterMs)!==null&&l!==void 0?l:d=>eC[d-1]||tC,this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(d,f)=>f(JSON.stringify(d)),this.decode=(c=t==null?void 0:t.decode)!==null&&c!==void 0?c:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}class Fd extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function ue(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class oC extends Fd{constructor(t,n,r){super(t),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class dc extends Fd{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var iC=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const xy=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ai(async()=>{const{default:r}=await Promise.resolve().then(()=>po);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},sC=()=>iC(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Ai(()=>Promise.resolve().then(()=>po),void 0)).Response:Response}),fc=e=>{if(Array.isArray(e))return e.map(n=>fc(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[o]=fc(r)}),t},aC=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var ir=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Nl=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),lC=(e,t,n)=>ir(void 0,void 0,void 0,function*(){const r=yield sC();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(o=>{const i=e.status||500,s=(o==null?void 0:o.statusCode)||i+"";t(new oC(Nl(o),i,s))}).catch(o=>{t(new dc(Nl(o),o))}):t(new dc(Nl(e),e))}),uC=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?o:(aC(r)?(o.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),o.body=JSON.stringify(r)):o.body=r,t!=null&&t.duplex&&(o.duplex=t.duplex),Object.assign(Object.assign({},o),n))};function Ni(e,t,n,r,o,i){return ir(this,void 0,void 0,function*(){return new Promise((s,a)=>{e(n,uC(t,r,o,i)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>s(l)).catch(l=>lC(l,a,r))})})}function la(e,t,n,r){return ir(this,void 0,void 0,function*(){return Ni(e,"GET",t,n,r)})}function Et(e,t,n,r,o){return ir(this,void 0,void 0,function*(){return Ni(e,"POST",t,r,o,n)})}function hc(e,t,n,r,o){return ir(this,void 0,void 0,function*(){return Ni(e,"PUT",t,r,o,n)})}function cC(e,t,n,r){return ir(this,void 0,void 0,function*(){return Ni(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function Cy(e,t,n,r,o){return ir(this,void 0,void 0,function*(){return Ni(e,"DELETE",t,r,o,n)})}var dC=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}
174return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class fC{constructor(t,n){this.downloadFn=t,this.shouldThrowOnError=n}then(t,n){return this.execute().then(t,n)}execute(){return dC(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(ue(t))return{data:null,error:t};throw t}})}}var hC=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class pC{constructor(t,n){this.downloadFn=t,this.shouldThrowOnError=n}asStream(){return new fC(this.downloadFn,this.shouldThrowOnError)}then(t,n){return this.execute().then(t,n)}execute(){return hC(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(ue(t))return{data:null,error:t};throw t}})}}var Ae=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const mC={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Xh={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class gC{constructor(t,n={},r,o){this.shouldThrowOnError=!1,this.url=t,this.headers=n,this.bucketId=r,this.fetch=xy(o)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,n,r,o){return Ae(this,void 0,void 0,function*(){try{let i;const s=Object.assign(Object.assign({},Xh),o);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(s.upsert)});const l=s.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",s.cacheControl),l&&i.append("metadata",this.encodeMetadata(l)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.append("cacheControl",s.cacheControl),l&&i.append("metadata",this.encodeMetadata(l))):(i=r,a["cache-control"]=`max-age=${s.cacheControl}`,a["content-type"]=s.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),o!=null&&o.headers&&(a=Object.assign(Object.assign({},a),o.headers));const u=this._removeEmptyFolders(n),c=this._getFinalPath(u),d=yield(t=="PUT"?hc:Et)(this.fetch,`${this.url}/object/${c}`,i,Object.assign({headers:a},s!=null&&s.duplex?{duplex:s.duplex}:{}));return{data:{path:u,id:d.Id,fullPath:d.Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(ue(i))return{data:null,error:i};throw i}})}upload(t,n,r){return Ae(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,o){return Ae(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),s=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${s}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:Xh.upsert},o),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const d=yield hc(this.fetch,a.toString(),l,{headers:c});return{data:{path:i,fullPath:d.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(ue(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return Ae(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const o=Object.assign({},this.headers);n!=null&&n.upsert&&(o["x-upsert"]="true");const i=yield Et(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:o}),s=new URL(this.url+i.url),a=s.searchParams.get("token");if(!a)throw new Fd("No token returned by API");return{data:{signedUrl:s.toString(),path:t,token:a},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ue(r))return{data:null,error:r};throw r}})}update(t,n,r){return Ae(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return Ae(this,void 0,void 0,function*(){try{return{data:yield Et(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(ue(o))return{data:null,error:o};throw o}})}copy(t,n,r){return Ae(this,void 0,void 0,function*(){try{return{data:{path:(yield Et(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(ue(o))return{data:null,error:o};throw o}})}createSignedUrl(t,n,r){return Ae(this,void 0,void 0,function*(){try{let o=this._getFinalPath(t),i=yield Et(this.fetch,`${this.url}/object/sign/${o}
174`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${s}`)},{data:i,error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(ue(o))return{data:null,error:o};throw o}})}createSignedUrls(t,n,r){return Ae(this,void 0,void 0,function*(){try{const o=yield Et(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:o.map(s=>Object.assign(Object.assign({},s),{signedUrl:s.signedURL?encodeURI(`${this.url}${s.signedURL}${i}`):null})),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(ue(o))return{data:null,error:o};throw o}})}download(t,n){const o=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),s=i?`?${i}`:"",a=this._getFinalPath(t),l=()=>la(this.fetch,`${this.url}/${o}/${a}${s}`,{headers:this.headers,noResolveJson:!0});return new pC(l,this.shouldThrowOnError)}info(t){return Ae(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield la(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:fc(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ue(r))return{data:null,error:r};throw r}})}exists(t){return Ae(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield cC(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ue(r)&&r instanceof dc){const o=r.originalError;if([400,404].includes(o==null?void 0:o.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),o=[],i=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";i!==""&&o.push(i);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&o.push(l);let u=o.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return Ae(this,void 0,void 0,function*(){try{return{data:yield Cy(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ue(n))return{data:null,error:n};throw n}})}list(t,n,r){return Ae(this,void 0,void 0,function*(){try{const o=Object.assign(Object.assign(Object.assign({},mC),n),{prefix:t||""});return{data:yield Et(this.fetch,`${this.url}/object/list/${this.bucketId}`,o,{headers:this.headers},r),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(ue(o))return{data:null,error:o};throw o}})}listV2(t,n){return Ae(this,void 0,void 0,function*(){try{const r=Object.assign({},t);return{data:yield Et(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ue(r))return{data:null,error:r};throw r}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const vC="2.75.0",yC={"X-Client-Info":`storage-js/${vC}`};var lr=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class wC{constructor(t,n={},r,o){this.shouldThrowOnError=!1;const i=new URL(t);o!=null&&o.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},yC),n),this.fetch=xy(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return lr(this,void 0,void 0,function*(){try{return{data:yield la(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(ue(t))return{data:null,error:t};throw t}})}getBucket(t){return lr(this,void 0,void 0,function*(){try{return{data:yield la(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ue(n))return{data:null,error:n};throw n}})}createBucket(t){return lr(this,arguments,void 0,function*(n,r={public:!1}){try{return{data:yield Et(this.fetch,`${this.url}/bucket`,{id:n,name:n,type:r.type,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(ue(o))return{data:null,error:o};throw o}})}updateBucket(t,n){return lr(this,void 0,void 0,function*(){try{return{data:yield hc(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ue(r))return{data:null,error:r};throw r}})}emptyBucket(t){return lr(this,void 0,void 0,function*(){try{return{data:yield Et(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ue(n))return{data:null,error:n};throw n}})}deleteBucket(t){return lr(this,void 0,void 0,function*(){try{return{data:yield Cy(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ue(n))return{data:null,error:n};throw n}})}}class _C extends wC{constructor(t,n={},r,o){super(t,n,r,o)}from(t){return new gC(this.url,this.headers,t,this.fetch)}}const bC="2.75.0";let Uo="";typeof Deno<"u"?Uo="deno":typeof document<"u"?Uo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Uo="react-native":Uo="node";const SC={"X-Client-Info":`supabase-js-${Uo}/${bC}`},EC={headers:SC},kC={schema:"public"},xC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},CC={};var TC=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}
174return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const PC=e=>{let t;return e?t=e:typeof fetch>"u"?t=dy:t=fetch,(...n)=>t(...n)},OC=()=>typeof Headers>"u"?fy:Headers,RC=(e,t,n)=>{const r=PC(n),o=OC();return(i,s)=>TC(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let u=new o(s==null?void 0:s.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(i,Object.assign(Object.assign({},s),{headers:u}))})};var AC=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};function IC(e){return e.endsWith("/")?e:e+"/"}function NC(e,t){var n,r;const{db:o,auth:i,realtime:s,global:a}=e,{db:l,auth:u,realtime:c,global:d}=t,f={db:Object.assign(Object.assign({},l),o),auth:Object.assign(Object.assign({},u),i),realtime:Object.assign(Object.assign({},c),s),storage:{},global:Object.assign(Object.assign(Object.assign({},d),a),{headers:Object.assign(Object.assign({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>AC(this,void 0,void 0,function*(){return""})};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function jC(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(IC(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const Ty="2.75.0",yr=30*1e3,pc=3,jl=pc*yr,DC="http://localhost:9999",LC="supabase.auth.token",MC={"X-Client-Info":`gotrue-js/${Ty}`},mc="X-Supabase-Api-Version",Py={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},$C=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,UC=10*60*1e3;class _i extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function D(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class FC extends _i{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function zC(e){return D(e)&&e.name==="AuthApiError"}class Wn extends _i{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class jn extends _i{constructor(t,n,r,o){super(t,r,o),this.name=n,this.status=r}}class rn extends jn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function WC(e){return D(e)&&e.name==="AuthSessionMissingError"}class ur extends jn{constructor(){super("Auth session or user missing","AuthInvalidToken
174ResponseError",500,void 0)}}class ns extends jn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class rs extends jn{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function BC(e){return D(e)&&e.name==="AuthImplicitGrantRedirectError"}class Zh extends jn{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class gc extends jn{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Dl(e){return D(e)&&e.name==="AuthRetryableFetchError"}class ep extends jn{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class vc extends jn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const ua="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),tp=` 	
175\r=`.split(""),HC=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<tp.length;t+=1)e[tp[t].charCodeAt(0)]=-2;for(let t=0;t<ua.length;t+=1)e[ua[t].charCodeAt(0)]=t;return e})();
175function np(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(ua[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(ua[r]),t.queuedBits-=6}}function Oy(e,t,n){const r=HC[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function rp(e){const t=[],n=s=>{t.push(String.fromCodePoint(s))},r={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},i=s=>{KC(s,r,n)};for(let s=0;s<e.length;s+=1)Oy(e.charCodeAt(s),o,i);return t.join("")}function VC(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function qC(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const o=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|o)+65536,n+=1}VC(r,t)}}function KC(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Hr(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};for(let o=0;o<e.length;o+=1)Oy(e.charCodeAt(o),n,r);return new Uint8Array(t)}function GC(e){const t=[];return qC(e,n=>t.push(n)),new Uint8Array(t)}function qn(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};return e.forEach(o=>np(o,n,r)),np(null,n,r),t.join("")}function YC(e){return Math.round(Date.now()/1e3)+e}function JC(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const Fe=()=>typeof window<"u"&&typeof document<"u",Dn={tested:!1,writable:!1},Ry=()=>{if(!Fe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Dn.tested)return Dn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Dn.tested=!0,Dn.writable=!0}catch{Dn.tested=!0,Dn.writable=!1}return Dn.writable};function QC(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((o,i)=>{t[i]=o})}catch{}return n.searchParams.forEach((r,o)=>{t[o]=r}),t}const Ay=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ai(async()=>{const{default:r}=await Promise.resolve().then(()=>po);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},XC=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",wr=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Ln=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},en=async(e,t)=>{await e.removeItem(t)};class qa{constructor(){this.promise=new qa.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}qa.promiseConstructor=Promise;function Ll(e){const t=e.split(".");if(t.length!==3)throw new vc("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!$C.test(t[r]))throw new vc("JWT not in base64url format");return{header:JSON.parse(rp(t[0])),payload:JSON.parse(rp(t[1])),signature:Hr(t[2]),raw:{header:t[0],payload:t[1]}}}async function ZC(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function eT(e,t){return new Promise((r,o)=>{(async()=>{for(let i=0;i<1/0;i++)try{const s=await e(i);if(!t(i,null,s)){r(s);return}}catch(s){if(!t(i,s)){o(s);return}}})()})}function tT(e){return("0"+e.toString(16)).substr(-2)}function nT(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let o="";for(let i=0;i<56;i++)o+=n.charAt(Math.floor(Math.random()*r));return o}return crypto.getRandomValues(t),Array.from(t,tT).join("")}async function rT(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
175n),o=new Uint8Array(r);return Array.from(o).map(i=>String.fromCharCode(i)).join("")}async function oT(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await rT(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function cr(e,t,n=!1){const r=nT();let o=r;n&&(o+="/PASSWORD_RECOVERY"),await wr(e,`${t}-code-verifier`,o);const i=await oT(r);return[i,r===i?"plain":"s256"]}const iT=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function sT(e){const t=e.headers.get(mc);if(!t||!t.match(iT))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function aT(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function lT(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const uT=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function dr(e){if(!uT.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Ml(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function op(e){return JSON.parse(JSON.stringify(e))}var cT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Un=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),dT=[502,503,504];async function ip(e){var t;if(!XC(e))throw new gc(Un(e),0);if(dT.includes(e.status))throw new gc(Un(e),e.status);let n;try{n=await e.json()}catch(i){throw new Wn(Un(i),i)}let r;const o=sT(e);if(o&&o.getTime()>=Py["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new ep(Un(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new rn}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,s)=>i&&typeof s=="string",!0))throw new ep(Un(n),e.status,n.weak_password.reasons);throw new FC(Un(n),e.status||500,r)}const fT=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),o.body=JSON.stringify(r),Object.assign(Object.assign({},o),n))};async function L(e,t,n,r){var o;const i=Object.assign({},r==null?void 0:r.headers);i[mc]||(i[mc]=Py["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const s=(o=r==null?void 0:r.query)!==null&&o!==void 0?o:{};r!=null&&r.redirectTo&&(s.redirect_to=r.redirectTo);const a=Object.keys(s).length?"?"+new URLSearchParams(s).toString():"",l=await hT(e,t,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function hT(e,t,n,r,o,i){const s=fT(t,r,o,i);let a;try{a=await e(n,Object.assign({},s))}catch(l){throw console.error(l),new gc(Un(l),0)}if(a.ok||await ip(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await ip(l)}}function ut(e){var t;let n=null;gT(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=YC(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function sp(e){const t=ut(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function cn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function pT(e){return{data:e,error:null}}function mT(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:i}=e,s=cT(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:i},l=Object.assign({},s);return{data:{properties:a,user:l},error:null}}function ap(e){return e}function gT(e){return e.access_token&&e.refresh_token&&e.expires_in}const $l=["global","local","others"];var vT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};class yT{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=Ay(r),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),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=$l[0]){if($l.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${$l.join(", ")}`);try{return await L(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(D(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await L(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:cn})}catch(r){if(D(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=vT(t,["options"]),o=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(o.new_email=r==null?void 0:r.newEmail,delete o.newEmail),await L(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:mT,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(D(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await L(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:cn})}catch(n){if(D(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,o,i,s,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await L(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(o=t==null?void 0:t.perPage)===null||o===void 0?void 0:o.toString())!==null&&i!==void 0?i:""},xform:ap});if(c.error)throw c.error;const d=await c.json(),f=(s=c.headers.get("x-total-count"))!==null&&s!==void 0?s:0,p=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>
1750&&(p.forEach(w=>{const y=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(w.split(";")[1].split("=")[1]);u[`${_}Page`]=y}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(D(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){dr(t);try{return await L(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:cn})}catch(n){if(D(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){dr(t);try{return await L(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:cn})}catch(r){if(D(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){dr(t);try{return await L(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:cn})}catch(r){if(D(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){dr(t.userId);try{const{data:n,error:r}=await L(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:n,error:r}}catch(n){if(D(n))return{data:null,error:n};throw n}}async _deleteFactor(t){dr(t.userId),dr(t.id);try{return{data:await L(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(D(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,o,i,s,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await L(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(o=t==null?void 0:t.perPage)===null||o===void 0?void 0:o.toString())!==null&&i!==void 0?i:""},xform:ap});if(c.error)throw c.error;const d=await c.json(),f=(s=c.headers.get("x-total-count"))!==null&&s!==void 0?s:0,p=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(w=>{const y=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(w.split(";")[1].split("=")[1]);u[`${_}Page`]=y}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(D(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await L(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(D(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await L(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(D(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await L(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(D(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await L(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(D(n))return{data:null,error:n};throw n}}}function lp(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const fr={debug:!!(globalThis&&Ry()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Iy extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class wT extends Iy{}async function _T(e,t,n){fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),fr.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async o=>{if(o){fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,o.name);try{return await n()}finally{fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,o.name)}}else{if(t===0)throw fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new wT(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(fr.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null,"  "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function bT(){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 Ny(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
175" is invalid.`);return e.toLowerCase()}function ST(e){return parseInt(e,16)}function ET(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function kT(e){var t;const{chainId:n,domain:r,expirationTime:o,issuedAt:i=new Date,nonce:s,notBefore:a,requestId:l,resources:u,scheme:c,uri:d,version:f}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(s&&s.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${s}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
176`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=Ny(e.address),w=c?`${c}://${r}`:r,y=e.statement?`${e.statement}
177`:"",_=`${w} wants you to sign in with your Ethereum account:
178${p}
179
180${y}`;let m=`URI: ${d}
181Version: ${f}
182Chain ID: ${n}${s?`
183Nonce: ${s}`:""}
184Issued At: ${i.toISOString()}`;if(o&&(m+=`
185Expiration Time: ${o.toISOString()}`),a&&(m+=`
186Not Before: ${a.toISOString()}`),l&&(m+=`
187Request ID: ${l}`),u){let h=`
188Resources:`;for(const g of u){if(!g||typeof g!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${g}`);h+=`
189- ${g}`}m+=h}return`${_}
190${m}`}class le extends Error{constructor({message:t,code:n,cause:r,name:o}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=o??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class ca extends le{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function xT({error:e,options:t}){var n,r,o;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new le({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new le({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new le({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((o=i.authenticatorSelection)===null||o===void 0?void 0:o.userVerification)==="required")return new le({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new le({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new le({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new le({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new le({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const s=window.location.hostname;if(Dy(s)){if(i.rp.id!==s)return new le({message:`The RP ID "${i.rp.id}
190" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new le({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new le({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new le({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new le({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function CT({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new le({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new le({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(Dy(r)){if(n.rpId!==r)return new le({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new le({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new le({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new le({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}var jy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};class TT{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const PT=new TT;function OT(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,o=jy(e,["challenge","user","excludeCredentials"]),i=Hr(t).buffer,s=Object.assign(Object.assign({},n),{id:Hr(n.id).buffer}),a=Object.assign(Object.assign({},o),{challenge:i,user:s});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:Hr(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function RT(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=jy(e,["challenge","allowCredentials"]),o=Hr(t).buffer,i=Object.assign(Object.assign({},r),{challenge:o});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let s=0;s<n.length;s++){const a=n[s];i.allowCredentials[s]=Object.assign(Object.assign({},a),{id:Hr(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function AT(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:qn(new Uint8Array(e.response.attestationObject)),clientDataJSON:qn(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function IT(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),o=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:qn(new Uint8Array(o.authenticatorData)),clientDataJSON:qn(new Uint8Array(o.clientDataJSON)),signature:qn(new Uint8Array(o.signature)),userHandle:o.userHandle?qn(new Uint8Array(o.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Dy(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function up(){var e,t;return!!(Fe()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function NT(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ca("Browser returned unexpected credential type",t)}:{data:null,error:new ca("Empty credential response",t)}}
190catch(t){return{data:null,error:xT({error:t,options:e})}}}async function jT(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ca("Browser returned unexpected credential type",t)}:{data:null,error:new ca("Empty credential response",t)}}catch(t){return{data:null,error:CT({error:t,options:e})}}}const DT={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"none"},LT={userVerification:"preferred",hints:["security-key"]};function da(...e){const t=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),n=o=>o instanceof ArrayBuffer||ArrayBuffer.isView(o),r={};for(const o of e)if(o)for(const i in o){const s=o[i];if(s!==void 0)if(Array.isArray(s))r[i]=s;else if(n(s))r[i]=s;else if(t(s)){const a=r[i];t(a)?r[i]=da(a,s):r[i]=da(s)}else r[i]=s}return r}function MT(e,t){return da(DT,e,t||{})}function $T(e,t){return da(LT,e,t||{})}class UT{constructor(t){this.client=t,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(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:o},i){try{const{data:s,error:a}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!s)return{data:null,error:a};const l=o??PT.createNewAbortSignal();if(s.webauthn.type==="create"){const{user:u}=s.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${r}`),u.displayName||(u.displayName=u.name)}switch(s.webauthn.type){case"create":{const u=MT(s.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:c,error:d}=await NT({publicKey:u,signal:l});return c?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:c}},error:null}:{data:null,error:d}}case"request":{const u=$T(s.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:c,error:d}=await jT(Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:u,signal:l}));return c?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:c}},error:null}:{data:null,error:d}}}}catch(s){return D(s)?{data:null,error:s}:{data:null,error:new Wn("Unexpected error in challenge",s)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:o}},i){if(!n)return{data:null,error:new _i("rpId is required for WebAuthn authentication")};try{if(!up())return{data:null,error:new Wn("Browser does not support WebAuthn",null)};const{data:s,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:o},{request:i});if(!s)return{data:null,error:a};const{webauthn:l}=s;return this._verify({factorId:t,challengeId:s.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(s){return D(s)?{data:null,error:s}:{data:null,error:new Wn("Unexpected error in authenticate",s)}}}async _register({friendlyName:t,rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:o},i){if(!n)return{data:null,error:new _i("rpId is required for WebAuthn registration")};try{if(!up())return{data:null,error:new Wn("Browser does not support WebAuthn",null)};const{data:s,error:a}=await this._enroll({friendlyName:t});if(!s)return await this.client.mfa.listFactors().then(c=>{var d;return(d=c.data)===null||d===void 0?void 0:d.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&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:s.id,friendlyName:s.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:o},{create:i});return l?this._verify({factorId:s.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(s){return D(s)?{data:null,error:s}:{data:null,error:new Wn("Unexpected error in register",s)}}}}bT();const FT={url:DC,storageKey:LC,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:MC,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};
190async function cp(e,t,n){return await n()}const hr={};class bi{get jwks(){var t,n;return(n=(t=hr[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){hr[this.storageKey]=Object.assign(Object.assign({},hr[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=hr[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){hr[this.storageKey]=Object.assign(Object.assign({},hr[this.storageKey]),{cachedAt:t})}constructor(t){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=bi.nextInstanceID,bi.nextInstanceID+=1,this.instanceID>0&&Fe()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const o=Object.assign(Object.assign({},FT),t);if(this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.persistSession=o.persistSession,this.storageKey=o.storageKey,this.autoRefreshToken=o.autoRefreshToken,this.admin=new yT({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=Ay(o.fetch),this.lock=o.lock||cp,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,o.lock?this.lock=o.lock:Fe()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=_T:this.lock=cp,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 UT(this)},this.persistSession?(o.storage?this.storage=o.storage:Ry()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=lp(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=lp(this.memoryStorage)),Fe()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Ty}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=QC(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),Fe()&&this.detectSessionInUrl&&r!=="none"){const{data:o,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),BC(i)){const l=(t=i.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:s,redirectType:a}=o;return this._debug("#_initialize()","detected session in URL",s,"redirect type",a),await this._saveSession(s),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",s):await this._notifyAllSubscribers("SIGNED_IN",s)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return D(n)?{error:n}:{error:new Wn("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,o;try{const i=await L(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(o=t==null?void 0:t.options)===null||o===void 0?void 0:o.captchaToken}},xform:ut}),{data:s,error:a}=i;if(a||!s)return{data:{user:null,session:null},error:a};const l=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(D(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(t){var n,r,o;try{let i;if("email"in t){const{email:c,password:d,options:f}=t;let p=null,w=null;this.flowType==="pkce"&&([p,w]=await cr(this.storage,this.storageKey)),i=await L(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:c,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:p,code_challenge_method:w},xform:ut})}else if("phone"in t){const{phone:c,password:d,options:f}=t;i=await L(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(o=f==null?void 0:f.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:ut})}else throw new ns("You must provide either an email or phone number and a password");const{data:s,error:a}=i;if(a||!s)return{data:{user:null,session:null},error:a};const l=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(D(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:s,options:a}=t;n=await L(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:s,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:sp})}else if("phone"in t){const{phone:i,password:s,options:a}=t;n=await L(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:s,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:sp})}else throw new ns("You must provide either an email or phone number and a password");const{data:r,error:o}=n;return o?{data:{user:null,session:null},error:o}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new ur}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:o})}catch(n){if(D(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,o,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(o=t.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,o,i,s,a,l,u,c,d,f;let p,w;if("message"in t)p=t.message,w=t.signature;else{const{chain:y,wallet:_,statement:m,options:h}=t;let g;if(Fe())if(typeof _=="object")g=_;else{const O=window;if("ethereum"in O&&typeof O.ethereum=="object"&&"request"in O.ethereum&&typeof O.ethereum.request=="function")g=O.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 _!="object"||!(h!=null&&h.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");g=_}const b=new URL((n=h==null?void 0:h.url)!==null&&n!==void 0?n:window.location.href),S=await g.request({method:"eth_requestAccounts"}).then(O=>O).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const k=Ny(S[0]);
190let E=(r=h==null?void 0:h.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!E){const O=await g.request({method:"eth_chainId"});E=ST(O)}const T={domain:b.host,address:k,statement:m,uri:b.href,version:"1",chainId:E,nonce:(o=h==null?void 0:h.signInWithEthereum)===null||o===void 0?void 0:o.nonce,issuedAt:(s=(i=h==null?void 0:h.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&s!==void 0?s:new Date,expirationTime:(a=h==null?void 0:h.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=h==null?void 0:h.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=h==null?void 0:h.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=h==null?void 0:h.signInWithEthereum)===null||c===void 0?void 0:c.resources};p=kT(T),w=await g.request({method:"personal_sign",params:[ET(p),k]})}try{const{data:y,error:_}=await L(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:w},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:ut});if(_)throw _;return!y||!y.session||!y.user?{data:{user:null,session:null},error:new ur}:(y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),{data:Object.assign({},y),error:_})}catch(y){if(D(y))return{data:{user:null,session:null},error:y};throw y}}async signInWithSolana(t){var n,r,o,i,s,a,l,u,c,d,f,p;let w,y;if("message"in t)w=t.message,y=t.signature;else{const{chain:_,wallet:m,statement:h,options:g}=t;let b;if(Fe())if(typeof m=="object")b=m;else{const k=window;if("solana"in k&&typeof k.solana=="object"&&("signIn"in k.solana&&typeof k.solana.signIn=="function"||"signMessage"in k.solana&&typeof k.solana.signMessage=="function"))b=k.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 m!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=m}const S=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in b&&b.signIn){const k=await b.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},g==null?void 0:g.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),h?{statement:h}:null));let E;if(Array.isArray(k)&&k[0]&&typeof k[0]=="object")E=k[0];else if(k&&typeof k=="object"&&"signedMessage"in k&&"signature"in k)E=k;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in E&&"signature"in E&&(typeof E.signedMessage=="string"||E.signedMessage instanceof Uint8Array)&&E.signature instanceof Uint8Array)w=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),y=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in b)||typeof b.signMessage!="function"||!("publicKey"in b)||typeof b!="object"||!b.publicKey||!("toBase58"in b.publicKey)||typeof b.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${S.host} wants you to sign in with your Solana account:`,b.publicKey.toBase58(),...h?["",h,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(o=(r=g==null?void 0:g.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&o!==void 0?o:new Date().toISOString()}`,...!((i=g==null?void 0:g.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...!((s=g==null?void 0:g.signInWithSolana)===null||s===void 0)&&s.expirationTime?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...!((a=g==null?void 0:g.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...!((l=g==null?void 0:g.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...!((u=g==null?void 0:g.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...!((d=(c=g==null?void 0:g.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||d===void 0)&&d.length?["Resources",...g.signInWithSolana.resources.map(E=>`- ${E}`)]:[]].join(`
191`);
191const k=await b.signMessage(new TextEncoder().encode(w),"utf8");if(!k||!(k instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");y=k}}try{const{data:_,error:m}=await L(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:qn(y)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:ut});if(m)throw m;return!_||!_.session||!_.user?{data:{user:null,session:null},error:new ur}:(_.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("SIGNED_IN",_.session)),{data:Object.assign({},_),error:m})}catch(_){if(D(_))return{data:{user:null,session:null},error:_};throw _}}async _exchangeCodeForSession(t){const n=await Ln(this.storage,`${this.storageKey}-code-verifier`),[r,o]=(n??"").split("/");try{const{data:i,error:s}=await L(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:ut});if(await en(this.storage,`${this.storageKey}-code-verifier`),s)throw s;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new ur}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:o??null}),error:s})}catch(i){if(D(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:o,access_token:i,nonce:s}=t,a=await L(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:o,access_token:i,nonce:s,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:ut}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new ur}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(D(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,o,i,s;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await cr(this.storage,this.storageKey));const{error:d}=await L(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await L(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(o=l==null?void 0:l.data)!==null&&o!==void 0?o:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(s=l==null?void 0:l.channel)!==null&&s!==void 0?s:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new ns("You must provide either an email or phone number.")}catch(a){if(D(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let o,i;"options"in t&&(o=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:s,error:a}=await L(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:o,xform:ut});if(a)throw a;if(!s)throw new Error("An error occurred on token verification.");const l=s.session,u=s.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(o){if(D(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithSSO(t){var n,r,o;try{let i=null,s=null;return this.flowType==="pkce"&&([i,s]=await cr(this.storage,this.storageKey)),await L(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((o=t==null?void 0:t.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:s}),headers:this.headers,xform:pT})}catch(i){if(D(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new rn;const{error:o}=await L(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:o}})}catch(t){if(D(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:o,options:i}=t,{error:s}=await L(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:o,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:s}}else if("phone"in t){const{phone:r,type:o,options:i}=t,{data:s,error:a}=await L(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:o,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:s==null?void 0:s.message_id},error:a}}throw new ns("You must provide either an email or phone number and a type")}catch(n){if(D(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Ln(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
191id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<jl:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const s=await Ln(this.userStorage,this.storageKey+"-user");s!=null&&s.user?t.user=s.user:t.user=Ml()}if(this.storage.isServer&&t.user){let s=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,u,c)=>(!s&&u==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),s=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,u,c))})}return{data:{session:t},error:null}}const{data:o,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{session:null},error:i}:{data:{session:o},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await L(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:cn}):await this._useSession(async n=>{var r,o,i;const{data:s,error:a}=n;if(a)throw a;return!(!((r=s.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new rn}:await L(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(o=s.session)===null||o===void 0?void 0:o.access_token)!==null&&i!==void 0?i:void 0,xform:cn})})}catch(n){if(D(n))return WC(n)&&(await this._removeSession(),await en(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:o,error:i}=r;if(i)throw i;if(!o.session)throw new rn;const s=o.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await cr(this.storage,this.storageKey));const{data:u,error:c}=await L(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:s.access_token,xform:cn});if(c)throw c;return s.user=u.user,await this._saveSession(s),await this._notifyAllSubscribers("USER_UPDATED",s),{data:{user:s.user},error:null}})}catch(r){if(D(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new rn;const n=Date.now()/1e3;let r=n,o=!0,i=null;const{payload:s}=Ll(t.access_token);if(s.exp&&(r=s.exp,o=r<=n),o){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(n){if(D(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:s,error:a}=n;if(a)throw a;t=(r=s.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new rn;const{data:o,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:o?{data:{user:o.user,session:o},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(D(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!Fe())throw new rs("No browser detected.");
191if(t.error||t.error_description||t.error_code)throw new rs(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Zh("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new rs("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Zh("No code detected.");const{data:h,error:g}=await this._exchangeCodeForSession(t.code);if(g)throw g;const b=new URL(window.location.href);return b.searchParams.delete("code"),window.history.replaceState(window.history.state,"",b.toString()),{data:{session:h.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:o,access_token:i,refresh_token:s,expires_in:a,expires_at:l,token_type:u}=t;if(!i||!a||!s||!u)throw new rs("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(a);let f=c+d;l&&(f=parseInt(l));const p=f-c;p*1e3<=yr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${d}s`);const w=f-d;c-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,f,c):c-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,f,c);const{data:y,error:_}=await this._getUser(i);if(_)throw _;const m={provider_token:r,provider_refresh_token:o,access_token:i,expires_in:d,expires_at:f,refresh_token:s,token_type:u,user:y.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:m,redirectType:t.type},error:null}}catch(r){if(D(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Ln(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:o,error:i}=n;if(i)return{error:i};const s=(r=o.session)===null||r===void 0?void 0:r.access_token;if(s){const{error:a}=await this.admin.signOut(s,t);if(a&&!(zC(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await en(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=JC(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,o;try{const{data:{session:i},error:s}=n;if(s)throw s;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((o=this.stateChangeEmitters.get(t))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,o=null;this.flowType==="pkce"&&([r,o]=await cr(this.storage,this.storageKey,!0));try{return await L(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:o,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(D(i))return{data:null,error:i};throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(D(n))return{data:null,error:n};throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:o}=await this._useSession(async i=>{var s,a,l,u,c;const{data:d,error:f}=i;if(f)throw f;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(s=t.options)===null||s===void 0?void 0:s.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await L(this.fetch,"GET",p,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(o)throw o;return Fe()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(D(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:o,data:{session:i}}=n;
191if(o)throw o;const{options:s,provider:a,token:l,access_token:u,nonce:c}=t,d=await L(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:ut}),{data:f,error:p}=d;return p?{data:{user:null,session:null},error:p}:!f||!f.session||!f.user?{data:{user:null,session:null},error:new ur}:(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),{data:f,error:p})}catch(o){if(D(o))return{data:{user:null,session:null},error:o};throw o}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,o;const{data:i,error:s}=n;if(s)throw s;return await L(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(o=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&o!==void 0?o:void 0})})}catch(n){if(D(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await eT(async o=>(o>0&&await ZC(200*Math.pow(2,o-1)),this._debug(n,"refreshing attempt",o),await L(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:ut})),(o,i)=>{const s=200*Math.pow(2,o);return i&&Dl(i)&&Date.now()+s-r<yr})}catch(r){if(this._debug(n,"error",r),D(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Fe()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const o=await Ln(this.storage,this.storageKey);if(o&&this.userStorage){let s=await Ln(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!s&&(s={user:o.user},await wr(this.userStorage,this.storageKey+"-user",s)),o.user=(t=s==null?void 0:s.user)!==null&&t!==void 0?t:Ml()}else if(o&&!o.user&&!o.user){const s=await Ln(this.storage,this.storageKey+"-user");s&&(s!=null&&s.user)?(o.user=s.user,await en(this.storage,this.storageKey+"-user"),await wr(this.storage,this.storageKey,o)):o.user=Ml()}if(this._debug(r,"session from storage",o),!this._isValidSession(o)){this._debug(r,"session is not valid"),o!==null&&await this._removeSession();return}const i=((n=o.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<jl;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${jl}s`),i){if(this.autoRefreshToken&&o.refresh_token){const{error:s}=await this._callRefreshToken(o.refresh_token);s&&(console.error(s),Dl(s)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",s),await this._removeSession()))}}else if(o.user&&o.user.__isUserNotAvailableProxy===!0)try{const{data:s,error:a}=await this._getUser(o.access_token);!a&&(s!=null&&s.user)?(o.user=s.user,await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(s){console.error("Error getting user data:",s),this._debug(r,"error getting user data, skipping SIGNED_IN notification",s)}else await this._notifyAllSubscribers("SIGNED_IN",o)}catch(o){this._debug(r,"error",o),console.error(o);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new rn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new qa;const{data:i,error:s}=await this._refreshAccessToken(t);if(s)throw s;if(!i.session)throw new rn;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={data:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(o,"error",i),D(i)){const s={data:null,error:i};return Dl(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(s),s}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(o,"end")}}async _notifyAllSubscribers(t,n,r=!0){const o=`#_notifyAllSubscribers(${t})`;this._debug(o,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],s=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(s),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(o,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await wr(this.userStorage,this.storageKey+"-user",{user:n.user});const o=Object.assign({},n);delete o.user;const i=op(o);await wr(this.storage,this.storageKey,i)}else{const o=op(n);await wr(this.storage,this.storageKey,o)}}async _removeSession(){this._debug("#_removeSession()"),await en(this.storage,this.storageKey),await en(this.storage,this.storageKey+"-code-verifier"),await en(this.storage,this.storageKey+"-user"),this.userStorage&&await en(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Fe()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
191catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),yr);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((r.expires_at*1e3-t)/yr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${yr}ms, refresh threshold is ${pc} ticks`),o<=pc&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof Iy)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Fe()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const o=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&o.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&o.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,s]=await cr(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(s)}`});o.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);o.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&o.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${o.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:o,error:i}=n;return i?{data:null,error:i}:await L(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(D(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,o;const{data:i,error:s}=n;if(s)return{data:null,error:s};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await L(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&l.type==="totp"&&(!((o=l==null?void 0:l.totp)===null||o===void 0)&&o.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(D(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:i}=n;if(i)return{data:null,error:i};const s=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?AT(t.webauthn.credential_response):IT(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await L(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:s,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return l?{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),{data:a,error:l})})}catch(n){if(D(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:i}=n;if(i)return{data:null,error:i};const s=await L(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});if(s.error)return s;const{data:a}=s;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:OT(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:RT(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(D(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const o={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])o.all.push(i),i.status==="verified"&&o[i.factor_type].push(i);return{data:o,error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:o},error:i}=t;if(i)return{data:null,error:i};if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:s}=Ll(o.access_token);let a=null;s.aal&&(a=s.aal);let l=a;((r=(n=o.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=s.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const o=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+UC>o)return r;const{data:i,error:s}=await L(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(s)throw s;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=o,r=i.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:p,error:w}
191=await this.getSession();if(w||!p.session)return{data:null,error:w};r=p.session.access_token}const{header:o,payload:i,signature:s,raw:{header:a,payload:l}}=Ll(r);n!=null&&n.allowExpired||aT(i.exp);const u=!o.alg||o.alg.startsWith("HS")||!o.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(o.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:i,header:o,signature:s},error:null}}const c=lT(o.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,s,GC(`${a}.${l}`)))throw new vc("Invalid JWT signature");return{data:{claims:i,header:o,signature:s},error:null}}catch(r){if(D(r))return{data:null,error:r};throw r}}}bi.nextInstanceID=0;const zT=bi;class WT extends zT{constructor(t){super(t)}}var BT=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class HT{constructor(t,n,r){var o,i,s;this.supabaseUrl=t,this.supabaseKey=n;const a=jC(t);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const l=`sb-${a.hostname.split(".")[0]}-auth-token`,u={db:kC,realtime:CC,auth:Object.assign(Object.assign({},xC),{storageKey:l}),global:EC},c=NC(r??{},u);this.storageKey=(o=c.auth.storageKey)!==null&&o!==void 0?o:"",this.headers=(i=c.global.headers)!==null&&i!==void 0?i:{},c.accessToken?(this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((s=c.auth)!==null&&s!==void 0?s:{},this.headers,c.global.fetch),this.fetch=RC(n,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.rest=new F1(new URL("rest/v1",a).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new _C(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new cy(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){return BT(this,void 0,void 0,function*(){var t,n;if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:o,userStorage:i,storageKey:s,flowType:a,lock:l,debug:u},c,d){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new WT({url:this.authUrl.href,headers:Object.assign(Object.assign({},f),c),storageKey:s,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:o,userStorage:i,flowType:a,lock:l,debug:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new rC(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const VT=(e,t,n)=>new HT(e,t,n);function qT(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}qT()&&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
191ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function KT(){var _,m;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(h=>e===h||e.endsWith("."+h)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",o=n?((_=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:_[1])??((m=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:m[1]):void 0,i=window.parent&&window.parent!==window;if(!o||!i)return localStorage;const s=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=s?/^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]:s?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],c="lovable-preview-auth:result",d=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),p=(h,g,b)=>new Promise(S=>{const k=f();let E=!1,T;const O=j=>{E||(E=!0,clearTimeout(T),window.removeEventListener("message",R),S(j))},R=j=>{if(u.indexOf(j.origin)<0)return;const z=j.data;z&&z.type===c&&z.requestId===k&&O(z)};window.addEventListener("message",R);const U={type:h,requestId:k,projectId:o,key:g};b!==void 0&&(U.value=b);for(const j of u)window.parent.postMessage(U,j);T=setTimeout(()=>O(null),d)});let w=!0;const y=250;return{getItem:async h=>{let g=await p("lovable-preview-auth:get",h);return!g&&w&&(await new Promise(b=>setTimeout(b,y)),g=await p("lovable-preview-auth:get",h)),w=!1,g&&g.ok&&typeof g.value=="string"?g.value===""?(localStorage.removeItem(h),null):g.value:localStorage.getItem(h)},setItem:(h,g)=>(localStorage.setItem(h,g),p("lovable-preview-auth:set",h,g).then(b=>{b&&b.ok&&typeof b.value=="string"&&localStorage.getItem(h)===g&&(b.value===""?localStorage.removeItem(h):localStorage.setItem(h,b.value))})),removeItem:h=>(localStorage.removeItem(h),p("lovable-preview-auth:remove",h).then(()=>{}))}}const GT="https://azhbrzoyrhbkfgckbymx.supabase.co",YT="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImF6aGJyem95cmhia2ZnY2tieW14Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njk3NDQ5MzAsImV4cCI6MjA4NTMyMDkzMH0.fKHBAqgKAUXRVfokhBheMDMJUHaATnSMOa9sdl6lWjk",On=VT(GT,YT,{auth:{storage:KT(),persistSession:!0,autoRefreshToken:!0}}),JT=5*60*1e3,QT=30*1e3;let Tt=null,Ps="loading",Ul=0,os=0,Ao=null;const yc=new Set,XT=()=>yc.forEach(e=>e());function ZT(e){const t=e;return!!t&&typeof t=="object"&&typeof t.version=="number"&&typeof t.deposit_pct=="number"&&!!t.terms&&!!t.sales_tax&&!!t.sales_tax.rate_by_state&&Array.isArray(t.addons)&&!!t.delivery_fee_by_state&&typeof t.delivery_fee_default=="number"}function Ly(e=!1){return Ao||(!e&&Ul&&Date.now()-Ul<JT||!e&&!Tt&&os&&Date.now()-os<QT?Promise.resolve():(Ao=(async()=>{try{const{data:t,error:n}=await On.functions.invoke("get-pricing-config",{method:"GET"});!n&&ZT(t)?(Tt=t,Ps="ready",Ul=Date.now()):(console.warn("[pricingConfig] fetch failed:",(n==null?void 0:n.message)??"invalid config"),os=Date.now(),Tt||(Ps="error"))}catch(t){console.warn("[pricingConfig] fetch threw:",t),os=Date.now(),Tt||(Ps="error")}finally{Ao=null,XT()}})(),Ao))}function wc(){return Tt}async function gI(){return Tt||(await Ly(!0),Tt)}function dp(){return Ps}function eP(){return Tt?Tt.version:null}function My(e){return yc.add(e),Ly(),()=>yc.delete(e)}function vI(){return v.useSyncExternalStore(My,wc,wc)}function yI(){return v.useSyncExternalStore(My,dp,dp)}const $y="zeeba_attribution",zd="zeeba_attribution_id",Uy="zeeba_attribution_last",Wd="zeeba_attribution_fresh",tP=90*24*60*60*1e3,_c={gclid:null,gbraid:null,wbraid:null,utm_source:null,utm_medium:null,utm_campaign:null,utm_term:null,utm_content:null,landing_url:null,referrer:null,ga_client_id:null,first_seen_at:null};function Fy(){try{return localStorage.getItem("cookie-consent")==="accepted"}catch{return!1}}const Fl=(e,t=500)=>
191{if(!e)return null;const n=e.trim();return n?n.slice(0,t):null};function zy(){if(typeof document>"u")return null;try{const e=document.cookie.match(/(?:^|;\s*)_ga=([^;]+)/);if(!e)return null;const t=decodeURIComponent(e[1]).split(".");return t.length<4?null:`${t[2]}.${t[3]}`}catch{return null}}function nP(){if(typeof window>"u")return{..._c};const e=new URLSearchParams(window.location.search),t=n=>Fl(e.get(n),500);return{gclid:t("gclid"),gbraid:t("gbraid"),wbraid:t("wbraid"),utm_source:t("utm_source"),utm_medium:t("utm_medium"),utm_campaign:t("utm_campaign"),utm_term:t("utm_term"),utm_content:t("utm_content"),landing_url:Fl(window.location.href,1e3),referrer:Fl(document.referrer||null,1e3),ga_client_id:zy(),first_seen_at:new Date().toISOString()}}function rP(){if(typeof window>"u")return!0;try{const e=window.location.pathname.toLowerCase();if(e.endsWith(".xml")||e.endsWith("/robots.txt")||window.location.search.toLowerCase().includes("forcehidebadge=true"))return!0}catch{}return!1}function Wy(e){return!!(e.gclid||e.gbraid||e.wbraid)}function oP(e){return Wy(e)||!!(e.utm_source||e.utm_medium||e.utm_campaign)}function By(){try{const e=sessionStorage.getItem($y);if(!e)return null;const t=JSON.parse(e);return t.first_seen_at||(t.first_seen_at=new Date().toISOString(),_r(t)),t}catch{return null}}function _r(e){try{sessionStorage.setItem($y,JSON.stringify(e))}catch{}}function iP(){if(!Fy())return null;try{const e=localStorage.getItem(Uy);if(!e)return null;const t=JSON.parse(e);return!(t!=null&&t.data)||!t.ts||Date.now()-t.ts>tP?null:t.data}catch{return null}}function zl(e){if(Fy())try{localStorage.setItem(Uy,JSON.stringify({data:e,ts:Date.now()}))}catch{}}function sP(){try{sessionStorage.removeItem(zd),sessionStorage.setItem(Wd,"1")}catch{}}function aP(){if(typeof window>"u")return{..._c};if(rP())return{..._c};const e=nP(),t=By();if(t&&Wy(e)&&!(t.gclid===e.gclid&&t.gbraid===e.gbraid&&t.wbraid===e.wbraid))return _r(e),zl(e),sP(),e;if(t){if(!t.ga_client_id){const r=zy();if(r){const o={...t,ga_client_id:r};return _r(o),o}}return t}if(oP(e))return _r(e),zl(e),e;const n=iP();if(n){const r={...n,landing_url:e.landing_url,referrer:e.referrer,ga_client_id:e.ga_client_id??n.ga_client_id,first_seen_at:n.first_seen_at??e.first_seen_at};return _r(r),r}return _r(e),zl(e),e}function lP(){return typeof window>"u"?null:By()??aP()}function Bd(){try{return sessionStorage.getItem(zd)}catch{return null}}function Hy(e){if(e)try{sessionStorage.setItem(zd,e),sessionStorage.removeItem(Wd)}catch{}}function wI(e){if(!(!e||Bd())){try{if(sessionStorage.getItem(Wd)==="1")return}catch{}Hy(e)}}function Hd(){return{attribution_id:Bd(),attribution:lP()}}const Vy="zeeba_current_client",Si=120;function qy(){try{const e=sessionStorage.getItem(Vy);if(!e)return{says:null,hint:""};const t=JSON.parse(e);return{says:typeof t.says=="boolean"?t.says:null,hint:typeof t.hint=="string"?t.hint.slice(0,Si):""}}catch{return{says:null,hint:""}}}function uP(e){try{sessionStorage.setItem(Vy,JSON.stringify({says:e.says,hint:e.hint.slice(0,Si)}))}catch{}}function fa(e=qy()){if(e.says===null)return{};const t=e.says?e.hint.trim().slice(0,Si):"";return t?{says_current_client:e.says,current_client_hint:t}:{says_current_client:e.says}}const cP={"9145048e-a875-4a51-9ba7-9831cde78adf":"ev_promaster"};function _I(e,t){return t.vlrf.in_use==="rate"?t.vlrf.rate:e*t.vlrf.pct}function bI(e,t){const n=(e??"").toUpperCase();return t.delivery_fee_by_state[n]??t.delivery_fee_default}function SI(e,t){return t.sales_tax.apply?t.sales_tax.rate_by_state[(e??"").toUpperCase()]??0:0}function dP(e){const t={};if(!e)return t;for(const[n,r]of Object.entries(e.terms.min_by_vehicle_type)){const o=cP[n];o&&(t[o]=Math.max(t[o]??0,r))}return t}const is=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:null;function EI(e,t,n){const r=(e==null?void 0:e.mileage.slider_step)===1e3?1e3:500,o=is(n==null?void 0:n.included_miles_per_month)??(e?is(t):null),i=is(n==null?void 0:n.overage_rate_per_mile)??is(e==null?void 0:e.mileage.overage_rate);return{included:o,overage:i,step:r}}function kI(e){return"$"+e.toFixed(2)}const fP={cargo_van:"Cargo Van",pax_12:"12-Passenger Van",pax_15:"15-Passenger Van",minivan:"Minivan",suv:"SUV",pickup:"Pickup Truck",box_truck:"Box Truck"},hP={cargo_van:"130/144/159wb Cargo",pax_12:"12 Px",pax_15:"15 Px",minivan:"Mini Van",suv:"SUV",pickup:"1/2 Ton Truck",box_truck:"Box Truck 26'"};function Ky(e){return e?hP[e]??null:null}function pP(e){return e?dP(wc())[e]??null:null}function xI(e,t){return e?Math.max(t,pP(e)??0):t}const CI={ev_promaster:"EV Promasters"},fp="zeeba_visitor_id",mP="x-visitor-id",gP=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;let tn=null;function hp(){if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;const t=[...e].map(n=>n.toString(16).padStart(2,"0")).join("");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}
191function vP(){if(tn)return tn;try{const e=localStorage.getItem(fp);if(e&&gP.test(e))return tn=e;tn=hp(),localStorage.setItem(fp,tn)}catch{tn=tn??hp()}return tn}function Vd(){return{[mP]:vP()}}async function TI(){var n;const e="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImF6aGJyem95cmhia2ZnY2tieW14Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njk3NDQ5MzAsImV4cCI6MjA4NTMyMDkzMH0.fKHBAqgKAUXRVfokhBheMDMJUHaATnSMOa9sdl6lWjk";let t=null;try{const{data:r}=await On.auth.getSession();t=((n=r.session)==null?void 0:n.access_token)??null}catch{}return{apikey:e,Authorization:`Bearer ${t??e}`,...Vd()}}let pp=!1;function PI(){if(pp)return;pp=!0;const e=cy.prototype,t=e.invoke;e.invoke=function(n,r={}){return t.call(this,n,{...r,headers:{...Vd(),...r.headers??{}}})}}const Gy=6048e5,yP=864e5,Yy=6e4,Jy=36e5,OI=43200,RI=1440,mp=Symbol.for("constructDateFrom");function Yt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&mp in e?e[mp](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ke(e,t){return Yt(t||e,e)}let wP={};function Ka(){return wP}function Ei(e,t){var a,l,u,c;const n=Ka(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,o=Ke(e,t==null?void 0:t.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function ha(e,t){return Ei(e,{...t,weekStartsOn:1})}function Qy(e,t){const n=Ke(e,t==null?void 0:t.in),r=n.getFullYear(),o=Yt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=ha(o),s=Yt(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const a=ha(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function gp(e){const t=Ke(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function _P(e,...t){const n=Yt.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function vp(e,t){const n=Ke(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function bP(e,t,n){const[r,o]=_P(n==null?void 0:n.in,e,t),i=vp(r),s=vp(o),a=+i-gp(i),l=+s-gp(s);return Math.round((a-l)/yP)}function SP(e,t){const n=Qy(e,t),r=Yt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ha(r)}function EP(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function kP(e){return!(!EP(e)&&typeof e!="number"||isNaN(+Ke(e)))}function xP(e,t){const n=Ke(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const CP={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},TP=(e,t,n)=>{let r;const o=CP[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Wl(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const PP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},OP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},RP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},AP={date:Wl({formats:PP,defaultWidth:"full"}),time:Wl({formats:OP,defaultWidth:"full"}),dateTime:Wl({formats:RP,defaultWidth:"full"})},IP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},NP=(e,t,n,r)=>IP[e];function Io(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):s;o=e.formattingValues[a]||e.formattingValues[s]}else{const s=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const jP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},DP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},LP={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},MP={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
191ay","Saturday"]},$P={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},UP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},FP=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},zP={ordinalNumber:FP,era:Io({values:jP,defaultWidth:"wide"}),quarter:Io({values:DP,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Io({values:LP,defaultWidth:"wide"}),day:Io({values:MP,defaultWidth:"wide"}),dayPeriod:Io({values:$P,defaultWidth:"wide",formattingValues:UP,defaultFormattingWidth:"wide"})};function No(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?BP(a,d=>d.test(s)):WP(a,d=>d.test(s));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(s.length);return{value:u,rest:c}}}function WP(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function BP(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function HP(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const a=t.slice(o.length);return{value:s,rest:a}}}const VP=/^(\d+)(th|st|nd|rd)?/i,qP=/\d+/i,KP={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},GP={any:[/^b/i,/^(a|c)/i]},YP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},JP={any:[/1/i,/2/i,/3/i,/4/i]},QP={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},XP={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ZP={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},eO={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tO={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nO={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},rO={ordinalNumber:HP({matchPattern:VP,parsePattern:qP,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:KP,defaultMatchWidth:"wide",parsePatterns:GP,defaultParseWidth:"any"}),quarter:No({matchPatterns:YP,defaultMatchWidth:"wide",parsePatterns:JP,defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:QP,defaultMatchWidth:"wide",parsePatterns:XP,defaultParseWidth:"any"}),day:No({matchPatterns:ZP,defaultMatchWidth:"wide",parsePatterns:eO,defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:tO,defaultMatchWidth:"any",parsePatterns:nO,defaultParseWidth:"any"})},oO={code:"en-US",formatDistance:TP,formatLong:AP,formatRelative:NP,localize:zP,match:rO,options:{weekStartsOn:0,firstWeekContainsDate:1}};function iO(e,t){const n=Ke(e,t==null?void 0:t.in);return bP(n,xP(n))+1}function sO(e,t){const n=Ke(e,t==null?void 0:t.in),r=+ha(n)-+SP(n);return Math.round(r/Gy)+1}function Xy(e,t){var c,d,f,p;const n=Ke(e,t==null?void 0:t.in),r=n.getFullYear(),o=Ka(),i=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(f=o.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,s=Yt((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const a=Ei(s,t),l=Yt((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=Ei(l,t);return+n>=+a?r+1:+n>=+u?r:r-1}function aO(e,t){var a,l,u,c;const n=Ka(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,o=Xy(e,t),i=Yt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Ei(i,t)}function lO(e,t){const n=Ke(e,t==null?void 0:t.in),r=+Ei(n,t)-+aO(n,t);return Math.round(r/Gy)+1}function q(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const nn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return q(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):q(n+1,2)},d(e,t){return q(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return q(e.getHours()%12||12,t.length)},H(e,t){return q(e.getHours(),t.length)},m(e,t){return q(e.getMinutes(),t.length)},s(e,t){return q(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return q(o,t.length)}},pr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yp={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return nn.y(e,t)},Y:function(e,t,n,r){const o=Xy(e,r),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return q(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):q(i,t.length)},R:function(e,t){const n=Qy(e);return q(n,t.length)},u:function(e,t){const n=e.getFullYear();return q(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return q(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return q(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return nn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return q(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=lO(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):q(o,t.length)},I:function(e,t,n){const r=sO(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):q(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):nn.d(e,t)},D:function(e,t,n){const r=iO(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):q(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return q(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return q(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return q(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=pr.noon:r===0?o=pr.midnight:o=r/12>
vendor: 6,312 bytes, line 191
191=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=pr.evening:r>=12?o=pr.afternoon:r>=4?o=pr.morning:o=pr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return nn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):nn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):q(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):q(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):nn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):nn.s(e,t)},S:function(e,t){return nn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return _p(r);case"XXXX":case"XX":return Fn(r);case"XXXXX":case"XXX":default:return Fn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return _p(r);case"xxxx":case"xx":return Fn(r);case"xxxxx":case"xxx":default:return Fn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+wp(r,":");case"OOOO":default:return"GMT"+Fn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+wp(r,":");case"zzzz":default:return"GMT"+Fn(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return q(r,t.length)},T:function(e,t,n){return q(+e,t.length)}};function wp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+q(i,2)}function _p(e,t){return e%60===0?(e>0?"-":"+")+q(Math.abs(e)/60,2):Fn(e,t)}function Fn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=q(Math.trunc(r/60),2),i=q(r%60,2);return n+o+t+i}const bp=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Zy=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},uO=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return bp(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",bp(r,t)).replace("{{time}}",Zy(o,t))},cO={p:Zy,P:uO},dO=/^D+$/,fO=/^Y+$/,hO=["D","DD","YY","YYYY"];function pO(e){return dO.test(e)}function mO(e){return fO.test(e)}function gO(e,t,n){const r=vO(e,t,n);if(console.warn(r),hO.includes(e))throw new RangeError(r)}function vO(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const yO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_O=/^'([^]*?)'?$/,bO=/''/g,SO=/[a-zA-Z]/;function AI(e,t,n){var c,d,f,p,w,y,_,m;const r=Ka(),o=(n==null?void 0:n.locale)??r.locale??oO,i=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((y=(w=n==null?void 0:n.locale)==null?void 0:w.options)==null?void 0:y.weekStartsOn)??r.weekStartsOn??((m=(_=r.locale)==null?void 0:_.options)==null?void 0:m.weekStartsOn)??0,a=Ke(e,n==null?void 0:n.in);if(!kP(a))throw new RangeError("Invalid time value");let l=t.match(wO).map(h=>{const g=h[0];if(g==="p"||g==="P"){const b=cO[g];return b(h,o.formatLong)}return h}).join("").match(yO).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const g=h[0];if(g==="'")return{isToken:!1,value:EO(h)};if(yp[g])return{isToken:!0,value:h};if(g.match(SO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:h}});o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(h=>{if(!h.isToken)return h.value;const g=h.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&mO(g)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&pO(g))&&gO(g,t,String(e));const b=yp[g[0]];return b(a,g,o.localize,u)}).join("")}function EO(e){const t=e.match(_O);return t?t[1].replace(bO,"'"):e}function kO(e,t){const n=()=>Yt(t==null?void 0:t.in,NaN),o=PO(e);let i;if(o.date){const u=OO(o.date,2);i=RO(u.restDateString,u.year)}if(!i||isNaN(+i))return n();const s=+i;let a=0,l;if(o.time&&(a=AO(o.time),isNaN(a)))return n();if(o.timezone){if(l=IO(o.timezone),isNaN(l))return n()}else{const u=new Date(s+a),c=Ke(0,t==null?void 0:t.in);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return Ke(s+a+l,t==null?void 0:t.in)}const ss={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},xO=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,CO=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,TO=/^([+-])(\d{2})(?::?(\d{2}))?$/;function PO(e){const t={},n=e.split(ss.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ss.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ss.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=ss.timezone.exec(r);
191o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function OO(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function RO(e,t){if(t===null)return new Date(NaN);const n=e.match(xO);if(!n)return new Date(NaN);const r=!!n[4],o=jo(n[1]),i=jo(n[2])-1,s=jo(n[3]),a=jo(n[4]),l=jo(n[5])-1;if(r)return MO(t,a,l)?NO(t,a,l):new Date(NaN);{const u=new Date(0);return!DO(t,i,s)||!LO(t,o)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(o,s)),u)}}function jo(e){return e?parseInt(e):1}function AO(e){const t=e.match(CO);if(!t)return NaN;const n=Bl(t[1]),r=Bl(t[2]),o=Bl(t[3]);return $O(n,r,o)?n*Jy+r*Yy+o*1e3:NaN}function Bl(e){return e&&parseFloat(e.replace(",","."))||0}function IO(e){if(e==="Z")return 0;const t=e.match(TO);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return UO(r,o)?n*(r*Jy+o*Yy):NaN}function NO(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const jO=[31,null,31,30,31,30,31,31,30,31,30,31];function ew(e){return e%400===0||e%4===0&&e%100!==0}function DO(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(jO[t]||(ew(e)?29:28))}function LO(e,t){return t>=1&&t<=(ew(e)?366:365)}function MO(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function $O(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function UO(e,t){return t>=0&&t<=59}const FO=[{key:"vdw",label:"Vehicle Damage Waiver (VDW)",monthlyRate:0,enabled:!1},{key:"insurance",label:"Liability Insurance",monthlyRate:0,enabled:!1},{key:"tolls",label:"Toll Management",monthlyRate:0,enabled:!1},{key:"accessories",label:"Accessories Package",monthlyRate:0,enabled:!1}],tw={customerType:"b2b",vehicleCategory:null,quantity:1,termMonths:6,salesTermMonths:null,mileagePerMonth:2e3,deliveryDate:new Date,deliveryDateSelected:!1,deliveryAddress:"",deliveryState:"",market:"National",pickupInstead:!1,addOns:FO,packageCode:null,promoCode:"",discount:0,contactId:null,leadId:null,firstName:"",lastName:"",email:"",phone:"",dateOfBirth:"",address:"",city:"",state:"",zipCode:"",companyName:"",dbaName:"",entityType:"",isAmazonDSP:!1,amazonStationCode:"",dlFrontPath:null,dlBackPath:null,coiPath:null,agreedTerms:!1,agreedMinTerm:!1,agreedMileage:!1,agreedEsign:!1,agreedSms:!1,agreedAvailability:!1,confirmationNumber:"",reservationId:null};function zO(e,t){switch(t.type){case"SET_FIELD":return t.field==="deliveryDate"?{...e,deliveryDate:t.value,deliveryDateSelected:!!t.value}:{...e,[t.field]:t.value};case"SET_FIELDS":return Object.prototype.hasOwnProperty.call(t.fields,"deliveryDate")?{...e,...t.fields,deliveryDateSelected:!!t.fields.deliveryDate}:{...e,...t.fields};case"TOGGLE_ADDON":return{...e,addOns:e.addOns.map(n=>n.key===t.key?{...n,enabled:!n.enabled}:n)};case"RESET":return tw;default:return e}}const nw=v.createContext(null),rw=()=>{const e=v.useContext(nw);if(!e)throw new Error("useReservation must be used within ReservationProvider");return e};function II({children:e}){const[t,n]=v.useReducer(zO,tw),[r]=p1();v.useEffect(()=>{const l=r.get("date"),u=r.get("address");(l||u)&&n({type:"SET_FIELDS",fields:{...l?{deliveryDate:kO(l)}:{},...u?{deliveryAddress:u}:{}}})},[]);const o=v.useCallback((l,u)=>{n({type:"SET_FIELD",field:l,value:u})},[]),i=v.useCallback(l=>{n({type:"SET_FIELDS",fields:l})},[]),s=v.useCallback(l=>{n({type:"TOGGLE_ADDON",key:l})},[]),a=v.useCallback(()=>{n({type:"RESET"})},[]);return x.jsx(nw.Provider,{value:{state:t,setField:o,setFields:i,toggleAddOn:s,reset:a},children:e})}const WO="https://azhbrzoyrhbkfgckbymx.supabase.co/functions/v1/get-price",Sp="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImF6aGJyem95cmhia2ZnY2tieW14Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njk3NDQ5MzAsImV4cCI6MjA4NTMyMDkzMH0.fKHBAqgKAUXRVfokhBheMDMJUHaATnSMOa9sdl6lWjk",BO=8e3,HO=5*60*1e3,Ep="Available / Idle: 0 to 45 days",NI="We can't price this right now",jI="Our pricing service did not respond. Tell us how to reach you and a Zeeba fleet specialist will send your price.";
191function DI(e){return"$"+(e||0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}const VO=["January","February","March","April","May","June","July","August","September","October","November","December"];function qO(e){const t=Ky(e.vehicleCategory),n=e.deliveryDate instanceof Date?e.deliveryDate:e.deliveryDate?new Date(e.deliveryDate+(String(e.deliveryDate).includes("T")?"":"T00:00:00")):null,r=n?n.getMonth()+1:new Date().getMonth()+1;return{vehicle_type:t,pickup_month:VO[r-1]??"January",term:e.termMonths,mileage:e.mileagePerMonth,quantity:e.quantity,market:e.market||"National"}}const kp=new Map,Hl=new Map;function ow(e){const t=qO(e);if(!t.vehicle_type)return Promise.resolve({ok:!1,unavailable:!1,error:`Unknown vehicle category: ${e.vehicleCategory}`});const n=JSON.stringify(t),r=kp.get(n);if(r&&Date.now()-r.at<HO)return Promise.resolve({ok:!0,data:r.data});const o=Hl.get(n);if(o)return o;const i=(async()=>{const s=new AbortController,a=setTimeout(()=>s.abort(),BO);try{const l=await fetch(WO,{method:"POST",headers:{"Content-Type":"application/json",apikey:Sp,Authorization:`Bearer ${Sp}`,...Vd()},body:n,signal:s.signal}),u=await l.json().catch(()=>null),c=Number(u==null?void 0:u.final_price);return!l.ok||!Number.isFinite(c)||c<=0||(u==null?void 0:u.floor_channel)==null?(console.warn("[get-price] unavailable",l.status,(u==null?void 0:u.reason)??(u==null?void 0:u.error)),{ok:!1,unavailable:!0,error:"pricing_unavailable"}):(kp.set(n,{at:Date.now(),data:u}),{ok:!0,data:u})}catch(l){return console.warn("[get-price] failed",l),{ok:!1,unavailable:!0,error:"pricing_unavailable"}}finally{clearTimeout(a),Hl.delete(n)}})();return Hl.set(n,i),i}async function KO(e){if(!e.vehicleCategory)return null;const t=await ow(e);return t.ok?t.data:null}function LI(){const{state:e}=rw(),[t,n]=v.useState(null),[r,o]=v.useState(null),[i,s]=v.useState(!1),[a,l]=v.useState(null),[u,c]=v.useState(0),{vehicleCategory:d,deliveryDate:f,termMonths:p,mileagePerMonth:w,quantity:y,market:_}=e,m=JSON.stringify([d,f?String(f):null,p,w,y,_??null,u]);v.useEffect(()=>{if(!d){n(null),l(null);return}let g=!1;return ow({vehicleCategory:d,deliveryDate:f,termMonths:p,mileagePerMonth:w,quantity:y,market:_}).then(b=>{if(!g){if(b.ok)n(b.data),o(null),s(!1);else{const S=b;n(null),o(S.error),s(S.unavailable)}l(m)}}),()=>{g=!0}},[m]);const h=!!d&&a!==m;return{data:h?null:t,loading:h,error:h?null:r,unavailable:!h&&i,retry:()=>c(g=>g+1)}}const xp="AW-957768235/RKnYCITVwYIdEKvE2cgD",Cp="AW-957768235/ebG3CIfVwYIdEKvE2cgD",Tp="zeeba_conversion_events_fired",pa=(...e)=>{const t=window;t.dataLayer=t.dataLayer||[],typeof t.gtag=="function"?t.gtag(...e):t.dataLayer.push(e)};function iw(){if(typeof window>"u")return!0;try{const e=window.location.pathname.toLowerCase();if(e.endsWith(".xml")||e.endsWith("/robots.txt")||window.location.search.toLowerCase().includes("forcehidebadge=true"))return!0;const n=window.location.hostname.toLowerCase();if(n==="localhost"||n.endsWith(".lovable.app")||n.endsWith(".lovableproject.com"))return!0}catch{}return!1}function sw(e){try{const t=sessionStorage.getItem(Tp),n=t?JSON.parse(t):[];return n.includes(e)?!1:(n.push(e),sessionStorage.setItem(Tp,JSON.stringify(n.slice(-100))),!0)}catch{return!0}}function GO(e){try{if(iw()||!e.leadId||!sw(`lead:${e.leadId}`))return;pa("event","generate_lead",{currency:"USD",value:Number(e.value)||0,transaction_id:e.leadId}),xp&&pa("event","conversion",{send_to:xp,value:Number(e.value)||0,currency:"USD",transaction_id:e.leadId})}catch{}}function YO(e){try{if(iw()||!e.quoteId||!sw(`quote:${e.quoteId}`))return;pa("event","quote_saved",{currency:"USD",value:Number(e.value)||0,transaction_id:e.quoteId}),Cp&&pa("event","conversion",{send_to:Cp,value:Number(e.value)||0,currency:"USD",transaction_id:e.quoteId})}catch{}}const JO="zeeba_cart_session",Pp="zeeba_funnel_session",Op="zeeba_funnel_sent",QO="zeeba_lead_contact_id";function XO(){try{return sessionStorage.getItem(QO)}catch{return null}}function ZO(){if(typeof window>"u")return!0;try{const e=window.location.pathname.toLowerCase();if(e.endsWith(".xml")||e.endsWith("/robots.txt")||window.location.search.toLowerCase().includes("forcehidebadge=true"))return!0}catch{}return!1}function eR(){if(typeof window>"u")return null;try{const e=localStorage.getItem(JO);if(e)return e;let t=localStorage.getItem(Pp);return t||(t=crypto.randomUUID(),localStorage.setItem(Pp,t)),t}catch{return null}}function tR(e,t){try{const n=sessionStorage.getItem(Op),r=n?JSON.parse(n):[],o=`${e??"-"}:${t}`;return r.includes(o)?!0:(r.push(o),sessionStorage.setItem(Op,JSON.stringify(r.slice(-100))),!1)}catch{return!1}}function aw(e,t){if(ZO())return;const n=(t==null?void 0:t.sessionKey)??eR();tR(n,e)||(async()=>{try{const{error:r}=await On.from("funnel_events").insert({step:e,session_key:n,path:typeof window<"u"?window.location.pathname:null,attribution_id:Bd(),contact_id:(t==null?void 0:t.contactId)??XO(),quote_id:(t==null?void 0:t.quoteId)??null});r&&r.code!=="23505"&&console.warn("[funnel] step not recorded (non-blocking):",r.message)}catch(r){console.warn("[funnel] step threw (non-blocking):",r)}})()}const lw="zeeba_lead_capture",qd="zeeba_precapture_quote",Kd="zeeba_lead_contact_id",nR=["January","February","March","April","May","June","July","August","September","October","November","December"];function rR(){const e=Date.now().toString(36).toUpperCase().slice(-6),t=Math.random().toString(36).toUpperCase().slice(2,5);return`QT-${e}-${t}`}function Rp(){if(typeof window>"u")return null;try{const e=window.sessionStorage.getItem(qd);if(!e)return null;const t=JSON.parse(e);return t&&typeof t.quoteNumber=="string"&&typeof t.vehicleCategory=="string"?t:null}catch{return null}}function MI(){if(!(typeof window>"u"))try{window.sessionStorage.removeItem(qd)}catch{}}function oR(e){if(!(typeof window>"u"))try{window.sessionStorage.setItem(qd,JSON.stringify(e))}catch{}}function iR(){if(typeof window>"u")return null;try{const e=window.sessionStorage.getItem(lw);if(!e)return null;const t=JSON.parse(e);return t&&typeof t.email=="string"&&t.email?{company:"",phone:"",smsConsent:!1,...t}:null}catch{return null}}function $I(e){if(!(typeof window>"u"))try{window.sessionStorage.setItem(lw,JSON.stringify(e))}catch{}}function uw(e){if(typeof e!="string")return null;const t=e.toUpperCase();return t==="LEGACY"||t==="MDM"?t:null}async function cw(e){try{const t=[e.lead.firstName,e.lead.lastName].filter(
191Boolean).join(" ").trim(),n=e.vehicleLabel?[{name:e.vehicleLabel,quantity:e.quantity}]:[],r=Hd(),{data:o}=await On.functions.invoke("send-lead-notification",{body:{cartSessionId:e.cartSessionId??null,attributionId:r.attribution_id,attribution:r.attribution,pickupDate:e.deliveryDateStr,returnDate:e.deliveryDateStr,termMonths:e.termMonths??null,deliveryState:e.deliveryState??null,deliveryAddress:e.deliveryAddress||"Not available",selectedVehicles:n,totalAmount:e.totalAmount,leadName:t||null,leadFirstName:e.lead.firstName||null,leadLastName:e.lead.lastName||null,leadEmail:e.lead.email,leadCompany:e.lead.company||null,leadPhone:e.lead.phone||null,smsConsent:!!e.lead.smsConsent,tenantId:e.tenantId??null,pricingEngine:uw(e.pricingEngine),...fa()}});if(o!=null&&o.attributionId&&Hy(o.attributionId),o!=null&&o.contactId){try{sessionStorage.setItem(Kd,o.contactId)}catch{}GO({leadId:o.contactId,value:e.totalAmount}),aw("lead_submitted",{contactId:o.contactId})}}catch(t){console.warn("[leadCapture] send-lead-notification failed (non-blocking):",t)}}function sR(){try{return sessionStorage.getItem(Kd)}catch{return null}}async function UI(e){e.skipNotification||cw(e)}let Os=null;async function aR(e=15e3){const t=Os;t&&await Promise.race([t,new Promise(n=>setTimeout(n,e))])}function FI(e){const t=(async()=>{try{const n=Ky(e.vehicleCategory);if(!n){console.warn("[syncPreCaptureQuote] unknown vehicleCategory:",e.vehicleCategory);return}const r=await KO({vehicleCategory:e.vehicleCategory,deliveryDate:e.deliveryDate,termMonths:e.termMonths,mileagePerMonth:e.mileagePerMonth,quantity:e.quantity,market:e.market??"National"});if(e.fireNotification){const f=uw(r==null?void 0:r.pricing_engine),p=e.deliveryDate instanceof Date?e.deliveryDate.toISOString().slice(0,10):(e.deliveryDate??"")||"";await cw({lead:e.lead,tenantId:e.tenantId,cartSessionId:e.cartSessionId??null,vehicleLabel:e.vehicleLabel??null,quantity:e.quantity,deliveryDateStr:p,termMonths:e.termMonths,deliveryState:e.deliveryState??null,deliveryAddress:e.deliveryAddress||"",totalAmount:Number((r==null?void 0:r.final_price)??0)||0,pricingEngine:f})}const o=rR(),i=e.deliveryDate instanceof Date?e.deliveryDate:e.deliveryDate?new Date(String(e.deliveryDate)+(String(e.deliveryDate).includes("T")?"":"T00:00:00")):null,s=i?i.getMonth()+1:new Date().getMonth()+1,a=nR[s-1]??null,{data:l,error:u}=await On.functions.invoke("save-quote",{body:{tenant_id:e.tenantId,source:"CUSTOMER_CART",vehicle_type:n,vehicle_category:e.vehicleCategory,pickup_month:s,pickup_date:i?i.toISOString().slice(0,10):null,term:e.termMonths,mileage:e.mileagePerMonth,quantity:e.quantity,market:e.market??"National",availability:Ep,price_breakdown:r,cart_session_id:e.cartSessionId??null,delivery_state:e.deliveryState??null,quote_number:o,pickup_instead:e.pickupInstead===!0,delivery_address:e.pickupInstead?null:e.deliveryAddress??null,contact_id:sR(),...Hd(),...fa()}});if(u||!(l!=null&&l.quote_number)){console.warn("[syncPreCaptureQuote] save-quote failed (non-blocking):",u||l);try{sessionStorage.removeItem(Kd)}catch{}return}YO({quoteId:l.id??l.quote_number,value:Number((r==null?void 0:r.final_price)??0)||0}),aw("quote_saved",{quoteId:l.id??null}),oR({quoteNumber:l.quote_number,externalQuoteId:l.id??null,vehicleCategory:e.vehicleCategory});const c=[e.lead.firstName,e.lead.lastName].filter(Boolean).join(" ").trim()||null,d={external_quote_id:l.id,quote_number:l.quote_number,vehicle_type:n,market:e.market??"National",term_months:e.termMonths,mileage_monthly:e.mileagePerMonth,quantity:e.quantity,availability:Ep,final_price:(r==null?void 0:r.final_price)??null,price_breakdown:r,pickup_month:a,status:l.status,expires_at:l.expires_at??null,customer_name:c,customer_email:e.lead.email||null,modified_by:"Customer",pricing_config_version:eP(),...fa()};e.promoCode&&(d.promo_code=e.promoCode),e.discount&&(d.promo_discount=e.discount);try{const{error:f}=await On.functions.invoke("ops-quote-proxy",{body:d});f&&console.warn("[syncPreCaptureQuote] ops-quote-proxy failed (non-blocking):",f)}catch(f){console.warn("[syncPreCaptureQuote] ops ingest failed (non-blocking):",f)}}catch(n){console.warn("[syncPreCaptureQuote] failed (non-blocking):",n)}})();
vendor: 6,444 bytes, line 191
191Os=t,t.finally(()=>{Os===t&&(Os=null)})}const lR=gv("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"}}),Rs=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?fS:"button";return x.jsx(s,{className:$e(lR({variant:t,size:n,className:e})),ref:i,...o})});Rs.displayName="Button";const Nr=v.forwardRef(({className:e,type:t,...n},r)=>x.jsx("input",{type:t,className:$e("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Nr.displayName="Input";var Vl=0;function uR(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ap()),document.body.insertAdjacentElement("beforeend",e[1]??Ap()),Vl++,()=>{Vl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vl--}},[])}function Ap(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ql="focusScope.autoFocusOnMount",Kl="focusScope.autoFocusOnUnmount",Ip={bubbles:!1,cancelable:!0},cR="FocusScope",dw=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=v.useState(null),u=Zr(o),c=Zr(i),d=v.useRef(null),f=Je(t,y=>l(y)),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let y=function(g){if(p.paused||!a)return;const b=g.target;a.contains(b)?d.current=b:on(d.current,{select:!0})},_=function(g){if(p.paused||!a)return;const b=g.relatedTarget;b!==null&&(a.contains(b)||on(d.current,{select:!0}))},m=function(g){if(document.activeElement===document.body)for(const S of g)S.removedNodes.length>0&&on(a)};document.addEventListener("focusin",y),document.addEventListener("focusout",_);const h=new MutationObserver(m);return a&&h.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",_),h.disconnect()}}},[r,a,p.paused]),v.useEffect(()=>{if(a){jp.add(p);const y=document.activeElement;if(!a.contains(y)){const m=new CustomEvent(ql,Ip);a.addEventListener(ql,u),a.dispatchEvent(m),m.defaultPrevented||(dR(gR(fw(a)),{select:!0}),document.activeElement===y&&on(a))}return()=>{a.removeEventListener(ql,u),setTimeout(()=>{const m=new CustomEvent(Kl,Ip);a.addEventListener(Kl,c),a.dispatchEvent(m),m.defaultPrevented||on(y??document.body,{select:!0}),a.removeEventListener(Kl,c),jp.remove(p)},0)}}},[a,u,c,p]);const w=v.useCallback(y=>{if(!n&&!r||p.paused)return;const _=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,m=document.activeElement;if(_&&m){const h=y.currentTarget,[g,b]=fR(h);g&&b?!y.shiftKey&&m===b?(y.preventDefault(),n&&on(g,{select:!0})):y.shiftKey&&m===g&&(y.preventDefault(),n&&on(b,{select:!0})):m===h&&y.preventDefault()}},[n,r,p.paused]);return x.jsx(ge.div,{tabIndex:-1,...s,ref:f,onKeyDown:w})});dw.displayName=cR;function dR(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(on(r,{select:t}),document.activeElement!==n)return}function fR(e){const t=fw(e),n=Np(t,e),r=Np(t.reverse(),e);return[n,r]}function fw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Np(e,t){for(const n of e)if(!hR(n,{upTo:t}))return n}function hR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pR(e){return e instanceof HTMLInputElement&&"select"in e}function on(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&pR(e)&&t&&e.select()}}var jp=mR();function mR(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Dp(e,t),e.unshift(t)},remove(t){var n;e=Dp(e,t),(n=e[0])==null||n.resume()}}}function Dp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function gR(e){return e.filter(t=>t.tagName!=="A")}var vR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mr=new WeakMap,as=new WeakMap,ls={},Gl=0,hw=function(e){return e&&(e.host||hw(e.parentNode))},yR=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hw(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},wR=function(e,t,n,r){var o=yR(t,Array.isArray(e)?e:[e]);ls[n]||(ls[n]=new WeakMap);var i=ls[n],s=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))c(f);else try{var p=f.getAttribute(r),w=p!==null&&p!=="false",y=(mr.get(f)||0)+1,_=(i.get(f)||0)+1;mr.set(f,y),i.set(f,_),s.push(f),y===1&&w&&as.set(f,!0),_===1&&f.setAttribute(n,"true"),w||f.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};
vendor: 4,688 bytes, line 191
191return c(t),a.clear(),Gl++,function(){s.forEach(function(d){var f=mr.get(d)-1,p=i.get(d)-1;mr.set(d,f),i.set(d,p),f||(as.has(d)||d.removeAttribute(r),as.delete(d)),p||d.removeAttribute(n)}),Gl--,Gl||(mr=new WeakMap,mr=new WeakMap,as=new WeakMap,ls={})}},_R=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=vR(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),wR(r,o,n,"aria-hidden")):function(){return null}},xt=function(){return xt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},xt.apply(this,arguments)};function pw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function bR(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var As="right-scroll-bar-position",Is="width-before-scroll-bar",SR="with-scroll-bars-hidden",ER="--removed-body-scroll-bar-size";function Yl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kR(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var xR=typeof window<"u"?v.useLayoutEffect:v.useEffect,Lp=new WeakMap;function CR(e,t){var n=kR(null,function(r){return e.forEach(function(o){return Yl(o,r)})});return xR(function(){var r=Lp.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Yl(a,null)}),i.forEach(function(a){o.has(a)||Yl(a,s)})}Lp.set(n,e)},[e]),n}function TR(e){return e}function PR(e,t){t===void 0&&(t=TR);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var c=s;s=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return o}function OR(e){e===void 0&&(e={});var t=PR(null);return t.options=xt({async:!0,ssr:!1},e),t}var mw=function(e){var t=e.sideCar,n=pw(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,xt({},n))};mw.isSideCarExport=!0;function RR(e,t){return e.useMedium(t),mw}var gw=OR(),Jl=function(){},Ga=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Jl,onWheelCapture:Jl,onTouchMoveCapture:Jl}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,w=e.noIsolation,y=e.inert,_=e.allowPinchZoom,m=e.as,h=m===void 0?"div":m,g=e.gapMode,b=pw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,k=CR([n,t]),E=xt(xt({},b),o);return v.createElement(v.Fragment,null,c&&v.createElement(S,{sideCar:gw,removeScrollBar:u,shards:d,noRelative:p,noIsolation:w,inert:y,setCallbacks:i,allowPinchZoom:!!_,lockRef:n,gapMode:g}),s?v.cloneElement(v.Children.only(a),xt(xt({},E),{ref:k})):v.createElement(h,xt({},E,{className:l,ref:k}),a))});Ga.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ga.classNames={fullWidth:Is,zeroRight:As};var AR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=AR();return t&&e.setAttribute("nonce",t),e}function NR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var DR=function(){var e=0,t=null;return{add:function(n){e==0&&(t=IR())&&(NR(t,n),jR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}}
vendor: 8,648 bytes, lines 191-231
191,LR=function(){var e=DR();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vw=function(){var e=LR(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},MR={left:0,top:0,right:0,gap:0},Ql=function(e){return parseInt(e||"",10)||0},$R=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ql(n),Ql(r),Ql(o)]},UR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MR;var t=$R(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},FR=vw(),Vr="data-scroll-locked",zR=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
192  .`.concat(SR,` {
193   overflow: hidden `).concat(r,`;
194   padding-right: `).concat(a,"px ").concat(r,`;
195  }
196  body[`).concat(Vr,`] {
197    overflow: hidden `).concat(r,`;
198    overscroll-behavior: contain;
199    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
200    padding-left: `.concat(o,`px;
201    padding-top: `).concat(i,`px;
202    padding-right: `).concat(s,`px;
203    margin-left:0;
204    margin-top:0;
205    margin-right: `).concat(a,"px ").concat(r,`;
206    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
207  }
208  
209  .`).concat(As,` {
210    right: `).concat(a,"px ").concat(r,`;
211  }
212  
213  .`).concat(Is,` {
214    margin-right: `).concat(a,"px ").concat(r,`;
215  }
216  
217  .`).concat(As," .").concat(As,` {
218    right: 0 `).concat(r,`;
219  }
220  
221  .`).concat(Is," .").concat(Is,` {
222    margin-right: 0 `).concat(r,`;
223  }
224  
225  body[`).concat(Vr,`] {
226    `).concat(ER,": ").concat(a,`px;
227  }
228`)},Mp=function(){var e=parseInt(document.body.getAttribute(Vr)||"0",10);return isFinite(e)?e:0},WR=function(){v.useEffect(function(){return document.body.setAttribute(Vr,(Mp()+1).toString()),function(){var e=Mp()-1;e<=0?document.body.removeAttribute(Vr):document.body.setAttribute(Vr,e.toString())}},[])},BR=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;WR();var i=v.useMemo(function(){return UR(o)},[o]);return v.createElement(FR,{styles:zR(i,!t,o,n?"":"!important")})},bc=!1;if(typeof window<"u")try{var us=Object.defineProperty({},"passive",{get:function(){return bc=!0,!0}});window.addEventListener("test",us,us),window.removeEventListener("test",us,us)}catch{bc=!1}var gr=bc?{passive:!1}:!1,HR=function(e){return e.tagName==="TEXTAREA"},yw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!HR(e)&&n[t]==="visible")},VR=function(e){return yw(e,"overflowY")},qR=function(e){return yw(e,"overflowX")},$p=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ww(e,r);if(o){var i=_w(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},KR=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},GR=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ww=function(e,t){return e==="v"?VR(t):qR(t)},_w=function(e,t){return e==="v"?KR(t):GR(t)},YR=function(e,t){return e==="h"&&t==="rtl"?-1:1},JR=function(e,t,n,r,o){var i=YR(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,c=s>0,d=0,f=0;do{if(!a)break;var p=_w(e,a),w=p[0],y=p[1],_=p[2],m=y-_-i*w;(w||m)&&ww(e,a)&&(d+=m,f+=w);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&Math.abs(d)<1||!c&&Math.abs(f)<1)&&(u=!0),u},cs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Up=function(e){return[e.deltaX,e.deltaY]},Fp=function(e){return e&&"current"in e?e.current:e},QR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},XR=function(e){return`
229  .block-interactivity-`.concat(e,` {pointer-events: none;}
230  .allow-interactivity-`).concat(e,` {pointer-events: all;}
231`)},ZR=0,vr=[];function eA(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(ZR++)[0],i=v.useState(vw)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=bR([e.lockRef.current],(e.shards||[]).map(Fp),!0).filter(Boolean);return y.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(y,_){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!s.current.allowPinchZoom;var m=cs(y),h=n.current,g="deltaX"in y?y.deltaX:h[0]-m[0],b="deltaY"in y?y.deltaY:h[1]-m[1],S,k=y.target,E=Math.abs(g)>Math.abs(b)?"h":"v";if("touches"in y&&E==="h"&&k.type==="range")return!1;var T=$p(E,k);if(!T)return!0;if(T?S=E:(S=E==="v"?"h":"v",T=$p(E,k)),!T)return!1;if(!r.current&&"changedTouches"in y&&(g||b)&&(r.current=S),!S)return!0;var O=r.current||S;return JR(O,_,y,O==="h"?g:b)},[]),l=v.useCallback(function(y){var _=y;if(!(!vr.length||vr[vr.length-1]!==i)){var m="deltaY"in _?Up(_):cs(_),h=t.current.filter(function(S){return S.name===_.type&&(S.target===_.target||_.target===S.shadowParent)&&QR(S.delta,m)})[0];if(h&&h.should){_.cancelable&&_.preventDefault();return}if(!h){var g=(s.current.shards||[]).map(Fp).filter(Boolean).filter(function(S){return S.contains(_.target)}),b=g.length>0?a(_,g[0]):!s.current.noIsolation;b&&_.cancelable&&_.preventDefault()}}},[]),u=v.useCallback(function(y,_,m,h){var g={name:y,delta:_,target:m,should:h,shadowParent:tA(m)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(b){return b!==g})},1)},[]),c=v.useCallback(function(y){n.current=cs(y),r.current=void 0},[]),d=v.useCallback(function(y){u(y.type,Up(y),y.target,a(y,e.lockRef.current))},[]),f=v.useCallback(function(y){u(y.type,cs(y),y.target,a(y,e.lockRef.current))},[]);v.useEffect(function(){return vr.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,gr),document.addEventListener("touchmove",l,gr),document.addEventListener("touchstart",c,gr),function(){vr=vr.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,gr),document.removeEventListener("touchmove",l,gr),document.removeEventListener("touchstart",c,gr)}},[]);var p=e.removeScrollBar,w=e.inert;return v.createElement(v.Fragment,null,w?v.createElement(i,{styles:XR(o)}):null,p?v.createElement(BR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function tA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nA=RR(gw,eA);var bw=v.forwardRef(function(e,t){return v.createElement(Ga,xt({},e,{ref:t,sideCar:nA}))});bw.classNames=Ga.classNames;function rA(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const zI="/assets/zeeba-logo-9n4pIV-Z.jpg";var Ya="Dialog",[Sw,WI]=Na(Ya),[oA,_t]=Sw(Ya),Ew=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=v.useRef(null),l=v.useRef(null),[u,c]=_d({prop:r,defaultProp:o??!1,onChange:i,caller:Ya});return x.jsx(oA,{scope:t,triggerRef:a,contentRef:l,contentId:Cs(),titleId:Cs(),descriptionId:Cs(),open:u,onOpenChange:c,onOpenToggle:v.useCallback(()=>c(d=>!d),[c]),modal:s,children:n})};Ew.displayName=Ya;var kw="DialogTrigger",xw=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(kw,n),i=Je(t,o.triggerRef);return x.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Jd(o.open),...r,ref:i,onClick:Ee(e.onClick,o.onOpenToggle)})});xw.displayName=kw;var Gd="DialogPortal",[iA,Cw]=Sw(Gd,{forceMount:void 0}),Tw=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=_t(Gd,t);return x.jsx(iA,{scope:t,forceMount:n,children:v.Children.map(r,s=>x.jsx(so,{present:n||i.open,children:x.jsx(fv,{asChild:!0,container:o,children:s})}))})};Tw.displayName=Gd;var ma="DialogOverlay",Pw=v.forwardRef((e,t)=>{const n=Cw(ma,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_t(ma,e.__scopeDialog);return i.modal?x.jsx(so,{present:r||i.open,children:x.jsx(aA,{...o,ref:t})}):null});Pw.displayName=ma;var sA=wd("DialogOverlay.RemoveScroll"),aA=v.forwardRef((e,t)=>
vendor: 5,612 bytes, lines 231-235
231{const{__scopeDialog:n,...r}=e,o=_t(ma,n);return x.jsx(bw,{as:sA,allowPinchZoom:!0,shards:[o.contentRef],children:x.jsx(ge.div,{"data-state":Jd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),nr="DialogContent",Ow=v.forwardRef((e,t)=>{const n=Cw(nr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_t(nr,e.__scopeDialog);return x.jsx(so,{present:r||i.open,children:i.modal?x.jsx(lA,{...o,ref:t}):x.jsx(uA,{...o,ref:t})})});Ow.displayName=nr;var lA=v.forwardRef((e,t)=>{const n=_t(nr,e.__scopeDialog),r=v.useRef(null),o=Je(t,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return _R(i)},[]),x.jsx(Rw,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,i=>i.preventDefault())})}),uA=v.forwardRef((e,t)=>{const n=_t(nr,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return x.jsx(Rw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Rw=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=_t(nr,n),l=v.useRef(null),u=Je(t,l);return uR(),x.jsxs(x.Fragment,{children:[x.jsx(dw,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:x.jsx(ja,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Jd(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(cA,{titleId:a.titleId}),x.jsx(fA,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Yd="DialogTitle",Aw=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(Yd,n);return x.jsx(ge.h2,{id:o.titleId,...r,ref:t})});Aw.displayName=Yd;var Iw="DialogDescription",Nw=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(Iw,n);return x.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});Nw.displayName=Iw;var jw="DialogClose",Dw=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(jw,n);return x.jsx(ge.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});Dw.displayName=jw;function Jd(e){return e?"open":"closed"}var Lw="DialogTitleWarning",[BI,Mw]=cS(Lw,{contentName:nr,titleName:Yd,docsSlug:"dialog"}),cA=({titleId:e})=>{const t=Mw(Lw),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
232
233If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
234
235For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},dA="DialogDescriptionWarning",fA=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mw(dA).contentName}}.`;return v.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},hA=Ew,HI=xw,pA=Tw,$w=Pw,Uw=Ow,Fw=Aw,zw=Nw,mA=Dw;const Sc={phone:{display:"(800) 940-9332",tel:"8009409332",formatted:"+18009409332"},email:{general:"[email protected]",privacy:"[email protected]"},business:{name:"Zeeba Automotive Group",legalName:"Zeeba Automotive Group, Inc."},hours:{weekdayShort:"8:00 AM - 6:00 PM EST, Monday - Friday"},social:{facebook:"https://www.facebook.com/ZeebaAuto/",twitter:"https://twitter.com/drivezeeba",instagram:"https://www.instagram.com/zeebaautogroup/",linkedin:"https://www.linkedin.com/company/drivezeeba/"},website:{url:"https://www.drivezeeba.com",logo:"https://www.drivezeeba.com/zeeba-logo.jpg"}},gA=15,vA=6,Ja=Object.freeze({minQuantity:gA,minTermMonths:vA,bookedUntil:null});function yA(e=Ja){return`Orders of ${e.minQuantity} or more vehicles, or terms under ${e.minTermMonths} months, are priced by our Sales team.`}const VI="Estimate, confirmed by your Zeeba rep.";function qI(e,t,n=Ja){const r=Number(e)||0,o=Number(t)||0;return r>=n.minQuantity||o>0&&o<n.minTermMonths}const KI=hA,wA=pA,Ww=v.forwardRef(({className:e,...t},n)=>x.jsx($w,{ref:n,className:$e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ww.displayName=$w.displayName;const _A=v.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(wA,{children:[x.jsx(Ww,{}),x.jsxs(Uw,{ref:r,className:$e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
235nded-lg",e),...n,children:[t,x.jsxs(mA,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[x.jsx(WS,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));_A.displayName=Uw.displayName;const bA=({className:e,...t})=>x.jsx("div",{className:$e("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});bA.displayName="DialogHeader";const SA=({className:e,...t})=>x.jsx("div",{className:$e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});SA.displayName="DialogFooter";const EA=v.forwardRef(({className:e,...t},n)=>x.jsx(Fw,{ref:n,className:$e("text-lg font-semibold leading-none tracking-tight",e),...t}));EA.displayName=Fw.displayName;const kA=v.forwardRef(({className:e,...t},n)=>x.jsx(zw,{ref:n,className:$e("text-sm text-muted-foreground",e),...t}));kA.displayName=zw.displayName;var xA="Label",Bw=v.forwardRef((e,t)=>x.jsx(ge.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Bw.displayName=xA;var Hw=Bw;const CA=gv("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Vw=v.forwardRef(({className:e,...t},n)=>x.jsx(Hw,{ref:n,className:$e(CA(),e),...t}));Vw.displayName=Hw.displayName;var Qa="Checkbox",[TA]=Na(Qa),[PA,Qd]=TA(Qa);function OA(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:s,name:a,onCheckedChange:l,required:u,value:c="on",internal_do_not_use_render:d}=e,[f,p]=_d({prop:n,defaultProp:o??!1,onChange:l,caller:Qa}),[w,y]=v.useState(null),[_,m]=v.useState(null),h=v.useRef(!1),g=w?!!s||!!w.closest("form"):!0,b={checked:f,disabled:i,setChecked:p,control:w,setControl:y,name:a,form:s,value:c,hasConsumerStoppedPropagationRef:h,required:u,defaultChecked:En(o)?!1:o,isFormControl:g,bubbleInput:_,setBubbleInput:m};return x.jsx(PA,{scope:t,...b,children:RA(d)?d(b):r})}var qw="CheckboxTrigger",Kw=v.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:s,disabled:a,checked:l,required:u,setControl:c,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:w}=Qd(qw,e),y=Je(o,c),_=v.useRef(l);return v.useEffect(()=>{const m=i==null?void 0:i.form;if(m){const h=()=>d(_.current);return m.addEventListener("reset",h),()=>m.removeEventListener("reset",h)}},[i,d]),x.jsx(ge.button,{type:"button",role:"checkbox","aria-checked":En(l)?"mixed":l,"aria-required":u,"data-state":Xw(l),"data-disabled":a?"":void 0,disabled:a,value:s,...r,ref:y,onKeyDown:Ee(t,m=>{m.key==="Enter"&&m.preventDefault()}),onClick:Ee(n,m=>{d(h=>En(h)?!0:!h),w&&p&&(f.current=m.isPropagationStopped(),f.current||m.stopPropagation())})})});Kw.displayName=qw;var Xd=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:s,disabled:a,value:l,onCheckedChange:u,form:c,...d}=e;return x.jsx(OA,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:a,required:s,onCheckedChange:u,name:r,form:c,value:l,internal_do_not_use_render:({isFormControl:f})=>x.jsxs(x.Fragment,{children:[x.jsx(Kw,{...d,ref:t,__scopeCheckbox:n}),f&&x.jsx(Qw,{__scopeCheckbox:n})]})})});Xd.displayName=Qa;var Gw="CheckboxIndicator",Yw=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Qd(Gw,n);return x.jsx(so,{present:r||En(i.checked)||i.checked===!0,children:x.jsx(ge.span,{"data-state":Xw(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Yw.displayName=Gw;var Jw="CheckboxBubbleInput",Qw=v.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:s,required:a,disabled:l,name:u,value:c,form:d,bubbleInput:f,setBubbleInput:p}=Qd(Jw,e),w=Je(n,p),y=rA(i),_=Dv(r);v.useEffect(()=>{const h=f;if(!h)return;const g=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(g,"checked").set,k=!o.current;if(y!==i&&S){const E=new Event("click",{bubbles:k});h.indeterminate=En(i),S.call(h,En(i)?!1:i),h.dispatchEvent(E)}},[f,y,i,o]);const m=v.useRef(En(i)?!1:i);return x.jsx(ge.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??m.current,required:a,disabled:l,name:u,value:c,form:d,...t,tabIndex:-1,ref:w,style:{...t.style,..._,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Qw.displayName=Jw;function RA(e){return typeof e=="function"}function En(e){return e==="indeterminate"}function Xw(e){return En(e)?"indeterminate":e?"checked":"unchecked"}const Zw=v.forwardRef(({className:e,...t},n)=>x.jsx(Xd,{ref:n,className:$e("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:x.jsx(Yw,{
235className:$e("flex items-center justify-center text-current"),children:x.jsx(FS,{className:"h-4 w-4"})})}));Zw.displayName=Xd.displayName;function AA({disabled:e=!1,className:t}){const n=v.useId(),[r,o]=v.useState(()=>qy()),i=a=>{o(a),uP(a)},s=(a,l)=>{const u=r.says===a;return x.jsx("button",{type:"button",role:"radio","aria-checked":u,disabled:e,onClick:()=>i({says:u?null:a,hint:a?r.hint:""}),className:$e("min-h-11 flex-1 rounded-md border px-4 text-sm font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",u?"border-primary bg-primary/10 text-foreground":"border-input bg-background text-foreground hover:bg-muted"),children:l})};return x.jsxs("div",{className:$e("space-y-2",t),"data-testid":"current-client-question",children:[x.jsxs("div",{role:"radiogroup","aria-labelledby":`${n}-q`,"aria-describedby":`${n}-hint`,className:"space-y-1.5",children:[x.jsxs("p",{id:`${n}-q`,className:"text-sm font-medium text-foreground",children:["Are you a current Zeeba customer? ",x.jsx("span",{className:"font-normal text-muted-foreground",children:"(optional)"})]}),x.jsx("p",{id:`${n}-hint`,className:"text-xs text-muted-foreground",children:"This helps us connect you with your account team."}),x.jsxs("div",{className:"flex gap-2",children:[s(!0,"Yes"),s(!1,"No")]})]}),r.says===!0&&x.jsxs("div",{className:"space-y-1.5",children:[x.jsxs(Vw,{htmlFor:`${n}-hint-input`,className:"text-sm text-foreground",children:["Company or account name ",x.jsx("span",{className:"font-normal text-muted-foreground",children:"(optional)"})]}),x.jsx(Nr,{id:`${n}-hint-input`,value:r.hint,onChange:a=>i({says:!0,hint:a.target.value.slice(0,Si)}),maxLength:Si,placeholder:"For example, Acme Delivery",autoComplete:"organization",disabled:e,className:"min-h-11"})]})]})}const IA=5*60*1e3;let ds=null,Xl=null;function zp(e,t,n){return typeof e=="number"&&Number.isInteger(e)&&e>=t&&e<=n}async function NA(){try{const{data:e,error:t}=await On.functions.invoke("talk-to-sales-rules",{method:"GET"});if(t||!e)throw t??new Error("no data");if(!zp(e.min_quantity,2,1e3)||!zp(e.min_term_months,1,72))throw new Error("bad values");const n=e.short_term_booked_until,r=typeof n=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(n)?n:null;return{rules:{minQuantity:e.min_quantity,minTermMonths:e.min_term_months,bookedUntil:r},source:e.source==="core"?"core":"fallback"}}catch{return{rules:{...Ja},source:"fallback"}}}function jA(){const e=ds&&Date.now()-ds.at<IA?ds:null,[t,n]=v.useState(e?{rules:e.rules,source:e.source}:{rules:Ja,source:"loading"});return v.useEffect(()=>{if(e)return;let r=!0;return Xl??(Xl=NA().then(o=>(ds={...o,at:Date.now()},Xl=null,o))),Xl.then(o=>{r&&n(o)}),()=>{r=!1}},[]),t}function DA(e,t){const n=e?`Thanks ${e}.`:"Thanks.",r=t?` Your reference is ${t}.`:"";return`${n} A Zeeba fleet specialist will call you within 1 to 2 business days.${r}`}const LA="stn-2026-09-v1",Wp=`We could not send your request. Please call ${Sc.phone.display} and mention your reference.`;function GI({compact:e=!1,cartSessionId:t=null,termMonths:n,heading:r="Talk to Sales for fleet pricing",intro:o,shortTerm:i=!1,autoSend:s=!0,isTest:a=!1}){var $;const{state:l}=rw(),{rules:u}=jA(),c=iR(),d=((c==null?void 0:c.firstName)||l.firstName||"").trim(),f=((c==null?void 0:c.email)||l.email||"").trim(),p=((c==null?void 0:c.phone)||l.phone||"").trim(),w=!!d&&!!f&&!!p,y=(($=Rp())==null?void 0:$.quoteNumber)??null,_=l.vehicleCategory?fP[l.vehicleCategory]??l.vehicleCategory:null,[m,h]=v.useState(!1),[g,b]=v.useState(null),[S,k]=v.useState(w&&s),[E,T]=v.useState(!1),[O,R]=v.useState({name:"",company:"",email:"",phone:""}),U=v.useRef(!1),[j,z]=v.useState(null),[B,ae]=v.useState(!1),H=async(V,xe=null)=>{var go;await aR();const Ce=((go=Rp())==null?void 0:go.quoteNumber)??null,{data:Ue,error:Xe}=await On.functions.invoke("talk-to-sales",{body:{quote_number:Ce,...a?{is_test:!0}:{},cart_session_id:t,contact:V,...fa(),...Hd(),request:{vehicle:_,quantity:l.quantity||null,term_months:(n??l.termMonths)||null,start:l.deliveryDate?new Date(l.deliveryDate).toISOString().slice(0,10):null},...i&&xe?{short_term_opt_in:{opted_in:!0,consent_text_version:LA,consented_at:xe}}:{}}});if(Xe||!(Ue!=null&&Ue.ok))throw Xe??new Error("handoff not accepted");const at=Ue.after_hours_line;b(typeof at=="string"&&at?at:null),ae(!!xe&&Ue.short_term_opt_in_recorded===!0)},G=()=>({first_name:d,last_name:((c==null?void 0:c.lastName)||l.lastName||"").trim()||null,company:((c==null?void 0:c.company)||l.companyName||"").trim()||null,email:f,phone:p}),C=async()=>{k(!0),T(!1);try{await H(G()),h(!0)}catch(V){console.error("[TalkToSales] handoff failed",V),T(!0)}finally{k(!1)}};v.useEffect(()=>{!s||!w||U.current||(U.current=!0,C())},[w]);const A=async V=>{V.preventDefault();const[xe,...Ce]=O.name.trim().split(/\s+/);if(!(!xe||!O.email.trim()||!O.phone.trim())){k(!0),T(!1);try{await H({first_name:xe,last_name:Ce.join(" ")||null,company:O.company.trim()||null,email:O.email.trim(),phone:O.phone.trim()},j),h(!0)}catch(Ue){console.error("[TalkToSales] submit failed",Ue),T(!0)}finally{k(!1)}}},N=V=>xe=>R(Ce=>({...Ce,[V]:xe.target.value}));return x.jsxs("div",{className:`space-y-3 ${e?"":"py-2"}`,"data-testid":"talk-to-sales",children:[x.jsx("h4",{className:"text-base font-bold text-foreground",children:r}),m?x.jsxs(x.Fragment,{children:[x.jsx("p",{className:"text-sm text-foreground",children:DA(d||O.name.trim().split(/\s+/)[0]||"",y)}),g&&x.jsx("p",{className:"text-sm text-foreground","data-testid":"after-hours",children:g}),B&&x.jsx("p",{className:"text-sm text-foreground",children:"We'll let you know 
235when short terms open online."})]}):w&&S?x.jsxs("p",{className:"flex items-center text-sm text-muted-foreground",role:"status",children:[x.jsx(kh,{className:"h-4 w-4 animate-spin mr-2"})," Sending your request..."]}):w&&!s&&!E?x.jsxs(x.Fragment,{children:[x.jsx("p",{className:"text-sm text-muted-foreground",children:o}),x.jsx(Rs,{type:"button",className:"w-full min-h-11",onClick:()=>void C(),children:"Send my request to Sales"})]}):w&&E?x.jsxs("div",{className:"space-y-2",children:[x.jsx("p",{className:"text-sm text-destructive",children:Wp}),x.jsx(Rs,{type:"button",variant:"outline",onClick:()=>void C(),children:"Try again"})]}):x.jsxs(x.Fragment,{children:[x.jsx("p",{className:"text-sm text-muted-foreground",children:o??`${yA(u)} Tell us how to reach you.`}),x.jsxs("form",{onSubmit:A,className:"space-y-2",children:[x.jsx(Nr,{required:!0,placeholder:"Full name",value:O.name,onChange:N("name"),maxLength:120,autoComplete:"name"}),x.jsx(Nr,{placeholder:"Company",value:O.company,onChange:N("company"),maxLength:200,autoComplete:"organization"}),x.jsx(Nr,{required:!0,type:"email",placeholder:"Email",value:O.email,onChange:N("email"),maxLength:200,autoComplete:"email"}),x.jsx(Nr,{required:!0,type:"tel",placeholder:"Phone",value:O.phone,onChange:N("phone"),maxLength:40,autoComplete:"tel"}),x.jsx(AA,{disabled:S}),i&&x.jsxs("div",{className:"flex min-h-11 items-start gap-3 py-1",children:[x.jsx(Zw,{id:"short-term-opt-in",checked:!!j,onCheckedChange:V=>z(V===!0?new Date().toISOString():null),"aria-describedby":"short-term-opt-in-hint",className:"mt-0.5 h-5 w-5"}),x.jsxs("div",{className:"space-y-0.5",children:[x.jsx("label",{htmlFor:"short-term-opt-in",className:"block cursor-pointer text-sm font-medium leading-5 text-foreground",children:"Tell me when short terms open online"}),x.jsx("p",{id:"short-term-opt-in-hint",className:"text-xs text-muted-foreground",children:"We'll email or call you once. No other marketing."})]})]}),x.jsxs(Rs,{type:"submit",disabled:S,className:"w-full",children:[S&&x.jsx(kh,{className:"h-4 w-4 animate-spin mr-2"}),E?"Try again":"Send my request to Sales"]})]}),E&&x.jsx("p",{className:"text-xs text-destructive",children:Wp})]}),x.jsxs("a",{href:`tel:${Sc.phone.tel}`,className:"flex items-center gap-2 text-sm font-semibold text-primary",children:[x.jsx(zS,{className:"h-4 w-4"})," Want to talk sooner? Call ",Sc.phone.display," and mention your reference."]})]})}export{Cs as $,Ei as A,FA as B,gp as C,Gy as D,bP as E,Ka as F,oO as G,RI as H,OI as I,gI as J,KO as K,_I as L,SI as M,Rp as N,MI as O,ge as P,wI as Q,Ut as R,NI as S,bI as T,wc as U,hv as V,Ld as W,WS as X,ho as Y,kh as Z,Rs as _,wd as a,mv as a$,Mv as a0,av as a1,Wk as a2,uR as a3,bw as a4,dw as a5,ja as a6,Bk as a7,_R as a8,zk as a9,HA as aA,VI as aB,zI as aC,Sc as aD,zS as aE,zA as aF,BA as aG,YA as aH,KI as aI,_A as aJ,EA as aK,Vw as aL,Dv as aM,Zw as aN,bA as aO,kA as aP,jS as aQ,AA as aR,p1 as aS,eI as aT,qA as aU,tI as aV,WI as aW,BI as aX,pS as aY,ot as aZ,ki as a_,Hk as aa,FS as ab,$A as ac,iI as ad,GA as ae,KA as af,Nr as ag,nI as ah,WA as ai,LS as aj,rA as ak,$w as al,pA as am,Uw as an,mA as ao,Fw as ap,zw as aq,hA as ar,HI as as,AI as at,xP as au,ha as av,sO as aw,lO as ax,EP as ay,lR as az,_d as b,VA as b0,GI as b1,rw as b2,yI as b3,LI as b4,jA as b5,qI as b6,DI as b7,fP as b8,jI as b9,TI as bA,oI as bB,aP as bC,PI as bD,jb as bE,sS as bF,ow as bG,EI as ba,kI as bb,aw as bc,kO as bd,xI as be,pP as bf,CI as bg,iR as bh,$I as bi,FI as bj,UI as bk,Ky as bl,sR as bm,Ep as bn,YO as bo,Ai as bp,eP as bq,XA as br,ZA as bs,cx as bt,rR as bu,QA as bv,SA as bw,II as bx,rI as by,n1 as bz,Na as c,so as d,Ee as e,Zr as f,Ia as g,UA as h,fv as i,x as j,Cn as k,wS as l,Qe as m,$e as n,gv as o,Nb as p,vI as q,v as r,On as s,Hd as t,Je as u,fa as v,Ke as w,Yt as x,_P as y,vp as z};

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.