vendor: 4,137 bytes, lines 1-9
1var jm=e=>{throw TypeError(e)};var Sc=(e,t,n)=>t.has(e)||jm("Cannot "+n);var P=(e,t,n)=>(Sc(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?jm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(Sc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),He=(e,t,n)=>(Sc(e,t,"access private method"),n);var Fa=(e,t,n,r)=>({set _(s){G(e,t,s,n)},get _(){return P(e,t,r)}});function P_(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function j0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var I0={exports:{}},Lu={},D0={exports:{}},Z={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var ba=Symbol.for("react.element"),R_=Symbol.for("react.portal"),A_=Symbol.for("react.fragment"),O_=Symbol.for("react.strict_mode"),N_=Symbol.for("react.profiler"),j_=Symbol.for("react.provider"),I_=Symbol.for("react.context"),D_=Symbol.for("react.forward_ref"),L_=Symbol.for("react.suspense"),M_=Symbol.for("react.memo"),$_=Symbol.for("react.lazy"),Im=Symbol.iterator;function F_(e){return e===null||typeof e!="object"?null:(e=Im&&e[Im]||e["@@iterator"],typeof e=="function"?e:null)}var L0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M0=Object.assign,$0={};function $i(e,t,n){this.props=e,this.context=t,this.refs=$0,this.updater=n||L0}$i.prototype.isReactComponent={};$i.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")};$i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function F0(){}F0.prototype=$i.prototype;function Pf(e,t,n){this.props=e,this.context=t,this.refs=$0,this.updater=n||L0}var Rf=Pf.prototype=new F0;Rf.constructor=Pf;M0(Rf,$i.prototype);Rf.isPureReactComponent=!0;var Dm=Array.isArray,U0=Object.prototype.hasOwnProperty,Af={current:null},V0={key:!0,ref:!0,__self:!0,__source:!0};function B0(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)U0.call(t,r)&&!V0.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:ba,type:e,key:i,ref:o,props:s,_owner:Af.current}}function U_(e,t){return{$$typeof:ba,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Of(e){return typeof e=="object"&&e!==null&&e.$$typeof===ba}function V_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Lm=/\/+/g;function Ec(e,t){return typeof e=="object"&&e!==null&&e.key!=null?V_(""+e.key):t.toString(36)}
vendor: 4,749 bytes, lines 9-17
9function El(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ba:case R_:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Ec(o,0):r,Dm(s)?(n="",e!=null&&(n=e.replace(Lm,"$&/")+"/"),El(s,t,n,"",function(u){return u})):s!=null&&(Of(s)&&(s=U_(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Lm,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Dm(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Ec(i,a);o+=El(i,t,n,l,s)}else if(l=F_(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Ec(i,a++),o+=El(i,t,n,l,s);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 o}function Ua(e,t,n){if(e==null)return e;var r=[],s=0;return El(e,r,"","",function(i){return t.call(n,i,s++)}),r}function B_(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 at={current:null},_l={transition:null},z_={ReactCurrentDispatcher:at,ReactCurrentBatchConfig:_l,ReactCurrentOwner:Af};function z0(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:Ua,forEach:function(e,t,n){Ua(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ua(e,function(){t++}),t},toArray:function(e){return Ua(e,function(t){return t})||[]},only:function(e){if(!Of(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=$i;Z.Fragment=A_;Z.Profiler=N_;Z.PureComponent=Pf;Z.StrictMode=O_;Z.Suspense=L_;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z_;Z.act=z0;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=M0({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Af.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)U0.call(t,l)&&!V0.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:ba,type:e.type,key:s,ref:i,props:r,_owner:o}};Z.createContext=function(e){return e={$$typeof:I_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:j_,_context:e},e.Consumer=e};Z.createElement=B0;Z.createFactory=function(e){var t=B0.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:D_,render:e}};Z.isValidElement=Of;Z.lazy=function(e){return{$$typeof:$_,_payload:{_status:-1,_result:e},_init:B_}};Z.memo=function(e,t){return{$$typeof:M_,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=_l.transition;_l.transition={};try{e()}finally{_l.transition=t}};Z.unstable_act=z0;Z.useCallback=function(e,t){return at.current.useCallback(e,t)};Z.useContext=function(e){return at.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return at.current.useDeferredValue(e)};Z.useEffect=function(e,t){return at.current.useEffect(e,t)};Z.useId=function(){return at.current.useId()};Z.useImperativeHandle=function(e,t,n){return at.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return at.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return at.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return at.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return at.current.useReducer(e,t,n)};Z.useRef=function(e){return at.current.useRef(e)};Z.useState=function(e){return at.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return at.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return at.current.useTransition()};Z.version="18.3.1";D0.exports=Z;var b=D0.exports;const j=j0(b),Nf=P_({__proto__:null,default:j},[b]);/** 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 W_=b,H_=Symbol.for("react.element"),K_=Symbol.for("react.fragment"),q_=Object.prototype.hasOwnProperty,G_=W_.__SECRET_INT
vendor: 8,834 bytes, lines 17-33
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Y_={key:!0,ref:!0,__self:!0,__source:!0};function W0(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)q_.call(t,r)&&!Y_.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:H_,type:e,key:i,ref:o,props:s,_owner:G_.current}}Lu.Fragment=K_;Lu.jsx=W0;Lu.jsxs=W0;I0.exports=Lu;var w=I0.exports,H0={exports:{}},_t={},K0={exports:{}},q0={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(C,R){var D=C.length;C.push(R);e:for(;0<D;){var K=D-1>>>1,B=C[K];if(0<s(B,R))C[K]=R,C[D]=B,D=K;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var R=C[0],D=C.pop();if(D!==R){C[0]=D;e:for(var K=0,B=C.length,X=B>>>1;K<X;){var ee=2*(K+1)-1,ke=C[ee],We=ee+1,re=C[We];if(0>s(ke,D))We<B&&0>s(re,ke)?(C[K]=re,C[We]=D,K=We):(C[K]=ke,C[ee]=D,K=ee);else if(We<B&&0>s(re,D))C[K]=re,C[We]=D,K=We;else break e}}return R}function s(C,R){var D=C.sortIndex-R.sortIndex;return D!==0?D:C.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,h=3,f=!1,v=!1,p=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(C){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=C)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function S(C){if(p=!1,y(C),!v)if(n(l)!==null)v=!0,H(E);else{var R=n(u);R!==null&&F(S,R.startTime-C)}}function E(C,R){v=!1,p&&(p=!1,m(k),k=-1),f=!0;var D=h;try{for(y(R),d=n(l);d!==null&&(!(d.expirationTime>R)||C&&!V());){var K=d.callback;if(typeof K=="function"){d.callback=null,h=d.priorityLevel;var B=K(d.expirationTime<=R);R=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),y(R)}else r(l);d=n(l)}if(d!==null)var X=!0;else{var ee=n(u);ee!==null&&F(S,ee.startTime-R),X=!1}return X}finally{d=null,h=D,f=!1}}var _=!1,T=null,k=-1,A=5,O=-1;function V(){return!(e.unstable_now()-O<A)}function L(){if(T!==null){var C=e.unstable_now();O=C;var R=!0;try{R=T(!0,C)}finally{R?Q():(_=!1,T=null)}}else _=!1}var Q;if(typeof g=="function")Q=function(){g(L)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,J=I.port2;I.port1.onmessage=L,Q=function(){J.postMessage(null)}}else Q=function(){x(L,0)};function H(C){T=C,_||(_=!0,Q())}function F(C,R){k=x(function(){C(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){v||f||(v=!0,H(E))},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"):A=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(C){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var D=h;h=R;try{return C()}finally{h=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,R){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var D=h;h=C;try{return R()}finally{h=D}},e.unstable_scheduleCallback=function(C,R,D){var K=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?K+D:K):D=K,C){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=D+B,C={id:c++,callback:R,priorityLevel:C,startTime:D,expirationTime:B,sortIndex:-1},D>K?(C.sortIndex=D,t(u,C),n(l)===null&&C===n(u)&&(p?(m(k),k=-1):p=!0,F(S,D-K))):(C.sortIndex=B,t(l,C),v||f||(v=!0,H(E))),C},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(C){var R=h;return function(){var D=h;h=R;try{return C.apply(this,arguments)}finally{h=D}}}})(q0);K0.exports=q0;var Q_=K0.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 J_=b,Et=Q_;function N(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 G0=new Set,Mo={};function Ss(e,t){Ci(e,t),Ci(e+"Capture",t)}function Ci(e,t){for(Mo[e]=t,e=0;e<t.length;e++)G0.add(t[e])}var Ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ld=Object.prototype.hasOwnProperty,X_=/^[: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]*$/,Mm={},$m={};function Z_(e){return Ld.call($m,e)?!0:Ld.call(Mm,e)?!1:X_.test(e)?$m[e]=!0:(Mm[e]=!0,!1)}function eT(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 tT(e,t,n,r){if(t===null||typeof t>"u"||eT(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 lt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ze[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ze[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ze[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ze[e]=new lt(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){ze[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ze[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ze[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ze[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ze[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var jf=/[\-:]([a-z])/g;function If(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
33-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(jf,If);ze[t]=new lt(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(jf,If);ze[t]=new lt(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(jf,If);ze[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ze[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ze[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Df(e,t,n,r){var s=ze.hasOwnProperty(t)?ze[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(tT(t,n,s,r)&&(n=null),r||s===null?Z_(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Wn=J_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Va=Symbol.for("react.element"),Ws=Symbol.for("react.portal"),Hs=Symbol.for("react.fragment"),Lf=Symbol.for("react.strict_mode"),Md=Symbol.for("react.profiler"),Y0=Symbol.for("react.provider"),Q0=Symbol.for("react.context"),Mf=Symbol.for("react.forward_ref"),$d=Symbol.for("react.suspense"),Fd=Symbol.for("react.suspense_list"),$f=Symbol.for("react.memo"),ir=Symbol.for("react.lazy"),J0=Symbol.for("react.offscreen"),Fm=Symbol.iterator;function to(e){return e===null||typeof e!="object"?null:(e=Fm&&e[Fm]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,_c;function mo(e){if(_c===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_c=t&&t[1]||""}return` 34`+_c+e}var Tc=!1;function kc(e,t){if(!e||Tc)return"";Tc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(` 35`),i=r.stack.split(` 36`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=` 37`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Tc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mo(e):""}function nT(e){switch(e.tag){case 5:return mo(e.type);case 16:return mo("Lazy");case 13:return mo("Suspense");case 19:return mo("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function Ud(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 Hs:return"Fragment";case Ws:return"Portal";case Md:return"Profiler";case Lf:return"StrictMode";case $d:return"Suspense";case Fd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Q0:return(e.displayName||"Context")+".Consumer";case Y0:return(e._context.displayName||"Context")+".Provider";case Mf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $f:return t=e.displayName||null,t!==null?t:Ud(e.type)||"Memo";case ir:t=e._payload,e=e._init;try{return Ud(e(t))}catch{}}return null}function rT(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 Ud(t);case 8:return t===Lf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Rr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function X0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sT(e){var t=X0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ba(e){e._valueTracker||(e._valueTracker=sT(e))}function Z0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kl(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 Vd(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Um(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}
vendor: 4,651 bytes, line 37
37function ew(e,t){t=t.checked,t!=null&&Df(e,"checked",t,!1)}function Bd(e,t){ew(e,t);var n=Rr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zd(e,t.type,n):t.hasOwnProperty("defaultValue")&&zd(e,t.type,Rr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vm(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 zd(e,t,n){(t!=="number"||Kl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var go=Array.isArray;function li(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Rr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Wd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(go(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Rr(n)}}function tw(e,t){var n=Rr(t.value),r=Rr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function zm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nw(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 Hd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var za,rw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(za=za||document.createElement("div"),za.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=za.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $o(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bo={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},iT=["Webkit","ms","Moz","O"];Object.keys(bo).forEach(function(e){iT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bo[t]=bo[e]})});function sw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bo.hasOwnProperty(e)&&bo[e]?(""+t).trim():t+"px"}function iw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=sw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var oT=we({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 Kd(e,t){if(t){if(oT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function qd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";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 Gd=null;function Ff(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yd=null,ui=null,ci=null;function Wm(e){if(e=_a(e)){if(typeof Yd!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Vu(t),Yd(e.stateNode,e.type,t))}}function ow(e){ui?ci?ci.push(e):ci=[e]:ui=e}function aw(){if(ui){var e=ui,t=ci;if(ci=ui=null,Wm(e),t)for(e=0;e<t.length;e++)Wm(t[e])}}function lw(e,t){return e(t)}function uw(){}var Cc=!1;function cw(e,t,n){if(Cc)return e(t,n);Cc=!0;try{return lw(e,t,n)}finally{Cc=!1,(ui!==null||ci!==null)&&(uw(),aw())}}function Fo(e,t){var n=e.stateNode;if(n===null)return null;var r=Vu(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(N(231,t,typeof n));return n}var Qd=!1;if(Ln)try{var no={};Object.defineProperty(no,"passive",{get:function(){Qd=!0}}),window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{Qd=!1}function aT(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var So=!1,ql=null,Gl=!1,Jd=null,lT={onError:function(e){So=!0,ql=e}};function uT(e,t,n,r,s,i,o,a,l){So=!1,ql=null,aT.apply(lT,arguments)}function cT(e,t,n,r,s,i,o,a,l){if(uT.apply(this,arguments),So){if(So){var u=ql;So=!1,ql=null}else throw Error(N(198));Gl||(Gl=!0,Jd=u)}}function Es(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 dw(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 Hm(e){if(Es(e)!==e)throw Error(N(188))}function dT(e){var t=e.alternate;if(!t){if(t=Es(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Hm(s),e;if(i===r)return Hm(s),t;i=i.sibling}throw Error(N(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function hw(e){return e=dT(e),e!==null?fw(e):null}function fw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fw(e);if(t!==null)return t;e=e.sibling}return null}var pw=Et.unstable_scheduleCallback,Km=Et.unstable_cancelCallback,hT=Et.unstable_shouldYield,fT=Et.unstable_requestPaint,_e=Et.unstable_now,pT=Et.unstable_getCurrentPriorityLevel,Uf=Et.unstable_ImmediatePriority,mw=Et.unstable_UserBlockingPriority,Yl=Et.unstable_NormalPriority,mT=Et.unstable_LowPriority,gw=Et.unstable_IdlePriority,Mu=null,wn=null;function gT(e){if(wn&&typeof wn.onCommitFiberRoot=="function")try{wn.onCommitFiberRoot(Mu,e,void 0,(e.current.flags&128)===128)}catch{}}var tn=Math.clz32?Math.clz32:wT,yT=Math.log,vT=Math.LN2;function wT(e){return e>>>=0,e===0?32:31-(yT(e)/vT|0)|0}var Wa=64,Ha=4194304;function yo(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 Ql(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=yo(a):(i&=o,i!==0&&(r=yo(i)))}else o=n&~s,o!==0?r=yo(o):i!==0&&(r=yo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===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-tn(t),s=1<<n,r|=e[n],t&=~s;return r}function xT(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 bT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-tn(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=xT(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Xd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yw(){var e=Wa;return Wa<<=1,!(Wa&4194240)&&(Wa=64),e}function Pc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Sa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-tn(t),e[t]=n}function ST(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-tn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Vf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var se=0;function vw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ww,Bf,xw,bw,Sw,Zd=!1,Ka=[],xr=null,br=null,Sr=null,Uo=new Map,Vo=new Map,lr=[],ET="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 qm(e,t){switch(e){case"focusin":case"focusout":xr=null;break;case"dragenter":case"dragleave":br=null;break;case"mouseover":case"mouseout":Sr=null;break;case"pointerover":case"pointerout":Uo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vo.delete(t.pointerId)}}function ro(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=_a(t),t!==null&&Bf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 12,981 bytes, line 37
37function _T(e,t,n,r,s){switch(t){case"focusin":return xr=ro(xr,e,t,n,r,s),!0;case"dragenter":return br=ro(br,e,t,n,r,s),!0;case"mouseover":return Sr=ro(Sr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Uo.set(i,ro(Uo.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Vo.set(i,ro(Vo.get(i)||null,e,t,n,r,s)),!0}return!1}function Ew(e){var t=es(e.target);if(t!==null){var n=Es(t);if(n!==null){if(t=n.tag,t===13){if(t=dw(n),t!==null){e.blockedOn=t,Sw(e.priority,function(){xw(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 Tl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=eh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Gd=r,n.target.dispatchEvent(r),Gd=null}else return t=_a(n),t!==null&&Bf(t),e.blockedOn=n,!1;t.shift()}return!0}function Gm(e,t,n){Tl(e)&&n.delete(t)}function TT(){Zd=!1,xr!==null&&Tl(xr)&&(xr=null),br!==null&&Tl(br)&&(br=null),Sr!==null&&Tl(Sr)&&(Sr=null),Uo.forEach(Gm),Vo.forEach(Gm)}function so(e,t){e.blockedOn===t&&(e.blockedOn=null,Zd||(Zd=!0,Et.unstable_scheduleCallback(Et.unstable_NormalPriority,TT)))}function Bo(e){function t(s){return so(s,e)}if(0<Ka.length){so(Ka[0],e);for(var n=1;n<Ka.length;n++){var r=Ka[n];r.blockedOn===e&&(r.blockedOn=null)}}for(xr!==null&&so(xr,e),br!==null&&so(br,e),Sr!==null&&so(Sr,e),Uo.forEach(t),Vo.forEach(t),n=0;n<lr.length;n++)r=lr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<lr.length&&(n=lr[0],n.blockedOn===null);)Ew(n),n.blockedOn===null&&lr.shift()}var di=Wn.ReactCurrentBatchConfig,Jl=!0;function kT(e,t,n,r){var s=se,i=di.transition;di.transition=null;try{se=1,zf(e,t,n,r)}finally{se=s,di.transition=i}}function CT(e,t,n,r){var s=se,i=di.transition;di.transition=null;try{se=4,zf(e,t,n,r)}finally{se=s,di.transition=i}}function zf(e,t,n,r){if(Jl){var s=eh(e,t,n,r);if(s===null)$c(e,t,r,Xl,n),qm(e,r);else if(_T(s,e,t,n,r))r.stopPropagation();else if(qm(e,r),t&4&&-1<ET.indexOf(e)){for(;s!==null;){var i=_a(s);if(i!==null&&ww(i),i=eh(e,t,n,r),i===null&&$c(e,t,r,Xl,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else $c(e,t,r,null,n)}}var Xl=null;function eh(e,t,n,r){if(Xl=null,e=Ff(r),e=es(e),e!==null)if(t=Es(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dw(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 Xl=e,null}function _w(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(pT()){case Uf:return 1;case mw:return 4;case Yl:case mT:return 16;case gw:return 536870912;default:return 16}default:return 16}}var gr=null,Wf=null,kl=null;function Tw(){if(kl)return kl;var e,t=Wf,n=t.length,r,s="value"in gr?gr.value:gr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return kl=s.slice(e,1<r?1-r:void 0)}function Cl(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 qa(){return!0}function Ym(){return!1}function Tt(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in 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)?qa:Ym,this.isPropagationStopped=Ym,this}return we(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=qa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qa)},persist:function(){},isPersistent:qa}),t}var Fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hf=Tt(Fi),Ea=we({},Fi,{view:0,detail:0}),PT=Tt(Ea),Rc,Ac,io,$u=we({},Ea,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kf,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!==io&&(io&&e.type==="mousemove"?(Rc=e.screenX-io.screenX,Ac=e.screenY-io.screenY):Ac=Rc=0,io=e),Rc)},movementY:function(e){return"movementY"in e?e.movementY:Ac}}),Qm=Tt($u),RT=we({},$u,{dataTransfer:0}),AT=Tt(RT),OT=we({},Ea,{relatedTarget:0}),Oc=Tt(OT),NT=we({},Fi,{animationName:0,elapsedTime:0,pseudoElement:0}),jT=Tt(NT),IT=we({},Fi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),DT=Tt(IT),LT=we({},Fi,{data:0}),Jm=Tt(LT),MT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$T={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"},FT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=FT[e])?!!t[e]:!1}function Kf(){return UT}var VT=we({},Ea,{key:function(e){if(e.key){var t=MT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$T[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kf,charCode:function(e){return e.type==="keypress"?Cl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BT=Tt(VT),zT=we({},$u,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xm=Tt(zT),WT=we({},Ea,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kf}),HT=Tt(WT),KT=we({},Fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),qT=Tt(KT),GT=we({},$u,{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}),YT=Tt(GT),QT=[9,13,27,32],qf=Ln&&"CompositionEvent"in window,Eo=null;Ln&&"documentMode"in document&&(Eo=document.documentMode);var JT=Ln&&"TextEvent"in window&&!Eo,kw=Ln&&(!qf||Eo&&8<Eo&&11>=Eo),Zm=" ",eg=!1;function Cw(e,t){switch(e){case"keyup":return QT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ks=!1;function XT(e,t){switch(e){case"compositionend":return Pw(t);case"keypress":return t.which!==32?null:(eg=!0,Zm);case"textInput":return e=t.data,e===Zm&&eg?null:e;default:return null}}function ZT(e,t){if(Ks)return e==="compositionend"||!qf&&Cw(e,t)?(e=Tw(),kl=Wf=gr=null,Ks=!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 kw&&t.locale!=="ko"?null:t.data;default:return null}}var ek={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 tg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ek[e.type]:t==="textarea"}function Rw(e,t,n,r){ow(r),t=Zl(t,"onChange"),0<t.length&&(n=new Hf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _o=null,zo=null;function tk(e){Uw(e,0)}function Fu(e){var t=Ys(e);if(Z0(t))return e}function nk(e,t){if(e==="change")return t}var Aw=!1;if(Ln){var Nc;if(Ln){var jc="oninput"in document;if(!jc){var ng=document.createElement("div");ng.setAttribute("oninput","return;"),jc=typeof ng.oninput=="function"}Nc=jc}else Nc=!1;Aw=Nc&&(!document.documentMode||9<document.documentMode)}function rg(){_o&&(_o.detachEvent("onpropertychange",Ow),zo=_o=null)}function Ow(e){if(e.propertyName==="value"&&Fu(zo)){var t=[];Rw(t,zo,e,Ff(e)),cw(tk,t)}}function rk(e,t,n){e==="focusin"?(rg(),_o=t,zo=n,_o.attachEvent("onpropertychange",Ow)):e==="focusout"&&rg()}function sk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fu(zo)}function ik(e,t){if(e==="click")return Fu(t)}function ok(e,t){if(e==="input"||e==="change")return Fu(t)}function ak(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sn=typeof Object.is=="function"?Object.is:ak;function Wo(e,t){if(sn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Ld.call(t,s)||!sn(e[s],t[s]))return!1}return!0}function sg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ig(e,t){var n=sg(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=sg(n)}}function Nw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jw(){for(var e=window,t=Kl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kl(e.document)}return t}function Gf(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 lk(e){var t=jw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nw(n.ownerDocument.documentElement,n)){if(r!==null&&Gf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=ig(n,i);var o=ig(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 uk=Ln&&"documentMode"in document&&11>=document.documentMode,qs=null,th=null,To=null,nh=!1;function og(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nh||qs==null||qs!==Kl(r)||(r=qs,"selectionStart"in r&&Gf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,352 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),To&&Wo(To,r)||(To=r,r=Zl(th,"onSelect"),0<r.length&&(t=new Hf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qs)))}function Ga(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gs={animationend:Ga("Animation","AnimationEnd"),animationiteration:Ga("Animation","AnimationIteration"),animationstart:Ga("Animation","AnimationStart"),transitionend:Ga("Transition","TransitionEnd")},Ic={},Iw={};Ln&&(Iw=document.createElement("div").style,"AnimationEvent"in window||(delete Gs.animationend.animation,delete Gs.animationiteration.animation,delete Gs.animationstart.animation),"TransitionEvent"in window||delete Gs.transitionend.transition);function Uu(e){if(Ic[e])return Ic[e];if(!Gs[e])return e;var t=Gs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Iw)return Ic[e]=t[n];return e}var Dw=Uu("animationend"),Lw=Uu("animationiteration"),Mw=Uu("animationstart"),$w=Uu("transitionend"),Fw=new Map,ag="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 Lr(e,t){Fw.set(e,t),Ss(t,[e])}for(var Dc=0;Dc<ag.length;Dc++){var Lc=ag[Dc],ck=Lc.toLowerCase(),dk=Lc[0].toUpperCase()+Lc.slice(1);Lr(ck,"on"+dk)}Lr(Dw,"onAnimationEnd");Lr(Lw,"onAnimationIteration");Lr(Mw,"onAnimationStart");Lr("dblclick","onDoubleClick");Lr("focusin","onFocus");Lr("focusout","onBlur");Lr($w,"onTransitionEnd");Ci("onMouseEnter",["mouseout","mouseover"]);Ci("onMouseLeave",["mouseout","mouseover"]);Ci("onPointerEnter",["pointerout","pointerover"]);Ci("onPointerLeave",["pointerout","pointerover"]);Ss("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ss("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ss("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ss("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ss("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ss("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vo="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(" "),hk=new Set("cancel close invalid load scroll toggle".split(" ").concat(vo));function lg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,cT(r,t,void 0,e),e.currentTarget=null}function Uw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;lg(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;lg(s,a,u),i=l}}}if(Gl)throw e=Jd,Gl=!1,Jd=null,e}function ce(e,t){var n=t[ah];n===void 0&&(n=t[ah]=new Set);var r=e+"__bubble";n.has(r)||(Vw(t,e,2,!1),n.add(r))}function Mc(e,t,n){var r=0;t&&(r|=4),Vw(n,e,r,t)}var Ya="_reactListening"+Math.random().toString(36).slice(2);function Ho(e){if(!e[Ya]){e[Ya]=!0,G0.forEach(function(n){n!=="selectionchange"&&(hk.has(n)||Mc(n,!1,e),Mc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ya]||(t[Ya]=!0,Mc("selectionchange",!1,t))}}function Vw(e,t,n,r){switch(_w(t)){case 1:var s=kT;break;case 4:s=CT;break;default:s=zf}n=s.bind(null,t,n,e),s=void 0,!Qd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}
vendor: 4,454 bytes, line 37
37function $c(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=es(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}cw(function(){var u=i,c=Ff(n),d=[];e:{var h=Fw.get(e);if(h!==void 0){var f=Hf,v=e;switch(e){case"keypress":if(Cl(n)===0)break e;case"keydown":case"keyup":f=BT;break;case"focusin":v="focus",f=Oc;break;case"focusout":v="blur",f=Oc;break;case"beforeblur":case"afterblur":f=Oc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Qm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=AT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=HT;break;case Dw:case Lw:case Mw:f=jT;break;case $w:f=qT;break;case"scroll":f=PT;break;case"wheel":f=YT;break;case"copy":case"cut":case"paste":f=DT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Xm}var p=(t&4)!==0,x=!p&&e==="scroll",m=p?h!==null?h+"Capture":null:h;p=[];for(var g=u,y;g!==null;){y=g;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,m!==null&&(S=Fo(g,m),S!=null&&p.push(Ko(g,S,y)))),x)break;g=g.return}0<p.length&&(h=new f(h,v,null,n,c),d.push({event:h,listeners:p}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&n!==Gd&&(v=n.relatedTarget||n.fromElement)&&(es(v)||v[Mn]))break e;if((f||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,f?(v=n.relatedTarget||n.toElement,f=u,v=v?es(v):null,v!==null&&(x=Es(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(f=null,v=u),f!==v)){if(p=Qm,S="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(p=Xm,S="onPointerLeave",m="onPointerEnter",g="pointer"),x=f==null?h:Ys(f),y=v==null?h:Ys(v),h=new p(S,g+"leave",f,n,c),h.target=x,h.relatedTarget=y,S=null,es(c)===u&&(p=new p(m,g+"enter",v,n,c),p.target=y,p.relatedTarget=x,S=p),x=S,f&&v)t:{for(p=f,m=v,g=0,y=p;y;y=As(y))g++;for(y=0,S=m;S;S=As(S))y++;for(;0<g-y;)p=As(p),g--;for(;0<y-g;)m=As(m),y--;for(;g--;){if(p===m||m!==null&&p===m.alternate)break t;p=As(p),m=As(m)}p=null}else p=null;f!==null&&ug(d,h,f,p,!1),v!==null&&x!==null&&ug(d,x,v,p,!0)}}e:{if(h=u?Ys(u):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var E=nk;else if(tg(h))if(Aw)E=ok;else{E=sk;var _=rk}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=ik);if(E&&(E=E(e,u))){Rw(d,E,n,c);break e}_&&_(e,h,u),e==="focusout"&&(_=h._wrapperState)&&_.controlled&&h.type==="number"&&zd(h,"number",h.value)}switch(_=u?Ys(u):window,e){case"focusin":(tg(_)||_.contentEditable==="true")&&(qs=_,th=u,To=null);break;case"focusout":To=th=qs=null;break;case"mousedown":nh=!0;break;case"contextmenu":case"mouseup":case"dragend":nh=!1,og(d,n,c);break;case"selectionchange":if(uk)break;case"keydown":case"keyup":og(d,n,c)}var T;if(qf)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Ks?Cw(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(kw&&n.locale!=="ko"&&(Ks||k!=="onCompositionStart"?k==="onCompositionEnd"&&Ks&&(T=Tw()):(gr=c,Wf="value"in gr?gr.value:gr.textContent,Ks=!0)),_=Zl(u,k),0<_.length&&(k=new Jm(k,e,null,n,c),d.push({event:k,listeners:_}),T?k.data=T:(T=Pw(n),T!==null&&(k.data=T)))),(T=JT?XT(e,n):ZT(e,n))&&(u=Zl(u,"onBeforeInput"),0<u.length&&(c=new Jm("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=T))}Uw(d,t)})}function Ko(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zl(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Fo(e,n),i!=null&&r.unshift(Ko(e,i,s)),i=Fo(e,t),i!=null&&r.push(Ko(e,i,s))),e=e.return}return r}function As(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}
vendor: 4,222 bytes, lines 37-38
37function ug(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=Fo(n,i),l!=null&&o.unshift(Ko(n,l,a))):s||(l=Fo(n,i),l!=null&&o.push(Ko(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var fk=/\r\n?/g,pk=/\u0000|\uFFFD/g;function cg(e){return(typeof e=="string"?e:""+e).replace(fk,` 38`).replace(pk,"")}function Qa(e,t,n){if(t=cg(t),cg(e)!==t&&n)throw Error(N(425))}function eu(){}var rh=null,sh=null;function ih(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 oh=typeof setTimeout=="function"?setTimeout:void 0,mk=typeof clearTimeout=="function"?clearTimeout:void 0,dg=typeof Promise=="function"?Promise:void 0,gk=typeof queueMicrotask=="function"?queueMicrotask:typeof dg<"u"?function(e){return dg.resolve(null).then(e).catch(yk)}:oh;function yk(e){setTimeout(function(){throw e})}function Fc(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Bo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Bo(t)}function Er(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 hg(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 Ui=Math.random().toString(36).slice(2),yn="__reactFiber$"+Ui,qo="__reactProps$"+Ui,Mn="__reactContainer$"+Ui,ah="__reactEvents$"+Ui,vk="__reactListeners$"+Ui,wk="__reactHandles$"+Ui;function es(e){var t=e[yn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Mn]||n[yn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hg(e);e!==null;){if(n=e[yn])return n;e=hg(e)}return t}e=n,n=e.parentNode}return null}function _a(e){return e=e[yn]||e[Mn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ys(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Vu(e){return e[qo]||null}var lh=[],Qs=-1;function Mr(e){return{current:e}}function de(e){0>Qs||(e.current=lh[Qs],lh[Qs]=null,Qs--)}function ae(e,t){Qs++,lh[Qs]=e.current,e.current=t}var Ar={},Je=Mr(Ar),ht=Mr(!1),ms=Ar;function Pi(e,t){var n=e.type.contextTypes;if(!n)return Ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function ft(e){return e=e.childContextTypes,e!=null}function tu(){de(ht),de(Je)}function fg(e,t,n){if(Je.current!==Ar)throw Error(N(168));ae(Je,t),ae(ht,n)}function Bw(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(N(108,rT(e)||"Unknown",s));return we({},n,r)}function nu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ar,ms=Je.current,ae(Je,e),ae(ht,ht.current),!0}function pg(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Bw(e,t,ms),r.__reactInternalMemoizedMergedChildContext=e,de(ht),de(Je),ae(Je,e)):de(ht),ae(ht,n)}var An=null,Bu=!1,Uc=!1;function zw(e){An===null?An=[e]:An.push(e)}function xk(e){Bu=!0,zw(e)}function $r(){if(!Uc&&An!==null){Uc=!0;var e=0,t=se;try{var n=An;for(se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}An=null,Bu=!1}catch(s){throw An!==null&&(An=An.slice(e+1)),pw(Uf,$r),s}finally{se=t,Uc=!1}}return null}var Js=[],Xs=0,ru=null,su=0,Pt=[],Rt=0,gs=null,jn=1,In="";function Gr(e,t){Js[Xs++]=su,Js[Xs++]=ru,ru=e,su=t}function Ww(e,t,n){Pt[Rt++]=jn,Pt[Rt++]=In,Pt[Rt++]=gs,gs=e;var r=jn;e=In;var s=32-tn(r)-1;r&=~(1<<s),n+=1;var i=32-tn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,jn=1<<32-tn(t)+s|n<<s|r,In=i+e}else jn=1<<i|n<<s|r,In=e}function Yf(e){e.return!==null&&(Gr(e,1),Ww(e,1,0))}function Qf(e){for(;e===ru;
vendor: 25,326 bytes, lines 38-40
38)ru=Js[--Xs],Js[Xs]=null,su=Js[--Xs],Js[Xs]=null;for(;e===gs;)gs=Pt[--Rt],Pt[Rt]=null,In=Pt[--Rt],Pt[Rt]=null,jn=Pt[--Rt],Pt[Rt]=null}var bt=null,wt=null,fe=!1,en=null;function Hw(e,t){var n=Ot(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 mg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,bt=e,wt=Er(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,bt=e,wt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gs!==null?{id:jn,overflow:In}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ot(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,bt=e,wt=null,!0):!1;default:return!1}}function uh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ch(e){if(fe){var t=wt;if(t){var n=t;if(!mg(e,t)){if(uh(e))throw Error(N(418));t=Er(n.nextSibling);var r=bt;t&&mg(e,t)?Hw(r,n):(e.flags=e.flags&-4097|2,fe=!1,bt=e)}}else{if(uh(e))throw Error(N(418));e.flags=e.flags&-4097|2,fe=!1,bt=e}}}function gg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;bt=e}function Ja(e){if(e!==bt)return!1;if(!fe)return gg(e),fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ih(e.type,e.memoizedProps)),t&&(t=wt)){if(uh(e))throw Kw(),Error(N(418));for(;t;)Hw(e,t),t=Er(t.nextSibling)}if(gg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wt=Er(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wt=null}}else wt=bt?Er(e.stateNode.nextSibling):null;return!0}function Kw(){for(var e=wt;e;)e=Er(e.nextSibling)}function Ri(){wt=bt=null,fe=!1}function Jf(e){en===null?en=[e]:en.push(e)}var bk=Wn.ReactCurrentBatchConfig;function oo(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(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Xa(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yg(e){var t=e._init;return t(e._payload)}function qw(e){function t(m,g){if(e){var y=m.deletions;y===null?(m.deletions=[g],m.flags|=16):y.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function s(m,g){return m=Cr(m,g),m.index=0,m.sibling=null,m}function i(m,g,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<g?(m.flags|=2,g):y):(m.flags|=2,g)):(m.flags|=1048576,g)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,y,S){return g===null||g.tag!==6?(g=qc(y,m.mode,S),g.return=m,g):(g=s(g,y),g.return=m,g)}function l(m,g,y,S){var E=y.type;return E===Hs?c(m,g,y.props.children,S,y.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ir&&yg(E)===g.type)?(S=s(g,y.props),S.ref=oo(m,g,y),S.return=m,S):(S=Il(y.type,y.key,y.props,null,m.mode,S),S.ref=oo(m,g,y),S.return=m,S)}function u(m,g,y,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Gc(y,m.mode,S),g.return=m,g):(g=s(g,y.children||[]),g.return=m,g)}function c(m,g,y,S,E){return g===null||g.tag!==7?(g=fs(y,m.mode,S,E),g.return=m,g):(g=s(g,y),g.return=m,g)}function d(m,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=qc(""+g,m.mode,y),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Va:return y=Il(g.type,g.key,g.props,null,m.mode,y),y.ref=oo(m,null,g),y.return=m,y;case Ws:return g=Gc(g,m.mode,y),g.return=m,g;case ir:var S=g._init;return d(m,S(g._payload),y)}if(go(g)||to(g))return g=fs(g,m.mode,y,null),g.return=m,g;Xa(m,g)}return null}function h(m,g,y,S){var E=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:a(m,g,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Va:return y.key===E?l(m,g,y,S):null;case Ws:return y.key===E?u(m,g,y,S):null;case ir:return E=y._init,h(m,g,E(y._payload),S)}if(go(y)||to(y))return E!==null?null:c(m,g,y,S,null);Xa(m,y)}return null}function f(m,g,y,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(y)||null,a(g,m,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Va:return m=m.get(S.key===null?y:S.key)||null,l(g,m,S,E);case Ws:return m=m.get(S.key===null?y:S.key)||null,u(g,m,S,E);case ir:var _=S._init;return f(m,g,y,_(S._payload),E)}if(go(S)||to(S))return m=m.get(y)||null,c(g,m,S,E,null);Xa(g,S)}return null}function v(m,g,y,S){for(var E=null,_=null,T=g,k=g=0,A=null;T!==null&&k<y.length;k++){T.index>k?(A=T,T=null):A=T.sibling;var O=h(m,T,y[k],S);if(O===null){T===null&&(T=A);break}e&&T&&O.alternate===null&&t(m,T),g=i(O,g,k),_===null?E=O:_.sibling=O,_=O,T=A}if(k===y.length)return n(m,T),fe&&Gr(m,k),E;if(T===null){for(;k<y.length;k++)T=d(m,y[k],S),T!==null&&(g=i(T,g,k),_===null?E=T:_.sibling=T,_=T);return fe&&Gr(m,k),E}for(T=r(m,T);k<y.length;k++)A=f(T,m,k,y[k],S),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?k:A.key),g=i(A,g,k),_===null?E=A:_.sibling=A,_=A);return e&&T.forEach(function(V){return t(m,V)}),fe&&Gr(m,k),E}function p(m,g,y,S){var E=to(y);if(typeof E!="function")throw Error(N(150));if(y=E.call(y),y==null)throw Error(N(151));for(var _=E=null,T=g,k=g=0,A=null,O=y.next();T!==null&&!O.done;k++,O=y.next()){T.index>k?(A=T,T=null):A=T.sibling;var V=h(m,T,O.value,S);if(V===null){T===null&&(T=A);break}e&&T&&V.alternate===null&&t(m,T),g=i(V,g,k),_===null?E=V:_.sibling=V,_=V,T=A}if(O.done)return n(m,T),fe&&Gr(m,k),E;if(T===null){for(;!O.done;k++,O=y.next())O=d(m,O.value,S),O!==null&&(g=i(O,g,k),_===null?E=O:_.sibling=O,_=O);return fe&&Gr(m,k),E}for(T=r(m,T);!O.done;k++,O=y.next())O=f(T,m,k,O.value,S),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?k:O.key),g=i(O,g,k),_===null?E=O:_.sibling=O,_=O);return e&&T.forEach(function(L){return t(m,L)}),fe&&Gr(m,k),E}function x(m,g,y,S){if(typeof y=="object"&&y!==null&&y.type===Hs&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Va:e:{for(var E=y.key,_=g;_!==null;){if(_.key===E){if(E=y.type,E===Hs){if(_.tag===7){n(m,_.sibling),g=s(_,y.props.children),g.return=m,m=g;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ir&&yg(E)===_.type){n(m,_.sibling),g=s(_,y.props),g.ref=oo(m,_,y),g.return=m,m=g;break e}n(m,_);break}else t(m,_);_=_.sibling}y.type===Hs?(g=fs(y.props.children,m.mode,S,y.key),g.return=m,m=g):(S=Il(y.type,y.key,y.props,null,m.mode,S),S.ref=oo(m,g,y),S.return=m,m=S)}return o(m);case Ws:e:{for(_=y.key;g!==null;){if(g.key===_)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(m,g.sibling),g=s(g,y.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Gc(y,m.mode,S),g.return=m,m=g}return o(m);case ir:return _=y._init,x(m,g,_(y._payload),S)}if(go(y))return v(m,g,y,S);if(to(y))return p(m,g,y,S);Xa(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(m,g.sibling),g=s(g,y),g.return=m,m=g):(n(m,g),g=qc(y,m.mode,S),g.return=m,m=g),o(m)):n(m,g)}return x}var Ai=qw(!0),Gw=qw(!1),iu=Mr(null),ou=null,Zs=null,Xf=null;function Zf(){Xf=Zs=ou=null}function ep(e){var t=iu.current;de(iu),e._currentValue=t}function dh(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 hi(e,t){ou=e,Xf=Zs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(Xf!==e)if(e={context:e,memoizedValue:t,next:null},Zs===null){if(ou===null)throw Error(N(308));Zs=e,ou.dependencies={lanes:0,firstContext:e}}else Zs=Zs.next=e;return t}var ts=null;function tp(e){ts===null?ts=[e]:ts.push(e)}function Yw(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,tp(t)):(n.next=s.next,s.next=n),t.interleaved=n,$n(e,r)}function $n(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 or=!1;function np(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qw(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 Dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _r(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,$n(e,n)}return s=r.interleaved,s===null?(t.next=t,tp(r)):(t.next=s.next,s.next=t),r.interleaved=t,$n(e,n)}function Pl(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,Vf(e,n)}}function vg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,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 au(e,t,n,r){var s=e.updateQueue;or=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,c=u=l=null,a=i;do{var h=a.lane,f=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,p=a;switch(h=t,f=n,p.tag){case 1:if(v=p.payload,typeof v=="function"){d=v.call(f,d,h);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,h=typeof v=="function"?v.call(f,d,h):v,h==null)break e;d=we({},d,h);break e;case 2:or=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=f,l=d):c=c.next=f,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);vs|=o,e.lanes=o,e.memoizedState=d}}function wg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(N(191,s));s.call(r)}}}var Ta={},xn=Mr(Ta),Go=Mr(Ta),Yo=Mr(Ta);function ns(e){if(e===Ta)throw Error(N(174));return e}function rp(e,t){switch(ae(Yo,t),ae(Go,e),ae(xn,Ta),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hd(t,e)}de(xn),ae(xn,t)}function Oi(){de(xn),de(Go),de(Yo)}function Jw(e){ns(Yo.current);var t=ns(xn.current),n=Hd(t,e.type);t!==n&&(ae(Go,e),ae(xn,n))}function sp(e){Go.current===e&&(de(xn),de(Go))}var ge=Mr(0);function lu(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 Vc=[];function ip(){for(var e=0;e<Vc.length;e++)Vc[e]._workInProgressVersionPrimary=null;Vc.length=0}var Rl=Wn.ReactCurrentDispatcher,Bc=Wn.ReactCurrentBatchConfig,ys=0,ve=null,Ne=null,Ie=null,uu=!1,ko=!1,Qo=0,Sk=0;function Ke(){throw Error(N(321))}function op(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sn(e[n],t[n]))return!1;return!0}function ap(e,t,n,r,s,i){if(ys=i,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rl.current=e===null||e.memoizedState===null?kk:Ck,e=n(r,s),ko){i=0;do{if(ko=!1,Qo=0,25<=i)throw Error(N(301));i+=1,Ie=Ne=null,t.updateQueue=null,Rl.current=Pk,e=n(r,s)}while(ko)}if(Rl.current=cu,t=Ne!==null&&Ne.next!==null,ys=0,Ie=Ne=ve=null,uu=!1,t)throw Error(N(300));return e}function lp(){var e=Qo!==0;return Qo=0,e}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?ve.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Mt(){if(Ne===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Ie===null?ve.memoizedState:Ie.next;if(t!==null)Ie=t,Ne=e;else{if(e===null)throw Error(N(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Ie===null?ve.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Jo(e,t){return typeof t=="function"?t(e):t}function zc(e){var t=Mt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=Ne,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var c=u.lane;if((ys&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,o=r):l=l.next=d,ve.lanes|=c,vs|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,sn(r,t.memoizedState)||(dt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,ve.lanes|=i,vs|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wc(e){var t=Mt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);sn(i,t.memoizedState)||(dt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Xw(){}function Zw(e,t){var n=ve,r=Mt(),s=t(),i=!sn(r.memoizedState,s);if(i&&(r.memoizedState=s,dt=!0),r=r.queue,up(nx.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,Xo(9,tx.bind(null,n,r,s,t),void 0,null),Le===null)throw Error(N(349));ys&30||ex(n,t,s)}return s}function ex(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function tx(e,t,n,r){t.value=n,t.getSnapshot=r,rx(t)&&sx(e)}function nx(e,t,n){return n(function(){rx(t)&&sx(e)})}function rx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sn(e,n)}catch{return!0}}function sx(e){var t=$n(e,1);t!==null&&nn(t,e,1,-1)}function xg(e){var t=hn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:e},t.queue=e,e=e.dispatch=Tk.bind(null,ve,e),[t.memoizedState,e]}function Xo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.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 ix(){return Mt().memoizedState}function Al(e,t,n,r){var s=hn();ve.flags|=e,s.memoizedState=Xo(1|t,n,void 0,r===void 0?null:r)}function zu(e,t,n,r){var s=Mt();r=r===void 0?null:r;var i=void 0;if(Ne!==null){var o=Ne.memoizedState;if(i=o.destroy,r!==null&&op(r,o.deps)){s.memoizedState=Xo(t,n,i,r);return}}ve.flags|=e,s.memoizedState=Xo(1|t,n,i,r)}function bg(e,t){return Al(8390656,8,e,t)}function up(e,t){return zu(2048,8,e,t)}function ox(e,t){return zu(4,2,e,t)}function ax(e,t){return zu(4,4,e,t)}function lx(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 ux(e,t,n){return n=n!=null?n.concat([e]):null,zu(4,4,lx.bind(null,t,e),n)}function cp(){}function cx(e,t){var n=Mt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&op(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dx(e,t){var n=Mt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&op(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hx(e,t,n){return ys&21?(sn(n,t)||(n=yw(),ve.lanes|=n,vs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function Ek(e,t){var n=se;se=n!==0&&4>n?n:4,e(!0);var r=Bc.transition;Bc.transition={};try{e(!1),t()}finally{se=n,Bc.transition=r}}function fx(){return Mt().memoizedState}function _k(e,t,n){var r=kr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},px(e))mx(t,n);else if(n=Yw(e,t,n,r),n!==null){var s=it();nn(n,e,r,s),gx(n,t,r)}}function Tk(e,t,n){var r=kr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(px(e))mx(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,sn(a,o)){var l=t.interleaved;l===null?(s.next=s,tp(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=Yw(e,t,s,r),n!==null&&(s=it(),nn(n,e,r,s),gx(n,t,r))}}function px(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function mx(e,t){ko=uu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vf(e,n)}}var cu={readContext:Lt,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},kk={readContext:Lt,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:bg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Al(4194308,4,lx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Al(4194308,4,e,t)},useInsertionEffect:function(e,t){return Al(4,2,e,t)},useMemo:function(e,t){var n=hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hn();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=_k.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:xg,useDebugValue:cp,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=xg(!1),t=e[0];return e=Ek.bind(null,e[1]),hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ve,s=hn();if(fe){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Le===null)throw Error(N(349));ys&30||ex(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,bg(nx.bind(null,r,i,e),[e]),r.flags|=2048,Xo(9,tx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=hn(),t=Le.identifierPrefix;if(fe){var n=In,r=jn;n=(r&~(1<<32-tn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Sk++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ck={readContext:Lt,useCallback:cx,useContext:Lt,useEffect:up,useImperativeHandle:ux,useInsertionEffect:ox,useLayoutEffect:ax,useMemo:dx,useReducer:zc,useRef:ix,useState:function(){return zc(Jo)},useDebugValue:cp,useDeferredValue:function(e){var t=Mt();return hx(t,Ne.memoizedState,e)},useTransition:function(){var e=zc(Jo)[0],t=Mt().memoizedState;return[e,t]},useMutableSource:Xw,useSyncExternalStore:Zw,useId:fx,unstable_isNewReconciler:!1},Pk={readContext:Lt,useCallback:cx,useContext:Lt,useEffect:up,useImperativeHandle:ux,useInsertionEffect:ox,useLayoutEffect:ax,useMemo:dx,useReducer:Wc,useRef:ix,useState:function(){return Wc(Jo)},useDebugValue:cp,useDeferredValue:function(e){var t=Mt();return Ne===null?t.memoizedState=e:hx(t,Ne.memoizedState,e)},useTransition:function(){var e=Wc(Jo)[0],t=Mt().memoizedState;return[e,t]},useMutableSource:Xw,useSyncExternalStore:Zw,useId:fx,unstable_isNewReconciler:!1};function qt(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wu={isMounted:function(e){return(e=e._reactInternals)?Es(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=it(),s=kr(e),i=Dn(r,s);i.payload=t,n!=null&&(i.callback=n),t=_r(e,i,s),t!==null&&(nn(t,e,s,r),Pl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=it(),s=kr(e),i=Dn(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=_r(e,i,s),t!==null&&(nn(t,e,s,r),Pl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=it(),r=kr(e),s=Dn(n,r);s.tag=2,t!=null&&(s.callback=t),t=_r(e,s,r),t!==null&&(nn(t,e,r,n),Pl(t,e,r))}};function Sg(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Wo(n,r)||!Wo(s,i):!0}function yx(e,t,n){var r=!1,s=Ar,i=t.contextType;return typeof i=="object"&&i!==null?i=Lt(i):(s=ft(t)?ms:Je.current,r=t.contextTypes,i=(r=r!=null)?Pi(e,s):Ar),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Eg(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&&Wu.enqueueReplaceState(t,t.state,null)}function fh(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},np(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Lt(i):(i=ft(t)?ms:Je.current,s.context=Pi(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(hh(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Wu.enqueueReplaceState(s,s.state,null),au(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ni(e,t){try{var n="",r=t;do n+=nT(r),r=r.return;while(r);var s=n}catch(i){s=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Hc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ph(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rk=typeof WeakMap=="function"?WeakMap:Map;function vx(e,t,n){n=Dn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hu||(hu=!0,_h=r),ph(e,t)},n}function wx(e,t,n){n=Dn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){ph(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ph(e,t),typeof r!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function _g(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rk;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=zk.bind(null,e,t,n),t.then(e,e))}function Tg(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}
vendor: 10,061 bytes, line 40
40function kg(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Dn(-1,1),t.tag=2,_r(n,t,1))),n.lanes|=1),e)}var Ak=Wn.ReactCurrentOwner,dt=!1;function tt(e,t,n,r){t.child=e===null?Gw(t,null,n,r):Ai(t,e.child,n,r)}function Cg(e,t,n,r,s){n=n.render;var i=t.ref;return hi(t,s),r=ap(e,t,n,r,i,s),n=lp(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Fn(e,t,s)):(fe&&n&&Yf(t),t.flags|=1,tt(e,t,r,s),t.child)}function Pg(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!vp(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,xx(e,t,i,r,s)):(e=Il(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Wo,n(o,r)&&e.ref===t.ref)return Fn(e,t,s)}return t.flags|=1,e=Cr(i,r),e.ref=t.ref,e.return=t,t.child=e}function xx(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Wo(i,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,Fn(e,t,s)}return mh(e,t,n,r,s)}function bx(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(ti,gt),gt|=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,ae(ti,gt),gt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ae(ti,gt),gt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ae(ti,gt),gt|=r;return tt(e,t,s,n),t.child}function Sx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mh(e,t,n,r,s){var i=ft(n)?ms:Je.current;return i=Pi(t,i),hi(t,s),n=ap(e,t,n,r,i,s),r=lp(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Fn(e,t,s)):(fe&&r&&Yf(t),t.flags|=1,tt(e,t,n,s),t.child)}function Rg(e,t,n,r,s){if(ft(n)){var i=!0;nu(t)}else i=!1;if(hi(t,s),t.stateNode===null)Ol(e,t),yx(t,n,r),fh(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Lt(u):(u=ft(n)?ms:Je.current,u=Pi(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Eg(t,o,r,u),or=!1;var h=t.memoizedState;o.state=h,au(t,r,o,s),l=t.memoizedState,a!==r||h!==l||ht.current||or?(typeof c=="function"&&(hh(t,n,c,r),l=t.memoizedState),(a=or||Sg(t,n,a,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Qw(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:qt(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Lt(l):(l=ft(n)?ms:Je.current,l=Pi(t,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Eg(t,o,r,l),or=!1,h=t.memoizedState,o.state=h,au(t,r,o,s);var v=t.memoizedState;a!==d||h!==v||ht.current||or?(typeof f=="function"&&(hh(t,n,f,r),v=t.memoizedState),(u=or||Sg(t,n,u,r,h,v,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return gh(e,t,n,r,i,s)}function gh(e,t,n,r,s,i){Sx(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&pg(t,n,!1),Fn(e,t,i);r=t.stateNode,Ak.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ai(t,e.child,null,i),t.child=Ai(t,null,a,i)):tt(e,t,a,i),t.memoizedState=r.state,s&&pg(t,n,!0),t.child}function Ex(e){var t=e.stateNode;t.pendingContext?fg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fg(e,t.context,!1),rp(e,t.containerInfo)}function Ag(e,t,n,r,s){return Ri(),Jf(s),t.flags|=256,tt(e,t,n,r),t.child}var yh={dehydrated:null,treeContext:null,retryLane:0};function vh(e){return{baseLanes:e,cachePool:null,transitions:null}}function _x(e,t,n){var r=t.pendingProps,s=ge.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ae(ge,s&1),e===null)return ch(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):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=qu(o,r,0,null),e=fs(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=vh(n),t.memoizedState=yh,e):dp(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Ok(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Cr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Cr(a,i):(i=fs(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?vh(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=yh,r}return i=e.child,e=i.sibling,r=Cr(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 dp(e,t){return t=qu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Za(e,t,n,r){return r!==null&&Jf(r),Ai(t,e.child,null,n),e=dp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ok(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Hc(Error(N(422))),Za(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=qu({mode:"visible",children:r.children},s,0,null),i=fs(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ai(t,e.child,null,o),t.child.memoizedState=vh(o),t.memoizedState=yh,i);if(!(t.mode&1))return Za(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(N(419)),r=Hc(i,r,void 0),Za(e,t,o,r)}if(a=(o&e.childLanes)!==0,dt||a){if(r=Le,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,$n(e,s),nn(r,e,s,-1))}return yp(),r=Hc(Error(N(421))),Za(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Wk.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,wt=Er(s.nextSibling),bt=t,fe=!0,en=null,e!==null&&(Pt[Rt++]=jn,Pt[Rt++]=In,Pt[Rt++]=gs,jn=e.id,In=e.overflow,gs=t),t=dp(t,r.children),t.flags|=4096,t)}function Og(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),dh(e.return,t,n)}function Kc(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Tx(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(tt(e,t,r.children,n),r=ge.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&&Og(e,n,t);else if(e.tag===19)Og(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(ae(ge,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&lu(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Kc(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&lu(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Kc(t,!0,n,null,i);break;case"together":Kc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ol(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));
vendor: 4,746 bytes, line 40
40if(t.child!==null){for(e=t.child,n=Cr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nk(e,t,n){switch(t.tag){case 3:Ex(t),Ri();break;case 5:Jw(t);break;case 1:ft(t.type)&&nu(t);break;case 4:rp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ae(iu,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?_x(e,t,n):(ae(ge,ge.current&1),e=Fn(e,t,n),e!==null?e.sibling:null);ae(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Tx(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ae(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,bx(e,t,n)}return Fn(e,t,n)}var kx,wh,Cx,Px;kx=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}};wh=function(){};Cx=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ns(xn.current);var i=null;switch(n){case"input":s=Vd(e,s),r=Vd(e,r),i=[];break;case"select":s=we({},s,{value:void 0}),r=we({},r,{value:void 0}),i=[];break;case"textarea":s=Wd(e,s),r=Wd(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=eu)}Kd(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Mo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Mo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ce("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)}};Px=function(e,t,n,r){n!==r&&(t.flags|=4)};function ao(e,t){if(!fe)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 qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function jk(e,t,n){var r=t.pendingProps;switch(Qf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return ft(t.type)&&tu(),qe(t),null;case 3:return r=t.stateNode,Oi(),de(ht),de(Je),ip(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ja(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,en!==null&&(Ch(en),en=null))),wh(e,t),qe(t),null;case 5:sp(t);var s=ns(Yo.current);if(n=t.type,e!==null&&t.stateNode!=null)Cx(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return qe(t),null}if(e=ns(xn.current),Ja(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[yn]=t,r[qo]=i,e=(t.mode&1)!==0,n){case"dialog":ce("cancel",r),ce("close",r);break;case"iframe":case"object":case"embed":ce("load",r);break;case"video":case"audio":for(s=0;s<vo.length;s++)ce(vo[s],r);break;case"source":ce("error",r);break;case"img":case"image":case"link":ce("error",r),ce("load",r);break;case"details":ce("toggle",r);break;case"input":Um(r,i),ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ce("invalid",r);break;case"textarea":Bm(r,i),ce("invalid",r)}Kd(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 32,436 bytes, line 40
40o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Qa(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Qa(r.textContent,a,e),s=["children",""+a]):Mo.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ce("scroll",r)}switch(n){case"input":Ba(r),Vm(r,i,!0);break;case"textarea":Ba(r),zm(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=eu)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=nw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[yn]=t,e[qo]=r,kx(e,t,!1,!1),t.stateNode=e;e:{switch(o=qd(n,r),n){case"dialog":ce("cancel",e),ce("close",e),s=r;break;case"iframe":case"object":case"embed":ce("load",e),s=r;break;case"video":case"audio":for(s=0;s<vo.length;s++)ce(vo[s],e);s=r;break;case"source":ce("error",e),s=r;break;case"img":case"image":case"link":ce("error",e),ce("load",e),s=r;break;case"details":ce("toggle",e),s=r;break;case"input":Um(e,r),s=Vd(e,r),ce("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=we({},r,{value:void 0}),ce("invalid",e);break;case"textarea":Bm(e,r),s=Wd(e,r),ce("invalid",e);break;default:s=r}Kd(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?iw(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&rw(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&$o(e,l):typeof l=="number"&&$o(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Mo.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ce("scroll",e):l!=null&&Df(e,i,l,o))}switch(n){case"input":Ba(e),Vm(e,r,!1);break;case"textarea":Ba(e),zm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Rr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?li(e,!!r.multiple,i,!1):r.defaultValue!=null&&li(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=eu)}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 qe(t),null;case 6:if(e&&t.stateNode!=null)Px(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=ns(Yo.current),ns(xn.current),Ja(t)){if(r=t.stateNode,n=t.memoizedProps,r[yn]=t,(i=r.nodeValue!==n)&&(e=bt,e!==null))switch(e.tag){case 3:Qa(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qa(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yn]=t,t.stateNode=r}return qe(t),null;case 13:if(de(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(fe&&wt!==null&&t.mode&1&&!(t.flags&128))Kw(),Ri(),t.flags|=98560,i=!1;else if(i=Ja(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(N(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(N(317));i[yn]=t}else Ri(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else en!==null&&(Ch(en),en=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||ge.current&1?je===0&&(je=3):yp())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return Oi(),wh(e,t),e===null&&Ho(t.stateNode.containerInfo),qe(t),null;case 10:return ep(t.type._context),qe(t),null;case 17:return ft(t.type)&&tu(),qe(t),null;case 19:if(de(ge),i=t.memoizedState,i===null)return qe(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)ao(i,!1);else{if(je!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=lu(e),o!==null){for(t.flags|=128,ao(i,!1),r=o.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,o=i.alternate,o===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=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ae(ge,ge.current&1|2),t.child}e=e.sibling}i.tail!==null&&_e()>ji&&(t.flags|=128,r=!0,ao(i,!1),t.lanes=4194304)}else{if(!r)if(e=lu(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ao(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!fe)return qe(t),null}else 2*_e()-i.renderingStartTime>ji&&n!==1073741824&&(t.flags|=128,r=!0,ao(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=ge.current,ae(ge,r?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return gp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function Ik(e,t){switch(Qf(t),t.tag){case 1:return ft(t.type)&&tu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Oi(),de(ht),de(Je),ip(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sp(t),null;case 13:if(de(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(ge),null;case 4:return Oi(),null;case 10:return ep(t.type._context),null;case 22:case 23:return gp(),null;case 24:return null;default:return null}}var el=!1,Ye=!1,Dk=typeof WeakSet=="function"?WeakSet:Set,M=null;function ei(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function xh(e,t,n){try{n()}catch(r){Se(e,t,r)}}var Ng=!1;function Lk(e,t){if(rh=Jl,e=jw(),Gf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var f;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++c===r&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sh={focusedElem:e,selectionRange:n},Jl=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,x=v.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?p:qt(t.type,p),x);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(S){Se(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return v=Ng,Ng=!1,v}function Co(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&xh(t,n,i)}s=s.next}while(s!==r)}}function Hu(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 bh(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 Rx(e){var t=e.alternate;t!==null&&(e.alternate=null,Rx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[qo],delete t[ah],delete t[vk],delete t[wk])),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 Ax(e){return e.tag===5||e.tag===3||e.tag===4}function jg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ax(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 Sh(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=eu));else if(r!==4&&(e=e.child,e!==null))for(Sh(e,t,n),e=e.sibling;e!==null;)Sh(e,t,n),e=e.sibling}function Eh(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(Eh(e,t,n),e=e.sibling;e!==null;)Eh(e,t,n),e=e.sibling}var Ue=null,Xt=!1;function Xn(e,t,n){for(n=n.child;n!==null;)Ox(e,t,n),n=n.sibling}function Ox(e,t,n){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(Mu,n)}catch{}switch(n.tag){case 5:Ye||ei(n,t);case 6:var r=Ue,s=Xt;Ue=null,Xn(e,t,n),Ue=r,Xt=s,Ue!==null&&(Xt?(e=Ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ue.removeChild(n.stateNode));break;case 18:Ue!==null&&(Xt?(e=Ue,n=n.stateNode,e.nodeType===8?Fc(e.parentNode,n):e.nodeType===1&&Fc(e,n),Bo(e)):Fc(Ue,n.stateNode));break;case 4:r=Ue,s=Xt,Ue=n.stateNode.containerInfo,Xt=!0,Xn(e,t,n),Ue=r,Xt=s;break;case 0:case 11:case 14:case 15:if(!Ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&xh(n,t,o),s=s.next}while(s!==r)}Xn(e,t,n);break;case 1:if(!Ye&&(ei(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Se(n,t,a)}Xn(e,t,n);break;case 21:Xn(e,t,n);break;case 22:n.mode&1?(Ye=(r=Ye)||n.memoizedState!==null,Xn(e,t,n),Ye=r):Xn(e,t,n);break;default:Xn(e,t,n)}}function Ig(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dk),t.forEach(function(r){var s=Hk.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Bt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ue=a.stateNode,Xt=!1;break e;case 3:Ue=a.stateNode.containerInfo,Xt=!0;break e;case 4:Ue=a.stateNode.containerInfo,Xt=!0;break e}a=a.return}if(Ue===null)throw Error(N(160));Ox(i,o,s),Ue=null,Xt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){Se(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Nx(t,e),t=t.sibling}function Nx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Bt(t,e),cn(e),r&4){try{Co(3,e,e.return),Hu(3,e)}catch(p){Se(e,e.return,p)}try{Co(5,e,e.return)}catch(p){Se(e,e.return,p)}}break;case 1:Bt(t,e),cn(e),r&512&&n!==null&&ei(n,n.return);break;case 5:if(Bt(t,e),cn(e),r&512&&n!==null&&ei(n,n.return),e.flags&32){var s=e.stateNode;try{$o(s,"")}catch(p){Se(e,e.return,p)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=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&&ew(s,i),qd(a,o);var u=qd(a,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?iw(s,d):c==="dangerouslySetInnerHTML"?rw(s,d):c==="children"?$o(s,d):Df(s,c,d,u)}switch(a){case"input":Bd(s,i);break;case"textarea":tw(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?li(s,!!i.multiple,f,!1):h!==!!i.multiple&&(i.defaultValue!=null?li(s,!!i.multiple,i.defaultValue,!0):li(s,!!i.multiple,i.multiple?[]:"",!1))}s[qo]=i}catch(p){Se(e,e.return,p)}}break;case 6:if(Bt(t,e),cn(e),r&4){if(e.stateNode===null)throw Error(N(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(p){Se(e,e.return,p)}}break;case 3:if(Bt(t,e),cn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bo(t.containerInfo)}catch(p){Se(e,e.return,p)}break;case 4:Bt(t,e),cn(e);break;case 13:Bt(t,e),cn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(pp=_e())),r&4&&Ig(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ye=(u=Ye)||c,Bt(t,e),Ye=u):Bt(t,e),cn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(M=e,c=e.child;c!==null;){for(d=M=c;M!==null;){switch(h=M,f=h.child,h.tag){case 0:case 11:case 14:case 15:Co(4,h,h.return);break;case 1:ei(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(p){Se(r,n,p)}}break;case 5:ei(h,h.return);break;case 22:if(h.memoizedState!==null){Lg(d);continue}}f!==null?(f.return=h,M=f):Lg(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{s=d.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=sw("display",o))}catch(p){Se(e,e.return,p)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(p){Se(e,e.return,p)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Bt(t,e),cn(e),r&4&&Ig(e);break;case 21:break;default:Bt(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ax(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&($o(s,""),r.flags&=-33);var i=jg(e);Eh(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=jg(e);Sh(e,a,o);break;default:throw Error(N(161))}}catch(l){Se(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mk(e,t,n){M=e,jx(e)}function jx(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var s=M,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||el;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Ye;a=el;var u=Ye;if(el=o,(Ye=l)&&!u)for(M=s;M!==null;)o=M,l=o.child,o.tag===22&&o.memoizedState!==null?Mg(s):l!==null?(l.return=o,M=l):Mg(s);for(;i!==null;)M=i,jx(i),i=i.sibling;M=s,el=a,Ye=u}Dg(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,M=i):Dg(e)}}function Dg(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ye||Hu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ye)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:qt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&wg(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wg(t,o,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&&Bo(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}Ye||t.flags&512&&bh(t)}catch(h){Se(t,t.return,h)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function Lg(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function Mg(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hu(4,t)}catch(l){Se(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Se(t,s,l)}}var i=t.return;try{bh(t)}catch(l){Se(t,i,l)}break;case 5:var o=t.return;try{bh(t)}catch(l){Se(t,o,l)}}}catch(l){Se(t,t.return,l)}if(t===e){M=null;break}var a=t.sibling;if(a!==null){a.return=t.return,M=a;break}M=t.return}}var $k=Math.ceil,du=Wn.ReactCurrentDispatcher,hp=Wn.ReactCurrentOwner,jt=Wn.ReactCurrentBatchConfig,te=0,Le=null,Re=null,Be=0,gt=0,ti=Mr(0),je=0,Zo=null,vs=0,Ku=0,fp=0,Po=null,ct=null,pp=0,ji=1/0,Pn=null,hu=!1,_h=null,Tr=null,tl=!1,yr=null,fu=0,Ro=0,Th=null,Nl=-1,jl=0;function it(){return te&6?_e():Nl!==-1?Nl:Nl=_e()}function kr(e){return e.mode&1?te&2&&Be!==0?Be&-Be:bk.transition!==null?(jl===0&&(jl=yw()),jl):(e=se,e!==0||(e=window.event,e=e===void 0?16:_w(e.type)),e):1}function nn(e,t,n,r){if(50<Ro)throw Ro=0,Th=null,Error(N(185));Sa(e,n,r),(!(te&2)||e!==Le)&&(e===Le&&(!(te&2)&&(Ku|=n),je===4&&ur(e,Be)),pt(e,r),n===1&&te===0&&!(t.mode&1)&&(ji=_e()+500,Bu&&$r()))}function pt(e,t){var n=e.callbackNode;bT(e,t);var r=Ql(e,e===Le?Be:0);if(r===0)n!==null&&Km(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Km(n),t===1)e.tag===0?xk($g.bind(null,e)):zw($g.bind(null,e)),gk(function(){!(te&6)&&$r()}),n=null;else{switch(vw(r)){case 1:n=Uf;break;case 4:n=mw;break;case 16:n=Yl;break;case 536870912:n=gw;break;default:n=Yl}n=Vx(n,Ix.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ix(e,t){if(Nl=-1,jl=0,te&6)throw Error(N(327));var n=e.callbackNode;if(fi()&&e.callbackNode!==n)return null;var r=Ql(e,e===Le?Be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=pu(e,r);else{t=r;var s=te;te|=2;var i=Lx();(Le!==e||Be!==t)&&(Pn=null,ji=_e()+500,hs(e,t));do try{Vk();break}catch(a){Dx(e,a)}while(!0);Zf(),du.current=i,te=s,Re!==null?t=0:(Le=null,Be=0,t=je)}if(t!==0){if(t===2&&(s=Xd(e),s!==0&&(r=s,t=kh(e,s))),t===1)throw n=Zo,hs(e,0),ur(e,r),pt(e,_e()),n;if(t===6)ur(e,r);else{if(s=e.current.alternate,!(r&30)&&!Fk(s)&&(t=pu(e,r),t===2&&(i=Xd(e),i!==0&&(r=i,t=kh(e,i))),t===1))throw n=Zo,hs(e,0),ur(e,r),pt(e,_e()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:Yr(e,ct,Pn);break;case 3:if(ur(e,r),(r&130023424)===r&&(t=pp+500-_e(),10<t)){if(Ql(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){it(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=oh(Yr.bind(null,e,ct,Pn),t);break}Yr(e,ct,Pn);break;case 4:if(ur(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-tn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$k(r/1960))-r,10<r){e.timeoutHandle=oh(Yr.bind(null,e,ct,Pn),r);break}Yr(e,ct,Pn);break;case 5:Yr(e,ct,Pn);break;default:throw Error(N(329))}}}return pt(e,_e()),e.callbackNode===n?Ix.bind(null,e):null}function kh(e,t){var n=Po;return e.current.memoizedState.isDehydrated&&(hs(e,t).flags|=256),e=pu(e,t),e!==2&&(t=ct,ct=n,t!==null&&Ch(t)),e}function Ch(e){ct===null?ct=e:ct.push.apply(ct,e)}function Fk(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!sn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ur(e,t){for(t&=~fp,t&=~Ku,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-tn(t),r=1<<n;e[n]=-1,t&=~r}}function $g(e){if(te&6)throw Error(N(327));fi();var t=Ql(e,0);if(!(t&1))return pt(e,_e()),null;var n=pu(e,t);if(e.tag!==0&&n===2){var r=Xd(e);r!==0&&(t=r,n=kh(e,r))}if(n===1)throw n=Zo,hs(e,0),ur(e,t),pt(e,_e()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yr(e,ct,Pn),pt(e,_e()),null}function mp(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(ji=_e()+500,Bu&&$r())}}function ws(e){yr!==null&&yr.tag===0&&!(te&6)&&fi();var t=te;te|=1;var n=jt.transition,r=se;try{if(jt.transition=null,se=1,e)return e()}finally{se=r,jt.transition=n,te=t,!(te&6)&&$r()}}function gp(){gt=ti.current,de(ti)}function hs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,mk(n)),Re!==null)for(n=Re.return;n!==null;){var r=n;switch(Qf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&tu();break;case 3:Oi(),de(ht),de(Je),ip();break;case 5:sp(r);break;case 4:Oi();break;case 13:de(ge);break;case 19:de(ge);break;case 10:ep(r.type._context);break;case 22:case 23:gp()}n=n.return}if(Le=e,Re=e=Cr(e.current,null),Be=gt=t,je=0,Zo=null,fp=Ku=vs=0,ct=Po=null,ts!==null){for(t=0;t<ts.length;t++)if(n=ts[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}ts=null}return e}function Dx(e,t){do{var n=Re;try{if(Zf(),Rl.current=cu,uu){for(var r=ve.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}uu=!1}if(ys=0,Ie=Ne=ve=null,ko=!1,Qo=0,hp.current=null,n===null||n.return===null){je=1,Zo=t,Re=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=Be,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=Tg(o);if(f!==null){f.flags&=-257,kg(f,o,a,i,t),f.mode&1&&_g(i,u,t),t=f,l=u;var v=t.updateQueue;if(v===null){var p=new Set;p.add(l),t.updateQueue=p}else v.add(l);break e}else{if(!(t&1)){_g(i,u,t),yp();break e}l=Error(N(426))}}else if(fe&&a.mode&1){var x=Tg(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),kg(x,o,a,i,t),Jf(Ni(l,a));break e}}i=l=Ni(l,a),je!==4&&(je=2),Po===null?Po=[i]:Po.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=vx(i,l,t);vg(i,m);break e;case 1:a=l;var g=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Tr===null||!Tr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=wx(i,a,t);vg(i,S);break e}}i=i.return}while(i!==null)}$x(n)}catch(E){t=E,Re===n&&n!==null&&(Re=n=n.return);continue}break}while(!0)}function Lx(){var e=du.current;return du.current=cu,e===null?cu:e}function yp(){(je===0||je===3||je===2)&&(je=4),Le===null||!(vs&268435455)&&!(Ku&268435455)||ur(Le,Be)}function pu(e,t){var n=te;te|=2;var r=Lx();(Le!==e||Be!==t)&&(Pn=null,hs(e,t));do try{Uk();break}catch(s){Dx(e,s)}while(!0);if(Zf(),te=n,du.current=r,Re!==null)throw Error(N(261));return Le=null,Be=0,je}function Uk(){for(;Re!==null;)Mx(Re)}function Vk(){for(;Re!==null&&!hT();)Mx(Re)}function Mx(e){var t=Ux(e.alternate,e,gt);e.memoizedProps=e.pendingProps,t===null?$x(e):Re=t,hp.current=null}function $x(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ik(n,t),n!==null){n.flags&=32767,Re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{je=6,Re=null;return}}else if(n=jk(n,t,gt),n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);je===0&&(je=5)}function Yr(e,t,n){var r=se,s=jt.transition;try{jt.transition=null,se=1,Bk(e,t,n,r)}finally{jt.transition=s,se=r}return null}function Bk(e,t,n,r){do fi();while(yr!==null);if(te&6)throw Error(N(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(ST(e,i),e===Le&&(Re=Le=null,Be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||tl||(tl=!0,Vx(Yl,function(){return fi(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=jt.transition,jt.transition=null;var o=se;se=1;var a=te;te|=4,hp.current=null,Lk(e,n),Nx(n,e),lk(sh),Jl=!!rh,sh=rh=null,e.current=n,Mk(n),fT(),te=a,se=o,jt.transition=i}else e.current=n;if(tl&&(tl=!1,yr=e,fu=s),i=e.pendingLanes,i===0&&(Tr=null),gT(n.stateNode),pt(e,_e()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(hu)throw hu=!1,e=_h,_h=null,e;return fu&1&&e.tag!==0&&fi(),i=e.pendingLanes,i&1?e===Th?Ro++:(Ro=0,Th=e):Ro=0,$r(),null}function fi(){if(yr!==null){var e=vw(fu),t=jt.transition,n=se;try{if(jt.transition=null,se=16>e?16:e,yr===null)var r=!1;else{if(e=yr,yr=null,fu=0,te&6)throw Error(N(331));var s=te;for(te|=4,M=e.current;M!==null;){var i=M,o=i.child;if(M.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(M=u;M!==null;){var c=M;switch(c.tag){case 0:case 11:case 15:Co(8,c,i)}var d=c.child;if(d!==null)d.return=c,M=d;else for(;M!==null;){c=M;var h=c.sibling,f=c.return;if(Rx(c),c===u){M=null;break}if(h!==null){h.return=f,M=h;break}M=f}}}var v=i.alternate;if(v!==null){var p=v.child;if(p!==null){v.child=null;do{var x=p.sibling;p.sibling=null,p=x}while(p!==null)}}M=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,M=o;else e:for(;M!==null;){if(i=M,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Co(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,M=m;break e}M=i.return}}var g=e.current;for(M=g;M!==null;){o=M;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,M=y;else e:for(o=g;M!==null;){if(a=M,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Hu(9,a)}}catch(E){Se(a,a.return,E)}if(a===o){M=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,M=S;break e}M=a.return}}if(te=s,$r(),wn&&typeof wn.onPostCommitFiberRoot=="function")try{wn.onPostCommitFiberRoot(Mu,e)}catch{}r=!0}return r}finally{se=n,jt.transition=t}}return!1}function Fg(e,t,n){t=Ni(n,t),t=vx(e,t,1),e=_r(e,t,1),t=it(),e!==null&&(Sa(e,1,t),pt(e,t))}function Se(e,t,n){if(e.tag===3)Fg(e,e,n);else for(;t!==null;){if(t.tag===3){Fg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Tr===null||!Tr.has(r))){e=Ni(n,e),e=wx(t,e,1),t=_r(t,e,1),e=it(),t!==null&&(Sa(t,1,e),pt(t,e));break}}t=t.return}}function zk(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Be&n)===n&&(je===4||je===3&&(Be&130023424)===Be&&500>_e()-pp?hs(e,0):fp|=n),pt(e,t)}function Fx(e,t){t===0&&(e.mode&1?(t=Ha,Ha<<=1,!(Ha&130023424)&&(Ha=4194304)):t=1);var n=it();e=$n(e,t),e!==null&&(Sa(e,t,n),pt(e,n))}function Wk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fx(e,n)}function Hk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Fx(e,n)}var Ux;Ux=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ht.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,Nk(e,t,n);dt=!!(e.flags&131072)}else dt=!1,fe&&t.flags&1048576&&Ww(t,su,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ol(e,t),e=t.pendingProps;var s=Pi(t,Je.current);hi(t,n),s=ap(null,t,r,e,s,n);var i=lp();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(i=!0,nu(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,np(t),s.updater=Wu,t.stateNode=s,s._reactInternals=t,fh(t,r,e,n),t=gh(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Yf(t),tt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ol(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=qk(r),e=qt(r,e),s){case 0:t=mh(null,t,r,e,n);break e;case 1:t=Rg(null,t,r,e,n);break e;case 11:t=Cg(null,t,r,e,n);break e;case 14:t=Pg(null,t,r,qt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),mh(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),Rg(e,t,r,s,n);case 3:e:{if(Ex(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Qw(e,t),au(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Ni(Error(N(423)),t),t=Ag(e,t,r,n,s);break e}else if(r!==s){s=Ni(Error(N(424)),t),t=Ag(e,t,r,n,s);break e}else for(wt=Er(t.stateNode.containerInfo.firstChild),bt=t,fe=!0,en=null,n=Gw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ri(),r===s){t=Fn(e,t,n);break e}tt(e,t,r,n)}t=t.child}return t;case 5:return Jw(t),e===null&&ch(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,ih(r,s)?o=null:i!==null&&ih(r,i)&&(t.flags|=32),Sx(e,t),tt(e,t,o,n),t.child;case 6:return e===null&&ch(t),null;case 13:return _x(e,t,n);case 4:return rp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ai(t,null,r,n):tt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),Cg(e,t,r,s,n);case 7:return tt(e,t,t.pendingProps,n),t.child;case 8:return tt(e,t,t.pendingProps.children,n),t.child;case 12:return tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,ae(iu,r._currentValue),r._currentValue=o,i!==null)if(sn(i.value,o)){if(i.children===s.children&&!ht.current){t=Fn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Dn(-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),dh(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),dh(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}tt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,hi(t,n),s=Lt(s),r=r(s),t.flags|=1,tt(e,t,r,n),t.child;case 14:return r=t.type,s=qt(r,t.pendingProps),s=qt(r.type,s),Pg(e,t,r,s,n);case 15:return xx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),Ol(e,t),t.tag=1,ft(r)?(e=!0,nu(t)):e=!1,hi(t,n),yx(t,r,s),fh(t,r,s,n),gh(null,t,r,!0,e,n);case 19:return Tx(e,t,n);case 22:return bx(e,t,n)}throw Error(N(156,t.tag))};function Vx(e,t){return pw(e,t)}function Kk(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 Ot(e,t,n,r){return new Kk(e,t,n,r)}function vp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qk(e){if(typeof e=="function")return vp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mf)return 11;if(e===$f)return 14}return 2}function Cr(e,t){var n=e.alternate;return n===null?(n=Ot(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.deleti
vendor: 4,322 bytes, line 40
40ons=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 Il(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")vp(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Hs:return fs(n.children,s,i,t);case Lf:o=8,s|=8;break;case Md:return e=Ot(12,n,t,s|2),e.elementType=Md,e.lanes=i,e;case $d:return e=Ot(13,n,t,s),e.elementType=$d,e.lanes=i,e;case Fd:return e=Ot(19,n,t,s),e.elementType=Fd,e.lanes=i,e;case J0:return qu(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y0:o=10;break e;case Q0:o=9;break e;case Mf:o=11;break e;case $f:o=14;break e;case ir:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ot(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function fs(e,t,n,r){return e=Ot(7,e,r,t),e.lanes=n,e}function qu(e,t,n,r){return e=Ot(22,e,r,t),e.elementType=J0,e.lanes=n,e.stateNode={isHidden:!1},e}function qc(e,t,n){return e=Ot(6,e,null,t),e.lanes=n,e}function Gc(e,t,n){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gk(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pc(0),this.expirationTimes=Pc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pc(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function wp(e,t,n,r,s,i,o,a,l){return e=new Gk(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},np(i),e}function Yk(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ws,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Bx(e){if(!e)return Ar;e=e._reactInternals;e:{if(Es(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(ft(n))return Bw(e,n,t)}return t}function zx(e,t,n,r,s,i,o,a,l){return e=wp(n,r,!0,e,s,i,o,a,l),e.context=Bx(null),n=e.current,r=it(),s=kr(n),i=Dn(r,s),i.callback=t??null,_r(n,i,s),e.current.lanes=s,Sa(e,s,r),pt(e,r),e}function Gu(e,t,n,r){var s=t.current,i=it(),o=kr(s);return n=Bx(n),t.context===null?t.context=n:t.pendingContext=n,t=Dn(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=_r(s,t,o),e!==null&&(nn(e,s,o,i),Pl(e,s,o)),o}function mu(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 Ug(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xp(e,t){Ug(e,t),(e=e.alternate)&&Ug(e,t)}function Qk(){return null}var Wx=typeof reportError=="function"?reportError:function(e){console.error(e)};function bp(e){this._internalRoot=e}Yu.prototype.render=bp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Gu(e,t,null,null)};Yu.prototype.unmount=bp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ws(function(){Gu(null,e,null,null)}),t[Mn]=null}};function Yu(e){this._internalRoot=e}Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=bw();e={blockedOn:null,target:e,priority:t};for(var n=0;n<lr.length&&t!==0&&t<lr[n].priority;n++);lr.splice(n,0,e),n===0&&Ew(e)}};function Sp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vg(){}
vendor: 5,375 bytes, line 40
40function Jk(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=mu(o);i.call(u)}}var o=zx(t,r,e,0,null,!1,!1,"",Vg);return e._reactRootContainer=o,e[Mn]=o.current,Ho(e.nodeType===8?e.parentNode:e),ws(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=mu(l);a.call(u)}}var l=wp(e,0,!1,null,null,!1,!1,"",Vg);return e._reactRootContainer=l,e[Mn]=l.current,Ho(e.nodeType===8?e.parentNode:e),ws(function(){Gu(t,l,n,r)}),l}function Ju(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=mu(o);a.call(l)}}Gu(t,o,e,s)}else o=Jk(n,t,e,s,r);return mu(o)}ww=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=yo(t.pendingLanes);n!==0&&(Vf(t,n|1),pt(t,_e()),!(te&6)&&(ji=_e()+500,$r()))}break;case 13:ws(function(){var r=$n(e,1);if(r!==null){var s=it();nn(r,e,1,s)}}),xp(e,1)}};Bf=function(e){if(e.tag===13){var t=$n(e,134217728);if(t!==null){var n=it();nn(t,e,134217728,n)}xp(e,134217728)}};xw=function(e){if(e.tag===13){var t=kr(e),n=$n(e,t);if(n!==null){var r=it();nn(n,e,t,r)}xp(e,t)}};bw=function(){return se};Sw=function(e,t){var n=se;try{return se=e,t()}finally{se=n}};Yd=function(e,t,n){switch(t){case"input":if(Bd(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Vu(r);if(!s)throw Error(N(90));Z0(r),Bd(r,s)}}}break;case"textarea":tw(e,n);break;case"select":t=n.value,t!=null&&li(e,!!n.multiple,t,!1)}};lw=mp;uw=ws;var Xk={usingClientEntryPoint:!1,Events:[_a,Ys,Vu,ow,aw,mp]},lo={findFiberByHostInstance:es,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Zk={bundleType:lo.bundleType,version:lo.version,rendererPackageName:lo.rendererPackageName,rendererConfig:lo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hw(e),e===null?null:e.stateNode},findFiberByHostInstance:lo.findFiberByHostInstance||Qk,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 nl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nl.isDisabled&&nl.supportsFiber)try{Mu=nl.inject(Zk),wn=nl}catch{}}_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xk;_t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sp(t))throw Error(N(200));return Yk(e,t,null,n)};_t.createRoot=function(e,t){if(!Sp(e))throw Error(N(299));var n=!1,r="",s=Wx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=wp(e,1,!1,null,null,n,!1,r,s),e[Mn]=t.current,Ho(e.nodeType===8?e.parentNode:e),new bp(t)};_t.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(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=hw(t),e=e===null?null:e.stateNode,e};_t.flushSync=function(e){return ws(e)};_t.hydrate=function(e,t,n){if(!Qu(t))throw Error(N(200));return Ju(null,e,t,!0,n)};_t.hydrateRoot=function(e,t,n){if(!Sp(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Wx;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=zx(t,null,e,1,n??null,s,!1,i,o),e[Mn]=t.current,Ho(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Yu(t)};_t.render=function(e,t,n){if(!Qu(t))throw Error(N(200));return Ju(null,e,t,!1,n)};_t.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(N(40));return e._reactRootContainer?(ws(function(){Ju(null,null,e,!1,function(){e._reactRootContainer=null,e[Mn]=null})}),!0):!1};_t.unstable_batchedUpdates=mp;_t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qu(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return Ju(e,t,n,!1,r)};_t.version="18.3.1-next-f1338f8080-20240426";function Hx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hx)}catch(e){console.error(e)}}Hx(),H0.exports=_t;var ka=H0.exports;const Kx=j0(ka);var qx,Bg=ka;qx=Bg.createRoot,Bg.hydrateRoot;const eC=1,tC=1e6;let Yc=0;function nC(){return Yc=(Yc+1)%Number.MAX_SAFE_INTEGER,Yc.toString()}const Qc=new Map,zg=e=>{if(Qc.has(e))return;const t=setTimeout(()=>{Qc.delete(e),Ao({type:"REMOVE_TOAST",toastId:e})},tC);Qc.set(e,t)},rC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,eC)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
vendor: 13,981 bytes, line 40
40return n?zg(n):e.toasts.forEach(r=>{zg(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Dl=[];let Ll={toasts:[]};function Ao(e){Ll=rC(Ll,e),Dl.forEach(t=>{t(Ll)})}function sC({...e}){const t=nC(),n=s=>Ao({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Ao({type:"DISMISS_TOAST",toastId:t});return Ao({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function iC(){const[e,t]=b.useState(Ll);return b.useEffect(()=>(Dl.push(t),()=>{const n=Dl.indexOf(t);n>-1&&Dl.splice(n,1)}),[e]),{...e,toast:sC,dismiss:n=>Ao({type:"DISMISS_TOAST",toastId:n})}}function De(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Wg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Gx(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Wg(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Wg(e[s],null)}}}}function Me(...e){return b.useCallback(Gx(...e),e)}function oC(e,t){const n=b.createContext(t),r=i=>{const{children:o,...a}=i,l=b.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=b.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function Vi(e,t=[]){let n=[];function r(i,o){const a=b.createContext(o),l=n.length;n=[...n,o];const u=d=>{var m;const{scope:h,children:f,...v}=d,p=((m=h==null?void 0:h[e])==null?void 0:m[l])||a,x=b.useMemo(()=>v,Object.values(v));return w.jsx(p.Provider,{value:x,children:f})};u.displayName=i+"Provider";function c(d,h){var p;const f=((p=h==null?void 0:h[e])==null?void 0:p[l])||a,v=b.useContext(f);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const s=()=>{const i=n.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,aC(s,...t)]}function aC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function ea(e){const t=uC(e),n=b.forwardRef((r,s)=>{const{children:i,...o}=r,a=b.Children.toArray(i),l=a.find(dC);if(l){const u=l.props.children,c=a.map(d=>d===l?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:d);return w.jsx(t,{...o,ref:s,children:b.isValidElement(u)?b.cloneElement(u,void 0,c):null})}return w.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var lC=ea("Slot");function uC(e){const t=b.forwardRef((n,r)=>{const{children:s,...i}=n;if(b.isValidElement(s)){const o=fC(s),a=hC(i,s.props);return s.type!==b.Fragment&&(a.ref=r?Gx(r,o):o),b.cloneElement(s,a)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yx=Symbol("radix.slottable");function cC(e){const t=({children:n})=>w.jsx(w.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Yx,t}function dC(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yx}function hC(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function fC(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function pC(e){const t=e+"CollectionProvider",[n,r]=Vi(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:x,children:m}=p,g=j.useRef(null),y=j.useRef(new Map).current;return w.jsx(s,{scope:x,itemMap:y,collectionRef:g,children:m})};o.displayName=t;const a=e+"CollectionSlot",l=ea(a),u=j.forwardRef((p,x)=>{const{scope:m,children:g}=p,y=i(a,m),S=Me(x,y.collectionRef);return w.jsx(l,{ref:S,children:g})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",h=ea(c),f=j.forwardRef((p,x)=>{const{scope:m,children:g,...y}=p,S=j.useRef(null),E=Me(x,S),_=i(c,m);return j.useEffect(()=>(_.itemMap.set(S,{ref:S,...y}),()=>void _.itemMap.delete(S))),w.jsx(h,{[d]:"",ref:E,children:g})});f.displayName=c;function v(p){const x=i(e+"CollectionConsumer",p);return j.useCallback(()=>{const g=x.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((_,T)=>y.indexOf(_.ref.current)-y.indexOf(T.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:u,ItemSlot:f},v,r]}var mC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pe=mC.reduce((e,t)=>{const n=ea(`Primitive.${t}`),r=b.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ep(e,t){e&&ka.flushSync(()=>e.dispatchEvent(t))}function $t(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Qx(e,t=globalThis==null?void 0:globalThis.document){const n=$t(e);b.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var gC="DismissableLayer",Ph="dismissableLayer.update",yC="dismissableLayer.pointerDownOutside",vC="dismissableLayer.focusOutside",Hg,Jx=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_p=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,u=b.useContext(Jx),[c,d]=b.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=b.useState({}),v=Me(t,T=>d(T)),p=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(x),g=c?p.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=g>=m,E=xC(T=>{const k=T.target,A=[...u.branches].some(O=>O.contains(k));!S||A||(s==null||s(T),o==null||o(T),T.defaultPrevented||a==null||a())},h),_=bC(T=>{const k=T.target;[...u.branches].some(O=>O.contains(k))||(i==null||i(T),o==null||o(T),T.defaultPrevented||a==null||a())},h);return Qx(T=>{g===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},h),b.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Hg=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Kg(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Hg)}},[c,h,n,u]),b.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Kg())},[c,u]),b.useEffect(()=>{const T=()=>f({});return document.addEventListener(Ph,T),()=>document.removeEventListener(Ph,T)},[]),w.jsx(pe.div,{...l,ref:v,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:De(e.onFocusCapture,_.onFocusCapture),onBlurCapture:De(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:De(e.onPointerDownCapture,E.onPointerDownCapture)})});_p.displayName=gC;var wC="DismissableLayerBranch",Xx=b.forwardRef((e,t)=>{const n=b.useContext(Jx),r=b.useRef(null),s=Me(t,r);return b.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(pe.div,{...e,ref:s})});Xx.displayName=wC;function xC(e,t=globalThis==null?void 0:globalThis.document){const n=$t(e),r=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Zx(yC,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function bC(e,t=globalThis==null?void 0:globalThis.document){const n=$t(e),r=b.useRef(!1);return b.useEffect(()=>{const s=i=>{i.target&&!r.current&&Zx(vC,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Kg(){const e=new CustomEvent(Ph);document.dispatchEvent(e)}function Zx(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Ep(s,i):s.dispatchEvent(i)}var SC=_p,EC=Xx,on=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},_C="Portal",Tp=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=b.useState(!1);on(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Kx.createPortal(w.jsx(pe.div,{...r,ref:t}),o):null});Tp.displayName=_C;function TC(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var Ca=e=>{const{present:t,children:n}=e,r=kC(t),s=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),i=Me(r.ref,CC(s));return typeof n=="function"||r.isPresent?b.cloneElement(s,{ref:i}):null};Ca.displayName="Presence";function kC(e){const[t,n]=b.useState(),r=b.useRef(null),s=b.useRef(e),i=b.useRef("none"),o=e?"mounted":"unmounted",[a,l]=TC(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=rl(r.current);i.current=a==="mounted"?u:"none"},[a]),on(()=>{const u=r.current,c=s.current;if(c!==e){const h=i.current,f=rl(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),on(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=f=>{const p=rl(r.current).includes(f.animationName);if(f.target===t&&p&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=f=>{f.target===t&&(i.current=rl(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function rl(e){return(e==null?void 0:e.animationName)||"none"}function CC(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var PC=Nf[" useInsertionEffect ".trim().toString()]||on;function eb({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=RC({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const c=b.useRef(e!==void 0);b.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=b.useCallback(c=>{var d;if(a){const h=AC(c)?c(e):c;h!==e&&((d=o.current)==null||d.call(o,h))}else i(c)},[a,e,i,o]);return[l,u]}function RC({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),s=b.useRef(n),i=b.useRef(t);return PC(()=>{i.current=t},[t]),b.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function AC(e){return typeof e=="function"}var OC=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"}),NC="VisuallyHidden",Xu=b.forwardRef((e,t)=>w.jsx(pe.span,{...e,ref:t,style:{...OC,...e.style}}));Xu.displayName=NC;var jC=Xu,kp="ToastProvider",[Cp,IC,DC]=pC("Toast"),[tb,JU]=Vi("Toast",[DC]),[LC,Zu]=tb(kp),nb=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=b.useState(null),[u,c]=b.useState(0),d=b.useRef(!1),h=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${kp}\`. Expected non-empty \`string\`.`),w.jsx(Cp.Provider,{scope:t,children:w.jsx(LC,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>c(f=>f+1),[]),onToastRemove:b.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:o})})};nb.displayName=kp;var rb="ToastViewport",MC=["F8"],Rh="toast.viewportPause",Ah="toast.viewportResume",sb=b.forwardRef((e,t)=>
40{const{__scopeToast:n,hotkey:r=MC,label:s="Notifications ({hotkey})",...i}=e,o=Zu(rb,n),a=IC(n),l=b.useRef(null),u=b.useRef(null),c=b.useRef(null),d=b.useRef(null),h=Me(t,d,o.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=o.toastCount>0;b.useEffect(()=>{const x=m=>{var y;r.length!==0&&r.every(S=>m[S]||m.code===S)&&((y=d.current)==null||y.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),b.useEffect(()=>{const x=l.current,m=d.current;if(v&&x&&m){const g=()=>{if(!o.isClosePausedRef.current){const _=new CustomEvent(Rh);m.dispatchEvent(_),o.isClosePausedRef.current=!0}},y=()=>{if(o.isClosePausedRef.current){const _=new CustomEvent(Ah);m.dispatchEvent(_),o.isClosePausedRef.current=!1}},S=_=>{!x.contains(_.relatedTarget)&&y()},E=()=>{x.contains(document.activeElement)||y()};return x.addEventListener("focusin",g),x.addEventListener("focusout",S),x.addEventListener("pointermove",g),x.addEventListener("pointerleave",E),window.addEventListener("blur",g),window.addEventListener("focus",y),()=>{x.removeEventListener("focusin",g),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",g),x.removeEventListener("pointerleave",E),window.removeEventListener("blur",g),window.removeEventListener("focus",y)}}},[v,o.isClosePausedRef]);const p=b.useCallback(({tabbingDirection:x})=>{const g=a().map(y=>{const S=y.ref.current,E=[S,...QC(S)];return x==="forwards"?E:E.reverse()});return(x==="forwards"?g.reverse():g).flat()},[a]);return b.useEffect(()=>{const x=d.current;if(x){const m=g=>{var E,_,T;const y=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!y){const k=document.activeElement,A=g.shiftKey;if(g.target===x&&A){(E=u.current)==null||E.focus();return}const L=p({tabbingDirection:A?"backwards":"forwards"}),Q=L.findIndex(I=>I===k);Jc(L.slice(Q+1))?g.preventDefault():A?(_=u.current)==null||_.focus():(T=c.current)==null||T.focus()}};return x.addEventListener("keydown",m),()=>x.removeEventListener("keydown",m)}},[a,p]),w.jsxs(EC,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&w.jsx(Oh,{ref:u,onFocusFromOutsideViewport:()=>{const x=p({tabbingDirection:"forwards"});Jc(x)}}),w.jsx(Cp.Slot,{scope:n,children:w.jsx(pe.ol,{tabIndex:-1,...i,ref:h})}),v&&w.jsx(Oh,{ref:c,onFocusFromOutsideViewport:()=>{const x=p({tabbingDirection:"backwards"});Jc(x)}})]})});sb.displayName=rb;var ib="ToastFocusProxy",Oh=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=Zu(ib,n);return w.jsx(Xu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Oh.displayName=ib;var Pa="Toast",$C="toast.swipeStart",FC="toast.swipeMove",UC="toast.swipeCancel",VC="toast.swipeEnd",ob=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=eb({prop:r,defaultProp:s??!0,onChange:i,caller:Pa});return w.jsx(Ca,{present:n||a,children:w.jsx(WC,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:$t(e.onPause),onResume:$t(e.onResume),onSwipeStart:De(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:De(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:De(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:De(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});ob.displayName=Pa;var[BC,zC]=tb(Pa,{onClose(){}}),WC=b.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,...v}=e,p=Zu(Pa,n),[x,m]=b.useState(null),g=Me(t,I=>m(I)),y=b.useRef(null),S=b.useRef(null),E=s||p.duration,_=b.useRef(0),T=b.useRef(E),k=b.useRef(0),{onToastAdd:A,onToastRemove:O}=p,V=$t(()=>{var J;(x==null?void 0:x.contains(document.activeElement))&&((J=p.viewport)==null||J.focus()),o()}),L=b.useCallback(I=>{!I||I===1/0||(window.clearTimeout(k.current),_.current=new Date().getTime(),k.current=window.setTimeout(V,I))},[V]);b.useEffect(()=>{const I=p.viewport;if(I){const J=()=>{L(T.current),u==null||u()},H=()=>{const F=new Date().getTime()-_.current;T.current=T.current-F,window.clearTimeout(k.current),l==null||l()};return I.addEventListener(Rh,H),I.addEventListener(Ah,J),()=>{I.removeEventListener(Rh,H),I.removeEventListener(Ah,J)}}},[p.viewport,E,l,u,L]),b.useEffect(()=>{i&&!p.isClosePausedRef.current&&L(E)},[i,E,p.isClosePausedRef,L]),b.useEffect(()=>(A(),()=>O()),[A,O]);const Q=b.useMemo(()=>x?fb(x):null,[x]);return p.viewport?w.jsxs(w.Fragment,{children:[Q&&w.jsx(HC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),w.jsx(BC,{scope:n,onClose:V,children:ka.createPortal(w.jsx(Cp.ItemSlot,{scope:n,children:w.jsx(SC,{asChild:!0,onEscapeKeyDown:De(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||V(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:w.jsx(pe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...v,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:De(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,V()))}),onPointerDown:De(e.onPointerDown,I=>{I.button===0&&(y.current={x:I.clientX,y:I.clientY})}),onPointerMove:De(e.onPointerMove,I=>{if(!y.current)return;const J=I.clientX-y.current.x,H=I.clientY-y.current.y,F=!!S.current,C=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,D=C?R(0,J):0,K=C?0:R(0,H),B=I.pointerType==="touch"?10:2,X={x:D,y:K},ee={originalEvent:I,delta:X};F?(S.current=X,sl(FC,d,ee,{discrete:!1})):qg(X,p.swipeDirection,B)?(S.current=X,sl($C,c,ee,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(J)>B||Math.abs(H)>B)&&(y.current=null)}),onPointerUp:De(e.onPointerUp,I=>{const J=S.current,H=I.target;if(H.hasPointerCapture(I.pointerId)&&H.releasePointerCapture(I.pointerId),S.current=null,y.current=null,J){const F=I.currentTarget,C={originalEvent:I,delta:J};qg(J,p.swipeDirection,p.swipeThreshold)?sl(VC,f,C,{discrete:!0}):sl(UC,h,C,{discrete:!0}),F.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),HC=e=>{const{__scopeToast:t,children:n,...r}=e,s=Zu(Pa,t),[i,o]=b.useState(!1),[a,l]=b.useState(!1);return GC(()=>o(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:w.jsx(Tp,{asChild:!0,children:w.jsx(Xu,{...r,children:i&&w.jsxs(w.Fragment,{children:[s.label," ",n]})})})},KC="ToastTitle",ab=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return w.jsx(pe.div,{...r,ref:t})});ab.displayName=KC;var qC="ToastDescription",lb=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return w.jsx(pe.div,{...r,ref:t})});
vendor: 7,062 bytes, lines 40-99
40lb.displayName=qC;var ub="ToastAction",cb=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?w.jsx(hb,{altText:n,asChild:!0,children:w.jsx(Pp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ub}\`. Expected non-empty \`string\`.`),null)});cb.displayName=ub;var db="ToastClose",Pp=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=zC(db,n);return w.jsx(hb,{asChild:!0,children:w.jsx(pe.button,{type:"button",...r,ref:t,onClick:De(e.onClick,s.onClose)})})});Pp.displayName=db;var hb=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return w.jsx(pe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function fb(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),YC(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...fb(r))}}),t}function sl(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Ep(s,i):s.dispatchEvent(i)}var qg=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function GC(e=()=>{}){const t=$t(e);on(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function YC(e){return e.nodeType===e.ELEMENT_NODE}function QC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Jc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var JC=nb,pb=sb,mb=ob,gb=ab,yb=lb,vb=cb,wb=Pp;function xb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=xb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bb(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=xb(e))&&(r&&(r+=" "),r+=t);return r}const Gg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Yg=bb,Rp=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Yg(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const h=Gg(c)||Gg(d);return s[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,h]=c;return h===void 0||(u[d]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:h,...f}=c;return Object.entries(f).every(v=>{let[p,x]=v;return Array.isArray(x)?x.includes({...i,...a}[p]):{...i,...a}[p]===x})?[...u,d,h]:u},[]);return Yg(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const XC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sb=(...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 ZC={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 eP=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>b.createElement("svg",{ref:l,...ZC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Sb("lucide",s),...a},[...o.map(([u,c])=>b.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 Xe=(e,t)=>{const n=b.forwardRef(({className:r,...s},i)=>b.createElement(eP,{ref:i,iconNode:t,className:Sb(`lucide-${XC(e)}`,r),...s}));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 tP=Xe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 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 Ap=Xe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 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 nP=Xe("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 Nh=Xe("Chrome",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["line",{x1:"21.17",x2:"12",y1:"8",y2:"8",key:"a0cw5f"}],["line",{x1:"3.95",x2:"8.54",y1:"6.06",y2:"14",key:"1kftof"}],["line",{x1:"10.88",x2:"15.46",y1:"21.94",y2:"14",key:"1ymyh8"}]]);/** 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 rP=Xe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 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 sP=Xe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 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 iP=Xe("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 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 oP=Xe("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 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 aP=Xe("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 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 lP=Xe("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const uP=Xe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 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 cP=Xe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 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 dP=Xe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const hP=Xe("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** 131 * @license lucide-react v0.462.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const Eb=Xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 136 * @license lucide-react v0.462.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const fP=Xe("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Op="-",pP=e=>{const t=gP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Op);return a[0]===""&&a.length!==1&&a.shift(),_b(a,t)||mP(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},_b=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?_b(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Op);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Qg=/^\[(.+)\]$/,mP=e=>{if(Qg.test(e)){const t=Qg.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},gP=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return vP(Object.entries(e.classGroups),n).forEach(([i,o])=>{jh(o,r,i,t)}),r},jh=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Jg(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(yP(s)){jh(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}
vendor: 4,822 bytes, line 140
140Object.entries(s).forEach(([i,o])=>{jh(o,Jg(t,i),n,r)})})},Jg=(e,t)=>{let n=e;return t.split(Op).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},yP=e=>e.isThemeGetter,vP=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,wP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},Tb="!",xP=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let u=0,c=0,d;for(let x=0;x<a.length;x++){let m=a[x];if(u===0){if(m===s&&(r||a.slice(x,x+i)===t)){l.push(a.slice(c,x)),c=x+i;continue}if(m==="/"){d=x;continue}}m==="["?u++:m==="]"&&u--}const h=l.length===0?a:a.substring(c),f=h.startsWith(Tb),v=f?h.substring(1):h,p=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:v,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},bP=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},SP=e=>({cache:wP(e.cacheSize),parseClassName:xP(e),...pP(e)}),EP=/\s+/,_P=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(EP);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(u);let v=!!f,p=r(v?h.substring(0,f):h);if(!p){if(!v){a=u+(a.length>0?" "+a:a);continue}if(p=r(h),!p){a=u+(a.length>0?" "+a:a);continue}v=!1}const x=bP(c).join(":"),m=d?x+Tb:x,g=m+p;if(i.includes(g))continue;i.push(g);const y=s(p,v);for(let S=0;S<y.length;++S){const E=y[S];i.push(m+E)}a=u+(a.length>0?" "+a:a)}return a};function TP(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=kb(t))&&(r&&(r+=" "),r+=n);return r}const kb=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=kb(e[r]))&&(n&&(n+=" "),n+=t);return n};function kP(e,...t){let n,r,s,i=o;function o(l){const u=t.reduce((c,d)=>d(c),e());return n=SP(u),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=_P(l,n);return s(l,c),c}return function(){return i(TP.apply(null,arguments))}}const ue=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Cb=/^\[(?:([a-z-]+):)?(.+)\]$/i,CP=/^\d+\/\d+$/,PP=new Set(["px","full","screen"]),RP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,AP=/\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$/,OP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,NP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kn=e=>pi(e)||PP.has(e)||CP.test(e),Zn=e=>Bi(e,"length",VP),pi=e=>!!e&&!Number.isNaN(Number(e)),Xc=e=>Bi(e,"number",pi),uo=e=>!!e&&Number.isInteger(Number(e)),IP=e=>e.endsWith("%")&&pi(e.slice(0,-1)),Y=e=>Cb.test(e),er=e=>RP.test(e),DP=new Set(["length","size","percentage"]),LP=e=>Bi(e,DP,Pb),MP=e=>Bi(e,"position",Pb),$P=new Set(["image","url"]),FP=e=>Bi(e,$P,zP),UP=e=>Bi(e,"",BP),co=()=>!0,Bi=(e,t,n)=>{const r=Cb.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},VP=e=>AP.test(e)&&!OP.test(e),Pb=()=>!1,BP=e=>NP.test(e),zP=e=>jP.test(e),WP=()=>{const e=ue("colors"),t=ue("spacing"),n=ue("blur"),r=ue("brightness"),s=ue("borderColor"),i=ue("borderRadius"),o=ue("borderSpacing"),a=ue("borderWidth"),l=ue("contrast"),u=ue("grayscale"),c=ue("hueRotate"),d=ue("invert"),h=ue("gap"),f=ue("gradientColorStops"),v=ue("gradientColorStopPositions"),p=ue("inset"),x=ue("margin"),m=ue("opacity"),g=ue("padding"),y=ue("saturate"),S=ue("scale"),E=ue("sepia"),_=ue("skew"),T=ue("space"),k=ue("translate"),A=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",Y,t],L=()=>[Y,t],Q=()=>["",kn,Zn],I=()=>["auto",pi,Y],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",Y],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[pi,Y];return{cacheSize:500,separator:":",theme:{colors:[co],spacing:[kn,Zn],blur:["none","",er,Y],brightness:K(),borderColor:[e],borderRadius:["n
140one","","full",er,Y],borderSpacing:L(),borderWidth:Q(),contrast:K(),grayscale:R(),hueRotate:K(),invert:R(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[IP,Zn],inset:V(),margin:V(),opacity:K(),padding:L(),saturate:K(),scale:K(),sepia:R(),skew:K(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[er]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...J(),Y]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",uo,Y]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",uo,Y]}],"grid-cols":[{"grid-cols":[co]}],"col-start-end":[{col:["auto",{span:["full",uo,Y]},Y]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[co]}],"row-start-end":[{row:["auto",{span:[uo,Y]},Y]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[er]},er]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",er,Zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xc]}],"font-family":[{font:[co]}],"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",Y]}],"line-clamp":[{"line-clamp":["none",pi,Xc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",kn,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"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",kn,Zn]}],"underline-offset":[{"underline-offset":["auto",kn,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"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:[...J(),MP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",LP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},FP]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}
vendor: 5,172 bytes, line 140
140],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],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:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[kn,Y]}],"outline-w":[{outline:[kn,Zn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[kn,Zn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",er,UP]}],"shadow-color":[{shadow:[co]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",er,Y]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[E]}],"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":[y]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[uo,Y]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,646 bytes, line 140
140],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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[kn,Zn,Xc]}],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"]}}},HP=kP(WP);function Ze(...e){return HP(bb(e))}const KP=JC,Rb=b.forwardRef(({className:e,...t},n)=>w.jsx(pb,{ref:n,className:Ze("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Rb.displayName=pb.displayName;const qP=Rp("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ab=b.forwardRef(({className:e,variant:t,...n},r)=>w.jsx(mb,{ref:r,className:Ze(qP({variant:t}),e),...n}));Ab.displayName=mb.displayName;const GP=b.forwardRef(({className:e,...t},n)=>w.jsx(vb,{ref:n,className:Ze("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));GP.displayName=vb.displayName;const Ob=b.forwardRef(({className:e,...t},n)=>w.jsx(wb,{ref:n,className:Ze("absolute right-2 top-2 rounded-md p-1 text-foreground
140/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:w.jsx(Eb,{className:"h-4 w-4"})}));Ob.displayName=wb.displayName;const Nb=b.forwardRef(({className:e,...t},n)=>w.jsx(gb,{ref:n,className:Ze("text-sm font-semibold",e),...t}));Nb.displayName=gb.displayName;const jb=b.forwardRef(({className:e,...t},n)=>w.jsx(yb,{ref:n,className:Ze("text-sm opacity-90",e),...t}));jb.displayName=yb.displayName;function YP(){const{toasts:e}=iC();return w.jsxs(KP,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return w.jsxs(Ab,{...i,children:[w.jsxs("div",{className:"grid gap-1",children:[n&&w.jsx(Nb,{children:n}),r&&w.jsx(jb,{children:r})]}),s,w.jsx(Ob,{})]},t)}),w.jsx(Rb,{})]})}var Xg=["light","dark"],QP="(prefers-color-scheme: dark)",JP=b.createContext(void 0),XP={setTheme:e=>{},themes:[]},ZP=()=>{var e;return(e=b.useContext(JP))!=null?e:XP};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;
140${`c.remove(${a.map(v=>`'${v}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?Xg.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(v,p=!1,x=!0)=>{let m=o?o[v]:v,g=p?v+"|| ''":`'${m}'`,y="";return s&&x&&!p&&Xg.includes(v)&&(y+=`d.style.colorScheme = '${v}';`),n==="class"?p||m?y+=`c.add(${g})`:y+="null":m&&(y+=`d[s](n,${g})`),y},f=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${QP}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${d}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var eR=e=>{switch(e){case"success":return rR;case"info":return iR;case"warning":return sR;case"error":return oR;default:return null}},tR=Array(12).fill(0),nR=({visible:e,className:t})=>j.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},j.createElement("div",{className:"sonner-spinner"},tR.map((n,r)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),rR=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),sR=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),iR=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),oR=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),aR=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},j.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),lR=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ih=1,uR=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ih++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>
140(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],j.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(dR(l)&&!l.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>o.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ih++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ut=new uR,cR=(e,t)=>{let n=(t==null?void 0:t.id)||Ih++;return ut.addToast({title:e,...t,id:n}),n},dR=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",hR=cR,fR=()=>ut.toasts,pR=()=>ut.getActiveToasts(),bn=Object.assign(hR,{success:ut.success,info:ut.info,warning:ut.warning,error:ut.error,custom:ut.custom,message:ut.message,promise:ut.promise,dismiss:ut.dismiss,loading:ut.loading},{getHistory:fR,getToasts:pR});function mR(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}mR(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
140left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
140:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
140--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 141`);function il(e){return e.label!==void 0}var gR=3,yR="32px",vR="16px",Zg=4e3,wR=356,xR=14,bR=20,SR=200;function zt(...e){return e.filter(Boolean).join(" ")}function ER(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var _R=e=>{var t,n,r,s,i,o,a,l,u,c,d;let{invert:h,toast:f,unstyled:v,interacting:p,setHeights:x,visibleToasts:m,heights:g,index:y,toasts:S,expanded:E,removeToast:_,defaultRichColors:T,closeButton:k,style:A,cancelButtonStyle:O,actionButtonStyle:V,className:L="",descriptionClassName:Q="",duration:I,position:J,gap:H,loadingIcon:F,expandByDefault:C,classNames:R,icons:D,closeButtonAriaLabel:K="Close toast",pauseWhenPageIsHidden:B}=e,[X,ee]=j.useState(null),[ke,We]=j.useState(null),[re,_s]=j.useState(!1),[Kn,Br]=j.useState(!1),[qn,Ts]=j.useState(!1),[Gn,La]=j.useState(!1),[vc,Ma]=j.useState(!1),[wc,Zi]=j.useState(0),[ks,Cm]=j.useState(0),eo=j.useRef(f.duration||I||Zg),Pm=j.useRef(null),zr=j.useRef(null),w_=y===0,x_=y+1<=m,kt=f.type,Cs=f.dismissible!==!1,b_=f.className||"",S_=f.descriptionClassName||"",$a=j.useMemo(()=>g.findIndex(q=>q.toastId===f.id)||0,[g,f.id]),E_=j.useMemo(()=>{var q;return(q=f.closeButton)!=null?q:k},[f.closeButton,k]),Rm=j.useMemo(()=>f.duration||I||Zg,[f.duration,I]),xc=j.useRef(0),Ps=j.useRef(0),Am=j.useRef(0),Rs=j.useRef(null),[__,T_]=J.split("-"),Om=j.useMemo(()=>g.reduce((q,ie,he)=>he>=$a?q:q+ie.height,0),[g,$a]),Nm=lR(),k_=f.invert||h,bc=kt==="loading";Ps.current=j.useMemo(()=>$a*H+Om,[$a,Om]),j.useEffect(()=>{eo.current=Rm},[Rm]),j.useEffect(()=>{_s(!0)},[]),j.useEffect(()=>{let q=zr.current;if(q){let ie=q.getBoundingClientRect().height;return Cm(ie),x(he=>[{toastId:f.id,height:ie,position:f.position},...he]),()=>x(he=>he.filter(Ft=>Ft.toastId!==f.id))}},[x,f.id]),j.useLayoutEffect(()=>{if(!re)return;let q=zr.current,ie=q.style.height;q.style.height="auto";let he=q.getBoundingClientRect().height;q.style.height=ie,Cm(he),x(Ft=>Ft.find(Ut=>Ut.toastId===f.id)?Ft.map(Ut=>Ut.toastId===f.id?{...Ut,height:he}:Ut):[{toastId:f.id,height:he,position:f.position},...Ft])},[re,f.title,f.description,x,f.id]);let Yn=j.useCallback(()=>
141{Br(!0),Zi(Ps.current),x(q=>q.filter(ie=>ie.toastId!==f.id)),setTimeout(()=>{_(f)},SR)},[f,_,x,Ps]);j.useEffect(()=>{if(f.promise&&kt==="loading"||f.duration===1/0||f.type==="loading")return;let q;return E||p||B&&Nm?(()=>{if(Am.current<xc.current){let ie=new Date().getTime()-xc.current;eo.current=eo.current-ie}Am.current=new Date().getTime()})():eo.current!==1/0&&(xc.current=new Date().getTime(),q=setTimeout(()=>{var ie;(ie=f.onAutoClose)==null||ie.call(f,f),Yn()},eo.current)),()=>clearTimeout(q)},[E,p,f,kt,B,Nm,Yn]),j.useEffect(()=>{f.delete&&Yn()},[Yn,f.delete]);function C_(){var q,ie,he;return D!=null&&D.loading?j.createElement("div",{className:zt(R==null?void 0:R.loader,(q=f==null?void 0:f.classNames)==null?void 0:q.loader,"sonner-loader"),"data-visible":kt==="loading"},D.loading):F?j.createElement("div",{className:zt(R==null?void 0:R.loader,(ie=f==null?void 0:f.classNames)==null?void 0:ie.loader,"sonner-loader"),"data-visible":kt==="loading"},F):j.createElement(nR,{className:zt(R==null?void 0:R.loader,(he=f==null?void 0:f.classNames)==null?void 0:he.loader),visible:kt==="loading"})}return j.createElement("li",{tabIndex:0,ref:zr,className:zt(L,b_,R==null?void 0:R.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[kt],(n=f==null?void 0:f.classNames)==null?void 0:n[kt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:T,"data-styled":!(f.jsx||f.unstyled||v),"data-mounted":re,"data-
141promise":!!f.promise,"data-swiped":vc,"data-removed":Kn,"data-visible":x_,"data-y-position":__,"data-x-position":T_,"data-index":y,"data-front":w_,"data-swiping":qn,"data-dismissible":Cs,"data-type":kt,"data-invert":k_,"data-swipe-out":Gn,"data-swipe-direction":ke,"data-expanded":!!(E||C&&re),style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${Kn?wc:Ps.current}px`,"--initial-height":C?"auto":`${ks}px`,...A,...f.style},onDragEnd:()=>{Ts(!1),ee(null),Rs.current=null},onPointerDown:q=>{bc||!Cs||(Pm.current=new Date,Zi(Ps.current),q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(Ts(!0),Rs.current={x:q.clientX,y:q.clientY}))},onPointerUp:()=>{var q,ie,he,Ft;if(Gn||!Cs)return;Rs.current=null;let Ut=Number(((q=zr.current)==null?void 0:q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Qn=Number(((ie=zr.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Wr=new Date().getTime()-((he=Pm.current)==null?void 0:he.getTime()),Vt=X==="x"?Ut:Qn,Jn=Math.abs(Vt)/Wr;if(Math.abs(Vt)>=bR||Jn>.11){Zi(Ps.current),(Ft=f.onDismiss)==null||Ft.call(f,f),We(X==="x"?Ut>0?"right":"left":Qn>0?"down":"up"),Yn(),La(!0),Ma(!1);return}Ts(!1),ee(null)},onPointerMove:q=>{var ie,he,Ft,Ut;if(!Rs.current||!Cs||((ie=window.getSelection())==null?void 0:ie.toString().length)>0)return;let Qn=q.clientY-Rs.current.y,Wr=q.clientX-Rs.current.x,Vt=(he=e.swipeDirections)!=null?he:ER(J);!X&&(Math.abs(Wr)>1||Math.abs(Qn)>1)&&ee(Math.abs(Wr)>Math.abs(Qn)?"x":"y");let Jn={x:0,y:0};X==="y"?(Vt.includes("top")||Vt.includes("bottom"))&&(Vt.includes("top")&&Qn<0||Vt.includes("bottom")&&Qn>0)&&(Jn.y=Qn):X==="x"&&(Vt.includes("left")||Vt.includes("right"))&&(Vt.includes("left")&&Wr<0||Vt.includes("right")&&Wr>0)&&(Jn.x=Wr),(Math.abs(Jn.x)>0||Math.abs(Jn.y)>0)&&Ma(!0),(Ft=zr.current)==null||Ft.style.setProperty("--swipe-amount-x",`${Jn.x}px`),(Ut=zr.current)==null||Ut.style.setProperty("--swipe-amount-y",`${Jn.y}px`)}},E_&&!f.jsx?j.createElement("button",{"aria-label":K,"data-disabled":bc,"data-close-button":!0,onClick:bc||!Cs?()=>{}:()=>{var q;Yn(),(q=f.onDismiss)==null||q.call(f,f)},className:zt(R==null?void 0:R.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=D==null?void 0:D.close)!=null?i:aR):null,f.jsx||b.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:j.createElement(j.Fragment,null,kt||f.icon||f.promise?j.createElement("div",{"data-icon":"",className:zt(R==null?void 0:R.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||C_():null,f.type!=="loading"?f.icon||(D==null?void 0:D[kt])||eR(kt):null):null,j.createElement("div",{"data-content":"",className:zt(R==null?void 0:R.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},j.createElement("div",{"data-title":"",className:zt(R==null?void 0:R.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?j.createElement("div",{"data-description":"",className:zt(Q,S_,R==null?void 0:R.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),b.isValidElement(f.cancel)?f.cancel:f.cancel&&il(f.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||O,onClick:q=>{var ie,he;il(f.cancel)&&Cs&&((he=(ie=f.cancel).onClick)==null||he.call(ie,q),Yn())},className:zt(R==null?void 0:R.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,b.isValidElement(f.action)?f.action:f.action&&il(f.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||V,onClick:q=>{var ie,he;il(f.action)&&((he=(ie=f.action).onClick)==null||he.call(ie,q),!q.defaultPrevented&&Yn())},className:zt(R==null?void 0:R.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function ey(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function TR(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?vR:yR;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${o}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var kR=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:h,style:f,visibleToasts:v=gR,toastOptions:p,dir:x=ey(),gap:m=xR,loadingIcon:g,icons:y,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=e,[_,T]=j.useState([]),k=j.useMemo(()=>Array.from(new Set([r].concat(_.filter(B=>B.position).map(B=>B.position)))),[_,r]),[A,O]=j.useState([]),[V,L]=j.useState(!1),[Q,I]=j.useState(!1),[J,H]=j.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
141k":"light"),F=j.useRef(null),C=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=j.useRef(null),D=j.useRef(!1),K=j.useCallback(B=>{T(X=>{var ee;return(ee=X.find(ke=>ke.id===B.id))!=null&&ee.delete||ut.dismiss(B.id),X.filter(({id:ke})=>ke!==B.id)})},[]);return j.useEffect(()=>ut.subscribe(B=>{if(B.dismiss){T(X=>X.map(ee=>ee.id===B.id?{...ee,delete:!0}:ee));return}setTimeout(()=>{Kx.flushSync(()=>{T(X=>{let ee=X.findIndex(ke=>ke.id===B.id);return ee!==-1?[...X.slice(0,ee),{...X[ee],...B},...X.slice(ee+1)]:[B,...X]})})})}),[]),j.useEffect(()=>{if(c!=="system"){H(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:X})=>{H(X?"dark":"light")})}catch{B.addListener(({matches:ee})=>{try{H(ee?"dark":"light")}catch(ke){console.error(ke)}})}},[c]),j.useEffect(()=>{_.length<=1&&L(!1)},[_]),j.useEffect(()=>{let B=X=>{var ee,ke;s.every(We=>X[We]||X.code===We)&&(L(!0),(ee=F.current)==null||ee.focus()),X.code==="Escape"&&(document.activeElement===F.current||(ke=F.current)!=null&&ke.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[s]),j.useEffect(()=>{if(F.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,D.current=!1)}},[F.current]),j.createElement("section",{ref:t,"aria-label":`${S} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((B,X)=>{var ee;let[ke,We]=B.split("-");return _.length?j.createElement("ol",{key:B,dir:x==="auto"?ey():x,tabIndex:-1,ref:F,className:a,"data-sonner-toaster":!0,"data-theme":J,"data-y-position":ke,"data-lifted":V&&_.length>1&&!i,"data-x-position":We,style:{"--front-toast-height":`${((ee=A[0])==null?void 0:ee.height)||0}px`,"--width":`${wR}px`,"--gap":`${m}px`,...f,...TR(l,u)},onBlur:re=>{D.current&&!re.currentTarget.contains(re.relatedTarget)&&(D.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||D.current||(D.current=!0,R.current=re.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{Q||L(!1)},onDragEnd:()=>L(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},_.filter(re=>!re.position&&X===0||re.position===B).map((re,_s)=>{var Kn,Br;return j.createElement(_R,{key:re.id,icons:y,index:_s,toast:re,defaultRichColors:d,duration:(Kn=p==null?void 0:p.duration)!=null?Kn:h,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:v,closeButton:(Br=p==null?void 0:p.closeButton)!=null?Br:o,interacting:Q,position:B,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:K,toasts:_.filter(qn=>qn.position==re.position),heights:A.filter(qn=>qn.position==re.position),setHeights:O,expandByDefault:i,gap:m,loadingIcon:g,expanded:V,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const CR=({...e})=>{const{theme:t="system"}=ZP();return w.jsx(kR,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};function On(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}var PR="DismissableLayer",Dh="dismissableLayer.update",RR="dismissableLayer.pointerDownOutside",AR="dismissableLayer.focusOutside",ty,Ib=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Db=b.forwardRef((e,t)=>
vendor: 4,222 bytes, line 141
141{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,u=b.useContext(Ib),[c,d]=b.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=b.useState({}),v=Me(t,T=>d(T)),p=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(x),g=c?p.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=g>=m,E=jR(T=>{const k=T.target,A=[...u.branches].some(O=>O.contains(k));!S||A||(s==null||s(T),o==null||o(T),T.defaultPrevented||a==null||a())},h),_=IR(T=>{const k=T.target;[...u.branches].some(O=>O.contains(k))||(i==null||i(T),o==null||o(T),T.defaultPrevented||a==null||a())},h);return Qx(T=>{g===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},h),b.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ty=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),ny(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ty)}},[c,h,n,u]),b.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),ny())},[c,u]),b.useEffect(()=>{const T=()=>f({});return document.addEventListener(Dh,T),()=>document.removeEventListener(Dh,T)},[]),w.jsx(pe.div,{...l,ref:v,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:On(e.onFocusCapture,_.onFocusCapture),onBlurCapture:On(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:On(e.onPointerDownCapture,E.onPointerDownCapture)})});Db.displayName=PR;var OR="DismissableLayerBranch",NR=b.forwardRef((e,t)=>{const n=b.useContext(Ib),r=b.useRef(null),s=Me(t,r);return b.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(pe.div,{...e,ref:s})});NR.displayName=OR;function jR(e,t=globalThis==null?void 0:globalThis.document){const n=$t(e),r=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Lb(RR,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function IR(e,t=globalThis==null?void 0:globalThis.document){const n=$t(e),r=b.useRef(!1);return b.useEffect(()=>{const s=i=>{i.target&&!r.current&&Lb(AR,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ny(){const e=new CustomEvent(Dh);document.dispatchEvent(e)}function Lb(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Ep(s,i):s.dispatchEvent(i)}var DR=Nf[" useId ".trim().toString()]||(()=>{}),LR=0;function Zc(e){const[t,n]=b.useState(DR());return on(()=>{e||n(r=>r??String(LR++))},[e]),e||(t?`radix-${t}`:"")}const MR=["top","right","bottom","left"],Or=Math.min,yt=Math.max,gu=Math.round,ol=Math.floor,Nr=e=>({x:e,y:e}),$R={left:"right",right:"left",bottom:"top",top:"bottom"},FR={start:"end",end:"start"};function Lh(e,t,n){return yt(e,Or(t,n))}function Un(e,t){return typeof e=="function"?e(t):e}function Vn(e){return e.split("-")[0]}function zi(e){return e.split("-")[1]}function Np(e){return e==="x"?"y":"x"}function jp(e){return e==="y"?"height":"width"}function jr(e){return["top","bottom"].includes(Vn(e))?"y":"x"}function Ip(e){return Np(jr(e))}function UR(e,t,n){n===void 0&&(n=!1);const r=zi(e),s=Ip(e),i=jp(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=yu(o)),[o,yu(o)]}function VR(e){const t=yu(e);return[Mh(e),t,Mh(t)]}function Mh(e){return e.replace(/start|end/g,t=>FR[t])}
vendor: 1,536 bytes, line 141
141function BR(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function zR(e,t,n,r){const s=zi(e);let i=BR(Vn(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Mh)))),i}function yu(e){return e.replace(/left|right|bottom|top/g,t=>$R[t])}function WR(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mb(e){return typeof e!="number"?WR(e):{top:e,right:e,bottom:e,left:e}}function vu(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function ry(e,t,n){let{reference:r,floating:s}=e;const i=jr(t),o=Ip(t),a=jp(o),l=Vn(t),u=i==="y",c=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let f;switch(l){case"top":f={x:c,y:r.y-s.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-s.width,y:d};break;default:f={x:r.x,y:r.y}}switch(zi(t)){case"start":f[o]-=h*(n&&u?-1:1);break;case"end":f[o]+=h*(n&&u?-1:1);break}return f}const HR=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:d}=ry(u,r,l),h=r,f={},v=0;for(let p=0;p<a.length;p++){const{name:x,fn:m}=a[p],{x:g,y,data:S,reset:E}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:f,re
vendor: 9,374 bytes, line 141
141cts:u,platform:o,elements:{reference:e,floating:t}});c=g??c,d=y??d,f={...f,[x]:{...f[x],...S}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:c,y:d}=ry(u,h,l)),p=-1)}return{x:c,y:d,placement:h,strategy:s,middlewareData:f}};async function ta(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=Un(t,e),v=Mb(f),x=a[h?d==="floating"?"reference":"floating":d],m=vu(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),g=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},E=vu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:l}):g);return{top:(m.top-E.top+v.top)/S.y,bottom:(E.bottom-m.bottom+v.bottom)/S.y,left:(m.left-E.left+v.left)/S.x,right:(E.right-m.right+v.right)/S.x}}const KR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Un(e,t)||{};if(u==null)return{};const d=Mb(c),h={x:n,y:r},f=Ip(s),v=jp(f),p=await o.getDimensions(u),x=f==="y",m=x?"top":"left",g=x?"bottom":"right",y=x?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[f]-h[f]-i.floating[v],E=h[f]-i.reference[f],_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let T=_?_[y]:0;(!T||!await(o.isElement==null?void 0:o.isElement(_)))&&(T=a.floating[y]||i.floating[v]);const k=S/2-E/2,A=T/2-p[v]/2-1,O=Or(d[m],A),V=Or(d[g],A),L=O,Q=T-p[v]-V,I=T/2-p[v]/2+k,J=Lh(L,I,Q),H=!l.arrow&&zi(s)!=null&&I!==J&&i.reference[v]/2-(I<L?O:V)-p[v]/2<0,F=H?I<L?I-L:I-Q:0;return{[f]:h[f]+F,data:{[f]:J,centerOffset:I-J-F,...H&&{alignmentOffset:F}},reset:H}}}),qR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...x}=Un(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Vn(s),g=jr(a),y=Vn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=h||(y||!p?[yu(a)]:VR(a)),_=v!=="none";!h&&_&&E.push(...zR(a,p,v,S));const T=[a,...E],k=await ta(t,x),A=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&A.push(k[m]),d){const I=UR(s,o,S);A.push(k[I[0]],k[I[1]])}if(O=[...O,{placement:s,overflows:A}],!A.every(I=>I<=0)){var V,L;const I=(((V=i.flip)==null?void 0:V.index)||0)+1,J=T[I];if(J)return{data:{index:I,overflows:O},reset:{placement:J}};let H=(L=O.filter(F=>F.overflows[0]<=0).sort((F,C)=>F.overflows[1]-C.overflows[1])[0])==null?void 0:L.placement;if(!H)switch(f){case"bestFit":{var Q;const F=(Q=O.filter(C=>{if(_){const R=jr(C.placement);return R===g||R==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,D)=>R+D,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:Q[0];F&&(H=F);break}case"initialPlacement":H=a;break}if(s!==H)return{reset:{placement:H}}}return{}}}};function sy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function iy(e){return MR.some(t=>e[t]>=0)}const GR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Un(e,t);switch(r){case"referenceHidden":{const i=await ta(t,{...s,elementContext:"reference"}),o=sy(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:iy(o)}}}case"escaped":{const i=await ta(t,{...s,altBoundary:!0}),o=sy(i,n.floating);return{data:{escapedOffsets:o,escaped:iy(o)}}}default:return{}}}}};async function YR(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Vn(n),a=zi(n),l=jr(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,d=Un(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(f=a==="end"?v*-1:v),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const QR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await YR(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},JR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:m,y:g}=x;return{x:m,y:g}}},...l}=Un(e,t),u={x:n,y:r},c=await ta(t,l),d=jr(Vn(s)),h=Np(d);let f=u[h],v=u[d];if(i){const x=h==="y"?"top":"left",m=h==="y"?"bottom":"right",g=f+c[x],y=f-c[m];f=Lh(g,f,y)}if(o){const x=d==="y"?"top":"left",m=d==="y"?"bottom":"right",g=v+c[x],y=v-c[m];v=Lh(g,v,y)}const p=a.fn({...t,[h]:f,[d]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:i,[d]:o}}}}}},XR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Un(e,t),c={x:n,y:r},d=jr(s),h=Np(d);let f=c[h],v=c[d];const p=Un(a,t),x=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const y=h==="y"?"height":"width",S=i.reference[h]-i.floating[y]+x.mainAxis,E=i.reference[h]+i.reference[y]-x.mainAxis;f<S?f=S:f>E&&(f=E)}if(u){var m,g;const y=h==="y"?"width":"height",S=["top","left"].includes(Vn(s)),E=i.reference[d]-i.floating[y]+(S&&((m=o.offset)==null?void 0:m[d])||0)+(S?0:x.crossAxis),_=i.reference[d]+i.reference[y]+(S?0:((g=o.offset)==null?void 0:g[d])||0)-(S?x.crossAxis:0);v<E?v=E:v>_&&(v=_)}return{[h]:f,[d]:v}}}},ZR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...u}=Un(e,t),c=await ta(t,u),d=Vn(s),h=zi(s),f=jr(s)==="y",{width:v,height:p}=i.floating;let x,m;d==="top"||d==="bottom"?(x=d,m=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=d,x=h==="end"?"top":"bottom");const g=p-c.top-c.bottom,y=v-c.left-c.right,S=Or(p-c[x],g),E=Or(v-c[m],y),_=!t.middlewareData.shift;let T=S,k=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=g),_&&!h){const O=yt(c.left,0),V=yt(c.right,0),L=yt(c.top,0),Q=yt(c.bottom,0);f?k=v-2*(O!==0||V!==0?O+V:yt(c.left,c.right)):T=p-2*(L!==0||Q!==0?L+Q:yt(c.top,c.bottom))}await l({...t,availableWidth:k,availableHeight:T});const A=await o.getDimensions(a.floating);return v!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function ec(){return typeof window<"u"}function Wi(e){return $b(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Tn(e){var t;return(t=($b(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $b(e){return ec()?e instanceof Node||e instanceof St(e).Node:!1}function an(e){return ec()?e instanceof Element||e instanceof St(e).Element:!1}function En(e){return ec()?e instanceof HTMLElement||e instanceof St(e).HTMLElement:!1}function oy(e){return!ec()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}function Ra(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=ln(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function eA(e){return["table","td","th"].includes(Wi(e))}function tc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Dp(e){const t=Lp(),n=an(e)?ln(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function tA(e){let t=Ir(e);for(;En(t)&&!Ii(t);){if(Dp(t))return t;if(tc(t))return null;t=Ir(t)}return null}function Lp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ii(e){return["html","body","#document"].includes(Wi(e))}function ln(e){return St(e).getComputedStyle(e)}function nc(e){return an(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ir(e){if(Wi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||oy(e)&&e.host||Tn(e);return oy(t)?t.host:t}function Fb(e){const t=Ir(e);return Ii(t)?e.ownerDocument?e.ownerDocument.body:e.body:En(t)&&Ra(t)?t:Fb(t)}function na(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Fb(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=St(s);if(i){const a=$h(o);
vendor: 5,525 bytes, line 141
141return t.concat(o,o.visualViewport||[],Ra(s)?s:[],a&&n?na(a):[])}return t.concat(s,na(s,[],n))}function $h(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ub(e){const t=ln(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=En(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=gu(n)!==i||gu(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Mp(e){return an(e)?e:e.contextElement}function mi(e){const t=Mp(e);if(!En(t))return Nr(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Ub(t);let o=(i?gu(n.width):n.width)/r,a=(i?gu(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const nA=Nr(0);function Vb(e){const t=St(e);return!Lp()||!t.visualViewport?nA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==St(e)?!1:t}function xs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Mp(e);let o=Nr(1);t&&(r?an(r)&&(o=mi(r)):o=mi(e));const a=rA(i,n,r)?Vb(i):Nr(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,d=s.height/o.y;if(i){const h=St(i),f=r&&an(r)?St(r):r;let v=h,p=$h(v);for(;p&&r&&f!==v;){const x=mi(p),m=p.getBoundingClientRect(),g=ln(p),y=m.left+(p.clientLeft+parseFloat(g.paddingLeft))*x.x,S=m.top+(p.clientTop+parseFloat(g.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,d*=x.y,l+=y,u+=S,v=St(p),p=$h(v)}}return vu({width:c,height:d,x:l,y:u})}function sA(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=Tn(r),a=t?tc(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Nr(1);const c=Nr(0),d=En(r);if((d||!d&&!i)&&((Wi(r)!=="body"||Ra(o))&&(l=nc(r)),En(r))){const h=xs(r);u=mi(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function iA(e){return Array.from(e.getClientRects())}function Fh(e,t){const n=nc(e).scrollLeft;return t?t.left+n:xs(Tn(e)).left+n}function oA(e){const t=Tn(e),n=nc(e),r=e.ownerDocument.body,s=yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Fh(e);const a=-n.scrollTop;return ln(r).direction==="rtl"&&(o+=yt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function aA(e,t){const n=St(e),r=Tn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Lp();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function lA(e,t){const n=xs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=En(e)?mi(e):Nr(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function ay(e,t,n){let r;if(t==="viewport")r=aA(e,n);else if(t==="document")r=oA(Tn(e));else if(an(t))r=lA(t,n);else{const s=Vb(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return vu(r)}function Bb(e,t){const n=Ir(e);return n===t||!an(n)||Ii(n)?!1:ln(n).position==="fixed"||Bb(n,t)}function uA(e,t){const n=t.get(e);if(n)return n;let r=na(e,[],!1).filter(a=>an(a)&&Wi(a)!=="body"),s=null;const i=ln(e).position==="fixed";let o=i?Ir(e):e;for(;an(o)&&!Ii(o);){const a=ln(o),l=Dp(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Ra(o)&&!l&&Bb(e,o))?r=r.filter(c=>c!==o):s=a,o=Ir(o)}return t.set(e,r),r}function cA(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?tc(t)?[]:uA(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=ay(t,c,s);return u.top=yt(d.top,u.top),u.right=Or(d.right,u.right),u.bottom=Or(d.bottom,u.bottom),u.left=yt(d.left,u.left),u},ay(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function dA(e){const{width:t,height:n}=Ub(e);return{width:t,height:n}}function hA(e,t,n){const r=En(t),s=Tn(t),i=n==="fixed",o=xs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Nr(0);if(r||!r&&!i)if((Wi(t)!=="body"||Ra(s))&&(a=nc(t)),r){const f=xs(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&(l.x=Fh(s));let u=0,c=0;if(s&&!r&&!i){const f=s.getBoundingClientRect();c=f.top+a.scrollTop,u=f.left+a.scrollLeft-Fh(s,f)}const d=o.left+a.scrollLeft-l.x-u,h=o.top+a.scrollTop-l.y-c;return{x:d,y:h,width:o.width,height:o.height}}function ed(e){return ln(e).position==="static"}function ly(e,t){if(!En(e)||ln(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Tn(e)===n&&(n=n.ownerDocument.body),n}function zb(e,t){const n=St(e);if(tc(e))return n;if(!En(e)){let s=Ir(e);for(;s&&!Ii(s);){if(an(s)&&!ed(s))return s;s=Ir(s)}return n}let r=ly(e,t);for(;r&&eA(r)&&ed(r);)r=ly(r,t);return r&&Ii(r)&&ed(r)&&!Dp(r)?n:r||tA(e)||n}const fA=async function(e){const t=this.getOffsetParent||zb,n=this.getDimensions,r=await n(e.floating);return{reference:hA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pA(e){return ln(e).direction==="rtl"}const mA={convertOffsetParentRelativeRectToViewportRelativeRect:sA,getDocumentElement:Tn,getClippingRect:cA,getOffsetParent:zb,getElementRects:fA,getClientRects:iA,getDimensions:dA,getScale:mi,isElement:an,isRTL:pA};function gA(e,t){let n=null,r;const s=Tn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;
vendor: 9,573 bytes, line 141
141const f=ol(c),v=ol(s.clientWidth-(u+d)),p=ol(s.clientHeight-(c+h)),x=ol(u),g={rootMargin:-f+"px "+-v+"px "+-p+"px "+-x+"px",threshold:yt(0,Or(1,l))||1};let y=!0;function S(E){const _=E[0].intersectionRatio;if(_!==l){if(!y)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(S,{...g,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,g)}n.observe(e)}return o(!0),i}function yA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Mp(e),c=s||i?[...u?na(u):[],...na(t)]:[];c.forEach(m=>{s&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=u&&a?gA(u,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(m=>{let[g]=m;g&&g.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let v,p=l?xs(e):null;l&&x();function x(){const m=xs(e);p&&(m.x!==p.x||m.y!==p.y||m.width!==p.width||m.height!==p.height)&&n(),p=m,v=requestAnimationFrame(x)}return n(),()=>{var m;c.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d==null||d(),(m=f)==null||m.disconnect(),f=null,l&&cancelAnimationFrame(v)}}const vA=QR,wA=JR,xA=qR,bA=ZR,SA=GR,uy=KR,EA=XR,_A=(e,t,n)=>{const r=new Map,s={platform:mA,...n},i={...s.platform,_c:r};return HR(e,t,{...s,platform:i})};var Ml=typeof document<"u"?b.useLayoutEffect:b.useEffect;function wu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!wu(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!wu(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Wb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cy(e,t){const n=Wb(e);return Math.round(t*n)/n}function td(e){const t=b.useRef(e);return Ml(()=>{t.current=e}),t}function TA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=b.useState(r);wu(h,r)||f(r);const[v,p]=b.useState(null),[x,m]=b.useState(null),g=b.useCallback(C=>{C!==_.current&&(_.current=C,p(C))},[]),y=b.useCallback(C=>{C!==T.current&&(T.current=C,m(C))},[]),S=i||v,E=o||x,_=b.useRef(null),T=b.useRef(null),k=b.useRef(c),A=l!=null,O=td(l),V=td(s),L=td(u),Q=b.useCallback(()=>{if(!_.current||!T.current)return;const C={placement:t,strategy:n,middleware:h};V.current&&(C.platform=V.current),_A(_.current,T.current,C).then(R=>{const D={...R,isPositioned:L.current!==!1};I.current&&!wu(k.current,D)&&(k.current=D,ka.flushSync(()=>{d(D)}))})},[h,t,n,V,L]);Ml(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[u]);const I=b.useRef(!1);Ml(()=>(I.current=!0,()=>{I.current=!1}),[]),Ml(()=>{if(S&&(_.current=S),E&&(T.current=E),S&&E){if(O.current)return O.current(S,E,Q);Q()}},[S,E,Q,O,A]);const J=b.useMemo(()=>({reference:_,floating:T,setReference:g,setFloating:y}),[g,y]),H=b.useMemo(()=>({reference:S,floating:E}),[S,E]),F=b.useMemo(()=>{const C={position:n,left:0,top:0};if(!H.floating)return C;const R=cy(H.floating,c.x),D=cy(H.floating,c.y);return a?{...C,transform:"translate("+R+"px, "+D+"px)",...Wb(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:D}},[n,a,H.floating,c.x,c.y]);return b.useMemo(()=>({...c,update:Q,refs:J,elements:H,floatingStyles:F}),[c,Q,J,H,F])}const kA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?uy({element:r.current,padding:s}).fn(n):{}:r?uy({element:r,padding:s}).fn(n):{}}}},CA=(e,t)=>({...vA(e),options:[e,t]}),PA=(e,t)=>({...wA(e),options:[e,t]}),RA=(e,t)=>({...EA(e),options:[e,t]}),AA=(e,t)=>({...xA(e),options:[e,t]}),OA=(e,t)=>({...bA(e),options:[e,t]}),NA=(e,t)=>({...SA(e),options:[e,t]}),jA=(e,t)=>({...kA(e),options:[e,t]});var IA="Arrow",Hb=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return w.jsx(pe.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hb.displayName=IA;var DA=Hb;function LA(e){const[t,n]=b.useState(void 0);return on(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Kb="Popper",[qb,Gb]=Vi(Kb),[XU,Yb]=qb(Kb),Qb="PopperAnchor",Jb=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Yb(Qb,n),o=b.useRef(null),a=Me(t,o),l=b.useRef(null);return b.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||o.current,u!==l.current&&i.onAnchorChange(l.current)}),r?null:w.jsx(pe.div,{...s,ref:a})});Jb.displayName=Qb;var $p="PopperContent",[MA,$A]=qb($p),Xb=b.forwardRef((e,t)=>{var re,_s,Kn,Br,qn,Ts;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:v,...p}=e,x=Yb($p,n),[m,g]=b.useState(null),y=Me(t,Gn=>g(Gn)),[S,E]=b.useState(null),_=LA(S),T=(_==null?void 0:_.width)??0,k=(_==null?void 0:_.height)??0,A=r+(i!=="center"?"-"+i:""),O=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},V=Array.isArray(u)?u:[u],L=V.length>0,Q={padding:O,boundary:V.filter(UA),altBoundary:L},{refs:I,floatingStyles:J,placement:H,isPositioned:F,middlewareData:C}=TA({strategy:"fixed",placement:A,whileElementsMounted:(...Gn)=>yA(...Gn,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[CA({mainAxis:s+k,alignmentAxis:o}),l&&PA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?RA():void 0,...Q}),l&&AA({...Q}),OA({...Q,apply:({elements:Gn,rects:La,availableWidth:vc,availableHeight:Ma})=>{const{width:wc,height:Zi}=La.reference,ks=Gn.floating.style;ks.setProperty("--radix-popper-available-width",`${vc}px`),ks.setProperty("--radix-popper-available-height",`${Ma}px`),ks.setProperty("--radix-popper-anchor-width",`${wc}px`),ks.setProperty("--radix-popper-anchor-height",`${Zi}px`)}}),S&&jA({element:S,padding:a}),VA({arrowWidth:T,arrowHeight:k}),h&&NA({strategy:"referenceHidden",...Q})]}),[R,D]=tS(H),K=$t(v);on(()=>{F&&(K==null||K())},[F,K]);const B=(re=C.arrow)==null?void 0:re.x,X=(_s=C.arrow)==null?void 0:_s.y,ee=((Kn=C.arrow)==null?void 0:Kn.centerOffset)!==0,[ke,We]=b.useState();return on(()=>{m&&We(window.getComputedStyle(m).zIndex)},[m]),w.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:F?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ke,"--radix-popper-transform-origin":[(Br=C.transformOrigin)==null?void 0:Br.x,(qn=C.transformOrigin)==null?void 0:qn.y].join(" "),...((Ts=C.hide)==null?void 0:Ts.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(MA,{scope:n,placedSide:R,onArrowChange:E,arrowX:B,arrowY:X,shouldHideArrow:ee,children:w.jsx(pe.div,{"data-side":R,"data-align":D,...p,ref:y,style:{...p.style,animation:F?void 0:"none"}})})})});Xb.displayName=$p;var Zb="PopperArrow",FA={top:"bottom",right:"left",bottom:"top",left:"right"},eS=b.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=$A(Zb,r),o=FA[i.placedSide];return w.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:w.jsx(DA,{...s,ref:n,style:{...s.style,display:"block"}})})});eS.displayName=Zb;function UA(e){return e!==null}var VA=e=>({name:"transformOrigin",options:e,fn(t){var x,m,g;const{placement:n,rects:r,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,c]=tS(n),d={start:"0%",center:"50%",end:"100%"}[c],h=(((m=s.arrow)==null?void 0:m.x)??0)+a/2,f=(((g=s.arrow)==null?void 0:g.y)??0)+l/2;let v="",p="";return u==="bottom"?(v=o?d:`${h}px`,p=`${-l}px`):u==="top"?(v=o?d:`${h}px`,p=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,p=o?d:`${f}px`):u==="left"&&(v=`${r.floating.width+l}px`,p=o?d:`${f}px`),{data:{x:v,y:p}}}});function tS(e){const[t,n="center"]=e.split("-");return[t,n]}var BA=Jb,zA=Xb,WA=eS;function HA(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var nS=e=>{const{present:t,children:n}=e,r=KA(t),s=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),i=Me(r.ref,qA(s));return typeof n=="function"||r.isPresent?b.cloneElement(s,{ref:i}
vendor: 4,278 bytes, line 141
141):null};nS.displayName="Presence";function KA(e){const[t,n]=b.useState(),r=b.useRef(null),s=b.useRef(e),i=b.useRef("none"),o=e?"mounted":"unmounted",[a,l]=HA(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=al(r.current);i.current=a==="mounted"?u:"none"},[a]),on(()=>{const u=r.current,c=s.current;if(c!==e){const h=i.current,f=al(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),on(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=f=>{const p=al(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&p&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=f=>{f.target===t&&(i.current=al(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function al(e){return(e==null?void 0:e.animationName)||"none"}function qA(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var[rc,ZU]=Vi("Tooltip",[Gb]),Fp=Gb(),rS="TooltipProvider",GA=700,dy="tooltip.open",[YA,sS]=rc(rS),iS=e=>{const{__scopeTooltip:t,delayDuration:n=GA,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),w.jsx(YA,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:i})};iS.displayName=rS;var oS="Tooltip",[eV,sc]=rc(oS),Uh="TooltipTrigger",QA=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=sc(Uh,n),i=sS(Uh,n),o=Fp(n),a=b.useRef(null),l=Me(t,a,s.onTriggerChange),u=b.useRef(!1),c=b.useRef(!1),d=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),w.jsx(BA,{asChild:!0,...o,children:w.jsx(pe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:On(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),c.current=!0)}),onPointerLeave:On(e.onPointerLeave,()=>{s.onTriggerLeave(),c.current=!1}),onPointerDown:On(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:On(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:On(e.onBlur,s.onClose),onClick:On(e.onClick,s.onClose)})})});QA.displayName=Uh;var JA="TooltipPortal",[tV,XA]=rc(JA,{forceMount:void 0}),Di="TooltipContent",aS=b.forwardRef((e,t)=>{const n=XA(Di,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=sc(Di,e.__scopeTooltip);return w.jsx(nS,{present:r||o.open,children:o.disableHoverableContent?w.jsx(lS,{side:s,...i,ref:t}):w.jsx(ZA,{side:s,...i,ref:t})})}),ZA=b.forwardRef((e,t)=>{const n=sc(Di,e.__scopeTooltip),r=sS(Di,e.__scopeTooltip),s=b.useRef(null),i=Me(t,s),[o,a]=b.useState(null),{trigger:l,onClose:u}=n,c=s.current,{onPointerInTransitChange:d}=r,h=b.useCallback(()=>{a(null),d(!1)},[d]),f=b.useCallback((v,p)=>{const x=v.currentTarget,m={x:v.clientX,y:v.clientY},g=sO(m,x.getBoundingClientRect()),y=iO(m,g),S=oO(p.getBoundingClientRect()),E=lO([...y,...S]);a(E),d(!0)},[d]);return b.useEffect(()=>()=>h(),[h]),b.useEffect(()=>
141{if(l&&c){const v=x=>f(x,c),p=x=>f(x,l);return l.addEventListener("pointerleave",v),c.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",v),c.removeEventListener("pointerleave",p)}}},[l,c,f,h]),b.useEffect(()=>{if(o){const v=p=>{const x=p.target,m={x:p.clientX,y:p.clientY},g=(l==null?void 0:l.contains(x))||(c==null?void 0:c.contains(x)),y=!aO(m,o);g?h():y&&(h(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,c,o,u,h]),w.jsx(lS,{...e,ref:i})}),[eO,tO]=rc(oS,{isInside:!1}),nO=cC("TooltipContent"),lS=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=sc(Di,n),u=Fp(n),{onClose:c}=l;return b.useEffect(()=>(document.addEventListener(dy,c),()=>document.removeEventListener(dy,c)),[c]),b.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),w.jsx(Db,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:w.jsxs(zA,{"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:[w.jsx(nO,{children:r}),w.jsx(eO,{scope:n,isInside:!0,children:w.jsx(jC,{id:l.contentId,role:"tooltip",children:s||r})})]})})});aS.displayName=Di;var uS="TooltipArrow",rO=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Fp(n);return tO(uS,n).isInside?null:w.jsx(WA,{...s,...r,ref:t})});rO.displayName=uS;function sO(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function iO(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 oO(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function aO(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i],l=t[o],u=a.x,c=a.y,d=l.x,h=l.y;c>r!=h>r&&n<(d-u)*(r-c)/(h-c)+u&&(s=!s)}return s}function lO(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),uO(t)}function uO(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var cO=iS,cS=aS;const dO=cO,hO=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>w.jsx(cS,{ref:r,sideOffset:t,className:Ze("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}));hO.displayName=cS.displayName;var ic=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},oc=typeof window>"u"||"Deno"in globalThis;function Gt(){}function fO(e,t){return typeof e=="function"?e(t):e}function pO(e){return typeof e=="number"&&e>=0&&e!==1/0}function mO(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vh(e,t){return typeof e=="function"?e(t):e}function gO(e,t){return typeof e=="function"?e(t):e}function hy(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Up(o,t.options))return!1}else if(!sa(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function fy(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ra(t.options.mutationKey)!==ra(i))return!1}else if(!sa(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Up(e,t){return((t==null?void 0:t.queryKeyHashFn)||ra)(e)}function ra(e){return JSON.stringify(e,(t,n)=>Bh(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function sa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>sa(e[n],t[n])):!1}function dS(e,t){if(e===t)return e;const n=py(e)&&py(t);if(n||Bh(e)&&Bh(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<o;c++){const d=n?c:i[c];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,u++):(a[d]=dS(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return s===o&&u===s?e:a}return t}function py(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Bh(e){if(!my(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!my(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function my(e){return Object.prototype.toString.call(e)==="[object Object]"}function yO(e){return new Promise(t=>{setTimeout(t,e)})}function vO(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?dS(e,t):t}function wO(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function xO(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vp=Symbol();function hS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Vp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var os,dr,wi,T0,bO=(T0=class extends ic{constructor(){super();ne(this,os);ne(this,dr);ne(this,wi);G(this,wi,t=>{if(!oc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,dr)||this.setEventListener(P(this,wi))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,dr))==null||t.call(this),G(this,dr,void 0))}setEventListener(t){var n;
vendor: 5,128 bytes, line 141
141G(this,wi,t),(n=P(this,dr))==null||n.call(this),G(this,dr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,os)!==t&&(G(this,os,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,os)=="boolean"?P(this,os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},os=new WeakMap,dr=new WeakMap,wi=new WeakMap,T0),fS=new bO,xi,hr,bi,k0,SO=(k0=class extends ic{constructor(){super();ne(this,xi,!0);ne(this,hr);ne(this,bi);G(this,bi,t=>{if(!oc&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,hr)||this.setEventListener(P(this,bi))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,hr))==null||t.call(this),G(this,hr,void 0))}setEventListener(t){var n;G(this,bi,t),(n=P(this,hr))==null||n.call(this),G(this,hr,t(this.setOnline.bind(this)))}setOnline(t){P(this,xi)!==t&&(G(this,xi,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,xi)}},xi=new WeakMap,hr=new WeakMap,bi=new WeakMap,k0),xu=new SO;function EO(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function _O(e){return Math.min(1e3*2**e,3e4)}function pS(e){return(e??"online")==="online"?xu.isOnline():!0}var mS=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function nd(e){return e instanceof mS}function gS(e){let t=!1,n=0,r=!1,s;const i=EO(),o=p=>{var x;r||(h(new mS(p)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>fS.isFocused()&&(e.networkMode==="always"||xu.isOnline())&&e.canRun(),c=()=>pS(e.networkMode)&&e.canRun(),d=p=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,p),s==null||s(),i.resolve(p))},h=p=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,p),s==null||s(),i.reject(p))},f=()=>new Promise(p=>{var x;s=m=>{(r||u())&&p(m)},(x=e.onPause)==null||x.call(e)}).then(()=>{var p;s=void 0,r||(p=e.onContinue)==null||p.call(e)}),v=()=>{if(r)return;let p;const x=n===0?e.initialPromise:void 0;try{p=x??e.fn()}catch(m){p=Promise.reject(m)}Promise.resolve(p).then(d).catch(m=>{var _;if(r)return;const g=e.retry??(oc?0:3),y=e.retryDelay??_O,S=typeof y=="function"?y(n,m):y,E=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,m);if(t||!E){h(m);return}n++,(_=e.onFail)==null||_.call(e,n,m),yO(S).then(()=>u()?void 0:f()).then(()=>{t?h(m):v()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?v():f().then(v),i)}}var TO=e=>setTimeout(e,0);function kO(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=TO;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var nt=kO(),as,C0,yS=(C0=class{constructor(){ne(this,as)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pO(this.gcTime)&&G(this,as,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(oc?1/0:5*60*1e3))}clearGcTimeout(){P(this,as)&&(clearTimeout(P(this,as)),G(this,as,void 0))}},as=new WeakMap,C0),Si,ls,Ct,us,Ge,wa,cs,Qt,Cn,P0,CO=(P0=class extends yS{constructor(t){super();ne(this,Qt);ne(this,Si);ne(this,ls);ne(this,Ct);ne(this,us);ne(this,Ge);ne(this,wa);ne(this,cs);G(this,cs,!1),G(this,wa,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,us,t.client),G(this,Ct,P(this,us).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,Si,RO(this.options)),this.state=t.state??P(this,Si),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,Ge))==null?void 0:t.promise}setOptions(t){this.options={...P(this,wa),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,Ct).remove(this)}setData(t,n){const r=vO(this.state.data,t,this.options);return He(this,Qt,Cn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){He(this,Qt,Cn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=P(this,Ge))==null?void 0:r.promise;return(s=P(this,Ge))==null||s.cancel(t),n?n.then(Gt).catch(Gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Si))}isActive(){return this.observers.some(t=>gO(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vp||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 141
141Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Vh(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!mO(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Ge))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Ge))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,Ct).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,Ge)&&(P(this,cs)?P(this,Ge).cancel({revert:!0}):P(this,Ge).cancelRetry()),this.scheduleGc()),P(this,Ct).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||He(this,Qt,Cn).call(this,{type:"invalidate"})}
vendor: 14,124 bytes, line 141
141fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,Ge))return P(this,Ge).continueRetry(),P(this,Ge).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(G(this,cs,!0),r.signal)})},i=()=>{const h=hS(this.options,n),v=(()=>{const p={client:P(this,us),queryKey:this.queryKey,meta:this.meta};return s(p),p})();return G(this,cs,!1),this.options.persister?this.options.persister(h,v,this):h(v)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,us),state:this.state,fetchFn:i};return s(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),G(this,ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&He(this,Qt,Cn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,v,p,x;nd(h)&&h.silent||He(this,Qt,Cn).call(this,{type:"error",error:h}),nd(h)||((v=(f=P(this,Ct).config).onError)==null||v.call(f,h,this),(x=(p=P(this,Ct).config).onSettled)==null||x.call(p,this.state.data,h,this)),this.scheduleGc()};return G(this,Ge,gS({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,v,p,x;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(m){l(m);return}(v=(f=P(this,Ct).config).onSuccess)==null||v.call(f,h,this),(x=(p=P(this,Ct).config).onSettled)==null||x.call(p,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{He(this,Qt,Cn).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{He(this,Qt,Cn).call(this,{type:"pause"})},onContinue:()=>{He(this,Qt,Cn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),P(this,Ge).start()}},Si=new WeakMap,ls=new WeakMap,Ct=new WeakMap,us=new WeakMap,Ge=new WeakMap,wa=new WeakMap,cs=new WeakMap,Qt=new WeakSet,Cn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...PO(r.data,this.options),fetchMeta:t.meta??null};case"success":return G(this,ls,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return nd(s)&&s.revert&&P(this,ls)?{...P(this,ls),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),nt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,Ct).notify({query:this,type:"updated",action:t})})},P0);function PO(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RO(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var pn,R0,AO=(R0=class extends ic{constructor(t={}){super();ne(this,pn);this.config=t,G(this,pn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Up(s,n);let o=this.get(i);return o||(o=new CO({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){P(this,pn).has(t.queryHash)||(P(this,pn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,pn).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,pn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,pn).get(t)}getAll(){return[...P(this,pn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>hy(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>hy(t,r)):n}notify(t){nt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){nt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){nt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},pn=new WeakMap,R0),mn,et,ds,gn,tr,A0,OO=(A0=class extends yS{constructor(t){super();ne(this,gn);ne(this,mn);ne(this,et);ne(this,ds);this.mutationId=t.mutationId,G(this,et,t.mutationCache),G(this,mn,[]),this.state=t.state||NO(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,mn).includes(t)||(P(this,mn).push(t),this.clearGcTimeout(),P(this,et).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,mn,P(this,mn).filter(n=>n!==t)),this.scheduleGc(),P(this,et).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,mn).length||(this.state.status==="pending"?this.scheduleGc():P(this,et).remove(this))}continue(){var t;return((t=P(this,ds))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,u,c,d,h,f,v,p,x,m,g,y,S,E,_,T,k;const n=()=>{He(this,gn,tr).call(this,{type:"continue"})};G(this,ds,gS({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,O)=>{He(this,gn,tr).call(this,{type:"failed",failureCount:A,error:O})},onPause:()=>{He(this,gn,tr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,et).canRun(this)}));const r=this.state.status==="pending",s=!P(this,ds).canStart();try{if(r)n();else{He(this,gn,tr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=P(this,et).config).onMutate)==null?void 0:o.call(i,t,this));const O=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));O!==this.state.context&&He(this,gn,tr).call(this,{type:"pending",context:O,variables:t,isPaused:s})}const A=await P(this,ds).start();return await((c=(u=P(this,et).config).onSuccess)==null?void 0:c.call(u,A,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,A,t,this.state.context)),await((v=(f=P(this,et).config).onSettled)==null?void 0:v.call(f,A,null,this.state.variables,this.state.context,this)),await((x=(p=this.options).onSettled)==null?void 0:x.call(p,A,null,t,this.state.context)),He(this,gn,tr).call(this,{type:"success",data:A}),A}catch(A){try{throw await((g=(m=P(this,et).config).onError)==null?void 0:g.call(m,A,t,this.state.context,this)),await((S=(y=this.options).onError)==null?void 0:S.call(y,A,t,this.state.context)),await((_=(E=P(this,et).config).onSettled)==null?void 0:_.call(E,void 0,A,this.state.variables,this.state.context,this)),await((k=(T=this.options).onSettled)==null?void 0:k.call(T,void 0,A,t,this.state.context)),A}finally{He(this,gn,tr).call(this,{type:"error",error:A})}}finally{P(this,et).runNext(this)}}},mn=new WeakMap,et=new WeakMap,ds=new WeakMap,gn=new WeakSet,tr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),nt.batch(()=>{P(this,mn).forEach(r=>{r.onMutationUpdate(t)}),P(this,et).notify({mutation:this,type:"updated",action:t})})},A0);function NO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Nn,Jt,xa,O0,jO=(O0=class extends ic{constructor(t={}){super();ne(this,Nn);ne(this,Jt);ne(this,xa);this.config=t,G(this,Nn,new Set),G(this,Jt,new Map),G(this,xa,0)}build(t,n,r){const s=new OO({mutationCache:this,mutationId:++Fa(this,xa)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){P(this,Nn).add(t);const n=ll(t);if(typeof n=="string"){const r=P(this,Jt).get(n);r?r.push(t):P(this,Jt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,Nn).delete(t)){const n=ll(t);if(typeof n=="string"){const r=P(this,Jt).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&P(this,Jt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ll(t);if(typeof n=="string"){const r=P(this,Jt).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=ll(t);if(typeof n=="string"){const s=(r=P(this,Jt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){nt.batch(()=>{P(this,Nn).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,Nn).clear(),P(this,Jt).clear()})}getAll(){return Array.from(P(this,Nn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>fy(n,r))}findAll(t={}){return this.getAll().filter(n=>fy(t,n))}notify(t){nt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return nt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Gt))))}},Nn=new WeakMap,Jt=new WeakMap,xa=new WeakMap,O0);function ll(e){var t;return(t=e.options.scope)==null?void 0:t.id}function gy(e){return{onFetch:(t,n)=>{var c,d,h,f,v;const r=t.options,s=(h=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let p=!1;const x=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},m=hS(t.options,t.fetchOptions),g=async(y,S,E)=>{if(p)return Promise.reject();if(S==null&&y.pages.length)return Promise.resolve(y);const T=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return x(V),V})(),k=await m(T),{maxPages:A}=t.options,O=E?xO:wO;return{pages:O(y.pages,k,A),pageParams:O(y.pageParams,S,A)}};if(s&&i.length){const y=s==="backward",S=y?IO:yy,E={pages:i,pageParams:o},_=S(r,E);a=await g(E,_,y)}else{const y=e??i.length;do{const S=l===0?o[0]??r.initialPageParam:yy(r,a);if(l>0&&S==null)break;a=await g(a,S),l++}while(l<y)}return a};t.options.persister?t.fetchFn=()=>{var p,x;return(x=(p=t.options).persister)==null?void 0:x.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function yy(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function IO(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var xe,fr,pr,Ei,_i,mr,Ti,ki,N0,DO=(N0=class{constructor(e={}){ne(this,xe);ne(this,fr);ne(this,pr);ne(this,Ei);ne(this,_i);ne(this,mr);ne(this,Ti);ne(this,ki);G(this,xe,e.queryCache||new AO),G(this,fr,e.mutationCache||new jO),G(this,pr,e.defaultOptions||{}),G(this,Ei,new Map),G(this,_i,new Map),G(this,mr,0)}mount(){Fa(this,mr)._++,P(this,mr)===1&&(G(this,Ti,fS.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,xe).onFocus())})),G(this,ki,xu.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,xe).onOnline())})))}unmount(){var e,t;Fa(this,mr)._--,P(this,mr)===0&&((e=P(this,Ti))==null||e.call(this),G(this,Ti,void 0),(t=P(this,ki))==null||t.call(this),G(this,ki,void 0))}isFetching(e){return P(this,xe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,fr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,xe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,xe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Vh(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,xe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=P(this,xe).get(r.queryHash),i=s==null?void 0:s.state.data,o=fO(t,i);if(o!==void 0)return P(this,xe).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return nt.batch(()=>P(this,xe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,xe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,xe);nt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,xe);return nt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=nt.batch(()=>P(this,xe).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Gt).catch(Gt)}invalidateQueries(e,t={}){return nt.batch(()=>(P(this,xe).findAll(e).forEach(n=>
141{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=nt.batch(()=>P(this,xe).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Gt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Gt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,xe).build(this,t);return n.isStaleByTime(Vh(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gt).catch(Gt)}fetchInfiniteQuery(e){return e.behavior=gy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gt).catch(Gt)}ensureInfiniteQueryData(e){return e.behavior=gy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return xu.isOnline()?P(this,fr).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,xe)}getMutationCache(){return P(this,fr)}getDefaultOptions(){return P(this,pr)}setDefaultOptions(e){G(this,pr,e)}setQueryDefaults(e,t){P(this,Ei).set(ra(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Ei).values()],n={};return t.forEach(r=>{sa(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,_i).set(ra(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,_i).values()],n={};return t.forEach(r=>{sa(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,pr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Up(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Vp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,pr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,xe).clear(),P(this,fr).clear()}},xe=new WeakMap,fr=new WeakMap,pr=new WeakMap,Ei=new WeakMap,_i=new WeakMap,mr=new WeakMap,Ti=new WeakMap,ki=new WeakMap,N0),LO=b.createContext(void 0),MO=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),w.jsx(LO.Provider,{value:e,children:t}));/** 142 * @remix-run/router v1.23.0 143 * 144 * Copyright (c) Remix Software Inc. 145 * 146 * This source code is licensed under the MIT license found in the 147 * LICENSE.md file in the root directory of this source tree. 148 * 149 * @license MIT 150 */function ia(){return ia=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},ia.apply(this,arguments)}var vr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(vr||(vr={}));const vy="popstate";function $O(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return zh("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:bu(s)}return UO(t,n,null,e)}function Te(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function FO(){return Math.random().toString(36).substr(2,8)}function wy(e,t){return{usr:e.state,key:e.key,idx:t}}function zh(e,t,n,r){return n===void 0&&(n=null),ia({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Hi(t):t,{state:n,key:t&&t.key||r||FO()})}function bu(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 Hi(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 UO(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=vr.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(ia({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=vr.Pop;let x=c(),m=x==null?null:x-u;u=x,l&&l({action:a,location:p.location,delta:m})}function h(x,m){a=vr.Push;let g=zh(p.location,x,m);u=c()+1;let y=wy(g,u),S=p.createHref(g);try{o.pushState(y,"",S)}
vendor: 3,324 bytes, line 150
150catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(S)}i&&l&&l({action:a,location:p.location,delta:1})}function f(x,m){a=vr.Replace;let g=zh(p.location,x,m);u=c();let y=wy(g,u),S=p.createHref(g);o.replaceState(y,"",S),i&&l&&l({action:a,location:p.location,delta:0})}function v(x){let m=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof x=="string"?x:bu(x);return g=g.replace(/ $/,"%20"),Te(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let p={get action(){return a},get location(){return e(s,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(vy,d),l=x,()=>{s.removeEventListener(vy,d),l=null}},createHref(x){return t(s,x)},createURL:v,encodeLocation(x){let m=v(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:f,go(x){return o.go(x)}};return p}var xy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(xy||(xy={}));function VO(e,t,n){return n===void 0&&(n="/"),BO(e,t,n,!1)}function BO(e,t,n,r){let s=typeof t=="string"?Hi(t):t,i=Bp(s.pathname||"/",n);if(i==null)return null;let o=wS(e);zO(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=eN(i);a=XO(o[l],u,r)}return a}function wS(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(Te(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=Pr([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),wS(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:QO(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of xS(i.path))s(i,o,l)}),t}function xS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=xS(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function zO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:JO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const WO=/^:[\w-]+$/,HO=3,KO=2,qO=1,GO=10,YO=-2,by=e=>e==="*";function QO(e,t){let n=e.split("/"),r=n.length;return n.some(by)&&(r+=YO),t&&(r+=KO),n.filter(s=>!by(s)).reduce((s,i)=>s+(WO.test(i)?HO:i===""?qO:GO),r)}function JO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function XO(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];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=Sy({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Sy({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
vendor: 9,412 bytes, lines 150-159
150Object.assign(s,d.params),o.push({params:s,pathname:Pr([i,d.pathname]),pathnameBase:sN(Pr([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=Pr([i,d.pathnameBase]))}return o}function Sy(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ZO(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:h,isOptional:f}=c;if(h==="*"){let p=a[d]||"";o=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const v=a[d];return f&&!v?u[h]=void 0:u[h]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function ZO(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),vS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function eN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vS(!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 Bp(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 tN(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Hi(e):e;return{pathname:n?n.startsWith("/")?n:nN(n,t):t,search:iN(r),hash:oN(s)}}function nN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function rd(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 rN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function zp(e,t){let n=rN(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Wp(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Hi(e):(s=ia({},e),Te(!s.pathname||!s.pathname.includes("?"),rd("?","pathname","search",s)),Te(!s.pathname||!s.pathname.includes("#"),rd("#","pathname","hash",s)),Te(!s.search||!s.search.includes("#"),rd("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;s.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=tN(s,a),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Pr=e=>e.join("/").replace(/\/\/+/g,"/"),sN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),iN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function aN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const bS=["post","put","patch","delete"];new Set(bS);const lN=["get",...bS];new Set(lN);/** 151 * React Router v6.30.1 152 * 153 * Copyright (c) Remix Software Inc. 154 * 155 * This source code is licensed under the MIT license found in the 156 * LICENSE.md file in the root directory of this source tree. 157 * 158 * @license MIT 159 */function oa(){return oa=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},oa.apply(this,arguments)}const Hp=b.createContext(null),uN=b.createContext(null),Fr=b.createContext(null),ac=b.createContext(null),Ur=b.createContext({outlet:null,matches:[],isDataRoute:!1}),SS=b.createContext(null);function cN(e,t){let{relative:n}=t===void 0?{}:t;Ki()||Te(!1);let{basename:r,navigator:s}=b.useContext(Fr),{hash:i,pathname:o,search:a}=_S(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Pr([r,o])),s.createHref({pathname:l,search:a,hash:i})}function Ki(){return b.useContext(ac)!=null}function qi(){return Ki()||Te(!1),b.useContext(ac).location}function ES(e){b.useContext(Fr).static||b.useLayoutEffect(e)}function Gi(){let{isDataRoute:e}=b.useContext(Ur);return e?EN():dN()}function dN(){Ki()||Te(!1);let e=b.useContext(Hp),{basename:t,future:n,navigator:r}=b.useContext(Fr),{matches:s}=b.useContext(Ur),{pathname:i}=qi(),o=JSON.stringify(zp(s,n.v7_relativeSplatPath)),a=b.useRef(!1);return ES(()=>{a.current=!0}),b.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=Wp(u,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Pr([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,i,e])}function _S(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(Fr),{matches:s}=b.useContext(Ur),{pathname:i}=qi(),o=JSON.stringify(zp(s,r.v7_relativeSplatPath));return b.useMemo(()=>Wp(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function hN(e,t){return fN(e,t)}function fN(e,t,n,r){Ki()||Te(!1);let{navigator:s}=b.useContext(Fr),{matches:i}=b.useContext(Ur),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=qi(),c;if(t){var d;let x=typeof t=="string"?Hi(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Te(!1),c=x}else c=u;let h=c.pathname||"/",f=h;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=VO(e,{pathname:f}),p=vN(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Pr([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Pr([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&p?b.createElement(ac.Provider,{value:{location:oa({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:vr.Pop}},p):p}function pN(){let e=SN(),t=aN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:s},n):null,null)}const mN=b.createElement(pN,null);class gN extends b.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?b.createElement(Ur.Provider,{value:this.props.routeContext},b.createElement(SS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function yN(e){let{routeContext:t,match:n,children:r}=e,s=b.useContext(Hp);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Ur.Provider,{value:t},r)}function vN(e,t,n,r){var s;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 o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let c=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||Te(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<o.length;c++){let d=o[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:h,errors:f}=n,v=d.route.loader&&h[d.route.id]===void 0&&(!f||f[d.route.id]===void 0);if(d.route.lazy||v){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,h)=>{let f,v=!1,p=null,x=null;n&&(f=a&&d.route.id?a[d.route.id]:void 0,p=d.route.errorElement||mN,l&&(u<0&&h===0?(v=!0,x=null):u===h&&(v=!0,x=d.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,h+1)),g=()=>{let y;return f?y=p:v?y=x:d.route.Component?y=b.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=c,b.createElement(yN,{match:d,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:y})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?b.createElement(gN,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:g(),routeC
159ontext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var TS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(TS||{}),Su=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}(Su||{});function wN(e){let t=b.useContext(Hp);return t||Te(!1),t}function xN(e){let t=b.useContext(uN);return t||Te(!1),t}function bN(e){let t=b.useContext(Ur);return t||Te(!1),t}function kS(e){let t=bN(),n=t.matches[t.matches.length-1];return n.route.id||Te(!1),n.route.id}function SN(){var e;let t=b.useContext(SS),n=xN(Su.UseRouteError),r=kS(Su.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function EN(){let{router:e}=wN(TS.UseNavigateStable),t=kS(Su.UseNavigateStable),n=b.useRef(!1);return ES(()=>{n.current=!0}),b.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,oa({fromRouteId:t},i)))},[e,t])}function _N(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function TN(e){let{to:t,replace:n,state:r,relative:s}=e;Ki()||Te(!1);let{future:i,static:o}=b.useContext(Fr),{matches:a}=b.useContext(Ur),{pathname:l}=qi(),u=Gi(),c=Wp(t,zp(a,i.v7_relativeSplatPath),l,s==="path"),d=JSON.stringify(c);return b.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:s}),[u,d,s,n,r]),null}function dn(e){Te(!1)}function kN(e){let{basename:t="/",children:n=null,location:r,navigationType:s=vr.Pop,navigator:i,static:o=!1,future:a}=e;Ki()&&Te(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:i,static:o,future:oa({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=Hi(r));let{pathname:c="/",search:d="",hash:h="",state:f=null,key:v="default"}=r,p=b.useMemo(()=>{let x=Bp(c,l);return x==null?null:{location:{pathname:x,search:d,hash:h,state:f,key:v},navigationType:s}},[l,c,d,h,f,v,s]);return p==null?null:b.createElement(Fr.Provider,{value:u},b.createElement(ac.Provider,{children:n,value:p}))}function CN(e){let{children:t,location:n}=e;return hN(Wh(t),n)}new Promise(()=>{});function Wh(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,s)=>{if(!b.isValidElement(r))return;let i=[...t,s];if(r.type===b.Fragment){n.push.apply(n,Wh(r.props.children,i));return}r.type!==dn&&Te(!1),!r.props.index||!r.props.children||Te(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Wh(r.props.children,i)),n.push(o)}),n}/** 160 * React Router DOM v6.30.1 161 * 162 * Copyright (c) Remix Software Inc. 163 * 164 * This source code is licensed under the MIT license found in the 165 * LICENSE.md file in the root directory of this source tree. 166 * 167 * @license MIT 168 */function Hh(){return Hh=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},Hh.apply(this,arguments)}function PN(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function RN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function AN(e,t){return e.button===0&&(!t||t==="_self")&&!RN(e)}const ON=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],NN="6";try{window.__reactRouterVersion=NN}catch{}const jN="startTransition",Ey=Nf[jN];function IN(e){let{basename:t,children:n,future:r,window:s}=e,i=b.useRef();i.current==null&&(i.current=$O({window:s,v5Compat:!0}));let o=i.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=b.useCallback(d=>{u&&Ey?Ey(()=>l(d)):l(d)},[l,u]);return b.useLayoutEffect(()=>o.listen(c),[o,c]),b.useEffect(()=>_N(r),[r]),b.createElement(kN,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const DN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ot=b.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,h=PN(t,ON),{basename:f}=b.useContext(Fr),v,p=!1;if(typeof u=="string"&&LN.test(u)&&(v=u,DN))try{let y=new URL(window.location.href),S=u.startsWith("//")?new URL(y.protocol+u):new URL(u),E=Bp(S.pathname,f);S.origin===y.origin&&E!=null?u=E+S.search+S.hash:p=!0}catch{}let x=cN(u,{relative:s}),m=MN(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:s,viewTransition:d});function g(y){r&&r(y),y.defaultPrevented||m(y)}return b.createElement("a",Hh({},h,{href:v||x,onClick:p||i?r:g,ref:n,target:l}))});var _y;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_y||(_y={}));var Ty;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ty||(Ty={}));function MN(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=Gi(),u=qi(),c=_S(e,{relative:o});return b.useCallback(d=>
168{if(AN(d,n)){d.preventDefault();let h=r!==void 0?r:bu(u)===bu(c);l(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[u,l,c,r,s,n,e,i,o,a])}function $N(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}const FN=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Kp extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class UN extends Kp{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class ky extends Kp{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Cy extends Kp{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Kh;(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"})(Kh||(Kh={}));class VN{constructor(t,{headers:n={},customFetch:r,region:s=Kh.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=FN(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return $N(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:u,signal:c,timeout:d}=r;let h={},{region:f}=r;f||(f=this.region);const v=new URL(`${this.url}/${n}`);f&&f!=="any"&&(h["x-region"]=f,v.searchParams.set("forceFunctionRegion",f));let p;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",p=u):typeof u=="string"?(h["Content-Type"]="text/plain",p=u):typeof FormData<"u"&&u instanceof FormData?p=u:(h["Content-Type"]="application/json",p=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?p=JSON.stringify(u):p=u;let x=c;d&&(o=new AbortController,i=setTimeout(()=>o.abort(),d),c?(x=o.signal,c.addEventListener("abort",()=>o.abort())):x=o.signal);const m=yield this.fetch(v.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:p,signal:x}).catch(E=>{throw new UN(E)}),g=m.headers.get("x-relay-error");if(g&&g==="true")throw new ky(m);if(!m.ok)throw new Cy(m);let y=((s=m.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),S;return y==="application/json"?S=yield m.json():y==="application/octet-stream"||y==="application/pdf"?S=yield m.blob():y==="text/event-stream"?S=m:y==="multipart/form-data"?S=yield m.formData():S=yield m.text(),{data:S,error:null,response:m}}catch(a){return{data:null,error:a,response:a instanceof Cy||a instanceof ky?a.context:void 0}}finally{i&&clearTimeout(i)}})}}var BN=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
168de=e.code}},zN=class{constructor(e){var t,n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(r=e.urlLengthLimit)!==null&&r!==void 0?r:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,a=null,l=null,u=i.status,c=i.statusText;if(i.ok){var d,h;if(n.method!=="HEAD"){var f;const m=await i.text();m===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((f=n.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?a=m:a=JSON.parse(m))}const p=(d=n.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),x=(h=i.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");p&&x&&x.length>1&&(l=parseInt(x[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,u=406,c="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var v;const p=await i.text();try{o=JSON.parse(p),Array.isArray(o)&&i.status===404&&(a=[],o=null,u=200,c="OK")}catch{i.status===404&&p===""?(u=204,c="No Content"):o={message:p}}if(o&&n.isMaybeSingle&&(!(o==null||(v=o.details)===null||v===void 0)&&v.includes("0 rows"))&&(o=null,u=200,c="OK"),o&&n.shouldThrowOnError)throw new BN(o)}return{error:o,data:a,count:l,status:u,statusText:c}});return this.shouldThrowOnError||(s=s.catch(i=>{var o;let a="",l="",u="";const c=i==null?void 0:i.cause;if(c){var d,h,f,v;const m=(d=c==null?void 0:c.message)!==null&&d!==void 0?d:"",g=(h=c==null?void 0:c.code)!==null&&h!==void 0?h:"";a=`${(f=i==null?void 0:i.name)!==null&&f!==void 0?f:"FetchError"}: ${i==null?void 0:i.message}`,a+=` 169 170Caused by: ${(v=c==null?void 0:c.name)!==null&&v!==void 0?v:"Error"}: ${m}`,g&&(a+=` (${g})`),c!=null&&c.stack&&(a+=` 171${c.stack}`)}else{var p;a=(p=i==null?void 0:i.stack)!==null&&p!==void 0?p:""}const x=this.url.toString().length;return(i==null?void 0:i.name)==="AbortError"||(i==null?void 0:i.code)==="ABORT_ERR"?(u="",l="Request was aborted (timeout or manual cancellation)",x>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${x} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((c==null?void 0:c.name)==="HeadersOverflowError"||(c==null?void 0:c.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",l="HTTP headers exceeded server limits (typically 16KB)",x>this.urlLengthLimit&&(l+=`. Your request URL is ${x} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:a,hint:l,code:u},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},WN=class extends zN{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
171explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${l}"; options=${a};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Py=new RegExp("[,()]");var Us=class extends WN{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Py.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Py.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},HN=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new Us({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
1710){const l=[...new Set(a)].map(u=>`"${u}"`);i.searchParams.set("columns",l.join(","))}}return new Us({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),s||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(u.length>0){const c=[...new Set(u)].map(d=>`"${d}"`);a.searchParams.set("columns",c.join(","))}}return new Us({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new Us({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new Us({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function aa(e){"@babel/helpers - typeof";return aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aa(e)}function KN(e,t){if(aa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(aa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qN(e){var t=KN(e,"string");return aa(t)=="symbol"?t:t+""}function GN(e,t,n){return(t=qN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ry(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ry(Object(n),!0).forEach(function(r){GN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ry(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var YN=class CS{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const a=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(l,u)=>{const c=new AbortController,d=setTimeout(()=>c.abort(),i),h=u==null?void 0:u.signal;if(h){if(h.aborted)return clearTimeout(d),a(l,u);const f=()=>{clearTimeout(d),c.abort()};return h.addEventListener("abort",f,{once:!0}),a(l,ul(ul({},u),{},{signal:c.signal})).finally(()=>{clearTimeout(d),h.removeEventListener("abort",f)})}return a(l,ul(ul({},u),{},{signal:c.signal})).finally(()=>clearTimeout(d))}:this.fetch=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new HN(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new CS(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;const c=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(c)),d=r&&Object.values(n).some(c);d?(a="POST",u=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([f,v])=>v!==void 0).map(([f,v])=>[f,Array.isArray(v)?`{${v.join(",")}}`:`${v}
171`]).forEach(([f,v])=>{l.searchParams.append(f,v)})):(a="POST",u=n);const h=new Headers(this.headers);return d?h.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&h.set("Prefer",`count=${i}`),new Us({method:a,url:l,headers:h,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}};class QN{constructor(){}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."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 172import ws from "ws" 173new 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+=` 174 175Suggested 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 JN="2.97.0",XN=`realtime-js/${JN}`,ZN="1.0.0",PS="2.0.0",Ay=PS,qh=1e4,ej=1e3,tj=100;var ar;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(ar||(ar={}));var Ae;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Ae||(Ae={}));var Zt;(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"})(Zt||(Zt={}));var Gh;(function(e){e.websocket="websocket"})(Gh||(Gh={}));var Xr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Xr||(Xr={}));class nj{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var s,i;const o=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(i=t.join_ref)!==null&&i!==void 0?i:"",u=t.payload.event,c=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(c).length===0?"":JSON.stringify(c);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+u.length+d.length,f=new ArrayBuffer(this.HEADER_LENGTH+h);let v=new DataView(f),p=0;v.setUint8(p++,this.KINDS.userBroadcastPush),v.setUint8(p++,l.length),v.setUint8(p++,a.length),v.setUint8(p++,o.length),v.setUint8(p++,u.length),v.setUint8(p++,d.length),v.setUint8(p++,n),Array.from(l,m=>v.setUint8(p++,m.charCodeAt(0))),Array.from(a,m=>v.setUint8(p++,m.charCodeAt(0))),Array.from(o,m=>v.setUint8(p++,m.charCodeAt(0))),Array.from(u,m=>v.setUint8(p++,m.charCodeAt(0))),Array.from(d,m=>v.setUint8(p++,m.charCodeAt(0)));var x=new Uint8Array(f.byteLength+r.byteLength);return x.set(new Uint8Array(f),0),x.set(new Uint8Array(r),f.byteLength),x.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,o,a,l]=r;
175return n({join_ref:s,ref:i,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+s));l=l+s;const c=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+o));l=l+o;const h=t.slice(l,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(r.decode(h)):h,v={type:this.BROADCAST_EVENT,event:c,payload:f};return o>0&&(v.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:v}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class RS{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 oe;(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"})(oe||(oe={}));const Oy=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=rj(o,e,t,s),i),{}):{}},rj=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?AS(i,o):Yh(o)},AS=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return aj(t,n)}switch(e){case oe.bool:return sj(t);case oe.float4:case oe.float8:case oe.int2:case oe.int4:case oe.int8:case oe.numeric:case oe.oid:return ij(t);case oe.json:case oe.jsonb:return oj(t);case oe.timestamp:return lj(t);case oe.abstime:case oe.date:case oe.daterange:case oe.int4range:case oe.int8range:case oe.money:case oe.reltime:case oe.text:case oe.time:case oe.timestamptz:case oe.timetz:case oe.tsrange:case oe.tstzrange:return Yh(t);default:return Yh(t)}},Yh=e=>e,sj=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},ij=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},oj=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},aj=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>AS(t,a))}return e},lj=e=>typeof e=="string"?e.replace(" ","T"):e,OS=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class sd{constructor(t,n,r={},s=qh){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(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.recHo
175oks.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 Ny;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Ny||(Ny={}));class Oo{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,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Oo.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=Oo.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Oo.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(i,(u,c)=>{o[u]||(l[u]=c)}),this.map(o,(u,c)=>{const d=i[u];if(d){const h=c.map(x=>x.presence_ref),f=d.map(x=>x.presence_ref),v=c.filter(x=>f.indexOf(x.presence_ref)<0),p=d.filter(x=>h.indexOf(x.presence_ref)<0);v.length>0&&(a[u]=v),p.length>0&&(l[u]=p)}else a[u]=c}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const d=t[a].map(f=>f.presence_ref),h=c.filter(f=>d.indexOf(f.presence_ref)<0);t[a].unshift(...h)}r(a,c,l)}),this.map(o,(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,s(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 s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(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 jy;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(jy||(jy={}));var No;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(No||(No={}));var Rn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Rn||(Rn={}));class ni{constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Ae.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 sd(this,Zt.join,this.params,this.timeout),this.rejoinTimer=new RS(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Ae.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Ae.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Ae.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Ae.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Ae.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Zt.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new Oo(this),this.broadcastEndpointURL=OS(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.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,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==Ae.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&s!==void 0?s:[],c=!!this.bindings[No.PRESENCE]&&this.bindings[No.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(Rn.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(Rn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:f})=>{var v;if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(Rn.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,x=(v=p==null?void 0:p.length)!==null&&v!==void 0?v:0,m=[];for(let g=0;g<x;
175g++){const y=p[g],{filter:{event:S,schema:E,table:_,filter:T}}=y,k=f&&f[g];if(k&&k.event===S&&ni.isFilterValueEqual(k.schema,E)&&ni.isFilterValueEqual(k.table,_)&&ni.isFilterValueEqual(k.filter,T))m.push(Object.assign(Object.assign({},y),{id:k.id}));else{this.unsubscribe(),this.state=Ae.errored,t==null||t(Rn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=m,t&&t(Rn.SUBSCRIBED);return}}).receive("error",f=>{this.state=Ae.errored,t==null||t(Rn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Rn.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===Ae.joined&&t===No.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
175in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Ae.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Zt.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new sd(this,Zt.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Ae.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_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 s=new sd(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>tj){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 s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=Zt;if(r&&[a,l,u,c].indexOf(o)>=0&&r!==this._joinRef())return;let h=this._onMessage(o,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(f=>{var v,p,x;return((v=f.filter)===null||v===void 0?void 0:v.event)==="*"||((x=(p=f.filter)===null||p===void 0?void 0:p.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===o}).map(f=>f.callback(h,r)):(i=this.bindings[o])===null||i===void 0||i.filter(f=>{var v,p,x,m,g,y;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in f){const S=f.id,E=(v=f.filter)===null||v===void 0?void 0:v.event;return S&&((p=n.ids)===null||p===void 0?void 0:p.includes(S))&&(E==="*"||(E==null?void 0:E.toLocaleLowerCase())===((x=n.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const S=(g=(m=f==null?void 0:f.filter)===null||m===void 0?void 0:m.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return S==="*"||S===((y=n==null?void 0:n.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===o}).map(f=>{if(typeof h=="object"&&"ids"in h){const v=h.data,{schema:p,table:
175x,commit_timestamp:m,type:g,errors:y}=v;h=Object.assign(Object.assign({},{schema:p,table:x,commit_timestamp:m,eventType:g,new:{},old:{},errors:y}),this._getPayloadRecords(v))}f.callback(h,r)})}_isClosed(){return this.state===Ae.closed}_isJoined(){return this.state===Ae.joined}_isJoining(){return this.state===Ae.joining}_isLeaving(){return this.state===Ae.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&ni.isEqual(s.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}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Zt.close,{},t)}_onError(t){this._on(Zt.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Ae.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Oy(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Oy(t.columns,t.old_record)),n}}const id=()=>{},cl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},uj=[1e3,2e3,5e3,1e4],cj=1e4,dj=` 176 addEventListener("message", (e) => { 177 if (e.data.event === "start") { 178 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 179 } 180 });`;class hj{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=qh,this.transport=null,this.heartbeatIntervalMs=cl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=id,this.ref=0,this.reconnectTimer=null,this.vsn=Ay,this.logger=id,this.conn=null,this.sendBuffer=[],this.serializer=new nj,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Gh.websocket}`,this.httpEndpoint=OS(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.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=QN.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n} 181 182To use Realtime in Node.js, you need to provide a WebSocket implementation: 183 184Option 1: Use Node.js 22+ which has native WebSocket support 185Option 2: Install and provide the "ws" package: 186 187 npm install ws 188 189 import ws from "ws" 190 const client = new RealtimeClient(url, { 191 ...options, 192 transport: ws 193 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}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")}
193,typeof this.conn.close=="function"&&(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 ar.connecting:return Xr.Connecting;case ar.open:return Xr.Open;case ar.closing:return Xr.Closing;default:return Xr.Closed}}isConnected(){return this.connectionState()===Xr.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new ni(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}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._heartbeatSentAt=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(ej,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},cl.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),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=>{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",u)}catch(c){this.log("error","error in heartbeat callback",c)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),i),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(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),this.conn.readyState===ar.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===ar.open||this.conn.readyState===ar.connecting)try{this.conn.
193close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),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._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_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);try{this.heartbeatCallback("error")}catch(n){this.log("error","error in heartbeat callback",n)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(Zt.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([dj],{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,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:XN};n&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(Zt.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||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(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new RS(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},cl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,i,o,a,l,u,c,d,h,f;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:qh,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:cl.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:id,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:Ay,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=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:v=>uj[v-1]||cj,this.vsn){case ZN:this.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:(v,p)=>p(JSON.stringify(v)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:(v,p)=>p(JSON.parse(v));break;case PS:this.encode=(h=t==null?void 0:t.encode)!==null&&h!==void 0?h:this.serializer.encode.bind(this.serializer),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}
193var la=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function fj(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function pj(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function mj(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=fj(e.baseUrl,r,s),l=await pj(e.auth),u=await t(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),c=await u.text(),d=(u.headers.get("content-type")||"").includes("application/json"),h=d&&c?JSON.parse(c):c;if(!u.ok){const f=d?h:void 0,v=f==null?void 0:f.error;throw new la((v==null?void 0:v.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:v==null?void 0:v.type,icebergCode:v==null?void 0:v.code,details:f})}return{status:u.status,headers:u.headers,data:h}}}}function dl(e){return e.join("�")}var gj=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:dl(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${dl(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${dl(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${dl(e.namespace)}`}),!0}catch(t){if(t instanceof la&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof la&&n.status===409)return;throw n}}};function Os(e){return e.join("�")}var yj=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Os(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Os(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Os(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Os(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Os(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Os(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof la&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof la&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},vj=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=mj({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new gj(this.client,t),this.tableOps=new yj(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
193async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},lc=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function uc(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var hl=class extends lc{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},NS=class extends lc{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const wj=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),xj=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)},Qh=e=>{if(Array.isArray(e))return e.map(n=>Qh(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=Qh(r)}),t},bj=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function ua(e){"@babel/helpers - typeof";return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ua(e)}function Sj(e,t){if(ua(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ua(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ej(e){var t=Sj(e,"string");return ua(t)=="symbol"?t:t+""}function _j(e,t,n){return(t=Ej(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Iy(Object(n),!0).forEach(function(r){_j(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Dy=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},Tj=async(e,t,n,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const s=e,i=s.status||500;if(typeof s.json=="function")s.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new hl(Dy(o),i,a,r))}).catch(()=>{if(r==="vectors"){const o=i+"";t(new hl(s.statusText||`HTTP ${i} error`,i,o,r))}else{const o=i+"";t(new hl(s.statusText||`HTTP ${i} error`,i,o,r))}});else{const o=i+"";t(new hl(s.statusText||`HTTP ${i} error`,i,o,r))}}else t(new NS(Dy(e),e,r))},kj=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?z(z({},s),n):(xj(r)?(s.headers=z({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,t!=null&&t.duplex&&(s.duplex=t.duplex),z(z({},s),n))};async function ho(e,t,n,r,s,i,o){return new Promise((a,l)=>{e(n,kj(t,r,s,i)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(o==="vectors"){const c=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!c||!c.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>Tj(u,l,r,o))})}function jS(e="storage"){return{get:async(t,n,r,s)=>ho(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>ho(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>ho(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>ho(t,"HEAD",n,z(z({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>ho(t,"DELETE",n,s,i,r,e)}}const Cj=jS("storage"),{get:ca,post:Yt,put:Jh,head:Pj,remove:qp}=Cj,vt=jS("vectors");var Yi=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=wj(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=z(z({},this.headers),{},{[e]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(uc(n))return{data:null,error:n};throw n}}},Rj=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(uc(t))return{data:null,error:t};throw t}}};let IS;IS=Symbol.toStringTag;var Aj=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[IS]="BlobDownloadBuilder",this.promise=null}asStream(){return new Rj(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(uc(t))return{data:null,error:t};throw t}}};const Oj={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ly={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var Nj=class extends Yi{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const o=z(z({},Ly),r);let a=z(z({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(a=z(z({},a),r.headers));const u=s._removeEmptyFolders(t),c=s._getFinalPath(u),d=await(e=="PUT"?Jh:Yt)(s.fetch,`${s.url}/object/${c}`,i,z({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:u,id:d.Id,fullPath:d.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),s.handleOperation(async()=>{let l;const u=z({upsert:Ly.upsert},r),c=z(z({},s.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",u.cacheControl)):(l=n,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType),{path:i,fullPath:(await Jh(s.fetch,a.toString(),l,{headers:c})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=z({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await Yt(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),a=o.searchParams.get("token");if(!a)throw new lc("No token returned by API");return{signedUrl:o.toString(),path:e,token:a}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await Yt(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
193stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Yt(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e),i=await Yt(r.fetch,`${r.url}/object/sign/${s}`,z({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{signedUrl:encodeURI(`${r.url}${i.signedURL}${o}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await Yt(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return s.map(o=>z(z({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${i}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),i=s?`?${s}`:"",o=this._getFinalPath(e),a=()=>ca(this.fetch,`${this.url}/${r}/${o}${i}`,{headers:this.headers,noResolveJson:!0},n);return new Aj(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>Qh(await ca(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await Pj(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(uc(r)&&r instanceof NS){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&r.push(s);const i=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&r.push(o);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await qp(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=z(z(z({},Oj),t),{},{prefix:e||""});return await Yt(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=z({},e);return await Yt(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const jj="2.97.0",Aa={"X-Client-Info":`storage-js/${jj}`};var Ij=class extends Yi{constructor(e,t={},n,r){const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=z(z({},Aa),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await ca(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ca(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Yt(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Jh(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Yt(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await qp(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},Dj=class extends Yi{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=z(z({},Aa),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Yt(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await ca(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await qp(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!bj(e))throw new lc("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new vj({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
193),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(s,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},Lj=class extends Yi{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=z(z({},Aa),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await vt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await vt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},Mj=class extends Yi{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=z(z({},Aa),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},$j=class extends Yi{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=z(z({},Aa),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},Fj=class extends $j{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new Uj(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},Uj=class extends Lj{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,z(z({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,z(z({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new Vj(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}
193,Vj=class extends Mj{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,z(z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,z(z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,z(z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,z(z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,z(z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},Bj=class extends Ij{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new Nj(this.url,this.headers,e,this.fetch)}get vectors(){return new Fj(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Dj(this.url+"/iceberg",this.headers,this.fetch)}};function cc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}const DS="2.97.0",Vs=30*1e3,Xh=3,od=Xh*Vs,zj="http://localhost:9999",Wj="supabase.auth.token",Hj={"X-Client-Info":`gotrue-js/${DS}`},Zh="X-Supabase-Api-Version",LS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Kj=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,qj=10*60*1e3;class da extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function U(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Gj extends da{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function Yj(e){return U(e)&&e.name==="AuthApiError"}class Zr extends da{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Hn extends da{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class mt extends Hn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function ad(e){return U(e)&&e.name==="AuthSessionMissingError"}class Ns extends Hn{constructor(){super("Auth session or user missing","AuthInvalidToken
193ResponseError",500,void 0)}}class fl extends Hn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class pl extends Hn{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 Qj(e){return U(e)&&e.name==="AuthImplicitGrantRedirectError"}class My extends Hn{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 Jj extends Hn{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class ef extends Hn{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function ld(e){return U(e)&&e.name==="AuthRetryableFetchError"}class $y extends Hn{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class tf extends Hn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Eu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Fy=` 194\r=`.split(""),Xj=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Fy.length;t+=1)e[Fy[t].charCodeAt(0)]=-2;for(let t=0;t<Eu.length;t+=1)e[Eu[t].charCodeAt(0)]=t;return e})();function Uy(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(Eu[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(Eu[r]),t.queuedBits-=6}}function MS(e,t,n){const r=Xj[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 Vy(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{tI(o,r,n)};for(let o=0;o<e.length;o+=1)MS(e.charCodeAt(o),s,i);return t.join("")}function Zj(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 eI(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}Zj(r,t)}}function tI(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 gi(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)MS(e.charCodeAt(s),n,r);return new Uint8Array(t)}function nI(e){const t=[];return eI(e,n=>t.push(n)),new Uint8Array(t)}function rs(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>Uy(s,n,r)),Uy(null,n,r),t.join("")}function rI(e){return Math.round(Date.now()/1e3)+e}function sI(){return Symbol("auth-callback")}const Fe=()=>typeof window<"u"&&typeof document<"u",Hr={tested:!1,writable:!1},$S=()=>{if(!Fe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Hr.tested)return Hr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Hr.tested=!0,Hr.writable=!0}catch{Hr.tested=!0,Hr.writable=!1}return Hr.writable};function iI(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
194h((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const FS=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),oI=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Bs=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Kr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},$e=async(e,t)=>{await e.removeItem(t)};class dc{constructor(){this.promise=new dc.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}dc.promiseConstructor=Promise;function ml(e){const t=e.split(".");if(t.length!==3)throw new tf("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!Kj.test(t[r]))throw new tf("JWT not in base64url format");return{header:JSON.parse(Vy(t[0])),payload:JSON.parse(Vy(t[1])),signature:gi(t[2]),raw:{header:t[0],payload:t[1]}}}async function aI(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function lI(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function uI(e){return("0"+e.toString(16)).substr(-2)}function cI(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,uI).join("")}async function dI(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function hI(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 dI(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function js(e,t,n=!1){const r=cI();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await Bs(e,`${t}-code-verifier`,s);const i=await hI(r);return[i,r===i?"plain":"s256"]}const fI=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function pI(e){const t=e.headers.get(Zh);if(!t||!t.match(fI))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function mI(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 gI(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 yI=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Is(e){if(!yI.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function ud(){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 vI(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function By(e){return JSON.parse(JSON.stringify(e))}const Qr=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),wI=[502,503,504];async function zy(e){var t;if(!oI(e))throw new ef(Qr(e),0);if(wI.includes(e.status))throw new ef(Qr(e),e.status);let n;try{n=await e.json()}catch(i){throw new Zr(Qr(i),i)}let r;const s=pI(e);if(s&&s.getTime()>=LS["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 $y(Qr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new mt}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>
194i&&typeof o=="string",!0))throw new $y(Qr(n),e.status,n.weak_password.reasons);throw new Gj(Qr(n),e.status||500,r)}const xI=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function W(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Zh]||(i[Zh]=LS["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await bI(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 bI(e,t,n,r,s,i){const o=xI(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new ef(Qr(l),0)}if(a.ok||await zy(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await zy(l)}}function Ht(e){var t;let n=null;_I(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=rI(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Wy(e){const t=Ht(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 cr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function SI(e){return{data:e,error:null}}function EI(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=cc(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function Hy(e){return e}function _I(e){return e.access_token&&e.refresh_token&&e.expires_in}const cd=["global","local","others"];class TI{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=FS(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),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=cd[0]){if(cd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${cd.join(", ")}`);try{return await W(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(U(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await W(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:cr})}catch(r){if(U(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=cc(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await W(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:EI,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(U(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await W(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:cr})}catch(n){if(U(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await W(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=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Hy});if(c.error)throw c.error;const d=await c.json(),h=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(v=>{const p=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(v.split(";")[1].split("=")[1]);u[`${x}Page`]=p}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(U(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Is(t);try{return await W(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:cr})}catch(n){if(U(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Is(t);try{return await W(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:cr})}catch(r){if(U(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Is(t);
194try{return await W(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:cr})}catch(r){if(U(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Is(t.userId);try{const{data:n,error:r}=await W(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(U(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Is(t.userId),Is(t.id);try{return{data:await W(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(U(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await W(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=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Hy});if(c.error)throw c.error;const d=await c.json(),h=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(v=>{const p=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(v.split(";")[1].split("=")[1]);u[`${x}Page`]=p}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(U(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await W(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(U(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await W(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(U(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await W(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(U(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await W(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(U(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await W(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(U(n))return{data:null,error:n};throw n}}}function Ky(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Ds={debug:!!(globalThis&&$S()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class US extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class qy extends US{}async function kI(e,t,n){Ds.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;t>0&&setTimeout(()=>{r.abort(),Ds.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){Ds.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{Ds.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Ds.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new qy(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Ds.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()}})}catch(s){throw(s==null?void 0:s.name)==="AbortError"?new qy(`Acquiring an exclusive Navigator LockManager lock "${e}" timed out waiting ${t}ms`):s}}function CI(){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 VS(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
194" is invalid.`);return e.toLowerCase()}function PI(e){return parseInt(e,16)}function RI(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function AI(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:c,uri:d,version:h}=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(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 195`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=VS(e.address),v=c?`${c}://${r}`:r,p=e.statement?`${e.statement} 196`:"",x=`${v} wants you to sign in with your Ethereum account: 197${f} 198 199${p}`;let m=`URI: ${d} 200Version: ${h} 201Chain ID: ${n}${o?` 202Nonce: ${o}`:""} 203Issued At: ${i.toISOString()}`;if(s&&(m+=` 204Expiration Time: ${s.toISOString()}`),a&&(m+=` 205Not Before: ${a.toISOString()}`),l&&(m+=` 206Request ID: ${l}`),u){let g=` 207Resources:`;for(const y of u){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);g+=` 208- ${y}`}m+=g}return`${x} 209${m}`}class Ce extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class _u extends Ce{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function OI({error:e,options:t}){var n,r,s;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 Ce({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 Ce({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 Ce({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Ce({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 Ce({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Ce({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 Ce({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Ce({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 o=window.location.hostname;if(BS(o)){if(i.rp.id!==o)return new Ce({message:`The RP ID "${i.rp.id}
209" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ce({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 Ce({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 Ce({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 Ce({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function NI({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 Ce({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Ce({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(BS(r)){if(n.rpId!==r)return new Ce({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ce({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Ce({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 Ce({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class jI{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 II=new jI;function DI(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,s=cc(e,["challenge","user","excludeCredentials"]),i=gi(t).buffer,o=Object.assign(Object.assign({},n),{id:gi(n.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});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:gi(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function LI(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=cc(e,["challenge","allowCredentials"]),s=gi(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:gi(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function MI(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:rs(new Uint8Array(e.response.attestationObject)),clientDataJSON:rs(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function $I(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:rs(new Uint8Array(s.authenticatorData)),clientDataJSON:rs(new Uint8Array(s.clientDataJSON)),signature:rs(new Uint8Array(s.signature)),userHandle:s.userHandle?rs(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function BS(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Gy(){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 FI(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new _u("Browser returned unexpected credential type",t)}:{data:null,error:new _u("Empty credential response",t)}}
209catch(t){return{data:null,error:OI({error:t,options:e})}}}async function UI(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new _u("Browser returned unexpected credential type",t)}:{data:null,error:new _u("Empty credential response",t)}}catch(t){return{data:null,error:NI({error:t,options:e})}}}const VI={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},BI={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Tu(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const a=r[i];t(a)?r[i]=Tu(a,o):r[i]=Tu(o)}else r[i]=o}return r}function zI(e,t){return Tu(VI,e,t||{})}function WI(e,t){return Tu(BI,e,t||{})}class HI{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:s},i){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const u=s??II.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:c}=a.webauthn.credential_options.publicKey;if(!c.name){const d=r;if(d)c.name=`${c.id}:${d}`;else{const f=(await this.client.getUser()).data.user,v=((o=f==null?void 0:f.user_metadata)===null||o===void 0?void 0:o.name)||(f==null?void 0:f.email)||(f==null?void 0:f.id)||"User";c.name=`${c.id}:${v}`}}c.displayName||(c.displayName=c.name)}switch(a.webauthn.type){case"create":{const c=zI(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:h}=await FI({publicKey:c,signal:u});return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const c=WI(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:h}=await UI(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:c,signal:u}));return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(a){return U(a)?{data:null,error:a}:{data:null,error:new Zr("Unexpected error in challenge",a)}}}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:s}={}},i){if(!n)return{data:null,error:new da("rpId is required for WebAuthn authentication")};try{if(!Gy())return{data:null,error:new Zr("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return U(o)?{data:null,error:o}:{data:null,error:new Zr("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new da("rpId is required for WebAuthn registration")};try{if(!Gy())return{data:null,error:new Zr("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(c=>{var d;return(d=c.data)===null||d===void 0?void 0:d.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.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:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(o){return U(o)?{data:null,error:o}:{data:null,error:new Zr("Unexpected error in register",o)}}}}CI();const KI={url:zj,storageKey:Wj,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Hj,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4,skipAutoInitialize:!1};
209async function Yy(e,t,n){return await n()}const Ls={};class ha{get jwks(){var t,n;return(n=(t=Ls[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Ls[this.storageKey]=Object.assign(Object.assign({},Ls[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Ls[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Ls[this.storageKey]=Object.assign(Object.assign({},Ls[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},KI),t);if(this.storageKey=i.storageKey,this.instanceID=(n=ha.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,ha.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&Fe()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new TI({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=FS(i.fetch),this.lock=i.lock||Yy,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&Fe()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=kI:this.lock=Yy,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 HI(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:$S()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Ky(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Ky(this.memoryStorage)),Fe()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}i.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${DS}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(Fe()&&(n=iI(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Fe()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),Qj(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{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return U(n)?this._returnResult({error:n}):this._returnResult({error:new Zr("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await W(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:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Ht}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(U(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:c,password:d,options:h}=t;let f=null,v=null;this.flowType==="pkce"&&([f,v]=await js(this.storage,this.storageKey)),i=await W(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:c,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:v},xform:Ht})}else if("phone"in t){const{phone:c,password:d,options:h}=t;i=await W(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Ht})}else throw new fl("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await $e(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(await $e(this.storage,`${this.storageKey}-code-verifier`),U(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await W(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Wy})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await W(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Wy})}else throw new fl("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new Ns;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(U(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,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:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,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,s,i,o,a,l,u,c,d,h;let f,v;if("message"in t)f=t.message,v=t.signature;else{const{chain:p,wallet:x,statement:m,options:g}=t;let y;if(Fe())if(typeof x=="object")y=x;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")y=A.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 x!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=x}const S=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href),E=await y.request({method:"eth_requestAccounts"}).then(A=>A).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!E||E.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const _=VS(E[0]);let T=(r=g==null?void 0:g.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!T){const A=await y.request({method:"eth_chainId"});T=PI(A)}const k={domain:S.host,address:_,statement:m,uri:S.href,version:"1",chainId:T,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=g==null?void 0:g.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.resources};f=AI(k),v=await y.request({method:"personal_sign",params:[RI(f),_]})}try{const{data:p,error:x}=await W(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:v},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Ht});if(x)throw x;if(!p||!p.session||!p.user){const m=new Ns;return this._returnResult({data:{user:null,session:null},error:m})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:Object.assign({},p),error:x})}catch(p){if(U(p))return this._returnResult({data:{user:null,session:null},error:p});throw p}}async signInWithSolana(t){var n,r,s,i,o,a,l,u,c,d,h,f;let v,p;if("message"in t)v=t.message,p=t.signature;else{const{chain:x,wallet:m,statement:g,options:y}=t;let S;if(Fe())if(typeof m=="object")S=m;else{const _=window;if("solana"in _&&typeof _.solana=="object"&&("signIn"in _.solana&&typeof _.solana.signIn=="function"||"signMessage"in _.solana&&typeof _.solana.signMessage=="function"))S=_.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof m!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=m}const E=new URL((n=y==null?void 0:y.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const _=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y==null?void 0:y.signInWithSolana),{version:"1",domain:E.host,uri:E.href}),g?{statement:g}:null));let T;if(Array.isArray(_)&&_[0]&&typeof _[0]=="object")T=_[0];else if(_&&typeof _=="object"&&"signedMessage"in _&&"signature"in _)T=_;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in T&&"signature"in T&&(typeof T.signedMessage=="string"||T.signedMessage instanceof Uint8Array)&&T.signature instanceof Uint8Array)v=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),p=T.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");v=[`${E.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${E.href}`,`Issued At: ${(s=(r=y==null?void 0:y.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=y==null?void 0:y.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((o=y==null?void 0:y.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((a=y==null?void 0:y.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((l=y==null?void 0:y.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((u=y==null?void 0:y.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((d=(c=y==null?void 0:y.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||d===void 0)&&d.length?["Resources",...y.signInWithSolana.resources.map(T=>`- ${T}`)]:[]].join(` 210`);const _=await S.signMessage(new TextEncoder().encode(v),"utf8");if(!_||!(_ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=_}}try{const{data:x,error:m}=await W(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:v,signature:rs(p)}
210,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Ht});if(m)throw m;if(!x||!x.session||!x.user){const g=new Ns;return this._returnResult({data:{user:null,session:null},error:g})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:m})}catch(x){if(U(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await Kr(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new Jj;const{data:i,error:o}=await W(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Ht});if(await $e(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new Ns;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await $e(this.storage,`${this.storageKey}-code-verifier`),U(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await W(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Ht}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const c=new Ns;return this._returnResult({data:{user:null,session:null},error:c})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if(U(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await js(this.storage,this.storageKey));const{error:d}=await W(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 this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await W(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c})}throw new fl("You must provide either an email or phone number.")}catch(a){if(await $e(this.storage,`${this.storageKey}-code-verifier`),U(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(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:o,error:a}=await W(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Ht});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(U(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await js(this.storage,this.storageKey));const u=await W(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}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:SI});return!((i=u.data)===null||i===void 0)&&i.url&&Fe()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await $e(this.storage,`${this.storageKey}-code-verifier`),U(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,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 mt;const{error:s}=await W(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(U(t))return this._returnResult({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:s,options:i}=t,{error:o}=await W(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await W(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new fl("You must provide either an email or phone number and a type")}catch(n){if(U(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,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(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}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 s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(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 Kr(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
210id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<od:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Kr(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=ud()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=vI(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await W(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:cr}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new mt}:await W(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:cr})})}catch(n){if(U(n))return ad(n)&&(await this._removeSession(),await $e(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new mt;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await js(this.storage,this.storageKey));const{data:u,error:c}=await W(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:o.access_token,xform:cr});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await $e(this.storage,`${this.storageKey}-code-verifier`),U(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new mt;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=ml(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({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)return this._returnResult({data:{user:null,session:null},error: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 this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(U(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new mt;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(U(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!Fe())throw new pl("No browser detected.");
210if(t.error||t.error_description||t.error_code)throw new pl(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 My("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new pl("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 My("No code detected.");const{data:g,error:y}=await this._exchangeCodeForSession(t.code);if(y)throw y;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=t;if(!i||!a||!o||!u)throw new pl("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(a);let h=c+d;l&&(h=parseInt(l));const f=h-c;f*1e3<=Vs&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${d}s`);const v=h-d;c-v>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",v,h,c):c-v<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",v,h,c);const{data:p,error:x}=await this._getUser(i);if(x)throw x;const m={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:d,expires_at:h,refresh_token:o,token_type:u,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:m,redirectType:t.type},error:null})}catch(r){if(U(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Kr(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i&&!ad(i))return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(Yj(a)&&(a.status===404||a.status===401||a.status===403)||ad(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await $e(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=sI(),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(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await js(this.storage,this.storageKey,!0));try{return await W(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await $e(this.storage,`${this.storageKey}-code-verifier`),U(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(U(n))return this._returnResult({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:s}=await this._useSession(async i=>{var o,a,l,u,c;const{data:d,error:h}=i;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.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 W(this.fetch,"GET",f,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return Fe()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(U(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
210if(s)throw s;const{options:o,provider:a,token:l,access_token:u,nonce:c}=t,d=await W(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:o==null?void 0:o.captchaToken}},xform:Ht}),{data:h,error:f}=d;return f?this._returnResult({data:{user:null,session:null},error:f}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new Ns}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:f}))}catch(s){if(await $e(this.storage,`${this.storageKey}-code-verifier`),U(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await W(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(U(n))return this._returnResult({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 lI(async s=>(s>
2100&&await aI(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await W(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Ht})),(s,i)=>{const o=200*Math.pow(2,s);return i&&ld(i)&&Date.now()+o-r<Vs})}catch(r){if(this._debug(n,"error",r),U(r))return this._returnResult({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 s=await Kr(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Kr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Bs(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:ud()}else if(s&&!s.user&&!s.user){const o=await Kr(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await $e(this.storage,this.storageKey+"-user"),await Bs(this.storage,this.storageKey,s)):s.user=ud()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<od;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${od}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),ld(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new mt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new dc;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new mt;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(s,"error",i),U(i)){const o={data:null,error:i};return ld(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await $e(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Bs(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=By(s);await Bs(this.storage,this.storageKey,i)}else{const s=By(n);await Bs(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await $e(this.storage,this.storageKey),await $e(this.storage,this.storageKey+"-code-verifier"),await $e(this.storage,this.storageKey+"-user"),this.userStorage&&await $e(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)}
210catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Vs);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}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 s=Math.floor((r.expires_at*1e3-t)/Vs);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Vs}ms, refresh threshold is ${Xh} ticks`),s<=Xh&&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 US)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()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},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(this.lockAcquireTimeout,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 s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await js(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await W(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});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 W(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?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?MI(t.webauthn.credential_response):$I(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await W(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=await W(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:a}=o;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:DI(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:LI(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({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 s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,i;if(t)try{const{payload:f}=ml(t);let v=null;f.aal&&(v=f.aal);let p=v;const{data:{user:x},error:m}=await this.getUser(t);if(m)return this._returnResult({data:null,error:m});((r=(n=x==null?void 0:x.factors)===null||n===void 0?void 0:n.filter(S=>S.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(p="aal2");const y=f.amr||[];return{data:{currentLevel:v,nextLevel:p,currentAuthenticationMethods:y},error:null}}catch(f){if(U(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:o},error:a}
210=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=ml(o.access_token);let u=null;l.aal&&(u=l.aal);let c=u;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(f=>f.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(c="aal2");const h=l.amr||[];return{data:{currentLevel:u,nextLevel:c,currentAuthenticationMethods:h},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await W(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new mt})})}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new mt});const o=await W(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Fe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new mt});const o=await W(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Fe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await W(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new mt})})}catch(t){if(U(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await W(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new mt})})}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+qj>s)return r;const{data:i,error:o}=await W(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:f,error:v}
210=await this.getSession();if(v||!f.session)return this._returnResult({data:null,error:v});r=f.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=ml(r);n!=null&&n.allowExpired||mI(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:i,header:s,signature:o},error:null}}const c=gI(s.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,o,nI(`${a}.${l}`)))throw new tf("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}}ha.nextInstanceID={};const qI=ha,GI="2.97.0";let wo="";typeof Deno<"u"?wo="deno":typeof document<"u"?wo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?wo="react-native":wo="node";const YI={"X-Client-Info":`supabase-js-${wo}/${GI}`},QI={headers:YI},JI={schema:"public"},XI={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},ZI={};function fa(e){"@babel/helpers - typeof";return fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fa(e)}function eD(e,t){if(fa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tD(e){var t=eD(e,"string");return fa(t)=="symbol"?t:t+""}function nD(e,t,n){return(t=tD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qy(Object(n),!0).forEach(function(r){nD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const rD=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),sD=()=>Headers,iD=(e,t,n)=>{const r=rD(n),s=sD();return async(i,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(i,be(be({},o),{},{headers:u}))}};function oD(e){return e.endsWith("/")?e:e+"/"}function aD(e,t){var n,r;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:u,realtime:c,global:d}=t,h={db:be(be({},l),s),auth:be(be({},u),i),realtime:be(be({},c),o),storage:{},global:be(be(be({},d),a),{},{headers:be(be({},(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:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function lD(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(oD(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var uD=class extends qI{constructor(e){super(e)}},cD=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=lD(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,a={db:JI,realtime:ZI,auth:be(be({},XI),{},{storageKey:o}),global:QI},l=aD(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(c,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=iD(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(be({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(c=>this.realtime.setAuth(c)).catch(c=>console.warn("Failed to set initial Realtime auth token:",c)),this.rest=new YN(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new Bj(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new VN(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
210channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:u},c,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new uD({url:this.authUrl.href,headers:be(be({},h),c),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new hj(this.realtimeUrl.href,be(be({},e),{},{params:be(be({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const dD=(e,t,n)=>new cD(e,t,n);function hD(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}hD()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const fD="https://kdkcrtcrctswlfuisqwr.supabase.co",pD="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imtka2NydGNyY3Rzd2xmdWlzcXdyIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzE1OTcxMTUsImV4cCI6MjA4NzE3MzExNX0.ZUOvMwYoAuq-KyrTCF5BPTmquBbzRGTqCm56t93vsHM",At=dD(fD,pD,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),nf={plan:"free",subscriptionStatus:"inactive",scansUsed:0,scanLimit:10},zS=b.createContext({session:null,user:null,loading:!0,subscription:nf,refreshSubscription:async()=>{},signOut:async()=>{}}),Oa=()=>b.useContext(zS),mD=({children:e})=>{const[t,n]=b.useState(null),[r,s]=b.useState(null),[i,o]=b.useState(!0),[a,l]=b.useState(nf),u=async()=>{const{data:{session:d}}=await At.auth.getSession();if(!(d!=null&&d.user))return;const{data:h,error:f}=await At.from("profiles").select("plan, subscription_status, scans_used_month, scan_limit_month").eq("id",d.user.id).single();h&&!f&&l({plan:h.plan,subscriptionStatus:h.subscription_status,scansUsed:h.scans_used_month,scanLimit:h.scan_limit_month})},c=async()=>{await At.auth.signOut(),l(nf)};return b.useEffect(()=>{const{data:{subscription:d}}=At.auth.onAuthStateChange(async(h,f)=>{n(f),s((f==null?void 0:f.user)??null),o(!1),f!=null&&f.user&&setTimeout(()=>u(),0)});return At.auth.getSession().then(({data:{session:h}})=>{n(h),s((h==null?void 0:h.user)??null),o(!1),h!=null&&h.user&&u()}),()=>d.unsubscribe()},[]),w.jsx(zS.Provider,{value:{session:t,user:r,loading:i,subscription:a,refreshSubscription:u,signOut:c},children:e})},dd=({children:e})=>{const{user:t,loading:n}=Oa();return n?w.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:w.jsx("div",{className:"w-6 h-6 border-2 border-primary border-t-transparent rounded-full animate-spin"})}):t?w.jsx(w.Fragment,{children:e}):w.jsx(TN,{to:"/login",replace:!0})},gD=Rp("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"}}),Ee=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?lC:"button";return w.jsx(o,{className:Ze(gD({variant:t,size:n,className:e})),ref:i,...s})});
vendor: 10,805 bytes, line 210
210Ee.displayName="Button";const WS=()=>{const{user:e}=Oa();return w.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 glass border-b border-border/50",children:w.jsxs("div",{className:"max-w-6xl mx-auto flex items-center justify-between px-6 py-4",children:[w.jsxs("span",{className:"text-lg font-semibold tracking-tight",children:["kamora",w.jsx("span",{className:"text-primary",children:".ai"})]}),w.jsxs("div",{className:"hidden sm:flex items-center gap-8 text-sm text-muted-foreground",children:[w.jsx("a",{href:"#features",className:"hover:text-foreground transition-colors",children:"Features"}),w.jsx("a",{href:"#pricing",className:"hover:text-foreground transition-colors",children:"Pricing"}),w.jsx("a",{href:"#giveaway",className:"hover:text-foreground transition-colors",children:"Giveaways"}),w.jsx("a",{href:"#waitlist",className:"hover:text-foreground transition-colors",children:"Waitlist"})]}),e?w.jsx(Ee,{asChild:!0,size:"sm",className:"rounded-full bg-primary text-primary-foreground hover:bg-primary/90 px-5 text-sm font-medium",children:w.jsx(ot,{to:"/dashboard",children:"Dashboard"})}):w.jsx(Ee,{asChild:!0,size:"sm",className:"rounded-full bg-primary text-primary-foreground hover:bg-primary/90 px-5 text-sm font-medium",children:w.jsx(ot,{to:"/login",children:"Sign In"})})]})})},HS=b.createContext({});function yD(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const KS=typeof window<"u",vD=KS?b.useLayoutEffect:b.useEffect,Gp=b.createContext(null);function Yp(e,t){e.indexOf(t)===-1&&e.push(t)}function ku(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const _n=(e,t,n)=>n>t?t:n<e?e:n;let hc=()=>{},Li=()=>{};const Bn={},qS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function GS(e){return typeof e=="object"&&e!==null}const YS=e=>/^0[^.\s]+$/u.test(e);function QS(e){let t;return()=>(t===void 0&&(t=e()),t)}const It=e=>e,wD=(e,t)=>n=>t(e(n)),Na=(...e)=>e.reduce(wD),pa=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Qp{constructor(){this.subscriptions=[]}add(t){return Yp(this.subscriptions,t),()=>ku(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Dt=e=>e*1e3,Nt=e=>e/1e3;function JS(e,t){return t?e*(1e3/t):0}const XS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,xD=1e-7,bD=12;function SD(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=XS(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>xD&&++a<bD);return o}function ja(e,t,n,r){if(e===t&&n===r)return It;const s=i=>SD(i,0,1,e,n);return i=>i===0||i===1?i:XS(s(i),t,r)}const ZS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,e1=e=>t=>1-e(1-t),t1=ja(.33,1.53,.69,.99),Jp=e1(t1),n1=ZS(Jp),r1=e=>(e*=2)<1?.5*Jp(e):.5*(2-Math.pow(2,-10*(e-1))),Xp=e=>1-Math.sin(Math.acos(e)),s1=e1(Xp),i1=ZS(Xp),ED=ja(.42,0,1,1),_D=ja(0,0,.58,1),o1=ja(.42,0,.58,1),TD=e=>Array.isArray(e)&&typeof e[0]!="number",a1=e=>Array.isArray(e)&&typeof e[0]=="number",Jy={linear:It,easeIn:ED,easeInOut:o1,easeOut:_D,circIn:Xp,circInOut:i1,circOut:s1,backIn:Jp,backInOut:n1,backOut:t1,anticipate:r1},kD=e=>typeof e=="string",Xy=e=>{if(a1(e)){Li(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return ja(t,n,r,s)}else if(kD(e))return Li(Jy[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Jy[e];return e},gl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Zy={value:null,addProjectionMetrics:null};function CD(e,t){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){o.has(d)&&(c.schedule(d),e()),l++,d(a)}const c={schedule:(d,h=!1,f=!1)=>{const p=f&&s?n:r;return h&&o.add(d),p.has(d)||p.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(u),t&&Zy.value&&Zy.value.frameloop[t].push(l),l=0,n.clear(),s=!1,i&&(i=!1,c.process(d))}};return c}const PD=40;function l1(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=gl.reduce((y,S)=>(y[S]=CD(i,t?S:void 0),y),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:f,postRender:v}=o,p=()=>{const y=Bn.useManualTiming?s.timestamp:performance.now();n=!1,Bn.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(y-s.timestamp,PD),1)),s.timestamp=y,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),d.process(s),h.process(s),f.process(s),v.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(p))},x=()=>{n=!0,r=!0,s.isProcessing||e(p)};return{schedule:gl.reduce((y,S)=>{const E=o[S];return y[S]=(_,T=!1,k=!1)=>(n||x(),E.schedule(_,T,k)),y},{}),cancel:y=>{for(let S=0;S<gl.length;S++)o[gl[S]].cancel(y)},state:s,steps:o}}const{schedule:le,cancel:Dr,state:Ve,steps:hd}=l1(typeof requestAnimationFrame<"u"?requestAnimationFrame:It,!0);let $l;function RD(){$l=void 0}const rt={now:()=>($l===void 0&&rt.set(Ve.isProcessing||Bn.useManualTiming?Ve.timestamp:performance.now()),$l),set:e=>{$l=e,queueMicrotask(RD)}},u1=e=>t=>typeof t=="string"&&t.startsWith(e),c1=u1("--"),AD=u1("var(--"),Zp=e=>AD(e)?OD.test(e.split("/*")[0].trim()):!1,OD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ev(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Qi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ma={...Qi,transform:e=>_n(0,1,e)},yl={...Qi,default:1},jo=e=>Math.round(e*1e5)/1e5,em=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ND(e){return e==null}const jD=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tm=(e,t)=>n=>!!(typeof n=="string"&&jD.test(n)&&n.startsWith(e)||t&&!ND(n)&&Object.prototype.hasOwnProperty.call(n,t)),d1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(em);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ID=e=>_n(0,255,e),fd={...Qi,transform:e=>Math.round(ID(e))},ss={test:tm("rgb","red"),parse:d1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+fd.transform(e)+", "+fd.transform(t)+", "+fd.transform(n)+", "+jo(ma.transform(r))+")"};function DD(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const rf={test:tm("#"),parse:DD,transform:ss.transform},Ia=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),nr=Ia("deg"),Sn=Ia("%"),$=Ia("px"),LD=Ia("vh"),MD=Ia("vw"),tv={...Sn,parse:e=>Sn.parse(e)/100,transform:e=>Sn.transform(e*100)},ri={test:tm("hsl","hue"),parse:d1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Sn.transform(jo(t))+", "+Sn.transform(jo(n))+", "+jo(ma.transform(r))+")"},Pe={test:e=>ss.test(e)||rf.test(e)||ri.test(e),parse:e=>ss.test(e)?ss.parse(e):ri.test(e)?ri.parse(e):rf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ss.transform(e):ri.transform(e),getAnimatableNone:e=>{const t=Pe.parse(e);return t.alpha=0,Pe.transform(t)}},$D=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FD(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(em))==null?void 0:t.length)||0)+(((n=e.match($D))==null?void 0:n.length)||0)>0}const h1="number",f1="color",UD="var",VD="var(",nv="${}",BD=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ga(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(BD,l=>(Pe.test(l)?(r.color.push(i),s.push(f1),n.push(Pe.parse(l))):l.startsWith(VD)?(r.var.push(i),s.push(UD),n.push(l)):(r.number.push(i),s.push(h1),n.push(parseFloat(l))),++i,nv)).split(nv);return{values:n,split:a,indexes:r,types:s}}function p1(e){return ga(e).values}function m1(e){const{split:t,types:n}=ga(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const a=n[o];a===h1?i+=jo(s[o]):a===f1?i+=Pe.transform(s[o]):i+=s[o]}return i}}const zD=e=>typeof e=="number"?0:Pe.test(e)?Pe.getAnimatableNone(e):e;function WD(e){const t=p1(e);return m1(e)(t.map(zD))}const rn={test:FD,parse:p1,createTransformer:m1,getAnimatableNone:WD};function pd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function HD({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=pd(l,a,e+1/3),i=pd(l,a,e),o=pd(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Cu(e,t){return n=>n>0?t:e}const ye=(e,t,n)=>e+(t-e)*n,md=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},KD=[rf,ss,ri],qD=e=>KD.find(t=>t.test(e));function rv(e){const t=qD(e);if(hc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===ri&&(n=HD(n)),n}const sv=(e,t)=>{const n=rv(e),r=rv(t);if(!n||!r)return Cu(e,t);const s={...n};return i=>(s.red=md(n.red,r.red,i),s.green=md(n.green,r.green,i),s.blue=md(n.blue,r.blue,i),s.alpha=ye(n.alpha,r.alpha,i),ss.transform(s))},sf=new Set(["none","hidden"]);function GD(e,t){return sf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function YD(e,t){return n=>ye(e,t,n)}function nm(e){return typeof e=="number"?YD:typeof e=="string"?Zp(e)?Cu:Pe.test(e)?sv:XD:Array.isArray(e)?g1:typeof e=="object"?Pe.test(e)?sv:QD:Cu}function g1(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>nm(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function QD(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=nm(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function JD(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const XD=(e,t)=>{const n=rn.createTransformer(t),r=ga(e),s=ga(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?sf.has(e)&&!s.values.length||sf.has(t)&&!r.values.length?GD(e,t):Na(g1(JD(r,s),s.values),n):(hc(!0,`Complex values '${e}' and '${t}
210' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Cu(e,t))};function y1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ye(e,t,n):nm(e)(e,t)}const ZD=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>le.update(t,n),stop:()=>Dr(t),now:()=>Ve.isProcessing?Ve.timestamp:rt.now()}},v1=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Pu=2e4;function rm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Pu;)t+=n,r=e.next(t);return t>=Pu?1/0:t}function eL(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(rm(r),Pu);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Nt(s)}}const tL=5;function w1(e,t,n){const r=Math.max(t-tL,0);return JS(n-e(r),t-r)}const me={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},gd=.001;function nL({duration:e=me.duration,bounce:t=me.bounce,velocity:n=me.velocity,mass:r=me.mass}){let s,i;hc(e<=Dt(me.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=_n(me.minDamping,me.maxDamping,o),e=_n(me.minDuration,me.maxDuration,Nt(e)),o<1?(s=u=>{const c=u*o,d=c*e,h=c-n,f=of(u,o),v=Math.exp(-d);return gd-h/f*v},i=u=>{const d=u*o*e,h=d*n+n,f=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-d),p=of(Math.pow(u,2),o);return(-s(u)+gd>0?-1:1)*((h-f)*v)/p}):(s=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-gd+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=sL(s,i,a);if(e=Dt(e),isNaN(l))return{stiffness:me.stiffness,damping:me.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const rL=12;function sL(e,t,n){let r=n;for(let s=1;s<rL;s++)r=r-e(r)/t(r);return r}function of(e,t){return e*Math.sqrt(1-t*t)}const iL=["duration","bounce"],oL=["stiffness","damping","mass"];function iv(e,t){return t.some(n=>e[n]!==void 0)}function aL(e){let t={velocity:me.velocity,stiffness:me.stiffness,damping:me.damping,mass:me.mass,isResolvedFromDuration:!1,...e};if(!iv(e,oL)&&iv(e,iL))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*_n(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:me.mass,stiffness:s,damping:i}}else{const n=nL({...e,velocity:0});t={...t,...n,mass:me.mass},t.isResolvedFromDuration=!0}return t}function Ru(e=me.visualDuration,t=me.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:f}=aL({...n,velocity:-Nt(n.velocity||0)}),v=h||0,p=u/(2*Math.sqrt(l*c)),x=o-i,m=Nt(Math.sqrt(l/c)),g=Math.abs(x)<5;r||(r=g?me.restSpeed.granular:me.restSpeed.default),s||(s=g?me.restDelta.granular:me.restDelta.default);let y;if(p<1){const E=of(m,p);y=_=>{const T=Math.exp(-p*m*_);return o-T*((v+p*m*x)/E*Math.sin(E*_)+x*Math.cos(E*_))}}else if(p===1)y=E=>o-Math.exp(-m*E)*(x+(v+m*x)*E);else{const E=m*Math.sqrt(p*p-1);y=_=>{const T=Math.exp(-p*m*_),k=Math.min(E*_,300);return o-T*((v+p*m*x)*Math.sinh(k)+E*x*Math.cosh(k))/E}}const S={calculatedDuration:f&&d||null,next:E=>{const _=y(E);if(f)a.done=E>=d;else{let T=E===0?v:0;p<1&&(T=E===0?Dt(v):w1(y,E,_));const k=Math.abs(T)<=r,A=Math.abs(o-_)<=s;a.done=k&&A}return a.value=a.done?o:_,a},toString:()=>{const E=Math.min(rm(S),Pu),_=v1(T=>S.next(E*T).value,E,30);return E+"ms "+_},toTransition:()=>{}};return S}Ru.applyToOptions=e=>{const t=eL(e,100,Ru);return e.ease=t.ease,e.duration=Dt(t.duration),e.type="keyframes",e};function af({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],h={done:!1,value:d},f=k=>a!==void 0&&k<a||l!==void 0&&k>l,v=k=>a===void 0?l:l===void 0||Math.abs(a-k)<Math.abs(l-k)?a:l;let p=n*t;const x=d+p,m=o===void 0?x:o(x);m!==x&&(p=m-d);const g=k=>-p*Math.exp(-k/r),y=k=>m+g(k),S=k=>{const A=g(k),O=y(k);h.done=Math.abs(A)<=u,h.value=h.done?m:O};let E,_;const T=k=>{f(h.value)&&(E=k,_=Ru({keyframes:[h.value,v(h.value)],velocity:w1(y,k,h.value),damping:s,stiffness:i,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:k=>{let A=!1;return!_&&E===void 0&&(A=!0,S(k),T(k)),E!==void 0&&k>=E?_.next(k-E):(!A&&S(k),h)}}}
vendor: 8,346 bytes, line 210
210function lL(e,t,n){const r=[],s=n||Bn.mix||y1,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||It:t;a=Na(l,a)}r.push(a)}return r}function uL(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Li(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=lL(t,r,s),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const h=pa(e[d],e[d+1],c);return a[d](h)};return n?c=>u(_n(e[0],e[i-1],c)):u}function cL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=pa(0,t,r);e.push(ye(n,1,s))}}function dL(e){const t=[0];return cL(t,e.length-1),t}function hL(e,t){return e.map(n=>n*t)}function fL(e,t){return e.map(()=>t||o1).splice(0,e.length-1)}function Io({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=TD(r)?r.map(Xy):Xy(r),i={done:!1,value:t[0]},o=hL(n&&n.length===t.length?n:dL(t),e),a=uL(o,t,{ease:Array.isArray(s)?s:fL(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const pL=e=>e!==null;function sm(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(pL),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const mL={decay:af,inertia:af,tween:Io,keyframes:Io,spring:Ru};function x1(e){typeof e.type=="string"&&(e.type=mL[e.type])}class im{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const gL=e=>e/100;class om extends im{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==rt.now()&&this.tick(rt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;x1(t);const{type:n=Io,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Io;l!==Io&&typeof a[0]!="number"&&(this.mixKeyframes=Na(gL,y1(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=rm(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:f,type:v,onUpdate:p,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?m<0:m>s;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let y=this.currentTime,S=r;if(d){const k=Math.min(this.currentTime,s)/a;let A=Math.floor(k),O=k%1;!O&&k>=1&&(O=1),O===1&&A--,A=Math.min(A,d+1),!!(A%2)&&(h==="reverse"?(O=1-O,f&&(O-=f/a)):h==="mirror"&&(S=o)),y=_n(0,1,O)*a}const E=g?{done:!1,value:c[0]}:S.next(y);i&&(E.value=i(E.value));let{done:_}=E;!g&&l!==null&&(_=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return T&&v!==af&&(E.value=sm(c,this.options,x,this.speed)),p&&p(E.value),T&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Nt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Nt(t)}get time(){return Nt(this.currentTime)}set time(t){var n;t=Dt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(rt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Nt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=ZD,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(rt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function yL(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const is=e=>e*180/Math.PI,lf=e=>{const t=is(Math.atan2(e[1],e[0]));return uf(t)},vL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:lf,rotateZ:lf,skewX:e=>is(Math.atan(e[1])),skewY:e=>is(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uf=e=>(e=e%360,e<0&&(e+=360),e),ov=lf,av=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),lv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),wL={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:av,scaleY:lv,scale:e=>(av(e)+lv(e))/2,rotateX:e=>uf(is(Math.atan2(e[6],e[5]))),rotateY:e=>uf(is(Math.atan2(-e[2],e[0]))),rotateZ:ov,rotate:ov,skewX:e=>is(Math.atan(e[4])),skewY:e=>is(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function cf(e){return e.includes("scale")?1:0}function df(e,t){if(!e||e==="none")return cf(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=wL,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=vL,s=a}if(!s)return cf(t);const i=r[t],o=s[1].split(",").map(bL);return typeof i=="function"?i(o):o[i]}const xL=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return df(n,t)};function bL(e){return parseFloat(e.trim())}const Ji=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xi=new Set(Ji),uv=e=>e===Qi||e===$,SL=new Set(["x","y","z"]),EL=Ji.filter(e=>!SL.has(e));function _L(e){const t=[];return EL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const wr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>df(t,"x"),y:(e,{transform:t})=>df(t,"y")};wr.translateX=wr.x;wr.translateY=wr.y;const ps=new Set;let hf=!1,ff=!1,pf=!1;function b1(){if(ff){const e=Array.from(ps).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=_L(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);
vendor: 1,610 bytes, line 210
210s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ff=!1,hf=!1,ps.forEach(e=>e.complete(pf)),ps.clear()}function S1(){ps.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ff=!0)})}function TL(){pf=!0,S1(),b1(),pf=!1}class am{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ps.add(this),hf||(hf=!0,le.read(S1),le.resolveKeyframes(b1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}yL(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ps.delete(this)}cancel(){this.state==="scheduled"&&(ps.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kL=e=>e.startsWith("--");function CL(e,t,n){kL(t)?e.style.setProperty(t,n):e.style[t]=n}const PL={};function E1(e,t){const n=QS(e);return()=>PL[t]??n()}const RL=E1(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),_1=E1(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 5,100 bytes, line 210
210,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xo([0,.65,.55,1]),circOut:xo([.55,0,1,.45]),backIn:xo([.31,.01,.66,-.59]),backOut:xo([.33,1.53,.69,.99])};function T1(e,t){if(e)return typeof e=="function"?_1()?v1(e,t):"ease-out":a1(e)?xo(e):Array.isArray(e)?e.map(n=>T1(n,t)||cv.easeOut):cv[e]}function AL(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=T1(a,s);Array.isArray(d)&&(c.easing=d);const h={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}function k1(e){return typeof e=="function"&&"applyToOptions"in e}function OL({type:e,...t}){return k1(e)&&_1()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class C1 extends im{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Li(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=OL(t);this.animation=AL(n,r,s,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const c=sm(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):CL(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Nt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Nt(t)}get time(){return Nt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Dt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&RL()?(this.animation.timeline=t,It):n(this)}}const P1={anticipate:r1,backInOut:n1,circInOut:i1};function NL(e){return e in P1}function jL(e){typeof e.ease=="string"&&NL(e.ease)&&(e.ease=P1[e.ease])}const yd=10;class IL extends C1{constructor(t){jL(t),x1(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new om({...o,autoplay:!1}),l=Math.max(yd,rt.now()-this.startTime),u=_n(0,yd,l-yd);n.setWithVelocity(a.sample(Math.max(0,l-u)).value,a.sample(l).value,u),a.stop()}}const dv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(rn.test(e)||e==="0")&&!e.startsWith("url("));function DL(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function LL(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=dv(s,t),a=dv(i,t);return hc(o===a,`You are trying to animate ${t} from "${s}" to "${i}". "${o?i:s}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:DL(e)||(n==="spring"||k1(n))&&r}function mf(e){e.duration=0,e.type="keyframes"}const ML=new Set(["opacity","clipPath","filter","transform"]),$L=QS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function FL(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return $L()&&n&&ML.has(n)&&(n!=="transform"||!u)&&!l&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const UL=40;class VL extends im{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:
210o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var v;super(),this.stop=()=>{var p,x;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=rt.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:u,element:c,...d},f=(c==null?void 0:c.KeyframeResolver)||am;this.keyframeResolver=new f(a,(p,x,m)=>this.onKeyframesResolved(p,x,h,!m),l,u,c),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,s){var x,m;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=rt.now(),LL(t,i,o,a)||((Bn.instantAnimations||!l)&&(c==null||c(sm(t,r,n))),t[0]=t[t.length-1],mf(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>UL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!u&&FL(h),v=(m=(x=h.motionValue)==null?void 0:x.owner)==null?void 0:m.current,p=f?new IL({...h,element:v}):new om(h);p.finished.then(()=>{this.notifyFinished()}).catch(It),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),TL()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function R1(e,t,n,r=0,s=1){const i=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const BL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zL(e){const t=BL.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const WL=4;function A1(e,t,n=1){Li(n<=WL,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=zL(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return qS(o)?parseFloat(o):o}return Zp(s)?A1(s,t,n+1):s}const HL={type:"spring",stiffness:500,damping:25,restSpeed:10},KL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),qL={type:"keyframes",duration:.8},GL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},YL=(e,{keyframes:t})=>t.length>2?qL:Xi.has(e)?e.startsWith("scale")?KL(t[1]):HL:GL,QL=e=>e!==null;function JL(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(QL),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}function O1(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function lm(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?O1(n,e):n}function XL({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const um=(e,t,n,r={},s,i)=>o=>{const a=lm(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Dt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};XL(a)||Object.assign(c,YL(e,c)),c.duration&&(c.duration=Dt(c.duration)),c.repeatDelay&&(c.repeatDelay=Dt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(mf(c),c.delay===0&&(
vendor: 8,708 bytes, line 210
210d=!0)),(Bn.instantAnimations||Bn.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(d=!0,mf(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=JL(c.keyframes,a);if(h!==void 0){le.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new om(c):new VL(c)};function hv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function cm(e,t,n,r){if(typeof t=="function"){const[s,i]=hv(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=hv(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function yi(e,t,n){const r=e.getProps();return cm(r,t,n!==void 0?n:r.custom,e)}const N1=new Set(["width","height","top","left","right","bottom",...Ji]),fv=30,ZL=e=>!isNaN(parseFloat(e));class eM{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=rt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=rt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ZL(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Qp);const r=this.events[t].add(n);return t==="change"?()=>{r(),le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>fv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,fv);return JS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mi(e,t){return new eM(e,t)}const gf=e=>Array.isArray(e);function tM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mi(n))}function nM(e){return gf(e)?e[e.length-1]||0:e}function rM(e,t){const n=yi(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=nM(i[o]);tM(e,o,a)}}const Qe=e=>!!(e&&e.getVelocity);function sM(e){return!!(Qe(e)&&e.add)}function yf(e,t){const n=e.getValue("willChange");if(sM(n))return n.add(t);if(!n&&Bn.WillChange){const r=new Bn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function dm(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const iM="framerAppearId",j1="data-"+dm(iM);function I1(e){return e.props[j1]}function oM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function D1(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?O1(i,l):l;const u=i==null?void 0:i.reduceMotion;r&&(i=r);const c=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const h in a){const f=e.getValue(h,e.latestValues[h]??null),v=a[h];if(v===void 0||d&&oM(d,h))continue;const p={delay:n,...lm(i||{},h)},x=f.get();if(x!==void 0&&!f.isAnimating&&!Array.isArray(v)&&v===x&&!p.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const S=I1(e);if(S){const E=window.MotionHandoffAnimation(S,h,le);E!==null&&(p.startTime=E,m=!0)}}yf(e,h);const g=u??e.shouldReduceMotion;f.start(um(h,f,v,g&&N1.has(h)?{type:!1}:p,e,m));const y=f.animation;y&&c.push(y)}if(o){const h=()=>le.update(()=>{o&&rM(e,o)});c.length?Promise.all(c).then(h):h()}return c}function vf(e,t,n={}){var l;const r=yi(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(D1(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:h}=s;return aM(e,t,u,c,d,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,c]=a==="beforeChildren"?[i,o]:[o,i];return u().then(()=>c())}else return Promise.all([i(),o(n.delay)])}function aM(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(vf(l,t,{...o,delay:n+(typeof r=="function"?0:r)+R1(e.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function lM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>vf(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=vf(e,t,n);else{const s=typeof t=="function"?yi(e,t,n.custom):t;r=Promise.all(D1(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const uM={test:e=>e==="auto",parse:e=>e},L1=e=>t=>t.test(e),M1=[Qi,$,Sn,nr,MD,LD,uM],pv=e=>M1.find(L1(e));function cM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||YS(e):!0}const dM=new Set(["brightness","contrast","saturate","opacity"]);function hM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(em)||[];if(!r)return e;const s=n.replace(r,"");let i=dM.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const fM=/\b([a-z-]*)\(.*?\)/gu,wf={...rn,getAnimatableNone:e=>{const t=e.match(fM);return t?t.map(hM).join(" "):e}},xf={...rn,getAnimatableNone:e=>{const t=rn.parse(e);return rn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},mv={...Qi,transform:Math.round},pM={rotate:nr,rotateX:nr,rotateY:nr,rotateZ:nr,scale:yl,scaleX:yl,scaleY:yl,scaleZ:yl,skew:nr,skewX:nr,skewY:nr,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:ma,originX:tv,originY:tv,originZ:$},hm={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,fontSize:$,backgroundPositionX:$,backgroundPositionY:$,...pM,zIndex:mv,fillOpacity:ma,strokeOpacity:ma,numOctaves:mv},mM={...hm,color:Pe,backgroundColor:Pe,outlineColor:Pe,fill:Pe,stroke:Pe,borderColor:Pe,borderTopColor:Pe,borderRightColor:Pe,borderBottomColor:Pe,borderLeftColor:Pe,filter:wf,WebkitFilter:wf,mask:xf,WebkitMask:xf},$1=e=>mM[e],gM=new Set([wf,xf]);function F1(e,t){let n=$1(e);return gM.has(n)||(n=rn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const yM=new Set(["auto","none","0"]);function vM(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!yM.has(i)&&ga(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=F1(n,s)}class wM extends am{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];
vendor: 1,295 bytes, line 210
210if(typeof d=="string"&&(d=d.trim(),Zp(d))){const h=A1(d,n.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!N1.has(r)||t.length!==2)return;const[s,i]=t,o=pv(s),a=pv(i),l=ev(s),u=ev(i);if(l!==u&&wr[r]){this.needsMeasurement=!0;return}if(o!==a)if(uv(o)&&uv(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else wr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||cM(t[s]))&&r.push(s);r.length&&vM(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=wr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=wr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
vendor: 13,739 bytes, line 210
210h(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const xM=new Set(["opacity","clipPath","filter","transform"]);function U1(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const V1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function bM(e){return GS(e)&&"offsetHeight"in e}const{schedule:fm,cancel:nV}=l1(queueMicrotask,!1),Kt={x:!1,y:!1};function B1(){return Kt.x||Kt.y}function SM(e){return e==="x"||e==="y"?Kt[e]?null:(Kt[e]=!0,()=>{Kt[e]=!1}):Kt.x||Kt.y?null:(Kt.x=Kt.y=!0,()=>{Kt.x=Kt.y=!1})}function z1(e,t){const n=U1(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function EM(e){return!(e.pointerType==="touch"||B1())}function _M(e,t,n={}){const[r,s,i]=z1(e,n);return r.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",v)},d=x=>{u&&(u(x),u=void 0),c()},h=x=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(x))},f=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},v=x=>{if(x.pointerType!=="touch"){if(a){l=!0;return}d(x)}},p=x=>{if(!EM(x))return;l=!1;const m=t(o,x);typeof m=="function"&&(u=m,o.addEventListener("pointerleave",v,s))};o.addEventListener("pointerenter",p,s),o.addEventListener("pointerdown",f,s)}),i}const W1=(e,t)=>t?e===t?!0:W1(e,t.parentElement):!1,pm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,TM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function kM(e){return TM.has(e.tagName)||e.isContentEditable===!0}const CM=new Set(["INPUT","SELECT","TEXTAREA"]);function PM(e){return CM.has(e.tagName)||e.isContentEditable===!0}const Fl=new WeakSet;function gv(e){return t=>{t.key==="Enter"&&e(t)}}function vd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const RM=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gv(()=>{if(Fl.has(n))return;vd(n,"down");const s=gv(()=>{vd(n,"up")}),i=()=>vd(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function yv(e){return pm(e)&&!B1()}const vv=new WeakSet;function AM(e,t,n={}){const[r,s,i]=z1(e,n),o=a=>{const l=a.currentTarget;if(!yv(a)||vv.has(a))return;Fl.add(l),n.stopPropagation&&vv.add(a);const u=t(l,a),c=(f,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),Fl.has(l)&&Fl.delete(l),yv(f)&&typeof u=="function"&&u(f,{success:v})},d=f=>{c(f,l===window||l===document||n.useGlobalTarget||W1(l,f.target))},h=f=>{c(f,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",h,s)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),bM(a)&&(a.addEventListener("focus",u=>RM(u,s)),!kM(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function mm(e){return GS(e)&&"ownerSVGElement"in e}const Ul=new WeakMap;let rr;const H1=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:mm(r)&&"getBBox"in r?r.getBBox()[t]:r[n],OM=H1("inline","width","offsetWidth"),NM=H1("block","height","offsetHeight");function jM({target:e,borderBoxSize:t}){var n;(n=Ul.get(e))==null||n.forEach(r=>{r(e,{get width(){return OM(e,t)},get height(){return NM(e,t)}})})}function IM(e){e.forEach(jM)}function DM(){typeof ResizeObserver>"u"||(rr=new ResizeObserver(IM))}function LM(e,t){rr||DM();const n=U1(e);return n.forEach(r=>{let s=Ul.get(r);s||(s=new Set,Ul.set(r,s)),s.add(t),rr==null||rr.observe(r)}),()=>{n.forEach(r=>{const s=Ul.get(r);s==null||s.delete(t),s!=null&&s.size||rr==null||rr.unobserve(r)})}}const Vl=new Set;let si;function MM(){si=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Vl.forEach(t=>t(e))},window.addEventListener("resize",si)}function $M(e){return Vl.add(e),si||MM(),()=>{Vl.delete(e),!Vl.size&&typeof si=="function"&&(window.removeEventListener("resize",si),si=void 0)}}function wv(e,t){return typeof e=="function"?$M(e):LM(e,t)}function FM(e){return mm(e)&&e.tagName==="svg"}const UM=[...M1,Pe,rn],VM=e=>UM.find(L1(e)),xv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ii=()=>({x:xv(),y:xv()}),bv=()=>({min:0,max:0}),Oe=()=>({x:bv(),y:bv()}),BM=new WeakMap;function fc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ya(e){return typeof e=="string"||Array.isArray(e)}const gm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ym=["initial",...gm];function pc(e){return fc(e.animate)||ym.some(t=>ya(e[t]))}function K1(e){return!!(pc(e)||e.variants)}function zM(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Qe(s))e.addValue(r,s);else if(Qe(i))e.addValue(r,Mi(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Mi(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bf={current:null},q1={current:!1},WM=typeof window<"u";function HM(){if(q1.current=!0,!!WM)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bf.current=e.matches;e.addEventListener("change",t),t()}else bf.current=!1}const Sv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Au={};function G1(e){Au=e}function KM(){return Au}class qM{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=am,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=rt.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,le.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=pc(n),this.isVariantNode=K1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const v=h[f];u[f]!==void 0&&Qe(v)&&v.set(u[f])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,BM.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(q1.current||HM(),this.shouldReduceMotion=bf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Dr(this.notifyUpdate),Dr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&xM.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,d=new C1({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:Dt(c)}),h=o(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const r=Xi.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Au){const n=Au[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Oe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Sv.length;r++){const s=Sv[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=zM(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Mi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(qS(r)||YS(r))?r=parseFloat(r):!VM(r)&&rn.test(n)&&(r=F1(t,n)),this.setBaseTarget(t,Qe(r)?r.get():r)),Qe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=cm(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Qe(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Qp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){fm.render(this.render)}}class Y1 extends qM{constructor(){super(...arguments),this.KeyframeResolver=wM}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Qe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Vr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Q1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function GM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function YM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function wd(e){return e===void 0||e===1}function Sf({scale:e,scaleX:t,scaleY:n}){return!wd(e)||!wd(t)||!wd(n)}function Jr(e){return Sf(e)||J1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function J1(e){return Ev(e.x)||Ev(e.y)}function Ev(e){return e&&e!=="0%"}function Ou(e,t,n){const r=e-n,s=t*r;return n+s}
vendor: 2,047 bytes, line 210
210function _v(e,t,n,r,s){return s!==void 0&&(e=Ou(e,s,r)),Ou(e,n,r)+t}function Ef(e,t=0,n=1,r,s){e.min=_v(e.min,t,n,r,s),e.max=_v(e.max,t,n,r,s)}function X1(e,{x:t,y:n}){Ef(e.x,t.translate,t.scale,t.originPoint),Ef(e.y,n.translate,n.scale,n.originPoint)}const Tv=.999999999999,kv=1.0000000000001;function QM(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;a<s;a++){i=n[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ai(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,X1(e,o)),r&&Jr(i.latestValues)&&ai(e,i.latestValues))}t.x<kv&&t.x>Tv&&(t.x=1),t.y<kv&&t.y>Tv&&(t.y=1)}function oi(e,t){e.min=e.min+t,e.max=e.max+t}function Cv(e,t,n,r,s=.5){const i=ye(e.min,e.max,s);Ef(e,t,n,i,r)}function ai(e,t){Cv(e.x,t.x,t.scaleX,t.scale,t.originX),Cv(e.y,t.y,t.scaleY,t.scale,t.originY)}function Z1(e,t){return Q1(YM(e.getBoundingClientRect(),t))}function JM(e,t,n){const r=Z1(e,n),{scroll:s}=t;return s&&(oi(r.x,s.offset.x),oi(r.y,s.offset.y)),r}const XM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ZM=Ji.length;function e2(e,t,n){let r="",s=!0;for(let i=0;i<ZM;i++){const o=Ji[i],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const u=parseFloat(a);l=o.startsWith("scale")?u===1:u===0}if(!l||n){const u=V1(a,hm[o]);if(!l){s=!1;const c=XM[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function vm(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(Xi.has(l)){o=!0;continue}else if(c1(l)){s[l]=u;continue}else{const c=V1(u,hm[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=e2(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}function eE(e,{style:t,vars:n},r,s){const i=e.style;let o;
vendor: 4,390 bytes, line 210
210for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function Pv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if($.test(e))e=parseFloat(e);else return e;const n=Pv(e,t.target.x),r=Pv(e,t.target.y);return`${n}% ${r}%`}},t2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=rn.parse(e);if(s.length>5)return r;const i=rn.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const u=ye(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),i(s)}},_f={borderRadius:{...fo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fo,borderTopRightRadius:fo,borderBottomLeftRadius:fo,borderBottomRightRadius:fo,boxShadow:t2};function tE(e,{layout:t,layoutId:n}){return Xi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_f[e]||e==="opacity")}function wm(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(Qe(r[a])||s&&Qe(s[a])||tE(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function n2(e){return window.getComputedStyle(e)}class r2 extends Y1{constructor(){super(...arguments),this.type="html",this.renderInstance=eE}readValueFromInstance(t,n){var r;if(Xi.has(n))return(r=this.projection)!=null&&r.isProjecting?cf(n):xL(t,n);{const s=n2(t),i=(c1(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Z1(t,n)}build(t,n,r){vm(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return wm(t,n,r)}}const s2={offset:"stroke-dashoffset",array:"stroke-dasharray"},i2={offset:"strokeDashoffset",array:"strokeDasharray"};function o2(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?s2:i2;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const a2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function nE(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,u,c){if(vm(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox);for(const f of a2)d[f]!==void 0&&(h[f]=d[f],delete d[f]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&o2(d,s,i,o,!1)}const rE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),sE=e=>typeof e=="string"&&e.toLowerCase()==="svg";function l2(e,t,n,r){eE(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(rE.has(s)?s:dm(s),t.attrs[s])}function iE(e,t,n){const r=wm(e,t,n);for(const s in e)if(Qe(e[s])||Qe(t[s])){const i=Ji.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class u2 extends Y1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Oe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xi.has(n)){const r=$1(n);return r&&r.default||0}return n=rE.has(n)?n:dm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return iE(t,n,r)}build(t,n,r){nE(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){l2(t,n,r,s)}mount(t){this.isSVGTag=sE(t.tagName),super.mount(t)}}const c2=ym.length;function oE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?oE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<c2;n++){const r=ym[n],s=e.props[r];(ya(s)||s===!1)&&(t[r]=s)}return t}function aE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const d2=[...gm].reverse(),h2=gm.length;function f2(e){return t=>Promise.all(t.map(({animation:n,options:r})=>lM(e,n,r)))}
vendor: 19,985 bytes, line 210
210function p2(e){let t=f2(e),n=Rv(),r=!0;const s=l=>(u,c)=>{var h;const d=yi(e,c,l==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:f,transitionEnd:v,...p}=d;u={...u,...p,...v}}return u};function i(l){t=l(e)}function o(l){const{props:u}=e,c=oE(e.parent)||{},d=[],h=new Set;let f={},v=1/0;for(let x=0;x<h2;x++){const m=d2[x],g=n[m],y=u[m]!==void 0?u[m]:c[m],S=ya(y),E=m===l?g.isActive:null;E===!1&&(v=x);let _=y===c[m]&&y!==u[m]&&S;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),g.protectedKeys={...f},!g.isActive&&E===null||!y&&!g.prevProp||fc(y)||typeof y=="boolean")continue;if(m==="exit"&&g.isActive&&E!==!0){g.prevResolvedValues&&(f={...f,...g.prevResolvedValues});continue}const T=m2(g.prevProp,y);let k=T||m===l&&g.isActive&&!_&&S||x>v&&S,A=!1;const O=Array.isArray(y)?y:[y];let V=O.reduce(s(m),{});E===!1&&(V={});const{prevResolvedValues:L={}}=g,Q={...L,...V},I=F=>{k=!0,h.has(F)&&(A=!0,h.delete(F)),g.needsAnimating[F]=!0;const C=e.getValue(F);C&&(C.liveStyle=!1)};for(const F in Q){const C=V[F],R=L[F];if(f.hasOwnProperty(F))continue;let D=!1;gf(C)&&gf(R)?D=!aE(C,R):D=C!==R,D?C!=null?I(F):h.add(F):C!==void 0&&h.has(F)?I(F):g.protectedKeys[F]=!0}g.prevProp=y,g.prevResolvedValues=V,g.isActive&&(f={...f,...V}),r&&e.blockInitialAnimation&&(k=!1);const J=_&&T;k&&(!J||A)&&d.push(...O.map(F=>{const C={type:m};if(typeof F=="string"&&r&&!J&&e.manuallyAnimateOnMount&&e.parent){const{parent:R}=e,D=yi(R,F);if(R.enteringChildren&&D){const{delayChildren:K}=D.transition||{};C.delay=R1(R.enteringChildren,e,K)}}return{animation:F,options:C}}))}if(h.size){const x={};if(typeof u.initial!="boolean"){const m=yi(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(x.transition=m.transition)}h.forEach(m=>{const g=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),x[m]=g??null}),d.push({animation:x})}let p=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(d):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var f;return(f=h.animationState)==null?void 0:f.setActive(l,u)}),n[l].isActive=u;const c=o(l);for(const h in n)n[h].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Rv()}}}function m2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!aE(t,e):!1}function qr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rv(){return{animate:qr(!0),whileInView:qr(),whileHover:qr(),whileTap:qr(),whileDrag:qr(),whileFocus:qr(),exit:qr()}}function Av(e,t){e.min=t.min,e.max=t.max}function Wt(e,t){Av(e.x,t.x),Av(e.y,t.y)}function Ov(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const lE=1e-4,g2=1-lE,y2=1+lE,uE=.01,v2=0-uE,w2=0+uE;function st(e){return e.max-e.min}function x2(e,t,n){return Math.abs(e-t)<=n}function Nv(e,t,n,r=.5){e.origin=r,e.originPoint=ye(t.min,t.max,e.origin),e.scale=st(n)/st(t),e.translate=ye(n.min,n.max,e.origin)-e.originPoint,(e.scale>=g2&&e.scale<=y2||isNaN(e.scale))&&(e.scale=1),(e.translate>=v2&&e.translate<=w2||isNaN(e.translate))&&(e.translate=0)}function Do(e,t,n,r){Nv(e.x,t.x,n.x,r?r.originX:void 0),Nv(e.y,t.y,n.y,r?r.originY:void 0)}function jv(e,t,n){e.min=n.min+t.min,e.max=e.min+st(t)}function b2(e,t,n){jv(e.x,t.x,n.x),jv(e.y,t.y,n.y)}function Iv(e,t,n){e.min=t.min-n.min,e.max=e.min+st(t)}function Nu(e,t,n){Iv(e.x,t.x,n.x),Iv(e.y,t.y,n.y)}function Dv(e,t,n,r,s){return e-=t,e=Ou(e,1/n,r),s!==void 0&&(e=Ou(e,1/s,r)),e}function S2(e,t=0,n=1,r=.5,s,i=e,o=e){if(Sn.test(t)&&(t=parseFloat(t),t=ye(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ye(i.min,i.max,r);e===i&&(a-=t),e.min=Dv(e.min,t,n,a,s),e.max=Dv(e.max,t,n,a,s)}function Lv(e,t,[n,r,s],i,o){S2(e,t[n],t[r],t[s],t.scale,i,o)}const E2=["x","scaleX","originX"],_2=["y","scaleY","originY"];function Mv(e,t,n,r){Lv(e.x,t,E2,n?n.x:void 0,r?r.x:void 0),Lv(e.y,t,_2,n?n.y:void 0,r?r.y:void 0)}function $v(e){return e.translate===0&&e.scale===1}function cE(e){return $v(e.x)&&$v(e.y)}function Fv(e,t){return e.min===t.min&&e.max===t.max}function T2(e,t){return Fv(e.x,t.x)&&Fv(e.y,t.y)}function Uv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function dE(e,t){return Uv(e.x,t.x)&&Uv(e.y,t.y)}function Vv(e){return st(e.x)/st(e.y)}function Bv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function fn(e){return[e("x"),e("y")]}function k2(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:h,skewX:f,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),f&&(r+=`skewX(${f}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const hE=["TopLeft","TopRight","BottomLeft","BottomRight"],C2=hE.length,zv=e=>typeof e=="string"?parseFloat(e):e,Wv=e=>typeof e=="number"||$.test(e);function P2(e,t,n,r,s,i){s?(e.opacity=ye(0,n.opacity??1,R2(r)),e.opacityExit=ye(t.opacity??1,0,A2(r))):i&&(e.opacity=ye(t.opacity??1,n.opacity??1,r));for(let o=0;o<C2;o++){const a=`border${hE[o]}Radius`;let l=Hv(t,a),u=Hv(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Wv(l)===Wv(u)?(e[a]=Math.max(ye(zv(l),zv(u),r),0),(Sn.test(u)||Sn.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ye(t.rotate||0,n.rotate||0,r))}function Hv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const R2=fE(0,.5,s1),A2=fE(.5,.95,It);function fE(e,t,n){return r=>r<e?0:r>t?1:n(pa(e,t,r))}function O2(e,t,n){const r=Qe(e)?e:Mi(e);return r.start(um("",r,t,n)),r.animation}function va(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const N2=(e,t)=>e.depth-t.depth;class j2{constructor(){this.children=[],this.isDirty=!1}add(t){Yp(this.children,t),this.isDirty=!0}remove(t){ku(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(N2),this.isDirty=!1,this.children.forEach(t)}}function I2(e,t){const n=rt.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Dr(r),e(i-t))};return le.setup(r,!0),()=>Dr(r)}function Bl(e){return Qe(e)?e.get():e}class D2{constructor(){this.members=[]}add(t){Yp(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;s&&s.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&ku(this.members,r)}t.scheduleRender()}remove(t){if(ku(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s],o=i.instance;if(i.isPresent!==!1&&(!o||o.isConnected!==!1)){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const s=r.options.layoutDependency,i=t.options.layoutDependency;if(!(s!==void 0&&i!==void 0&&s===i)){const l=r.instance;l&&l.isConnected===!1&&!r.snapshot||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const zl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xd=["","X","Y","Z"],L2=1e3;let M2=0;function bd(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function pE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=I1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",le,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&pE(r)}function mE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=M2++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(U2),this.nodes.forEach(W2),this.nodes.forEach(H2),this.nodes.forEach(V2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new j2)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Qp),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=mm(o)&&!FM(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const h=()=>this.root.updateBlockedByResize=!1;le.read(()=>{d=window.innerWidth}),e(o,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,c&&c(),c=I2(h,250),zl.hasAnimatedSinceResize&&(zl.hasAnimatedSinceResize=!1,this.nodes.forEach(Gv)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||Q2,{onLayoutAnimationStart:p,onLayoutAnimationComplete:x}=u.getProps(),m=!this.targetLayout||!dE(this.targetLayout,f),g=!d&&h;if(this.options.layoutRoot||this.resumeFrom||g||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...lm(v,"layout"),onPlay:p,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(c,g)}else d||Gv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Dr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(K2),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Kv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(z2),this.nodes.forEach($2),this.nodes.forEach(F2)):this.nodes.forEach(qv),this.clearAllSnapshots();const a=rt.now();Ve.delta=_n(0,1e3/60,a-Ve.timestamp),Ve.timestamp=a,Ve.isProcessing=!0,hd.update.process(Ve),hd.preRender.process(Ve),hd.render.process(Ve),Ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(B2),this.sharedNodes.forEach(q2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!st(this.snapshot.measuredBox.x)&&!st(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Oe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!cE(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||Jr(this.latestValues)||c)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),J2(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return Oe();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(X2))){const{scroll:c}=this.root;c&&(oi(a.x,c.offset.x),oi(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=Oe();if(Wt(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:h}=c;c!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&Wt(a,o),oi(a.x,d.offset.x),oi(a.y,d.offset.y))}return a}applyTransform(o,a=!1){const l=Oe();Wt(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ai(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Jr(c.latestValues)&&ai(l,c.latestValues)}return Jr(this.latestValues)&&ai(l,this.latestValues),l}removeTransform(o){const a=Oe();Wt(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Jr(u.latestValues))continue;Sf(u.latestValues)&&u.updateSnapshot();const c=Oe(),d=u.measurePageBox();Wt(c,d),Mv(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Jr(this.latestValues)&&Mv(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=Ve.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Oe(),this.targetWithTransforms=Oe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),b2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Wt(this.target,this.layout.layoutBox),X1(this.target,this.targetDelta)):Wt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Sf(this.parent.latestValues)||J1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Oe(),this.relativeTargetOrigin=Oe(),Nu(this.relativeTargetOrigin,a,l),Wt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var v;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty)&&
vendor: 5,299 bytes, line 210
210(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ve.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Wt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;QM(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Oe());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ov(this.prevProjectionDelta.x,this.projectionDelta.x),Ov(this.prevProjectionDelta.y,this.projectionDelta.y)),Do(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Bv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Bv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ii(),this.projectionDelta=ii(),this.projectionDeltaWithTransform=ii()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=ii();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Oe(),f=l?l.source:void 0,v=this.layout?this.layout.source:void 0,p=f!==v,x=this.getStack(),m=!x||x.members.length<=1,g=!!(p&&!m&&this.options.crossfade===!0&&!this.path.some(Y2));this.animationProgress=0;let y;this.mixTargetDelta=S=>{const E=S/1e3;Yv(d.x,o.x,E),Yv(d.y,o.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Nu(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),G2(this.relativeTarget,this.relativeTargetOrigin,h,E),y&&T2(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Oe()),Wt(y,this.relativeTarget)),p&&(this.animationValues=c,P2(c,u,this.latestValues,E,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Dr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{zl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Mi(0)),this.motionValue.jump(0,!1),this.currentAnimation=O2(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(L2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&gE(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Oe();const d=st(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=st(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Wt(a,l),ai(a,c),Do(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new D2),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 8,574 bytes, line 210
210resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&bd("z",o,u,this.animationValues);for(let c=0;c<xd.length;c++)bd(`rotate${xd[c]}`,o,u,this.animationValues),bd(`skew${xd[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Bl(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Bl(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Jr(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=k2(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),o.transform=d;const{x:h,y:f}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const v in _f){if(c[v]===void 0)continue;const{correct:p,applyTo:x,isCSSVariable:m}=_f[v],g=d==="none"?c[v]:p(c[v],u);if(x){const y=x.length;for(let S=0;S<y;S++)o[x[S]]=g}else m?this.options.visualElement.renderState.vars[v]=g:o[v]=g}this.options.layoutId&&(o.pointerEvents=u===this?Bl(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Kv),this.root.sharedNodes.clear()}}}function $2(e){e.updateLayout()}function F2(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?fn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=st(h);h.min=r[d].min,h.max=h.min+f}):gE(i,t.layoutBox,r)&&fn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=st(r[d]);h.max=h.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const a=ii();Do(a,r,t.layoutBox);const l=ii();o?Do(l,e.applyTransform(s,!0),t.measuredBox):Do(l,r,t.layoutBox);const u=!cE(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const v=Oe();Nu(v,t.layoutBox,h.layoutBox);const p=Oe();Nu(p,r,f.layoutBox),dE(v,p)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function U2(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function V2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function B2(e){e.clearSnapshot()}function Kv(e){e.clearMeasurements()}function qv(e){e.isLayoutDirty=!1}function z2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Gv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function W2(e){e.resolveTargetDelta()}function H2(e){e.calcProjection()}function K2(e){e.resetSkewAndRotation()}function q2(e){e.removeLeadSnapshot()}function Yv(e,t,n){e.translate=ye(t.translate,0,n),e.scale=ye(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qv(e,t,n,r){e.min=ye(t.min,n.min,r),e.max=ye(t.max,n.max,r)}function G2(e,t,n,r){Qv(e.x,t.x,n.x,r),Qv(e.y,t.y,n.y,r)}function Y2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Q2={duration:.45,ease:[.4,0,.1,1]},Jv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Xv=Jv("applewebkit/")&&!Jv("chrome/")?Math.round:It;function Zv(e){e.min=Xv(e.min),e.max=Xv(e.max)}function J2(e){Zv(e.x),Zv(e.y)}function gE(e,t,n){return e==="position"||e==="preserve-aspect"&&!x2(Vv(t),Vv(n),.2)}function X2(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Z2=mE({attachResizeListener:(e,t)=>va(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Sd={current:void 0},yE=mE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Sd.current){const e=new Z2({});e.mount(window),e.setOptions({layoutScroll:!0}),Sd.current=e}return Sd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vE=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function e$(e=!0){const t=b.useContext(Gp);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=b.useId();b.useEffect(()=>{if(e)return s(i)},[e]);const o=b.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const wE=b.createContext({strict:!1}),e0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let t0=!1;function t$(){if(t0)return;const e={};for(const t in e0)e[t]={isEnabled:n=>e0[t].some(r=>!!n[r])};G1(e),t0=!0}function xE(){return t$(),KM()}function n$(e){const t=xE();for(const n in e)t[n]={...t[n],...e[n]};G1(t)}const r$=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ju(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||r$.has(e)}let bE=e=>!ju(e);function s$(e){typeof e=="function"&&(bE=t=>t.startsWith("on")?!ju(t):e(t))}try{s$(require("@emotion/is-prop-valid").default)}catch{}function i$(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(bE(s)||n===!0&&ju(s)||!t&&!ju(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const mc=b.createContext({});function o$(e,t){if(pc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ya(n)?n:void 0,animate:ya(r)?r:void 0}}return e.inherit!==!1?t:{}}function a$(e){const{initial:t,animate:n}=o$(e,b.useContext(mc));return b.useMemo(()=>({initial:t,animate:n}),[n0(t),n0(n)])}function n0(e){return Array.isArray(e)?e.join(" "):e}const xm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function SE(e,t,n){for(const r in t)!Qe(t[r])&&!tE(r,n)&&(e[r]=t[r])}function l$({transformTemplate:e},t){return b.useMemo(()=>{const n=xm();return vm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function u$(e,t){const n=e.style||{},r={};return SE(r,n,e),Object.assign(r,l$(e,t)),r}function c$(e,t){const n={},r=u$(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
210`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const EE=()=>({...xm(),attrs:{}});function d$(e,t,n,r){const s=b.useMemo(()=>{const i=EE();return nE(i,t,sE(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};SE(i,e.style,e),s.style={...i,...s.style}}return s}const h$=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function bm(e){return typeof e!="string"||e.includes("-")?!1:!!(h$.indexOf(e)>-1||/[A-Z]/u.test(e))}function f$(e,t,n,{latestValues:r},s,i=!1,o){const l=(o??bm(e)?d$:c$)(t,r,s,e),u=i$(t,typeof e=="string",i),c=e!==b.Fragment?{...u,...l,ref:n}:{},{children:d}=t,h=b.useMemo(()=>Qe(d)?d.get():d,[d]);return b.createElement(e,{...c,children:h})}function p$({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:m$(n,r,s,e),renderState:t()}}function m$(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=Bl(i[h]);let{initial:o,animate:a}=e;const l=pc(e),u=K1(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!fc(d)){const h=Array.isArray(d)?d:[d];for(let f=0;f<h.length;f++){const v=cm(e,h[f]);if(v){const{transitionEnd:p,transition:x,...m}=v;for(const g in m){let y=m[g];if(Array.isArray(y)){const S=c?y.length-1:0;y=y[S]}y!==null&&(s[g]=y)}for(const g in p)s[g]=p[g]}}}return s}const _E=e=>(t,n)=>{const r=b.useContext(mc),s=b.useContext(Gp),i=()=>p$(e,t,r,s);return n?i():yD(i)},g$=_E({scrapeMotionValuesFromProps:wm,createRenderState:xm}),y$=_E({scrapeMotionValuesFromProps:iE,createRenderState:EE}),v$=Symbol.for("motionComponentSymbol");function w$(e,t,n){const r=b.useRef(n);b.useInsertionEffect(()=>{r.current=n});const s=b.useRef(null);return b.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const l=o(i);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[t])}const TE=b.createContext({});function zs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function x$(e,t,n,r,s,i){var y,S;const{visualElement:o}=b.useContext(mc),a=b.useContext(wE),l=b.useContext(Gp),u=b.useContext(vE),c=u.reducedMotion,d=u.skipAnimations,h=b.useRef(null),f=b.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:i}),f.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const v=h.current,p=b.useContext(TE);v&&!v.projection&&s&&(v.type==="html"||v.type==="svg")&&b$(h.current,n,s,p);const x=b.useRef(!1);b.useInsertionEffect(()=>{v&&x.current&&v.update(n,l)});const m=n[j1],g=b.useRef(!!m&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,m))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,m)));return vD(()=>{f.current=!0,v&&(x.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),g.current&&v.animationState&&v.animationState.animateChanges())}),b.useEffect(()=>{v&&(!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,m)}),g.current=!1),v.enteringChildren=void 0)}),v}function b$(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kE(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&zs(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function kE(e){if(e)return e.options.allowProjection!==!1?e.projection:kE(e.parent)}function Ed(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&n$(r);const i=n?n==="svg":bm(e),o=i?y$:g$;function a(u,c){let d;const h={...b.useContext(vE),...u,layoutId:S$(u)},{isStatic:f}=h,v=a$(u),p=o(u,f);if(!f&&KS){E$();const x=_$(h);d=x.MeasureLayout,v.visualElement=x$(e,p,h,s,x.ProjectionNode,i)}return w.jsxs(mc.Provider,{value:v,children:[d&&v.visualElement?w.jsx(d,{visualElement:v.visualElement,...h}):null,f$(e,u,w$(p,v.visualElement,c),p,f,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=b.forwardRef(a);return l[v$]=e,l}function S$({layoutId:e}){const t=b.useContext(HS).id;return t&&e!==void 0?t+"-"+e:e}function E$(e,t){b.useContext(wE).strict}function _$(e){const t=xE(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
vendor: 19,891 bytes, line 210
210function T$(e,t){if(typeof Proxy>"u")return Ed;const n=new Map,r=(i,o)=>Ed(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,Ed(o,void 0,e,t)),n.get(o))})}const k$=(e,t)=>t.isSVG??bm(e)?new u2(t):new r2(t,{allowProjection:e!==b.Fragment});class C$ extends Vr{constructor(t){super(t),t.animationState||(t.animationState=p2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let P$=0;class R$ extends Vr{constructor(){super(...arguments),this.id=P$++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const A$={animation:{Feature:C$},exit:{Feature:R$}};function Da(e){return{point:{x:e.pageX,y:e.pageY}}}const O$=e=>t=>pm(t)&&e(t,Da(t));function Lo(e,t,n,r){return va(e,t,O$(n),r)}const CE=({current:e})=>e?e.ownerDocument.defaultView:null,r0=(e,t)=>Math.abs(e-t);function N$(e,t){const n=r0(e.x,t.x),r=r0(e.y,t.y);return Math.sqrt(n**2+r**2)}const s0=new Set(["auto","scroll"]);class PE{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Td(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,p=N$(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!p)return;const{point:x}=f,{timestamp:m}=Ve;this.history.push({...x,timestamp:m});const{onStart:g,onMove:y}=this.handlers;v||(g&&g(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,v)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=_d(v,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(f,v)=>{this.end();const{onEnd:p,onSessionEnd:x,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Td(f.type==="pointercancel"?this.lastMoveEventInfo:_d(v,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,g),x&&x(f,g)},!pm(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=Da(t),u=_d(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=Ve;this.history=[{...c,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Td(u,this.history)),this.removeListeners=Na(Lo(this.contextWindow,"pointermove",this.handlePointerMove),Lo(this.contextWindow,"pointerup",this.handlePointerUp),Lo(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(s0.has(r.overflowX)||s0.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),le.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Dr(this.updatePoint)}}function _d(e,t){return t?{point:t(e.point)}:e}function i0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Td({point:e},t){return{point:e,delta:i0(e,RE(t)),offset:i0(e,j$(t)),velocity:I$(t,.1)}}function j$(e){return e[0]}function RE(e){return e[e.length-1]}function I$(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=RE(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Dt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Dt(t)*2&&(r=e[1]);const i=Nt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function D$(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ye(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ye(n,e,r.max):Math.min(e,n)),e}function o0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function L$(e,{top:t,left:n,bottom:r,right:s}){return{x:o0(e.x,n,s),y:o0(e.y,t,r)}}function a0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function M$(e,t){return{x:a0(e.x,t.x),y:a0(e.y,t.y)}}function $$(e,t){let n=.5;const r=st(e),s=st(t);return s>r?n=pa(t.min,t.max-r,e.min):r>s&&(n=pa(e.min,e.max-s,t.min)),_n(0,1,n)}function F$(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Tf=.35;function U$(e=Tf){return e===!1?e=0:e===!0&&(e=Tf),{x:l0(e,"left","right"),y:l0(e,"top","bottom")}}function l0(e,t,n){return{min:u0(e,t),max:u0(e,n)}}function u0(e,t){return typeof e=="number"?e:e[t]||0}const V$=new WeakMap;class B${constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Oe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=d=>{n&&this.snapToCursor(Da(d).point),this.stopAnimation()},o=(d,h)=>{const{drag:f,dragPropagation:v,onDragStart:p}=this.getProps();if(f&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=SM(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fn(m=>{let g=this.getAxisMotionValue(m).get()||0;if(Sn.test(g)){const{projection:y}=this.visualElement;if(y&&y.layout){const S=y.layout.layoutBox[m];S&&(g=st(S)*(parseFloat(g)/100))}}this.originPoint[m]=g}),p&&le.update(()=>p(d,h),!1,!0),yf(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:f,dragDirectionLock:v,onDirectionLock:p,onDrag:x}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:m}=h;if(v&&this.currentDirection===null){this.currentDirection=W$(m),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,m),this.updateAxis("y",h.point,m),this.visualElement.render(),x&&le.update(()=>x(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new PE(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:CE(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&le.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!vl(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=D$(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&zs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=L$(r.layoutBox,t):this.constraints=!1,this.elastic=U$(n),s!==this.constraints&&!zs(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&fn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=F$(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!zs(t))return!1;const r=t.current;Li(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=JM(r,s.root,this.visualElement.getTransformPagePoint());let o=M$(s.layout.layoutBox,i);if(n){const a=n(GM(o));this.hasMutatedConstraints=!!a,a&&(o=Q1(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=fn(c=>{if(!vl(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const h=s?200:1e6,f=s?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return yf(this.visualElement,t),r.start(um(t,r,0,n,this.visualElement,!1))}stopAnimation(){fn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){fn(n=>{const{drag:r}=this.getProps();if(!vl(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-ye(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!zs(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};fn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=$$({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),fn(o=>{if(!vl(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(ye(l,u,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;V$.set(this.visualElement,this);const t=this.visualElement.current,n=Lo(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps(),h=u.target,f=h!==t&&PM(h);c&&d&&!f&&this.start(u)});let r;const s=()=>{const{dragConstraints:u}=this.getProps();zs(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=z$(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),le.read(s);const a=va(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(fn(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Tf,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function c0(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function z$(e,t,n){const r=wv(e,c0(n)),s=wv(t,c0(n));return()=>{r(),s()}}function vl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function W$(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class H$ extends Vr{constructor(t){super(t),this.removeGroupControls=It,this.removeListeners=It,this.controls=new B$(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||It}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const kd=e=>(t,n)=>{e&&le.update(()=>e(t,n),!1,!0)};class K$ extends Vr{constructor(){super(...arguments),this.removePointerDownListener=It}onPointerDown(t){this.session=new PE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:CE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:kd(t),onStart:kd(n),onMove:kd(r),onEnd:(i,o)=>{delete this.session,s&&le.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Lo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Cd=!1;class q$ extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),Cd&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),zl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Cd=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||le.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),fm.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Cd=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function AE(e){const[t,n]=e$(),r=b.useContext(HS);return w.jsx(q$,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(TE),isPresent:t,safeToRemove:n})}const G$={pan:{Feature:K$},drag:{Feature:H$,ProjectionNode:yE,MeasureLayout:AE}};function d0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&le.postRender(()=>i(t,Da(t)))}class Y$ extends Vr{mount(){const{current:t}=this.node;t&&(this.unmount=_M(t,(n,r)=>(d0(this.node,r,"Start"),s=>d0(this.node,s,"End"))))}unmount(){}}class Q$ extends Vr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Na(va(this.node.current,"focus",()=>this.onFocus()),va(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function h0(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&le.postRender(()=>i(t,Da(t)))}class J$ extends Vr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=AM(t,(s,i)=>(h0(this.node,i,"Start"),(o,{success:a})=>h0(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const kf=new WeakMap,Pd=new WeakMap,X$=e=>{const t=kf.get(e.target);t&&t(e)},Z$=e=>{e.forEach(X$)};function eF({root:e,...t}){const n=e||document;Pd.has(n)||Pd.set(n,{});const r=Pd.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(Z$,{root:e,...t})),r[s]}function tF(e,t,n){const r=eF(t);return kf.set(e,n),r.observe(e),()=>{kf.delete(e),r.unobserve(e)}}const nF={some:0,all:1};class rF extends Vr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:nF[s]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),h=u?c:d;h&&h(l)};return tF(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(sF(t,n))&&this.startObserver()}unmount(){}}function sF({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const iF={inView:{Feature:rF},tap:{Feature:J$},focus:{Feature:Q$},hover:{Feature:Y$}},oF={layout:{ProjectionNode:yE,MeasureLayout:AE}},aF={...A$,...iF,...G$,...oF},xt=T$(aF,k$),lF=()=>w.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden pt-16",children:[w.jsx("div",{className:"absolute top-1/3 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full bg-primary/8 blur-[150px]"}),w.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-6 text-center",children:[w.jsx(xt.div,{initial:{opacity:0,y:20}
210,animate:{opacity:1,y:0},transition:{duration:.5},children:w.jsxs("span",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full text-xs font-medium bg-primary/10 text-primary border border-primary/20 mb-8",children:[w.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary animate-pulse"}),"Now in early access"]})}),w.jsxs(xt.h1,{className:"text-5xl sm:text-7xl md:text-8xl font-bold tracking-tight mb-6 leading-[1.05]",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},children:["Find deals.",w.jsx("br",{}),w.jsx("span",{className:"text-gradient",children:"Not headaches."})]}),w.jsx(xt.p,{className:"text-lg sm:text-xl text-muted-foreground max-w-2xl mx-auto mb-12 leading-relaxed",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:"Kamora uses AI to scan Facebook Marketplace, find fair market values, and surface the best vehicle deals â instantly."}),w.jsxs(xt.div,{className:"flex flex-col sm:flex-row gap-4 justify-center",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},children:[w.jsx("a",{href:"#waitlist",children:w.jsxs(Ee,{size:"lg",className:"rounded-full bg-primary text-primary-foreground hover:bg-primary/90 px-8 py-6 text-base font-medium glow-primary transition-all duration-300 hover:scale-[1.02]",children:["Get Early Access",w.jsx(Ap,{className:"w-4 h-4 ml-1"})]})}),w.jsx("a",{href:"#product-preview",children:w.jsx(Ee,{size:"lg",variant:"ghost",className:"rounded-full px-8 py-6 text-base font-medium text-muted-foreground hover:text-foreground border border-border hover:border-border/80",children:"See How It Works"})})]})]})]}),uF="/assets/product-preview-DZVtt4zr.jpeg",cF="/assets/product-preview-2-DZOJ0m4K.jpeg",po=[{src:uF,alt:"Kamora.ai analyzing a Facebook Marketplace listing showing deal score, estimated fair value, and red flag detection"},{src:cF,alt:"Kamora.ai MarketVolt extension showing deal score of 90/100 for a 2016 Subaru Impreza with estimated fair value and confidence rating"}],dF=()=>{const[e,t]=b.useState(0);return w.jsx("section",{className:"py-20 px-6 relative",children:w.jsxs("div",{className:"max-w-4xl mx-auto",children:[w.jsx("div",{className:"relative w-full cursor-pointer",style:{aspectRatio:"16/10"},onClick:()=>t(n=>(n+1)%po.length),children:po.map((n,r)=>{const i=(r-e+po.length)%po.length===0;return w.jsxs(xt.div,{className:"absolute inset-0 rounded-2xl overflow-hidden border border-border",initial:!1,animate:{scale:i?1:.92,y:i?0:24,rotate:i?0:2.5,opacity:i?1:.5,zIndex:i?2:1},transition:{duration:.5,ease:[.4,0,.2,1]},style:{transformOrigin:"center bottom"},children:[w.jsx("img",{src:n.src,alt:n.alt,className:"w-full h-full object-cover",loading:"lazy"}),!i&&w.jsx("div",{className:"absolute inset-0 bg-background/40"}),i&&w.jsx("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-white/5 pointer-events-none glow-primary"})]},r)})}),w.jsx("div",{className:"flex justify-center gap-2 mt-8",children:po.map((n,r)=>w.jsx("button",{onClick:()=>t(r),className:`w-2 h-2 rounded-full transition-all duration-300 ${r===e?"bg-primary w-6":"bg-muted-foreground/30"}`,"aria-label":`Go to slide ${r+1}`},r))})]})})},hF=[{icon:cP,title:"Instant Lookup",description:"Scan any listing and get an AI-powered market value estimate in seconds."},{icon:dP,title:"Price Trends",description:"See historical pricing data so you never overpay for a vehicle."},{icon:hP,title:"Giveaway Entries",description:"Every plan earns you entries into exclusive giveaways."},{icon:fP,title:"Deal Alerts",description:"Get notified when vehicles are listed below market value."}],fF=()=>w.jsx("section",{className:"py-32 px-6",children:w.jsxs("div",{className:"max-w-5xl mx-auto",children:[w.jsxs(xt.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[w.jsxs("h2",{className:"text-3xl sm:text-5xl font-bold tracking-tight mb-4",children:["Everything you need to",w.jsx("br",{}),w.jsx("span",{className:"text-gradient",children:"find the perfect deal"})]}),w.jsx("p",{className:"text-muted-foreground text-lg max-w-lg mx-auto",children:"Powered by AI. Built for smart shoppers."})]}),w.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:hF.map((e,t)=>w.jsxs(xt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:t*.1},className:"group p-8 rounded-2xl bg-card border border-border hover:border-primary/30 transition-all duration-300",children:[w.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center mb-5",children:w.jsx(e.icon,{className:"w-5 h-5 text-primary"})}),w.jsx("h3",{className:"font-semibold text-base mb-2 text-foreground",children:e.title}),w.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.description})]},e.title))})]})}),pF={starter:{name:"Starter",price:"$9.99",priceId:"price_1T2x2bCtG5QKxTCrKtZst5df",productId:"prod_U0z02bOuhoTLPu",scanLimit:50,features:["50 scans/month","Basic market value estimates","5 giveaway entries/month","Email support"]},pro:{name:"Pro",price:"$24.99",priceId:"price_1T2xTLCtG5QKxTCrN82Wk8BI",productId:"prod_U0zS81WWZvXrDd",scanLimit:200,features:["200 scans/month","Advanced price trend anal
210ysis","50 giveaway entries/month","Deal alerts & notifications","Priority support"]},vip:{name:"VIP",price:"$49.99",priceId:"price_1T2xTaCtG5QKxTCroQVVrgx1",productId:"prod_U0zSa8ol2snbJf",scanLimit:9999,features:["Unlimited scans","Everything in Pro","200 giveaway entries/month","Exclusive VIP-only giveaways","Vehicle history insights","API access","Dedicated support"]}},mF=[{key:"starter",popular:!1},{key:"pro",popular:!0},{key:"vip",popular:!1}],gF=()=>(Oa(),Gi(),b.useState(null),w.jsx("section",{className:"py-32 px-6",children:w.jsxs("div",{className:"max-w-5xl mx-auto",children:[w.jsxs(xt.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[w.jsxs("h2",{className:"text-3xl sm:text-5xl font-bold tracking-tight mb-4",children:["Simple, transparent ",w.jsx("span",{className:"text-gradient",children:"pricing"})]}),w.jsx("p",{className:"text-muted-foreground text-lg max-w-lg mx-auto",children:"Choose the plan that fits your style. Cancel anytime."})]}),w.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:mF.map(({key:e,popular:t},n)=>{const r=pF[e];return w.jsxs(xt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:n*.1},className:`relative p-8 rounded-2xl flex flex-col transition-all duration-300 ${t?"bg-card border-2 border-primary glow-primary":"bg-card border border-border hover:border-primary/20"}`,children:[t&&w.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-primary text-primary-foreground text-xs font-medium rounded-full",children:"Most Popular"}),w.jsx("div",{className:"mb-6",children:w.jsx("h3",{className:"font-semibold text-foreground mb-1",children:r.name})}),w.jsxs("div",{className:"mb-8",children:[w.jsx("span",{className:"text-5xl font-bold text-foreground",children:r.price}),w.jsx("span",{className:"ml-1 text-muted-foreground text-sm",children:"/mo"})]}),w.jsx("ul",{className:"space-y-3 mb-8 flex-1",children:r.features.map(s=>w.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[w.jsx(nP,{className:"w-4 h-4 mt-0.5 shrink-0 text-primary"}),w.jsx("span",{className:"text-muted-foreground",children:s})]},s))}),w.jsx("a",{href:"#waitlist",className:"w-full",children:w.jsx(Ee,{size:"lg",className:`w-full rounded-full font-medium transition-all duration-300 hover:scale-[1.02] ${t?"bg-primary text-primary-foreground glow-primary":"bg-secondary text-foreground hover:bg-primary hover:text-primary-foreground"}`,children:"Get Started"})})]},e)})})]})})),yF="/assets/giveaway-box-Dk6YFG-e.png",zn=b.forwardRef(({className:e,type:t,...n},r)=>w.jsx("input",{type:t,className:Ze("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}));zn.displayName="Input";var Rd="focusScope.autoFocusOnMount",Ad="focusScope.autoFocusOnUnmount",f0={bubbles:!1,cancelable:!0},vF="FocusScope",OE=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=b.useState(null),u=$t(s),c=$t(i),d=b.useRef(null),h=Me(t,p=>l(p)),f=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let p=function(y){if(f.paused||!a)return;const S=y.target;a.contains(S)?d.current=S:sr(d.current,{select:!0})},x=function(y){if(f.paused||!a)return;const S=y.relatedTarget;S!==null&&(a.contains(S)||sr(d.current,{select:!0}))},m=function(y){if(document.activeElement===document.body)for(const E of y)E.removedNodes.length>0&&sr(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",x);const g=new MutationObserver(m);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",x),g.disconnect()}}},[r,a,f.paused]),b.useEffect(()=>{if(a){m0.add(f);const p=document.activeElement;if(!a.contains(p)){const m=new CustomEvent(Rd,f0);a.addEventListener(Rd,u),a.dispatchEvent(m),m.defaultPrevented||(wF(_F(NE(a)),{select:!0}),document.activeElement===p&&sr(a))}return()=>{a.removeEventListener(Rd,u),setTimeout(()=>{const m=new CustomEvent(Ad,f0);a.addEventListener(Ad,c),a.dispatchEvent(m),m.defaultPrevented||sr(p??document.body,{select:!0}),a.removeEventListener(Ad,c),m0.remove(f)},0)}}},[a,u,c,f]);const v=b.useCallback(p=>{if(!n&&!r||f.paused)return;const x=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,m=document.activeElement;if(x&&m){const g=p.currentTarget,[y,S]=xF(g);y&&S?!p.shiftKey&&m===S?(p.preventDefault(),n&&sr(y,{select:!0}
vendor: 2,558 bytes, line 210
210)):p.shiftKey&&m===y&&(p.preventDefault(),n&&sr(S,{select:!0})):m===g&&p.preventDefault()}},[n,r,f.paused]);return w.jsx(pe.div,{tabIndex:-1,...o,ref:h,onKeyDown:v})});OE.displayName=vF;function wF(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(sr(r,{select:t}),document.activeElement!==n)return}function xF(e){const t=NE(e),n=p0(t,e),r=p0(t.reverse(),e);return[n,r]}function NE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p0(e,t){for(const n of e)if(!bF(n,{upTo:t}))return n}function bF(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 SF(e){return e instanceof HTMLInputElement&&"select"in e}function sr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&SF(e)&&t&&e.select()}}var m0=EF();function EF(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=g0(e,t),e.unshift(t)},remove(t){var n;e=g0(e,t),(n=e[0])==null||n.resume()}}}function g0(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function _F(e){return e.filter(t=>t.tagName!=="A")}var Od=0;function TF(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??y0()),document.body.insertAdjacentElement("beforeend",e[1]??y0()),Od++,()=>{Od===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Od--}},[])}function y0(){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 vn=function(){return vn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},vn.apply(this,arguments)};function jE(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}
vendor: 5,048 bytes, lines 210-225
210function kF(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;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 Wl="right-scroll-bar-position",Hl="width-before-scroll-bar",CF="with-scroll-bars-hidden",PF="--removed-body-scroll-bar-size";function Nd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function RF(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var AF=typeof window<"u"?b.useLayoutEffect:b.useEffect,v0=new WeakMap;function OF(e,t){var n=RF(null,function(r){return e.forEach(function(s){return Nd(s,r)})});return AF(function(){var r=v0.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;s.forEach(function(a){i.has(a)||Nd(a,null)}),i.forEach(function(a){s.has(a)||Nd(a,o)})}v0.set(n,e)},[e]),n}function NF(e){return e}function jF(e,t){t===void 0&&(t=NF);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var l=function(){var c=o;o=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){o.push(c),u()},filter:function(c){return o=o.filter(c),n}}}};return s}function IF(e){e===void 0&&(e={});var t=jF(null);return t.options=vn({async:!0,ssr:!1},e),t}var IE=function(e){var t=e.sideCar,n=jE(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 b.createElement(r,vn({},n))};IE.isSideCarExport=!0;function DF(e,t){return e.useMedium(t),IE}var DE=IF(),jd=function(){},gc=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:jd,onWheelCapture:jd,onTouchMoveCapture:jd}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,h=e.sideCar,f=e.noRelative,v=e.noIsolation,p=e.inert,x=e.allowPinchZoom,m=e.as,g=m===void 0?"div":m,y=e.gapMode,S=jE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,_=OF([n,t]),T=vn(vn({},S),s);return b.createElement(b.Fragment,null,c&&b.createElement(E,{sideCar:DE,removeScrollBar:u,shards:d,noRelative:f,noIsolation:v,inert:p,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:y}),o?b.cloneElement(b.Children.only(a),vn(vn({},T),{ref:_})):b.createElement(g,vn({},T,{className:l,ref:_}),a))});gc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gc.classNames={fullWidth:Hl,zeroRight:Wl};var LF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function MF(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=LF();return t&&e.setAttribute("nonce",t),e}function $F(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function FF(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var UF=function(){var e=0,t=null;return{add:function(n){e==0&&(t=MF())&&($F(t,n),FF(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},VF=function(){var e=UF();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},LE=function(){var e=VF(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},BF={left:0,top:0,right:0,gap:0},Id=function(e){return parseInt(e||"",10)||0},zF=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Id(n),Id(r),Id(s)]},WF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return BF;var t=zF(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])}},HF=LE(),vi="data-scroll-locked",KF=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` 211 .`.concat(CF,` { 212 overflow: hidden `).concat(r,`; 213 padding-right: `).concat(a,"px ").concat(r,`; 214 } 215 body[`).concat(vi,`] { 216 overflow: hidden `).concat(r,`; 217 overscroll-behavior: contain; 218 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 219 padding-left: `.concat(s,`px; 220 padding-top: `).concat(i,`px; 221 padding-right: `).concat(o,`px; 222 margin-left:0; 223 margin-top:0; 224 margin-right: `).concat(a,"px ").concat(r,`; 225 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
225")].filter(Boolean).join(""),` 226 } 227 228 .`).concat(Wl,` { 229 right: `).concat(a,"px ").concat(r,`; 230 } 231 232 .`).concat(Hl,` { 233 margin-right: `).concat(a,"px ").concat(r,`; 234 } 235 236 .`).concat(Wl," .").concat(Wl,` { 237 right: 0 `).concat(r,`; 238 } 239 240 .`).concat(Hl," .").concat(Hl,` { 241 margin-right: 0 `).concat(r,`; 242 } 243 244 body[`).concat(vi,`] { 245 `).concat(PF,": ").concat(a,`px; 246 } 247`)},w0=function(){var e=parseInt(document.body.getAttribute(vi)||"0",10);return isFinite(e)?e:0},qF=function(){b.useEffect(function(){return document.body.setAttribute(vi,(w0()+1).toString()),function(){var e=w0()-1;e<=0?document.body.removeAttribute(vi):document.body.setAttribute(vi,e.toString())}},[])},GF=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;qF();var i=b.useMemo(function(){return WF(s)},[s]);return b.createElement(HF,{styles:KF(i,!t,s,n?"":"!important")})},Cf=!1;if(typeof window<"u")try{var wl=Object.defineProperty({},"passive",{get:function(){return Cf=!0,!0}});window.addEventListener("test",wl,wl),window.removeEventListener("test",wl,wl)}catch{Cf=!1}var Ms=Cf?{passive:!1}:!1,YF=function(e){return e.tagName==="TEXTAREA"},ME=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!YF(e)&&n[t]==="visible")},QF=function(e){return ME(e,"overflowY")},JF=function(e){return ME(e,"overflowX")},x0=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=$E(e,r);if(s){var i=FE(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},XF=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ZF=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},$E=function(e,t){return e==="v"?QF(t):JF(t)},FE=function(e,t){return e==="v"?XF(t):ZF(t)},eU=function(e,t){return e==="h"&&t==="rtl"?-1:1},tU=function(e,t,n,r,s){var i=eU(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),u=!1,c=o>0,d=0,h=0;do{if(!a)break;var f=FE(e,a),v=f[0],p=f[1],x=f[2],m=p-x-i*v;(v||m)&&$E(e,a)&&(d+=m,h+=v);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(d)<1||!s)||!c&&(Math.abs(h)<1||!s))&&(u=!0),u},xl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},b0=function(e){return[e.deltaX,e.deltaY]},S0=function(e){return e&&"current"in e?e.current:e},nU=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rU=function(e){return` 248 .block-interactivity-`.concat(e,` {pointer-events: none;} 249 .allow-interactivity-`).concat(e,` {pointer-events: all;} 250`)},sU=0,$s=[];function iU(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),s=b.useState(sU++)[0],i=b.useState(LE)[0],o=b.useRef(e);b.useEffect(function(){o.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=kF([e.lockRef.current],(e.shards||[]).map(S0),!0).filter(Boolean);return p.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=b.useCallback(function(p,x){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var m=xl(p),g=n.current,y="deltaX"in p?p.deltaX:g[0]-m[0],S="deltaY"in p?p.deltaY:g[1]-m[1],E,_=p.target,T=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in p&&T==="h"&&_.type==="range")return!1;var k=x0(T,_);if(!k)return!0;if(k?E=T:(E=T==="v"?"h":"v",k=x0(T,_)),!k)return!1;if(!r.current&&"changedTouches"in p&&(y||S)&&(r.current=E),!E)return!0;var A=r.current||E;return tU(A,x,p,A==="h"?y:S,!0)},[]),l=b.useCallback(function(p){var x=p;if(!(!$s.length||$s[$s.length-1]!==i)){var m="deltaY"in x?b0(x):xl(x),g=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&nU(E.delta,m)})[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}
vendor: 4,333 bytes, line 250
250if(!g){var y=(o.current.shards||[]).map(S0).filter(Boolean).filter(function(E){return E.contains(x.target)}),S=y.length>0?a(x,y[0]):!o.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=b.useCallback(function(p,x,m,g){var y={name:p,delta:x,target:m,should:g,shadowParent:oU(m)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),c=b.useCallback(function(p){n.current=xl(p),r.current=void 0},[]),d=b.useCallback(function(p){u(p.type,b0(p),p.target,a(p,e.lockRef.current))},[]),h=b.useCallback(function(p){u(p.type,xl(p),p.target,a(p,e.lockRef.current))},[]);b.useEffect(function(){return $s.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ms),document.addEventListener("touchmove",l,Ms),document.addEventListener("touchstart",c,Ms),function(){$s=$s.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,Ms),document.removeEventListener("touchmove",l,Ms),document.removeEventListener("touchstart",c,Ms)}},[]);var f=e.removeScrollBar,v=e.inert;return b.createElement(b.Fragment,null,v?b.createElement(i,{styles:rU(s)}):null,f?b.createElement(GF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function oU(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aU=DF(DE,iU);var UE=b.forwardRef(function(e,t){return b.createElement(gc,vn({},e,{ref:t,sideCar:aU}))});UE.classNames=gc.classNames;var lU=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fs=new WeakMap,bl=new WeakMap,Sl={},Dd=0,VE=function(e){return e&&(e.host||VE(e.parentNode))},uU=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=VE(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})},cU=function(e,t,n,r){var s=uU(t,Array.isArray(e)?e:[e]);Sl[n]||(Sl[n]=new WeakMap);var i=Sl[n],o=[],a=new Set,l=new Set(s),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};s.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))c(h);else try{var f=h.getAttribute(r),v=f!==null&&f!=="false",p=(Fs.get(h)||0)+1,x=(i.get(h)||0)+1;Fs.set(h,p),i.set(h,x),o.push(h),p===1&&v&&bl.set(h,!0),x===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return c(t),a.clear(),Dd++,function(){o.forEach(function(d){var h=Fs.get(d)-1,f=i.get(d)-1;Fs.set(d,h),i.set(d,f),h||(bl.has(d)||d.removeAttribute(r),bl.delete(d)),f||d.removeAttribute(n)}),Dd--,Dd||(Fs=new WeakMap,Fs=new WeakMap,bl=new WeakMap,Sl={})}},dU=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=lU(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),cU(r,s,n,"aria-hidden")):function(){return null}},yc="Dialog",[BE,sV]=Vi(yc),[hU,un]=BE(yc),zE=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=b.useRef(null),l=b.useRef(null),[u,c]=eb({prop:r,defaultProp:s??!1,onChange:i,caller:yc});return w.jsx(hU,{scope:t,triggerRef:a,contentRef:l,contentId:Zc(),titleId:Zc(),descriptionId:Zc(),open:u,onOpenChange:c,onOpenToggle:b.useCallback(()=>c(d=>!d),[c]),modal:o,children:n})};zE.displayName=yc;var WE="DialogTrigger",fU=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=un(WE,n),i=Me(t,s.triggerRef);return w.jsx(pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":_m(s.open),...r,ref:i,onClick:De(e.onClick,s.onOpenToggle)})});fU.displayName=WE;var Sm="DialogPortal",[pU,HE]=BE(Sm,{forceMount:void 0}),KE=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=un(Sm,t);return w.jsx(pU,{scope:t,forceMount:n,children:b.Children.map(r,o=>w.jsx(Ca,{present:n||i.open,children:w.jsx(Tp,{asChild:!0,container:s,children:o})}))})};KE.displayName=Sm;var Iu="DialogOverlay",qE=b.forwardRef((e,t)=>{const n=HE(Iu,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=un(Iu,e.__scopeDialog);return i.modal?w.jsx(Ca,{present:r||i.open,children:w.jsx(gU,{...s,ref:t})}):null});qE.displayName=Iu;var mU=ea("DialogOverlay.RemoveScroll"),gU=b.forwardRef((e,t)=>
vendor: 4,628 bytes, lines 250-254
250{const{__scopeDialog:n,...r}=e,s=un(Iu,n);return w.jsx(UE,{as:mU,allowPinchZoom:!0,shards:[s.contentRef],children:w.jsx(pe.div,{"data-state":_m(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),bs="DialogContent",GE=b.forwardRef((e,t)=>{const n=HE(bs,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=un(bs,e.__scopeDialog);return w.jsx(Ca,{present:r||i.open,children:i.modal?w.jsx(yU,{...s,ref:t}):w.jsx(vU,{...s,ref:t})})});GE.displayName=bs;var yU=b.forwardRef((e,t)=>{const n=un(bs,e.__scopeDialog),r=b.useRef(null),s=Me(t,n.contentRef,r);return b.useEffect(()=>{const i=r.current;if(i)return dU(i)},[]),w.jsx(YE,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:De(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:De(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:De(e.onFocusOutside,i=>i.preventDefault())})}),vU=b.forwardRef((e,t)=>{const n=un(bs,e.__scopeDialog),r=b.useRef(!1),s=b.useRef(!1);return w.jsx(YE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.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"&&(s.current=!0));const o=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),YE=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=un(bs,n),l=b.useRef(null),u=Me(t,l);return TF(),w.jsxs(w.Fragment,{children:[w.jsx(OE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:w.jsx(_p,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":_m(a.open),...o,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(wU,{titleId:a.titleId}),w.jsx(bU,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Em="DialogTitle",QE=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=un(Em,n);return w.jsx(pe.h2,{id:s.titleId,...r,ref:t})});QE.displayName=Em;var JE="DialogDescription",XE=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=un(JE,n);return w.jsx(pe.p,{id:s.descriptionId,...r,ref:t})});XE.displayName=JE;var ZE="DialogClose",e_=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=un(ZE,n);return w.jsx(pe.button,{type:"button",...r,ref:t,onClick:De(e.onClick,()=>s.onOpenChange(!1))})});e_.displayName=ZE;function _m(e){return e?"open":"closed"}var t_="DialogTitleWarning",[iV,n_]=oC(t_,{contentName:bs,titleName:Em,docsSlug:"dialog"}),wU=({titleId:e})=>{const t=n_(t_),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 251 252If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 253 254For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},xU="DialogDescriptionWarning",bU=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n_(xU).contentName}}.`;return b.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},SU=zE,EU=KE,r_=qE,s_=GE,i_=QE,o_=XE,_U=e_;const TU=SU,kU=EU,a_=b.forwardRef(({className:e,...t},n)=>w.jsx(r_,{ref:n,className:Ze("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}));a_.displayName=r_.displayName;const l_=b.forwardRef(({className:e,children:t,...n},r)=>w.jsxs(kU,{children:[w.jsx(a_,{}),w.jsxs(s_,{ref:r,className:Ze("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
254nded-lg",e),...n,children:[t,w.jsxs(_U,{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:[w.jsx(Eb,{className:"h-4 w-4"}),w.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));l_.displayName=s_.displayName;const u_=({className:e,...t})=>w.jsx("div",{className:Ze("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});u_.displayName="DialogHeader";const c_=b.forwardRef(({className:e,...t},n)=>w.jsx(i_,{ref:n,className:Ze("text-lg font-semibold leading-none tracking-tight",e),...t}));c_.displayName=i_.displayName;const d_=b.forwardRef(({className:e,...t},n)=>w.jsx(o_,{ref:n,className:Ze("text-sm text-muted-foreground",e),...t}));d_.displayName=o_.displayName;const CU=()=>{const[e,t]=b.useState(""),[n,r]=b.useState(""),[s,i]=b.useState(!1),[o,a]=b.useState(!1),l=async u=>{if(u.preventDefault(),!(!n||!e.trim())){i(!0);try{const{error:c}=await At.from("waitlist_emails").insert({email:n,name:e.trim()});if(c)if(c.code==="23505")bn.info("You're already entered!"),a(!0);else throw c;else a(!0)}catch(c){bn.error("Something went wrong. Please try again."),console.error("Giveaway entry error:",c)}finally{i(!1)}}};return w.jsxs(w.Fragment,{children:[w.jsx("section",{id:"giveaway",className:"py-24 px-6 relative",children:w.jsxs("div",{className:"max-w-5xl mx-auto",children:[w.jsxs(xt.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-12",children:[w.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full border border-primary/30 bg-primary/5 text-primary text-sm font-medium mb-4",children:[w.jsx(aP,{className:"w-4 h-4"}),"Limited Time"]}),w.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground",children:"Win a Free Year of Kamora Pro"}),w.jsx("p",{className:"text-muted-foreground mt-3 max-w-lg mx-auto",children:"Enter our launch giveaway for a chance to win 12 months of Kamora Pro â completely free."})]}),w.jsx(xt.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15},className:"rounded-2xl border border-border bg-card/50 backdrop-blur-sm overflow-hidden",children:w.jsxs("div",{className:"grid md:grid-cols-2 gap-0",children:[w.jsxs("div",{className:"relative flex flex-col items-center justify-end min-h-[340px] md:min-h-[400px] overflow-hidden",children:[w.jsx("img",{src:yF,alt:"Giveaway prize box",className:"absolute inset-0 w-full h-full object-cover"}),w.jsxs("div",{className:"relative z-10 text-center pb-6 pt-16 w-full bg-gradient-to-t from-black/80 to-transparent",children:[w.jsx("p",{className:"text-sm text-muted-foreground uppercase tracking-wider font-medium",children:"GIVEAWAY #001â"}),w.jsx("p",{className:"text-2xl md:text-3xl font-bold text-foreground mt-1",children:"12 Months Pro"}),w.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Valued at $299"})]})]}),w.jsxs("div",{className:"p-8 md:p-10 flex flex-col justify-center",children:[w.jsx("h3",{className:"text-lg font-semibold text-foreground mb-1",children:"How to Enter"}),w.jsx("p",{className:"text-muted-foreground text-sm mb-6",children:"Enter your name and email below to join the giveaway and our waitlist."}),w.jsxs("form",{onSubmit:l,className:"space-y-3",children:[w.jsx(zn,{type:"text",placeholder:"Your name",value:e,onChange:u=>t(u.target.value),required:!0,className:"h-12 rounded-xl bg-background border-border px-4 text-sm focus-visible:ring-primary"}),w.jsx(zn,{type:"email",placeholder:"Your email",value:n,onChange:u=>r(u.target.value),required:!0,className:"h-12 rounded-xl bg-background border-border px-4 text-sm focus-visible:ring-primary"}),w.jsxs(Ee,{type:"submit",size:"lg",disabled:s,className:"w-full group",children:[s?"Entering...":"Enter Giveaway",!s&&w.jsx(Ap,{className:"w-4 h-4 ml-2 transition-transform group-hover:translate-x-1"})]})]})]})]})})]})}),w.jsx(TU,{open:o,onOpenChange:a,children:w.jsx(l_,{className:"sm:max-w-md text-center",children:w.jsxs(u_,{className:"items-center",children:[w.jsx("div",{className:"w-14 h-14 roun
254ded-full bg-primary/10 border border-primary/20 flex items-center justify-center mx-auto mb-2",children:w.jsx(sP,{className:"w-7 h-7 text-primary"})}),w.jsx(c_,{className:"text-xl",children:"You're In! ð"}),w.jsx(d_,{className:"text-base",children:"You entered the 12 Months Pro giveaway and joined our waitlist. We'll be in touch!"})]})})})]})},PU=()=>{const[e,t]=b.useState(""),[n,r]=b.useState(""),[s,i]=b.useState(!1),[o,a]=b.useState(!1),l=async u=>{if(u.preventDefault(),!(!n||!e.trim())){a(!0);try{const{error:c}=await At.from("waitlist_emails").insert({email:n,name:e.trim()});if(c)if(c.code==="23505")bn.info("You're already on the waitlist!"),i(!0);else throw c;else i(!0)}catch(c){bn.error("Something went wrong. Please try again."),console.error("Waitlist error:",c)}finally{a(!1)}}};return w.jsx("section",{id:"waitlist",className:"py-32 px-6",children:w.jsx("div",{className:"max-w-2xl mx-auto text-center",children:w.jsxs(xt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[w.jsxs("h2",{className:"text-3xl sm:text-5xl font-bold tracking-tight mb-4",children:["Ready to find your",w.jsx("br",{}),w.jsx("span",{className:"text-gradient",children:"next deal?"})]}),w.jsx("p",{className:"text-muted-foreground text-lg mb-10 max-w-md mx-auto",children:"Join the waitlist and be the first to access Kamora when we launch."}),s?w.jsxs(xt.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"p-6 rounded-2xl bg-primary/10 border border-primary/20",children:[w.jsx("p",{className:"text-primary font-medium text-lg",children:"You're on the list! ð"}),w.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:"We'll notify you as soon as Kamora is ready."})]}):w.jsxs("form",{onSubmit:l,className:"flex flex-col gap-3 max-w-md mx-auto",children:[w.jsx(zn,{type:"text",placeholder:"Enter your name",value:e,onChange:u=>t(u.target.value),required:!0,className:"h-12 rounded-full bg-card border-border px-5 text-sm focus-visible:ring-primary"}),w.jsx(zn,{type:"email",placeholder:"Enter your email",value:n,onChange:u=>r(u.target.value),required:!0,className:"h-12 rounded-full bg-card border-border px-5 text-sm focus-visible:ring-primary"}),w.jsxs(Ee,{type:"submit",size:"lg",disabled:o,className:"h-12 rounded-full bg-primary text-primary-foreground hover:bg-primary/90 px-6 font-medium glow-primary hover:scale-[1.02] transition-all duration-300",children:[o?"Joining...":"Join Waitlist",!o&&w.jsx(Ap,{className:"w-4 h-4 ml-1"})]})]}),w.jsx("p",{className:"text-muted-foreground text-xs mt-4",children:"No spam. Unsubscribe anytime."})]})})})},h_=()=>w.jsx("footer",{className:"border-t border-border py-12 px-6",children:w.jsxs("div",{className:"max-w-5xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-4",children:[w.jsxs("span",{className:"text-sm font-semibold tracking-tight",children:["kamora",w.jsx("span",{className:"text-primary",children:".ai"})]}),w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsx(ot,{to:"/privacy",className:"text-muted-foreground text-xs hover:text-foreground transition-colors",children:"Privacy Policy"}),w.jsx("p",{className:"text-muted-foreground text-xs",children:"© 2025 Kamora.ai â All rights reserved."})]})]})}),RU=()=>w.jsxs("div",{className:"min-h-screen bg-background",children:[w.jsx(WS,{}),w.jsx(lF,{}),w.jsx("div",{id:"features",children:w.jsx(fF,{})}),w.jsx("div",{id:"product-preview",children:w.jsx(dF,{})}),w.jsx(CU,{}),w.jsx("div",{id:"pricing",children:w.jsx(gF,{})}),w.jsx(PU,{}),w.jsx(h_,{})]}),AU=()=>{const[e,t]=b.useState(""),[n,r]=b.useState(""),[s,i]=b.useState(!1),o=Gi(),a=async u=>{u.preventDefault(),i(!0);const{error:c}=await At.auth.signInWithPassword({email:e,password:n});i(!1),c?bn.error(c.message):o("/dashboard")},l=async()=>{const{error:u}=await At.auth.signInWithOAuth({provider:"google",options:{redirectTo:`${window.location.origin}/dashboard`}});u&&bn.error(u.message)};return w.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-6",children:w.jsxs("div",{className:"w-full max-w-sm space-y-8",children:[w.jsxs("div",{className:"text-center",children:[w.jsxs(ot,{to:"/",className:"text-lg font-semibold tracking-tight",children:["kamora",w.jsx("span",{className:"text-primary",children:".ai"})]}),w.jsx("h1",{className:"text-2xl font-bold mt-6 mb-2",children:"Welcome back"}),w.jsx("p",{className:"text-muted-foreground text-sm",children:"Sign in to your account"})]}),w.jsxs("form",{onSubmit:a,className:"space-y-4",children:[w.jsx(zn,{type:"email",placeholder:"Email",value:e,onCh
254ange:u=>t(u.target.value),required:!0,className:"bg-card border-border"}),w.jsx(zn,{type:"password",placeholder:"Password",value:n,onChange:u=>r(u.target.value),required:!0,className:"bg-card border-border"}),w.jsx(Ee,{type:"submit",disabled:s,className:"w-full rounded-full bg-primary text-primary-foreground",children:s?"Signing inâ¦":"Sign In"})]}),w.jsxs("div",{className:"relative",children:[w.jsx("div",{className:"absolute inset-0 flex items-center",children:w.jsx("div",{className:"w-full border-t border-border"})}),w.jsx("div",{className:"relative flex justify-center text-xs",children:w.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"or"})})]}),w.jsx(Ee,{variant:"outline",onClick:l,className:"w-full rounded-full",children:"Continue with Google"}),w.jsxs("p",{className:"text-center text-sm text-muted-foreground",children:["Don't have an account?"," ",w.jsx(ot,{to:"/signup",className:"text-primary hover:underline",children:"Sign up"})]})]})})},OU=()=>{const[e,t]=b.useState(""),[n,r]=b.useState(""),[s,i]=b.useState(!1),o=Gi(),a=async u=>{u.preventDefault(),i(!0);const{error:c}=await At.auth.signUp({email:e,password:n,options:{emailRedirectTo:`${window.location.origin}/dashboard`}});i(!1),c?bn.error(c.message):(bn.success("Check your email to confirm your account!"),o("/login"))},l=async()=>{const{error:u}=await At.auth.signInWithOAuth({provider:"google",options:{redirectTo:`${window.location.origin}/dashboard`}});u&&bn.error(u.message)};return w.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-6",children:w.jsxs("div",{className:"w-full max-w-sm space-y-8",children:[w.jsxs("div",{className:"text-center",children:[w.jsxs(ot,{to:"/",className:"text-lg font-semibold tracking-tight",children:["kamora",w.jsx("span",{className:"text-primary",children:".ai"})]}),w.jsx("h1",{className:"text-2xl font-bold mt-6 mb-2",children:"Create your account"}),w.jsx("p",{className:"text-muted-foreground text-sm",children:"Start scanning smarter today"})]}),w.jsxs("form",{onSubmit:a,className:"space-y-4",children:[w.jsx(zn,{type:"email",placeholder:"Email",value:e,onChange:u=>t(u.target.value),required:!0,className:"bg-card border-border"}),w.jsx(zn,{type:"password",placeholder:"Password (min 6 characters)",value:n,onChange:u=>r(u.target.value),required:!0,minLength:6,className:"bg-card border-border"}),w.jsx(Ee,{type:"submit",disabled:s,className:"w-full rounded-full bg-primary text-primary-foreground",children:s?"Creating accountâ¦":"Create Account"})]}),w.jsxs("div",{className:"relative",children:[w.jsx("div",{className:"absolute inset-0 flex items-center",children:w.jsx("div",{className:"w-full border-t border-border"})}),w.jsx("div",{className:"relative flex justify-center text-xs",children:w.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"or"})})]}),w.jsx(Ee,{variant:"outline",onClick:l,className:"w-full rounded-full",children:"Continue with Google"}),w.jsxs("p",{className:"text-center text-sm text-muted-foreground",children:["Already have an account?"," ",w.jsx(ot,{to:"/login",className:"text-primary hover:underline",children:"Sign in"})]})]})})},NU=Rp("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function jU({className:e,variant:t,...n}){return w.jsx("div",{className:Ze(NU({variant:t}),e),...n})}var Tm="Progress",km=100,[IU,oV]=Vi(Tm),[DU,LU]=IU(Tm),f_=b.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:s,getValueLabel:i=MU,...o}=e;(s||s===0)&&!E0(s)&&console.error($U(`${s}`,"Progress"));const a=E0(s)?s:km;r!==null&&!_0(r,a)&&console.error(FU(`${r}`,"Progress"));const l=_0(r,a)?r:null,u=Du(l)?i(l,a):void 0;return w.jsx(DU,{scope:n,value:l,max:a,children:w.jsx(pe.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":Du(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":g_(l,a),"data-value":l??void 0,"data-max":a,...o,ref:t})})});f_.displayName=Tm;var p_="ProgressIndicator",m_=b.forwardRef((e,t)=>
254{const{__scopeProgress:n,...r}=e,s=LU(p_,n);return w.jsx(pe.div,{"data-state":g_(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...r,ref:t})});m_.displayName=p_;function MU(e,t){return`${Math.round(e/t*100)}%`}function g_(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Du(e){return typeof e=="number"}function E0(e){return Du(e)&&!isNaN(e)&&e>0}function _0(e,t){return Du(e)&&!isNaN(e)&&e<=t&&e>=0}function $U(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${km}\`.`}function FU(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 255 - a positive number 256 - less than the value passed to \`max\` (or ${km} if no \`max\` prop is set) 257 - \`null\` or \`undefined\` if the progress is indeterminate. 258 259Defaulting to \`null\`.`}var y_=f_,UU=m_;const v_=b.forwardRef(({className:e,value:t,...n},r)=>w.jsx(y_,{ref:r,className:Ze("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:w.jsx(UU,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));v_.displayName=y_.displayName;const VU=()=>{const{user:e,subscription:t,signOut:n,refreshSubscription:r}=Oa(),s=Gi(),[i,o]=b.useState(!1),a=t.subscriptionStatus==="active",l=t.scanLimit>0?Math.min(t.scansUsed/t.scanLimit*100,100):0,u=async()=>{o(!0);try{const{data:d,error:h}=await At.functions.invoke("customer-portal");if(h)throw h;d!=null&&d.url&&window.open(d.url,"_blank")}catch(d){bn.error(d.message||"Failed to open billing portal")}finally{o(!1)}},c=async()=>{await n(),s("/")};return w.jsxs("div",{className:"min-h-screen bg-background",children:[w.jsx("nav",{className:"border-b border-border px-6 py-4",children:w.jsxs("div",{className:"max-w-4xl mx-auto flex items-center justify-between",children:[w.jsxs(ot,{to:"/",className:"text-lg font-semibold tracking-tight",children:["kamora",w.jsx("span",{className:"text-primary",children:".ai"})]}),w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:e==null?void 0:e.email}),w.jsx(Ee,{variant:"ghost",size:"icon",onClick:c,children:w.jsx(lP,{className:"w-4 h-4"})})]})]})}),w.jsxs("main",{className:"max-w-4xl mx-auto px-6 py-12 space-y-8",children:[w.jsxs("div",{children:[w.jsx("h1",{className:"text-3xl font-bold mb-1",children:"Dashboard"}),w.jsx("p",{className:"text-muted-foreground",children:"Manage your Kamora subscription and scans."})]}),w.jsxs("div",{className:"bg-card border border-border rounded-2xl p-6 space-y-4",children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{children:[w.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Current Plan"}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:"text-2xl font-bold capitalize",children:t.plan}),w.jsx(jU,{variant:a?"default":"secondary",children:t.subscriptionStatus})]})]}),w.jsx(Ee,{variant:"ghost",size:"icon",onClick:r,children:w.jsx(uP,{className:"w-4 h-4"})})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[w.jsx("span",{className:"text-muted-foreground",children:"Scans this month"}),w.jsxs("span",{className:"text-foreground font-medium",children:[t.scansUsed," / ",t.scanLimit]})]}),w.jsx(v_,{value:l,className:"h-2"})]})]}),(t.plan==="free"||!a)&&w.jsxs("div",{className:"bg-card border border-primary/30 rounded-2xl p-6 text-center space-y-3",children:[w.jsx("p",{className:"text-lg font-semibold",children:"Upgrade to unlock more scans"}),w.jsx("p",{className:"text-sm text-muted-foreground",children:"Get access to advanced analytics, more scans, and giveaway entries."}),w.jsx(Ee,{asChild:!0,className:"rounded-full bg-primary text-primary-foreground",children:w.jsx(ot,{to:"/#pricing",children:"View Plans"})})]}),w.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[w.jsx(Ee,{variant:"outline",className:"h-auto py-4 rounded-xl flex flex-col items-center gap-2",asChild:!0,children:w.jsxs(ot,{to:"/install",children:[w.jsx(Nh,{className:"w-5 h-5"}
259),w.jsx("span",{children:"Install Extension"})]})}),a&&w.jsxs(Ee,{variant:"outline",className:"h-auto py-4 rounded-xl flex flex-col items-center gap-2",onClick:u,disabled:i,children:[w.jsx(oP,{className:"w-5 h-5"}),w.jsx("span",{children:i?"Openingâ¦":"Manage Billing"})]})]})]})]})},BU=()=>{const{refreshSubscription:e}=Oa();return b.useEffect(()=>{e()},[]),w.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-6",children:w.jsxs("div",{className:"text-center space-y-6 max-w-md",children:[w.jsx(rP,{className:"w-16 h-16 text-primary mx-auto"}),w.jsx("h1",{className:"text-3xl font-bold",children:"You're all set!"}),w.jsx("p",{className:"text-muted-foreground",children:"Your subscription is now active. Install the Chrome extension to start scanning."}),w.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[w.jsx(Ee,{asChild:!0,className:"rounded-full bg-primary text-primary-foreground",children:w.jsx(ot,{to:"/install",children:"Install Extension"})}),w.jsx(Ee,{asChild:!0,variant:"outline",className:"rounded-full",children:w.jsx(ot,{to:"/dashboard",children:"Go to Dashboard"})})]})]})})},zU=()=>w.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-6",children:w.jsxs("div",{className:"text-center space-y-6 max-w-md",children:[w.jsx(iP,{className:"w-16 h-16 text-muted-foreground mx-auto"}),w.jsx("h1",{className:"text-3xl font-bold",children:"Checkout canceled"}),w.jsx("p",{className:"text-muted-foreground",children:"No worries â you can upgrade anytime."}),w.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[w.jsx(Ee,{asChild:!0,className:"rounded-full bg-primary text-primary-foreground",children:w.jsx(ot,{to:"/#pricing",children:"View Plans"})}),w.jsx(Ee,{asChild:!0,variant:"outline",className:"rounded-full",children:w.jsx(ot,{to:"/",children:"Back Home"})})]})]})}),WU=["Click the button below to open the Chrome Web Store.",'Click "Add to Chrome" and confirm the installation.',"Pin the Kamora extension to your toolbar for quick access.","Sign in with the same account you used here.","Navigate to any listing and click the Kamora icon to scan!"],HU=()=>w.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-6",children:w.jsxs("div",{className:"w-full max-w-lg space-y-8",children:[w.jsxs(ot,{to:"/dashboard",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[w.jsx(tP,{className:"w-4 h-4"})," Back to Dashboard"]}),w.jsxs("div",{className:"text-center space-y-3",children:[w.jsx(Nh,{className:"w-14 h-14 text-primary mx-auto"}),w.jsx("h1",{className:"text-3xl font-bold",children:"Install Kamora
259Extension"}),w.jsx("p",{className:"text-muted-foreground",children:"Get the Chrome extension to start scanning listings."})]}),w.jsx("ol",{className:"space-y-4",children:WU.map((e,t)=>w.jsxs("li",{className:"flex gap-4 items-start",children:[w.jsx("span",{className:"flex-shrink-0 w-7 h-7 rounded-full bg-primary/10 text-primary text-sm font-semibold flex items-center justify-center",children:t+1}),w.jsx("span",{className:"text-sm text-muted-foreground pt-0.5",children:e})]},t))}),w.jsxs(Ee,{size:"lg",className:"w-full rounded-full bg-primary text-primary-foreground text-base",onClick:()=>window.open("https://chrome.google.com/webstore","_blank"),children:[w.jsx(Nh,{className:"w-5 h-5 mr-2"}),"Install from Chrome Web Store"]})]})}),KU=()=>{const e=qi();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),w.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:w.jsxs("div",{className:"text-center",children:[w.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),w.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),w.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},qU=()=>w.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[w.jsx(WS,{}),w.jsx("main",{className:"flex-1 pt-28 pb-16 px-6",children:w.jsxs("div",{className:"max-w-3xl mx-auto space-y-6",children:[w.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Kamora / MarketVolt Privacy Policy"}),w.jsxs("div",{className:"space-y-4 text-muted-foreground leading-relaxed",children:[w.jsx("p",{children:"MarketVolt (a Kamora product) does not collect, store, or sell personal user data."}),w.jsx("p",{children:"The MarketVolt browser extension reads publicly available information from Facebook Marketplace listings that the user chooses to open in order to analyze vehicle pricing and generate deal insights such as fair price estimates and deal scores."}),w.jsx("p",{children:"MarketVolt does not access private messages, login credentials, Facebook account information, or personal user content."}),w.jsx("p",{children:"Listing information may be transmitted securely to the MarketVolt scoring service solely to generate analysis results. No personal identifiers are stored or shared."}),w.jsx("p",{children:"MarketVolt does not track browsing history outside of Marketplace listing pages and does not use data for advertising or profiling."}),w.jsxs("p",{children:["For questions about privacy, contact: ",w.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]})]})}),w.jsx(h_,{})]}),GU=new DO,YU=()=>w.jsx(MO,{client:GU,children:w.jsxs(dO,{children:[w.jsx(YP,{}),w.jsx(CR,{}),w.jsx(IN,{children:w.jsx(mD,{children:w.jsxs(CN,{children:[w.jsx(dn,{path:"/",element:w.jsx(RU,{})}),w.jsx(dn,{path:"/login",element:w.jsx(AU,{})}),w.jsx(dn,{path:"/signup",element:w.jsx(OU,{})}),w.jsx(dn,{path:"/dashboard",element:w.jsx(dd,{children:w.jsx(VU,{})})}),w.jsx(dn,{path:"/success",element:w.jsx(dd,{children:w.jsx(BU,{})})}),w.jsx(dn,{path:"/cancel",element:w.jsx(zU,{})}),w.jsx(dn,{path:"/install",element:w.jsx(dd,{children:w.jsx(HU,{})})}),w.jsx(dn,{path:"/privacy",element:w.jsx(qU,{})}),w.jsx(dn,{path:"*",element:w.jsx(KU,{})})]})})})]})});qx(document.getElementById("root")).render(w.jsx(YU,{}));
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.