vendor: 3,157 bytes, lines 1-9
1var gg=e=>{throw TypeError(e)};var td=(e,t,n)=>t.has(e)||gg("Cannot "+n);var j=(e,t,n)=>(td(e,t,"read from private field"),n?n.call(e):t.get(e)),ae=(e,t,n)=>t.has(e)?gg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),X=(e,t,n,r)=>(td(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),rt=(e,t,n)=>(td(e,t,"access private method"),n);var Za=(e,t,n,r)=>({set _(s){X(e,t,s,n)},get _(){return j(e,t,r)}});function YC(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 kw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ew={exports:{}},au={},Cw={exports:{}},ne={};/** 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 Fa=Symbol.for("react.element"),JC=Symbol.for("react.portal"),QC=Symbol.for("react.fragment"),XC=Symbol.for("react.strict_mode"),ZC=Symbol.for("react.profiler"),eT=Symbol.for("react.provider"),tT=Symbol.for("react.context"),nT=Symbol.for("react.forward_ref"),rT=Symbol.for("react.suspense"),sT=Symbol.for("react.memo"),iT=Symbol.for("react.lazy"),yg=Symbol.iterator;function oT(e){return e===null||typeof e!="object"?null:(e=yg&&e[yg]||e["@@iterator"],typeof e=="function"?e:null)}var Tw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_w=Object.assign,Pw={};function eo(e,t,n){this.props=e,this.context=t,this.refs=Pw,this.updater=n||Tw}eo.prototype.isReactComponent={};eo.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")};eo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Aw(){}Aw.prototype=eo.prototype;function cp(e,t,n){this.props=e,this.context=t,this.refs=Pw,this.updater=n||Tw}var up=cp.prototype=new Aw;
vendor: 5,639 bytes, lines 9-16
9up.constructor=cp;_w(up,eo.prototype);up.isPureReactComponent=!0;var vg=Array.isArray,Rw=Object.prototype.hasOwnProperty,dp={current:null},jw={key:!0,ref:!0,__self:!0,__source:!0};function Nw(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)Rw.call(t,r)&&!jw.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),c=0;c<a;c++)l[c]=arguments[c+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:Fa,type:e,key:i,ref:o,props:s,_owner:dp.current}}function aT(e,t){return{$$typeof:Fa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hp(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fa}function lT(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wg=/\/+/g;function nd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?lT(""+e.key):t.toString(36)}function Fl(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 Fa:case JC:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+nd(o,0):r,vg(s)?(n="",e!=null&&(n=e.replace(wg,"$&/")+"/"),Fl(s,t,n,"",function(c){return c})):s!=null&&(hp(s)&&(s=aT(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(wg,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",vg(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+nd(i,a);o+=Fl(i,t,n,l,s)}else if(l=oT(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+nd(i,a++),o+=Fl(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 el(e,t,n){if(e==null)return e;var r=[],s=0;return Fl(e,r,"","",function(i){return t.call(n,i,s++)}),r}function cT(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 mt={current:null},Bl={transition:null},uT={ReactCurrentDispatcher:mt,ReactCurrentBatchConfig:Bl,ReactCurrentOwner:dp};function Ow(){throw Error("act(...) is not supported in production builds of React.")}ne.Children={map:el,forEach:function(e,t,n){el(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return el(e,function(){t++}),t},toArray:function(e){return el(e,function(t){return t})||[]},only:function(e){if(!hp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=eo;ne.Fragment=QC;ne.Profiler=ZC;ne.PureComponent=cp;ne.StrictMode=XC;ne.Suspense=rT;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uT;ne.act=Ow;ne.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=_w({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=dp.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Rw.call(t,l)&&!jw.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 c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Fa,type:e.type,key:s,ref:i,props:r,_owner:o}};ne.createContext=function(e){return e={$$typeof:tT,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:eT,_context:e},e.Consumer=e};ne.createElement=Nw;ne.createFactory=function(e){var t=Nw.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:nT,render:e}};ne.isValidElement=hp;ne.lazy=function(e){return{$$typeof:iT,_payload:{_status:-1,_result:e},_init:cT}};ne.memo=function(e,t){return{$$typeof:sT,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=Bl.transition;Bl.transition={};try{e()}finally{Bl.transition=t}};ne.unstable_act=Ow;ne.useCallback=function(e,t){return mt.current.useCallback(e,t)};ne.useContext=function(e){return mt.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return mt.current.useDeferredValue(e)};ne.useEffect=function(e,t){return mt.current.useEffect(e,t)};ne.useId=function(){return mt.current.useId()};ne.useImperativeHandle=function(e,t,n){return mt.current.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return mt.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return mt.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return mt.current.useMemo(e,t)};ne.useReducer=function(e,t,n){return mt.current.useReducer(e,t,n)};ne.useRef=function(e){return mt.current.useRef(e)};ne.useState=function(e){return mt.current.useState(e)};ne.useSyncExternalStore=function(e,t,n){return mt.current.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return mt.current.useTransition()};ne.version="18.3.1";Cw.exports=ne;var x=Cw.exports;const L=kw(x),fp=YC({__proto__:null,default:L},[x]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree.
vendor: 11,528 bytes, lines 17-34
17 */var dT=x,hT=Symbol.for("react.element"),fT=Symbol.for("react.fragment"),pT=Object.prototype.hasOwnProperty,mT=dT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gT={key:!0,ref:!0,__self:!0,__source:!0};function Iw(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)pT.call(t,r)&&!gT.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:hT,type:e,key:i,ref:o,props:s,_owner:mT.current}}au.Fragment=fT;au.jsx=Iw;au.jsxs=Iw;Ew.exports=au;var h=Ew.exports,Lw={exports:{}},Ot={},Mw={exports:{}},Dw={};/** 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(_,R){var D=_.length;_.push(R);e:for(;0<D;){var K=D-1>>>1,W=_[K];if(0<s(W,R))_[K]=R,_[D]=W,D=K;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var R=_[0],D=_.pop();if(D!==R){_[0]=D;e:for(var K=0,W=_.length,Z=W>>>1;K<Z;){var J=2*(K+1)-1,ge=_[J],Re=J+1,F=_[Re];if(0>s(ge,D))Re<W&&0>s(F,ge)?(_[K]=F,_[Re]=D,K=Re):(_[K]=ge,_[J]=D,K=J);else if(Re<W&&0>s(F,D))_[K]=F,_[Re]=D,K=Re;else break e}}return R}function s(_,R){var D=_.sortIndex-R.sortIndex;return D!==0?D:_.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=[],c=[],u=1,d=null,f=3,p=!1,w=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,y=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 v(_){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=_)r(c),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(c)}}function S(_){if(m=!1,v(_),!w)if(n(l)!==null)w=!0,B(k);else{var R=n(c);R!==null&&G(S,R.startTime-_)}}function k(_,R){w=!1,m&&(m=!1,y(T),T=-1),p=!0;var D=f;try{for(v(R),d=n(l);d!==null&&(!(d.expirationTime>R)||_&&!M());){var K=d.callback;if(typeof K=="function"){d.callback=null,f=d.priorityLevel;var W=K(d.expirationTime<=R);R=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(l)&&r(l),v(R)}else r(l);d=n(l)}if(d!==null)var Z=!0;else{var J=n(c);J!==null&&G(S,J.startTime-R),Z=!1}return Z}finally{d=null,f=D,p=!1}}var E=!1,C=null,T=-1,A=5,P=-1;function M(){return!(e.unstable_now()-P<A)}function I(){if(C!==null){var _=e.unstable_now();P=_;var R=!0;try{R=C(!0,_)}finally{R?H():(E=!1,C=null)}}else E=!1}var H;if(typeof g=="function")H=function(){g(I)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,q=N.port2;N.port1.onmessage=I,H=function(){q.postMessage(null)}}else H=function(){b(I,0)};function B(_){C=_,E||(E=!0,H())}function G(_,R){T=b(function(){_(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(_){_.callback=null},e.unstable_continueExecution=function(){w||p||(w=!0,B(k))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var D=f;f=R;try{return _()}finally{f=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,R){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var D=f;f=_;try{return R()}finally{f=D}},e.unstable_scheduleCallback=function(_,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,_){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=D+W,_={id:u++,callback:R,priorityLevel:_,startTime:D,expirationTime:W,sortIndex:-1},D>K?(_.sortIndex=D,t(c,_),n(l)===null&&_===n(c)&&(m?(y(T),T=-1):m=!0,G(S,D-K))):(_.sortIndex=W,t(l,_),w||p||(w=!0,B(k))),_},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(_){var R=f;return function(){var D=f;f=R;try{return _.apply(this,arguments)}finally{f=D}}}})(Dw);Mw.exports=Dw;var yT=Mw.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 vT=x,Nt=yT;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $w=new Set,na={};function Ms(e,t){$i(e,t),$i(e+"Capture",t)}function $i(e,t){for(na[e]=t,e=0;e<t.length;e++)$w.add(t[e])}var Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ch=Object.prototype.hasOwnProperty,wT=/^[: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]*$/,xg={},bg={};function xT(e){return ch.call(bg,e)?!0:ch.call(xg,e)?!1:wT.test(e)?bg[e]=!0:(xg[e]=!0,!1)}function bT(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 ST(e,t,n,r){if(t===null||typeof t>"u"||bT(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 gt(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 et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){et[e]=new gt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];et[t]=new gt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){et[e]=new gt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){et[e]=new gt(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){et[e]=new gt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){et[e]=new gt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){et[e]=new gt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){et[e]=new gt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){et[e]=new gt(e,5,!1,e.toLowerCase(),null,!1,!1)});var pp=/[\-:]([a-z])/g;function mp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(pp,mp);et[t]=new gt(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(pp,mp);et[t]=new gt(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(pp,mp);et[t]=new gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){et[e]=new gt(e,1,!1,e.toLowerCase(),null,!1,!1)});et.xlinkHref=new gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){et[e]=new gt(e,1,!1,e.toLowerCase(),null,!0,!0)});function gp(e,t,n,r){var s=et.hasOwnProperty(t)?et[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ST(t,n,s,r)&&(n=null),r||s===null?xT(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 er=vT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,tl=Symbol.for("react.element"),si=Symbol.for("react.portal"),ii=Symbol.for("react.fragment"),yp=Symbol.for("react.strict_mode"),uh=Symbol.for("react.profiler"),Fw=Symbol.for("react.provider"),Bw=Symbol.for("react.context"),vp=Symbol.for("react.forward_ref"),dh=Symbol.for("react.suspense"),hh=Symbol.for("react.suspense_list"),wp=Symbol.for("react.memo"),fr=Symbol.for("react.lazy"),Uw=Symbol.for("react.offscreen"),Sg=Symbol.iterator;function wo(e){return e===null||typeof e!="object"?null:(e=Sg&&e[Sg]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Object.assign,rd;function jo(e){if(rd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);rd=t&&t[1]||""}return` 34`+rd+e}var sd=!1;function id(e,t){if(!e||sd)return"";sd=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}
vendor: 14,090 bytes, lines 34-37
34catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.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{sd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?jo(e):""}function kT(e){switch(e.tag){case 5:return jo(e.type);case 16:return jo("Lazy");case 13:return jo("Suspense");case 19:return jo("SuspenseList");case 0:case 2:case 15:return e=id(e.type,!1),e;case 11:return e=id(e.type.render,!1),e;case 1:return e=id(e.type,!0),e;default:return""}}function fh(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 ii:return"Fragment";case si:return"Portal";case uh:return"Profiler";case yp:return"StrictMode";case dh:return"Suspense";case hh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bw:return(e.displayName||"Context")+".Consumer";case Fw:return(e._context.displayName||"Context")+".Provider";case vp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wp:return t=e.displayName||null,t!==null?t:fh(e.type)||"Memo";case fr:t=e._payload,e=e._init;try{return fh(e(t))}catch{}}return null}function ET(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 fh(t);case 8:return t===yp?"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 $r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function CT(e){var t=Vw(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 nl(e){e._valueTracker||(e._valueTracker=CT(e))}function zw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hc(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 ph(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function kg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$r(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ww(e,t){t=t.checked,t!=null&&gp(e,"checked",t,!1)}function mh(e,t){Ww(e,t);var n=$r(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")?gh(e,t.type,n):t.hasOwnProperty("defaultValue")&&gh(e,t.type,$r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Eg(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 gh(e,t,n){(t!=="number"||hc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var No=Array.isArray;function xi(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=""+$r(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 yh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return Ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(No(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$r(n)}}function Hw(e,t){var n=$r(t.value),r=$r(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 Tg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function qw(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 vh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?qw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var rl,Kw=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(rl=rl||document.createElement("div"),rl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=rl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ra(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},TT=["Webkit","ms","Moz","O"];Object.keys(Fo).forEach(function(e){TT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fo[t]=Fo[e]})});function Gw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fo.hasOwnProperty(e)&&Fo[e]?(""+t).trim():t+"px"}function Yw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Gw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var _T=Ae({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 wh(e,t){if(t){if(_T[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function xh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bh=null;function xp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sh=null,bi=null,Si=null;function _g(e){if(e=Va(e)){if(typeof Sh!="function")throw Error(O(280));var t=e.stateNode;t&&(t=hu(t),Sh(e.stateNode,e.type,t))}}function Jw(e){bi?Si?Si.push(e):Si=[e]:bi=e}function Qw(){if(bi){var e=bi,t=Si;if(Si=bi=null,_g(e),t)for(e=0;e<t.length;e++)_g(t[e])}}function Xw(e,t){return e(t)}function Zw(){}var od=!1;function ex(e,t,n){if(od)return e(t,n);od=!0;try{return Xw(e,t,n)}finally{od=!1,(bi!==null||Si!==null)&&(Zw(),Qw())}}function sa(e,t){var n=e.stateNode;if(n===null)return null;var r=hu(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var kh=!1;if(Gn)try{var xo={};Object.defineProperty(xo,"passive",{get:function(){kh=!0}}),window.addEventListener("test",xo,xo),window.removeEventListener("test",xo,xo)}catch{kh=!1}function PT(e,t,n,r,s,i,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Bo=!1,fc=null,pc=!1,Eh=null,AT={onError:function(e){Bo=!0,fc=e}};function RT(e,t,n,r,s,i,o,a,l){Bo=!1,fc=null,PT.apply(AT,arguments)}function jT(e,t,n,r,s,i,o,a,l){if(RT.apply(this,arguments),Bo){if(Bo){var c=fc;Bo=!1,fc=null}else throw Error(O(198));pc||(pc=!0,Eh=c)}}function Ds(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 tx(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 Pg(e){if(Ds(e)!==e)throw Error(O(188))}function NT(e){var t=e.alternate;if(!t){if(t=Ds(e),t===null)throw Error(O(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 Pg(s),e;if(i===r)return Pg(s),t;i=i.sibling}throw Error(O(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(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function nx(e){return e=NT(e),e!==null?rx(e):null}function rx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rx(e);if(t!==null)return t;e=e.sibling}return null}var sx=Nt.unstable_scheduleCallback,Ag=Nt.unstable_cancelCallback,OT=Nt.unstable_shouldYield,IT=Nt.unstable_requestPaint,Le=Nt.unstable_now,LT=Nt.unstable_getCurrentPriorityLevel,bp=Nt.unstable_ImmediatePriority,ix=Nt.unstable_UserBlockingPriority,mc=Nt.unstable_NormalPriority,MT=Nt.unstable_LowPriority,ox=Nt.unstable_IdlePriority,lu=null,Rn=null;function DT(e){if(Rn&&typeof Rn.onCommitFiberRoot=="function")try{Rn.onCommitFiberRoot(lu,e,void 0,(e.current.flags&128)===128)}catch{}}var dn=Math.clz32?Math.clz32:BT,$T=Math.log,FT=Math.LN2;function BT(e){return e>>>=0,e===0?32:31-($T(e)/FT|0)|0}var sl=64,il=4194304;function Oo(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 gc(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=Oo(a):(i&=o,i!==0&&(r=Oo(i)))}else o=n&~s,o!==0?r=Oo(o):i!==0&&(r=Oo(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-dn(t),s=1<<n,r|=e[n],t&=~s;return r}function UT(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 VT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-dn(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=UT(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Ch(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ax(){var e=sl;return sl<<=1,!(sl&4194240)&&(sl=64),e}function ad(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function Ba(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=n}function zT(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-dn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Sp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-dn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var de=0;function lx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var cx,kp,ux,dx,hx,Th=!1,ol=[],Pr=null,Ar=null,Rr=null,ia=new Map,oa=new Map,mr=[],WT="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 Rg(e,t){switch(e){case"focusin":case"focusout":Pr=null;break;case"dragenter":case"dragleave":Ar=null;break;case"mouseover":case"mouseout":Rr=null;break;case"pointerover":case"pointerout":ia.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":oa.delete(t.pointerId)}}function bo(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=Va(t),t!==null&&kp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function HT(e,t,n,r,s){switch(t){case"focusin":return Pr=bo(Pr,e,t,n,r,s),!0;case"dragenter":return Ar=bo(Ar,e,t,n,r,s),!0;case"mouseover":return Rr=bo(Rr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return ia.set(i,bo(ia.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,oa.set(i,bo(oa.get(i)||null,e,t,n,r,s)),!0}return!1}function fx(e){var t=hs(e.target);if(t!==null){var n=Ds(t);if(n!==null){if(t=n.tag,t===13){if(t=tx(n),t!==null){e.blockedOn=t,hx(e.priority,function(){ux(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 Ul(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_h(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);bh=r,n.target.dispatchEvent(r),bh=null}else return t=Va(n),t!==null&&kp(t),e.blockedOn=n,!1;t.shift()}return!0}function jg(e,t,n){Ul(e)&&n.delete(t)}function qT(){Th=!1,Pr!==null&&Ul(Pr)&&(Pr=null),Ar!==null&&Ul(Ar)&&(Ar=null),Rr!==null&&Ul(Rr)&&(Rr=null),ia.forEach(jg),oa.forEach(jg)}function So(e,t){e.blockedOn===t&&(e.blockedOn=null,Th||(Th=!0,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,qT)))}function aa(e){function t(s){return So(s,e)}if(0<ol.length){So(ol[0],e);for(var n=1;n<ol.length;n++){var r=ol[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Pr!==null&&So(Pr,e),Ar!==null&&So(Ar,e),Rr!==null&&So(Rr,e),ia.forEach(t),oa.forEach(t),n=0;n<mr.length;n++)r=mr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<mr.length&&(n=mr[0],n.blockedOn===null);)fx(n),n.blockedOn===null&&mr.shift()}var ki=er.ReactCurrentBatchConfig,yc=!0;function KT(e,t,n,r){var s=de,i=ki.transition;ki.transition=null;try{de=1,Ep(e,t,n,r)}finally{de=s,ki.transition=i}}function GT(e,t,n,r){var s=de,i=ki.transition;ki.transition=null;try{de=4,Ep(e,t,n,r)}finally{de=s,ki.transition=i}}function Ep(e,t,n,r){if(yc){var s=_h(e,t,n,r);if(s===null)yd(e,t,r,vc,n),Rg(e,r);else if(HT(s,e,t,n,r))r.stopPropagation();else if(Rg(e,r),t&4&&-1<WT.indexOf(e)){for(;s!==null;){var i=Va(s);if(i!==null&&cx(i),i=_h(e,t,n,r),i===null&&yd(e,t,r,vc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else yd(e,t,r,null,n)}}var vc=null;function _h(e,t,n,r){if(vc=null,e=xp(r),e=hs(e),e!==null)if(t=Ds(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tx(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 vc=e,null}
vendor: 10,401 bytes, line 37
37function px(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(LT()){case bp:return 1;case ix:return 4;case mc:case MT:return 16;case ox:return 536870912;default:return 16}default:return 16}}var Er=null,Cp=null,Vl=null;function mx(){if(Vl)return Vl;var e,t=Cp,n=t.length,r,s="value"in Er?Er.value:Er.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 Vl=s.slice(e,1<r?1-r:void 0)}function zl(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 al(){return!0}function Ng(){return!1}function It(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)?al:Ng,this.isPropagationStopped=Ng,this}return Ae(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=al)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=al)},persist:function(){},isPersistent:al}),t}var to={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tp=It(to),Ua=Ae({},to,{view:0,detail:0}),YT=It(Ua),ld,cd,ko,cu=Ae({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_p,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!==ko&&(ko&&e.type==="mousemove"?(ld=e.screenX-ko.screenX,cd=e.screenY-ko.screenY):cd=ld=0,ko=e),ld)},movementY:function(e){return"movementY"in e?e.movementY:cd}}),Og=It(cu),JT=Ae({},cu,{dataTransfer:0}),QT=It(JT),XT=Ae({},Ua,{relatedTarget:0}),ud=It(XT),ZT=Ae({},to,{animationName:0,elapsedTime:0,pseudoElement:0}),e_=It(ZT),t_=Ae({},to,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n_=It(t_),r_=Ae({},to,{data:0}),Ig=It(r_),s_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i_={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"},o_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function a_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=o_[e])?!!t[e]:!1}function _p(){return a_}var l_=Ae({},Ua,{key:function(e){if(e.key){var t=s_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?i_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_p,charCode:function(e){return e.type==="keypress"?zl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),c_=It(l_),u_=Ae({},cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lg=It(u_),d_=Ae({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_p}),h_=It(d_),f_=Ae({},to,{propertyName:0,elapsedTime:0,pseudoElement:0}),p_=It(f_),m_=Ae({},cu,{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}),g_=It(m_),y_=[9,13,27,32],Pp=Gn&&"CompositionEvent"in window,Uo=null;Gn&&"documentMode"in document&&(Uo=document.documentMode);var v_=Gn&&"TextEvent"in window&&!Uo,gx=Gn&&(!Pp||Uo&&8<Uo&&11>=Uo),Mg=" ",Dg=!1;function yx(e,t){switch(e){case"keyup":return y_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oi=!1;function w_(e,t){switch(e){case"compositionend":return vx(t);case"keypress":return t.which!==32?null:(Dg=!0,Mg);case"textInput":return e=t.data,e===Mg&&Dg?null:e;default:return null}}function x_(e,t){if(oi)return e==="compositionend"||!Pp&&yx(e,t)?(e=mx(),Vl=Cp=Er=null,oi=!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 gx&&t.locale!=="ko"?null:t.data;default:return null}}var b_={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 $g(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!b_[e.type]:t==="textarea"}function wx(e,t,n,r){Jw(r),t=wc(t,"onChange"),0<t.length&&(n=new Tp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vo=null,la=null;function S_(e){Rx(e,0)}function uu(e){var t=ci(e);if(zw(t))return e}function k_(e,t){if(e==="change")return t}var xx=!1;if(Gn){var dd;if(Gn){var hd="oninput"in document;if(!hd){var Fg=document.createElement("div");Fg.setAttribute("oninput","return;"),hd=typeof Fg.oninput=="function"}dd=hd}else dd=!1;xx=dd&&(!document.documentMode||9<document.documentMode)}function Bg(){Vo&&(Vo.detachEvent("onpropertychange",bx),la=Vo=null)}function bx(e){if(e.propertyName==="value"&&uu(la)){var t=[];wx(t,la,e,xp(e)),ex(S_,t)}}function E_(e,t,n){e==="focusin"?(Bg(),Vo=t,la=n,Vo.attachEvent("onpropertychange",bx)):e==="focusout"&&Bg()}function C_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return uu(la)}function T_(e,t){if(e==="click")return uu(t)}function __(e,t){if(e==="input"||e==="change")return uu(t)}function P_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pn=typeof Object.is=="function"?Object.is:P_;function ca(e,t){if(pn(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(!ch.call(t,s)||!pn(e[s],t[s]))return!1}return!0}function Ug(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vg(e,t){var n=Ug(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=Ug(n)}}function Sx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kx(){for(var e=window,t=hc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hc(e.document)}return t}function Ap(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 A_(e){var t=kx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sx(n.ownerDocument.documentElement,n)){if(r!==null&&Ap(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=Vg(n,i);var o=Vg(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 R_=Gn&&"documentMode"in document&&11>=document.documentMode,ai=null,Ph=null,zo=null,Ah=!1;function zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ah||ai==null||ai!==hc(r)||(r=ai,"selectionStart"in r&&Ap(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,088 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),zo&&ca(zo,r)||(zo=r,r=wc(Ph,"onSelect"),0<r.length&&(t=new Tp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ai)))}function ll(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var li={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionend:ll("Transition","TransitionEnd")},fd={},Ex={};Gn&&(Ex=document.createElement("div").style,"AnimationEvent"in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),"TransitionEvent"in window||delete li.transitionend.transition);function du(e){if(fd[e])return fd[e];if(!li[e])return e;var t=li[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ex)return fd[e]=t[n];return e}var Cx=du("animationend"),Tx=du("animationiteration"),_x=du("animationstart"),Px=du("transitionend"),Ax=new Map,Wg="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 Kr(e,t){Ax.set(e,t),Ms(t,[e])}for(var pd=0;pd<Wg.length;pd++){var md=Wg[pd],j_=md.toLowerCase(),N_=md[0].toUpperCase()+md.slice(1);Kr(j_,"on"+N_)}Kr(Cx,"onAnimationEnd");Kr(Tx,"onAnimationIteration");Kr(_x,"onAnimationStart");Kr("dblclick","onDoubleClick");Kr("focusin","onFocus");Kr("focusout","onBlur");Kr(Px,"onTransitionEnd");$i("onMouseEnter",["mouseout","mouseover"]);$i("onMouseLeave",["mouseout","mouseover"]);$i("onPointerEnter",["pointerout","pointerover"]);$i("onPointerLeave",["pointerout","pointerover"]);Ms("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ms("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ms("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ms("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ms("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ms("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Io="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(" "),O_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Io));function Hg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,jT(r,t,void 0,e),e.currentTarget=null}function Rx(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,c=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;Hg(s,a,c),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;Hg(s,a,c),i=l}}}if(pc)throw e=Eh,pc=!1,Eh=null,e}function ve(e,t){var n=t[Ih];n===void 0&&(n=t[Ih]=new Set);var r=e+"__bubble";n.has(r)||(jx(t,e,2,!1),n.add(r))}function gd(e,t,n){var r=0;t&&(r|=4),jx(n,e,r,t)}var cl="_reactListening"+Math.random().toString(36).slice(2);function ua(e){if(!e[cl]){e[cl]=!0,$w.forEach(function(n){n!=="selectionchange"&&(O_.has(n)||gd(n,!1,e),gd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cl]||(t[cl]=!0,gd("selectionchange",!1,t))}}function jx(e,t,n,r){switch(px(t)){case 1:var s=KT;break;case 4:s=GT;break;
vendor: 4,364 bytes, line 37
37default:s=Ep}n=s.bind(null,t,n,e),s=void 0,!kh||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)}function yd(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=hs(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}ex(function(){var c=i,u=xp(n),d=[];e:{var f=Ax.get(e);if(f!==void 0){var p=Tp,w=e;switch(e){case"keypress":if(zl(n)===0)break e;case"keydown":case"keyup":p=c_;break;case"focusin":w="focus",p=ud;break;case"focusout":w="blur",p=ud;break;case"beforeblur":case"afterblur":p=ud;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Og;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=QT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=h_;break;case Cx:case Tx:case _x:p=e_;break;case Px:p=p_;break;case"scroll":p=YT;break;case"wheel":p=g_;break;case"copy":case"cut":case"paste":p=n_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Lg}var m=(t&4)!==0,b=!m&&e==="scroll",y=m?f!==null?f+"Capture":null:f;m=[];for(var g=c,v;g!==null;){v=g;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,y!==null&&(S=sa(g,y),S!=null&&m.push(da(g,S,v)))),b)break;g=g.return}0<m.length&&(f=new p(f,w,null,n,u),d.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==bh&&(w=n.relatedTarget||n.fromElement)&&(hs(w)||w[Yn]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=c,w=w?hs(w):null,w!==null&&(b=Ds(w),w!==b||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=c),p!==w)){if(m=Og,S="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=Lg,S="onPointerLeave",y="onPointerEnter",g="pointer"),b=p==null?f:ci(p),v=w==null?f:ci(w),f=new m(S,g+"leave",p,n,u),f.target=b,f.relatedTarget=v,S=null,hs(u)===c&&(m=new m(y,g+"enter",w,n,u),m.target=v,m.relatedTarget=b,S=m),b=S,p&&w)t:{for(m=p,y=w,g=0,v=m;v;v=zs(v))g++;for(v=0,S=y;S;S=zs(S))v++;for(;0<g-v;)m=zs(m),g--;for(;0<v-g;)y=zs(y),v--;for(;g--;){if(m===y||y!==null&&m===y.alternate)break t;m=zs(m),y=zs(y)}m=null}else m=null;p!==null&&qg(d,f,p,m,!1),w!==null&&b!==null&&qg(d,b,w,m,!0)}}e:{if(f=c?ci(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var k=k_;else if($g(f))if(xx)k=__;else{k=C_;var E=E_}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=T_);if(k&&(k=k(e,c))){wx(d,k,n,u);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&gh(f,"number",f.value)}switch(E=c?ci(c):window,e){case"focusin":($g(E)||E.contentEditable==="true")&&(ai=E,Ph=c,zo=null);break;case"focusout":zo=Ph=ai=null;break;case"mousedown":Ah=!0;break;case"contextmenu":case"mouseup":case"dragend":Ah=!1,zg(d,n,u);break;case"selectionchange":if(R_)break;case"keydown":case"keyup":zg(d,n,u)}var C;if(Pp)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else oi?yx(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(gx&&n.locale!=="ko"&&(oi||T!=="onCompositionStart"?T==="onCompositionEnd"&&oi&&(C=mx()):(Er=u,Cp="value"in Er?Er.value:Er.textContent,oi=!0)),E=wc(c,T),0<E.length&&(T=new Ig(T,e,null,n,u),d.push({event:T,listeners:E}),C?T.data=C:(C=vx(n),C!==null&&(T.data=C)))),(C=v_?w_(e,n):x_(e,n))&&(c=wc(c,"onBeforeInput"),0<c.length&&(u=new Ig("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=C))}Rx(d,t)})}
vendor: 4,257 bytes, lines 37-38
37function da(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wc(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=sa(e,n),i!=null&&r.unshift(da(e,i,s)),i=sa(e,t),i!=null&&r.push(da(e,i,s))),e=e.return}return r}function zs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qg(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,s?(l=sa(n,i),l!=null&&o.unshift(da(n,l,a))):s||(l=sa(n,i),l!=null&&o.push(da(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var I_=/\r\n?/g,L_=/\u0000|\uFFFD/g;function Kg(e){return(typeof e=="string"?e:""+e).replace(I_,` 38`).replace(L_,"")}function ul(e,t,n){if(t=Kg(t),Kg(e)!==t&&n)throw Error(O(425))}function xc(){}var Rh=null,jh=null;function Nh(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,M_=typeof clearTimeout=="function"?clearTimeout:void 0,Gg=typeof Promise=="function"?Promise:void 0,D_=typeof queueMicrotask=="function"?queueMicrotask:typeof Gg<"u"?function(e){return Gg.resolve(null).then(e).catch($_)}:Oh;function $_(e){setTimeout(function(){throw e})}function vd(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),aa(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);aa(t)}function jr(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 Yg(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 no=Math.random().toString(36).slice(2),Pn="__reactFiber$"+no,ha="__reactProps$"+no,Yn="__reactContainer$"+no,Ih="__reactEvents$"+no,F_="__reactListeners$"+no,B_="__reactHandles$"+no;function hs(e){var t=e[Pn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yn]||n[Pn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Yg(e);e!==null;){if(n=e[Pn])return n;e=Yg(e)}return t}e=n,n=e.parentNode}return null}function Va(e){return e=e[Pn]||e[Yn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ci(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function hu(e){return e[ha]||null}var Lh=[],ui=-1;function Gr(e){return{current:e}}function be(e){0>ui||(e.current=Lh[ui],Lh[ui]=null,ui--)}function me(e,t){ui++,Lh[ui]=e.current,e.current=t}var Fr={},lt=Gr(Fr),bt=Gr(!1),Ps=Fr;function Fi(e,t){var n=e.type.contextTypes;if(!n)return Fr;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 St(e){return e=e.childContextTypes,e!=null}function bc(){be(bt),be(lt)}function Jg(e,t,n){if(lt.current!==Fr)throw Error(O(168));me(lt,t),me(bt,n)}function Nx(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(O(108,ET(e)||"Unknown",s));return Ae({},n,r)}function Sc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fr,Ps=lt.current,me(lt,e),me(bt,bt.current),!0}function Qg(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Nx(e,t,Ps),r.__reactInternalMemoizedMergedChildContext=e,be(bt),be(lt),me(lt,e)):be(bt),me(bt,n)}var zn=null,fu=!1,wd=!1;function Ox(e){zn===null?zn=[e]:zn.push(e)}function U_(e){fu=!0,Ox(e)}function Yr(){if(!wd&&zn!==null){wd=!0;var e=0,t=de;try{var n=zn;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}zn=null,fu=!1}catch(s){throw zn!==null&&(zn=zn.slice(e+1)),sx(bp,Yr),s}finally{de=t,wd=!1}}return null}var di=[],hi=0,kc=null,Ec=0,Ft=[],Bt=0,As=null,Hn=1,qn="";function ls(e,t){di[hi++]=Ec,di[hi++]=kc,kc=e,Ec=t}
vendor: 25,645 bytes, lines 38-40
38function Ix(e,t,n){Ft[Bt++]=Hn,Ft[Bt++]=qn,Ft[Bt++]=As,As=e;var r=Hn;e=qn;var s=32-dn(r)-1;r&=~(1<<s),n+=1;var i=32-dn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Hn=1<<32-dn(t)+s|n<<s|r,qn=i+e}else Hn=1<<i|n<<s|r,qn=e}function Rp(e){e.return!==null&&(ls(e,1),Ix(e,1,0))}function jp(e){for(;e===kc;)kc=di[--hi],di[hi]=null,Ec=di[--hi],di[hi]=null;for(;e===As;)As=Ft[--Bt],Ft[Bt]=null,qn=Ft[--Bt],Ft[Bt]=null,Hn=Ft[--Bt],Ft[Bt]=null}var Rt=null,At=null,Ee=!1,cn=null;function Lx(e,t){var n=Ut(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 Xg(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,Rt=e,At=jr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,At=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=As!==null?{id:Hn,overflow:qn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ut(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,At=null,!0):!1;default:return!1}}function Mh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Dh(e){if(Ee){var t=At;if(t){var n=t;if(!Xg(e,t)){if(Mh(e))throw Error(O(418));t=jr(n.nextSibling);var r=Rt;t&&Xg(e,t)?Lx(r,n):(e.flags=e.flags&-4097|2,Ee=!1,Rt=e)}}else{if(Mh(e))throw Error(O(418));e.flags=e.flags&-4097|2,Ee=!1,Rt=e}}}function Zg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function dl(e){if(e!==Rt)return!1;if(!Ee)return Zg(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Nh(e.type,e.memoizedProps)),t&&(t=At)){if(Mh(e))throw Mx(),Error(O(418));for(;t;)Lx(e,t),t=jr(t.nextSibling)}if(Zg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){At=jr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}At=null}}else At=Rt?jr(e.stateNode.nextSibling):null;return!0}function Mx(){for(var e=At;e;)e=jr(e.nextSibling)}function Bi(){At=Rt=null,Ee=!1}function Np(e){cn===null?cn=[e]:cn.push(e)}var V_=er.ReactCurrentBatchConfig;function Eo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(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(O(284));if(!n._owner)throw Error(O(290,e))}return e}function hl(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ey(e){var t=e._init;return t(e._payload)}function Dx(e){function t(y,g){if(e){var v=y.deletions;v===null?(y.deletions=[g],y.flags|=16):v.push(g)}}function n(y,g){if(!e)return null;for(;g!==null;)t(y,g),g=g.sibling;return null}function r(y,g){for(y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function s(y,g){return y=Lr(y,g),y.index=0,y.sibling=null,y}function i(y,g,v){return y.index=v,e?(v=y.alternate,v!==null?(v=v.index,v<g?(y.flags|=2,g):v):(y.flags|=2,g)):(y.flags|=1048576,g)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,g,v,S){return g===null||g.tag!==6?(g=Td(v,y.mode,S),g.return=y,g):(g=s(g,v),g.return=y,g)}function l(y,g,v,S){var k=v.type;return k===ii?u(y,g,v.props.children,S,v.key):g!==null&&(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===fr&&ey(k)===g.type)?(S=s(g,v.props),S.ref=Eo(y,g,v),S.return=y,S):(S=Jl(v.type,v.key,v.props,null,y.mode,S),S.ref=Eo(y,g,v),S.return=y,S)}function c(y,g,v,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==v.containerInfo||g.stateNode.implementation!==v.implementation?(g=_d(v,y.mode,S),g.return=y,g):(g=s(g,v.children||[]),g.return=y,g)}function u(y,g,v,S,k){return g===null||g.tag!==7?(g=Cs(v,y.mode,S,k),g.return=y,g):(g=s(g,v),g.return=y,g)}function d(y,g,v){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Td(""+g,y.mode,v),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case tl:return v=Jl(g.type,g.key,g.props,null,y.mode,v),v.ref=Eo(y,null,g),v.return=y,v;case si:return g=_d(g,y.mode,v),g.return=y,g;case fr:var S=g._init;return d(y,S(g._payload),v)}if(No(g)||wo(g))return g=Cs(g,y.mode,v,null),g.return=y,g;hl(y,g)}return null}function f(y,g,v,S){var k=g!==null?g.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return k!==null?null:a(y,g,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case tl:return v.key===k?l(y,g,v,S):null;case si:return v.key===k?c(y,g,v,S):null;case fr:return k=v._init,f(y,g,k(v._payload),S)}if(No(v)||wo(v))return k!==null?null:u(y,g,v,S,null);hl(y,v)}return null}function p(y,g,v,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(v)||null,a(g,y,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case tl:return y=y.get(S.key===null?v:S.key)||null,l(g,y,S,k);case si:return y=y.get(S.key===null?v:S.key)||null,c(g,y,S,k);case fr:var E=S._init;return p(y,g,v,E(S._payload),k)}if(No(S)||wo(S))return y=y.get(v)||null,u(g,y,S,k,null);hl(g,S)}return null}function w(y,g,v,S){for(var k=null,E=null,C=g,T=g=0,A=null;C!==null&&T<v.length;T++){C.index>T?(A=C,C=null):A=C.sibling;var P=f(y,C,v[T],S);if(P===null){C===null&&(C=A);break}e&&C&&P.alternate===null&&t(y,C),g=i(P,g,T),E===null?k=P:E.sibling=P,E=P,C=A}if(T===v.length)return n(y,C),Ee&&ls(y,T),k;if(C===null){for(;T<v.length;T++)C=d(y,v[T],S),C!==null&&(g=i(C,g,T),E===null?k=C:E.sibling=C,E=C);return Ee&&ls(y,T),k}for(C=r(y,C);T<v.length;T++)A=p(C,y,T,v[T],S),A!==null&&(e&&A.alternate!==null&&C.delete(A.key===null?T:A.key),g=i(A,g,T),E===null?k=A:E.sibling=A,E=A);return e&&C.forEach(function(M){return t(y,M)}),Ee&&ls(y,T),k}function m(y,g,v,S){var k=wo(v);if(typeof k!="function")throw Error(O(150));if(v=k.call(v),v==null)throw Error(O(151));for(var E=k=null,C=g,T=g=0,A=null,P=v.next();C!==null&&!P.done;T++,P=v.next()){C.index>T?(A=C,C=null):A=C.sibling;var M=f(y,C,P.value,S);if(M===null){C===null&&(C=A);break}e&&C&&M.alternate===null&&t(y,C),g=i(M,g,T),E===null?k=M:E.sibling=M,E=M,C=A}if(P.done)return n(y,C),Ee&&ls(y,T),k;if(C===null){for(;!P.done;T++,P=v.next())P=d(y,P.value,S),P!==null&&(g=i(P,g,T),E===null?k=P:E.sibling=P,E=P);return Ee&&ls(y,T),k}for(C=r(y,C);!P.done;T++,P=v.next())P=p(C,y,T,P.value,S),P!==null&&(e&&P.alternate!==null&&C.delete(P.key===null?T:P.key),g=i(P,g,T),E===null?k=P:E.sibling=P,E=P);return e&&C.forEach(function(I){return t(y,I)}),Ee&&ls(y,T),k}function b(y,g,v,S){if(typeof v=="object"&&v!==null&&v.type===ii&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case tl:e:{for(var k=v.key,E=g;E!==null;){if(E.key===k){if(k=v.type,k===ii){if(E.tag===7){n(y,E.sibling),g=s(E,v.props.children),g.return=y,y=g;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===fr&&ey(k)===E.type){n(y,E.sibling),g=s(E,v.props),g.ref=Eo(y,E,v),g.return=y,y=g;break e}n(y,E);break}else t(y,E);E=E.sibling}v.type===ii?(g=Cs(v.props.children,y.mode,S,v.key),g.return=y,y=g):(S=Jl(v.type,v.key,v.props,null,y.mode,S),S.ref=Eo(y,g,v),S.return=y,y=S)}return o(y);case si:e:{for(E=v.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(y,g.sibling),g=s(g,v.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=_d(v,y.mode,S),g.return=y,y=g}return o(y);case fr:return E=v._init,b(y,g,E(v._payload),S)}if(No(v))return w(y,g,v,S);if(wo(v))return m(y,g,v,S);hl(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(y,g.sibling),g=s(g,v),g.return=y,y=g):(n(y,g),g=Td(v,y.mode,S),g.return=y,y=g),o(y)):n(y,g)}return b}var Ui=Dx(!0),$x=Dx(!1),Cc=Gr(null),Tc=null,fi=null,Op=null;function Ip(){Op=fi=Tc=null}function Lp(e){var t=Cc.current;be(Cc),e._currentValue=t}function $h(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 Ei(e,t){Tc=e,Op=fi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xt=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(Op!==e)if(e={context:e,memoizedValue:t,next:null},fi===null){if(Tc===null)throw Error(O(308));fi=e,Tc.dependencies={lanes:0,firstContext:e}}else fi=fi.next=e;return t}var fs=null;function Mp(e){fs===null?fs=[e]:fs.push(e)}function Fx(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Mp(t)):(n.next=s.next,s.next=n),t.interleaved=n,Jn(e,r)}function Jn(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 pr=!1;function Dp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bx(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 Kn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ie&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Jn(e,n)}return s=r.interleaved,s===null?(t.next=t,Mp(r)):(t.next=s.next,s.next=t),r.interleaved=t,Jn(e,n)}function Wl(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,Sp(e,n)}}function ty(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 _c(e,t,n,r){var s=e.updateQueue;pr=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?i=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,u=c=l=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,m=a;switch(f=t,p=n,m.tag){case 1:if(w=m.payload,typeof w=="function"){d=w.call(p,d,f);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=m.payload,f=typeof w=="function"?w.call(p,d,f):w,f==null)break e;d=Ae({},d,f);break e;case 2:pr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,o|=f;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;f=a,a=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(u===null&&(l=d),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=u,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);js|=o,e.lanes=o,e.memoizedState=d}}function ny(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(O(191,s));s.call(r)}}}var za={},jn=Gr(za),fa=Gr(za),pa=Gr(za);function ps(e){if(e===za)throw Error(O(174));return e}function $p(e,t){switch(me(pa,t),me(fa,e),me(jn,za),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vh(t,e)}be(jn),me(jn,t)}function Vi(){be(jn),be(fa),be(pa)}function Ux(e){ps(pa.current);var t=ps(jn.current),n=vh(t,e.type);t!==n&&(me(fa,e),me(jn,n))}function Fp(e){fa.current===e&&(be(jn),be(fa))}var _e=Gr(0);function Pc(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 xd=[];function Bp(){for(var e=0;e<xd.length;e++)xd[e]._workInProgressVersionPrimary=null;xd.length=0}var Hl=er.ReactCurrentDispatcher,bd=er.ReactCurrentBatchConfig,Rs=0,Pe=null,Ve=null,He=null,Ac=!1,Wo=!1,ma=0,z_=0;function st(){throw Error(O(321))}function Up(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pn(e[n],t[n]))return!1;return!0}function Vp(e,t,n,r,s,i){if(Rs=i,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Hl.current=e===null||e.memoizedState===null?K_:G_,e=n(r,s),Wo){i=0;do{if(Wo=!1,ma=0,25<=i)throw Error(O(301));i+=1,He=Ve=null,t.updateQueue=null,Hl.current=Y_,e=n(r,s)}while(Wo)}if(Hl.current=Rc,t=Ve!==null&&Ve.next!==null,Rs=0,He=Ve=Pe=null,Ac=!1,t)throw Error(O(300));return e}function zp(){var e=ma!==0;return ma=0,e}function xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?Pe.memoizedState=He=e:He=He.next=e,He}function qt(){if(Ve===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=He===null?Pe.memoizedState:He.next;if(t!==null)He=t,Ve=e;else{if(e===null)throw Error(O(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},He===null?Pe.memoizedState=He=e:He=He.next=e}return He}function ga(e,t){return typeof t=="function"?t(e):t}function Sd(e){var t=qt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Ve,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,c=i;do{var u=c.lane;if((Rs&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,Pe.lanes|=u,js|=u}c=c.next}while(c!==null&&c!==i);l===null?o=r:l.next=a,pn(r,t.memoizedState)||(xt=!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,Pe.lanes|=i,js|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function kd(e){var t=qt(),n=t.queue;if(n===null)throw Error(O(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);pn(i,t.memoizedState)||(xt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Vx(){}function zx(e,t){var n=Pe,r=qt(),s=t(),i=!pn(r.memoizedState,s);if(i&&(r.memoizedState=s,xt=!0),r=r.queue,Wp(qx.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||He!==null&&He.memoizedState.tag&1){if(n.flags|=2048,ya(9,Hx.bind(null,n,r,s,t),void 0,null),Ke===null)throw Error(O(349));Rs&30||Wx(n,t,s)}return s}function Wx(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hx(e,t,n,r){t.value=n,t.getSnapshot=r,Kx(t)&&Gx(e)}function qx(e,t,n){return n(function(){Kx(t)&&Gx(e)})}function Kx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pn(e,n)}catch{return!0}}function Gx(e){var t=Jn(e,1);t!==null&&hn(t,e,1,-1)}function ry(e){var t=xn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t.queue=e,e=e.dispatch=q_.bind(null,Pe,e),[t.memoizedState,e]}function ya(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.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 Yx(){return qt().memoizedState}function ql(e,t,n,r){var s=xn();Pe.flags|=e,s.memoizedState=ya(1|t,n,void 0,r===void 0?null:r)}function pu(e,t,n,r){var s=qt();r=r===void 0?null:r;var i=void 0;if(Ve!==null){var o=Ve.memoizedState;if(i=o.destroy,r!==null&&Up(r,o.deps)){s.memoizedState=ya(t,n,i,r);return}}Pe.flags|=e,s.memoizedState=ya(1|t,n,i,r)}function sy(e,t){return ql(8390656,8,e,t)}function Wp(e,t){return pu(2048,8,e,t)}function Jx(e,t){return pu(4,2,e,t)}function Qx(e,t){return pu(4,4,e,t)}function Xx(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 Zx(e,t,n){return n=n!=null?n.concat([e]):null,pu(4,4,Xx.bind(null,t,e),n)}function Hp(){}function eb(e,t){var n=qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Up(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tb(e,t){var n=qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Up(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nb(e,t,n){return Rs&21?(pn(n,t)||(n=ax(),Pe.lanes|=n,js|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xt=!0),e.memoizedState=n)}function W_(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=bd.transition;bd.transition={};try{e(!1),t()}finally{de=n,bd.transition=r}}function rb(){return qt().memoizedState}function H_(e,t,n){var r=Ir(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sb(e))ib(t,n);else if(n=Fx(e,t,n,r),n!==null){var s=pt();hn(n,e,r,s),ob(n,t,r)}}function q_(e,t,n){var r=Ir(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sb(e))ib(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,pn(a,o)){var l=t.interleaved;l===null?(s.next=s,Mp(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=Fx(e,t,s,r),n!==null&&(s=pt(),hn(n,e,r,s),ob(n,t,r))}}function sb(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function ib(e,t){Wo=Ac=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ob(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sp(e,n)}}var Rc={readContext:Ht,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},K_={readContext:Ht,useCallback:function(e,t){return xn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:sy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ql(4194308,4,Xx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ql(4194308,4,e,t)},useInsertionEffect:function(e,t){return ql(4,2,e,t)},useMemo:function(e,t){var n=xn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xn();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=H_.bind(null,Pe,e),[r.memoizedState,e]},useRef:function(e){var t=xn();return e={current:e},t.memoizedState=e},useState:ry,useDebugValue:Hp,useDeferredValue:function(e){return xn().memoizedState=e},useTransition:function(){var e=ry(!1),t=e[0];return e=W_.bind(null,e[1]),xn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pe,s=xn();if(Ee){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ke===null)throw Error(O(349));Rs&30||Wx(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,sy(qx.bind(null,r,i,e),[e]),r.flags|=2048,ya(9,Hx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=xn(),t=Ke.identifierPrefix;if(Ee){var n=qn,r=Hn;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ma++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=z_++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},G_={readContext:Ht,useCallback:eb,useContext:Ht,useEffect:Wp,useImperativeHandle:Zx,useInsertionEffect:Jx,useLayoutEffect:Qx,useMemo:tb,useReducer:Sd,useRef:Yx,useState:function(){return Sd(ga)},useDebugValue:Hp,useDeferredValue:function(e){var t=qt();return nb(t,Ve.memoizedState,e)},useTransition:function(){var e=Sd(ga)[0],t=qt().memoizedState;return[e,t]},useMutableSource:Vx,useSyncExternalStore:zx,useId:rb,unstable_isNewReconciler:!1},Y_={readContext:Ht,useCallback:eb,useContext:Ht,useEffect:Wp,useImperativeHandle:Zx,useInsertionEffect:Jx,useLayoutEffect:Qx,useMemo:tb,useReducer:kd,useRef:Yx,useState:function(){return kd(ga)},useDebugValue:Hp,useDeferredValue:function(e){var t=qt();return Ve===null?t.memoizedState=e:nb(t,Ve.memoizedState,e)},useTransition:function(){var e=kd(ga)[0],t=qt().memoizedState;return[e,t]},useMutableSource:Vx,useSyncExternalStore:zx,useId:rb,unstable_isNewReconciler:!1};function nn(e,t){if(e&&e.defaultProps){t=Ae({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Fh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var mu={isMounted:function(e){return(e=e._reactInternals)?Ds(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pt(),s=Ir(e),i=Kn(r,s);i.payload=t,n!=null&&(i.callback=n),t=Nr(e,i,s),t!==null&&(hn(t,e,s,r),Wl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pt(),s=Ir(e),i=Kn(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Nr(e,i,s),t!==null&&(hn(t,e,s,r),Wl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pt(),r=Ir(e),s=Kn(n,r);s.tag=2,t!=null&&(s.callback=t),t=Nr(e,s,r),t!==null&&(hn(t,e,r,n),Wl(t,e,r))}};function iy(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?!ca(n,r)||!ca(s,i):!0}function ab(e,t,n){var r=!1,s=Fr,i=t.contextType;return typeof i=="object"&&i!==null?i=Ht(i):(s=St(t)?Ps:lt.current,r=t.contextTypes,i=(r=r!=null)?Fi(e,s):Fr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=mu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function oy(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&&mu.enqueueReplaceState(t,t.state,null)}function Bh(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Dp(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Ht(i):(i=St(t)?Ps:lt.current,s.context=Fi(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Fh(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&&mu.enqueueReplaceState(s,s.state,null),_c(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function zi(e,t){try{var n="",r=t;do n+=kT(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 Ed(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Uh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var J_=typeof WeakMap=="function"?WeakMap:Map;function lb(e,t,n){n=Kn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Nc||(Nc=!0,Qh=r),Uh(e,t)},n}function cb(e,t,n){n=Kn(-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(){Uh(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Uh(e,t),typeof r!="function"&&(Or===null?Or=new Set([this]):Or.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ay(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new J_;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=uP.bind(null,e,t,n),t.then(e,e))}function ly(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 cy(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=Kn(-1,1),t.tag=2,Nr(n,t,1))),n.lanes|=1),e)}var Q_=er.ReactCurrentOwner,xt=!1;function ut(e,t,n,r){t.child=e===null?$x(t,null,n,r):Ui(t,e.child,n,r)}function uy(e,t,n,r,s){n=n.render;var i=t.ref;return Ei(t,s),r=Vp(e,t,n,r,i,s),n=zp(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Qn(e,t,s)):(Ee&&n&&Rp(t),t.flags|=1,ut(e,t,r,s),t.child)}function dy(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Zp(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ub(e,t,i,r,s)):(e=Jl(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:ca,n(o,r)&&e.ref===t.ref)return Qn(e,t,s)}return t.flags|=1,e=Lr(i,r),e.ref=t.ref,e.return=t,t.child=e}function ub(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(ca(i,r)&&e.ref===t.ref)if(xt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(xt=!0);else return t.lanes=e.lanes,Qn(e,t,s)}return Vh(e,t,n,r,s)}function db(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},me(mi,Ct),Ct|=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,me(mi,Ct),Ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,me(mi,Ct),Ct|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,me(mi,Ct),Ct|=r;return ut(e,t,s,n),t.child}function hb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vh(e,t,n,r,s){var i=St(n)?Ps:lt.current;return i=Fi(t,i),Ei(t,s),n=Vp(e,t,n,r,i,s),r=zp(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Qn(e,t,s)):(Ee&&r&&Rp(t),t.flags|=1,ut(e,t,n,s),t.child)}function hy(e,t,n,r,s){if(St(n)){var i=!0;Sc(t)}else i=!1;if(Ei(t,s),t.stateNode===null)Kl(e,t),ab(t,n,r),Bh(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ht(c):(c=St(n)?Ps:lt.current,c=Fi(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&oy(t,o,r,c),pr=!1;var f=t.memoizedState;o.state=f,_c(t,r,o,s),l=t.memoizedState,a!==r||f!==l||bt.current||pr?(typeof u=="function"&&(Fh(t,n,u,r),l=t.memoizedState),(a=pr||iy(t,n,a,r,f,l,c))?(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=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Bx(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:nn(t.type,a),o.props=c,d=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ht(l):(l=St(n)?Ps:lt.current,l=Fi(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==l)&&oy(t,o,r,l),pr=!1,f=t.memoizedState,o.state=f,_c(t,r,o,s);var w=t.memoizedState;a!==d||f!==w||bt.current||pr?(typeof p=="function"&&(Fh(t,n,p,r),w=t.memoizedState),(c=pr||iy(t,n,c,r,f,w,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return zh(e,t,n,r,i,s)}function zh(e,t,n,r,s,i){hb(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Qg(t,n,!1),Qn(e,t,i);r=t.stateNode,Q_.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ui(t,e.child,null,i),t.child=Ui(t,null,a,i)):ut(e,t,a,i),t.memoizedState=r.state,s&&Qg(t,n,!0),t.child}function fb(e){var t=e.stateNode;t.pendingContext?Jg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Jg(e,t.context,!1),$p(e,t.containerInfo)}function fy(e,t,n,r,s){return Bi(),Np(s),t.flags|=256,ut(e,t,n,r),t.child}var Wh={dehydrated:null,treeContext:null,retryLane:0};function Hh(e){return{baseLanes:e,cachePool:null,transitions:null}}function pb(e,t,n){var r=t.pendingProps,s=_e.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),me(_e,s&1),e===null)return Dh(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=vu(o,r,0,null),e=Cs(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Hh(n),t.memoizedState=Wh,e):qp(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return X_(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=Lr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Lr(a,i):(i=Cs(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?Hh(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Wh,r}return i=e.child,e=i.sibling,r=Lr(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 qp(e,t){return t=vu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fl(e,t,n,r){return r!==null&&Np(r),Ui(t,e.child,null,n),e=qp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function X_(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Ed(Error(O(422))),fl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=vu({mode:"visible",children:r.children},s,0,null),i=Cs(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ui(t,e.child,null,o),t.child.memoizedState=Hh(o),t.memoizedState=Wh,i);if(!(t.mode&1))return fl(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(O(419)),r=Ed(i,r,void 0),fl(e,t,o,r)}if(a=(o&e.childLanes)!==0,xt||a){if(r=Ke,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,Jn(e,s),hn(r,e,s,-1))}return Xp(),r=Ed(Error(O(421))),fl(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=dP.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,At=jr(s.nextSibling),Rt=t,Ee=!0,cn=null,e!==null&&(Ft[Bt++]=Hn,Ft[Bt++]=qn,Ft[Bt++]=As,Hn=e.id,qn=e.overflow,As=t),t=qp(t,r.children),t.flags|=4096,t)}function py(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$h(e.return,t,n)}function Cd(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 mb(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(ut(e,t,r.children,n),r=_e.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&&py(e,n,t);else if(e.tag===19)py(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(me(_e,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&&Pc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Cd(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&&Pc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Cd(t,!0,n,null,i);break;case"together":Cd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Kl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),js|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));
vendor: 4,746 bytes, line 40
40if(t.child!==null){for(e=t.child,n=Lr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Lr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Z_(e,t,n){switch(t.tag){case 3:fb(t),Bi();break;case 5:Ux(t);break;case 1:St(t.type)&&Sc(t);break;case 4:$p(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;me(Cc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(_e,_e.current&1),t.flags|=128,null):n&t.child.childLanes?pb(e,t,n):(me(_e,_e.current&1),e=Qn(e,t,n),e!==null?e.sibling:null);me(_e,_e.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mb(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),me(_e,_e.current),r)break;return null;case 22:case 23:return t.lanes=0,db(e,t,n)}return Qn(e,t,n)}var gb,qh,yb,vb;gb=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}};qh=function(){};yb=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ps(jn.current);var i=null;switch(n){case"input":s=ph(e,s),r=ph(e,r),i=[];break;case"select":s=Ae({},s,{value:void 0}),r=Ae({},r,{value:void 0}),i=[];break;case"textarea":s=yh(e,s),r=yh(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=xc)}wh(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(na.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="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(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(na.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ve("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};vb=function(e,t,n,r){n!==r&&(t.flags|=4)};function Co(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function it(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 eP(e,t,n){var r=t.pendingProps;switch(jp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(t),null;case 1:return St(t.type)&&bc(),it(t),null;case 3:return r=t.stateNode,Vi(),be(bt),be(lt),Bp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,cn!==null&&(ef(cn),cn=null))),qh(e,t),it(t),null;case 5:Fp(t);var s=ps(pa.current);if(n=t.type,e!==null&&t.stateNode!=null)yb(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return it(t),null}if(e=ps(jn.current),dl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Pn]=t,r[ha]=i,e=(t.mode&1)!==0,n){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(s=0;s<Io.length;s++)ve(Io[s],r);break;case"source":ve("error",r);break;case"img":case"image":case"link":ve("error",r),ve("load",r);break;case"details":ve("toggle",r);break;case"input":kg(r,i),ve("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ve("invalid",r);break;case"textarea":Cg(r,i),ve("invalid",r)}wh(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 28,896 bytes, line 40
40o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&ul(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&ul(r.textContent,a,e),s=["children",""+a]):na.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ve("scroll",r)}switch(n){case"input":nl(r),Eg(r,i,!0);break;case"textarea":nl(r),Tg(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=xc)}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=qw(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[Pn]=t,e[ha]=r,gb(e,t,!1,!1),t.stateNode=e;e:{switch(o=xh(n,r),n){case"dialog":ve("cancel",e),ve("close",e),s=r;break;case"iframe":case"object":case"embed":ve("load",e),s=r;break;case"video":case"audio":for(s=0;s<Io.length;s++)ve(Io[s],e);s=r;break;case"source":ve("error",e),s=r;break;case"img":case"image":case"link":ve("error",e),ve("load",e),s=r;break;case"details":ve("toggle",e),s=r;break;case"input":kg(e,r),s=ph(e,r),ve("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Ae({},r,{value:void 0}),ve("invalid",e);break;case"textarea":Cg(e,r),s=yh(e,r),ve("invalid",e);break;default:s=r}wh(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Yw(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Kw(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ra(e,l):typeof l=="number"&&ra(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(na.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ve("scroll",e):l!=null&&gp(e,i,l,o))}switch(n){case"input":nl(e),Eg(e,r,!1);break;case"textarea":nl(e),Tg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$r(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?xi(e,!!r.multiple,i,!1):r.defaultValue!=null&&xi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=xc)}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 it(t),null;case 6:if(e&&t.stateNode!=null)vb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=ps(pa.current),ps(jn.current),dl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Pn]=t,(i=r.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:ul(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ul(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Pn]=t,t.stateNode=r}return it(t),null;case 13:if(be(_e),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&At!==null&&t.mode&1&&!(t.flags&128))Mx(),Bi(),t.flags|=98560,i=!1;else if(i=dl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(O(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(O(317));i[Pn]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;it(t),i=!1}else cn!==null&&(ef(cn),cn=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||_e.current&1?ze===0&&(ze=3):Xp())),t.updateQueue!==null&&(t.flags|=4),it(t),null);case 4:return Vi(),qh(e,t),e===null&&ua(t.stateNode.containerInfo),it(t),null;case 10:return Lp(t.type._context),it(t),null;case 17:return St(t.type)&&bc(),it(t),null;case 19:if(be(_e),i=t.memoizedState,i===null)return it(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Co(i,!1);else{if(ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Pc(e),o!==null){for(t.flags|=128,Co(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 me(_e,_e.current&1|2),t.child}e=e.sibling}i.tail!==null&&Le()>Wi&&(t.flags|=128,r=!0,Co(i,!1),t.lanes=4194304)}else{if(!r)if(e=Pc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Co(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ee)return it(t),null}else 2*Le()-i.renderingStartTime>Wi&&n!==1073741824&&(t.flags|=128,r=!0,Co(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=Le(),t.sibling=null,n=_e.current,me(_e,r?n&1|2:n&1),t):(it(t),null);case 22:case 23:return Qp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ct&1073741824&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function tP(e,t){switch(jp(t),t.tag){case 1:return St(t.type)&&bc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vi(),be(bt),be(lt),Bp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fp(t),null;case 13:if(be(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(_e),null;case 4:return Vi(),null;case 10:return Lp(t.type._context),null;case 22:case 23:return Qp(),null;case 24:return null;default:return null}}var pl=!1,at=!1,nP=typeof WeakSet=="function"?WeakSet:Set,U=null;function pi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function Kh(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var my=!1;function rP(e,t){if(Rh=yc,e=kx(),Ap(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,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===s&&(a=o),f===i&&++u===r&&(l=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(jh={focusedElem:e,selectionRange:n},yc=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var m=w.memoizedProps,b=w.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:nn(t.type,m),b);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(S){Ie(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return w=my,my=!1,w}function Ho(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&&Kh(t,n,i)}s=s.next}while(s!==r)}}function gu(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 Gh(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 wb(e){var t=e.alternate;t!==null&&(e.alternate=null,wb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pn],delete t[ha],delete t[Ih],delete t[F_],delete t[B_])),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 xb(e){return e.tag===5||e.tag===3||e.tag===4}function gy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xb(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 Yh(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=xc));else if(r!==4&&(e=e.child,e!==null))for(Yh(e,t,n),e=e.sibling;e!==null;)Yh(e,t,n),e=e.sibling}function Jh(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(Jh(e,t,n),e=e.sibling;e!==null;)Jh(e,t,n),e=e.sibling}var Je=null,ln=!1;function or(e,t,n){for(n=n.child;n!==null;)bb(e,t,n),n=n.sibling}function bb(e,t,n){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:at||pi(n,t);case 6:var r=Je,s=ln;Je=null,or(e,t,n),Je=r,ln=s,Je!==null&&(ln?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(ln?(e=Je,n=n.stateNode,e.nodeType===8?vd(e.parentNode,n):e.nodeType===1&&vd(e,n),aa(e)):vd(Je,n.stateNode));break;case 4:r=Je,s=ln,Je=n.stateNode.containerInfo,ln=!0,or(e,t,n),Je=r,ln=s;break;case 0:case 11:case 14:case 15:if(!at&&(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)&&Kh(n,t,o),s=s.next}while(s!==r)}or(e,t,n);break;case 1:if(!at&&(pi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ie(n,t,a)}or(e,t,n);break;case 21:or(e,t,n);break;case 22:n.mode&1?(at=(r=at)||n.memoizedState!==null,or(e,t,n),at=r):or(e,t,n);break;default:or(e,t,n)}}function yy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nP),t.forEach(function(r){var s=hP.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Jt(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:Je=a.stateNode,ln=!1;break e;case 3:Je=a.stateNode.containerInfo,ln=!0;break e;case 4:Je=a.stateNode.containerInfo,ln=!0;break e}a=a.return}if(Je===null)throw Error(O(160));bb(i,o,s),Je=null,ln=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){Ie(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sb(t,e),t=t.sibling}function Sb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Jt(t,e),vn(e),r&4){try{Ho(3,e,e.return),gu(3,e)}catch(m){Ie(e,e.return,m)}try{Ho(5,e,e.return)}catch(m){Ie(e,e.return,m)}}break;case 1:Jt(t,e),vn(e),r&512&&n!==null&&pi(n,n.return);break;case 5:if(Jt(t,e),vn(e),r&512&&n!==null&&pi(n,n.return),e.flags&32){var s=e.stateNode;try{ra(s,"")}catch(m){Ie(e,e.return,m)}}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&&Ww(s,i),xh(a,o);var c=xh(a,i);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?Yw(s,d):u==="dangerouslySetInnerHTML"?Kw(s,d):u==="children"?ra(s,d):gp(s,u,d,c)}switch(a){case"input":mh(s,i);break;case"textarea":Hw(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?xi(s,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?xi(s,!!i.multiple,i.defaultValue,!0):xi(s,!!i.multiple,i.multiple?[]:"",!1))}s[ha]=i}catch(m){Ie(e,e.return,m)}}break;case 6:if(Jt(t,e),vn(e),r&4){if(e.stateNode===null)throw Error(O(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(m){Ie(e,e.return,m)}}break;case 3:if(Jt(t,e),vn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{aa(t.containerInfo)}catch(m){Ie(e,e.return,m)}break;case 4:Jt(t,e),vn(e);break;case 13:Jt(t,e),vn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Yp=Le())),r&4&&yy(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(at=(c=at)||u,Jt(t,e),at=c):Jt(t,e),vn(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(U=e,u=e.child;u!==null;){for(d=U=u;U!==null;){switch(f=U,p=f.child,f.tag){case 0:case 11:case 14:case 15:Ho(4,f,f.return);break;case 1:pi(f,f.return);var w=f.stateNode;if(typeof w.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(m){Ie(r,n,m)}}break;case 5:pi(f,f.return);break;case 22:if(f.memoizedState!==null){wy(d);continue}}p!==null?(p.return=f,U=p):wy(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{s=d.stateNode,c?(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=Gw("display",o))}catch(m){Ie(e,e.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Ie(e,e.return,m)}}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;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Jt(t,e),vn(e),r&4&&yy(e);break;case 21:break;default:Jt(t,e),vn(e)}}function vn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(xb(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ra(s,""),r.flags&=-33);var i=gy(e);Jh(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=gy(e);Yh(e,a,o);break;default:throw Error(O(161))}}catch(l){Ie(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sP(e,t,n){U=e,kb(e)}function kb(e,t,n){for(var r=(e.mode&1)!==0;U!==null;){var s=U,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||pl;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||at;a=pl;var c=at;if(pl=o,(at=l)&&!c)for(U=s;U!==null;)o=U,l=o.child,o.tag===22&&o.memoizedState!==null?xy(s):l!==null?(l.return=o,U=l):xy(s);for(;i!==null;)U=i,kb(i),i=i.sibling;U=s,pl=a,at=c}vy(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,U=i):vy(e)}}function vy(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:at||gu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!at)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:nn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&ny(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}ny(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 c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&aa(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}at||t.flags&512&&Gh(t)}catch(f){Ie(t,t.return,f)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function wy(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function xy(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{gu(4,t)}catch(l){Ie(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Ie(t,s,l)}}var i=t.return;try{Gh(t)}catch(l){Ie(t,i,l)}break;case 5:var o=t.return;try{Gh(t)}catch(l){Ie(t,o,l)}}}catch(l){Ie(t,t.return,l)}if(t===e){U=null;break}var a=t.sibling;if(a!==null){a.return=t.return,U=a;break}U=t.return}}var iP=Math.ceil,jc=er.ReactCurrentDispatcher,Kp=er.ReactCurrentOwner,zt=er.ReactCurrentBatchConfig,ie=0,Ke=null,Fe=null,Ze=0,Ct=0,mi=Gr(0),ze=0,va=null,js=0,yu=0,Gp=0,qo=null,wt=null,Yp=0,Wi=1/0,Bn=null,Nc=!1,Qh=null,Or=null,ml=!1,Cr=null,Oc=0,Ko=0,Xh=null,Gl=-1,Yl=0;function pt(){return ie&6?Le():Gl!==-1?Gl:Gl=Le()}function Ir(e){return e.mode&1?ie&2&&Ze!==0?Ze&-Ze:V_.transition!==null?(Yl===0&&(Yl=ax()),Yl):(e=de,e!==0||(e=window.event,e=e===void 0?16:px(e.type)),e):1}function hn(e,t,n,r){if(50<Ko)throw Ko=0,Xh=null,Error(O(185));Ba(e,n,r),(!(ie&2)||e!==Ke)&&(e===Ke&&(!(ie&2)&&(yu|=n),ze===4&&gr(e,Ze)),kt(e,r),n===1&&ie===0&&!(t.mode&1)&&(Wi=Le()+500,fu&&Yr()))}function kt(e,t){var n=e.callbackNode;VT(e,t);var r=gc(e,e===Ke?Ze:0);if(r===0)n!==null&&Ag(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ag(n),t===1)e.tag===0?U_(by.bind(null,e)):Ox(by.bind(null,e)),D_(function(){!(ie&6)&&Yr()}),n=null;else{switch(lx(r)){case 1:n=bp;break;case 4:n=ix;break;case 16:n=mc;break;case 536870912:n=ox;break;default:n=mc}n=jb(n,Eb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Eb(e,t){if(Gl=-1,Yl=0,ie&6)throw Error(O(327));var n=e.callbackNode;if(Ci()&&e.callbackNode!==n)return null;var r=gc(e,e===Ke?Ze:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ic(e,r);else{t=r;var s=ie;ie|=2;var i=Tb();(Ke!==e||Ze!==t)&&(Bn=null,Wi=Le()+500,Es(e,t));do try{lP();break}catch(a){Cb(e,a)}while(!0);Ip(),jc.current=i,ie=s,Fe!==null?t=0:(Ke=null,Ze=0,t=ze)}if(t!==0){if(t===2&&(s=Ch(e),s!==0&&(r=s,t=Zh(e,s))),t===1)throw n=va,Es(e,0),gr(e,r),kt(e,Le()),n;if(t===6)gr(e,r);else{if(s=e.current.alternate,!(r&30)&&!oP(s)&&(t=Ic(e,r),t===2&&(i=Ch(e),i!==0&&(r=i,t=Zh(e,i))),t===1))throw n=va,Es(e,0),gr(e,r),kt(e,Le()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:cs(e,wt,Bn);break;case 3:if(gr(e,r),(r&130023424)===r&&(t=Yp+500-Le(),10<t)){if(gc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){pt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Oh(cs.bind(null,e,wt,Bn),t);break}cs(e,wt,Bn);break;case 4:if(gr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-dn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*iP(r/1960))-r,10<r){e.timeoutHandle=Oh(cs.bind(null,e,wt,Bn),r);break}cs(e,wt,Bn);break;case 5:cs(e,wt,Bn);break;default:throw Error(O(329))}}}return kt(e,Le()),e.callbackNode===n?Eb.bind(null,e):null}function Zh(e,t){var n=qo;return e.current.memoizedState.isDehydrated&&(Es(e,t).flags|=256),e=Ic(e,t),e!==2&&(t=wt,wt=n,t!==null&&ef(t)),e}function ef(e){wt===null?wt=e:wt.push.apply(wt,e)}function oP(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(!pn(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 gr(e,t){for(t&=~Gp,t&=~yu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-dn(t),r=1<<n;e[n]=-1,t&=~r}}function by(e){if(ie&6)throw Error(O(327));Ci();var t=gc(e,0);if(!(t&1))return kt(e,Le()),null;var n=Ic(e,t);if(e.tag!==0&&n===2){var r=Ch(e);r!==0&&(t=r,n=Zh(e,r))}if(n===1)throw n=va,Es(e,0),gr(e,t),kt(e,Le()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cs(e,wt,Bn),kt(e,Le()),null}function Jp(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(Wi=Le()+500,fu&&Yr())}}function Ns(e){Cr!==null&&Cr.tag===0&&!(ie&6)&&Ci();var t=ie;ie|=1;var n=zt.transition,r=de;try{if(zt.transition=null,de=1,e)return e()}finally{de=r,zt.transition=n,ie=t,!(ie&6)&&Yr()}}function Qp(){Ct=mi.current,be(mi)}function Es(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,M_(n)),Fe!==null)for(n=Fe.return;n!==null;){var r=n;switch(jp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&bc();break;case 3:Vi(),be(bt),be(lt),Bp();break;case 5:Fp(r);break;case 4:Vi();break;case 13:be(_e);break;case 19:be(_e);break;case 10:Lp(r.type._context);break;case 22:case 23:Qp()}n=n.return}if(Ke=e,Fe=e=Lr(e.current,null),Ze=Ct=t,ze=0,va=null,Gp=yu=js=0,wt=qo=null,fs!==null){for(t=0;t<fs.length;t++)if(n=fs[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}fs=null}return e}function Cb(e,t){do{var n=Fe;try{if(Ip(),Hl.current=Rc,Ac){for(var r=Pe.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ac=!1}if(Rs=0,He=Ve=Pe=null,Wo=!1,ma=0,Kp.current=null,n===null||n.return===null){ze=1,va=t,Fe=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=Ze,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=ly(o);if(p!==null){p.flags&=-257,cy(p,o,a,i,t),p.mode&1&&ay(i,c,t),t=p,l=c;var w=t.updateQueue;if(w===null){var m=new Set;m.add(l),t.updateQueue=m}else w.add(l);break e}else{if(!(t&1)){ay(i,c,t),Xp();break e}l=Error(O(426))}}else if(Ee&&a.mode&1){var b=ly(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),cy(b,o,a,i,t),Np(zi(l,a));break e}}i=l=zi(l,a),ze!==4&&(ze=2),qo===null?qo=[i]:qo.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=lb(i,l,t);ty(i,y);break e;case 1:a=l;var g=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Or===null||!Or.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=cb(i,a,t);ty(i,S);break e}}i=i.return}while(i!==null)}Pb(n)}catch(k){t=k,Fe===n&&n!==null&&(Fe=n=n.return);continue}break}while(!0)}function Tb(){var e=jc.current;return jc.current=Rc,e===null?Rc:e}function Xp(){(ze===0||ze===3||ze===2)&&(ze=4),Ke===null||!(js&268435455)&&!(yu&268435455)||gr(Ke,Ze)}function Ic(e,t){var n=ie;ie|=2;var r=Tb();(Ke!==e||Ze!==t)&&(Bn=null,Es(e,t));do try{aP();break}catch(s){Cb(e,s)}while(!0);if(Ip(),ie=n,jc.current=r,Fe!==null)throw Error(O(261));return Ke=null,Ze=0,ze}function aP(){for(;Fe!==null;)_b(Fe)}function lP(){for(;Fe!==null&&!OT();)_b(Fe)}function _b(e){var t=Rb(e.alternate,e,Ct);e.memoizedProps=e.pendingProps,t===null?Pb(e):Fe=t,Kp.current=null}function Pb(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=tP(n,t),n!==null){n.flags&=32767,Fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,Fe=null;return}}else if(n=eP(n,t,Ct),n!==null){Fe=n;return}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);ze===0&&(ze=5)}function cs(e,t,n){var r=de,s=zt.transition;try{zt.transition=null,de=1,cP(e,t,n,r)}finally{zt.transition=s,de=r}return null}function cP(e,t,n,r){do Ci();while(Cr!==null);if(ie&6)throw Error(O(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(O(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(zT(e,i),e===Ke&&(Fe=Ke=null,Ze=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ml||(ml=!0,jb(mc,function(){return Ci(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=zt.transition,zt.transition=null;var o=de;de=1;var a=ie;ie|=4,Kp.current=null,rP(e,n),Sb(n,e),A_(jh),yc=!!Rh,jh=Rh=null,e.current=n,sP(n),IT(),ie=a,de=o,zt.transition=i}else e.current=n;if(ml&&(ml=!1,Cr=e,Oc=s),i=e.pendingLanes,i===0&&(Or=null),DT(n.stateNode),kt(e,Le()),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(Nc)throw Nc=!1,e=Qh,Qh=null,e;return Oc&1&&e.tag!==0&&Ci(),i=e.pendingLanes,i&1?e===Xh?Ko++:(Ko=0,Xh=e):Ko=0,Yr(),null}function Ci(){if(Cr!==null){var e=lx(Oc),t=zt.transition,n=de;try{if(zt.transition=null,de=16>e?16:e,Cr===null)var r=!1;else{if(e=Cr,Cr=null,Oc=0,ie&6)throw Error(O(331));var s=ie;for(ie|=4,U=e.current;U!==null;){var i=U,o=i.child;if(U.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(U=c;U!==null;){var u=U;switch(u.tag){case 0:case 11:case 15:Ho(8,u,i)}var d=u.child;if(d!==null)d.return=u,U=d;else for(;U!==null;){u=U;var f=u.sibling,p=u.return;if(wb(u),u===c){U=null;break}if(f!==null){f.return=p,U=f;break}U=p}}}var w=i.alternate;if(w!==null){var m=w.child;if(m!==null){w.child=null;do{var b=m.sibling;m.sibling=null,m=b}while(m!==null)}}U=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,U=o;else e:for(;U!==null;){if(i=U,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ho(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,U=y;break e}U=i.return}}var g=e.current;for(U=g;U!==null;){o=U;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,U=v;else e:for(o=g;U!==null;){if(a=U,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:gu(9,a)}}catch(k){Ie(a,a.return,k)}if(a===o){U=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,U=S;break e}U=a.return}}if(ie=s,Yr(),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(lu,e)}catch{}r=!0}return r}finally{de=n,zt.transition=t}}return!1}function Sy(e,t,n){t=zi(n,t),t=lb(e,t,1),e=Nr(e,t,1),t=pt(),e!==null&&(Ba(e,1,t),kt(e,t))}function Ie(e,t,n){if(e.tag===3)Sy(e,e,n);else for(;t!==null;){if(t.tag===3){Sy(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Or===null||!Or.has(r))){e=zi(n,e),e=cb(t,e,1),t=Nr(t,e,1),e=pt(),t!==null&&(Ba(t,1,e),kt(t,e));break}}t=t.return}}function uP(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pt(),e.pingedLanes|=e.suspendedLanes&n,Ke===e&&(Ze&n)===n&&(ze===4||ze===3&&(Ze&130023424)===Ze&&500>Le()-Yp?Es(e,0):Gp|=n),kt(e,t)}function Ab(e,t){t===0&&(e.mode&1?(t=il,il<<=1,!(il&130023424)&&(il=4194304)):t=1);var n=pt();e=Jn(e,t),e!==null&&(Ba(e,t,n),kt(e,n))}function dP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ab(e,n)}function hP(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(O(314))}r!==null&&r.delete(t),Ab(e,n)}var Rb;Rb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)xt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xt=!1,Z_(e,t,n);xt=!!(e.flags&131072)}else xt=!1,Ee&&t.flags&1048576&&Ix(t,Ec,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Kl(e,t),e=t.pendingProps;var s=Fi(t,lt.current);Ei(t,n),s=Vp(null,t,r,e,s,n);var i=zp();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,St(r)?(i=!0,Sc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Dp(t),s.updater=mu,t.stateNode=s,s._reactInternals=t,Bh(t,r,e,n),t=zh(null,t,r,!0,i,n)):(t.tag=0,Ee&&i&&Rp(t),ut(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Kl(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=pP(r),e=nn(r,e),s){case 0:t=Vh(null,t,r,e,n);break e;case 1:t=hy(null,t,r,e,n);break e;case 11:t=uy(null,t,r,e,n);break e;case 14:t=dy(null,t,r,nn(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),Vh(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),hy(e,t,r,s,n);case 3:e:{if(fb(t),e===null)throw Error(O(387));
vendor: 4,912 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,s=i.element,Bx(e,t),_c(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=zi(Error(O(423)),t),t=fy(e,t,r,n,s);break e}else if(r!==s){s=zi(Error(O(424)),t),t=fy(e,t,r,n,s);break e}else for(At=jr(t.stateNode.containerInfo.firstChild),Rt=t,Ee=!0,cn=null,n=$x(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bi(),r===s){t=Qn(e,t,n);break e}ut(e,t,r,n)}t=t.child}return t;case 5:return Ux(t),e===null&&Dh(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Nh(r,s)?o=null:i!==null&&Nh(r,i)&&(t.flags|=32),hb(e,t),ut(e,t,o,n),t.child;case 6:return e===null&&Dh(t),null;case 13:return pb(e,t,n);case 4:return $p(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ui(t,null,r,n):ut(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),uy(e,t,r,s,n);case 7:return ut(e,t,t.pendingProps,n),t.child;case 8:return ut(e,t,t.pendingProps.children,n),t.child;case 12:return ut(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,me(Cc,r._currentValue),r._currentValue=o,i!==null)if(pn(i.value,o)){if(i.children===s.children&&!bt.current){t=Qn(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=Kn(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),$h(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(O(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),$h(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}ut(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ei(t,n),s=Ht(s),r=r(s),t.flags|=1,ut(e,t,r,n),t.child;case 14:return r=t.type,s=nn(r,t.pendingProps),s=nn(r.type,s),dy(e,t,r,s,n);case 15:return ub(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),Kl(e,t),t.tag=1,St(r)?(e=!0,Sc(t)):e=!1,Ei(t,n),ab(t,r,s),Bh(t,r,s,n),zh(null,t,r,!0,e,n);case 19:return mb(e,t,n);case 22:return db(e,t,n)}throw Error(O(156,t.tag))};function jb(e,t){return sx(e,t)}function fP(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 Ut(e,t,n,r){return new fP(e,t,n,r)}function Zp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pP(e){if(typeof e=="function")return Zp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vp)return 11;if(e===wp)return 14}return 2}function Lr(e,t){var n=e.alternate;return n===null?(n=Ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Jl(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Zp(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ii:return Cs(n.children,s,i,t);case yp:o=8,s|=8;break;case uh:return e=Ut(12,n,t,s|2),e.elementType=uh,e.lanes=i,e;case dh:return e=Ut(13,n,t,s),e.elementType=dh,e.lanes=i,e;case hh:return e=Ut(19,n,t,s),e.elementType=hh,e.lanes=i,e;case Uw:return vu(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fw:o=10;break e;case Bw:o=9;break e;case vp:o=11;break e;case wp:o=14;break e;case fr:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Ut(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Cs(e,t,n,r){return e=Ut(7,e,r,t),e.lanes=n,e}function vu(e,t,n,r){return e=Ut(22,e,r,t),e.elementType=Uw,e.lanes=n,e.stateNode={isHidden:!1},e}function Td(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function _d(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}
vendor: 5,453 bytes, line 40
40function mP(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=ad(0),this.expirationTimes=ad(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ad(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function em(e,t,n,r,s,i,o,a,l){return e=new mP(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dp(i),e}function gP(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:si,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Nb(e){if(!e)return Fr;e=e._reactInternals;e:{if(Ds(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(St(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(St(n))return Nx(e,n,t)}return t}function Ob(e,t,n,r,s,i,o,a,l){return e=em(n,r,!0,e,s,i,o,a,l),e.context=Nb(null),n=e.current,r=pt(),s=Ir(n),i=Kn(r,s),i.callback=t??null,Nr(n,i,s),e.current.lanes=s,Ba(e,s,r),kt(e,r),e}function wu(e,t,n,r){var s=t.current,i=pt(),o=Ir(s);return n=Nb(n),t.context===null?t.context=n:t.pendingContext=n,t=Kn(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Nr(s,t,o),e!==null&&(hn(e,s,o,i),Wl(e,s,o)),o}function Lc(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 ky(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tm(e,t){ky(e,t),(e=e.alternate)&&ky(e,t)}function yP(){return null}var Ib=typeof reportError=="function"?reportError:function(e){console.error(e)};function nm(e){this._internalRoot=e}xu.prototype.render=nm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));wu(e,t,null,null)};xu.prototype.unmount=nm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ns(function(){wu(null,e,null,null)}),t[Yn]=null}};function xu(e){this._internalRoot=e}xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=dx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<mr.length&&t!==0&&t<mr[n].priority;n++);mr.splice(n,0,e),n===0&&fx(e)}};function rm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ey(){}function vP(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=Lc(o);i.call(c)}}var o=Ob(t,r,e,0,null,!1,!1,"",Ey);return e._reactRootContainer=o,e[Yn]=o.current,ua(e.nodeType===8?e.parentNode:e),Ns(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=Lc(l);a.call(c)}}var l=em(e,0,!1,null,null,!1,!1,"",Ey);return e._reactRootContainer=l,e[Yn]=l.current,ua(e.nodeType===8?e.parentNode:e),Ns(function(){wu(t,l,n,r)}),l}function Su(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=Lc(o);a.call(l)}}wu(t,o,e,s)}else o=vP(n,t,e,s,r);return Lc(o)}cx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Oo(t.pendingLanes);n!==0&&(Sp(t,n|1),kt(t,Le()),!(ie&6)&&(Wi=Le()+500,Yr()))}break;case 13:Ns(function(){var r=Jn(e,1);if(r!==null){var s=pt();hn(r,e,1,s)}}),tm(e,1)}};kp=function(e){if(e.tag===13){var t=Jn(e,134217728);if(t!==null){var n=pt();hn(t,e,134217728,n)}tm(e,134217728)}};ux=function(e){if(e.tag===13){var t=Ir(e),n=Jn(e,t);if(n!==null){var r=pt();hn(n,e,t,r)}tm(e,t)}};dx=function(){return de};hx=function(e,t){var n=de;try{return de=e,t()}finally{de=n}};Sh=function(e,t,n){switch(t){case"input":if(mh(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=hu(r);if(!s)throw Error(O(90));zw(r),mh(r,s)}}}break;case"textarea":Hw(e,n);break;case"select":t=n.value,t!=null&&xi(e,!!n.multiple,t,!1)}};Xw=Jp;Zw=Ns;var wP={usingClientEntryPoint:!1,Events:[Va,ci,hu,Jw,Qw,Jp]},To={findFiberByHostInstance:hs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},xP={bundleType:To.bundleType,version:To.version,rendererPackageName:To.rendererPackageName,rendererConfig:To.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:er.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nx(e),e===null?null:e.stateNode},findFiberByHostInstance:To.findFiberByHostInstance||yP,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gl.isDisabled&&gl.supportsFiber)try{lu=gl.inject(xP),Rn=gl}catch{}}Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wP;Ot.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rm(t))throw Error(O(200));return gP(e,t,null,n)};Ot.createRoot=function(e,t){if(!rm(e))throw Error(O(299));var n=!1,r="",s=Ib;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=em(e,1,!1,null,null,n,!1,r,s),e[Yn]=t.current,ua(e.nodeType===8?e.parentNode:e),new nm(t)};Ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=nx(t),e=e===null?null:e.stateNode,e};Ot.flushSync=function(e){return Ns(e)};Ot.hydrate=function(e,t,n){if(!bu(t))throw Error(O(200));return Su(null,e,t,!0,n)};Ot.hydrateRoot=function(e,t,n){if(!rm(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Ib;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Ob(t,null,e,1,n??null,s,!1,i,o),e[Yn]=t.current,ua(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 xu(t)};Ot.render=function(e,t,n){if(!bu(t))throw Error(O(200));return Su(null,e,t,!1,n)};Ot.unmountComponentAtNode=function(e){if(!bu(e))throw Error(O(40));return e._reactRootContainer?(Ns(function(){Su(null,null,e,!1,function(){e._reactRootContainer=null,e[Yn]=null})}),!0):!1};Ot.unstable_batchedUpdates=Jp;Ot.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bu(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return Su(e,t,n,!1,r)};Ot.version="18.3.1-next-f1338f8080-20240426";function Lb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lb)}catch(e){console.error(e)}}Lb(),Lw.exports=Ot;var $s=Lw.exports;const Mb=kw($s);var Db,Cy=$s;Db=Cy.createRoot,Cy.hydrateRoot;const bP=1,SP=1e6;let Pd=0;function kP(){return Pd=(Pd+1)%Number.MAX_SAFE_INTEGER,Pd.toString()}const Ad=new Map,Ty=e=>{if(Ad.has(e))return;const t=setTimeout(()=>{Ad.delete(e),Go({type:"REMOVE_TOAST",toastId:e})},SP);Ad.set(e,t)},EP=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,bP)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ty(n):e.toasts.forEach(r=>{Ty(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)}}},Ql=[];let Xl={toasts:[]};function Go(e){Xl=EP(Xl,e),Ql.forEach(t=>{t(Xl)})}function CP({...e}){const t=kP(),n=s=>Go({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Go({type:"DISMISS_TOAST",toastId:t});return Go({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function $b(){const[e,t]=x.useState(Xl);return x.useEffect(()=>(Ql.push(t),()=>{const n=Ql.indexOf(t);n>-1&&Ql.splice(n,1)}),[e]),{...e,toast:CP,dismiss:n=>Go({type:"DISMISS_TOAST",toastId:n})}}function te(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 _y(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Fb(...e){return t=>{let n=!1;const r=e.map(s=>{const i=_y(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():_y(e[s],null)}}}}function Ce(...e){return x.useCallback(Fb(...e),e)}function ro(e,t=[]){let n=[];function r(i,o){const a=x.createContext(o),l=n.length;n=[...n,o];const c=d=>{var y;const{scope:f,children:p,...w}=d,m=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,b=x.useMemo(()=>w,Object.values(w));return h.jsx(m.Provider,{value:b,children:p})};c.displayName=i+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,w=x.useContext(p);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,TP(s,...t)]}function TP(...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:c}
vendor: 10,190 bytes, line 40
40)=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function wa(e){const t=PP(e),n=x.forwardRef((r,s)=>{const{children:i,...o}=r,a=x.Children.toArray(i),l=a.find(RP);if(l){const c=l.props.children,u=a.map(d=>d===l?x.Children.count(c)>1?x.Children.only(null):x.isValidElement(c)?c.props.children:null:d);return h.jsx(t,{...o,ref:s,children:x.isValidElement(c)?x.cloneElement(c,void 0,u):null})}return h.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var _P=wa("Slot");function PP(e){const t=x.forwardRef((n,r)=>{const{children:s,...i}=n;if(x.isValidElement(s)){const o=NP(s),a=jP(i,s.props);return s.type!==x.Fragment&&(a.ref=r?Fb(r,o):o),x.cloneElement(s,a)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bb=Symbol("radix.slottable");function AP(e){const t=({children:n})=>h.jsx(h.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Bb,t}function RP(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bb}function jP(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 NP(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 Ub(e){const t=e+"CollectionProvider",[n,r]=ro(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:b,children:y}=m,g=L.useRef(null),v=L.useRef(new Map).current;return h.jsx(s,{scope:b,itemMap:v,collectionRef:g,children:y})};o.displayName=t;const a=e+"CollectionSlot",l=wa(a),c=L.forwardRef((m,b)=>{const{scope:y,children:g}=m,v=i(a,y),S=Ce(b,v.collectionRef);return h.jsx(l,{ref:S,children:g})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=wa(u),p=L.forwardRef((m,b)=>{const{scope:y,children:g,...v}=m,S=L.useRef(null),k=Ce(b,S),E=i(u,y);return L.useEffect(()=>(E.itemMap.set(S,{ref:S,...v}),()=>void E.itemMap.delete(S))),h.jsx(f,{[d]:"",ref:k,children:g})});p.displayName=u;function w(m){const b=i(e+"CollectionConsumer",m);return L.useCallback(()=>{const g=b.collectionRef.current;if(!g)return[];const v=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((E,C)=>v.indexOf(E.ref.current)-v.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:c,ItemSlot:p},w,r]}var OP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ce=OP.reduce((e,t)=>{const n=wa(`Primitive.${t}`),r=x.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Vb(e,t){e&&$s.flushSync(()=>e.dispatchEvent(t))}function mn(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function IP(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e);x.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 LP="DismissableLayer",tf="dismissableLayer.update",MP="dismissableLayer.pointerDownOutside",DP="dismissableLayer.focusOutside",Py,zb=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ku=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=x.useContext(zb),[u,d]=x.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=x.useState({}),w=Ce(t,C=>d(C)),m=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(b),g=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,S=g>=y,k=FP(C=>{const T=C.target,A=[...c.branches].some(P=>P.contains(T));!S||A||(s==null||s(C),o==null||o(C),C.defaultPrevented||a==null||a())},f),E=BP(C=>{const T=C.target;[...c.branches].some(P=>P.contains(T))||(i==null||i(C),o==null||o(C),C.defaultPrevented||a==null||a())},f);return IP(C=>{g===c.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},f),x.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Py=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Ay(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Py)}},[u,f,n,c]),x.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Ay())},[u,c]),x.useEffect(()=>{const C=()=>p({});return document.addEventListener(tf,C),()=>document.removeEventListener(tf,C)},[]),h.jsx(ce.div,{...l,ref:w,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:te(e.onFocusCapture,E.onFocusCapture),onBlurCapture:te(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:te(e.onPointerDownCapture,k.onPointerDownCapture)})});ku.displayName=LP;var $P="DismissableLayerBranch",Wb=x.forwardRef((e,t)=>{const n=x.useContext(zb),r=x.useRef(null),s=Ce(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(ce.div,{...e,ref:s})});Wb.displayName=$P;function FP(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e),r=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Hb(MP,n,c,{discrete:!0})};const c={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 BP(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e),r=x.useRef(!1);return x.useEffect(()=>{const s=i=>{i.target&&!r.current&&Hb(DP,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 Ay(){const e=new CustomEvent(tf);document.dispatchEvent(e)}function Hb(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?Vb(s,i):s.dispatchEvent(i)}var UP=ku,VP=Wb,tt=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},zP="Portal",sm=x.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=x.useState(!1);tt(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Mb.createPortal(h.jsx(ce.div,{...r,ref:t}),o):null});sm.displayName=zP;function WP(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var Eu=e=>{const{present:t,children:n}=e,r=HP(t),s=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=Ce(r.ref,qP(s));return typeof n=="function"||r.isPresent?x.cloneElement(s,{ref:i}):null};Eu.displayName="Presence";function HP(e){const[t,n]=x.useState(),r=x.useRef(null),s=x.useRef(e),i=x.useRef("none"),o=e?"mounted":"unmounted",[a,l]=WP(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const c=yl(r.current);i.current=a==="mounted"?c:"none"},[a]),tt(()=>{const c=r.current,u=s.current;if(u!==e){const f=i.current,p=yl(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),tt(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=p=>{const m=yl(r.current).includes(p.animationName);if(p.target===t&&m&&(l("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=p=>{p.target===t&&(i.current=yl(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function yl(e){return(e==null?void 0:e.animationName)||"none"}function qP(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 KP=fp[" useInsertionEffect ".trim().toString()]||tt;function Mc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=GP({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const u=x.useRef(e!==void 0);x.useEffect(()=>{const d=u.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.`),u.current=a},[a,r])}const c=x.useCallback(u=>{var d;if(a){const f=YP(u)?u(e):u;f!==e&&((d=o.current)==null||d.call(o,f))}else i(u)},[a,e,i,o]);return[l,c]}function GP({defaultProp:e,onChange:t}
40){const[n,r]=x.useState(e),s=x.useRef(n),i=x.useRef(t);return KP(()=>{i.current=t},[t]),x.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function YP(e){return typeof e=="function"}var qb=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"}),JP="VisuallyHidden",Cu=x.forwardRef((e,t)=>h.jsx(ce.span,{...e,ref:t,style:{...qb,...e.style}}));Cu.displayName=JP;var QP=Cu,im="ToastProvider",[om,XP,ZP]=Ub("Toast"),[Kb,sB]=ro("Toast",[ZP]),[eA,Tu]=Kb(im),Gb=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=x.useState(null),[c,u]=x.useState(0),d=x.useRef(!1),f=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${im}\`. Expected non-empty \`string\`.`),h.jsx(om.Provider,{scope:t,children:h.jsx(eA,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>u(p=>p+1),[]),onToastRemove:x.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};Gb.displayName=im;var Yb="ToastViewport",tA=["F8"],nf="toast.viewportPause",rf="toast.viewportResume",Jb=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=tA,label:s="Notifications ({hotkey})",...i}=e,o=Tu(Yb,n),a=XP(n),l=x.useRef(null),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),f=Ce(t,d,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;x.useEffect(()=>{const b=y=>{var v;r.length!==0&&r.every(S=>y[S]||y.code===S)&&((v=d.current)==null||v.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),x.useEffect(()=>{const b=l.current,y=d.current;if(w&&b&&y){const g=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(nf);y.dispatchEvent(E),o.isClosePausedRef.current=!0}},v=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(rf);y.dispatchEvent(E),o.isClosePausedRef.current=!1}},S=E=>{!b.contains(E.relatedTarget)&&v()},k=()=>{b.contains(document.activeElement)||v()};return b.addEventListener("focusin",g),b.addEventListener("focusout",S),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",k),window.addEventListener("blur",g),window.addEventListener("focus",v),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",S),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",k),window.removeEventListener("blur",g),window.removeEventListener("focus",v)}}},[w,o.isClosePausedRef]);const m=x.useCallback(({tabbingDirection:b})=>{const g=a().map(v=>{const S=v.ref.current,k=[S,...pA(S)];return b==="forwards"?k:k.reverse()});return(b==="forwards"?g.reverse():g).flat()},[a]);return x.useEffect(()=>{const b=d.current;if(b){const y=g=>{var k,E,C;const v=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!v){const T=document.activeElement,A=g.shiftKey;if(g.target===b&&A){(k=c.current)==null||k.focus();return}const I=m({tabbingDirection:A?"backwards":"forwards"}),H=I.findIndex(N=>N===T);Rd(I.slice(H+1))?g.preventDefault():A?(E=c.current)==null||E.focus():(C=u.current)==null||C.focus()}};return b.addEventListener("keydown",y),()=>b.removeEventListener("keydown",y)}},[a,m]),h.jsxs(VP,{ref:l,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&h.jsx(sf,{ref:c,onFocusFromOutsideViewport:()=>{const b=m({tabbingDirection:"forwards"});Rd(b)}}),h.jsx(om.Slot,{scope:n,children:h.jsx(ce.ol,{tabIndex:-1,...i,ref:f})}),w&&h.jsx(sf,{ref:u,onFocusFromOutsideViewport:()=>{const b=m({tabbingDirection:"backwards"});Rd(b)}})]})});Jb.displayName=Yb;var Qb="ToastFocusProxy",sf=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=Tu(Qb,n);return h.jsx(Cu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&r()}})});sf.displayName=Qb;var Wa="Toast",nA="toast.swipeStart",rA="toast.swipeMove",sA="toast.swipeCancel",iA="toast.swipeEnd",Xb=x.forwardRef((e,t)=>
40{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=Mc({prop:r,defaultProp:s??!0,onChange:i,caller:Wa});return h.jsx(Eu,{present:n||a,children:h.jsx(lA,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:mn(e.onPause),onResume:mn(e.onResume),onSwipeStart:te(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:te(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:te(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:te(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});Xb.displayName=Wa;var[oA,aA]=Kb(Wa,{onClose(){}}),lA=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...w}=e,m=Tu(Wa,n),[b,y]=x.useState(null),g=Ce(t,N=>y(N)),v=x.useRef(null),S=x.useRef(null),k=s||m.duration,E=x.useRef(0),C=x.useRef(k),T=x.useRef(0),{onToastAdd:A,onToastRemove:P}=m,M=mn(()=>{var q;(b==null?void 0:b.contains(document.activeElement))&&((q=m.viewport)==null||q.focus()),o()}),I=x.useCallback(N=>{!N||N===1/0||(window.clearTimeout(T.current),E.current=new Date().getTime(),T.current=window.setTimeout(M,N))},[M]);x.useEffect(()=>{const N=m.viewport;if(N){const q=()=>{I(C.current),c==null||c()},B=()=>{const G=new Date().getTime()-E.current;C.current=C.current-G,window.clearTimeout(T.current),l==null||l()};return N.addEventListener(nf,B),N.addEventListener(rf,q),()=>{N.removeEventListener(nf,B),N.removeEventListener(rf,q)}}},[m.viewport,k,l,c,I]),x.useEffect(()=>{i&&!m.isClosePausedRef.current&&I(k)},[i,k,m.isClosePausedRef,I]),x.useEffect(()=>(A(),()=>P()),[A,P]);const H=x.useMemo(()=>b?i1(b):null,[b]);return m.viewport?h.jsxs(h.Fragment,{children:[H&&h.jsx(cA,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),h.jsx(oA,{scope:n,onClose:M,children:$s.createPortal(h.jsx(om.ItemSlot,{scope:n,children:h.jsx(UP,{asChild:!0,onEscapeKeyDown:te(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||M(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(ce.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...w,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:te(e.onKeyDown,N=>{N.key==="Escape"&&(a==null||a(N.nativeEvent),N.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,M()))}),onPointerDown:te(e.onPointerDown,N=>{N.button===0&&(v.current={x:N.clientX,y:N.clientY})}),onPointerMove:te(e.onPointerMove,N=>{if(!v.current)return;const q=N.clientX-v.current.x,B=N.clientY-v.current.y,G=!!S.current,_=["left","right"].includes(m.swipeDirection),R=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,D=_?R(0,q):0,K=_?0:R(0,B),W=N.pointerType==="touch"?10:2,Z={x:D,y:K},J={originalEvent:N,delta:Z};G?(S.current=Z,vl(rA,d,J,{discrete:!1})):Ry(Z,m.swipeDirection,W)?(S.current=Z,vl(nA,u,J,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(q)>W||Math.abs(B)>W)&&(v.current=null)}),onPointerUp:te(e.onPointerUp,N=>{const q=S.current,B=N.target;if(B.hasPointerCapture(N.pointerId)&&B.releasePointerCapture(N.pointerId),S.current=null,v.current=null,q){const G=N.currentTarget,_={originalEvent:N,delta:q};Ry(q,m.swipeDirection,m.swipeThreshold)?vl(iA,p,_,{discrete:!0}):vl(sA,f,_,{discrete:!0}),G.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),cA=e=>{const{__scopeToast:t,children:n,...r}=e,s=Tu(Wa,t),[i,o]=x.useState(!1),[a,l]=x.useState(!1);return hA(()=>o(!0)),x.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:h.jsx(sm,{asChild:!0,children:h.jsx(Cu,{...r,children:i&&h.jsxs(h.Fragment,{children:[s.label," ",n]})})})},uA="ToastTitle",Zb=x.forwardRef((e,t)=>
vendor: 4,742 bytes, lines 40-60
40{const{__scopeToast:n,...r}=e;return h.jsx(ce.div,{...r,ref:t})});Zb.displayName=uA;var dA="ToastDescription",e1=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(ce.div,{...r,ref:t})});e1.displayName=dA;var t1="ToastAction",n1=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?h.jsx(s1,{altText:n,asChild:!0,children:h.jsx(am,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${t1}\`. Expected non-empty \`string\`.`),null)});n1.displayName=t1;var r1="ToastClose",am=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=aA(r1,n);return h.jsx(s1,{asChild:!0,children:h.jsx(ce.button,{type:"button",...r,ref:t,onClick:te(e.onClick,s.onClose)})})});am.displayName=r1;var s1=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return h.jsx(ce.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function i1(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),fA(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(...i1(r))}}),t}function vl(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?Vb(s,i):s.dispatchEvent(i)}var Ry=(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 hA(e=()=>{}){const t=mn(e);tt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function fA(e){return e.nodeType===e.ELEMENT_NODE}function pA(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 Rd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var mA=Gb,o1=Jb,a1=Xb,l1=Zb,c1=e1,u1=n1,d1=am;function h1(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=h1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function f1(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=h1(e))&&(r&&(r+=" "),r+=t);return r}const jy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ny=f1,p1=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ny(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const f=jy(u)||jy(d);return s[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(w=>{let[m,b]=w;return Array.isArray(b)?b.includes({...i,...a}[m]):{...i,...a}[m]===b})?[...c,d,f]:c},[]);return Ny(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 gA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),m1=(...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 yA={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 vA=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>x.createElement("svg",{ref:l,...yA,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:m1("lucide",s),...a},[...o.map(([c,u])=>x.createElement(c,u)),...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 re=(e,t)=>
60{const n=x.forwardRef(({className:r,...s},i)=>x.createElement(vA,{ref:i,iconNode:t,className:m1(`lucide-${gA(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 wA=re("Accessibility",[["circle",{cx:"16",cy:"4",r:"1",key:"1grugj"}],["path",{d:"m18 19 1-7-6 1",key:"r0i19z"}],["path",{d:"m5 8 3-3 5.5 3-2.36 3.5",key:"9ptxx2"}],["path",{d:"M4.24 14.5a5 5 0 0 0 6.88 6",key:"10kmtu"}],["path",{d:"M13.76 17.5a5 5 0 0 0-6.88-6",key:"2qq6rc"}]]);/** 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 so=re("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 xA=re("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 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 Oy=re("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/** 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 lm=re("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const cm=re("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 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 bA=re("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 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 SA=re("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 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 kA=re("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 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 EA=re("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 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 CA=re("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 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 TA=re("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",ke
120y:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/** 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 _A=re("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 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 PA=re("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 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 AA=re("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 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 RA=re("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 141 * @license lucide-react v0.462.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const jA=re("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 146 * @license lucide-react v0.462.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const NA=re("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** 151 * @license lucide-react v0.462.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const um=re("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 156 * @license lucide-react v0.462.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const OA=re("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 161 * @license lucide-react v0.462.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const IA=re("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const LA=re("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const MA=re("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const DA=re("MonitorCog",[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m15.2 4.9-.9-.4",key:"12wd2u"}],["path",{d:"m15.2 7.1-.9.4",key:"1r2vl7"}],["path",{d:"m16.9 3.2-.4-.9",key:"3zbo91"}],["path",{d:"m16.9 8.8-.4.9",key:"1qr2dn"}],["path",{d:"m19.5 2.3-.4.9",key:"1rjrkq"}],["path",{d:"m19.5 9.7-.4-.9",key:"heryx5"}],["path",{d:"m21.7 4.5-.9.4",key:"17fqt1"}],["path",{d:"m21.7 7.5-.9-.4",key:"14zyni"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"1tnzv8"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}]]);/** 181 * @license lucide-react v0.462.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const $A=re("MousePointerClick",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.
185074z",key:"s0h3yz"}]]);/** 186 * @license lucide-react v0.462.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const Hi=re("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 191 * @license lucide-react v0.462.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const FA=re("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 196 * @license lucide-react v0.462.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const BA=re("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const UA=re("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 206 * @license lucide-react v0.462.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const g1=re("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const VA=re("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const zA=re("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 221 * @license lucide-react v0.462.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const WA=re("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const y1=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 231 * @license lucide-react v0.462.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const HA=re("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"}]]),dm="-",qA=e=>{const t=GA(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(dm);return a[0]===""&&a.length!==1&&a.shift(),v1(a,t)||KA(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},v1=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?v1(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(dm);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Iy=/^\[(.+)\]$/,KA=e=>{if(Iy.test(e)){const t=Iy.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},GA=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 5,120 bytes, line 235
235return JA(Object.entries(e.classGroups),n).forEach(([i,o])=>{of(o,r,i,t)}),r},of=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Ly(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(YA(s)){of(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{of(o,Ly(t,i),n,r)})})},Ly=(e,t)=>{let n=e;return t.split(dm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},YA=e=>e.isThemeGetter,JA=(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,QA=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)}}},w1="!",XA=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let b=0;b<a.length;b++){let y=a[b];if(c===0){if(y===s&&(r||a.slice(b,b+i)===t)){l.push(a.slice(u,b)),u=b+i;continue}if(y==="/"){d=b;continue}}y==="["?c++:y==="]"&&c--}const f=l.length===0?a:a.substring(u),p=f.startsWith(w1),w=p?f.substring(1):f,m=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:w,maybePostfixModifierPosition:m}};return n?a=>n({className:a,parseClassName:o}):o},ZA=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},eR=e=>({cache:QA(e.cacheSize),parseClassName:XA(e),...qA(e)}),tR=/\s+/,nR=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(tR);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(c);let w=!!p,m=r(w?f.substring(0,p):f);if(!m){if(!w){a=c+(a.length>0?" "+a:a);continue}if(m=r(f),!m){a=c+(a.length>0?" "+a:a);continue}w=!1}const b=ZA(u).join(":"),y=d?b+w1:b,g=y+m;if(i.includes(g))continue;i.push(g);const v=s(m,w);for(let S=0;S<v.length;++S){const k=v[S];i.push(y+k)}a=c+(a.length>0?" "+a:a)}return a};function rR(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=x1(t))&&(r&&(r+=" "),r+=n);return r}const x1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=x1(e[r]))&&(n&&(n+=" "),n+=t);return n};function sR(e,...t){let n,r,s,i=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=eR(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=nR(l,n);return s(l,u),u}return function(){return i(rR.apply(null,arguments))}}const ye=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},b1=/^\[(?:([a-z-]+):)?(.+)\]$/i,iR=/^\d+\/\d+$/,oR=new Set(["px","full","screen"]),aR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lR=/\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$/,cR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mn=e=>Ti(e)||oR.has(e)||iR.test(e),ar=e=>io(e,"length",wR),Ti=e=>!!e&&!Number.isNaN(Number(e)),jd=e=>io(e,"number",Ti),_o=e=>!!e&&Number.isInteger(Number(e)),hR=e=>e.endsWith("%")&&Ti(e.slice(0,-1)),ee=e=>b1.test(e),lr=e=>aR.test(e),fR=new Set(["length","size","percentage"]),pR=e=>io(e,fR,S1),mR=e=>io(e,"position",S1),gR=new Set(["image","url"]),yR=e=>io(e,gR,bR),vR=e=>io(e,"",xR),Po=()=>!0,io=(e,t,n)=>{const r=b1.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},wR=e=>lR.test(e)&&!cR.test(e),S1=()=>!1,xR=e=>uR.test(e),bR=e=>dR.test(e),SR=()=>{const e=ye("colors"),t=ye("spacing"),n=ye("blur"),r=ye("brightness"),s=ye("borderColor"),i=ye("borderRadius"),o=ye("borderSpacing"),a=ye("borderWidth"),l=ye("contrast"),c=ye("grayscale"),u=ye("hueRotate"),d=ye("invert"),f=ye("gap"),p=ye("gradientColorStops"),w=ye("gradientColorStopPositions"),m=ye("inset"),b=ye("margin"),y=ye("opacity"),g=ye("padding"),v=ye("saturate"),S=ye("scale"),k=ye("sepia"),E=ye("skew"),C=ye("space"),T=ye("translate"),A=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",ee,t],I=()=>[ee,t],H=()=>["",Mn,ar],N=()=>["auto",Ti,ee],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",ee],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[Ti,ee];return{cacheSize:500,separator:":",theme:{colors:[Po],spacing:[Mn,ar],blur:["none","",lr,ee],brightness:K(),borderColor:[e],borderRadius:["n
235one","","full",lr,ee],borderSpacing:I(),borderWidth:H(),contrast:K(),grayscale:R(),hueRotate:K(),invert:R(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[hR,ar],inset:M(),margin:M(),opacity:K(),padding:I(),saturate:K(),scale:K(),sepia:R(),skew:K(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",ee]}],container:["container"],columns:[{columns:[lr]}],"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:[...q(),ee]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_o,ee]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ee]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",_o,ee]}],"grid-cols":[{"grid-cols":[Po]}],"col-start-end":[{col:["auto",{span:["full",_o,ee]},ee]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Po]}],"row-start-end":[{row:["auto",{span:[_o,ee]},ee]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ee]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"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:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ee,t]}],"min-w":[{"min-w":[ee,t,"min","max","fit"]}],"max-w":[{"max-w":[ee,t,"none","full","min","max","fit","prose",{screen:[lr]},lr]}],h:[{h:[ee,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ee,t,"auto","min","max","fit"]}],"font-size":[{text:["base",lr,ar]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jd]}],"font-family":[{font:[Po]}],"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",ee]}],"line-clamp":[{"line-clamp":["none",Ti,jd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Mn,ee]}],"list-image":[{"list-image":["none",ee]}],"list-style-type":[{list:["none","disc","decimal",ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Mn,ar]}],"underline-offset":[{"underline-offset":["auto",Mn,ee]}],"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:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee]}],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",ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),mR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yR]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}
235],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"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":[y]}
vendor: 4,467 bytes, line 235
235],"divide-style":[{divide:B()}],"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:["",...B()]}],"outline-offset":[{"outline-offset":[Mn,ee]}],"outline-w":[{outline:[Mn,ar]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Mn,ar]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",lr,vR]}],"shadow-color":[{shadow:[Po]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",lr,ee]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"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",ee]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",ee]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[_o,ee]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ee]}],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",ee]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Mn,ar,jd]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
235none"]}]},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"]}}},kR=sR(SR);function Be(...e){return kR(f1(e))}const ER=mA,k1=x.forwardRef(({className:e,...t},n)=>h.jsx(o1,{ref:n,className:Be("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}));k1.displayName=o1.displayName;const CR=p1("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"}}),E1=x.forwardRef(({className:e,variant:t,...n},r)=>h.jsx(a1,{ref:r,className:Be(CR({variant:t}),e),...n}));E1.displayName=a1.displayName;const TR=x.forwardRef(({className:e,...t},n)=>h.jsx(u1,{ref:n,className:Be("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}));TR.displayName=u1.displayName;const C1=x.forwardRef(({className:e,...t},n)=>h.jsx(d1,{ref:n,className:Be("absolute right-2 top-2 rounded-md p-1 text-foreground
235/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:h.jsx(y1,{className:"h-4 w-4"})}));C1.displayName=d1.displayName;const T1=x.forwardRef(({className:e,...t},n)=>h.jsx(l1,{ref:n,className:Be("text-sm font-semibold",e),...t}));T1.displayName=l1.displayName;const _1=x.forwardRef(({className:e,...t},n)=>h.jsx(c1,{ref:n,className:Be("text-sm opacity-90",e),...t}));_1.displayName=c1.displayName;function _R(){const{toasts:e}=$b();return h.jsxs(ER,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return h.jsxs(E1,{...i,children:[h.jsxs("div",{className:"grid gap-1",children:[n&&h.jsx(T1,{children:n}),r&&h.jsx(_1,{children:r})]}),s,h.jsx(C1,{})]},t)}),h.jsx(k1,{})]})}var My=["light","dark"],PR="(prefers-color-scheme: dark)",AR=x.createContext(void 0),RR={setTheme:e=>{},themes:[]},jR=()=>{var e;return(e=x.useContext(AR))!=null?e:RR};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let c=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?My.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(w,m=!1,b=!0)=>{let y=o?o[w]:w,g=m?w+"|| ''":`'${y}'`,v="";return s&&b&&!m&&My.includes(w)&&(v+=`d.style.colorScheme = '${w}';`),n==="class"?m||y?v+=`c.add(${g})`:v+="null":y&&(v+=`d[s](n,${g})`),v},p=e?`!function(){${u}${f(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${PR}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${c?"":"else{"+f(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${d}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var NR=e=>{switch(e){case"success":return LR;case"info":return DR;case"warning":return MR;case"error":return $R;default:return null}},OR=Array(12).fill(0),IR=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},OR.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),LR=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),MR=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},L.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"})),DR=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),$R=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),FR=L.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"},L.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),BR=()=>{let[e,t]=L.useState(document.hidden);return L.useEffect(()=>{let n=()=>{t(document.hidden)};
235return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},af=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:af++,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=>(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)=>
235this.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],L.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(zR(l)&&!l.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:c,description:u})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(l):t.success,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:c,description:u})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(l):t.error,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:c,description:u})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>o.then(()=>i[0]==="reject"?c(i[1]):l(i[1])).catch(c));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)||af++;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}},vt=new UR,VR=(e,t)=>{let n=(t==null?void 0:t.id)||af++;return vt.addToast({title:e,...t,id:n}),n},zR=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",WR=VR,HR=()=>vt.toasts,qR=()=>vt.getActiveToasts();Object.assign(WR,{success:vt.success,info:vt.info,warning:vt.warning,error:vt.error,custom:vt.custom,message:vt.message,promise:vt.promise,dismiss:vt.dismiss,loading:vt.loading},{getHistory:HR,getToasts:qR});function KR(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))}KR(`: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;
235left: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}
235: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%);
235--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%)} 236`);function wl(e){return e.label!==void 0}var GR=3,YR="32px",JR="16px",Dy=4e3,QR=356,XR=14,ZR=20,ej=200;function Qt(...e){return e.filter(Boolean).join(" ")}function tj(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var nj=e=>{var t,n,r,s,i,o,a,l,c,u,d;let{invert:f,toast:p,unstyled:w,interacting:m,setHeights:b,visibleToasts:y,heights:g,index:v,toasts:S,expanded:k,removeToast:E,defaultRichColors:C,closeButton:T,style:A,cancelButtonStyle:P,actionButtonStyle:M,className:I="",descriptionClassName:H="",duration:N,position:q,gap:B,loadingIcon:G,expandByDefault:_,classNames:R,icons:D,closeButtonAriaLabel:K="Close toast",pauseWhenPageIsHidden:W}=e,[Z,J]=L.useState(null),[ge,Re]=L.useState(null),[F,ue]=L.useState(!1),[je,le]=L.useState(!1),[se,oe]=L.useState(!1),[nt,Lt]=L.useState(!1),[ts,nr]=L.useState(!1),[ns,yo]=L.useState(0),[Fs,ug]=L.useState(0),vo=L.useRef(p.duration||N||Dy),dg=L.useRef(null),rs=L.useRef(null),BC=v===0,UC=v+1<=y,Mt=p.type,Bs=p.dism
236issible!==!1,VC=p.className||"",zC=p.descriptionClassName||"",Xa=L.useMemo(()=>g.findIndex(Q=>Q.toastId===p.id)||0,[g,p.id]),WC=L.useMemo(()=>{var Q;return(Q=p.closeButton)!=null?Q:T},[p.closeButton,T]),hg=L.useMemo(()=>p.duration||N||Dy,[p.duration,N]),Zu=L.useRef(0),Us=L.useRef(0),fg=L.useRef(0),Vs=L.useRef(null),[HC,qC]=q.split("-"),pg=L.useMemo(()=>g.reduce((Q,he,Se)=>Se>=Xa?Q:Q+he.height,0),[g,Xa]),mg=BR(),KC=p.invert||f,ed=Mt==="loading";Us.current=L.useMemo(()=>Xa*B+pg,[Xa,pg]),L.useEffect(()=>{vo.current=hg},[hg]),L.useEffect(()=>{ue(!0)},[]),L.useEffect(()=>{let Q=rs.current;if(Q){let he=Q.getBoundingClientRect().height;return ug(he),b(Se=>[{toastId:p.id,height:he,position:p.position},...Se]),()=>b(Se=>Se.filter(Kt=>Kt.toastId!==p.id))}},[b,p.id]),L.useLayoutEffect(()=>{if(!F)return;let Q=rs.current,he=Q.style.height;Q.style.height="auto";let Se=Q.getBoundingClientRect().height;Q.style.height=he,ug(Se),b(Kt=>Kt.find(Gt=>Gt.toastId===p.id)?Kt.map(Gt=>Gt.toastId===p.id?{...Gt,height:Se}:Gt):[{toastId:p.id,height:Se,position:p.position},...Kt])},[F,p.title,p.description,b,p.id]);let rr=L.useCallback(()=>{le(!0),yo(Us.current),b(Q=>Q.filter(he=>he.toastId!==p.id)),setTimeout(()=>{E(p)},ej)},[p,E,b,Us]);L.useEffect(()=>{if(p.promise&&Mt==="loading"||p.duration===1/0||p.type==="loading")return;let Q;return k||m||W&&mg?(()=>{if(fg.current<Zu.current){let he=new Date().getTime()-Zu.current;vo.current=vo.current-he}fg.current=new Date().getTime()})():vo.current!==1/0&&(Zu.current=new Date().getTime(),Q=setTimeout(()=>{var he;(he=p.onAutoClose)==null||he.call(p,p),rr()},vo.current)),()=>clearTimeout(Q)},[k,m,p,Mt,W,mg,rr]),L.useEffect(()=>{p.delete&&rr()},[rr,p.delete]);function GC(){var Q,he,Se;return D!=null&&D.loading?L.createElement("div",{className:Qt(R==null?void 0:R.loader,(Q=p==null?void 0:p.classNames)==null?void 0:Q.loader,"sonner-loader"),"data-visible":Mt==="loading"},D.loading):G?L.createElement("div",{className:Qt(R==null?void 0:R.loader,(he=p==null?void 0:p.classNames)==null?void 0:he.loader,"sonner-loader"),"data-visible":Mt==="loading"},G):L.createElement(IR,{className:Qt(R==null?void 0:R.loader,(Se=p==null?void 0:p.classNames)==null?void 0:Se.loader),visible:Mt==="loading"})}return L.createElement("li",{tabIndex:0,ref:rs,className:Qt(I,VC,R==null?void 0:R.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[Mt],(n=p==null?void 0:p.classNames)==null?void 0:n[Mt]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:C,"data-styled":!(p.jsx||p.unstyled||w),"data-mounted":F,"data-promise":!!p.promise,"data-swiped":ts,"data-removed":je,"data-visible":UC,"data-y-position":HC,"data-x-position":qC,"data-index":v,"data-front":BC,"data-swiping":se,"data-dismissible":Bs,"data-type":Mt,"data-invert":KC,"data-swipe-out":nt,"data-swipe-direction":ge,"data-expanded":!!(k||_&&F),style:{"--index":v,"--toasts-before":v,"--z-index":S.length-v,"--offset":`${je?ns:Us.current}px`,"--initial-height":_?"auto":`${Fs}px`,...A,...p.style},onDragEnd:()=>{oe(!1),J(null),Vs.current=null},onPointerDown:Q=>{ed||!Bs||(dg.current=new Date,yo(Us.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(oe(!0),Vs.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,he,Se,Kt;if(nt||!Bs)return;Vs.current=null;let Gt=Number(((Q=rs.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),sr=Number(((he=rs.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ss=new Date().getTime()-((Se=dg.current)==null?void 0:Se.getTime()),Yt=Z==="x"?Gt:sr,ir=Math.abs(Yt)/ss;if(Math.abs(Yt)>=ZR||ir>.11){yo(Us.current),(Kt=p.onDismiss)==null||Kt.call(p,p),Re(Z==="x"?Gt>0?"right":"left":sr>0?"down":"up"),rr(),Lt(!0),nr(!1);return}oe(!1),J(null)},onPointerMove:Q=>{var he,Se,Kt,Gt;if(!Vs.current||!Bs||((he=window.getSelection())==null?void 0:he.toString().length)>0)return;let sr=Q.clientY-Vs.current.y,ss=Q.clientX-Vs.current.x,Yt=(Se=e.swipeDirections)!=null?Se:tj(q);!Z&&(Math.abs(ss)>1||Math.abs(sr)>1)&&J(Math.abs(ss)>Math.abs(sr)?"x":"y");let ir={x:0,y:0};Z==="y"?(Yt.includes("top")||Yt.includes("bottom"))&&(Yt.includes("top")&&sr<0||Yt.includes("bottom")&&sr>0)&&(ir.y=sr):Z==="x"&&(Yt.includes("left")||Yt.includes("right"))&&(Yt.includes("left")&&ss<0||Yt.includes("right")&&ss>0)&&(ir.x=ss),(Math.abs(ir.x)>0||Math.abs(ir.y)>0)&&nr(!0),(Kt=rs.current)==null||Kt.style.setProperty("--swipe-amount-x",`${ir.x}px`),(Gt=rs.current)==null||Gt.style.setProperty("--swipe-amount-y",`${ir.y}px`)}},WC&&!p.jsx?L.createElement("button",{"aria-label":K,"data-disabled":ed,"data-close-button":!0,onClick:ed||!Bs?()=>{}:()=>{var Q;rr(),(Q=p.onDismiss)==null||Q.call(p,p)},className:Qt(R==null?void 0:R.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=D==null?void 0:D.close)!=null?i:FR):null,p.jsx||x.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:L.createElement(L.Fragment,null,Mt||p.icon||p.promise?L.createElement("div",{"data-icon":"",className:Qt(R==null?void 0:R.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)}
vendor: 4,857 bytes, line 236
236,p.promise||p.type==="loading"&&!p.icon?p.icon||GC():null,p.type!=="loading"?p.icon||(D==null?void 0:D[Mt])||NR(Mt):null):null,L.createElement("div",{"data-content":"",className:Qt(R==null?void 0:R.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},L.createElement("div",{"data-title":"",className:Qt(R==null?void 0:R.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?L.createElement("div",{"data-description":"",className:Qt(H,zC,R==null?void 0:R.description,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),x.isValidElement(p.cancel)?p.cancel:p.cancel&&wl(p.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||P,onClick:Q=>{var he,Se;wl(p.cancel)&&Bs&&((Se=(he=p.cancel).onClick)==null||Se.call(he,Q),rr())},className:Qt(R==null?void 0:R.cancelButton,(u=p==null?void 0:p.classNames)==null?void 0:u.cancelButton)},p.cancel.label):null,x.isValidElement(p.action)?p.action:p.action&&wl(p.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||M,onClick:Q=>{var he,Se;wl(p.action)&&((Se=(he=p.action).onClick)==null||Se.call(he,Q),!Q.defaultPrevented&&rr())},className:Qt(R==null?void 0:R.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function $y(){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 rj(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?JR:YR;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${o}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var sj=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:c,theme:u="light",richColors:d,duration:f,style:p,visibleToasts:w=GR,toastOptions:m,dir:b=$y(),gap:y=XR,loadingIcon:g,icons:v,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k}=e,[E,C]=L.useState([]),T=L.useMemo(()=>Array.from(new Set([r].concat(E.filter(W=>W.position).map(W=>W.position)))),[E,r]),[A,P]=L.useState([]),[M,I]=L.useState(!1),[H,N]=L.useState(!1),[q,B]=L.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=L.useRef(null),_=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=L.useRef(null),D=L.useRef(!1),K=L.useCallback(W=>{C(Z=>{var J;return(J=Z.find(ge=>ge.id===W.id))!=null&&J.delete||vt.dismiss(W.id),Z.filter(({id:ge})=>ge!==W.id)})},[]);return L.useEffect(()=>vt.subscribe(W=>{if(W.dismiss){C(Z=>Z.map(J=>J.id===W.id?{...J,delete:!0}:J));return}setTimeout(()=>{Mb.flushSync(()=>{C(Z=>{let J=Z.findIndex(ge=>ge.id===W.id);return J!==-1?[...Z.slice(0,J),{...Z[J],...W},...Z.slice(J+1)]:[W,...Z]})})})}),[]),L.useEffect(()=>{if(u!=="system"){B(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:Z})=>{B(Z?"dark":"light")})}catch{W.addListener(({matches:J})=>{try{B(J?"dark":"light")}catch(ge){console.error(ge)}})}},[u]),L.useEffect(()=>{E.length<=1&&I(!1)},[E]),L.useEffect(()=>{let W=Z=>{var J,ge;s.every(Re=>Z[Re]||Z.code===Re)&&(I(!0),(J=G.current)==null||J.focus()),Z.code==="Escape"&&(document.activeElement===G.current||(ge=G.current)!=null&&ge.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[s]),L.useEffect(()=>{if(G.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,D.current=!1)}},[G.current]),L.createElement("section",{ref:t,"aria-label":`${S} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((W,Z)=>{var J;let[ge,Re]=W.split("-");return E.length?L.createElement("ol",{key:W,dir:b==="auto"?$y():b,tabIndex:-1,ref:G,className:a,"data-sonner-toaster":!0,"data-theme":q,"data-y-position":ge,"data-lifted":M&&E.length>1&&!i,"data-x-position":Re,style:{"--front-toast-height":`${((J=A[0])==null?void 0:J.height)||0}px`,"--width":`${QR}px`,"--gap":`${y}px`,...p,...rj(l,c)},onBlur:F=>{D.current&&!F.currentTarget.contains(F.relatedTarget)&&(D.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))}
vendor: 4,894 bytes, line 236
236,onFocus:F=>{F.target instanceof HTMLElement&&F.target.dataset.dismissible==="false"||D.current||(D.current=!0,R.current=F.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{H||I(!1)},onDragEnd:()=>I(!1),onPointerDown:F=>{F.target instanceof HTMLElement&&F.target.dataset.dismissible==="false"||N(!0)},onPointerUp:()=>N(!1)},E.filter(F=>!F.position&&Z===0||F.position===W).map((F,ue)=>{var je,le;return L.createElement(nj,{key:F.id,icons:v,index:ue,toast:F,defaultRichColors:d,duration:(je=m==null?void 0:m.duration)!=null?je:f,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:w,closeButton:(le=m==null?void 0:m.closeButton)!=null?le:o,interacting:H,position:W,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:K,toasts:E.filter(se=>se.position==F.position),heights:A.filter(se=>se.position==F.position),setHeights:P,expandByDefault:i,gap:y,loadingIcon:g,expanded:M,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const ij=({...e})=>{const{theme:t="system"}=jR();return h.jsx(sj,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var oj=fp[" useId ".trim().toString()]||(()=>{}),aj=0;function hm(e){const[t,n]=x.useState(oj());return tt(()=>{n(r=>r??String(aj++))},[e]),t?`radix-${t}`:""}const lj=["top","right","bottom","left"],Br=Math.min,Tt=Math.max,Dc=Math.round,xl=Math.floor,Ur=e=>({x:e,y:e}),cj={left:"right",right:"left",bottom:"top",top:"bottom"},uj={start:"end",end:"start"};function lf(e,t,n){return Tt(e,Br(t,n))}function Xn(e,t){return typeof e=="function"?e(t):e}function Zn(e){return e.split("-")[0]}function oo(e){return e.split("-")[1]}function fm(e){return e==="x"?"y":"x"}function pm(e){return e==="y"?"height":"width"}function Vr(e){return["top","bottom"].includes(Zn(e))?"y":"x"}function mm(e){return fm(Vr(e))}function dj(e,t,n){n===void 0&&(n=!1);const r=oo(e),s=mm(e),i=pm(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=$c(o)),[o,$c(o)]}function hj(e){const t=$c(e);return[cf(e),t,cf(t)]}function cf(e){return e.replace(/start|end/g,t=>uj[t])}function fj(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 pj(e,t,n,r){const s=oo(e);let i=fj(Zn(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(cf)))),i}function $c(e){return e.replace(/left|right|bottom|top/g,t=>cj[t])}function mj(e){return{top:0,right:0,bottom:0,left:0,...e}}function P1(e){return typeof e!="number"?mj(e):{top:e,right:e,bottom:e,left:e}}function Fc(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 Fy(e,t,n){let{reference:r,floating:s}=e;const i=Vr(t),o=mm(t),a=pm(o),l=Zn(t),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(oo(t)){case"start":p[o]-=f*(n&&c?-1:1);break;case"end":p[o]+=f*(n&&c?-1:1);break}return p}const gj=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 c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Fy(c,r,l),f=r,p={},w=0;for(let m=0;m<a.length;m++){const{name:b,fn:y}=a[m],{x:g,y:v,data:S,reset:k}=await y({x:u,y:d,initialPlacement:r,placement:f,strategy:s,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});u=g??u,d=v??d,p={...p,[b]:{...p[b],...S}},k&&w<=50&&(w++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(c=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:u,y:d}=Fy(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:s,middlewareData:p}};async function xa(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Xn(t,e),w=P1(p),b=a[f?d==="floating"?"reference":"floating":d],y=Fc(await i.getClippingRect
vendor: 9,182 bytes, line 236
236({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),g=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},k=Fc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:v,strategy:l}):g);return{top:(y.top-k.top+w.top)/S.y,bottom:(k.bottom-y.bottom+w.bottom)/S.y,left:(y.left-k.left+w.left)/S.x,right:(k.right-y.right+w.right)/S.x}}const yj=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:c,padding:u=0}=Xn(e,t)||{};if(c==null)return{};const d=P1(u),f={x:n,y:r},p=mm(s),w=pm(p),m=await o.getDimensions(c),b=p==="y",y=b?"top":"left",g=b?"bottom":"right",v=b?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[p]-f[p]-i.floating[w],k=f[p]-i.reference[p],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let C=E?E[v]:0;(!C||!await(o.isElement==null?void 0:o.isElement(E)))&&(C=a.floating[v]||i.floating[w]);const T=S/2-k/2,A=C/2-m[w]/2-1,P=Br(d[y],A),M=Br(d[g],A),I=P,H=C-m[w]-M,N=C/2-m[w]/2+T,q=lf(I,N,H),B=!l.arrow&&oo(s)!=null&&N!==q&&i.reference[w]/2-(N<I?P:M)-m[w]/2<0,G=B?N<I?N-I:N-H:0;return{[p]:f[p]+G,data:{[p]:q,centerOffset:N-q-G,...B&&{alignmentOffset:G}},reset:B}}}),vj=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:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...b}=Xn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Zn(s),g=Vr(a),v=Zn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=f||(v||!m?[$c(a)]:hj(a)),E=w!=="none";!f&&E&&k.push(...pj(a,m,w,S));const C=[a,...k],T=await xa(t,b),A=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&A.push(T[y]),d){const N=dj(s,o,S);A.push(T[N[0]],T[N[1]])}if(P=[...P,{placement:s,overflows:A}],!A.every(N=>N<=0)){var M,I;const N=(((M=i.flip)==null?void 0:M.index)||0)+1,q=C[N];if(q)return{data:{index:N,overflows:P},reset:{placement:q}};let B=(I=P.filter(G=>G.overflows[0]<=0).sort((G,_)=>G.overflows[1]-_.overflows[1])[0])==null?void 0:I.placement;if(!B)switch(p){case"bestFit":{var H;const G=(H=P.filter(_=>{if(E){const R=Vr(_.placement);return R===g||R==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(R=>R>0).reduce((R,D)=>R+D,0)]).sort((_,R)=>_[1]-R[1])[0])==null?void 0:H[0];G&&(B=G);break}case"initialPlacement":B=a;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function By(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Uy(e){return lj.some(t=>e[t]>=0)}const wj=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Xn(e,t);switch(r){case"referenceHidden":{const i=await xa(t,{...s,elementContext:"reference"}),o=By(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Uy(o)}}}case"escaped":{const i=await xa(t,{...s,altBoundary:!0}),o=By(i,n.floating);return{data:{escapedOffsets:o,escaped:Uy(o)}}}default:return{}}}}};async function xj(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Zn(n),a=oo(n),l=Vr(n)==="y",c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=Xn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof w=="number"&&(p=a==="end"?w*-1:w),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const bj=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 xj(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}}}}},Sj=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:b=>{let{x:y,y:g}=b;return{x:y,y:g}}},...l}=Xn(e,t),c={x:n,y:r},u=await xa(t,l),d=Vr(Zn(s)),f=fm(d);let p=c[f],w=c[d];if(i){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",g=p+u[b],v=p-u[y];p=lf(g,p,v)}if(o){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",g=w+u[b],v=w-u[y];w=lf(g,w,v)}const m=a.fn({...t,[f]:p,[d]:w});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:o}}}}}},kj=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:c=!0}=Xn(e,t),u={x:n,y:r},d=Vr(s),f=fm(d);let p=u[f],w=u[d];const m=Xn(a,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const v=f==="y"?"height":"width",S=i.reference[f]-i.floating[v]+b.mainAxis,k=i.reference[f]+i.reference[v]-b.mainAxis;p<S?p=S:p>k&&(p=k)}if(c){var y,g;const v=f==="y"?"width":"height",S=["top","left"].includes(Zn(s)),k=i.reference[d]-i.floating[v]+(S&&((y=o.offset)==null?void 0:y[d])||0)+(S?0:b.crossAxis),E=i.reference[d]+i.reference[v]+(S?0:((g=o.offset)==null?void 0:g[d])||0)-(S?b.crossAxis:0);w<k?w=k:w>E&&(w=E)}return{[f]:p,[d]:w}}}},Ej=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=()=>{},...c}=Xn(e,t),u=await xa(t,c),d=Zn(s),f=oo(s),p=Vr(s)==="y",{width:w,height:m}=i.floating;let b,y;d==="top"||d==="bottom"?(b=d,y=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,b=f==="end"?"top":"bottom");const g=m-u.top-u.bottom,v=w-u.left-u.right,S=Br(m-u[b],g),k=Br(w-u[y],v),E=!t.middlewareData.shift;let C=S,T=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=g),E&&!f){const P=Tt(u.left,0),M=Tt(u.right,0),I=Tt(u.top,0),H=Tt(u.bottom,0);p?T=w-2*(P!==0||M!==0?P+M:Tt(u.left,u.right)):C=m-2*(I!==0||H!==0?I+H:Tt(u.top,u.bottom))}await l({...t,availableWidth:T,availableHeight:C});const A=await o.getDimensions(a.floating);return w!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function _u(){return typeof window<"u"}function ao(e){return A1(e)?(e.nodeName||"").toLowerCase():"#document"}function jt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ln(e){var t;return(t=(A1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function A1(e){return _u()?e instanceof Node||e instanceof jt(e).Node:!1}function gn(e){return _u()?e instanceof Element||e instanceof jt(e).Element:!1}function On(e){return _u()?e instanceof HTMLElement||e instanceof jt(e).HTMLElement:!1}function Vy(e){return!_u()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jt(e).ShadowRoot}function Ha(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=yn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Cj(e){return["table","td","th"].includes(ao(e))}function Pu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function gm(e){const t=ym(),n=gn(e)?yn(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 Tj(e){let t=zr(e);for(;On(t)&&!qi(t);){if(gm(t))return t;if(Pu(t))return null;t=zr(t)}return null}function ym(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qi(e){return["html","body","#document"].includes(ao(e))}function yn(e){return jt(e).getComputedStyle(e)}function Au(e){return gn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zr(e){if(ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vy(e)&&e.host||Ln(e);return Vy(t)?t.host:t}function R1(e){const t=zr(e);return qi(t)?e.ownerDocument?e.ownerDocument.body:e.body:On(t)&&Ha(t)?t:R1(t)}function ba(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=R1(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=jt(s);if(i){const a=uf(o);return t.concat(o,o.visualViewport||[],Ha(s)?s:[],a&&n?ba(a):[])}return t.concat(s,ba(s,[],n))}function uf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function j1(e){const t=yn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=On(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Dc(n)!==i||Dc(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function vm(e){return gn(e)?e:e.contextElement}function _i(e){const t=vm(e);
vendor: 6,573 bytes, line 236
236if(!On(t))return Ur(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=j1(t);let o=(i?Dc(n.width):n.width)/r,a=(i?Dc(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const _j=Ur(0);function N1(e){const t=jt(e);return!ym()||!t.visualViewport?_j:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pj(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==jt(e)?!1:t}function Os(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=vm(e);let o=Ur(1);t&&(r?gn(r)&&(o=_i(r)):o=_i(e));const a=Pj(i,n,r)?N1(i):Ur(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const f=jt(i),p=r&&gn(r)?jt(r):r;let w=f,m=uf(w);for(;m&&r&&p!==w;){const b=_i(m),y=m.getBoundingClientRect(),g=yn(m),v=y.left+(m.clientLeft+parseFloat(g.paddingLeft))*b.x,S=y.top+(m.clientTop+parseFloat(g.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=v,c+=S,w=jt(m),m=uf(w)}}return Fc({width:u,height:d,x:l,y:c})}function Aj(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=Ln(r),a=t?Pu(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Ur(1);const u=Ur(0),d=On(r);if((d||!d&&!i)&&((ao(r)!=="body"||Ha(o))&&(l=Au(r)),On(r))){const f=Os(r);c=_i(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function Rj(e){return Array.from(e.getClientRects())}function df(e,t){const n=Au(e).scrollLeft;return t?t.left+n:Os(Ln(e)).left+n}function jj(e){const t=Ln(e),n=Au(e),r=e.ownerDocument.body,s=Tt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Tt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+df(e);const a=-n.scrollTop;return yn(r).direction==="rtl"&&(o+=Tt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function Nj(e,t){const n=jt(e),r=Ln(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=ym();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function Oj(e,t){const n=Os(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=On(e)?_i(e):Ur(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function zy(e,t,n){let r;if(t==="viewport")r=Nj(e,n);else if(t==="document")r=jj(Ln(e));else if(gn(t))r=Oj(t,n);else{const s=N1(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return Fc(r)}function O1(e,t){const n=zr(e);return n===t||!gn(n)||qi(n)?!1:yn(n).position==="fixed"||O1(n,t)}function Ij(e,t){const n=t.get(e);if(n)return n;let r=ba(e,[],!1).filter(a=>gn(a)&&ao(a)!=="body"),s=null;const i=yn(e).position==="fixed";let o=i?zr(e):e;for(;gn(o)&&!qi(o);){const a=yn(o),l=gm(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Ha(o)&&!l&&O1(e,o))?r=r.filter(u=>u!==o):s=a,o=zr(o)}return t.set(e,r),r}function Lj(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Pu(t)?[]:Ij(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=zy(t,u,s);return c.top=Tt(d.top,c.top),c.right=Br(d.right,c.right),c.bottom=Br(d.bottom,c.bottom),c.left=Tt(d.left,c.left),c},zy(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Mj(e){const{width:t,height:n}=j1(e);return{width:t,height:n}}function Dj(e,t,n){const r=On(t),s=Ln(t),i=n==="fixed",o=Os(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ur(0);if(r||!r&&!i)if((ao(t)!=="body"||Ha(s))&&(a=Au(t)),r){const p=Os(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else s&&(l.x=df(s));let c=0,u=0;if(s&&!r&&!i){const p=s.getBoundingClientRect();u=p.top+a.scrollTop,c=p.left+a.scrollLeft-df(s,p)}const d=o.left+a.scrollLeft-l.x-c,f=o.top+a.scrollTop-l.y-u;return{x:d,y:f,width:o.width,height:o.height}}function Nd(e){return yn(e).position==="static"}function Wy(e,t){if(!On(e)||yn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ln(e)===n&&(n=n.ownerDocument.body),n}function I1(e,t){const n=jt(e);if(Pu(e))return n;if(!On(e)){let s=zr(e);for(;s&&!qi(s);){if(gn(s)&&!Nd(s))return s;s=zr(s)}return n}let r=Wy(e,t);for(;r&&Cj(r)&&Nd(r);)r=Wy(r,t);return r&&qi(r)&&Nd(r)&&!gm(r)?n:r||Tj(e)||n}const $j=async function(e){const t=this.getOffsetParent||I1,n=this.getDimensions,r=await n(e.floating);return{reference:Dj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fj(e){return yn(e).direction==="rtl"}const Bj={convertOffsetParentRelativeRectToViewportRelativeRect:Aj,getDocumentElement:Ln,getClippingRect:Lj,getOffsetParent:I1,getElementRects:$j,getClientRects:Rj,getDimensions:Mj,getScale:_i,isElement:gn,isRTL:Fj};function Uj(e,t){let n=null,r;const s=Ln(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:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const p=xl(u),w=xl(s.clientWidth-(c+d)),m=xl(s.clientHeight-(u+f)),b=xl(c),g={rootMargin:-p+"px "+-w+"px "+-m+"px "+-b+"px",threshold:Tt(0,Br(1,l))||1};let v=!0;function S(k){const E=k[0].intersectionRatio;if(E!==l){if(!v)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(S,{...g,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,g)}n.observe(e)}return o(!0),i}function Vj(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,c=vm(e),u=s||i?[...c?ba(c):[],...ba(t)]:[];u.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=c&&a?Uj(c,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(y=>{let[g]=y;g&&g.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let w,m=l?Os(e):null;l&&b();function b(){const y=Os(e);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&n(),m=y,w=requestAnimationFrame(b)}return n(),()=>{var y;u.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(w)}}const zj=bj,Wj=Sj,Hj=vj,qj=Ej,Kj=wj,Hy=yj,Gj=kj,Yj=(e,t,n)=>{const r=new Map,s={platform:Bj,...n},i={...s.platform,_c:r};return gj(e,t,{...s,platform:i})};
vendor: 4,235 bytes, line 236
236var Zl=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Bc(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(!Bc(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)&&!Bc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function L1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qy(e,t){const n=L1(e);return Math.round(t*n)/n}function Od(e){const t=x.useRef(e);return Zl(()=>{t.current=e}),t}function Jj(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:c}=e,[u,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=x.useState(r);Bc(f,r)||p(r);const[w,m]=x.useState(null),[b,y]=x.useState(null),g=x.useCallback(_=>{_!==E.current&&(E.current=_,m(_))},[]),v=x.useCallback(_=>{_!==C.current&&(C.current=_,y(_))},[]),S=i||w,k=o||b,E=x.useRef(null),C=x.useRef(null),T=x.useRef(u),A=l!=null,P=Od(l),M=Od(s),I=Od(c),H=x.useCallback(()=>{if(!E.current||!C.current)return;const _={placement:t,strategy:n,middleware:f};M.current&&(_.platform=M.current),Yj(E.current,C.current,_).then(R=>{const D={...R,isPositioned:I.current!==!1};N.current&&!Bc(T.current,D)&&(T.current=D,$s.flushSync(()=>{d(D)}))})},[f,t,n,M,I]);Zl(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(_=>({..._,isPositioned:!1})))},[c]);const N=x.useRef(!1);Zl(()=>(N.current=!0,()=>{N.current=!1}),[]),Zl(()=>{if(S&&(E.current=S),k&&(C.current=k),S&&k){if(P.current)return P.current(S,k,H);H()}},[S,k,H,P,A]);const q=x.useMemo(()=>({reference:E,floating:C,setReference:g,setFloating:v}),[g,v]),B=x.useMemo(()=>({reference:S,floating:k}),[S,k]),G=x.useMemo(()=>{const _={position:n,left:0,top:0};if(!B.floating)return _;const R=qy(B.floating,u.x),D=qy(B.floating,u.y);return a?{..._,transform:"translate("+R+"px, "+D+"px)",...L1(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:D}},[n,a,B.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:H,refs:q,elements:B,floatingStyles:G}),[u,H,q,B,G])}const Qj=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?Hy({element:r.current,padding:s}).fn(n):{}:r?Hy({element:r,padding:s}).fn(n):{}}}},Xj=(e,t)=>({...zj(e),options:[e,t]}),Zj=(e,t)=>({...Wj(e),options:[e,t]}),eN=(e,t)=>({...Gj(e),options:[e,t]}),tN=(e,t)=>({...Hj(e),options:[e,t]}),nN=(e,t)=>({...qj(e),options:[e,t]}),rN=(e,t)=>({...Kj(e),options:[e,t]}),sN=(e,t)=>({...Qj(e),options:[e,t]});var iN="Arrow",M1=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return h.jsx(ce.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});M1.displayName=iN;var oN=M1;function D1(e){const[t,n]=x.useState(void 0);return tt(()=>{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,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.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 wm="Popper",[$1,Ru]=ro(wm),[aN,F1]=$1(wm),B1=e=>{const{__scopePopper:t,children:n}=e,[r,s]=x.useState(null);return h.jsx(aN,{scope:t,anchor:r,onAnchorChange:s,children:n})};B1.displayName=wm;var U1="PopperAnchor",V1=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=F1(U1,n),o=x.useRef(null),a=Ce(t,o);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:h.jsx(ce.div,{...s,ref:a})});V1.displayName=U1;var xm="PopperContent",[lN,cN]=$1(xm),z1=x.forwardRef((e,t)=>
vendor: 4,211 bytes, line 236
236{var F,ue,je,le,se,oe;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:w,...m}=e,b=F1(xm,n),[y,g]=x.useState(null),v=Ce(t,nt=>g(nt)),[S,k]=x.useState(null),E=D1(S),C=(E==null?void 0:E.width)??0,T=(E==null?void 0:E.height)??0,A=r+(i!=="center"?"-"+i:""),P=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},M=Array.isArray(c)?c:[c],I=M.length>0,H={padding:P,boundary:M.filter(dN),altBoundary:I},{refs:N,floatingStyles:q,placement:B,isPositioned:G,middlewareData:_}=Jj({strategy:"fixed",placement:A,whileElementsMounted:(...nt)=>Vj(...nt,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[Xj({mainAxis:s+T,alignmentAxis:o}),l&&Zj({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?eN():void 0,...H}),l&&tN({...H}),nN({...H,apply:({elements:nt,rects:Lt,availableWidth:ts,availableHeight:nr})=>{const{width:ns,height:yo}=Lt.reference,Fs=nt.floating.style;Fs.setProperty("--radix-popper-available-width",`${ts}px`),Fs.setProperty("--radix-popper-available-height",`${nr}px`),Fs.setProperty("--radix-popper-anchor-width",`${ns}px`),Fs.setProperty("--radix-popper-anchor-height",`${yo}px`)}}),S&&sN({element:S,padding:a}),hN({arrowWidth:C,arrowHeight:T}),f&&rN({strategy:"referenceHidden",...H})]}),[R,D]=q1(B),K=mn(w);tt(()=>{G&&(K==null||K())},[G,K]);const W=(F=_.arrow)==null?void 0:F.x,Z=(ue=_.arrow)==null?void 0:ue.y,J=((je=_.arrow)==null?void 0:je.centerOffset)!==0,[ge,Re]=x.useState();return tt(()=>{y&&Re(window.getComputedStyle(y).zIndex)},[y]),h.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:G?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(le=_.transformOrigin)==null?void 0:le.x,(se=_.transformOrigin)==null?void 0:se.y].join(" "),...((oe=_.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(lN,{scope:n,placedSide:R,onArrowChange:k,arrowX:W,arrowY:Z,shouldHideArrow:J,children:h.jsx(ce.div,{"data-side":R,"data-align":D,...m,ref:v,style:{...m.style,animation:G?void 0:"none"}})})})});z1.displayName=xm;var W1="PopperArrow",uN={top:"bottom",right:"left",bottom:"top",left:"right"},H1=x.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=cN(W1,r),o=uN[i.placedSide];return h.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:h.jsx(oN,{...s,ref:n,style:{...s.style,display:"block"}})})});H1.displayName=W1;function dN(e){return e!==null}var hN=e=>({name:"transformOrigin",options:e,fn(t){var b,y,g;const{placement:n,rects:r,middlewareData:s}=t,o=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=q1(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((y=s.arrow)==null?void 0:y.x)??0)+a/2,p=(((g=s.arrow)==null?void 0:g.y)??0)+l/2;let w="",m="";return c==="bottom"?(w=o?d:`${f}px`,m=`${-l}px`):c==="top"?(w=o?d:`${f}px`,m=`${r.floating.height+l}px`):c==="right"?(w=`${-l}px`,m=o?d:`${p}px`):c==="left"&&(w=`${r.floating.width+l}px`,m=o?d:`${p}px`),{data:{x:w,y:m}}}});function q1(e){const[t,n="center"]=e.split("-");return[t,n]}var fN=B1,K1=V1,G1=z1,Y1=H1,[ju,iB]=ro("Tooltip",[Ru]),bm=Ru(),J1="TooltipProvider",pN=700,Ky="tooltip.open",[mN,Q1]=ju(J1),X1=e=>{const{__scopeTooltip:t,delayDuration:n=pN,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=x.useRef(!0),a=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),h.jsx(mN,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>
vendor: 5,838 bytes, line 236
236o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:i})};X1.displayName=J1;var Z1="Tooltip",[oB,Nu]=ju(Z1),hf="TooltipTrigger",gN=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Nu(hf,n),i=Q1(hf,n),o=bm(n),a=x.useRef(null),l=Ce(t,a,s.onTriggerChange),c=x.useRef(!1),u=x.useRef(!1),d=x.useCallback(()=>c.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),h.jsx(K1,{asChild:!0,...o,children:h.jsx(ce.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:te(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:te(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:te(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:te(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:te(e.onBlur,s.onClose),onClick:te(e.onClick,s.onClose)})})});gN.displayName=hf;var yN="TooltipPortal",[aB,vN]=ju(yN,{forceMount:void 0}),Ki="TooltipContent",eS=x.forwardRef((e,t)=>{const n=vN(Ki,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=Nu(Ki,e.__scopeTooltip);return h.jsx(Eu,{present:r||o.open,children:o.disableHoverableContent?h.jsx(tS,{side:s,...i,ref:t}):h.jsx(wN,{side:s,...i,ref:t})})}),wN=x.forwardRef((e,t)=>{const n=Nu(Ki,e.__scopeTooltip),r=Q1(Ki,e.__scopeTooltip),s=x.useRef(null),i=Ce(t,s),[o,a]=x.useState(null),{trigger:l,onClose:c}=n,u=s.current,{onPointerInTransitChange:d}=r,f=x.useCallback(()=>{a(null),d(!1)},[d]),p=x.useCallback((w,m)=>{const b=w.currentTarget,y={x:w.clientX,y:w.clientY},g=EN(y,b.getBoundingClientRect()),v=CN(y,g),S=TN(m.getBoundingClientRect()),k=PN([...v,...S]);a(k),d(!0)},[d]);return x.useEffect(()=>()=>f(),[f]),x.useEffect(()=>{if(l&&u){const w=b=>p(b,u),m=b=>p(b,l);return l.addEventListener("pointerleave",w),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",w),u.removeEventListener("pointerleave",m)}}},[l,u,p,f]),x.useEffect(()=>{if(o){const w=m=>{const b=m.target,y={x:m.clientX,y:m.clientY},g=(l==null?void 0:l.contains(b))||(u==null?void 0:u.contains(b)),v=!_N(y,o);g?f():v&&(f(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,u,o,c,f]),h.jsx(tS,{...e,ref:i})}),[xN,bN]=ju(Z1,{isInside:!1}),SN=AP("TooltipContent"),tS=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=Nu(Ki,n),c=bm(n),{onClose:u}=l;return x.useEffect(()=>(document.addEventListener(Ky,u),()=>document.removeEventListener(Ky,u)),[u]),x.useEffect(()=>{if(l.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),h.jsx(ku,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:h.jsxs(G1,{"data-state":l.stateAttribute,...c,...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:[h.jsx(SN,{children:r}),h.jsx(xN,{scope:n,isInside:!0,children:h.jsx(QP,{id:l.contentId,role:"tooltip",children:s||r})})]})})});eS.displayName=Ki;var nS="TooltipArrow",kN=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=bm(n);return bN(nS,n).isInside?null:h.jsx(Y1,{...s,...r,ref:t})});kN.displayName=nS;function EN(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 CN(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 TN(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 _N(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],c=a.x,u=a.y,d=l.x,f=l.y;u>r!=f>r&&n<(d-c)*(r-u)/(f-u)+c&&(s=!s)}return s}function PN(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),AN(t)}function AN(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 RN=X1,rS=eS;const jN=RN,NN=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>h.jsx(rS,{ref:r,sideOffset:t,className:Be("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
236de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));NN.displayName=rS.displayName;var Ou=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(){}},Iu=typeof window>"u"||"Deno"in globalThis;function rn(){}function ON(e,t){return typeof e=="function"?e(t):e}function IN(e){return typeof e=="number"&&e>=0&&e!==1/0}function LN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ff(e,t){return typeof e=="function"?e(t):e}function MN(e,t){return typeof e=="function"?e(t):e}function Gy(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Sm(o,t.options))return!1}else if(!ka(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 Yy(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Sa(t.options.mutationKey)!==Sa(i))return!1}else if(!ka(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Sm(e,t){return((t==null?void 0:t.queryKeyHashFn)||Sa)(e)}function Sa(e){return JSON.stringify(e,(t,n)=>pf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function ka(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ka(e[n],t[n])):!1}function sS(e,t){if(e===t)return e;const n=Jy(e)&&Jy(t);if(n||pf(e)&&pf(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 c=0;for(let u=0;u<o;u++){const d=n?u:i[u];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=sS(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function Jy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pf(e){if(!Qy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;
vendor: 21,690 bytes, line 236
236return!(!Qy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Qy(e){return Object.prototype.toString.call(e)==="[object Object]"}function DN(e){return new Promise(t=>{setTimeout(t,e)})}function $N(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?sS(e,t):t}function FN(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function BN(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var km=Symbol();function iS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===km?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var vs,wr,Ri,mw,UN=(mw=class extends Ou{constructor(){super();ae(this,vs);ae(this,wr);ae(this,Ri);X(this,Ri,t=>{if(!Iu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,wr)||this.setEventListener(j(this,Ri))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,wr))==null||t.call(this),X(this,wr,void 0))}setEventListener(t){var n;X(this,Ri,t),(n=j(this,wr))==null||n.call(this),X(this,wr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){j(this,vs)!==t&&(X(this,vs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,vs)=="boolean"?j(this,vs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},vs=new WeakMap,wr=new WeakMap,Ri=new WeakMap,mw),oS=new UN,ji,xr,Ni,gw,VN=(gw=class extends Ou{constructor(){super();ae(this,ji,!0);ae(this,xr);ae(this,Ni);X(this,Ni,t=>{if(!Iu&&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(){j(this,xr)||this.setEventListener(j(this,Ni))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,xr))==null||t.call(this),X(this,xr,void 0))}setEventListener(t){var n;X(this,Ni,t),(n=j(this,xr))==null||n.call(this),X(this,xr,t(this.setOnline.bind(this)))}setOnline(t){j(this,ji)!==t&&(X(this,ji,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return j(this,ji)}},ji=new WeakMap,xr=new WeakMap,Ni=new WeakMap,gw),Uc=new VN;function zN(){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 WN(e){return Math.min(1e3*2**e,3e4)}function aS(e){return(e??"online")==="online"?Uc.isOnline():!0}var lS=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Id(e){return e instanceof lS}function cS(e){let t=!1,n=0,r=!1,s;const i=zN(),o=m=>{var b;r||(f(new lS(m)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>oS.isFocused()&&(e.networkMode==="always"||Uc.isOnline())&&e.canRun(),u=()=>aS(e.networkMode)&&e.canRun(),d=m=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,m),s==null||s(),i.resolve(m))},f=m=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,m),s==null||s(),i.reject(m))},p=()=>new Promise(m=>{var b;s=y=>{(r||c())&&m(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var m;s=void 0,r||(m=e.onContinue)==null||m.call(e)}),w=()=>{if(r)return;let m;const b=n===0?e.initialPromise:void 0;try{m=b??e.fn()}catch(y){m=Promise.reject(y)}Promise.resolve(m).then(d).catch(y=>{var E;if(r)return;const g=e.retry??(Iu?0:3),v=e.retryDelay??WN,S=typeof v=="function"?v(n,y):v,k=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,y);if(t||!k){f(y);return}n++,(E=e.onFail)==null||E.call(e,n,y),DN(S).then(()=>c()?void 0:p()).then(()=>{t?f(y):w()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?w():p().then(w),i)}}var HN=e=>setTimeout(e,0);function qN(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=HN;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 dt=qN(),ws,yw,uS=(yw=class{constructor(){ae(this,ws)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),IN(this.gcTime)&&X(this,ws,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Iu?1/0:5*60*1e3))}clearGcTimeout(){j(this,ws)&&(clearTimeout(j(this,ws)),X(this,ws,void 0))}},ws=new WeakMap,yw),Oi,xs,$t,bs,ot,Da,Ss,on,$n,vw,KN=(vw=class extends uS{constructor(t){super();ae(this,on);ae(this,Oi);ae(this,xs);ae(this,$t);ae(this,bs);ae(this,ot);ae(this,Da);ae(this,Ss);X(this,Ss,!1),X(this,Da,t.defaultOptions),this.setOptions(t.options),this.observers=[],X(this,bs,t.client),X(this,$t,j(this,bs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,X(this,Oi,YN(this.options)),this.state=t.state??j(this,Oi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,ot))==null?void 0:t.promise}setOptions(t){this.options={...j(this,Da),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,$t).remove(this)}setData(t,n){const r=$N(this.state.data,t,this.options);return rt(this,on,$n).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){rt(this,on,$n).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=j(this,ot))==null?void 0:r.promise;return(s=j(this,ot))==null||s.cancel(t),n?n.then(rn).catch(rn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,Oi))}isActive(){return this.observers.some(t=>MN(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===km||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ff(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:!LN(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,ot))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,ot))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,$t).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(j(this,ot)&&(j(this,Ss)?j(this,ot).cancel({revert:!0}):j(this,ot).cancelRetry()),this.scheduleGc()),j(this,$t).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||rt(this,on,$n).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,ot))return j(this,ot).continueRetry(),j(this,ot).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(X(this,Ss,!0),r.signal)})},i=()=>{const f=iS(this.options,n),w=(()=>{const m={client:j(this,bs),queryKey:this.queryKey,meta:this.meta};return s(m),m})();return X(this,Ss,!1),this.options.persister?this.options.persister(f,w,this):f(w)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,bs),state:this.state,fetchFn:i};return s(f),f})();(c=this.options.behavior)==null||c.onFetch(a,this),X(this,xs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&rt(this,on,$n).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var p,w,m,b;Id(f)&&f.silent||rt(this,on,$n).call(this,{type:"error",error:f}),Id(f)||((w=(p=j(this,$t).config).onError)==null||w.call(p,f,this),(b=(m=j(this,$t).config).onSettled)==null||b.call(m,this.state.data,f,this)),this.scheduleGc()};return X(this,ot,cS({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,w,m,b;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(y){l(y);return}(w=(p=j(this,$t).config).onSuccess)==null||w.call(p,f,this),(b=(m=j(this,$t).config).onSettled)==null||b.call(m,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,p)=>{rt(this,on,$n).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{rt(this,on,$n).call(this,{type:"pause"})},onContinue:()=>{rt(this,on,$n).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),j(this,ot).start()}},Oi=new WeakMap,xs=new WeakMap,$t=new WeakMap,bs=new WeakMap,ot=new WeakMap,Da=new WeakMap,Ss=new WeakMap,on=new WeakSet,$n=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,...GN(r.data,this.options),fetchMeta:t.meta??null};case"success":return X(this,xs,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 Id(s)&&s.revert&&j(this,xs)?{...j(this,xs),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),dt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),j(this,$t).notify({query:this,type:"updated",action:t})})},vw);function GN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:aS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function YN(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 kn,ww,JN=(ww=class extends Ou{constructor(t={}){super();ae(this,kn);this.config=t,X(this,kn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Sm(s,n);let o=this.get(i);return o||(o=new KN({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){j(this,kn).has(t.queryHash)||(j(this,kn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=j(this,kn).get(t.queryHash);n&&(t.destroy(),n===t&&j(this,kn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){dt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,kn).get(t)}getAll(){return[...j(this,kn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Gy(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Gy(t,r)):n}notify(t){dt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){dt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){dt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},kn=new WeakMap,ww),En,ct,ks,Cn,cr,xw,QN=(xw=class extends uS{constructor(t){super();ae(this,Cn);ae(this,En);ae(this,ct);ae(this,ks);this.mutationId=t.mutationId,X(this,ct,t.mutationCache),X(this,En,[]),this.state=t.state||XN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,En).includes(t)||(j(this,En).push(t),this.clearGcTimeout(),j(this,ct).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){X(this,En,j(this,En).filter(n=>n!==t)),this.scheduleGc(),j(this,ct).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,En).length||(this.state.status==="pending"?this.scheduleGc():j(this,ct).remove(this))}continue(){var t;return((t=j(this,ks))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,c,u,d,f,p,w,m,b,y,g,v,S,k,E,C,T;const n=()=>{rt(this,Cn,cr).call(this,{type:"continue"})};X(this,ks,cS({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,P)=>{rt(this,Cn,cr).call(this,{type:"failed",failureCount:A,error:P})},onPause:()=>{rt(this,Cn,cr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,ct).canRun(this)}));const r=this.state.status==="pending",s=!j(this,ks).canStart();try{if(r)n();else{rt(this,Cn,cr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=j(this,ct).config).onMutate)==null?void 0:o.call(i,t,this));const P=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));P!==this.state.context&&rt(this,Cn,cr).call(this,{type:"pending",context:P,variables:t,isPaused:s})}const A=await j(this,ks).start();return await((u=(c=j(this,ct).config).onSuccess)==null?void 0:u.call(c,A,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,A,t,this.state.context)),await((w=(p=j(this,ct).config).onSettled)==null?void 0:w.call(p,A,null,this.state.variables,this.state.context,this)),await((b=(m=this.options).onSettled)==null?void 0:b.call(m,A,null,t,this.state.context)),rt(this,Cn,cr).call(this,{type:"success",data:A}),A}catch(A){try{throw await((g=(y=j(this,ct).config).onError)==null?void 0:g.call(y,A,t,this.state.context,this)),await((S=(v=this.options).onError)==null?void 0:S.call(v,A,t,this.state.context)),await((E=(k=j(this,ct).config).onSettled)==null?void 0:E.call(k,void 0,A,this.state.variables,this.state.context,this)),await((T=(C=this.options).onSettled)==null?void 0:T.call(C,void 0,A,t,this.state.context)),A}finally{rt(this,Cn,cr).call(this,{type:"error",error:A})}}finally{j(this,ct).runNext(this)}}},En=new WeakMap,ct=new WeakMap,ks=new WeakMap,Cn=new WeakSet,cr=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),dt.batch(()=>{j(this,En).forEach(r=>{r.onMutationUpdate(t)}),j(this,ct).notify({mutation:this,type:"updated",action:t})})},xw);function XN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wn,an,$a,bw,ZN=(bw=class extends Ou{constructor(t={}){super();ae(this,Wn);ae(this,an);ae(this,$a);this.config=t,X(this,Wn,new Set),X(this,an,new Map),X(this,$a,0)}build(t,n,r){const s=new QN({mutationCache:this,mutationId:++Za(this,$a)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){j(this,Wn).add(t);const n=bl(t);if(typeof n=="string"){const r=j(this,an).get(n);r?r.push(t):j(this,an).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,Wn).delete(t)){const n=bl(t);if(typeof n=="string"){const r=j(this,an).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&j(this,an).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=bl(t);if(typeof n=="string"){const r=j(this,an).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=bl(t);if(typeof n=="string"){const s=(r=j(this,an).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(){dt.batch(()=>{j(this,Wn).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,Wn).clear(),j(this,an).clear()})}getAll(){return Array.from(j(this,Wn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Yy(n,r))}findAll(t={}){return this.getAll().filter(n=>Yy(t,n))}notify(t){dt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return dt.batch(()=>Promise.all(t.map(n=>n.continue().catch(rn))))}},Wn=new WeakMap,an=new WeakMap,$a=new WeakMap,bw);function bl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Xy(e){return{onFetch:(t,n)=>{var u,d,f,p,w;const r=t.options,s=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const b=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},y=iS(t.options,t.fetchOptions),g=async(v,S,k)=>{if(m)return Promise.reject();if(S==null&&v.pages.length)return Promise.resolve(v);const C=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return b(M),M})(),T=await y(C),{maxPages:A}=t.options,P=k?BN:FN;return{pages:P(v.pages,T,A),pageParams:P(v.pageParams,S,A)}};if(s&&i.length){const v=s==="backward",S=v?e2:Zy,k={pages:i,pageParams:o},E=S(r,k);a=await g(k,E,v)}else{const v=e??i.length;do{const S=l===0?o[0]??r.initialPageParam:Zy(r,a);if(l>0&&S==null)break;a=await g(a,S),l++}while(l<v)}return a};t.options.persister?t.fetchFn=()=>{var m,b;return(b=(m=t.options).persister)==null?void 0:b.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Zy(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 e2(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 Ne,br,Sr,Ii,Li,kr,Mi,Di,Sw,t2=(Sw=class{constructor(e={}){ae(this,Ne);ae(this,br);ae(this,Sr);ae(this,Ii);ae(this,Li);ae(this,kr);ae(this,Mi);ae(this,Di);X(this,Ne,e.queryCache||new JN),X(this,br,e.mutationCache||new ZN),X(this,Sr,e.defaultOptions||{}),X(this,Ii,new Map),X(this,Li,new Map),X(this,kr,0)}mount(){Za(this,kr)._++,j(this,kr)===1&&(X(this,Mi,oS.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,Ne).onFocus())})),X(this,Di,Uc.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,Ne).onOnline())})))}unmount(){var e,t;Za(this,kr)._--,j(this,kr)===0&&((e=j(this,Mi))==null||e.call(this),X(this,Mi,void 0),(t=j(this,Di))==null||t.call(this),X(this,Di,void 0))}isFetching(e){return j(this,Ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,br).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,Ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=j(this,Ne).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ff(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return j(this,Ne).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=j(this,Ne).get(r.queryHash),i=s==null?void 0:s.state.data,o=ON(t,i);if(o!==void 0)return j(this,Ne).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return dt.batch(()=>j(this,Ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,Ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,Ne);dt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,Ne);return dt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=dt.batch(()=>j(this,Ne).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(rn).catch(rn)}invalidateQueries(e,t={}){return dt.batch(()=>(j(this,Ne).findAll(e).forEach(n=>
236{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=dt.batch(()=>j(this,Ne).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(rn)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(rn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,Ne).build(this,t);return n.isStaleByTime(ff(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(rn).catch(rn)}fetchInfiniteQuery(e){return e.behavior=Xy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(rn).catch(rn)}ensureInfiniteQueryData(e){return e.behavior=Xy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Uc.isOnline()?j(this,br).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,Ne)}getMutationCache(){return j(this,br)}getDefaultOptions(){return j(this,Sr)}setDefaultOptions(e){X(this,Sr,e)}setQueryDefaults(e,t){j(this,Ii).set(Sa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,Ii).values()],n={};return t.forEach(r=>{ka(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){j(this,Li).set(Sa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,Li).values()],n={};return t.forEach(r=>{ka(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,Sr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Sm(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===km&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,Sr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,Ne).clear(),j(this,br).clear()}},Ne=new WeakMap,br=new WeakMap,Sr=new WeakMap,Ii=new WeakMap,Li=new WeakMap,kr=new WeakMap,Mi=new WeakMap,Di=new WeakMap,Sw),n2=x.createContext(void 0),r2=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(n2.Provider,{value:e,children:t}));/** 237 * @remix-run/router v1.23.0 238 * 239 * Copyright (c) Remix Software Inc. 240 * 241 * This source code is licensed under the MIT license found in the 242 * LICENSE.md file in the root directory of this source tree. 243 * 244 * @license MIT 245 */function Ea(){return Ea=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},Ea.apply(this,arguments)}var Tr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Tr||(Tr={}));const ev="popstate";function s2(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return mf("",{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:Vc(s)}return o2(t,n,null,e)}function Me(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function i2(){return Math.random().toString(36).substr(2,8)}function tv(e,t){return{usr:e.state,key:e.key,idx:t}}function mf(e,t,n,r){return n===void 0&&(n=null),Ea({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?lo(t):t,{state:n,key:t&&t.key||r||i2()})}function Vc(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 lo(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 o2(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=Tr.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Ea({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){a=Tr.Pop;let b=u(),y=b==null?null:b-c;c=b,l&&l({action:a,location:m.location,delta:y})}function f(b,y){a=Tr.Push;let g=mf(m.location,b,y);c=u()+1;let v=tv(g,c),S=m.createHref(g);try{o.pushState(v,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(S)}i&&l&&l({action:a,location:m.location,delta:1})}function p(b,y){a=Tr.Replace;let g=mf(m.location,b,y);c=u();let v=tv(g,c),S=m.createHref(g);o.replaceState(v,"",S),i&&l&&l({action:a,location:m.location,delta:0})}function w(b){let y=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof b=="string"?b:Vc(b);return g=g.replace(/ $/,"%20"),Me(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}let m={get action(){return a},get location(){return e(s,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(ev,d),l=b,()=>{s.removeEventListener(ev,d),l=null}},createHref(b){return t(s,b)},createURL:w,encodeLocation(b){let y=w(b);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:p,go(b){return o.go(b)}};return m}var nv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(nv||(nv={}));function a2(e,t,n){return n===void 0&&(n="/"),l2(e,t,n,!1)}function l2(e,t,n,r){let s=typeof t=="string"?lo(t):t,i=Em(s.pathname||"/",n);if(i==null)return null;let o=hS(e);c2(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=x2(i);a=v2(o[l],c,r)}return a}function hS(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("/")&&(Me(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
245id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Mr([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Me(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),hS(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:g2(c,i.index),routesMeta:u})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of fS(i.path))s(i,o,l)}),t}function fS(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=fS(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 c2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:y2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const u2=/^:[\w-]+$/,d2=3,h2=2,f2=1,p2=10,m2=-2,rv=e=>e==="*";function g2(e,t){let n=e.split("/"),r=n.length;return n.some(rv)&&(r+=m2),t&&(r+=h2),n.filter(s=>!rv(s)).reduce((s,i)=>s+(u2.test(i)?d2:i===""?f2:p2),r)}function y2(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 v2(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",d=sv({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=sv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
vendor: 9,180 bytes, lines 245-254
245Object.assign(s,d.params),o.push({params:s,pathname:Mr([i,d.pathname]),pathnameBase:E2(Mr([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=Mr([i,d.pathnameBase]))}return o}function sv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=w2(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((c,u,d)=>{let{paramName:f,isOptional:p}=u;if(f==="*"){let m=a[d]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const w=a[d];return p&&!w?c[f]=void 0:c[f]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function w2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dS(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 x2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dS(!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 Em(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 b2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?lo(e):e;return{pathname:n?n.startsWith("/")?n:S2(n,t):t,search:C2(r),hash:T2(s)}}function S2(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 Ld(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 k2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Cm(e,t){let n=k2(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Tm(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=lo(e):(s=Ea({},e),Me(!s.pathname||!s.pathname.includes("?"),Ld("?","pathname","search",s)),Me(!s.pathname||!s.pathname.includes("#"),Ld("#","pathname","hash",s)),Me(!s.search||!s.search.includes("#"),Ld("#","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 f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;s.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=b2(s,a),c=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Mr=e=>e.join("/").replace(/\/\/+/g,"/"),E2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),C2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,T2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pS=["post","put","patch","delete"];new Set(pS);const P2=["get",...pS];new Set(P2);/** 246 * React Router v6.30.1 247 * 248 * Copyright (c) Remix Software Inc. 249 * 250 * This source code is licensed under the MIT license found in the 251 * LICENSE.md file in the root directory of this source tree. 252 * 253 * @license MIT 254 */function Ca(){return Ca=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},Ca.apply(this,arguments)}const _m=x.createContext(null),A2=x.createContext(null),Jr=x.createContext(null),Lu=x.createContext(null),Qr=x.createContext({outlet:null,matches:[],isDataRoute:!1}),mS=x.createContext(null);function R2(e,t){let{relative:n}=t===void 0?{}:t;co()||Me(!1);let{basename:r,navigator:s}=x.useContext(Jr),{hash:i,pathname:o,search:a}=vS(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Mr([r,o])),s.createHref({pathname:l,search:a,hash:i})}function co(){return x.useContext(Lu)!=null}function uo(){return co()||Me(!1),x.useContext(Lu).location}function gS(e){x.useContext(Jr).static||x.useLayoutEffect(e)}function yS(){let{isDataRoute:e}=x.useContext(Qr);return e?z2():j2()}function j2(){co()||Me(!1);let e=x.useContext(_m),{basename:t,future:n,navigator:r}=x.useContext(Jr),{matches:s}=x.useContext(Qr),{pathname:i}=uo(),o=JSON.stringify(Cm(s,n.v7_relativeSplatPath)),a=x.useRef(!1);return gS(()=>{a.current=!0}),x.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Tm(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Mr([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,o,i,e])}function vS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(Jr),{matches:s}=x.useContext(Qr),{pathname:i}=uo(),o=JSON.stringify(Cm(s,r.v7_relativeSplatPath));return x.useMemo(()=>Tm(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function N2(e,t){return O2(e,t)}function O2(e,t,n,r){co()||Me(!1);let{navigator:s}=x.useContext(Jr),{matches:i}=x.useContext(Qr),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=uo(),u;if(t){var d;let b=typeof t=="string"?lo(t):t;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||Me(!1),u=b}else u=c;let f=u.pathname||"/",p=f;if(l!=="/"){let b=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=a2(e,{pathname:p}),m=$2(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:Mr([l,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Mr([l,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&m?x.createElement(Lu.Provider,{value:{location:Ca({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Tr.Pop}},m):m}function I2(){let e=V2(),t=_2(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 x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:s},n):null,null)}const L2=x.createElement(I2,null);class M2 extends x.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?x.createElement(Qr.Provider,{value:this.props.routeContext},x.createElement(mS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function D2(e){let{routeContext:t,match:n,children:r}=e,s=x.useContext(_m);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Qr.Provider,{value:t},r)}function $2(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 u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Me(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:p}=n,w=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||w){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,f)=>{let p,w=!1,m=null,b=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||L2,l&&(c<0&&f===0?(w=!0,b=null):c===f&&(w=!0,b=d.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,f+1)),g=()=>{let v;return p?v=m:w?v=b:d.route.Component?v=x.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,x.createElement(D2,{match:d,routeC
254ontext:{outlet:u,matches:y,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?x.createElement(M2,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):g()},null)}var wS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(wS||{}),zc=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}(zc||{});function F2(e){let t=x.useContext(_m);return t||Me(!1),t}function B2(e){let t=x.useContext(A2);return t||Me(!1),t}function U2(e){let t=x.useContext(Qr);return t||Me(!1),t}function xS(e){let t=U2(),n=t.matches[t.matches.length-1];return n.route.id||Me(!1),n.route.id}function V2(){var e;let t=x.useContext(mS),n=B2(zc.UseRouteError),r=xS(zc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function z2(){let{router:e}=F2(wS.UseNavigateStable),t=xS(zc.UseNavigateStable),n=x.useRef(!1);return gS(()=>{n.current=!0}),x.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ca({fromRouteId:t},i)))},[e,t])}function W2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Pm(e){let{to:t,replace:n,state:r,relative:s}=e;co()||Me(!1);let{future:i,static:o}=x.useContext(Jr),{matches:a}=x.useContext(Qr),{pathname:l}=uo(),c=yS(),u=Tm(t,Cm(a,i.v7_relativeSplatPath),l,s==="path"),d=JSON.stringify(u);return x.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:s}),[c,d,s,n,r]),null}function Fn(e){Me(!1)}function H2(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Tr.Pop,navigator:i,static:o=!1,future:a}=e;co()&&Me(!1);let l=t.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:l,navigator:i,static:o,future:Ca({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=lo(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:w="default"}=r,m=x.useMemo(()=>{let b=Em(u,l);return b==null?null:{location:{pathname:b,search:d,hash:f,state:p,key:w},navigationType:s}},[l,u,d,f,p,w,s]);return m==null?null:x.createElement(Jr.Provider,{value:c},x.createElement(Lu.Provider,{children:n,value:m}))}function q2(e){let{children:t,location:n}=e;return N2(gf(t),n)}new Promise(()=>{});function gf(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,s)=>{if(!x.isValidElement(r))return;let i=[...t,s];if(r.type===x.Fragment){n.push.apply(n,gf(r.props.children,i));return}r.type!==Fn&&Me(!1),!r.props.index||!r.props.children||Me(!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=gf(r.props.children,i)),n.push(o)}),n}/** 255 * React Router DOM v6.30.1 256 * 257 * Copyright (c) Remix Software Inc. 258 * 259 * This source code is licensed under the MIT license found in the 260 * LICENSE.md file in the root directory of this source tree. 261 * 262 * @license MIT 263 */function yf(){return yf=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},yf.apply(this,arguments)}function K2(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 G2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Y2(e,t){return e.button===0&&(!t||t==="_self")&&!G2(e)}const J2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Q2="6";try{window.__reactRouterVersion=Q2}catch{}const X2="startTransition",iv=fp[X2];function Z2(e){let{basename:t,children:n,future:r,window:s}=e,i=x.useRef();i.current==null&&(i.current=s2({window:s,v5Compat:!0}));let o=i.current,[a,l]=x.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=x.useCallback(d=>{c&&iv?iv(()=>l(d)):l(d)},[l,c]);return x.useLayoutEffect(()=>o.listen(u),[o,u]),x.useEffect(()=>W2(r),[r]),x.createElement(H2,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const eO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ke=x.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=K2(t,J2),{basename:p}=x.useContext(Jr),w,m=!1;if(typeof c=="string"&&tO.test(c)&&(w=c,eO))try{let v=new URL(window.location.href),S=c.startsWith("//")?new URL(v.protocol+c):new URL(c),k=Em(S.pathname,p);S.origin===v.origin&&k!=null?c=k+S.search+S.hash:m=!0}catch{}let b=R2(c,{relative:s}),y=nO(c,{replace:o,state:a,target:l,preventScrollReset:u,relative:s,viewTransition:d});function g(v){r&&r(v),v.defaultPrevented||y(v)}return x.createElement("a",yf({},f,{href:w||b,onClick:m||i?r:g,ref:n,target:l}))});var ov;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ov||(ov={}));var av;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(av||(av={}));function nO(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=yS(),c=uo(),u=vS(e,{relative:o});return x.useCallback(d=>
vendor: 30,123 bytes, line 263
263{if(Y2(d,n)){d.preventDefault();let f=r!==void 0?r:Vc(c)===Vc(u);l(e,{replace:f,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,l,u,r,s,n,e,i,o,a])}const Am=x.createContext({});function Rm(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const rO=typeof window<"u",bS=rO?x.useLayoutEffect:x.useEffect,Mu=x.createContext(null);function jm(e,t){e.indexOf(t)===-1&&e.push(t)}function Wc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const In=(e,t,n)=>n>t?t:n<e?e:n;let Du=()=>{},Gi=()=>{};const Wr={},SS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function kS(e){return typeof e=="object"&&e!==null}const ES=e=>/^0[^.\s]+$/u.test(e);function CS(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wt=e=>e,sO=(e,t)=>n=>t(e(n)),qa=(...e)=>e.reduce(sO),Ta=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Nm{constructor(){this.subscriptions=[]}add(t){return jm(this.subscriptions,t),()=>Wc(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 Et=e=>e*1e3,Vt=e=>e/1e3;function TS(e,t){return t?e*(1e3/t):0}const _S=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,iO=1e-7,oO=12;function aO(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=_S(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>iO&&++a<oO);return o}function Ka(e,t,n,r){if(e===t&&n===r)return Wt;const s=i=>aO(i,0,1,e,n);return i=>i===0||i===1?i:_S(s(i),t,r)}const PS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,AS=e=>t=>1-e(1-t),RS=Ka(.33,1.53,.69,.99),Om=AS(RS),jS=PS(Om),NS=e=>e>=1?1:(e*=2)<1?.5*Om(e):.5*(2-Math.pow(2,-10*(e-1))),Im=e=>1-Math.sin(Math.acos(e)),OS=AS(Im),IS=PS(Im),lO=Ka(.42,0,1,1),cO=Ka(0,0,.58,1),LS=Ka(.42,0,.58,1),uO=e=>Array.isArray(e)&&typeof e[0]!="number",MS=e=>Array.isArray(e)&&typeof e[0]=="number",lv={linear:Wt,easeIn:lO,easeInOut:LS,easeOut:cO,circIn:Im,circInOut:IS,circOut:OS,backIn:Om,backInOut:jS,backOut:RS,anticipate:NS},dO=e=>typeof e=="string",cv=e=>{if(MS(e)){Gi(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return Ka(t,n,r,s)}else if(dO(e))return Gi(lv[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),lv[e];return e},Sl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],uv={value:null,addProjectionMetrics:null};function hO(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 c(d){o.has(d)&&(u.schedule(d),e()),l++,d(a)}const u={schedule:(d,f=!1,p=!1)=>{const m=p&&s?n:r;return f&&o.add(d),m.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0;const f=n;n=r,r=f,n.forEach(c),t&&uv.value&&uv.value.frameloop[t].push(l),l=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const fO=40;function DS(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Sl.reduce((v,S)=>(v[S]=hO(i,t?S:void 0),v),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:p,postRender:w}=o,m=()=>{const v=Wr.useManualTiming,S=v?s.timestamp:performance.now();n=!1,v||(s.delta=r?1e3/60:Math.max(Math.min(S-s.timestamp,fO),1)),s.timestamp=S,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),p.process(s),w.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},b=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:Sl.reduce((v,S)=>{const k=o[S];return v[S]=(E,C=!1,T=!1)=>(n||b(),k.schedule(E,C,T)),v},{}),cancel:v=>{for(let S=0;S<Sl.length;S++)o[Sl[S]].cancel(v)},state:s,steps:o}}const{schedule:fe,cancel:Hr,state:Qe,steps:Md}=DS(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wt,!0);let ec;function pO(){ec=void 0}const ht={now:()=>(ec===void 0&&ht.set(Qe.isProcessing||Wr.useManualTiming?Qe.timestamp:performance.now()),ec),set:e=>{ec=e,queueMicrotask(pO)}},$S=e=>t=>typeof t=="string"&&t.startsWith(e),FS=$S("--"),mO=$S("var(--"),Lm=e=>mO(e)?gO.test(e.split("/*")[0].trim()):!1,gO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function dv(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const ho={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},_a={...ho,transform:e=>In(0,1,e)},kl={...ho,default:1},Yo=e=>Math.round(e*1e5)/1e5,Mm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yO(e){return e==null}const vO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dm=(e,t)=>n=>!!(typeof n=="string"&&vO.test(n)&&n.startsWith(e)||t&&!yO(n)&&Object.prototype.hasOwnProperty.call(n,t)),BS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Mm);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},wO=e=>In(0,255,e),Dd={...ho,transform:e=>Math.round(wO(e))},ms={test:Dm("rgb","red"),parse:BS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Dd.transform(e)+", "+Dd.transform(t)+", "+Dd.transform(n)+", "+Yo(_a.transform(r))+")"};function xO(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 vf={test:Dm("#"),parse:xO,transform:ms.transform},Ga=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ur=Ga("deg"),Nn=Ga("%"),V=Ga("px"),bO=Ga("vh"),SO=Ga("vw"),hv={...Nn,parse:e=>Nn.parse(e)/100,transform:e=>Nn.transform(e*100)},gi={test:Dm("hsl","hue"),parse:BS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Nn.transform(Yo(t))+", "+Nn.transform(Yo(n))+", "+Yo(_a.transform(r))+")"},$e={test:e=>ms.test(e)||vf.test(e)||gi.test(e),parse:e=>ms.test(e)?ms.parse(e):gi.test(e)?gi.parse(e):vf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ms.transform(e):gi.transform(e),getAnimatableNone:e=>{const t=$e.parse(e);return t.alpha=0,$e.transform(t)}},kO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function EO(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Mm))==null?void 0:t.length)||0)+(((n=e.match(kO))==null?void 0:n.length)||0)>0}const US="number",VS="color",CO="var",TO="var(",fv="${}",_O=/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 Yi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(_O,l=>($e.test(l)?(r.color.push(i),s.push(VS),n.push($e.parse(l))):l.startsWith(TO)?(r.var.push(i),s.push(CO),n.push(l)):(r.number.push(i),s.push(US),n.push(parseFloat(l))),++i,fv)).split(fv);return{values:n,split:a,indexes:r,types:s}}function PO(e){return Yi(e).values}function zS({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===US?s+=Yo(r[i]):o===VS?s+=$e.transform(r[i]):s+=r[i]}return s}}function AO(e){return zS(Yi(e))}const RO=e=>typeof e=="number"?0:$e.test(e)?$e.getAnimatableNone(e):e,jO=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:RO(e);function NO(e){const t=Yi(e);return zS(t)(t.values.map((r,s)=>jO(r,t.split[s])))}const fn={test:EO,parse:PO,createTransformer:AO,getAnimatableNone:NO};function $d(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 OO({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=$d(l,a,e+1/3),i=$d(l,a,e),o=$d(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Hc(e,t){return n=>n>0?t:e}const we=(e,t,n)=>e+(t-e)*n,Fd=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},IO=[vf,ms,gi],LO=e=>IO.find(t=>t.test(e));function pv(e){const t=LO(e);if(Du(!!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===gi&&(n=OO(n)),n}const mv=(e,t)=>{const n=pv(e),r=pv(t);if(!n||!r)return Hc(e,t);const s={...n};return i=>(s.red=Fd(n.red,r.red,i),s.green=Fd(n.green,r.green,i),s.blue=Fd(n.blue,r.blue,i),s.alpha=we(n.alpha,r.alpha,i),ms.transform(s))},wf=new Set(["none","hidden"]);function MO(e,t){return wf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function DO(e,t){return n=>we(e,t,n)}function $m(e){return typeof e=="number"?DO:typeof e=="string"?Lm(e)?Hc:$e.test(e)?mv:BO:Array.isArray(e)?WS:typeof e=="object"?$e.test(e)?mv:$O:Hc}function WS(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>$m(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function $O(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=$m(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function FO(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 BO=(e,t)=>{const n=fn.createTransformer(t),r=Yi(e),s=Yi(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?wf.has(e)&&!s.values.length||wf.has(t)&&!r.values.length?MO(e,t):qa(WS(FO(r,s),s.values),n):(Du(!0,`Complex values '${e}' and '${t}' 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"),Hc(e,t))};function HS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?we(e,t,n):$m(e)(e,t)}const UO=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>fe.update(t,n),stop:()=>Hr(t),now:()=>Qe.isProcessing?Qe.timestamp:ht.now()}},qS=(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)})`},qc=2e4;function Fm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<qc;)t+=n,r=e.next(t);return t>=qc?1/0:t}function VO(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Fm(r),qc);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Vt(s)}}const Te={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};function xf(e,t){return e*Math.sqrt(1-t*t)}const zO=12;function WO(e,t,n){let r=n;for(let s=1;s<zO;s++)r=r-e(r)/t(r);return r}const Bd=.001;function HO({duration:e=Te.duration,bounce:t=Te.bounce,velocity:n=Te.velocity,mass:r=Te.mass}){let s,i;Du(e<=Et(Te.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=In(Te.minDamping,Te.maxDamping,o),e=In(Te.minDuration,Te.maxDuration,Vt(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,p=xf(c,o),w=Math.exp(-d);return Bd-f/p*w},i=c=>{const d=c*o*e,f=d*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,w=Math.exp(-d),m=xf(Math.pow(c,2),o);return(-s(c)+Bd>0?-1:1)*((f-p)*w)/m}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Bd+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=WO(s,i,a);if(e=Et(e),isNaN(l))return{stiffness:Te.stiffness,damping:Te.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const qO=["duration","bounce"],KO=["stiffness","damping","mass"];function gv(e,t){return t.some(n=>e[n]!==void 0)}function GO(e){let t={velocity:Te.velocity,stiffness:Te.stiffness,damping:Te.damping,mass:Te.mass,isResolvedFromDuration:!1,...e};if(!gv(e,KO)&&gv(e,qO))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*In(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Te.mass,stiffness:s,damping:i}}else{const n=HO({...e,velocity:0});t={...t,...n,mass:Te.mass},t.isResolvedFromDuration=!0}return t}function Kc(e=Te.visualDuration,t=Te.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:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=GO({...n,velocity:-Vt(n.velocity||0)}),w=f||0,m=c/(2*Math.sqrt(l*u)),b=o-i,y=Vt(Math.sqrt(l/u)),g=Math.abs(b)<5;r||(r=g?Te.restSpeed.granular:Te.restSpeed.default),s||(s=g?Te.restDelta.granular:Te.restDelta.default);let v,S,k,E,C,T;if(m<1)k=xf(y,m),E=(w+m*y*b)/k,v=P=>{const M=Math.exp(-m*y*P);return o-M*(E*Math.sin(k*P)+b*Math.cos(k*P))},C=m*y*E+b*k,T=m*y*b-E*k,S=P=>Math.exp(-m*y*P)*(C*Math.sin(k*P)+T*Math.cos(k*P));else if(m===1){v=M=>o-Math.exp(-y*M)*(b+(w+y*b)*M);const P=w+y*b;S=M=>Math.exp(-y*M)*(y*P*M-w)}else{const P=y*Math.sqrt(m*m-1);v=N=>{const q=Math.exp(-m*y*N),B=Math.min(P*N,300);return o-q*((w+m*y*b)*Math.sinh(B)+P*b*Math.cosh(B))/P};const M=(w+m*y*b)/P,I=m*y*M-b*P,H=m*y*b-M*P;S=N=>{const q=Math.exp(-m*y*N),B=Math.min(P*N,300);return q*(I*Math.sinh(B)+H*Math.cosh(B))}}const A={calculatedDuration:p&&d||null,velocity:P=>Et(S(P)),next:P=>{if(!p&&m<1){const I=Math.exp(-m*y*P),H=Math.sin(k*P),N=Math.cos(k*P),q=o-I*(E*H+b*N),B=Et(I*(C*H+T*N));return a.done=Math.abs(B)<=r&&Math.abs(o-q)<=s,a.value=a.done?o:q,a}const M=v(P);if(p)a.done=P>=d;else{const I=Et(S(P));a.done=Math.abs(I)<=r&&Math.abs(o-M)<=s}return a.value=a.done?o:M,a},toString:()=>{const P=Math.min(Fm(A),qc),M=qS(I=>A.next(P*I).value,P,30);return P+"ms "+M},toTransition:()=>{}};return A}Kc.applyToOptions=e=>{const t=VO(e,100,Kc);return e.ease=t.ease,e.duration=Et(t.duration),e.type="keyframes",e};const YO=5;function KS(e,t,n){const r=Math.max(t-YO,0);return TS(n-e(r),t-r)}function bf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=T=>a!==void 0&&T<a||l!==void 0&&T>l,w=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let m=n*t;const b=d+m,y=o===void 0?b:o(b);y!==b&&(m=y-d);const g=T=>-m*Math.exp(-T/r),v=T=>y+g(T),S=T=>{const A=g(T),P=v(T);f.done=Math.abs(A)<=c,f.value=f.done?y:P};let k,E;const C=T=>{p(f.value)&&(k=T,E=Kc({keyframes:[f.value,w(f.value)],velocity:KS(v,T,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:T=>{let A=!1;return!E&&k===void 0&&(A=!0,S(T),C(T)),k!==void 0&&T>=k?E.next(T-k):(!A&&S(T),f)}}}function JO(e,t,n){const r=[],s=n||Wr.mix||HS,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]||Wt:t;a=qa(l,a)}r.push(a)}return r}function QO(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Gi(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=JO(t,r,s),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Ta(e[d],e[d+1],u);return a[d](f)};return n?u=>c(In(e[0],e[i-1],u)):c}function XO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Ta(0,t,r);e.push(we(n,1,s))}}function ZO(e){const t=[0];return XO(t,e.length-1),t}function eI(e,t){return e.map(n=>n*t)}function tI(e,t){return e.map(()=>t||LS).splice(0,e.length-1)}function Jo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=uO(r)?r.map(cv):cv(r),i={done:!1,value:t[0]},o=eI(n&&n.length===t.length?n:ZO(t),e),a=QO(o,t,{ease:Array.isArray(s)?s:tI(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const nI=e=>e!==null;function $u(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(nI),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const rI={decay:bf,inertia:bf,tween:Jo,keyframes:Jo,spring:Kc};function GS(e){typeof e.type=="string"&&(e.type=rI[e.type])}class Bm{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 sI=e=>e/100;class Gc extends Bm{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==ht.now()&&this.tick(ht.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;GS(t);const{type:n=Jo,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Jo;l!==Jo&&typeof a[0]!="number"&&(this.mixKeyframes=qa(sI,HS(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Fm(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}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:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:w,onUpdate:m,finalKeyframe:b}=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 y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,S=r;if(d){const T=Math.min(this.currentTime,s)/a;let A=Math.floor(T),P=T%1;!P&&T>=1&&(P=1),P===1&&A--,A=Math.min(A,d+1),!!(A%2)&&(f==="reverse"?(P=1-P,p&&(P-=p/a)):f==="mirror"&&(S=o)),v=In(0,1,P)*a}let k;g?(this.delayState.value=u[0],k=this.delayState):k=S.next(v),i&&!g&&(k.value=i(k.value));let{done:E}=k;!g&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return C&&w!==bf&&(k.value=$u(u,this.options,b,this.speed)),m&&m(k.value),C&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return Vt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Vt(t)}get time(){return Vt(this.currentTime)}set time(t){t=Et(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),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return KS(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(ht.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Vt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=UO,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(ht.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 iI(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gs=e=>e*180/Math.PI,Sf=e=>{const t=gs(Math.atan2(e[1],e[0]));return kf(t)},oI={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Sf,rotateZ:Sf,skewX:e=>gs(Math.atan(e[1])),skewY:e=>gs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},kf=e=>(e=e%360,e<0&&(e+=360),e),yv=Sf,vv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),wv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),aI={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vv,scaleY:wv,scale:e=>(vv(e)+wv(e))/2,rotateX:e=>kf(gs(Math.atan2(e[6],e[5]))),rotateY:e=>kf(gs(Math.atan2(-e[2],e[0]))),rotateZ:yv,rotate:yv,skewX:e=>gs(Math.atan(e[4])),skewY:e=>gs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ef(e){return e.includes("scale")?1:0}function Cf(e,t){if(!e||e==="none")return Ef(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=aI,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=oI,s=a}if(!s)return Ef(t);const i=r[t],o=s[1].split(",").map(cI);return typeof i=="function"?i(o):o[i]}const lI=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Cf(n,t)};function cI(e){return parseFloat(e.trim())}const fo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],po=new Set(fo),xv=e=>e===ho||e===V,uI=new Set(["x","y","z"]),dI=fo.filter(e=>!uI.has(e));function hI(e){const t=[];return dI.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const _r={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-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})=>Cf(t,"x"),y:(e,{transform:t})=>Cf(t,"y")};_r.translateX=_r.x;_r.translateY=_r.y;const Ts=new Set;let Tf=!1,_f=!1,Pf=!1;function YS(){if(_f){const e=Array.from(Ts).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=hI(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&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)})}_f=!1,Tf=!1,Ts.forEach(e=>e.complete(Pf)),Ts.clear()}function JS(){Ts.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_f=!0)})}function fI(){Pf=!0,JS(),YS(),Pf=!1}class Um{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?(Ts.add(this),Tf||(Tf=!0,fe.read(JS),fe.resolveKeyframes(YS))):(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])}iI(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ts.delete(this)}cancel(){this.state==="scheduled"&&(Ts.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const pI=e=>e.startsWith("--");function QS(e,t,n){pI(t)?e.style.setProperty(t,n):e.style[t]=n}const mI={};function XS(e,t){const n=CS(e);return()=>mI[t]??n()}const gI=XS(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ZS=XS(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Lo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,bv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lo([0,.65,.55,1]),circOut:Lo([.55,0,1,.45]),backIn:Lo([.31,.01,.66,-.59]),backOut:Lo([.33,1.53,.69,.99])};function ek(e,t){if(e)return typeof e=="function"?ZS()?qS(e,t):"ease-out":MS(e)?Lo(e):Array.isArray(e)?e.map(n=>ek(n,t)||bv.easeOut):bv[e]}function yI(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=ek(a,s);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function tk(e){return typeof e=="function"&&"applyToOptions"in e}function vI({type:e,...t}){return tk(e)&&ZS()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class nk extends Bm{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,Gi(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=vI(t);this.animation=yI(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=$u(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),QS(n,r,u),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 Vt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Vt(t)}get time(){return Vt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Et(t),n&&this.animation.pause()}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,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&gI()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Wt):s(this)}}const rk={anticipate:NS,backInOut:jS,circInOut:IS};function wI(e){return e in rk}function xI(e){typeof e.ease=="string"&&wI(e.ease)&&(e.ease=rk[e.ease])}const Ud=10;class bI extends nk{constructor(t){xI(t),GS(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(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 Gc({...o,autoplay:!1}),l=Math.max(Ud,ht.now()-this.startTime),c=In(0,Ud,l-Ud),u=a.sample(l).value,{name:d}=this.options;i&&d&&QS(i,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const Sv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fn.test(e)||e==="0")&&!e.startsWith("url("));function SI(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 kI(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=Sv(s,t),a=Sv(i,t);return Du(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:SI(e)||(n==="spring"||tk(n))&&r}function Af(e){e.duration=0,e.type="keyframes"}const sk=new Set(["opacity","clipPath","filter","transform"]),EI=/^(?:
263oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function CI(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&EI.test(e[t]))return!0;return!1}const TI=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),_I=CS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function PI(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return _I()&&n&&(sk.has(n)||TI.has(n)&&CI(a))&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const AI=40;class RI extends Bm{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var w;super(),this.stop=()=>{var m,b;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=ht.now();const f={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},p=(u==null?void 0:u.KeyframeResolver)||Um;this.keyframeResolver=new p(a,(m,b,y)=>this.onKeyframesResolved(m,b,f,!y),l,c,u),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,s){var y,g;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=ht.now();let d=!0;kI(t,i,o,a)||(d=!1,(Wr.instantAnimations||!l)&&(u==null||u($u(t,r,n))),t[0]=t[t.length-1],Af(r),r.repeat=0);const p={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>AI?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},w=d&&!c&&PI(p),m=(g=(y=p.motionValue)==null?void 0:y.owner)==null?void 0:g.current;let b;if(w)try{b=new bI({...p,element:m})}catch{b=new Gc(p)}else b=new Gc(p);b.finished.then(()=>{this.notifyFinished()}).catch(Wt),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}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(),fI()),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 ik(e,t,n,r=0,s=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const jI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function NI(e){const t=jI.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const OI=4;function ok(e,t,n=1){Gi(n<=OI,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=NI(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return SS(o)?parseFloat(o):o}return Lm(s)?ok(s,t,n+1):s}const II={type:"spring",stiffness:500,damping:25,restSpeed:10},LI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),MI={type:"keyframes",duration:.8},DI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$I=(e,{keyframes:t})=>t.length>2?MI:po.has(e)?e.startsWith("scale")?LI(t[1]):II:DI;function ak(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Vm(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?ak(n,e):n}const FI=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function BI(e){for(const t in e)if(!FI.has(t))return!0;return!1}const zm=(e,t,n,r={},s,i)=>o=>{const a=Vm(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Et(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};BI(a)||Object.assign(u,$I(e,u)),u.duration&&(u.duration=Et(u.duration)),u.repeatDelay&&(u.repeatDelay=Et(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Af(u),u.delay===0&&(
vendor: 60,718 bytes, line 263
263d=!0)),(Wr.instantAnimations||Wr.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(d=!0,Af(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=$u(u.keyframes,a);if(f!==void 0){fe.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new Gc(u):new RI(u)};function kv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Wm(e,t,n,r){if(typeof t=="function"){const[s,i]=kv(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]=kv(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function _s(e,t,n){const r=e.getProps();return Wm(r,t,n!==void 0?n:r.custom,e)}const lk=new Set(["width","height","top","left","right","bottom",...fo]),Ev=30,UI=e=>!isNaN(parseFloat(e));class VI{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=ht.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=ht.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=UI(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 Nm);const r=this.events[t].add(n);return t==="change"?()=>{r(),fe.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=ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ev)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ev);return TS(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 Ji(e,t){return new VI(e,t)}const Rf=e=>Array.isArray(e);function zI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ji(n))}function WI(e){return Rf(e)?e[e.length-1]||0:e}function HI(e,t){const n=_s(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=WI(i[o]);zI(e,o,a)}}const Xe=e=>!!(e&&e.getVelocity);function qI(e){return!!(Xe(e)&&e.add)}function jf(e,t){const n=e.getValue("willChange");if(qI(n))return n.add(t);if(!n&&Wr.WillChange){const r=new Wr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Hm(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const KI="framerAppearId",ck="data-"+Hm(KI);function uk(e){return e.props[ck]}function GI({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function dk(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?ak(i,l):l;const c=i==null?void 0:i.reduceMotion;r&&(i=r);const u=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const f in a){const p=e.getValue(f,e.latestValues[f]??null),w=a[f];if(w===void 0||d&&GI(d,f))continue;const m={delay:n,...Vm(i||{},f)},b=p.get();if(b!==void 0&&!p.isAnimating()&&!Array.isArray(w)&&w===b&&!m.velocity){fe.update(()=>p.set(w));continue}let y=!1;if(window.MotionHandoffAnimation){const S=uk(e);if(S){const k=window.MotionHandoffAnimation(S,f,fe);k!==null&&(m.startTime=k,y=!0)}}jf(e,f);const g=c??e.shouldReduceMotion;p.start(zm(f,p,w,g&&lk.has(f)?{type:!1}:m,e,y));const v=p.animation;v&&u.push(v)}if(o){const f=()=>fe.update(()=>{o&&HI(e,o)});u.length?Promise.all(u).then(f):f()}return u}function Nf(e,t,n={}){var l;const r=_s(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(dk(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return YI(e,t,c,u,d,f,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,u]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>u())}else return Promise.all([i(),o(n.delay)])}function YI(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(Nf(l,t,{...o,delay:n+(typeof r=="function"?0:r)+ik(e.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function JI(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Nf(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Nf(e,t,n);else{const s=typeof t=="function"?_s(e,t,n.custom):t;r=Promise.all(dk(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const QI={test:e=>e==="auto",parse:e=>e},hk=e=>t=>t.test(e),fk=[ho,V,Nn,ur,SO,bO,QI],Cv=e=>fk.find(hk(e));function XI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ES(e):!0}const ZI=new Set(["brightness","contrast","saturate","opacity"]);function eL(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Mm)||[];if(!r)return e;const s=n.replace(r,"");let i=ZI.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const tL=/\b([a-z-]*)\(.*?\)/gu,Of={...fn,getAnimatableNone:e=>{const t=e.match(tL);return t?t.map(eL).join(" "):e}},If={...fn,getAnimatableNone:e=>{const t=fn.parse(e);return fn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Tv={...ho,transform:Math.round},nL={rotate:ur,rotateX:ur,rotateY:ur,rotateZ:ur,scale:kl,scaleX:kl,scaleY:kl,scaleZ:kl,skew:ur,skewX:ur,skewY:ur,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:_a,originX:hv,originY:hv,originZ:V},qm={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...nL,zIndex:Tv,fillOpacity:_a,strokeOpacity:_a,numOctaves:Tv},rL={...qm,color:$e,backgroundColor:$e,outlineColor:$e,fill:$e,stroke:$e,borderColor:$e,borderTopColor:$e,borderRightColor:$e,borderBottomColor:$e,borderLeftColor:$e,filter:Of,WebkitFilter:Of,mask:If,WebkitMask:If},pk=e=>rL[e],sL=new Set([Of,If]);function mk(e,t){let n=pk(e);return sL.has(n)||(n=fn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const iL=new Set(["auto","none","0"]);function oL(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!iL.has(i)&&Yi(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=mk(n,s)}class aL extends Um{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 u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Lm(d))){const f=ok(d,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!lk.has(r)||t.length!==2)return;const[s,i]=t,o=Cv(s),a=Cv(i),l=dv(s),c=dv(i);if(l!==c&&_r[r]){this.needsMeasurement=!0;return}if(o!==a)if(xv(o)&&xv(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else _r[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||XI(t[s]))&&r.push(s);r.length&&oL(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=_r[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]=_r[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function gk(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 yk=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function tc(e){return kS(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Km,cancel:lB}=DS(queueMicrotask,!1),Zt={x:!1,y:!1};function vk(){return Zt.x||Zt.y}function lL(e){return e==="x"||e==="y"?Zt[e]?null:(Zt[e]=!0,()=>{Zt[e]=!1}):Zt.x||Zt.y?null:(Zt.x=Zt.y=!0,()=>{Zt.x=Zt.y=!1})}function wk(e,t){const n=gk(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function cL(e){return!(e.pointerType==="touch"||vk())}function uL(e,t,n={}){const[r,s,i]=wk(e,n);return r.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",w)},d=b=>{c&&(c(b),c=void 0),u()},f=b=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(b))},p=()=>{a=!0,window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",f,s)},w=b=>{if(b.pointerType!=="touch"){if(a){l=!0;return}d(b)}},m=b=>{if(!cL(b))return;l=!1;const y=t(o,b);typeof y=="function"&&(c=y,o.addEventListener("pointerleave",w,s))};o.addEventListener("pointerenter",m,s),o.addEventListener("pointerdown",p,s)}),i}const xk=(e,t)=>t?e===t?!0:xk(e,t.parentElement):!1,Gm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,dL=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hL(e){return dL.has(e.tagName)||e.isContentEditable===!0}const fL=new Set(["INPUT","SELECT","TEXTAREA"]);function pL(e){return fL.has(e.tagName)||e.isContentEditable===!0}const nc=new WeakSet;function _v(e){return t=>{t.key==="Enter"&&e(t)}}function Vd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const mL=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_v(()=>{if(nc.has(n))return;Vd(n,"down");const s=_v(()=>{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 Pv(e){return Gm(e)&&!vk()}const Av=new WeakSet;function gL(e,t,n={}){const[r,s,i]=wk(e,n),o=a=>{const l=a.currentTarget;if(!Pv(a)||Av.has(a))return;nc.add(l),n.stopPropagation&&Av.add(a);const c=t(l,a),u=(p,w)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),nc.has(l)&&nc.delete(l),Pv(p)&&typeof c=="function"&&c(p,{success:w})},d=p=>{u(p,l===window||l===document||n.useGlobalTarget||xk(l,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",f,s)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),tc(a)&&(a.addEventListener("focus",c=>mL(c,s)),!hL(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Ym(e){return kS(e)&&"ownerSVGElement"in e}const rc=new WeakMap;let dr;const bk=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Ym(r)&&"getBBox"in r?r.getBBox()[t]:r[n],yL=bk("inline","width","offsetWidth"),vL=bk("block","height","offsetHeight");function wL({target:e,borderBoxSize:t}){var n;(n=rc.get(e))==null||n.forEach(r=>{r(e,{get width(){return yL(e,t)},get height(){return vL(e,t)}})})}function xL(e){e.forEach(wL)}function bL(){typeof ResizeObserver>"u"||(dr=new ResizeObserver(xL))}function SL(e,t){dr||bL();const n=gk(e);return n.forEach(r=>{let s=rc.get(r);s||(s=new Set,rc.set(r,s)),s.add(t),dr==null||dr.observe(r)}),()=>{n.forEach(r=>{const s=rc.get(r);s==null||s.delete(t),s!=null&&s.size||dr==null||dr.unobserve(r)})}}const sc=new Set;let yi;function kL(){yi=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};sc.forEach(t=>t(e))},window.addEventListener("resize",yi)}function EL(e){return sc.add(e),yi||kL(),()=>{sc.delete(e),!sc.size&&typeof yi=="function"&&(window.removeEventListener("resize",yi),yi=void 0)}}function Rv(e,t){return typeof e=="function"?EL(e):SL(e,t)}function CL(e){return Ym(e)&&e.tagName==="svg"}const TL=[...fk,$e,fn],_L=e=>TL.find(hk(e)),jv=()=>({translate:0,scale:1,origin:0,originPoint:0}),vi=()=>({x:jv(),y:jv()}),Nv=()=>({min:0,max:0}),Ue=()=>({x:Nv(),y:Nv()}),PL=new WeakMap;function Fu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Pa(e){return typeof e=="string"||Array.isArray(e)}const Jm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qm=["initial",...Jm];function Bu(e){return Fu(e.animate)||Qm.some(t=>Pa(e[t]))}function Sk(e){return!!(Bu(e)||e.variants)}function AL(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Xe(s))e.addValue(r,s);else if(Xe(i))e.addValue(r,Ji(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,Ji(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Lf={current:null},kk={current:!1},RL=typeof window<"u";function jL(){if(kk.current=!0,!!RL)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lf.current=e.matches;e.addEventListener("change",t),t()}else Lf.current=!1}const Ov=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Yc={};function Ek(e){Yc=e}function NL(){return Yc}class OL{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=Um,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 p=ht.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,fe.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,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=Bu(n),this.isVariantNode=Sk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const w=f[p];c[p]!==void 0&&Xe(w)&&w.set(c[p])}}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,PL.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:(kk.current||jL(),this.shouldReduceMotion=Lf.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(),Hr(this.notifyUpdate),Hr(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&&sk.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new nk({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:Et(u)}),f=o(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=po.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&fe.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 Yc){const n=Yc[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):Ue()}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<Ov.length;r++){const s=Ov[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=AL(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=Ji(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"&&(SS(r)||ES(r))?r=parseFloat(r):!_L(r)&&fn.test(n)&&(r=mk(t,n)),this.setBaseTarget(t,Xe(r)?r.get():r)),Xe(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=Wm(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&&!Xe(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 Nm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Km.render(this.render)}}class Ck extends OL{constructor(){super(...arguments),this.KeyframeResolver=aL}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;Xe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Xr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Tk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function IL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function LL(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 zd(e){return e===void 0||e===1}function Mf({scale:e,scaleX:t,scaleY:n}){return!zd(e)||!zd(t)||!zd(n)}function us(e){return Mf(e)||_k(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function _k(e){return Iv(e.x)||Iv(e.y)}function Iv(e){return e&&e!=="0%"}function Jc(e,t,n){const r=e-n,s=t*r;return n+s}function Lv(e,t,n,r,s){return s!==void 0&&(e=Jc(e,s,r)),Jc(e,n,r)+t}function Df(e,t=0,n=1,r,s){e.min=Lv(e.min,t,n,r,s),e.max=Lv(e.max,t,n,r,s)}function Pk(e,{x:t,y:n}){Df(e.x,t.translate,t.scale,t.originPoint),Df(e.y,n.translate,n.scale,n.originPoint)}const Mv=.999999999999,Dv=1.0000000000001;function ML(e,t,n,r=!1){var a;const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let l=0;l<s;l++){i=n[l],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(Tn(e.x,-i.scroll.offset.x),Tn(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Pk(e,o)),r&&us(i.latestValues)&&ic(e,i.latestValues,(a=i.layout)==null?void 0:a.layoutBox))}t.x<Dv&&t.x>Mv&&(t.x=1),t.y<Dv&&t.y>Mv&&(t.y=1)}function Tn(e,t){e.min+=t,e.max+=t}function $v(e,t,n,r,s=.5){const i=we(e.min,e.max,s);Df(e,t,n,i,r)}function Fv(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ic(e,t,n){const r=n??e;$v(e.x,Fv(t.x,r.x),t.scaleX,t.scale,t.originX),$v(e.y,Fv(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ak(e,t){return Tk(LL(e.getBoundingClientRect(),t))}function DL(e,t,n){const r=Ak(e,n),{scroll:s}=t;return s&&(Tn(r.x,s.offset.x),Tn(r.y,s.offset.y)),r}const $L={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},FL=fo.length;function BL(e,t,n){let r="",s=!0;for(let i=0;i<FL;i++){const o=fo[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 c=parseFloat(a);l=o.startsWith("scale")?c===1:c===0}if(!l||n){const c=yk(a,qm[o]);if(!l){s=!1;const u=$L[o]||o;r+=`${u}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Xm(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(po.has(l)){o=!0;continue}else if(FS(l)){s[l]=c;continue}else{const u=yk(c,qm[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=BL(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function Rk(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function Bv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ao={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Bv(e,t.target.x),r=Bv(e,t.target.y);return`${n}% ${r}%`}},UL={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=fn.parse(e);if(s.length>5)return r;const i=fn.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 c=we(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},$f={borderRadius:{...Ao,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ao,borderTopRightRadius:Ao,borderBottomLeftRadius:Ao,borderBottomRightRadius:Ao,boxShadow:UL};function jk(e,{layout:t,layoutId:n}){return po.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$f[e]||e==="opacity")}function Zm(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)(Xe(r[a])||s&&Xe(s[a])||jk(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function VL(e){return window.getComputedStyle(e)}class zL extends Ck{constructor(){super(...arguments),this.type="html",this.renderInstance=Rk}readValueFromInstance(t,n){var r;if(po.has(n))return(r=this.projection)!=null&&r.isProjecting?Ef(n):lI(t,n);{const s=VL(t),i=(FS(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ak(t,n)}build(t,n,r){Xm(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Zm(t,n,r)}}const WL={offset:"stroke-dashoffset",array:"stroke-dasharray"},HL={offset:"strokeDashoffset",array:"strokeDasharray"};function qL(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?WL:HL;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const KL=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Nk(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(Xm(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const p of KL)d[p]!==void 0&&(f[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&qL(d,s,i,o,!1)}const Ok=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"]),Ik=e=>typeof e=="string"&&e.toLowerCase()==="svg";function GL(e,t,n,r){Rk(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Ok.has(s)?s:Hm(s),t.attrs[s])}function Lk(e,t,n){const r=Zm(e,t,n);for(const s in e)if(Xe(e[s])||Xe(t[s])){const i=fo.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class YL extends Ck{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(po.has(n)){const r=pk(n);return r&&r.default||0}return n=Ok.has(n)?n:Hm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Lk(t,n,r)}build(t,n,r){Nk(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){GL(t,n,r,s)}mount(t){this.isSVGTag=Ik(t.tagName),super.mount(t)}}const JL=Qm.length;function Mk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Mk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<JL;n++){const r=Qm[n],s=e.props[r];(Pa(s)||s===!1)&&(t[r]=s)}return t}function Dk(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 QL=[...Jm].reverse(),XL=Jm.length;function ZL(e){return t=>Promise.all(t.map(({animation:n,options:r})=>JI(e,n,r)))}function eM(e){let t=ZL(e),n=Uv(),r=!0,s=!1;const i=c=>(u,d)=>{var p;const f=_s(e,d,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(f){const{transition:w,transitionEnd:m,...b}=f;u={...u,...b,...m}}return u};function o(c){t=c(e)}function a(c){const{props:u}=e,d=Mk(e.parent)||{},f=[],p=new Set;let w={},m=1/0;for(let y=0;y<XL;y++){const g=QL[y],v=n[g],S=u[g]!==void 0?u[g]:d[g],k=Pa(S),E=g===c?v.isActive:null;E===!1&&(m=y);let C=S===d[g]&&S!==u[g]&&k;if(C&&(r||s)&&e.manuallyAnimateOnMount&&(C=!1),v.protectedKeys={...w},!v.isActive&&E===null||!S&&!v.prevProp||Fu(S)||typeof S=="boolean")continue;if(g==="exit"&&v.isActive&&E!==!0){v.prevResolvedValues&&(w={...w,...v.prevResolvedValues});continue}const T=tM(v.prevProp,S);let A=T||g===c&&v.isActive&&!C&&k||y>m&&k,P=!1;const M=Array.isArray(S)?S:[S];let I=M.reduce(i(g),{});E===!1&&(I={});const{prevResolvedValues:H={}}=v,N={...H,...I},q=_=>{A=!0,p.has(_)&&(P=!0,p.delete(_)),v.needsAnimating[_]=!0;const R=e.getValue(_);R&&(R.liveStyle=!1)};for(const _ in N){const R=I[_],D=H[_];if(w.hasOwnProperty(_))continue;let K=!1;Rf(R)&&Rf(D)?K=!Dk(R,D):K=R!==D,K?R!=null?q(_):p.add(_):R!==void 0&&p.has(_)?q(_):v.protectedKeys[_]=!0}v.prevProp=S,v.prevResolvedValues=I,v.isActive&&(w={...w,...I}),(r||s)&&e.blockInitialAnimation&&(A=!1);const B=C&&T;A&&(!B||P)&&f.push(...M.map(_=>{const R={type:g};if(typeof _=="string"&&(r||s)&&!B&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,K=_s(D,_);if(D.enteringChildren&&K){const{delayChildren:W}=K.transition||{};R.delay=ik(D.enteringChildren,e,W)}}return{animation:_,options:R}}))}if(p.size){const y={};if(typeof u.initial!="boolean"){const g=_s(e,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(y.transition=g.transition)}p.forEach(g=>{const v=e.getBaseTarget(g),S=e.getValue(g);S&&(S.liveStyle=!0),y[g]=v??null}),f.push({animation:y})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,s=!1,b?t(f):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(p=>{var w;return(w=p.animationState)==null?void 0:w.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Uv(),s=!0}}}function tM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Dk(t,e):!1}function is(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Uv(){return{animate:is(!0),whileInView:is(),whileHover:is(),whileTap:is(),whileDrag:is(),whileFocus:is(),exit:is()}}function Ff(e,t){e.min=t.min,e.max=t.max}function Xt(e,t){Ff(e.x,t.x),Ff(e.y,t.y)}function Vv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const $k=1e-4,nM=1-$k,rM=1+$k,Fk=.01,sM=0-Fk,iM=0+Fk;function ft(e){return e.max-e.min}function oM(e,t,n){return Math.abs(e-t)<=n}function zv(e,t,n,r=.5){e.origin=r,e.originPoint=we(t.min,t.max,e.origin),e.scale=ft(n)/ft(t),e.translate=we(n.min,n.max,e.origin)-e.originPoint,(e.scale>=nM&&e.scale<=rM||isNaN(e.scale))&&(e.scale=1),(e.translate>=sM&&e.translate<=iM||isNaN(e.translate))&&(e.translate=0)}function Qo(e,t,n,r){zv(e.x,t.x,n.x,r?r.originX:void 0),zv(e.y,t.y,n.y,r?r.originY:void 0)}function Wv(e,t,n,r=0){const s=r?we(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+ft(t)}function aM(e,t,n,r){Wv(e.x,t.x,n.x,r==null?void 0:r.x),Wv(e.y,t.y,n.y,r==null?void 0:r.y)}function Hv(e,t,n,r=0){const s=r?we(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+ft(t)}function Qc(e,t,n,r){Hv(e.x,t.x,n.x,r==null?void 0:r.x),Hv(e.y,t.y,n.y,r==null?void 0:r.y)}function qv(e,t,n,r,s){return e-=t,e=Jc(e,1/n,r),s!==void 0&&(e=Jc(e,1/s,r)),e}function lM(e,t=0,n=1,r=.5,s,i=e,o=e){if(Nn.test(t)&&(t=parseFloat(t),t=we(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=we(i.min,i.max,r);e===i&&(a-=t),e.min=qv(e.min,t,n,a,s),e.max=qv(e.max,t,n,a,s)}function Kv(e,t,[n,r,s],i,o){lM(e,t[n],t[r],t[s],t.scale,i,o)}const cM=["x","scaleX","originX"],uM=["y","scaleY","originY"];function Gv(e,t,n,r){Kv(e.x,t,cM,n?n.x:void 0,r?r.x:void 0),Kv(e.y,t,uM,n?n.y:void 0,r?r.y:void 0)}function Yv(e){return e.translate===0&&e.scale===1}function Bk(e){return Yv(e.x)&&Yv(e.y)}function Jv(e,t){return e.min===t.min&&e.max===t.max}function dM(e,t){return Jv(e.x,t.x)&&Jv(e.y,t.y)}function Qv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Uk(e,t){return Qv(e.x,t.x)&&Qv(e.y,t.y)}function Xv(e){return ft(e.x)/ft(e.y)}function Zv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function bn(e){return[e("x"),e("y")]}function hM(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:c,rotate:u,rotateX:d,rotateY:f,skewX:p,skewY:w}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),w&&(r+=`skewY(${w}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 Vk=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],fM=Vk.length,e0=e=>typeof e=="string"?parseFloat(e):e,t0=e=>typeof e=="number"||V.test(e);function pM(e,t,n,r,s,i){s?(e.opacity=we(0,n.opacity??1,mM(r)),e.opacityExit=we(t.opacity??1,0,gM(r))):i&&(e.opacity=we(t.opacity??1,n.opacity??1,r));for(let o=0;o<fM;o++){const a=Vk[o];let l=n0(t,a),c=n0(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||t0(l)===t0(c)?(e[a]=Math.max(we(e0(l),e0(c),r),0),(Nn.test(c)||Nn.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=we(t.rotate||0,n.rotate||0,r))}function n0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const mM=zk(0,.5,OS),gM=zk(.5,.95,Wt);function zk(e,t,n){return r=>r<e?0:r>t?1:n(Ta(e,t,r))}function yM(e,t,n){const r=Xe(e)?e:Ji(e);return r.start(zm("",r,t,n)),r.animation}function Aa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const vM=(e,t)=>e.depth-t.depth;class wM{constructor(){this.children=[],this.isDirty=!1}add(t){jm(this.children,t),this.isDirty=!0}remove(t){Wc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vM),this.isDirty=!1,this.children.forEach(t)}}function xM(e,t){const n=ht.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Hr(r),e(i-t))};return fe.setup(r,!0),()=>Hr(r)}function oc(e){return Xe(e)?e.get():e}class bM{constructor(){this.members=[]}add(t){jm(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.snapshot&&(Wc(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Wc(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){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,n){var s;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:o}=t.options;(i===void 0||i!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,s,i,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(s=t.resumingFrom)==null?void 0:(i=s.options).onExitComplete)==null||o.call(i)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const ac={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Wd=["","X","Y","Z"],SM=1e3;let kM=0;function Hd(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Wk(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=uk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",fe,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Wk(r)}function Hk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=kM++,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(TM),this.nodes.forEach(NM),this.nodes.forEach(OM),this.nodes.forEach(_M)},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 wM)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Nm),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=Ym(o)&&!CL(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;fe.read(()=>{d=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=xM(f,250),ac.hasAnimatedSinceResize&&(ac.hasAnimatedSinceResize=!1,this.nodes.forEach(i0)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||$M,{onLayoutAnimationStart:m,onLayoutAnimationComplete:b}=c.getProps(),y=!this.targetLayout||!Uk(this.targetLayout,p),g=!d&&f;if(this.options.layoutRoot||this.resumeFrom||g||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Vm(w,"layout"),onPlay:m,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(u,g)}else d||i0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}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(),Hr(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(IM),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&&Wk(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(AM),this.nodes.forEach(r0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(s0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(RM),this.nodes.forEach(jM),this.nodes.forEach(EM),this.nodes.forEach(CM)):this.nodes.forEach(s0),this.clearAllSnapshots();const a=ht.now();Qe.delta=In(0,1e3/60,a-Qe.timestamp),Qe.timestamp=a,Qe.isProcessing=!0,Md.update.process(Qe),Md.preRender.process(Qe),Md.render.process(Qe),Qe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Km.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(PM),this.sharedNodes.forEach(LM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,fe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){fe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ft(this.snapshot.measuredBox.x)&&!ft(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||(this.layoutCorrected=Ue()),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&&!Bk(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||us(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),FM(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Ue();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(BM))){const{scroll:u}=this.root;u&&(Tn(a.x,u.offset.x),Tn(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=Ue();if(Xt(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Xt(a,o),Tn(a.x,d.offset.x),Tn(a.y,d.offset.y))}return a}applyTransform(o,a=!1,l){var u,d;const c=l||Ue();Xt(c,o);for(let f=0;f<this.path.length;f++){const p=this.path[f];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(Tn(c.x,-p.scroll.offset.x),Tn(c.y,-p.scroll.offset.y)),us(p.latestValues)&&ic(c,p.latestValues,(u=p.layout)==null?void 0:u.layoutBox)}return us(this.latestValues)&&ic(c,this.latestValues,(d=this.layout)==null?void 0:d.layoutBox),c}removeTransform(o){var l;const a=Ue();Xt(a,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!us(u.latestValues))continue;let d;u.instance&&(Mf(u.latestValues)&&u.updateSnapshot(),d=Ue(),Xt(d,u.measurePageBox())),Gv(a,u.latestValues,(l=u.snapshot)==null?void 0:l.layoutBox,d)}return us(this.latestValues)&&Gv(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!==Qe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var p;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||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=Qe.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ue(),this.targetWithTransforms=Ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),aM(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Xt(this.target,this.layout.layoutBox),Pk(this.target,this.targetDelta)):Xt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Mf(this.parent.latestValues)||_k(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=Ue(),this.relativeTargetOrigin=Ue(),Qc(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Xt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Qe.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;Xt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;ML(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=Ue());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Vv(this.prevProjectionDelta.x,this.projectionDelta.x),Vv(this.prevProjectionDelta.y,this.projectionDelta.y)),Qo(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Zv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Zv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}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=vi(),this.projectionDelta=vi(),this.projectionDeltaWithTransform=vi()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=vi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Ue(),p=l?l.source:void 0,w=this.layout?this.layout.source:void 0,m=p!==w,b=this.getStack(),y=!b||b.members.length<=1,g=!!(m&&!y&&this.options.crossfade===!0&&!this.path.some(DM));this.animationProgress=0;let v;this.mixTargetDelta=S=>{const k=S/1e3;o0(d.x,o.x,k),o0(d.y,o.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qc(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),MM(this.relativeTarget,this.relativeTargetOrigin,f,k),v&&dM(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Ue()),Xt(v,this.relativeTarget)),m&&(this.animationValues=u,pM(u,c,this.latestValues,k,g,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fe.update(()=>{ac.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ji(0)),this.motionValue.jump(0,!1),this.currentAnimation=yM(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},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(SM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&qk(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ue();const d=ft(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=ft(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}Xt(a,l),ic(a,u),Qo(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new bM),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.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 c=this.getStack();c&&c.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}resetSkewAndRotation(){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 c={};l.z&&Hd("z",o,c,this.animationValues);for(let u=0;u<Wd.length;u++)Hd(`rotate${Wd[u]}`,o,c,this.animationValues),Hd(`skew${Wd[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);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=oc(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=oc(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!us(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=hM(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),o.transform=d;const{x:f,y:p}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const w in $f){if(u[w]===void 0)continue;const{correct:m,applyTo:b,isCSSVariable:y}=$f[w],g=d==="none"?u[w]:m(u[w],c);if(b){const v=b.length;for(let S=0;S<v;S++)o[b[S]]=g}else y?this.options.visualElement.renderState.vars[w]=g:o[w]=g}this.options.layoutId&&(o.pointerEvents=c===this?oc(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(r0),this.root.sharedNodes.clear()}}}function EM(e){e.updateLayout()}function CM(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;if(i==="size")bn(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],p=ft(f);f.min=r[d].min,f.max=f.min+p});else if(i==="x"||i==="y"){const d=i==="x"?"y":"x";Ff(o?t.measuredBox[d]:t.layoutBox[d],r[d])}else qk(i,t.layoutBox,r)&&bn(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],p=ft(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=vi();Qo(a,r,t.layoutBox);const l=vi();o?Qo(l,e.applyTransform(s,!0),t.measuredBox):Qo(l,r,t.layoutBox);const c=!Bk(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const w=e.options.layoutAnchor||void 0,m=Ue();Qc(m,t.layoutBox,f.layoutBox,w);const b=Ue();Qc(b,r,p.layoutBox,w),Uk(m,b)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function TM(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 _M(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function PM(e){e.clearSnapshot()}function r0(e){e.clearMeasurements()}function AM(e){e.isLayoutDirty=!0,e.updateLayout()}function s0(e){e.isLayoutDirty=!1}function RM(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function jM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function i0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function NM(e){e.resolveTargetDelta()}function OM(e){e.calcProjection()}
263function IM(e){e.resetSkewAndRotation()}function LM(e){e.removeLeadSnapshot()}function o0(e,t,n){e.translate=we(t.translate,0,n),e.scale=we(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function a0(e,t,n,r){e.min=we(t.min,n.min,r),e.max=we(t.max,n.max,r)}function MM(e,t,n,r){a0(e.x,t.x,n.x,r),a0(e.y,t.y,n.y,r)}function DM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const $M={duration:.45,ease:[.4,0,.1,1]},l0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),c0=l0("applewebkit/")&&!l0("chrome/")?Math.round:Wt;function u0(e){e.min=c0(e.min),e.max=c0(e.max)}function FM(e){u0(e.x),u0(e.y)}function qk(e,t,n){return e==="position"||e==="preserve-aspect"&&!oM(Xv(t),Xv(n),.2)}function BM(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const UM=Hk({attachResizeListener:(e,t)=>Aa(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}),qd={current:void 0},Kk=Hk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qd.current){const e=new UM({});e.mount(window),e.setOptions({layoutScroll:!0}),qd.current=e}return qd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),eg=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function d0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function VM(...e){return t=>{let n=!1;const r=e.map(s=>{const i=d0(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():d0(e[s],null)}}}}function zM(...e){return x.useCallback(VM(...e),e)}class WM extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(tc(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,s=tc(r)&&r.offsetWidth||0,i=tc(r)&&r.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=s-a.width-a.left,a.bottom=i-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function HM({children:e,isPresent:t,anchorX:n,anchorY:r,root:s,pop:i}){var f;const o=x.useId(),a=x.useRef(null),l=x.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=x.useContext(eg),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=zM(a,u);return x.useInsertionEffect(()=>{const{width:p,height:w,top:m,left:b,right:y,bottom:g}=l.current;if(t||i===!1||!a.current||!p||!w)return;const v=n==="left"?`left: ${b}`:`right: ${y}`,S=r==="bottom"?`bottom: ${g}`:`top: ${m}`;a.current.dataset.motionPopId=o;const k=document.createElement("style");c&&(k.nonce=c);const E=s??document.head;return E.appendChild(k),k.sheet&&k.sheet.insertRule(` 264 [data-motion-pop-id="${o}"] { 265 position: absolute !important; 266 width: ${p}px !important; 267 height: ${w}px !important; 268 ${v}px !important; 269 ${S}px !important; 270 } 271 `),()=>{var C;(C=a.current)==null||C.removeAttribute("data-motion-pop-id"),E.contains(k)&&E.removeChild(k)}},[t]),h.jsx(WM,{isPresent:t,childRef:a,sizeRef:l,pop:i,children:i===!1?e:x.cloneElement(e,{ref:d})})}const qM=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:l,root:c})=>{const u=Rm(KM),d=x.useId();let f=!0,p=x.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:s,onExitComplete:w=>{u.set(w,!0);for(const m of u.values())if(!m)return;r&&r()},register:w=>(u.set(w,!1),()=>u.delete(w))}),[n,u,r]);return i&&f&&(p={...p}),x.useMemo(()=>{u.forEach((w,m)=>u.set(m,!1))},[n]),x.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=h.jsx(HM,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),h.jsx(Mu.Provider,{value:p,children:e})};function KM(){return new Map}function Gk(e=!0){const t=x.useContext(Mu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=x.useId();x.useEffect(()=>{if(e)return s(i)},[e]);const o=x.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const El=e=>e.key||"";function h0(e){const t=[];
vendor: 5,647 bytes, line 271
271return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const Bf=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,d]=Gk(o),f=x.useMemo(()=>h0(e),[e]),p=o&&!u?[]:f.map(El),w=x.useRef(!0),m=x.useRef(f),b=Rm(()=>new Map),y=x.useRef(new Set),[g,v]=x.useState(f),[S,k]=x.useState(f);bS(()=>{w.current=!1,m.current=f;for(let T=0;T<S.length;T++){const A=El(S[T]);p.includes(A)?(b.delete(A),y.current.delete(A)):b.get(A)!==!0&&b.set(A,!1)}},[S,p.length,p.join("-")]);const E=[];if(f!==g){let T=[...f];for(let A=0;A<S.length;A++){const P=S[A],M=El(P);p.includes(M)||(T.splice(A,0,P),E.push(P))}return i==="wait"&&E.length&&(T=E),k(h0(T)),v(f),null}const{forceRender:C}=x.useContext(Am);return h.jsx(h.Fragment,{children:S.map(T=>{const A=El(T),P=o&&!u?!1:f===S||p.includes(A),M=()=>{if(y.current.has(A))return;if(b.has(A))y.current.add(A),b.set(A,!0);else return;let I=!0;b.forEach(H=>{H||(I=!1)}),I&&(C==null||C(),k(m.current),o&&(d==null||d()),r&&r())};return h.jsx(qM,{isPresent:P,initial:!w.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:P?void 0:M,anchorX:a,anchorY:l,children:T},A)})})},Yk=x.createContext({strict:!1}),f0={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 p0=!1;function GM(){if(p0)return;const e={};for(const t in f0)e[t]={isEnabled:n=>f0[t].some(r=>!!n[r])};Ek(e),p0=!0}function Jk(){return GM(),NL()}function YM(e){const t=Jk();for(const n in e)t[n]={...t[n],...e[n]};Ek(t)}const JM=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 Xc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||JM.has(e)}let Qk=e=>!Xc(e);function QM(e){typeof e=="function"&&(Qk=t=>t.startsWith("on")?!Xc(t):e(t))}try{QM(require("@emotion/is-prop-valid").default)}catch{}function XM(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||Xe(e[s])||(Qk(s)||n===!0&&Xc(s)||!t&&!Xc(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Uu=x.createContext({});function ZM(e,t){if(Bu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Pa(n)?n:void 0,animate:Pa(r)?r:void 0}}return e.inherit!==!1?t:{}}function eD(e){const{initial:t,animate:n}=ZM(e,x.useContext(Uu));return x.useMemo(()=>({initial:t,animate:n}),[m0(t),m0(n)])}function m0(e){return Array.isArray(e)?e.join(" "):e}const tg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Xk(e,t,n){for(const r in t)!Xe(t[r])&&!jk(r,n)&&(e[r]=t[r])}function tD({transformTemplate:e},t){return x.useMemo(()=>{const n=tg();return Xm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function nD(e,t){const n=e.style||{},r={};return Xk(r,n,e),Object.assign(r,tD(e,t)),r}function rD(e,t){const n={},r=nD(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"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Zk=()=>({...tg(),attrs:{}});function sD(e,t,n,r){const s=x.useMemo(()=>{const i=Zk();return Nk(i,t,Ik(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Xk(i,e.style,e),s.style={...i,...s.style}}return s}const iD=["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 ng(e){return typeof e!="string"||e.includes("-")?!1:!!(iD.indexOf(e)>-1||/[A-Z]/u.test(e))}function oD(e,t,n,{latestValues:r},s,i=!1,o){const l=(o??ng(e)?sD:rD)(t,r,s,e),c=XM(t,typeof e=="string",i),u=e!==x.Fragment?{...c,...l,ref:n}:{},{children:d}=t,f=x.useMemo(()=>Xe(d)?d.get():d,[d]);return x.createElement(e,{...u,children:f})}function aD({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:lD(n,r,s,e),renderState:t()}}function lD(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=oc(i[f]);let{initial:o,animate:a}=e;const l=Bu(e),c=Sk(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Fu(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const w=Wm(e,f[p]);if(w){const{transitionEnd:m,transition:b,...y}=w;for(const g in y){let v=y[g];if(Array.isArray(v)){const S=u?v.length-1:0;v=v[S]}v!==null&&(s[g]=v)}for(const g in m)s[g]=m[g]}}}return s}const eE=e=>(t,n)=>{const r=x.useContext(Uu),s=x.useContext(Mu),i=()=>aD(e,t,r,s);return n?i():Rm(i)},cD=eE({scrapeMotionValuesFromProps:Zm,createRenderState:tg}),uD=eE({scrapeMotionValuesFromProps:Lk,createRenderState:Zk}),dD=Symbol.for("motionComponentSymbol");
vendor: 21,691 bytes, line 271
271function hD(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const s=x.useRef(null);return x.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i));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&&(i?t.mount(i):t.unmount())},[t])}const tE=x.createContext({});function Zs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function fD(e,t,n,r,s,i){var v,S;const{visualElement:o}=x.useContext(Uu),a=x.useContext(Yk),l=x.useContext(Mu),c=x.useContext(eg),u=c.reducedMotion,d=c.skipAnimations,f=x.useRef(null),p=x.useRef(!1);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const w=f.current,m=x.useContext(tE);w&&!w.projection&&s&&(w.type==="html"||w.type==="svg")&&pD(f.current,n,s,m);const b=x.useRef(!1);x.useInsertionEffect(()=>{w&&b.current&&w.update(n,l)});const y=n[ck],g=x.useRef(!!y&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,y))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,y)));return bS(()=>{p.current=!0,w&&(b.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),g.current&&w.animationState&&w.animationState.animateChanges())}),x.useEffect(()=>{w&&(!g.current&&w.animationState&&w.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var k;(k=window.MotionHandoffMarkAsComplete)==null||k.call(window,y)}),g.current=!1),w.enteringChildren=void 0)}),w}function pD(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:nE(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:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function nE(e){if(e)return e.options.allowProjection!==!1?e.projection:nE(e.parent)}function Kd(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&YM(r);const i=n?n==="svg":ng(e),o=i?uD:cD;function a(c,u){let d;const f={...x.useContext(eg),...c,layoutId:mD(c)},{isStatic:p}=f,w=eD(c),m=o(c,p);if(!p&&typeof window<"u"){gD();const b=yD(f);d=b.MeasureLayout,w.visualElement=fD(e,m,f,s,b.ProjectionNode,i)}return h.jsxs(Uu.Provider,{value:w,children:[d&&w.visualElement?h.jsx(d,{visualElement:w.visualElement,...f}):null,oD(e,c,hD(m,w.visualElement,u),m,p,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=x.forwardRef(a);return l[dD]=e,l}function mD({layoutId:e}){const t=x.useContext(Am).id;return t&&e!==void 0?t+"-"+e:e}function gD(e,t){x.useContext(Yk).strict}function yD(e){const t=Jk(),{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}}function vD(e,t){if(typeof Proxy>"u")return Kd;const n=new Map,r=(i,o)=>Kd(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,Kd(o,void 0,e,t)),n.get(o))})}const wD=(e,t)=>t.isSVG??ng(e)?new YL(t):new zL(t,{allowProjection:e!==x.Fragment});class xD extends Xr{constructor(t){super(t),t.animationState||(t.animationState=eM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fu(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 bD=0;class SD extends Xr{constructor(){super(...arguments),this.id=bD++,this.isExitComplete=!1}update(){var i;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;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"){const l=_s(this.node,o,a);if(l){const{transition:c,transitionEnd:u,...d}=l;for(const f in d)(i=this.node.getValue(f))==null||i.jump(d[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const kD={animation:{Feature:xD},exit:{Feature:SD}};function Ya(e){return{point:{x:e.pageX,y:e.pageY}}}const ED=e=>t=>Gm(t)&&e(t,Ya(t));function Xo(e,t,n,r){return Aa(e,t,ED(n),r)}const rE=({current:e})=>e?e.ownerDocument.defaultView:null,g0=(e,t)=>Math.abs(e-t);function CD(e,t){const n=g0(e.x,t.x),r=g0(e.y,t.y);return Math.sqrt(n**2+r**2)}const y0=new Set(["auto","scroll"]);class sE{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.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Cl(this.lastRawMoveEventInfo,this.transformPagePoint));const p=Gd(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,m=CD(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!m)return;const{point:b}=p,{timestamp:y}=Qe;this.history.push({...b,timestamp:y});const{onStart:g,onMove:v}=this.handlers;w||(g&&g(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,p)},this.handlePointerMove=(p,w)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Cl(w,this.transformPagePoint),fe.update(this.updatePoint,!0)},this.handlePointerUp=(p,w)=>{this.end();const{onEnd:m,onSessionEnd:b,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Gd(p.type==="pointercancel"?this.lastMoveEventInfo:Cl(w,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,g),b&&b(p,g)},!Gm(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=Ya(t),c=Cl(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=Qe;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Gd(c,this.history)),this.removeListeners=qa(Xo(this.contextWindow,"pointermove",this.handlePointerMove),Xo(this.contextWindow,"pointerup",this.handlePointerUp),Xo(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(y0.has(r.overflowX)||y0.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),fe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Hr(this.updatePoint)}}function Cl(e,t){return t?{point:t(e.point)}:e}function v0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gd({point:e},t){return{point:e,delta:v0(e,iE(t)),offset:v0(e,TD(t)),velocity:_D(t,.1)}}function TD(e){return e[0]}function iE(e){return e[e.length-1]}function _D(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=iE(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Et(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Et(t)*2&&(r=e[1]);const i=Vt(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 PD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?we(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?we(n,e,r.max):Math.min(e,n)),e}function w0(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 AD(e,{top:t,left:n,bottom:r,right:s}){return{x:w0(e.x,n,s),y:w0(e.y,t,r)}}function x0(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 RD(e,t){return{x:x0(e.x,t.x),y:x0(e.y,t.y)}}function jD(e,t){let n=.5;const r=ft(e),s=ft(t);return s>r?n=Ta(t.min,t.max-r,e.min):r>s&&(n=Ta(e.min,e.max-s,t.min)),In(0,1,n)}function ND(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 Uf=.35;function OD(e=Uf){return e===!1?e=0:e===!0&&(e=Uf),{x:b0(e,"left","right"),y:b0(e,"top","bottom")}}function b0(e,t,n){return{min:S0(e,t),max:S0(e,n)}}function S0(e,t){return typeof e=="number"?e:e[t]||0}const ID=new WeakMap;class LD{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=Ue(),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(Ya(d).point),this.stopAnimation()},o=(d,f)=>{const{drag:p,dragPropagation:w,onDragStart:m}=this.getProps();if(p&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lL(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bn(y=>{let g=this.getAxisMotionValue(y).get()||0;if(Nn.test(g)){const{projection:v}=this.visualElement;if(v&&v.layout){const S=v.layout.layoutBox[y];S&&(g=ft(S)*(parseFloat(g)/100))}}this.originPoint[y]=g}),m&&fe.update(()=>m(d,f),!1,!0),jf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:w,onDirectionLock:m,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=f;if(w&&this.currentDirection===null){this.currentDirection=DD(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),b&&fe.update(()=>b(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new sE(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:rE(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&&fe.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||!Tl(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=PD(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=AD(r.layoutBox,t):this.constraints=!1,this.elastic=OD(n),s!==this.constraints&&!Zs(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&bn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=ND(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Zs(t))return!1;const r=t.current;Gi(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=DL(r,s.root,this.visualElement.getTransformPagePoint());let o=RD(s.layout.layoutBox,i);if(n){const a=n(IL(o));this.hasMutatedConstraints=!!a,a&&(o=Tk(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=bn(u=>{if(!Tl(u,n,this.currentDirection))return;let d=l&&l[u]||{};(o===!0||o===u)&&(d={min:0,max:0});const f=s?200:1e6,p=s?40:1e7,w={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,w)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return jf(this.visualElement,t),r.start(zm(t,r,0,n,this.visualElement,!1))}stopAnimation(){bn(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){bn(n=>{const{drag:r}=this.getProps();if(!Tl(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]-we(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};bn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=jD({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(),bn(o=>{if(!Tl(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(we(l,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;ID.set(this.visualElement,this);const t=this.visualElement.current,n=Xo(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==t&&pL(f);u&&d&&!p&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();Zs(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=MD(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),fe.read(s);const a=Aa(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(bn(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[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=Uf,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function k0(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function MD(e,t,n){const r=Rv(e,k0(n)),s=Rv(t,k0(n));return()=>{r(),s()}}function Tl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function DD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $D extends Xr{constructor(t){super(t),this.removeGroupControls=Wt,this.removeListeners=Wt,this.controls=new LD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wt}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 Yd=e=>(t,n)=>{e&&fe.update(()=>e(t,n),!1,!0)};class FD extends Xr{constructor(){super(...arguments),this.removePointerDownListener=Wt}onPointerDown(t){this.session=new sE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Yd(t),onStart:Yd(n),onMove:Yd(r),onEnd:(i,o)=>{delete this.session,s&&fe.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Xo(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 Jd=!1;class BD extends x.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),Jd&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ac.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}),Jd=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||fe.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Km.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Jd=!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 oE(e){const[t,n]=Gk(),r=x.useContext(Am);return h.jsx(BD,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(tE),isPresent:t,safeToRemove:n})}const UD={pan:{Feature:FD},drag:{Feature:$D,ProjectionNode:Kk,MeasureLayout:oE}};function E0(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&&fe.postRender(()=>i(t,Ya(t)))}class VD extends Xr{mount(){const{current:t}=this.node;t&&(this.unmount=uL(t,(n,r)=>(E0(this.node,r,"Start"),s=>E0(this.node,s,"End"))))}unmount(){}}class zD extends Xr{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=qa(Aa(this.node.current,"focus",()=>this.onFocus()),Aa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function C0(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&&fe.postRender(()=>i(t,Ya(t)))}class WD extends Xr{mount(){const{current:t}=this.node;if(!t)return;
271const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=gL(t,(s,i)=>(C0(this.node,i,"Start"),(o,{success:a})=>C0(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Vf=new WeakMap,Qd=new WeakMap,HD=e=>{const t=Vf.get(e.target);t&&t(e)},qD=e=>{e.forEach(HD)};function KD({root:e,...t}){const n=e||document;Qd.has(n)||Qd.set(n,{});const r=Qd.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(qD,{root:e,...t})),r[s]}function GD(e,t,n){const r=KD(t);return Vf.set(e,n),r.observe(e),()=>{Vf.delete(e),r.unobserve(e)}}const YD={some:0,all:1};class JD extends Xr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);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:YD[s]},a=c=>{const{isIntersecting:u}=c;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:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(c)};this.stopObserver=GD(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(QD(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function QD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const XD={inView:{Feature:JD},tap:{Feature:WD},focus:{Feature:zD},hover:{Feature:VD}},ZD={layout:{ProjectionNode:Kk,MeasureLayout:oE}},e$={...kD,...XD,...UD,...ZD},xe=vD(e$,wD),t$=p1("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"}}),qe=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?_P:"button";return h.jsx(o,{className:Be(t$({variant:t,size:n,className:e})),ref:i,...s})});qe.displayName="Button";const n$="/assets/logo-dark-BjiiBsuc.png",Qi=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!1),s=[{label:"Home",href:"/"},{label:"About Us",href:"/#about"},{label:"Coverages",href:"/#coverages",dropdown:[{label:"Personal Insurance",href:"/personal-insurance"},{label:"Small Business",href:"/small-business-insurance"},{label:"Coastal Homeowners",href:"/coastal-homeowners-insurance"},{label:"Flood Insurance",href:"/flood-insurance"},{label:"Landlord Insurance",href:"/landlord-insurance"},{label:"Auto Insurance",href:"/auto-insurance"},{label:"Homeowners Insurance",href:"/homeowners-insurance"}]},{label:"Contact",href:"/#contact"}];return h.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50",children:[h.jsx("div",{className:"bg-primary text-primary-foreground py-2",children:h.jsxs("div",{className:"container mx-auto px-4 flex justify-between items-center text-sm",children:[h.jsx("div",{className:"hidden md:flex items-center gap-6",children:h.jsx("span",{className:"text-primary-foreground/80",children:"Serving Louisiana & Mississippi"})}),h.jsxs("div",{className:"flex items-center gap-4 md:gap-6 mx-auto md:mx-0",children:[h.jsxs("a",{href:"tel:+1-225-655-8008",className:"flex items-center gap-2 hover:text-accent transition-colors",children:[h.jsx(Hi,{className:"w-4 h-4"}),h.jsx("span",{children:"(225) 655-8008"})]}),h.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 hover:text-accent transition-colors",children:[h.jsx(um,{className:"w-4 h-4"}),h.jsx("span",{className:"hidden sm:inline",children:"[email protected]"})]})]})]})}),h.jsxs("nav",{className:"bg-card/95 backdrop-blur-md border-b border-border shadow-sm",children:[h.jsx("div",{className:"container mx-auto px-4",children:h.jsxs("div",{className:"flex items-center justify-between h-20",children:[h.jsx("a",{href:"/",className:"flex items-center h-20 overflow-hidden ml-6",children:h.jsx("img",{src:n$,alt:"Evolve Insurance Partners",className:"h-[8.75rem] w-auto object-contain mix-blend-multiply"})}),h.jsx("div",{className:"hidden lg:flex items-center gap-8",children:s.map(i=>h.jsxs("div",{className:"relative group",children:[i.dropdown?h.jsxs("button",{className:"flex items-center gap-1 text-foreground
271/80 hover:text-foreground transition-colors font-medium",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[i.label,h.jsx(cm,{className:"w-4 h-4"})]}):h.jsx("a",{href:i.href,className:"text-foreground/80 hover:text-foreground transition-colors font-medium",children:i.label}),i.dropdown&&h.jsx(Bf,{children:n&&h.jsx(xe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2},className:"absolute top-full left-0 mt-2 w-48 bg-card rounded-lg shadow-lg border border-border py-2",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:i.dropdown.map(o=>h.jsx("a",{href:o.href,className:"block px-4 py-2 text-foreground/80 hover:text-foreground hover:bg-muted transition-colors",children:o.label},o.label))})})]},i.label))}),h.jsxs("div",{className:"hidden lg:flex items-center gap-3",children:[h.jsx("a",{href:"https://customer.insuranceagentapp.com/?tracking_id=47b46a31-4492-4b0c-b496-604f8eebdde6",target:"_blank",rel:"noopener noreferrer",children:h.jsx(qe,{variant:"outline",size:"lg",children:"Client Portal"})}),h.jsx(qe,{size:"lg",className:"bg-accent text-accent-foreground hover:bg-gold-dark shadow-gold",onClick:()=>window.location.href="/get-quote",children:"Get a Quote"})]}),h.jsx("button",{className:"lg:hidden p-2 text-foreground",onClick:()=>t(!e),children:e?h.jsx(y1,{className:"w-6 h-6"}):h.jsx(IA,{className:"w-6 h-6"})})]})}),h.jsx(Bf,{children:e&&h.jsx(xe.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"lg:hidden bg-card border-t border-border",children:h.jsxs("div",{className:"container mx-auto px-4 py-4 space-y-4",children:[s.map(i=>h.jsxs("div",{children:[h.jsx("a",{href:i.href,className:"block py-2 text-foreground font-medium",onClick:()=>t(!1),children:i.label}),i.dropdown&&h.jsx("div",{className:"pl-4 space-y-2",children:i.dropdown.map(o=>h.jsx("a",{href:o.href,className:"block py-1 text-muted-foreground",onClick:()=>t(!1),children:o.label},o.label))})]},i.label)),h.jsxs("div",{className:"pt-4 space-y-3",children:[h.jsx("a",{href:"https://customer.insuranceagentapp.com/?tracking_id=47b46a31-4492-4b0c-b496-604f8eebdde6",target:"_blank",rel:"noopener noreferrer",className:"w-full",children:h.jsx(qe,{variant:"outline",className:"w-full",children:"Client Portal"})}),h.jsx(qe,{className:"w-full bg-accent text-accent-foreground hover:bg-gold-dark",onClick:()=>window.location.href="/get-quote",children:"Get a Quote"})]})]})})})]})]})},r$="/assets/hero-family-oUqryr_E.png",s$=()=>h.jsxs("section",{className:"relative min-h-screen flex items-center bg-hero-gradient overflow-hidden pt-32",children:[h.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[h.jsx("div",{className:"absolute top-1/4 -right-20 w-96 h-96 bg-accent/10 rounded-full blur-3xl"}),h.jsx("div",{className:"absolute bottom-1/4 -left-20 w-80 h-80 bg-accent/5 rounded-full blur-3xl"}),h.jsx("div",{className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})]}),h.jsx("div",{className:"container mx-auto px-4 relative z-10",children:h.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[h.jsxs(xe.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.8},className:"text-center lg:text-left",children:[h.jsxs(xe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"inline-flex items-center gap-2 bg-primary-foreground/10 backdrop-blur-sm border border-primary-foreground/20 rounded-full px-4 py-2 mb-6",children:[h.jsx("span",{className:"w-2 h-2 bg-accent rounded-full animate-pulse-glow"}),h.jsx("span",{className:"text-primary-foreground/90 text-sm font-medium",children:"Serving Louisiana & Mississippi"})]}),h.jsxs("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-primary-foreground leading-tight mb-6",children:["Simplified by Technology."," ",h.jsx("span",{className:"text-gradient",children:"Powered by Choice."})," ",h.jsx("br",{className:"hidden md:block"}),"Options Matter â That's Why We're Independent."]}),h.jsx("p",{className:"text-lg md:text-xl text-primary-foreground
271/70 mb-8 max-w-xl mx-auto lg:mx-0",children:"We're a remote-based independent agency with the technology and team to service your insurance needs. Finding the best coverage has never been simpler."}),h.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start",children:[h.jsxs(qe,{size:"lg",className:"bg-accent text-accent-foreground hover:bg-gold-dark shadow-gold text-lg px-8 py-6",onClick:()=>window.location.href="/get-quote",children:["Start a Quote",h.jsx(so,{className:"ml-2 w-5 h-5"})]}),h.jsx(qe,{variant:"outline",size:"lg",className:"border-accent text-accent hover:bg-accent hover:text-accent-foreground text-lg px-8 py-6",onClick:()=>{var e;return(e=document.getElementById("coverages"))==null?void 0:e.scrollIntoView({behavior:"smooth"})},children:"Learn More"})]}),h.jsxs(xe.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.6},className:"flex flex-wrap gap-8 mt-12 justify-center lg:justify-start",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-12 h-12 bg-accent/20 rounded-lg flex items-center justify-center",children:h.jsx(g1,{className:"w-6 h-6 text-accent"})}),h.jsxs("div",{children:[h.jsx("p",{className:"text-2xl font-bold text-primary-foreground",children:"20+"}),h.jsx("p",{className:"text-primary-foreground/60 text-sm",children:"Insurance Carriers"})]})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-12 h-12 bg-accent/20 rounded-lg flex items-center justify-center",children:h.jsx(WA,{className:"w-6 h-6 text-accent"})}),h.jsxs("div",{children:[h.jsx("p",{className:"text-2xl font-bold text-primary-foreground",children:"1000+"}),h.jsx("p",{className:"text-primary-foreground/60 text-sm",children:"Happy Clients"})]})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-12 h-12 bg-accent/20 rounded-lg flex items-center justify-center",children:h.jsx(CA,{className:"w-6 h-6 text-accent"})}),h.jsxs("div",{children:[h.jsx("p",{className:"text-2xl font-bold text-primary-foreground",children:"24hr"}),h.jsx("p",{className:"text-accent text-sm",children:"Quote Response"})]})]})]})]}),h.jsx(xe.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.8,delay:.3},className:"relative hidden lg:block",children:h.jsxs("div",{className:"relative",children:[h.jsx("div",{className:"bg-card/10 backdrop-blur-md border border-primary-foreground/20 rounded-3xl p-8 shadow-2xl",children:h.jsx("div",{className:"aspect-[4/3] rounded-2xl bg-gradient-to-br from-primary-foreground/5 to-primary-foreground/10 flex items-center justify-center overflow-hidden",children:h.jsx("img",{src:r$,alt:"Happy family in front of their Southern home",className:"w-full h-full object-cover object-left rounded-2xl opacity-80"})})}),h.jsx(xe.div,{animate:{y:[10,-10,10]},transition:{duration:5,repeat:1/0,ease:"easeInOut"},className:"absolute -bottom-4 -left-6 bg-card rounded-2xl shadow-lg p-4 border border-border",children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-10 h-10 bg-accent/10 rounded-full flex items-center justify-center",children:h.jsx("span",{className:"text-accent font-bold",children:"$"})}),h.jsxs("div",{children:[h.jsx("p",{className:"font-semibold text-foreground text-sm",children:"Save up to 40%"}),h.jsx("p",{className:"text-muted-foreground text-xs",children:"vs. major carriers"})]})]})})]})})]})}),h.jsx("div",{className:"absolute bottom-0 left-0 right-0",children:h.jsx("svg",{viewBox:"0 0 1440 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full",children:h.jsx("path",{d:"M0 120L60 105C120 90 240 60 360 45C480 30 600 30 720 37.5C840 45 960 60 1080 67.5C1200 75 1320 75 1380 75L1440 75V120H1380C1320 120 1200 120 1080 120C960 120 840 120 720 120C600 120 480 120 360 120C240 120 120 120 60 120H0Z",className:"fill-background"})})})]}),i$=[{quote:"Great customer service! They saved me money on both my home and auto policies and took care of everything. All of my questions were answered with patience and in a timely manner.",author:"Sarah M.",role:"Homeowner",rating:5},{quote:"I am beyond happy and impressed with the customer service that was given through this company! The insurance agent named Jasmine Short really made sure that all questions were answered.",author:"Michael T.",role:"New Homebuyer",rating:5},{quote:"Brad Landry did an excellent job finding the best rates for our insurance in a timely manner. The quick and professional service cannot be beat!!",author:"Robert K.",role:"Business Owner",rating:5},{quote:"These guys beat all of our other home insurance quotes and were much easier to work with. That's s
271aying a lot being that I am a USAA member. I saved money and time.",author:"Jennifer L.",role:"USAA Member",rating:5}],o$=()=>h.jsx("section",{className:"py-20 bg-background relative overflow-hidden",children:h.jsxs("div",{className:"container mx-auto px-4",children:[h.jsxs(xe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[h.jsx("span",{className:"text-accent font-semibold text-sm uppercase tracking-wider",children:"Testimonials"}),h.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mt-2 mb-4",children:"What Our Clients Say"}),h.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Don't just take our word for it. Here's what real customers have to say about their experience with Evolve Insurance Partners."})]}),h.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:i$.map((e,t)=>h.jsxs(xe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"bg-card rounded-2xl p-6 shadow-card border border-border hover:shadow-card-hover transition-all duration-300 relative group",children:[h.jsx(BA,{className:"w-8 h-8 text-accent/20 absolute top-4 right-4"}),h.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(e.rating)].map((n,r)=>h.jsx(VA,{className:"w-4 h-4 fill-accent text-accent"},r))}),h.jsxs("p",{className:"text-foreground/80 text-sm leading-relaxed mb-6",children:['"',e.quote,'"']}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-10 h-10 bg-primary rounded-full flex items-center justify-center",children:h.jsx("span",{className:"text-primary-foreground font-semibold text-sm",children:e.author.split(" ").map(n=>n[0]).join("")})}),h.jsxs("div",{children:[h.jsx("p",{className:"font-semibold text-foreground text-sm",children:e.author}),h.jsx("p",{className:"text-muted-foreground text-xs",children:e.role})]})]})]},t))})]})}),a$=[{carrier:"Allstate",savings:32},{carrier:"State Farm",savings:28},{carrier:"Geico",savings:25},{carrier:"Farm Bureau",savings:22}],l$=()=>h.jsxs("section",{className:"py-20 bg-primary relative overflow-hidden",id:"about",children:[h.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[h.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-accent/10 rounded-full blur-3xl"}),h.jsx("div",{className:"absolute bottom-0 left-0 w-80 h-80 bg-accent/5 rounded-full blur-3xl"})]}),h.jsx("div",{className:"container mx-auto px-4 relative z-10",children:h.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[h.jsxs(xe.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[h.jsx("span",{className:"text-accent font-semibold text-sm uppercase tracking-wider",children:"Save Money"}),h.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mt-2 mb-6",children:"Insurance is never just about price, but we deliver when it comes to saving you money."}),h.jsx("p",{className:"text-primary-foreground/70 mb-8 text-lg",children:'We routinely beat the "big brand" companies you see on TV by comparing your policies with dozens of the top-rated national & regional insurance carriers.'}),h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"w-14 h-14 bg-accent/20 rounded-xl flex items-center justify-center",children:h.jsx(zA,{className:"w-7 h-7 text-accent"})}),h.jsxs("div",{children:[h.jsx("p",{className:"text-primary-foreground font-semibold",children:"Average Savings"}),h.jsx("p",{className:"text-accent text-2xl font-bold",children:"$750+ per year"})]})]}),h.jsxs(qe,{size:"lg",className:"bg-accent text-accent-foreground hover:bg-gold-dark shadow-gold",onClick:()=>window.location.href="/get-quote",children:["Get Your Free Quote",h.jsx(so,{className:"ml-2 w-5 h-5"})]})]}),h.jsx(xe.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"space-y-6",children:a$.map((e,t)=>h.jsxs(xe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1}
271,className:"bg-primary-foreground/5 backdrop-blur-sm rounded-xl p-5 border border-primary-foreground/10",children:[h.jsxs("div",{className:"flex justify-between items-center mb-3",children:[h.jsxs("span",{className:"text-primary-foreground font-medium",children:["vs. ",e.carrier]}),h.jsxs("span",{className:"text-accent font-bold text-xl",children:[e.savings,"% avg savings"]})]}),h.jsx("div",{className:"w-full bg-primary-foreground/10 rounded-full h-3 overflow-hidden",children:h.jsx(xe.div,{initial:{width:0},whileInView:{width:`${e.savings*2.5}%`},viewport:{once:!0},transition:{delay:t*.1+.3,duration:.8,ease:"easeOut"},className:"h-full bg-gradient-to-r from-accent to-gold-light rounded-full"})})]},e.carrier))})]})})]}),c$=[{icon:$A,title:"Start Online",description:"Enter some basic information on our website to get started. It only takes a few minutes.",step:"01"},{icon:UA,title:"We Shop For You",description:"We compare rates from multiple insurance carriers to find you the best coverage and price.",step:"02"},{icon:EA,title:"Pick The Best Plan",description:"Choose the coverage package that fits your needs and budget. We handle all the paperwork.",step:"03"}],u$=()=>h.jsx("section",{className:"py-20 bg-secondary/50 relative",children:h.jsxs("div",{className:"container mx-auto px-4",children:[h.jsxs(xe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[h.jsx("span",{className:"text-accent font-semibold text-sm uppercase tracking-wider",children:"How It Works"}),h.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mt-2 mb-4",children:"Our Process Couldn't Be Easier"}),h.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"We do the heavy lifting for you. Start online today and let us handle the rest."})]}),h.jsxs("div",{className:"grid md:grid-cols-3 gap-8 relative",children:[h.jsx("div",{className:"hidden md:block absolute top-24 left-1/4 right-1/4 h-0.5 bg-gradient-to-r from-accent/50 via-accent to-accent/50"}),c$.map((e,t)=>h.jsx(xe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.2},className:"relative",children:h.jsxs("div",{className:"bg-card rounded-2xl p-8 shadow-card border border-border text-center relative hover:shadow-card-hover transition-all duration-300",children:[h.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2 w-8 h-8 bg-accent rounded-full flex items-center justify-center text-accent-foreground font-bold text-sm",children:e.step}),h.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-2xl flex items-center justify-center mx-auto mb-6 mt-4",children:h.jsx(e.icon,{className:"w-8 h-8 text-primary"})}),h.jsx("h3",{className:"text-xl font-bold text-foreground mb-3",children:e.title}),h.jsx("p",{className:"text-muted-foreground",children:e.description})]})},e.title))]}),h.jsx(xe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mt-12",children:h.jsxs(qe,{size:"lg",className:"bg-accent text-accent-foreground hover:bg-gold-dark shadow-gold",onClick:()=>window.location.href="/get-quote",children:["Start Your Quote",h.jsx(so,{className:"ml-2 w-5 h-5"})]})})]})}),d$="/assets/gulf-coast-home-po6PtdUX.jpg",h$="/assets/auto-insurance-B10AySiH.jpg",f$=[{icon:RA,title:"Personal Insurance",description:"Whether it's homeowners, auto, umbrella, motorcycle, boat or RV, we can help you find the best combination of cost & coverage.",image:"https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=600&q=80"},{icon:xA,title:"Small Business Insurance",description:"Don't trust your livelihood to just any agent. We protect hundreds of small businesses in this tricky coastal market.",image:"https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=600&q=80"},{icon:Oy,title:"Coastal Homeowners",description:"We specialize in insurance for the coastal homeowners market with multiple options for coast and inland properties.",image:d$},{icon:TA,title:"Flood Insurance",description:"Beyond NFIP options, we have multiple private flood insurance options. Many times significantly less than the NFIP program.",image:"https://images.unsplash.com/photo-1547683905-f686c993aae5?w=600&q=80"},{icon:NA,title:"Landlord Insurance",description:"Protect your rental properties with coverage tailored for landlords. We cover liability, property damage, loss of rental income, and more.",image:"https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=600&q=80"},{icon:Oy,title:"Auto Insurance",description:"Get the best rates on auto insurance with coverage options tailored to your driving needs. We shop multiple carriers to save you money.",image:h$}],p$=()=>h.jsx("section",{className:"py-20 bg-background",id:"coverages",children:h.jsxs("div",{className:"container mx-auto px-4",children:[h.jsxs(xe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[h.jsx("span",{className:"text-accent font-semibold text-sm uppercase tracking-wider",children:"Our C
271overages"}),h.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mt-2 mb-4",children:"No Matter What You Need, We've Got You Covered"}),h.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"From personal insurance to commercial coverage, our team of experts will find the right protection for your unique needs."})]}),h.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:f$.map((e,t)=>h.jsxs(xe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"group relative overflow-hidden rounded-2xl bg-card shadow-card border border-border hover:shadow-card-hover transition-all duration-500",children:[h.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary via-primary/80 to-transparent opacity-0 group-hover:opacity-90 transition-opacity duration-500 z-10"}),h.jsx("img",{src:e.image,alt:e.title,className:"w-full h-64 object-cover transition-transform duration-500 group-hover:scale-110"}),h.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6 z-20 transform translate-y-8 group-hover:translate-y-0 transition-transform duration-500",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[h.jsx("div",{className:"w-12 h-12 bg-accent rounded-xl flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:h.jsx(e.icon,{className:"w-6 h-6 text-accent-foreground"})}),h.jsx("h3",{className:"text-xl font-bold text-primary-foreground",children:e.title})]}),h.jsx("p",{className:"text-primary-foreground/80 mb-4 opacity-0 group-hover:opacity-100 transition-opacity duration-300 delay-100",children:e.description}),h.jsxs(qe,{variant:"outline",size:"sm",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300 delay-150",onClick:()=>window.location.href="/get-quote",children:["Learn More",h.jsx(so,{className:"ml-2 w-4 h-4"})]})]}),h.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-6 bg-gradient-to-t from-card to-transparent group-hover:opacity-0 transition-opacity duration-300",children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center",children:h.jsx(e.icon,{className:"w-5 h-5 text-primary"})}),h.jsx("h3",{className:"text-lg font-bold text-foreground",children:e.title})]})})]},e.title))})]})}),m$=[{icon:HA,title:"Fast Quoting",description:"We know time is always of the essence which is why we work efficiently to service each client."},{icon:AA,title:"Personal Service",description:"Each client has a different risk profile, and thus, gets personalized attention & customer service."},{icon:g1,title:"Claims Advocacy",description:"Insurance is meant to protect us and we're here when you need us the most - at the time of a claim."}],g$=()=>h.jsx("section",{className:"py-20 bg-secondary/50",children:h.jsxs("div",{className:"container mx-auto px-4",children:[h.jsxs(xe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[h.jsx("span",{className:"text-accent font-semibold text-sm uppercase tracking-wider",children:"Why Choose Us"}),h.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mt-2 mb-4",children:"Fast, Easy, and Affordable"}),h.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"At Evolve Insurance Partners, we realize you have options, and strive to make your experience with us exceptional."})]}),h.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:m$.map((e,t)=>h.jsxs(xe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.15},className:"bg-card rounded-2xl p-8 shadow-card border border-border text-center hover:shadow-card-hover transition-all duration-300 group",children:[h.jsx("div",{className:"w-16 h-16 bg-accent/10 rounded-2xl flex items-center justify-center mx-auto mb-6 group-hover:bg-accent group-hover:scale-110 transition-all duration-300",children:h.jsx(e.icon,{className:"w-8 h-8 text-accent group-hover:text-accent-foreground transition-colors duration-300"})}),h.jsx("h3",{className:"text-xl font-bold text-foreground mb-3",children:e.title}),h.jsx("p",{className:"text-muted-foreground",children:e.description})]},e.title))})]})}),y$=()=>h.jsxs("section",{className:"py-20 bg-primary relative overflow-hidden",id:"contact",children:[h.jsx("div",{className:"absolute inset-0 overflow-hidden",children:h.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-accent/5 rounded-full blur-3xl"})}),h.jsx("div",{className:"container mx-auto px-4 relative z-10",children:h.jsxs(xe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center max-w-3xl mx-auto",children:[h.jsx("h2",{className:"text-3xl md:text-5xl font-bold text-primary-foreground mb-6",children:"Start A Conversation With Our Friendly Team"}
271),h.jsx("p",{className:"text-primary-foreground/70 text-lg mb-10",children:"At Evolve Insurance Partners, you're top priority. We'd love the chance to help with your insurance needs."}),h.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-12",children:[h.jsxs(qe,{size:"lg",className:"bg-accent text-accent-foreground hover:bg-gold-dark shadow-gold text-lg px-8 py-6",onClick:()=>window.location.href="/get-quote",children:["Start Your Quote",h.jsx(so,{className:"ml-2 w-5 h-5"})]}),h.jsxs(qe,{variant:"outline",size:"lg",className:"border-accent text-accent hover:bg-accent hover:text-accent-foreground text-lg px-8 py-6",children:["Call (225) 655-8008",h.jsx(Hi,{className:"ml-2 w-5 h-5"})]})]}),h.jsxs("div",{className:"flex flex-wrap justify-center gap-6 text-primary-foreground/60",children:[h.jsxs("a",{href:"tel:+1-225-655-8008",className:"flex items-center gap-2 hover:text-accent transition-colors",children:[h.jsx(Hi,{className:"w-5 h-5"}),h.jsx("span",{children:"(225) 655-8008"})]}),h.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 hover:text-accent transition-colors",children:[h.jsx(um,{className:"w-5 h-5"}),h.jsx("span",{children:"[email protected]"})]}),h.jsxs("a",{href:"#",className:"flex items-center gap-2 hover:text-accent transition-colors",children:[h.jsx(LA,{className:"w-5 h-5"}),h.jsx("span",{children:"Live Chat"})]})]})]})})]}),v$="/assets/logo-light-CqI2oO9J.png",Xi=()=>h.jsx("footer",{className:"bg-foreground text-background py-16",children:h.jsxs("div",{className:"container mx-auto px-4",children:[h.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-5 gap-8 mb-12",children:[h.jsxs("div",{className:"lg:col-span-1",children:[h.jsx("img",{src:v$,alt:"Evolve Insurance Partners",className:"h-12 w-auto mb-4 mix-blend-screen"}),h.jsx("p",{className:"text-background/60 text-sm mb-4",children:"A remote-based independent agency with the technology and team to service your insurance needs."}),h.jsxs("div",{className:"flex gap-4",children:[h.jsx("a",{href:"https://www.facebook.com/insurancequotesla",target:"_blank",rel:"noopener noreferrer","aria-label":"Follow us on Facebook",className:"w-10 h-10 bg-background/10 rounded-lg flex items-center justify-center hover:bg-accent hover:text-accent-foreground transition-colors",children:h.jsx(PA,{className:"w-5 h-5"})}),h.jsx("a",{href:"https://www.instagram.com/evolveips/",target:"_blank",rel:"noopener noreferrer","aria-label":"Follow us on Instagram",className:"w-10 h-10 bg-background/10 rounded-lg flex items-center justify-center hover:bg-accent hover:text-accent-foreground transition-colors",children:h.jsx(jA,{className:"w-5 h-5"})})]})]}),h.jsxs("div",{children:[h.jsx("h4",{className:"font-semibold text-background mb-4",children:"Quick Links"}),h.jsxs("ul",{className:"space-y-3",children:[h.jsx("li",{children:h.jsx("a",{href:"#",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Home"})}),h.jsx("li",{children:h.jsx("a",{href:"#about",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"About Us"})}),h.jsx("li",{children:h.jsx("a",{href:"#coverages",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Coverages"})}),h.jsx("li",{children:h.jsx("a",{href:"#contact",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Contact"})}),h.jsx("li",{children:h.jsx("a",{href:"https://customer.insuranceagentapp.com/?tracking_id=47b46a31-4492-4b0c-b496-604f8eebdde6",target:"_blank",rel:"noopener noreferrer",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Client Portal"})})]})]}),h.jsxs("div",{children:[h.jsx("h4",{className:"font-semibold text-background mb-4",children:"Insurance Types"}),h.jsxs("ul",{className:"space-y-3",children:[h.jsx("li",{children:h.jsx(ke,{to:"/personal-insurance",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Personal Insurance"})}),h.jsx("li",{children:h.jsx(ke,{to:"/small-business-insurance",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Small Business"})}),h.jsx("li",{children:h.jsx(ke,{to:"/homeowners-insurance",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Homeowners Insurance"})}),h.jsx("li",{children:h.jsx(ke,{to:"/coastal-homeowners-insurance",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Coastal Homeowners"})}),h.jsx("li",{children:h.jsx(ke,{to:"/flood-insurance",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Flood Insurance"})}),h.jsx("li",{children:h.jsx(ke,{to:"/landlord-insurance",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Landlord Insurance"})}),h.jsx("li",{children:h.jsx(ke,{to:"/auto-insurance",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Auto Insurance"})})]})]}),h.jsxs("div",{children:[h.jsx("h4",{className:"font-semibold text-background mb-4",children:"Locations We Serve"}),h.jsxs("ul",{className:"space-y-3",children:[h.jsx("li",{children:h.jsx(ke,{to:"/baton-rouge",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Baton Rouge, LA"})}),h.jsx("li",{children:h.jsx(ke,{to:"/new-orleans",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"New Orleans, LA"})}),h.jsx("li",{children:h.jsx(ke,{to:"/lafayette",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Lafayette, LA"})}),h.jsx("li",{children:h.jsx(ke,{to:"/lake-charles",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Lake Charles, LA"})}),h.jsx("li",{children:h.jsx(ke,{to:"/gulfport",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Gulfport, MS"})}),h.jsx("li",{children:h.jsx(ke,{to:"/hattiesburg",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Hattiesburg, MS"})}),h.jsx("li",{children:h.jsx(ke,{to:"/gonzales",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Gonzales, LA"})}),h.jsx("li",{children:h.jsx(ke,{to:"/prairieville",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Prairieville, LA"})}),h.jsx("li",{children:h.jsx(ke,{to:"/dutchtown",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Dutchtown, LA"})}),h.jsx("li",{children:h.jsx(ke,{to:"/saint-amant",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"Saint Amant, LA"})})]})]}),h.jsxs("div",{children:[h.jsx("h4",{className:"font-semibold text-background mb-4",children:"Contact Us"}),h.jsxs("ul",{className:"space-y-4",children:[h.jsxs("li",{className:"flex items-start gap-3",children:[h.jsx(OA,{className:"w-5 h-5 text-accent shrink-0 mt-0.5"}),h.jsxs("span",{className:"text-background/60 text-sm",children:["400 Conway Village Blvd Ste 203",h.jsx("br",{}),"Gonzales, LA 70737"]})]}),h.jsxs("li",{className:"flex items-center gap-3",children:[h.jsx(Hi,{className:"w-5 h-5 text-accent shrink-0"}),h.jsxs("div",{className:"flex flex-col",children:[h.jsx("a",{href:"tel:+1-225-655-8008",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"(225) 655-8008"}),h.jsx("a",{href:"tel:+1-225-234-0254",className:"text-background/40 hover:text-accent transition-colors text-xs mt-1",children:"(225) 234-0254"})]})]}),h.jsxs("li",{className:"flex items-center gap-3",children:[h.jsx(um,{className:"w-5 h-5 text-accent shrink-0"}),h.jsx("a",{href:"mailto:[email protected]",className:"text-background/60 hover:text-accent transition-colors text-sm",children:"[email protected]"})]})]})]})]}),h.jsxs("div",{className:"border-t border-background/10 pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[h.jsxs("p",{className:"text-background/40 text-sm",children:["© ",new Date().getFullYear()," Evolve Insurance Partners. All rights reserved."]}),h.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-4 md:gap-6 text-sm",children:[h.jsx(ke,{to:"/privacy-policy",className:"text-background/40 hover:text-accent transition-colors",children:"Privacy Policy"}),h.jsx(ke,{to:"/terms-of-service",className:"text-background/40 hover:text-accent transition-colors",children:"Terms of Service"}),h.jsxs("a",{href:"https://scalemyops.com/websites",target:"_blank",rel:"noopener noreferrer",className:"text-background hover:text-accent transition-colors",children:["Website Powered by ",h.jsx("span",{className:"font-bold",children:"ScaleOps"})]})]})]})]})}),zf=()=>
271{const[e,t]=x.useState(!1),[n,r]=x.useState(100),[s,i]=x.useState(!1),[o,a]=x.useState(!1),l=d=>{const f=Math.min(150,Math.max(75,n+d));r(f),document.documentElement.style.fontSize=`${f}%`},c=()=>{const d=!s;i(d),document.documentElement.classList.toggle("high-contrast",d)},u=()=>{const d=!o;a(d),document.documentElement.classList.toggle("reduce-motion",d)};return h.jsxs("div",{className:"fixed bottom-6 left-6 z-50",children:[h.jsx(Bf,{children:e&&h.jsxs(xe.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},className:"mb-3 bg-card border border-border rounded-xl shadow-lg p-4 w-64",children:[h.jsx("h3",{className:"text-sm font-semibold text-foreground mb-3",children:"Accessibility Options"}),h.jsxs("div",{className:"mb-3",children:[h.jsxs("label",{className:"text-xs text-muted-foreground mb-1 block",children:["Font Size (",n,"%)"]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("button",{onClick:()=>l(-10),className:"w-8 h-8 rounded-lg bg-muted flex items-center justify-center hover:bg-muted-foreground/20 transition-colors","aria-label":"Decrease font size",children:h.jsx(MA,{className:"w-4 h-4"})}),h.jsx("div",{className:"flex-1 h-2 bg-muted rounded-full overflow-hidden",children:h.jsx("div",{className:"h-full bg-accent rounded-full transition-all",style:{width:`${(n-75)/75*100}%`}})}),h.jsx("button",{onClick:()=>l(10),className:"w-8 h-8 rounded-lg bg-muted flex items-center justify-center hover:bg-muted-foreground/20 transition-colors","aria-label":"Increase font size",children:h.jsx(FA,{className:"w-4 h-4"})})]})]}),h.jsxs("button",{onClick:c,className:`w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm mb-2 transition-colors ${s?"bg-accent text-accent-foreground":"bg-muted text-foreground hover:bg-muted-foreground/20"}`,children:[h.jsx(_A,{className:"w-4 h-4"}),"High Contrast"]}),h.jsxs("button",{onClick:u,className:`w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm transition-colors ${o?"bg-accent text-accent-foreground":"bg-muted text-foreground hover:bg-muted-foreground/20"}`,children:[h.jsx(DA,{className:"w-4 h-4"}),"Reduced Motion"]})]})}),h.jsx("button",{onClick:()=>t(!e),className:"w-12 h-12 rounded-full bg-accent text-accent-foreground shadow-lg flex items-center justify-center hover:bg-gold-dark transition-colors","aria-label":"Accessibility options",children:h.jsx(wA,{className:"w-6 h-6"})})]})};function Vu({title:e,description:t,canonical:n,jsonLd:r}){return x.useEffect(()=>{document.title=e,Ws("description",t),Ws("og:title",e,"property"),Ws("og:description",t,"property"),Ws("twitter:title",e),Ws("twitter:description",t);const s=n||(typeof window<"u"?window.location.href:"");if(s){let i=document.querySelector('link[rel="canonical"]');i||(i=document.createElement("link"),i.rel="canonical",document.head.appendChild(i)),i.href=s,Ws("og:url",s,"property")}document.querySelectorAll('script[data-seo-jsonld="true"]').forEach(i=>i.remove()),r&&(Array.isArray(r)?r:[r]).forEach(o=>{const a=document.createElement("script");a.type="application/ld+json",a.dataset.seoJsonld="true",a.text=JSON.stringify(o),document.head.appendChild(a)})},[e,t,n,JSON.stringify(r)]),null}function Ws(e,t,n="name"){let r=document.querySelector(`meta[${n}="${e}"]`);r||(r=document.createElement("meta"),r.setAttribute(n,e),document.head.appendChild(r)),r.content=t}const zu=[{slug:"homeowners-insurance",name:"Homeowners Insurance",shortName:"Homeowners",metaTitle:"Homeowners Insurance in Louisiana & Mississippi | Evolve Insurance",metaDescription:"Compare 20+ carriers for homeowners insurance in Louisiana and Mississippi. Independent agents shopping the best rate for your home. Free quote in minutes.",intro:"Your home is likely your largest investment. As an independent agency representing more than 20 carriers, we shop the market to match you with homeowners coverage that protects your home, belongings, and liability at the most competitive rate available in Louisiana and Mississippi.",whoNeedsIt:"Anyone who owns a single-family home, townhome, or condo. Mortgage lenders also require an active homeowners policy before closing.",coverageHighlights:["Dwelling coverage for the structure of your home","Personal property coverage for belongings inside","Liability protection if someone is injured on your property","Loss of use coverage if your home becomes uninhabitable","Wind and hail coverage (critical along the Gulf Coast)","Optional add-ons: jewelry riders, sewer backup, equipment breakdown"],process:[{title:"Tell us about your home",body:"Year built, square footage, roof age, and a few details about the property."},{title:"We shop 20+ carriers",body:"We pull quotes from every carrier we represent so you only see the most competitive options."},{title:"Bind and protect",body:"Pick the policy that fits, and we handle the paperwork with your lender and prior carrier."}],faqs:[{q:"How much homeowners insurance do I need in Louisiana?",a:"Your dwelling limit should match the cost to rebuild your home (not its market value). We use industry replacement-cost calculators to make sure you're not under- or over-insured."},{q:"Does homeowners insurance cover hurricane damage?",a:"Wind damage is typically covered, but flood from storm surge is not â that requires a separate flood policy. We bundle both so nothing falls through the gaps."},{q:"Why are Louisiana homeowners rates so high?",a:"Louisiana has the highest property insurance rates in the country due to hurricane exposure. Working with an independent agent who shops 20+ carriers is the best way to find a competitive rate."}]},{slug:"auto-insurance",name:"Auto Insurance",shortName:"Auto",metaTitle:"Auto Insurance Quotes in Louisiana & Mississippi | Evolve Insurance",metaDescription:"Independent auto insurance agency serving Louisiana and Mississippi. Compare rates from 20+ carriers. Get a free auto quote in minutes.",intro:"Louisiana and Mississippi consistently rank among the most expensive states in the country for auto insurance. As an independent agency, we shop more than 20 carriers to find the lowest rate available for your driving profile, vehicles, and household.",whoNeedsIt:"Every licensed driver in Louisiana and Mississippi is required by law to carry minimum liability coverage. We help drivers, families, and households with multiple vehicles or teen drivers find the best fit.",coverageHighlights:["Bodily injury and property damage liability","Collision and comprehensive coverage","Uninsured / underinsured motorist (highly recommended in LA & MS)","Medical payments coverage","Rental car reimbursement and roadside assistance","SR-22 filings when required"],process:[{title:"Share your vehicles and drivers",body:"VINs, drivers in your household, and current coverage if you have it."},{title:"We compare 20+ carriers",body:"We run your profile through every carrier we represent to surface the lowest qualifying rate."},{title:"Switch and save",body:"We handle the cancellation of your prior policy and make sure there is no lapse in coverage."}],faqs:[{q:"Why is auto insurance so expensive in Louisiana?",a:"Louisiana has high litigation rates, dense traffic in metro areas, and severe weather exposure. The good news: rates vary widely between carriers, so shopping with an independent agent often saves drivers $300â$1,200/year."},{q:"Do I need full coverage?",a:"If you have a loan or lease, your lender requires it. If you own the vehicle outright, full coverage is optional but recommended for newer vehicles."},{q:"Can I bundle auto with home?",a:"Yes â and most of our carriers offer multi-policy discounts of 10â25% when you bundle home and auto."}]},{slug:"small-business-insurance",name:"Small Business Insurance",shortName:"Small Business",metaTitle:"Small Business Insurance in Louisiana & Mississippi | Evolve Insurance",metaDescription:"Commercial insurance for Louisiana and Mississippi small businesses. General liability, workers' comp, commercial auto, and BOPs from 20+ carriers.",intro:"From contractors and restaurants to professional services and retail, we build commercial insurance programs for small businesses across Louisiana and Mississippi. Our independent status means we can match your industry to the carrier that underwrites it best â with the most competitive premium.",whoNeedsIt:"Any business owner who needs to protect their operations, employees, vehicles, or property. Many contracts and commercial leases also require proof of specific coverages.",coverageHighlights:["General liability insurance","Business owners policy (BOP)","Workers' compensation","Commercial auto and fleet coverage","Commercial property coverage","Professional liability (E&O) and cyber liability"],process:[{title:"Discovery call",body:"We learn about your operations, payroll, vehicles, and any contractual insurance requirements."},{title:"Carrier shopping",body:"We approach the carriers that specialize in y
271our industry and pull competitive quotes."},{title:"Annual review",body:"Your business changes â your coverage should too. We review your program every renewal."}],faqs:[{q:"Do I need workers' comp in Louisiana?",a:"Louisiana requires workers' compensation for any business with one or more employees, including part-time workers, with very narrow exceptions."},{q:"What is a BOP?",a:"A Business Owners Policy bundles general liability and commercial property into one cost-effective package â ideal for retail, office-based, and many service businesses."},{q:"Can you provide certificates of insurance?",a:"Yes â same-day in most cases. We issue COIs directly to your clients, landlords, or general contractors."}]},{slug:"flood-insurance",name:"Flood Insurance",shortName:"Flood",metaTitle:"Flood Insurance in Louisiana & Mississippi | Evolve Insurance",metaDescription:"Flood insurance through the NFIP and private carriers for Louisiana and Mississippi. Protect your home from rising water â get a free flood quote today.",intro:"Standard homeowners policies do not cover flood damage. In Louisiana and Mississippi, where storm surge, river flooding, and heavy rain events are a constant threat, a separate flood policy is essential. We write through the NFIP and a growing list of private flood carriers â often at lower premiums than NFIP alone.",whoNeedsIt:"Anyone living in a high-risk flood zone (Zone A or V) is required by their mortgage lender to carry flood insurance. But more than 25% of flood claims come from low- and moderate-risk areas â every homeowner should consider a policy.",coverageHighlights:["Building coverage up to $250,000 (NFIP) or higher (private)","Contents coverage up to $100,000 (NFIP) or higher (private)","Replacement cost options on private flood policies","Lower waiting periods on private policies (vs. NFIP's 30 days)","Coverage for basements and detached structures (varies by carrier)"],process:[{title:"Pull your flood zone",body:"We confirm your FEMA flood zone and elevation certificate if applicable."},{title:"Compare NFIP vs. private",body:"We quote both NFIP and our private flood markets and show you the difference side by side."},{title:"Bind before storm season",body:"Most flood policies have a 30-day waiting period â don't wait until a storm is in the Gulf."}],faqs:[{q:"Is flood insurance required in Louisiana?",a:"If your home is in a high-risk flood zone and you have a federally backed mortgage, yes. Otherwise it's optional â but strongly recommended given the frequency of flood events in LA and MS."},{q:"How long until my flood policy is active?",a:"NFIP policies have a standard 30-day waiting period. Private flood policies often have shorter waits â sometimes as little as 10â14 days."},{q:"Does flood insurance cover storm surge?",a:"Yes. Storm surge from a hurricane is considered flood damage and is only covered under a flood policy, not your homeowners policy."}]},{slug:"coastal-homeowners-insurance",name:"Coastal Homeowners Insurance",shortName:"Coastal Homeowners",metaTitle:"Coastal Homeowners Insurance | Louisiana & Mississippi Coast",metaDescription:"Coastal homeowners insurance for properties along the Louisiana and Mississippi Gulf Coast. Wind, hail, hurricane, and flood coverage from specialty carriers.",intro:"Insuring a home along the Gulf Coast is fundamentally different than insuring an inland home. Many national carriers won't write coastal properties at all. We specialize in coastal markets â including Louisiana parishes south of I-10 and Mississippi Gulf Coast counties â through carriers that actually want this business.",whoNeedsIt:"Homeowners in coastal Louisiana parishes (Plaquemines, St. Bernard, Jefferson, Lafourche, Terrebonne, Cameron, etc.) and Mississippi Gulf Coast counties (Hancock, Harrison, Jackson) where standard markets have pulled back.",coverageHighlights:["Wind and hail coverage (separate deductibles common)","Named storm / hurricane coverage","Companion flood policy (NFIP or private)","Roof coverage on homes 15+ years old","Higher limits for elevated and pier-and-beam homes"],process:[{title:"Property review",body:"We document construction type, roof age, elevation, and proximity to the coast."},{title:"Coastal carrier match",body:"We approach the specialty wind and coastal carriers that fit your specific property."},{title:"Bundle wind + flood",body:"We quote homeowners (or wind-only), flood, and any companion policies together."}],faqs:[{q:"Why won't standard carriers write my coastal home?",a:"Major national carriers have reduced or stopped writing within a certain distance of the coast due to hurricane losses. That's exactly why working with an independent agency that has access to specialty coastal markets matters."},{q:"What is a hurricane deductible?",a:"Coastal policies typically have a separate, higher deductible (often 2â5% of the dwelling limit) that applies only to named-storm wind damage."},{q:"Can I get wind-only coverage?",a:"Yes â in some cases we pair a homeowners policy that excludes wind with a separate wind-only policy through Louisiana Citizens or the Mississippi Wind Pool."}]},{slug:"landlord-insurance",name:"Landlord Insurance",shortName:"Landlord",metaTitle:"Landlord & Rental Property Insurance | Louisiana & Mississippi",metaDescription:"Landlord insurance for rental properties in Louisiana and Mississippi. Protect your investment with dwelling, liability, and loss-of-rent coverage.",intro:"Whether you own one rental house or a portfolio of doors, you need a policy built for landlords â not a homeowners policy. We write dwelling fire (DP-3) and landlord packages across Louisiana and Mississippi with options for short-term rentals, multi-family, and vacant properties.",whoNeedsIt:"Anyone who rents out a residential property â long-term tenants, short-term rentals (STRs/Airbnb), inherited family homes, or investment properties.",coverageHighlights:["Dwelling coverage on the rental structure","Liability protection from tenant or guest injuries","Loss of rent if the property becomes uninhabitable","Vandalism and tenant damage coverage","Short-term rental endorsements","Umbrella coverage for landlords with multiple properties"],process:[{title:"List your properties",body:"Addresses, year built, rental type (long vs. short-term), and tenant occupancy status."},{title:"Carrier matching",body:"We place each property with the carrier that best fits its risk profile and rental use."},{title:"Scale your portfolio",body:"As you add doors, we keep everything organized under a single agent and renewal cycle."}],faqs:[{q:"Do I need landlord insurance for a single rental?",a:"Yes. A standard homeowners policy will not respond to claims on a property that is not owner-occupied. You need a dwelling fire (DP-3) or landlord package."},{q:"Does landlord insurance cover Airbnb?",a:"Only if you specifically endorse short-term rental use. We have carriers that allow STRs â make sure your agent knows the rental type before binding."},{q:"Should my tenant carry renters insurance?",a:"Absolutely. We recommend requiring it in your lease â it protects their belongings and reduces your liability exposure."}]},{slug:"personal-insurance",name:"Personal Insurance",shortName:"Personal",metaTitle:"Personal Insurance in Louisiana & Mississippi | Evolve Insurance",metaDescription:"Personal insurance solutions in Louisiana and Mississippi: home, auto, flood, umbrella, and more. Independent agents shopping 20+ carriers.",intro:"Personal insurance is everything that protects you, your family, and your assets â home, auto, flood, umbrella, jewelry, watercraft, and more. We bundle smart, shop aggressively, and review your coverage every renewal so you're never overpaying or underinsured.",whoNeedsIt:"Homeowners, renters, drivers, and families across Louisiana and Mississippi who want one trusted independent agency managing all of their personal lines coverage.",coverageHighlights:["Homeowners and renters insurance","Auto insurance (including high-value and exotic vehicles)","Flood insurance (NFIP and private)","Personal umbrella policies","Boat, RV, motorcycle, and ATV coverage","Valuables: jewelry, art, firearms"],process:[{title:"Full personal review",body:"We look at every personal policy you currently have and identify gaps and overlaps."},{title:"Bundle and shop",body:"We rebuild your program with the right carrier mix to maximize discounts and coverage."},{title:"One agent, every renewal",body:"You get a single point of contact for everything personal â no more juggling multiple agents."}],faqs:[{q:"Why use an independent agent for personal insurance?",a:"Captive agents (State Farm, Allstate, etc.) can only sell their own carrier. We represent 20+ carriers and shop them all to find the best fit at the best price."},{q:"Should I get an umbrella policy?",a:"If your net worth exceeds your underlying liability limits, yes. Umbrella policies are inexpensive ($200â$400/year for $1M) and protect you from catastrophic lawsuits."},{q:"How often should I review my coverage?",a:"At every renewal, and any time your life changes â new home, teen driver, marriage, retirement, or major purchases."}]}],Ja=[{slug:"baton-rouge",city:"Baton Rouge",state:"Louisiana",stateAbbr:"LA",intro:"Headquartered just down the road in Gonzales, we serve homeowners, drivers, and businesses across the Baton Rouge metro â from Mid City and Garden District to Zachary, Central, Denham Springs, and Prairieville.",localContext:"The Baton Rouge area sits in a high-risk flood zone for much of its footprint, and the 2016 floods reminded everyone that you don't have to live in a designated flood plain to flood. Pair that with high Louisiana auto rates and aging housing stock, and most Baton Rouge residents are overpaying somewhere.",topConcerns:["Flood exp
271osure outside designated zones","Among the highest auto rates in the country","Roof age underwriting on older Mid City homes"]},{slug:"new-orleans",city:"New Orleans",state:"Louisiana",stateAbbr:"LA",intro:"We insure homes, autos, and businesses across Orleans Parish and the greater New Orleans metro â Uptown, Lakeview, Bywater, Mid-City, Algiers, Metairie, Kenner, and the North Shore.",localContext:"New Orleans is one of the most challenging insurance markets in the country. Standard carriers have pulled back, wind and flood deductibles are significant, and many homes require specialty coastal placement. As an independent agency with access to coastal and surplus-lines markets, we can usually find coverage when others can't.",topConcerns:["Wind, hail, and named-storm exposure","Mandatory flood insurance in most parishes","Historic homes and unique construction underwriting"]},{slug:"lafayette",city:"Lafayette",state:"Louisiana",stateAbbr:"LA",intro:"From River Ranch and Broussard to Youngsville, Carencro, and Scott, we help Acadiana homeowners, drivers, and small business owners find better rates from carriers that understand the region.",localContext:"Lafayette has a strong oil and gas economy, growing residential development, and increasing exposure to severe weather. Many Lafayette residents are still with the same carrier they signed up with years ago â we routinely save Acadiana families hundreds at first quote.",topConcerns:["Hail and wind events","Flood risk along the Vermilion River","Commercial coverage for oil & gas service companies"]},{slug:"lake-charles",city:"Lake Charles",state:"Louisiana",stateAbbr:"LA",intro:"Lake Charles took the brunt of Hurricanes Laura and Delta in 2020, and the insurance market here has been recovering ever since. We work with the carriers still actively writing in Calcasieu Parish â Sulphur, Westlake, Moss Bluff, and surrounding communities.",localContext:"Many Lake Charles homeowners have been non-renewed by national carriers since the 2020 storms. We have access to specialty coastal markets, Louisiana Citizens, and private flood carriers that can put a complete program together for almost any property.",topConcerns:["Carrier non-renewals after Hurricanes Laura/Delta","High wind and named-storm deductibles","Roof condition underwriting"]},{slug:"gulfport",city:"Gulfport",state:"Mississippi",stateAbbr:"MS",intro:"We serve Mississippi Gulf Coast homeowners, drivers, and small businesses across Gulfport, Biloxi, Long Beach, Pass Christian, and Ocean Springs. Coastal Mississippi requires specialty coastal placement â and that's where independent agents win.",localContext:"Harrison County properties typically need a homeowners policy, a wind policy (often through the Mississippi Windstorm Underwriting Association), and a flood policy. We package all three so nothing is overlooked.",topConcerns:["Wind pool placement","Storm surge flood exposure","Higher coastal deductibles than inland MS"]},{slug:"hattiesburg",city:"Hattiesburg",state:"Mississippi",stateAbbr:"MS",intro:"Hattiesburg sits far enough inland to qualify with most major standard carriers â which usually means lower premiums than the coast. We serve Forrest and Lamar County homeowners, families, and Pine Belt businesses.",localContext:"Tornado and severe-thunderstorm exposure is the main concern in the Pine Belt. Roof age, hail damage, and tree exposure are common underwriting factors. We help Hattiesburg homeowners maintain insurability through proactive maintenance documentation.",topConcerns:["Tornado and severe storm exposure","Tree-related claims","Hail damage to roofs"]},{slug:"gonzales",city:"Gonzales",state:"Louisiana",stateAbbr:"LA",intro:"Gonzales is home â our office is located right here in Ascension Parish. We work with homeowners, drivers, and small businesses across Gonzales, Sorrento, and the surrounding I-10 corridor.",localContext:"Ascension Parish has grown rapidly, and much of the area sits in or near flood-prone zones â the 2016 floods hit Gonzales hard. Most residents need a tight bundle of homeowners, flood, and auto from carriers that know the local risk.",topConcerns:["Flood exp
271osure (especially post-2016)","High Louisiana auto premiums","New construction dwelling valuations"]},{slug:"saint-amant",city:"Saint Amant",state:"Louisiana",stateAbbr:"LA",intro:"We serve Saint Amant homeowners and families across eastern Ascension Parish â from Sorrento and Gonzales to the river communities along the Amite.",localContext:"Saint Amant sits in one of the most flood-exposed parts of Ascension Parish. The 2016 floods devastated this area, and many residents have since been non-renewed or had rates spike. We have access to specialty markets and private flood carriers built for exactly this risk profile.",topConcerns:["High-risk flood zones along the Amite River","Carrier non-renewals after 2016 flood event","Wind and roof underwriting on older homes"]},{slug:"prairieville",city:"Prairieville",state:"Louisiana",stateAbbr:"LA",intro:"Prairieville is one of the fastest-growing communities in Louisiana, and we work with families and business owners across Ascension Parish â from Pelican Point and Oak Grove to the new developments along Hwy 73 and Airline.",localContext:"Prairieville's rapid growth means a lot of new construction homes that need accurate replacement-cost dwelling limits. Combine that with flood exposure and high Louisiana auto rates, and most Prairieville households can save meaningfully by shopping their full personal program.",topConcerns:["Replacement cost on new construction homes","Flood zone overlap in newer subdivisions","Bundling discounts on home and auto"]},{slug:"dutchtown",city:"Dutchtown",state:"Louisiana",stateAbbr:"LA",intro:"We serve Dutchtown families and homeowners across the Dutchtown school district in Ascension Parish â including Geismar, Saint Amant, and the surrounding Prairieville and Gonzales communities.",localContext:"Dutchtown is a desirable, growing area with a mix of established neighborhoods and new construction. Insurance needs vary widely block to block â flood exposure, dwelling valuations, and teen driver auto coverage are the conversations we have most often with Dutchtown families.",topConcerns:["Flood zone variability across the area","Teen driver auto rates","Accurate replacement cost on larger homes"]}],aE=["homeowners-insurance","auto-insurance","small-business-insurance"];function w$(){const e=[];for(const t of zu)if(aE.includes(t.slug))for(const n of Ja)e.push({service:t,location:n});return e}function lE(e){return zu.find(t=>t.slug===e)}function cE(e){return Ja.find(t=>t.slug===e)}const qr="https://www.evolveips.com",Zi="Evolve Insurance Partners";function uE(e,t){return aE.includes(e)&&Ja.some(n=>n.slug===t)}const x$={"@context":"https://schema.org","@type":"InsuranceAgency",name:Zi,url:qr,telephone:"+1-225-655-8008",email:"[email protected]",image:`${qr}/favicon.png`,address:{"@type":"PostalAddress",streetAddress:"400 Conway Village Blvd Ste 203",addressLocality:"Gonzales",addressRegion:"LA",postalCode:"70737",addressCountry:"US"},areaServed:[{"@type":"State",name:"Louisiana"},{"@type":"State",name:"Mississippi"}],sameAs:["https://www.facebook.com/insurancequotesla","https://www.instagram.com/evolveips/"]},b$=()=>h.jsxs("div",{className:"min-h-screen bg-background",children:[h.jsx(Vu,{title:"Evolve Insurance | Louisiana & Mississippi Independent Agency",description:"Independent insurance agency serving Louisiana and Mississippi. Compare 20+ carriers for home, auto, flood, and business insurance. Get a free quote today.",canonical:qr+"/",jsonLd:x$}),h.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 focus:z-50 focus:px-4 focus:py-2 focus:bg-primary focus:text-primary-foreground focus:rounded-md",children:"Skip to main content"}),h.jsx(Qi,{}),h.jsxs("main",{id:"main-content",children:[h.jsx(s$,{}),h.jsx(o$,{}),h.jsx(l$,{}),h.jsx(u$,{}),h.jsx(p$,{}),h.jsx(g$,{}),h.jsx(y$,{})]}),h.jsx(Xi,{}),h.jsx(zf,{})]}),lc=x.forwardRef(({className:e,type:t,...n},r)=>h.jsx("input",{type:t,className:Be("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}));lc.displayName="Input";const dE=x.forwardRef(({className:e,...t},n)=>h.jsx("textarea",{className:Be("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
271ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));dE.displayName="Textarea";function T0(e,[t,n]){return Math.min(n,Math.max(t,e))}var S$=x.createContext(void 0);function k$(e){const t=x.useContext(S$);return e||t||"ltr"}var Xd=0;function E$(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_0()),document.body.insertAdjacentElement("beforeend",e[1]??_0()),Xd++,()=>{Xd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xd--}},[])}function _0(){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 Zd="focusScope.autoFocusOnMount",eh="focusScope.autoFocusOnUnmount",P0={bubbles:!1,cancelable:!0},C$="FocusScope",hE=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=x.useState(null),c=mn(s),u=mn(i),d=x.useRef(null),f=Ce(t,m=>l(m)),p=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(r){let m=function(v){if(p.paused||!a)return;const S=v.target;a.contains(S)?d.current=S:hr(d.current,{select:!0})},b=function(v){if(p.paused||!a)return;const S=v.relatedTarget;S!==null&&(a.contains(S)||hr(d.current,{select:!0}))},y=function(v){if(document.activeElement===document.body)for(const k of v)k.removedNodes.length>0&&hr(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const g=new MutationObserver(y);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),g.disconnect()}}},[r,a,p.paused]),x.useEffect(()=>{if(a){R0.add(p);const m=document.activeElement;if(!a.contains(m)){const y=new CustomEvent(Zd,P0);a.addEventListener(Zd,c),a.dispatchEvent(y),y.defaultPrevented||(T$(j$(fE(a)),{select:!0}),document.activeElement===m&&hr(a))}return()=>{a.removeEventListener(Zd,c),setTimeout(()=>{const y=new CustomEvent(eh,P0);a.addEventListener(eh,u),a.dispatchEvent(y),y.defaultPrevented||hr(m??document.body,{select:!0}),a.removeEventListener(eh,u),R0.remove(p)},0)}}},[a,c,u,p]);const w=x.useCallback(m=>{if(!n&&!r||p.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(b&&y){const g=m.currentTarget,[v,S]=_$(g);v&&S?!m.shiftKey&&y===S?(m.preventDefault(),n&&hr(v,{select:!0})):m.shiftKey&&y===v&&(m.preventDefault(),n&&hr(S,{select:!0})):y===g&&m.preventDefault()}},[n,r,p.paused]);return h.jsx(ce.div,{tabIndex:-1,...o,ref:f,onKeyDown:w})});hE.displayName=C$;function T$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(hr(r,{select:t}),document.activeElement!==n)return}function _$(e){const t=fE(e),n=A0(t,e),r=A0(t.reverse(),e);return[n,r]}function fE(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 A0(e,t){for(const n of e)if(!P$(n,{upTo:t}))return n}function P$(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 A$(e){return e instanceof HTMLInputElement&&"select"in e}function hr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&A$(e)&&t&&e.select()}}var R0=R$();function R$(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=j0(e,t),e.unshift(t)},remove(t){var n;e=j0(e,t),(n=e[0])==null||n.resume()}}}function j0(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function j$(e){return e.filter(t=>t.tagName!=="A")}function pE(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var N$=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hs=new WeakMap,_l=new WeakMap,Pl={},th=0,mE=function(e){return e&&(e.host||mE(e.parentNode))},O$=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mE(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})},I$=function(e,t,n,r){var s=O$(t,Array.isArray(e)?e:[e]);Pl[n]||(Pl[n]=new WeakMap);var i=Pl[n],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};
vendor: 6,462 bytes, lines 271-286
271s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(r),w=p!==null&&p!=="false",m=(Hs.get(f)||0)+1,b=(i.get(f)||0)+1;Hs.set(f,m),i.set(f,b),o.push(f),m===1&&w&&_l.set(f,!0),b===1&&f.setAttribute(n,"true"),w||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return u(t),a.clear(),th++,function(){o.forEach(function(d){var f=Hs.get(d)-1,p=i.get(d)-1;Hs.set(d,f),i.set(d,p),f||(_l.has(d)||d.removeAttribute(r),_l.delete(d)),p||d.removeAttribute(n)}),th--,th||(Hs=new WeakMap,Hs=new WeakMap,_l=new WeakMap,Pl={})}},L$=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=N$(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),I$(r,s,n,"aria-hidden")):function(){return null}},An=function(){return An=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},An.apply(this,arguments)};function gE(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}function M$(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 cc="right-scroll-bar-position",uc="width-before-scroll-bar",D$="with-scroll-bars-hidden",$$="--removed-body-scroll-bar-size";function nh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function F$(e,t){var n=x.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 B$=typeof window<"u"?x.useLayoutEffect:x.useEffect,N0=new WeakMap;function U$(e,t){var n=F$(null,function(r){return e.forEach(function(s){return nh(s,r)})});return B$(function(){var r=N0.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;s.forEach(function(a){i.has(a)||nh(a,null)}),i.forEach(function(a){s.has(a)||nh(a,o)})}N0.set(n,e)},[e]),n}function V$(e){return e}function z$(e,t){t===void 0&&(t=V$);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 u=o;o=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),n}}}};return s}function W$(e){e===void 0&&(e={});var t=z$(null);return t.options=An({async:!0,ssr:!1},e),t}var yE=function(e){var t=e.sideCar,n=gE(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 x.createElement(r,An({},n))};yE.isSideCarExport=!0;function H$(e,t){return e.useMedium(t),yE}var vE=W$(),rh=function(){},Wu=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:rh,onWheelCapture:rh,onTouchMoveCapture:rh}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,w=e.noIsolation,m=e.inert,b=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,v=e.gapMode,S=gE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=f,E=U$([n,t]),C=An(An({},S),s);return x.createElement(x.Fragment,null,u&&x.createElement(k,{sideCar:vE,removeScrollBar:c,shards:d,noRelative:p,noIsolation:w,inert:m,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:v}),o?x.cloneElement(x.Children.only(a),An(An({},C),{ref:E})):x.createElement(g,An({},C,{className:l,ref:E}),a))});Wu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wu.classNames={fullWidth:uc,zeroRight:cc};var q$=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function K$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=q$();return t&&e.setAttribute("nonce",t),e}function G$(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Y$(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var J$=function(){var e=0,t=null;return{add:function(n){e==0&&(t=K$())&&(G$(t,n),Y$(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Q$=function(){var e=J$();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wE=function(){var e=Q$(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},X$={left:0,top:0,right:0,gap:0},sh=function(e){return parseInt(e||"",10)||0},Z$=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[sh(n),sh(r),sh(s)]},e4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return X$;var t=Z$(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])}},t4=wE(),Pi="data-scroll-locked",n4=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` 272 .`.concat(D$,` { 273 overflow: hidden `).concat(r,`; 274 padding-right: `).concat(a,"px ").concat(r,`; 275 } 276 body[`).concat(Pi,`] { 277 overflow: hidden `).concat(r,`; 278 overscroll-behavior: contain; 279 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 280 padding-left: `.concat(s,`px; 281 padding-top: `).concat(i,`px; 282 padding-right: `).concat(o,`px; 283 margin-left:0; 284 margin-top:0; 285 margin-right: `).concat(a,"px ").concat(r,`; 286 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
286")].filter(Boolean).join(""),` 287 } 288 289 .`).concat(cc,` { 290 right: `).concat(a,"px ").concat(r,`; 291 } 292 293 .`).concat(uc,` { 294 margin-right: `).concat(a,"px ").concat(r,`; 295 } 296 297 .`).concat(cc," .").concat(cc,` { 298 right: 0 `).concat(r,`; 299 } 300 301 .`).concat(uc," .").concat(uc,` { 302 margin-right: 0 `).concat(r,`; 303 } 304 305 body[`).concat(Pi,`] { 306 `).concat($$,": ").concat(a,`px; 307 } 308`)},O0=function(){var e=parseInt(document.body.getAttribute(Pi)||"0",10);return isFinite(e)?e:0},r4=function(){x.useEffect(function(){return document.body.setAttribute(Pi,(O0()+1).toString()),function(){var e=O0()-1;e<=0?document.body.removeAttribute(Pi):document.body.setAttribute(Pi,e.toString())}},[])},s4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;r4();var i=x.useMemo(function(){return e4(s)},[s]);return x.createElement(t4,{styles:n4(i,!t,s,n?"":"!important")})},Wf=!1;if(typeof window<"u")try{var Al=Object.defineProperty({},"passive",{get:function(){return Wf=!0,!0}});window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,Al)}catch{Wf=!1}var qs=Wf?{passive:!1}:!1,i4=function(e){return e.tagName==="TEXTAREA"},xE=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!i4(e)&&n[t]==="visible")},o4=function(e){return xE(e,"overflowY")},a4=function(e){return xE(e,"overflowX")},I0=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=bE(e,r);if(s){var i=SE(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},l4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},c4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},bE=function(e,t){return e==="v"?o4(t):a4(t)},SE=function(e,t){return e==="v"?l4(t):c4(t)},u4=function(e,t){return e==="h"&&t==="rtl"?-1:1},d4=function(e,t,n,r,s){var i=u4(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,f=0;do{if(!a)break;var p=SE(e,a),w=p[0],m=p[1],b=p[2],y=m-b-i*w;(w||y)&&bE(e,a)&&(d+=y,f+=w);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(u&&(Math.abs(d)<1||!s)||!u&&(Math.abs(f)<1||!s))&&(c=!0),c},Rl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L0=function(e){return[e.deltaX,e.deltaY]},M0=function(e){return e&&"current"in e?e.current:e},h4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},f4=function(e){return` 309 .block-interactivity-`.concat(e,` {pointer-events: none;} 310 .allow-interactivity-`).concat(e,` {pointer-events: all;} 311`)},p4=0,Ks=[];function m4(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),s=x.useState(p4++)[0],i=x.useState(wE)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var m=M$([e.lockRef.current],(e.shards||[]).map(M0),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=x.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var y=Rl(m),g=n.current,v="deltaX"in m?m.deltaX:g[0]-y[0],S="deltaY"in m?m.deltaY:g[1]-y[1],k,E=m.target,C=Math.abs(v)>Math.abs(S)?"h":"v";if("touches"in m&&C==="h"&&E.type==="range")return!1;var T=I0(C,E);if(!T)return!0;if(T?k=C:(k=C==="v"?"h":"v",T=I0(C,E)),!T)return!1;if(!r.current&&"changedTouches"in m&&(v||S)&&(r.current=k),!k)return!0;var A=r.current||k;return d4(A,b,m,A==="h"?v:S,!0)},[]),l=x.useCallback(function(m){var b=m;if(!(!Ks.length||Ks[Ks.length-1]!==i)){var y="deltaY"in b?L0(b):Rl(b),g=t.current.filter(function(k){return k.name===b.type&&(k.target===b.target||b.target===k.shadowParent)&&h4(k.delta,y)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}
vendor: 4,125 bytes, line 311
311if(!g){var v=(o.current.shards||[]).map(M0).filter(Boolean).filter(function(k){return k.contains(b.target)}),S=v.length>0?a(b,v[0]):!o.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),c=x.useCallback(function(m,b,y,g){var v={name:m,delta:b,target:y,should:g,shadowParent:g4(y)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(S){return S!==v})},1)},[]),u=x.useCallback(function(m){n.current=Rl(m),r.current=void 0},[]),d=x.useCallback(function(m){c(m.type,L0(m),m.target,a(m,e.lockRef.current))},[]),f=x.useCallback(function(m){c(m.type,Rl(m),m.target,a(m,e.lockRef.current))},[]);x.useEffect(function(){return Ks.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,qs),document.addEventListener("touchmove",l,qs),document.addEventListener("touchstart",u,qs),function(){Ks=Ks.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,qs),document.removeEventListener("touchmove",l,qs),document.removeEventListener("touchstart",u,qs)}},[]);var p=e.removeScrollBar,w=e.inert;return x.createElement(x.Fragment,null,w?x.createElement(i,{styles:f4(s)}):null,p?x.createElement(s4,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function g4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const y4=H$(vE,m4);var kE=x.forwardRef(function(e,t){return x.createElement(Wu,An({},e,{ref:t,sideCar:y4}))});kE.classNames=Wu.classNames;var v4=[" ","Enter","ArrowUp","ArrowDown"],w4=[" ","Enter"],Is="Select",[Hu,qu,x4]=Ub(Is),[mo,uB]=ro(Is,[x4,Ru]),Ku=Ru(),[b4,Zr]=mo(Is),[S4,k4]=mo(Is),EE=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:f,required:p,form:w}=e,m=Ku(t),[b,y]=x.useState(null),[g,v]=x.useState(null),[S,k]=x.useState(!1),E=k$(c),[C,T]=Mc({prop:r,defaultProp:s??!1,onChange:i,caller:Is}),[A,P]=Mc({prop:o,defaultProp:a,onChange:l,caller:Is}),M=x.useRef(null),I=b?w||!!b.closest("form"):!0,[H,N]=x.useState(new Set),q=Array.from(H).map(B=>B.props.value).join(";");return h.jsx(fN,{...m,children:h.jsxs(b4,{required:p,scope:t,trigger:b,onTriggerChange:y,valueNode:g,onValueNodeChange:v,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:hm(),value:A,onValueChange:P,open:C,onOpenChange:T,dir:E,triggerPointerDownPosRef:M,disabled:f,children:[h.jsx(Hu.Provider,{scope:t,children:h.jsx(S4,{scope:e.__scopeSelect,onNativeOptionAdd:x.useCallback(B=>{N(G=>new Set(G).add(B))},[]),onNativeOptionRemove:x.useCallback(B=>{N(G=>{const _=new Set(G);return _.delete(B),_})},[]),children:n})}),I?h.jsxs(GE,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:A,onChange:B=>P(B.target.value),disabled:f,form:w,children:[A===void 0?h.jsx("option",{value:""}):null,Array.from(H)]},q):null]})})};EE.displayName=Is;var CE="SelectTrigger",TE=x.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...s}=e,i=Ku(n),o=Zr(CE,n),a=o.disabled||r,l=Ce(t,o.onTriggerChange),c=qu(n),u=x.useRef("touch"),[d,f,p]=JE(m=>{const b=c().filter(v=>!v.disabled),y=b.find(v=>v.value===o.value),g=QE(b,m,y);g!==void 0&&o.onValueChange(g.value)}),w=m=>{a||(o.onOpenChange(!0),p()),m&&(o.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return h.jsx(K1,{asChild:!0,...i,children:h.jsx(ce.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":YE(o.value)?"":void 0,...s,ref:l,onClick:te(s.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&w(m)}),onPointerDown:te(s.onPointerDown,m=>{u.current=m.pointerType;const b=m.target;b.hasPointerCapture(m.pointerId)&&b.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(w(m),m.preventDefault())}),onKeyDown:te(s.onKeyDown,m=>{const b=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(b&&m.key===" ")&&v4.includes(m.key)&&
vendor: 15,632 bytes, line 311
311(w(),m.preventDefault())})})})});TE.displayName=CE;var _E="SelectValue",PE=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:i,placeholder:o="",...a}=e,l=Zr(_E,n),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,d=Ce(t,l.onValueNodeChange);return tt(()=>{c(u)},[c,u]),h.jsx(ce.span,{...a,ref:d,style:{pointerEvents:"none"},children:YE(l.value)?h.jsx(h.Fragment,{children:o}):i})});PE.displayName=_E;var E4="SelectIcon",AE=x.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...s}=e;return h.jsx(ce.span,{"aria-hidden":!0,...s,ref:t,children:r||"â¼"})});AE.displayName=E4;var C4="SelectPortal",RE=e=>h.jsx(sm,{asChild:!0,...e});RE.displayName=C4;var Ls="SelectContent",jE=x.forwardRef((e,t)=>{const n=Zr(Ls,e.__scopeSelect),[r,s]=x.useState();if(tt(()=>{s(new DocumentFragment)},[]),!n.open){const i=r;return i?$s.createPortal(h.jsx(NE,{scope:e.__scopeSelect,children:h.jsx(Hu.Slot,{scope:e.__scopeSelect,children:h.jsx("div",{children:e.children})})}),i):null}return h.jsx(OE,{...e,ref:t})});jE.displayName=Ls;var en=10,[NE,es]=mo(Ls),T4="SelectContentImpl",_4=wa("SelectContent.RemoveScroll"),OE=x.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:w,hideWhenDetached:m,avoidCollisions:b,...y}=e,g=Zr(Ls,n),[v,S]=x.useState(null),[k,E]=x.useState(null),C=Ce(t,F=>S(F)),[T,A]=x.useState(null),[P,M]=x.useState(null),I=qu(n),[H,N]=x.useState(!1),q=x.useRef(!1);x.useEffect(()=>{if(v)return L$(v)},[v]),E$();const B=x.useCallback(F=>{const[ue,...je]=I().map(oe=>oe.ref.current),[le]=je.slice(-1),se=document.activeElement;for(const oe of F)if(oe===se||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===ue&&k&&(k.scrollTop=0),oe===le&&k&&(k.scrollTop=k.scrollHeight),oe==null||oe.focus(),document.activeElement!==se))return},[I,k]),G=x.useCallback(()=>B([T,v]),[B,T,v]);x.useEffect(()=>{H&&G()},[H,G]);const{onOpenChange:_,triggerPointerDownPosRef:R}=g;x.useEffect(()=>{if(v){let F={x:0,y:0};const ue=le=>{var se,oe;F={x:Math.abs(Math.round(le.pageX)-(((se=R.current)==null?void 0:se.x)??0)),y:Math.abs(Math.round(le.pageY)-(((oe=R.current)==null?void 0:oe.y)??0))}},je=le=>{F.x<=10&&F.y<=10?le.preventDefault():v.contains(le.target)||_(!1),document.removeEventListener("pointermove",ue),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",je,{capture:!0})}}},[v,_,R]),x.useEffect(()=>{const F=()=>_(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[_]);const[D,K]=JE(F=>{const ue=I().filter(se=>!se.disabled),je=ue.find(se=>se.ref.current===document.activeElement),le=QE(ue,F,je);le&&setTimeout(()=>le.ref.current.focus())}),W=x.useCallback((F,ue,je)=>{const le=!q.current&&!je;(g.value!==void 0&&g.value===ue||le)&&(A(F),le&&(q.current=!0))},[g.value]),Z=x.useCallback(()=>v==null?void 0:v.focus(),[v]),J=x.useCallback((F,ue,je)=>{const le=!q.current&&!je;(g.value!==void 0&&g.value===ue||le)&&M(F)},[g.value]),ge=r==="popper"?Hf:IE,Re=ge===Hf?{side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:w,hideWhenDetached:m,avoidCollisions:b}:{};return h.jsx(NE,{scope:n,content:v,viewport:k,onViewportChange:E,itemRefCallback:W,selectedItem:T,onItemLeave:Z,itemTextRefCallback:J,focusSelectedItem:G,selectedItemText:P,position:r,isPositioned:H,searchRef:D,children:h.jsx(kE,{as:_4,allowPinchZoom:!0,children:h.jsx(hE,{asChild:!0,trapped:g.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:te(s,F=>{var ue;(ue=g.trigger)==null||ue.focus({preventScroll:!0}),F.preventDefault()}),children:h.jsx(ku,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:h.jsx(ge,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:F=>F.preventDefault(),...y,...Re,onPlaced:()=>N(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:te(y.onKeyDown,F=>{const ue=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!ue&&F.key.length===1&&K(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let le=I().filter(se=>!se.disabled).map(se=>se.ref.current);if(["ArrowUp","End"].includes(F.key)&&(le=le.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const se=F.target,oe=le.indexOf(se);le=le.slice(oe+1)}setTimeout(()=>B(le)),F.preventDefault()}})})})})})})});OE.displayName=T4;var P4="SelectItemAlignedPosition",IE=x.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,i=Zr(Ls,n),o=es(Ls,n),[a,l]=x.useState(null),[c,u]=x.useState(null),d=Ce(t,C=>u(C)),f=qu(n),p=x.useRef(!1),w=x.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:y,focusSelectedItem:g}=o,v=x.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&m&&b&&y){const C=i.trigger.getBoundingClientRect(),T=c.getBoundingClientRect(),A=i.valueNode.getBoundingClientRect(),P=y.getBoundingClientRect();if(i.dir!=="rtl"){const se=P.left-T.left,oe=A.left-se,nt=C.left-oe,Lt=C.width+nt,ts=Math.max(Lt,T.width),nr=window.innerWidth-en,ns=T0(oe,[en,Math.max(en,nr-ts)]);a.style.minWidth=Lt+"px",a.style.left=ns+"px"}else{const se=T.right-P.right,oe=window.innerWidth-A.right-se,nt=window.innerWidth-C.right-oe,Lt=C.width+nt,ts=Math.max(Lt,T.width),nr=window.innerWidth-en,ns=T0(oe,[en,Math.max(en,nr-ts)]);a.style.minWidth=Lt+"px",a.style.right=ns+"px"}const M=f(),I=window.innerHeight-en*2,H=m.scrollHeight,N=window.getComputedStyle(c),q=parseInt(N.borderTopWidth,10),B=parseInt(N.paddingTop,10),G=parseInt(N.borderBottomWidth,10),_=parseInt(N.paddingBottom,10),R=q+B+H+_+G,D=Math.min(b.offsetHeight*5,R),K=window.getComputedStyle(m),W=parseInt(K.paddingTop,10),Z=parseInt(K.paddingBottom,10),J=C.top+C.height/2-en,ge=I-J,Re=b.offsetHeight/2,F=b.offsetTop+Re,ue=q+B+F,je=R-ue;if(ue<=J){const se=M.length>0&&b===M[M.length-1].ref.current;a.style.bottom="0px";const oe=c.clientHeight-m.offsetTop-m.offsetHeight,nt=Math.max(ge,Re+(se?Z:0)+oe+G),Lt=ue+nt;a.style.height=Lt+"px"}else{const se=M.length>0&&b===M[0].ref.current;a.style.top="0px";const nt=Math.max(J,q+m.offsetTop+(se?W:0)+Re)+je;a.style.height=nt+"px",m.scrollTop=ue-J+m.offsetTop}a.style.margin=`${en}px 0`,a.style.minHeight=D+"px",a.style.maxHeight=I+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[f,i.trigger,i.valueNode,a,c,m,b,y,i.dir,r]);tt(()=>v(),[v]);const[S,k]=x.useState();tt(()=>{c&&k(window.getComputedStyle(c).zIndex)},[c]);const E=x.useCallback(C=>{C&&w.current===!0&&(v(),g==null||g(),w.current=!1)},[v,g]);return h.jsx(R4,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:E,children:h.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:h.jsx(ce.div,{...s,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});IE.displayName=P4;var A4="SelectPopperPosition",Hf=x.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=en,...i}=e,o=Ku(n);return h.jsx(G1,{...o,...i,ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Hf.displayName=A4;var[R4,rg]=mo(Ls,{}),qf="SelectViewport",LE=x.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,i=es(qf,n),o=rg(qf,n),a=Ce(t,i.onViewportChange),l=x.useRef(0);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),h.jsx(Hu.Slot,{scope:n,children:h.jsx(ce.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:te(s.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&d){const p=Math.abs(l.current-u.scrollTop);if(p>0){const w=window.innerHeight-en*2,m=parseFloat(d.style.minHeight),b=parseFloat(d.style.height),y=Math.max(m,b);if(y<w){const g=y+p,v=Math.min(w,g),S=g-v;d.style.height=v+"px",d.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});LE.displayName=qf;var ME="SelectGroup",[j4,N4]=mo(ME),O4=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=hm();return h.jsx(j4,{scope:n,id:s,children:h.jsx(ce.div,{role:"group","aria-labelledby":s,...r,ref:t})})});O4.displayName=ME;var DE="SelectLabel",$E=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=N4(DE,n);return h.jsx(ce.div,{id:s.id,...r,ref:t})});$E.displayName=DE;var Zc="SelectItem",[I4,FE]=mo(Zc),BE=x.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:i,...o}=e,a=Zr(Zc,n),l=es(Zc,n),c=a.value===r,[u,d]=x.useState(i??""),[f,p]=x.useState(!1),w=Ce(t,g=>{var v;return(v=l.itemRefCallback)==null?void 0:v.call(l,g,r,s)}),m=hm(),b=x.useRef("touch"),y=()=>{s||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return h.jsx(I4,{scope:n,value:r,disabled:s,textId:m,isSelected:c,onItemTextChange:x.useCallback(g=>{d(v=>v||((g==null?void 0:g.textContent)??"").trim())},[]),children:h.jsx(Hu.ItemSlot,{scope:n,value:r,disabled:s,textValue:u,children:h.jsx(ce.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:w,onFocus:te(o.onFocus,()=>p(!0)),onBlur:te(o.onBlur,()=>p(!1)),onClick:te(o.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:te(o.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:te(o.onPointerDown,g=>{b.current=g.pointerType}),onPointerMove:te(o.onPointerMove,g=>{var v;b.current=g.pointerType,s?(v=l.onItemLeave)==null||v.call(l):b.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:te(o.onPointerLeave,g=>{var v;g.currentTarget===document.activeElement&&((v=l.onItemLeave)==null||v.call(l))}),onKeyDown:te(o.onKeyDown,g=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&g.key===" "||(w4.includes(g.key)&&y(),g.key===" "&&g.preventDefault())})})})})});BE.displayName=Zc;var Mo="SelectItemText",UE=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...i}=e,o=Zr(Mo,n),a=es(Mo,n),l=FE(Mo,n),c=k4(Mo,n),[u,d]=x.useState(null),f=Ce(t,y=>d(y),l.onItemTextChange,y=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,y,l.value,l.disabled)}),p=u==null?void 0:u.textContent,w=x.useMemo(()=>h.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=c;return tt(()=>(m(w),()=>b(w)),[m,b,w]),h.jsxs(h.Fragment,{children:[h.jsx(ce.span,{id:l.textId,...i,ref:f}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?$s.createPortal(i.children,o.valueNode):null]})});UE.displayName=Mo;var VE="SelectItemIndicator",zE=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return FE(VE,n).isSelected?h.jsx(ce.span,{"aria-hidden":!0,...r,ref:t}):null});zE.displayName=VE;var Kf="SelectScrollUpButton",WE=x.forwardRef((e,t)=>{const n=es(Kf,e.__scopeSelect),r=rg(Kf,e.__scopeSelect),[s,i]=x.useState(!1),o=Ce(t,r.onScrollButtonChange);return tt(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;i(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?h.jsx(qE,{...e,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});WE.displayName=Kf;var Gf="SelectScrollDownButton",HE=x.forwardRef((e,t)=>{const n=es(Gf,e.__scopeSelect),r=rg(Gf,e.__scopeSelect),[s,i]=x.useState(!1),o=Ce(t,r.onScrollButtonChange);return tt(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;i(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?h.jsx(qE,{...e,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});HE.displayName=Gf;var qE=x.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,i=es("SelectScrollButton",n),o=x.useRef(null),a=qu(n),l=x.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return x.useEffect(()=>()=>l(),[l]),tt(()=>{var u;const c=a().find(d=>d.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[a]),h.jsx(ce.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:te(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:te(s.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:te(s.onPointerLeave,()=>{l()})})}),L4="SelectSeparator",KE=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return h.jsx(ce.div,{"aria-hidden":!0,...r,ref:t})});KE.displayName=L4;var Yf="SelectArrow",M4=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Ku(n),i=Zr(Yf,n),o=es(Yf,n);return i.open&&o.position==="popper"?h.jsx(Y1,{...s,...r,ref:t}):null});M4.displayName=Yf;var D4="SelectBubbleInput",GE=x.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const s=x.useRef(null),i=Ce(r,s),o=pE(t);return x.useEffect(()=>{const a=s.current;if(!a)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&u){const d=new Event("change",{bubbles:!0});u.call(a,t),a.dispatchEvent(d)}},[o,t]),h.jsx(ce.select,{...n,style:{...qb,...n.style},ref:i,defaultValue:t})});GE.displayName=D4;function YE(e){return e===""||e===void 0}function JE(e){const t=mn(e),n=x.useRef(""),r=x.useRef(0),s=x.useCallback(o=>{const a=n.current+o;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),i=x.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,i]}function QE(e,t,n){const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=$4(e,Math.max(i,0));s.length===1&&(o=o.filter(c=>c!==n));const l=o.find(c=>c.textValue.toLowerCase().startsWith(s.toLowerCase()));return l!==n?l:void 0}function $4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var F4=EE,XE=TE,B4=PE,U4=AE,V4=RE,ZE=jE,z4=LE,eC=$E,tC=BE,W4=UE,H4=zE,nC=WE,rC=HE,sC=KE;const q4=F4,K4=B4,iC=x.forwardRef(({className:e,children:t,...n},r)=>h.jsxs(XE,{ref:r,className:Be("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
311ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,h.jsx(U4,{asChild:!0,children:h.jsx(cm,{className:"h-4 w-4 opacity-50"})})]}));iC.displayName=XE.displayName;const oC=x.forwardRef(({className:e,...t},n)=>h.jsx(nC,{ref:n,className:Be("flex cursor-default items-center justify-center py-1",e),...t,children:h.jsx(SA,{className:"h-4 w-4"})}));oC.displayName=nC.displayName;const aC=x.forwardRef(({className:e,...t},n)=>h.jsx(rC,{ref:n,className:Be("flex cursor-default items-center justify-center py-1",e),...t,children:h.jsx(cm,{className:"h-4 w-4"})}));aC.displayName=rC.displayName;const lC=x.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>h.jsx(V4,{children:h.jsxs(ZE,{ref:s,className:Be("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[h.jsx(oC,{}),h.jsx(z4,{className:Be("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),h.jsx(aC,{})]})}));lC.displayName=ZE.displayName;const G4=x.forwardRef(({className:e,...t},n)=>h.jsx(eC,{ref:n,className:Be("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));G4.displayName=eC.displayName;const cC=x.forwardRef(({className:e,children:t,...n},r)=>h.jsxs(tC,{ref:r,className:Be("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[h.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(H4,{children:h.jsx(lm,{className:"h-4 w-4"})})}),h.jsx(W4,{children:t})]}));cC.displayName=tC.displayName;const Y4=x.forwardRef(({className:e,...t},n)=>h.jsx(sC,{ref:n,className:Be("-mx-1 my-1 h-px bg-muted",e),...t}));Y4.displayName=sC.displayName;var Gu="Checkbox",[J4,dB]=ro(Gu),[Q4,sg]=J4(Gu);function X4(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:s,disabled:i,form:o,name:a,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=e,[f,p]=Mc({prop:n,defaultProp:s??!1,onChange:l,caller:Gu}),[w,m]=x.useState(null),[b,y]=x.useState(null),g=x.useRef(!1),v=w?!!o||!!w.closest("form"):!0,S={checked:f,disabled:i,setChecked:p,control:w,setControl:m,name:a,form:o,value:u,hasConsumerStoppedPropagationRef:g,required:c,defaultChecked:Dr(s)?!1:s,isFormControl:v,bubbleInput:b,setBubbleInput:y};return h.jsx(Q4,{scope:t,...S,children:Z4(d)?d(S):r})}var uC="CheckboxTrigger",dC=x.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},s)=>{const{control:i,value:o,disabled:a,checked:l,required:c,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:w}=sg(uC,e),m=Ce(s,u),b=x.useRef(l);return x.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const g=()=>d(b.current);return y.addEventListener("reset",g),()=>y.removeEventListener("reset",g)}},[i,d]),h.jsx(ce.button,{type:"button",role:"checkbox","aria-checked":Dr(l)?"mixed":l,"aria-required":c,"data-state":gC(l),"data-disabled":a?"":void 0,disabled:a,value:o,...r,ref:m,onKeyDown:te(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:te(n,y=>{d(g=>Dr(g)?!0:!g),w&&p&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});dC.displayName=uC;var ig=x.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:i,required:o,disabled:a,value:l,onCheckedChange:c,form:u,...d}=e;return h.jsx(X4,{__scopeCheckbox:n,checked:s,defaultChecked:i,disabled:a,required:o,onCheckedChange:c,name:r,form:u,value:l,internal_do_not_use_render:({isFormControl:f})=>h.jsxs(h.Fragment,{children:[h.jsx(dC,{...d,ref:t,__scopeCheckbox:n}),f&&h.jsx(mC,{__scopeCheckbox:n})]})})});ig.displayName=Gu;var hC="CheckboxIndicator",fC=x.forwardRef((e,t)=>
311{const{__scopeCheckbox:n,forceMount:r,...s}=e,i=sg(hC,n);return h.jsx(Eu,{present:r||Dr(i.checked)||i.checked===!0,children:h.jsx(ce.span,{"data-state":gC(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});fC.displayName=hC;var pC="CheckboxBubbleInput",mC=x.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:o,required:a,disabled:l,name:c,value:u,form:d,bubbleInput:f,setBubbleInput:p}=sg(pC,e),w=Ce(n,p),m=pE(i),b=D1(r);x.useEffect(()=>{const g=f;if(!g)return;const v=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(v,"checked").set,E=!s.current;if(m!==i&&k){const C=new Event("click",{bubbles:E});g.indeterminate=Dr(i),k.call(g,Dr(i)?!1:i),g.dispatchEvent(C)}},[f,m,i,s]);const y=x.useRef(Dr(i)?!1:i);return h.jsx(ce.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:a,disabled:l,name:c,value:u,form:d,...t,tabIndex:-1,ref:w,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});mC.displayName=pC;function Z4(e){return typeof e=="function"}function Dr(e){return e==="indeterminate"}function gC(e){return Dr(e)?"indeterminate":e?"checked":"unchecked"}const yC=x.forwardRef(({className:e,...t},n)=>h.jsx(ig,{ref:n,className:Be("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:h.jsx(fC,{className:Be("flex items-center justify-center text-current"),children:h.jsx(lm,{className:"h-4 w-4"})})}));yC.displayName=ig.displayName;function e5(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(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}const t5=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class og extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class n5 extends og{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class D0 extends og{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class $0 extends og{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Jf;(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"})(Jf||(Jf={}));class r5{constructor(t,{headers:n={},customFetch:r,region:s=Jf.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=t5(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return e5(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:c,signal:u,timeout:d}=r;let f={},{region:p}=r;p||(p=this.region);const w=new URL(`${this.url}/${n}`);p&&p!=="any"&&(f["x-region"]=p,w.searchParams.set("forceFunctionRegion",p));let m;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",m=c):typeof c=="string"?(f["Content-Type"]="text/plain",m=c):typeof FormData<"u"&&c instanceof FormData?m=c:(f["Content-Type"]="application/json",m=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?m=JSON.stringify(c):m=c;let b=u;d&&(o=new AbortController,i=setTimeout(()=>
311o.abort(),d),u?(b=o.signal,u.addEventListener("abort",()=>o.abort())):b=o.signal);const y=yield this.fetch(w.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),a),body:m,signal:b}).catch(k=>{throw new n5(k)}),g=y.headers.get("x-relay-error");if(g&&g==="true")throw new D0(y);if(!y.ok)throw new $0(y);let v=((s=y.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),S;return v==="application/json"?S=yield y.json():v==="application/octet-stream"||v==="application/pdf"?S=yield y.blob():v==="text/event-stream"?S=y:v==="multipart/form-data"?S=yield y.formData():S=yield y.text(),{data:S,error:null,response:y}}catch(a){return{data:null,error:a,response:a instanceof $0||a instanceof D0?a.context:void 0}}finally{i&&clearTimeout(i)}})}}const vC=3,F0=e=>Math.min(1e3*2**e,3e4),s5=[520,503],wC=["GET","HEAD","OPTIONS"];var i5=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function B0(e,t){return new Promise(n=>{if(t!=null&&t.aborted){n();return}const r=setTimeout(()=>{t==null||t.removeEventListener("abort",s),n()},e);function s(){clearTimeout(r),n()}t==null||t.addEventListener("abort",s)})}function o5(e,t,n,r){return!(!r||n>=vC||!wC.includes(e)||!s5.includes(t))}
311var a5=class{constructor(e){var t,n,r,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,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.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=e.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=e.retry)!==null&&i!==void 0?i:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(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"),this.shouldStripNulls){const o=this.headers.get("Accept");o==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!o||o==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let i=(async()=>{let o=0;for(;;){const c=new Headers(n.headers);o>0&&c.set("X-Retry-Count",String(o));let u;try{u=await r(n.url.toString(),{method:n.method,headers:c,body:JSON.stringify(n.body,(d,f)=>typeof f=="bigint"?f.toString():f),signal:n.signal})}catch(d){if((d==null?void 0:d.name)==="AbortError"||(d==null?void 0:d.code)==="ABORT_ERR"||!wC.includes(n.method))throw d;if(n.retryEnabled&&o<vC){const f=F0(o);o++,await B0(f,n.signal);continue}throw d}if(o5(n.method,u.status,o,n.retryEnabled)){var a,l;const d=(a=(l=u.headers)===null||l===void 0?void 0:l.get("Retry-After"))!==null&&a!==void 0?a:null,f=d!==null?Math.max(0,parseInt(d,10)||0)*1e3:F0(o);await u.text(),o++,await B0(f,n.signal);continue}return await n.processResponse(u)}})();return this.shouldThrowOnError||(i=i.catch(o=>{var a;let l="",c="",u="";const d=o==null?void 0:o.cause;if(d){var f,p,w,m;const g=(f=d==null?void 0:d.message)!==null&&f!==void 0?f:"",v=(p=d==null?void 0:d.code)!==null&&p!==void 0?p:"";l=`${(w=o==null?void 0:o.name)!==null&&w!==void 0?w:"FetchError"}: ${o==null?void 0:o.message}`,l+=` 312 313Caused by: ${(m=d==null?void 0:d.name)!==null&&m!==void 0?m:"Error"}: ${g}`,v&&(l+=` (${v})`),d!=null&&d.stack&&(l+=` 314${d.stack}`)}else{var b;l=(b=o==null?void 0:o.stack)!==null&&b!==void 0?b:""}const y=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(u="",c="Request was aborted (timeout or manual cancellation)",y>this.urlLengthLimit&&(c+=`. Note: Your request URL is ${y} 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.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",c="HTTP headers exceeded server limits (typically 16KB)",y>this.urlLengthLimit&&(c+=`. Your request URL is ${y} 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.`)),{success:!1,error:{message:`${(a=o==null?void 0:o.name)!==null&&a!==void 0?a:"FetchError"}: ${o==null?void 0:o.message}`,details:l,hint:c,code:u},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,s=null,i=e.status,o=e.statusText;if(e.ok){var a,l;if(t.method!=="HEAD"){var c;const f=await e.text();f===""||(t.headers.get("Accept")==="text/csv"||t.headers.get("Accept")&&(!((c=t.headers.get("Accept"))===null||c===void 0)&&c.includes("application/vnd.pgrst.plan+text"))?r=f:r=JSON.parse(f))}const u=(a=t.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),d=(l=e.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");u&&d&&d.length>1&&(s=parseInt(d[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,s=null,i=406,o="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const u=await e.text();try{n=JSON.parse(u),Array.isArray(n)&&e.status===404&&(r=[],n=null,i=200,o="OK")}catch{e.status===404&&u===""?(i=204,o="No Content"):n={message:u}}if(n&&t.shouldThrowOnError)throw new i5(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:o}}returns(){return this}overrideTypes(){return this}},l5=class extends a5{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.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
314explain({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 U0=new RegExp("[,()]");var ei=class extends l5{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"&&U0.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"&&U0.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).filter(([t,n])=>n!==void 0).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}},c5=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s,this.retry=i}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(c=>/\s/.test(c)&&!i?"":(c==='"'&&(i=!i),c)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new ei({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}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,c)=>l.concat(Object.keys(c)),[]);if(a.length>
3140){const l=[...new Set(a)].map(c=>`"${c}"`);i.searchParams.set("columns",l.join(","))}}return new ei({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}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 c=e.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);a.searchParams.set("columns",u.join(","))}}return new ei({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new ei({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new ei({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Ra(e){"@babel/helpers - typeof";return Ra=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},Ra(e)}function u5(e,t){if(Ra(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ra(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d5(e){var t=u5(e,"string");return Ra(t)=="symbol"?t:t+""}function h5(e,t,n){return(t=d5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V0(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 jl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V0(Object(n),!0).forEach(function(r){h5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var f5=class xC{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3,retry:a}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const l=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(c,u)=>{const d=new AbortController,f=setTimeout(()=>d.abort(),i),p=u==null?void 0:u.signal;if(p){if(p.aborted)return clearTimeout(f),l(c,u);const w=()=>{clearTimeout(f),d.abort()};return p.addEventListener("abort",w,{once:!0}),l(c,jl(jl({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(f),p.removeEventListener("abort",w)})}return l(c,jl(jl({},u),{},{signal:d.signal})).finally(()=>clearTimeout(f))}:this.fetch=l,this.retry=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 c5(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new xC(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;const u=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(u)),d=r&&Object.values(n).some(u);d?(a="POST",c=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([p,w])=>w!==void 0).map(([p,w])=>[p,Array.isArray(w)?`{${w.join(",")}}`:`${w}
314`]).forEach(([p,w])=>{l.searchParams.append(p,w)})):(a="POST",c=n);const f=new Headers(this.headers);return d?f.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&f.set("Prefer",`count=${i}`),new ei({method:a,url:l,headers:f,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class p5{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const r=typeof global<"u"?global:void 0;if(r&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};if(typeof globalThis<"u"&&typeof n.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"&&n.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 s=globalThis.process;if(s){const i=s.versions;if(i&&i.node){const o=i.node,a=parseInt(o.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 315import ws from "ws" 316new 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.wsConstructor)return t.wsConstructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 317 318Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const m5="2.105.4",g5=`realtime-js/${m5}`,y5="1.0.0",bC="2.0.0",v5=bC,w5=1e4,x5=100,yr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},SC={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Qf={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class b5{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:"",c=t.payload.event,u=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(u).length===0?"":JSON.stringify(u);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(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+d.length,p=new ArrayBuffer(this.HEADER_LENGTH+f);let w=new DataView(p),m=0;w.setUint8(m++,this.KINDS.userBroadcastPush),w.setUint8(m++,l.length),w.setUint8(m++,a.length),w.setUint8(m++,o.length),w.setUint8(m++,c.length),w.setUint8(m++,d.length),w.setUint8(m++,n),Array.from(l,y=>
318w.setUint8(m++,y.charCodeAt(0))),Array.from(a,y=>w.setUint8(m++,y.charCodeAt(0))),Array.from(o,y=>w.setUint8(m++,y.charCodeAt(0))),Array.from(c,y=>w.setUint8(m++,y.charCodeAt(0))),Array.from(d,y=>w.setUint8(m++,y.charCodeAt(0)));var b=new Uint8Array(p.byteLength+r.byteLength);return b.set(new Uint8Array(p),0),b.set(new Uint8Array(r),p.byteLength),b.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;return 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 c=r.decode(t.slice(l,l+s));l=l+s;const u=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+o));l=l+o;const f=t.slice(l,t.byteLength),p=a===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,w={type:this.BROADCAST_EVENT,event:u,payload:p};return o>0&&(w.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:w}}_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)))}}var pe;(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"})(pe||(pe={}));const z0=(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]=S5(o,e,t,s),i),{}):{}},S5=(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)?kC(i,o):Xf(o)},kC=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return T5(t,n)}switch(e){case pe.bool:return k5(t);case pe.float4:case pe.float8:case pe.int2:case pe.int4:case pe.int8:case pe.numeric:case pe.oid:return E5(t);case pe.json:case pe.jsonb:return C5(t);case pe.timestamp:return _5(t);case pe.abstime:case pe.date:case pe.daterange:case pe.int4range:case pe.int8range:case pe.money:case pe.reltime:case pe.text:case pe.time:case pe.timestamptz:case pe.timetz:case pe.tsrange:case pe.tstzrange:return Xf(t);default:return Xf(t)}},Xf=e=>e,k5=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},E5=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},C5=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},T5=(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=>kC(t,a))}return e},_5=e=>typeof e=="string"?e.replace(" ","T"):e,EC=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};var Zo=e=>typeof e=="function"?e:function(){return e},P5=typeof self<"u"?self:null,ti=typeof window<"u"?window:null,Sn=P5||ti||globalThis,A5="2.0.0",R5=1e4,j5=1e3,_n={connecting:0,open:1,closing:2,closed:3},yt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Un={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Zf={longpoll:"longpoll",websocket:"websocket"},N5={complete:4},ep="base64url.bearer.phx.",Nl=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 318
318oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),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()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},CC=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},O5=class{constructor(e,t,n){this.state=yt.closed,this.topic=e,this.params=Zo(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Nl(this,Un.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new CC(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=yt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=yt.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=yt.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=yt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Nl(this,Un.leave,Zo({}),this.timeout).send(),this.state=yt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Un.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=yt.closed,this.bindings=[]}onClose(e){this.on(Un.close,e)}onError(e){return this.on(Un.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Nl(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=yt.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Un.close,"leave")},n=new Nl(this,Un.leave,Zo({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=yt.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let s=this.onMessage(e,t,n,r);if(t&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,n));for(let o=0;o<i.length;o++)i[o].callback(s,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===yt.closed}isErrored(){return this.state===yt.errored}isJoined(){return this.state===yt.joined}isJoining(){return this.state===yt.joining}isLeaving(){return this.state===yt.leaving}},eu=class{static request(e,t,n,r,s,i,o){if(Sn.XDomainRequest){let a=new Sn.XDomainRequest;return this.xdomainRequest(a,e,t,r,s,i,o)}else if(Sn.XMLHttpRequest){let a=new Sn.XMLHttpRequest;return this.xhrRequest(a,e,t,n,r,s,i,o)}else{if(Sn.fetch&&Sn.AbortController)return this.fetchRequest(e,t,n,r,s,i,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,s,i,o){let a={method:e,headers:n,body:r},l=null;return s&&(l=new AbortController,setTimeout(()=>l.abort(),s),a.signal=l.signal),Sn.fetch(t,a).then(c=>c.text()).then(c=>this.parseJSON(c)).then(c=>o&&o(c)).catch(c=>{c.name==="AbortError"&&i?i():o&&o(null)}),l}static xdomainRequest(e,t,n,r,s,i,o){return e.timeout=s,e.open(t,n),e.onload=()=>{let a=this.parseJSON(e.responseText);o&&o(a)},i&&(e.ontimeout=i),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,s,i,o,a){e.open(t,n,!0),e.timeout=i;for(let[l,c]of Object.entries(r))e.setRequestHeader(l,c);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===N5.complete&&a){let l=this.parseJSON(e.responseText);a(l)}},o&&(e.ontimeout=o),e.send(s),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let s=t?`${t}[${r}]`:r,i=e[r];typeof i=="object"?n.push(this.serialize(i,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},I5=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let s=0;s<r;s++)t+=String.fromCharCode(n[s]);return btoa(t)},Gs=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(ep)&&(this.authToken=atob(t[1].slice(ep.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=_n.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Zf.websocket),"$1/"+Zf.longpoll)}endpointURL(){return eu.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=_n.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===_n.open||this.readyState===_n.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:s}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:s.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=_n.open,this.onopen({}),this.poll();break;
318case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=I5(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 319`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let s of this.reqs)s.abort();this.readyState=_n.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,s){let i,o=()=>{this.reqs.delete(i),r()};i=eu.request(e,this.endpointURL(),t,n,this.timeout,o,a=>{this.reqs.delete(i),this.isActive()&&s(a)}),this.reqs.add(i)}},L5=class Do{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,s=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Do.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=Do.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel.on(r.diff,s=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Do.syncDiff(this.state,s,i,o),a())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return Do.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,s){let i=this.clone(t),o={},a={};return this.map(i,(l,c)=>{n[l]||(a[l]=c)}),this.map(n,(l,c)=>{let u=i[l];if(u){let d=c.metas.map(m=>m.phx_ref),f=u.metas.map(m=>m.phx_ref),p=c.metas.filter(m=>f.indexOf(m.phx_ref)<0),w=u.metas.filter(m=>d.indexOf(m.phx_ref)<0);p.length>0&&(o[l]=c,o[l].metas=p),w.length>0&&(a[l]=this.clone(u),a[l].metas=w)}else o[l]=c}),this.syncDiff(i,{joins:o,leaves:a},r,s)}static syncDiff(t,n,r,s){let{joins:i,leaves:o}=this.clone(n);return r||(r=function(){}),s||(s=function(){}),this.map(i,(a,l)=>{let c=t[a];if(t[a]=this.clone(l),c){let u=t[a].metas.map(f=>f.phx_ref),d=c.metas.filter(f=>u.indexOf(f.phx_ref)<0);t[a].metas.unshift(...d)}r(a,c,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;let u=l.metas.map(d=>d.phx_ref);c.metas=c.metas.filter(d=>u.indexOf(d.phx_ref)<0),s(a,c,l),c.metas.length===0&&delete t[a]}),t}static list(t,n){return n||(n=function(r,s){return s}),this.map(t,(r,s)=>n(r,s))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Ol={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,s,i,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:s,event:i,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:s,payload:i}=e,o=this.META_LENGTH+t.length+n.length+s.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(a),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,s.length),l.setUint8(c++,r.length),Array.from(t,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(s,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(c++,d.charCodeAt(0)));var u=new Uint8Array(a.byteLength+i.byteLength);return u.set(new Uint8Array(a),0),u.set(new Uint8Array(i),a.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}}
vendor: 8,485 bytes, line 319
319,decodePush(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+s));o=o+s;let c=n.decode(e.slice(o,o+i));o=o+i;let u=e.slice(o,e.byteLength);return{join_ref:a,ref:null,topic:l,event:c,payload:u}},decodeReply(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(a,a+r));a=a+r;let c=n.decode(e.slice(a,a+s));a=a+s;let u=n.decode(e.slice(a,a+i));a=a+i;let d=n.decode(e.slice(a,a+o));a=a+o;let f=e.slice(a,e.byteLength),p={status:d,response:f};return{join_ref:l,ref:c,topic:u,event:Un.reply,payload:p}},decodeBroadcast(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=this.HEADER_LENGTH+2,o=n.decode(e.slice(i,i+r));i=i+r;let a=n.decode(e.slice(i,i+s));i=i+s;let l=e.slice(i,e.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},M5=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||R5,this.transport=t.transport||Sn.WebSocket||Gs,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=Sn&&Sn.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Ol.encode.bind(Ol),this.defaultDecoder=Ol.decode.bind(Ol),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==Gs?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;ti&&ti.addEventListener&&(ti.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),r=this.connectClock)}),ti.addEventListener("pageshow",s=>{r===this.connectClock&&(r=null,this.connect())}),ti.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,i,o)=>{console.log(`${s}: ${i}`,o)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Zo(t.params||{}),this.endPoint=`${e}/${Zf.websocket}`,this.vsn=t.vsn||A5,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new CC(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return Gs}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=eu.appendParams(eu.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Zo(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Gs?this.connectWithFallback(Gs,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(s=>{s.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case Gs:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${ep}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,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)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,s,i,o=this.transportName(e),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([s,i]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),i=this.onError(l=>{this.log("transport","error",l),r&&!n&&(clearTimeout(this.fallbackTimer),a(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),j5,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===_n.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
vendor: 4,126 bytes, line 319
319triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Un.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case _n.connecting:return"connecting";case _n.open:return"open";case _n.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new O5(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:s,join_ref:i}=e;this.log("push",`${t} ${n} (${i}, ${s})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:s,ref:i,join_ref:o}=t;if(i&&i===this.pendingHeartbeatRef){const a=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.status==="ok"?"ok":"error",a)}catch(l){this.log("error","error in heartbeat callback",l)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${s.status||""} ${n} ${r} ${i&&"("+i+")"||""}`.trim(),s);for(let a=0;a<this.channels.length;a++){const l=this.channels[a];l.isMember(n,r,s,o)&&l.trigger(r,s,i,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class ea{constructor(t,n){const r=$5(n);this.presence=new L5(t.getChannel(),r),this.presence.onJoin((s,i,o)=>{const a=ea.onJoinPayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onLeave((s,i,o)=>{const a=ea.onLeavePayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return ea.transformState(this.presence.state)}static transformState(t){return t=D5(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return n[r]=dc(s),n},{})}static onJoinPayload(t,n,r){const s=W0(n),i=dc(r);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,n,r){const s=W0(n),i=dc(r);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function dc(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function D5(e){return JSON.parse(JSON.stringify(e))}function $5(e){return(e==null?void 0:e.events)&&{events:e.events}}function W0(e){return e!=null&&e.metas?dc(e):[]}var H0;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(H0||(H0={}));class F5{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new ea(this.channel.channelAdapter,n)}}function B5(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
319if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const n=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${n}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class U5{constructor(t,n,r){const s=V5(r);this.channel=t.getSocket().channel(n,s),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let s;try{s=this.channel.push(t,n,r)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>x5){const i=this.channel.pushBuffer.shift();i.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload())}return s}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===yr.joined}isJoined(){return this.state===yr.joined}isJoining(){return this.state===yr.joining}isClosed(){return this.state===yr.closed}isLeaving(){return this.state===yr.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function V5(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var q0;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(q0||(q0={}));var wi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(wi||(wi={}));var Vn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Vn||(Vn={}));class ta{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},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.channelAdapter=new U5(this.socket.socketAdapter,t,this.params),this.presence=new F5(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=EC(this.socket.socketAdapter.endPointURL()),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 new Error(`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.channelAdapter.isClosed()){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[wi.PRESENCE]&&this.bindings[wi.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},f={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:u}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(p=>{t==null||t(Vn.CHANNEL_ERROR,B5(p))}),this._onClose(()=>t==null?void 0:t(Vn.CLOSED)),this.updateJoinPayload(Object.assign({config:f},d)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:p})=>{if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){t==null||t(Vn.SUBSCRIBED);return}this._updatePostgresBindings(p,t)}
319).receive("error",p=>{this.state=yr.errored;const w=Object.values(p).join(", ")||"error";t==null||t(Vn.CHANNEL_ERROR,new Error(w,{cause:p}))}).receive("timeout",()=>{t==null||t(Vn.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const s=this.bindings.postgres_changes,i=(r=s==null?void 0:s.length)!==null&&r!==void 0?r:0,o=[];for(let a=0;a<i;a++){const l=s[a],{filter:{event:c,schema:u,table:d,filter:f}}=l,p=t&&t[a];if(p&&p.event===c&&ta.isFilterValueEqual(p.schema,u)&&ta.isFilterValueEqual(p.table,d)&&ta.isFilterValueEqual(p.filter,f))o.push(Object.assign(Object.assign({},l),{id:p.id}));else{this.unsubscribe(),this.state=yr.errored,n==null||n(Vn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=yr.errored&&n&&n(Vn.SUBSCRIBED)}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){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=t===wi.PRESENCE||t===wi.POSTGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject(new Error("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 c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,s;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
319in 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 c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c instanceof Error&&c.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const c=this.channelAdapter.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"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}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}_on(t,n,r){const s=t.toLocaleLowerCase(),i=this.channelAdapter.on(t,r),o={type:s,filter:n,callback:r,ref:i};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var s,i,o,a,l,c,u;const d=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(d,r))return!1;const f=(s=this.bindings[d])===null||s===void 0?void 0:s.find(p=>p.ref===t.ref);if(!f)return!0;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in f){const p=f.id,w=(i=f.filter)===null||i===void 0?void 0:i.event;return p&&((o=n.ids)===null||o===void 0?void 0:o.includes(p))&&(w==="*"||(w==null?void 0:w.toLocaleLowerCase())===((a=n.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const p=(c=(l=f==null?void 0:f.filter)===null||l===void 0?void 0:l.event)===null||c===void 0?void 0:c.toLocaleLowerCase();return p==="*"||p===((u=n==null?void 0:n.event)===null||u===void 0?void 0:u.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===d})}_notThisChannelEvent(t,n){const{close:r,error:s,leave:i,join:o}=SC;return n&&[r,s,i,o].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:i,table:o,commit_timestamp:a,type:l,errors:c}=s;return Object.assign(Object.assign({},{schema:i,table:o,commit_timestamp:a,eventType:l,new:{},old:{},errors:c}),this._getPayloadRecords(s))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=z0(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=z0(t.columns,t.old_record)),n}}class z5{constructor(t,n){this.socket=new M5(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{t(),i("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Qf.connecting}isDisconnecting(){return this.socket.connectionState()==Qf.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const K0={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},W5=[1e3,2e3,5e3,1e4],H5=1e4;function q5(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var n;return(n=Array.from(e.keys())[t])!==null&&n!==void 0?n:null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function K5(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return q5()}const G5=` 320 addEventListener("message", (e) => { 321 if (e.data.event === "start") { 322 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 323 } 324 });`;class Y5{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
324,this.ref=0,this.serializer=new b5,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=i=>i?(...o)=>i(...o):(...o)=>fetch(...o),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const s=this._initializeOptions(n);this.socketAdapter=new z5(t,s),this.httpEndpoint=EC(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw n.includes("Node.js")?new Error(`${n} 325 326To use Realtime in Node.js, you need to provide a WebSocket implementation: 327 328Option 1: Use Node.js 22+ which has native WebSocket support 329Option 2: Install and provide the "ws" package: 330 331 npm install ws 332 333 import ws from "ws" 334 const client = new RealtimeClient(url, { 335 ...options, 336 transport: ws 337 })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),n=await Promise.all(t);return await this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||Qf.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new ta(`realtime:${t}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(i),i}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
337this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}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:g5};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(SC.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)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,r)}}_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.disconnect()},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)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([G5],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,s,i,o,a,l,c,u,d,f,p;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const w={};w.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:w5,w.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:K0.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(o=t==null?void 0:t.disconnectOnEmptyChannelsAfterMs)!==null&&o!==void 0?o:2*((a=t==null?void 0:t.heartbeatIntervalMs)!==null&&a!==void 0?a:K0.HEARTBEAT_INTERVAL),w.transport=(l=t==null?void 0:t.transport)!==null&&l!==void 0?l:p5.getWebSocketConstructor(),w.params=t==null?void 0:t.params,w.logger=t==null?void 0:t.logger,w.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),w.sessionStorage=(c=t==null?void 0:t.sessionStorage)!==null&&c!==void 0?c:K5(),w.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:g=>W5[g-1]||H5;let m,b;const y=(d=t==null?void 0:t.vsn)!==null&&d!==void 0?d:v5;switch(y){case y5:m=(g,v)=>v(JSON.stringify(g)),b=(g,v)=>v(JSON.parse(g));break;case bC:m=this.serializer.encode.bind(this.serializer),b=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${w.vsn}`)}if(w.vsn=y,w.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:m,w.decode=(p=t==null?void 0:t.decode)!==null&&p!==void 0?p:b,w.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,w.params=Object.assign(Object.assign({},w.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,w.autoSendHeartbeat=!this.worker}return w}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
337var ja=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 J5(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 Q5(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 X5(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=J5(e.baseUrl,r,s),l=await Q5(e.auth),c=await t(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),u=await c.text(),d=(c.headers.get("content-type")||"").includes("application/json"),f=d&&u?JSON.parse(u):u;if(!c.ok){const p=d?f:void 0,w=p==null?void 0:p.error;throw new ja((w==null?void 0:w.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:w==null?void 0:w.type,icebergCode:w==null?void 0:w.code,details:p})}return{status:c.status,headers:c.headers,data:f}}}}function Il(e){return e.join("�")}var Z5=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Il(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/${Il(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Il(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Il(e.namespace)}`}),!0}catch(t){if(t instanceof ja&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof ja&&n.status===409)return;throw n}}};function Ys(e){return e.join("�")}var eF=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/${Ys(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/${Ys(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/${Ys(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/${Ys(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/${Ys(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/${Ys(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof ja&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof ja&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},tF=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=X5({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new Z5(this.client,t),this.tableOps=new eF(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)}
337async 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)}};function Na(e){"@babel/helpers - typeof";return Na=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},Na(e)}function nF(e,t){if(Na(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Na(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rF(e){var t=nF(e,"string");return Na(t)=="symbol"?t:t+""}function sF(e,t,n){return(t=rF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G0(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 Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G0(Object(n),!0).forEach(function(r){sF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Yu=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}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Ju(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var tp=class extends Yu{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 Y({},super.toJSON())}},TC=class extends Yu{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function tu(e,t,n){const r=Y({},e),s=t.toLowerCase();for(const i of Object.keys(r))i.toLowerCase()===s&&delete r[i];return r[s]=n,r}function iF(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}const oF=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),aF=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)},np=e=>{if(Array.isArray(e))return e.map(n=>np(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]=np(r)}),t},lF=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Y0=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const n=t.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(e)},cF=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const s=e;let i=parseInt(String(s.status),10);Number.isFinite(i)||(i=500),s.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new tp(Y0(o),i,a,r))}).catch(()=>{const o=i+"";t(new tp(s.statusText||`HTTP ${i} error`,i,o,r))})}else t(new TC(Y0(e),e,r))},uF=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!r)return Y(Y({},s),n);if(aF(r)){var i;const o=(t==null?void 0:t.headers)||{};let a;for(const[l,c]of Object.entries(o))l.toLowerCase()==="content-type"&&(a=c);s.headers=tu(o,"Content-Type",(i=a)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return t!=null&&t.duplex&&(s.duplex=t.duplex),Y(Y({},s),n)};async function Ro(e,t,n,r,s,i,o){return new Promise((a,l)=>{e(n,uF(t,r,s,i)).then(c=>{if(!c.ok)throw c;if(r!=null&&r.noResolveJson)return c;if(o==="vectors"){const u=c.headers.get("content-type");if(c.headers.get("content-length")==="0"||c.status===204)return{};if(!u||!u.includes("application/json"))return{}}return c.json()}).then(c=>a(c)).catch(c=>cF(c,l,r,o))})}function _C(e="storage"){return{get:async(t,n,r,s)=>Ro(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>Ro(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>Ro(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>Ro(t,"HEAD",n,Y(Y({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>Ro(t,"DELETE",n,s,i,r,e)}}const dF=_C("storage"),{get:Oa,post:sn,put:rp,head:hF,remove:ag}=dF,_t=_C("vectors");var go=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=iF(t),this.fetch=oF(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=tu(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(Ju(n))return{data:null,error:n};throw n}}},fF=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(Ju(t))return{data:null,error:t};throw t}}};let PC;PC=Symbol.toStringTag;var pF=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[PC]="BlobDownloadBuilder",this.promise=null}asStream(){return new fF(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(Ju(t))return{data:null,error:t};throw t}}};const mF={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},J0={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var gF=class extends go{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=Y(Y({},J0),r);let a=Y(Y({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;if(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)for(const[f,p]of Object.entries(r.headers))a=tu(a,f,p);const c=s._removeEmptyFolders(t),u=s._getFinalPath(c),d=await(e=="PUT"?rp:sn)(s.fetch,`${s.url}/object/${u}`,i,Y({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:c,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 c=Y(Y({},J0),r);let u=Y(Y({},s.headers),{"x-upsert":String(c.upsert)});const d=c.metadata;if(typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),d&&l.append("metadata",s.encodeMetadata(d)),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.has("cacheControl")||l.append("cacheControl",c.cacheControl),d&&!l.has("metadata")&&l.a
337ppend("metadata",s.encodeMetadata(d))):(l=n,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType,d&&(u["x-metadata"]=s.toBase64(s.encodeMetadata(d))),(typeof ReadableStream<"u"&&l instanceof ReadableStream||l&&typeof l=="object"&&"pipe"in l&&typeof l.pipe=="function")&&!c.duplex&&(c.duplex="half")),r!=null&&r.headers)for(const[f,p]of Object.entries(r.headers))u=tu(u,f,p);return{path:i,fullPath:(await rp(s.fetch,a.toString(),l,Y({headers:u},c!=null&&c.duplex?{duplex:c.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=Y({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await sn(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 Yu("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 sn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
337stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await sn(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);const i=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await sn(r.fetch,`${r.url}/object/sign/${s}`,Y({expiresIn:t},i?{transform:n.transform}:{}),{headers:r.headers});const a=new URLSearchParams;n!=null&&n.download&&a.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&a.set("cacheNonce",String(n.cacheNonce));const l=a.toString();return{signedUrl:encodeURI(`${r.url}${o.signedURL}${l?`&${l}`:""}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await sn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=new URLSearchParams;n!=null&&n.download&&i.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&i.set("cacheNonce",String(n.cacheNonce));const o=i.toString();return s.map(a=>Y(Y({},a),{},{signedUrl:a.signedURL?encodeURI(`${r.url}${a.signedURL}${o?`&${o}`:""}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(s,t.transform),(t==null?void 0:t.cacheNonce)!=null&&s.set("cacheNonce",String(t.cacheNonce));const i=s.toString(),o=this._getFinalPath(e),a=()=>Oa(this.fetch,`${this.url}/${r}/${o}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new pF(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>np(await Oa(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await hF(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(Ju(s)){var r;const i=s instanceof tp?s.status:s instanceof TC?(r=s.originalError)===null||r===void 0?void 0:r.status:void 0;if(i!==void 0&&[400,404].includes(i))return{data:!1,error:s}}throw s}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=new URLSearchParams;t!=null&&t.download&&r.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(r,t.transform),(t==null?void 0:t.cacheNonce)!=null&&r.set("cacheNonce",String(t.cacheNonce));const s=r.toString(),i=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}`)+(s?`?${s}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await ag(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=Y(Y(Y({},mF),t),{},{prefix:e||""});return await sn(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=Y({},e);return await sn(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,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const yF="2.105.4",Qa={"X-Client-Info":`storage-js/${yF}`};var vF=class extends go{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=Y(Y({},Qa),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Oa(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Oa(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await sn(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 rp(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 sn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ag(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():""}},wF=class extends go{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},Qa),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await sn(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 Oa(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ag(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!lF(e))throw new Yu("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 tF({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
337),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}}}}})}},xF=class extends go{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},Qa),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await _t.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await _t.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await _t.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await _t.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},bF=class extends go{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},Qa),{},{"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 _t.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await _t.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 _t.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await _t.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 _t.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},SF=class extends go{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},Qa),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await _t.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await _t.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await _t.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await _t.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},kF=class extends SF{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new EF(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)}},EF=class extends xF{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,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,Y(Y({},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 CF(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}
337,CF=class extends bF{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,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},TF=class extends vF{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new gF(this.url,this.headers,e,this.fetch)}get vectors(){return new kF(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new wF(this.url+"/iceberg",this.headers,this.fetch)}};function Qu(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 AC="2.105.4",ni=30*1e3,sp=3,ih=sp*ni,_F="http://localhost:9999",PF="supabase.auth.token",AF={"X-Client-Info":`gotrue-js/${AC}`},ip="X-Supabase-Api-Version",RC={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},RF=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,jF=10*60*1e3;class Ia extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function $(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class NF extends Ia{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function OF(e){return $(e)&&e.name==="AuthApiError"}class un extends Ia{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class tr extends Ia{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class We extends tr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Ll(e){return $(e)&&e.name==="AuthSessionMissingError"}class Js extends tr{constructor(){super("Auth session or user missing","AuthInvalidToken
337ResponseError",500,void 0)}}class Ml extends tr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Dl extends tr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function IF(e){return $(e)&&e.name==="AuthImplicitGrantRedirectError"}class Q0 extends tr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class LF extends tr{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 op extends tr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function oh(e){return $(e)&&e.name==="AuthRetryableFetchError"}class X0 extends tr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class ap extends tr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const nu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Z0=` 338\r=`.split(""),MF=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Z0.length;t+=1)e[Z0[t].charCodeAt(0)]=-2;for(let t=0;t<nu.length;t+=1)e[nu[t].charCodeAt(0)]=t;return e})();function ew(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(nu[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(nu[r]),t.queuedBits-=6}}function jC(e,t,n){const r=MF[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 tw(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{FF(o,r,n)};for(let o=0;o<e.length;o+=1)jC(e.charCodeAt(o),s,i);return t.join("")}function DF(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 $F(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}DF(r,t)}}function FF(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 Ai(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)jC(e.charCodeAt(s),n,r);return new Uint8Array(t)}function BF(e){const t=[];return $F(e,n=>t.push(n)),new Uint8Array(t)}function ys(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>ew(s,n,r)),ew(null,n,r),t.join("")}function UF(e){return Math.round(Date.now()/1e3)+e}function VF(){return Symbol("auth-callback")}const Ye=()=>typeof window<"u"&&typeof document<"u",os={tested:!1,writable:!1},NC=()=>{if(!Ye())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(os.tested)return os.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),os.tested=!0,os.writable=!0}catch{os.tested=!0,os.writable=!1}return os.writable};function zF(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
338h((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const OC=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),WF=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",ri=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},as=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},Ge=async(e,t)=>{await e.removeItem(t)};class Xu{constructor(){this.promise=new Xu.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Xu.promiseConstructor=Promise;function $l(e){const t=e.split(".");if(t.length!==3)throw new ap("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!RF.test(t[r]))throw new ap("JWT not in base64url format");return{header:JSON.parse(tw(t[0])),payload:JSON.parse(tw(t[1])),signature:Ai(t[2]),raw:{header:t[0],payload:t[1]}}}async function HF(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function qF(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 KF(e){return("0"+e.toString(16)).substr(-2)}function GF(){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,KF).join("")}async function YF(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 JF(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 YF(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Qs(e,t,n=!1){const r=GF();let s=r;n&&(s+="/recovery"),await ri(e,`${t}-code-verifier`,s);const i=await JF(r);return[i,r===i?"plain":"s256"]}const QF=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function XF(e){const t=e.headers.get(ip);if(!t||!t.match(QF))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function ZF(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 e3(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 t3=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Dn(e){if(!t3.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function tn(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function ah(){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 n3(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
338if(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 nw(e){return JSON.parse(JSON.stringify(e))}const ds=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},r3=[502,503,504,520,521,522,523,524,530];async function rw(e){var t;if(!WF(e))throw new op(ds(e),0);if(r3.includes(e.status))throw new op(ds(e),e.status);let n;try{n=await e.json()}catch(i){throw new un(ds(i),i)}let r;const s=XF(e);if(s&&s.getTime()>=RC["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 X0(ds(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new We}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new X0(ds(n),e.status,n.weak_password.reasons);throw new NF(ds(n),e.status||500,r)}const s3=(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 z(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[ip]||(i[ip]=RC["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 i3(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 i3(e,t,n,r,s,i){const o=s3(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new op(ds(l),0)}if(a.ok||await rw(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await rw(l)}}function Dt(e){var t;let n=null;l3(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=UF(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function sw(e){const t=Dt(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 vr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function o3(e){return{data:e,error:null}}function a3(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=Qu(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 iw(e){return e}function l3(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const lh=["global","local","others"];class c3{constructor({url:t="",headers:n={},fetch:r,experimental:s}){this.url=t,this.headers=n,this.fetch=OC(r),this.experimental=s??{},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)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(t,n=lh[0]){if(lh.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${lh.join(", ")}`);try{return await z(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if($(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await z(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:vr})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Qu(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 z(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:a3,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if($(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await z(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:vr})}catch(n){if($(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await z(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:iw});if(u.error)throw u.error;const d=await u.json(),f=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>
3380&&(p.forEach(w=>{const m=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);c[`${b}Page`]=m}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if($(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){Dn(t);try{return await z(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:vr})}catch(n){if($(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Dn(t);try{return await z(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:vr})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Dn(t);try{return await z(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:vr})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Dn(t.userId);try{const{data:n,error:r}=await z(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($(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Dn(t.userId),Dn(t.id);try{return{data:await z(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if($(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await z(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:iw});if(u.error)throw u.error;const d=await u.json(),f=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(w=>{const m=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);c[`${b}Page`]=m}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if($(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await z(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await z(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await z(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if($(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await z(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if($(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await z(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await z(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var s;return{data:{providers:(s=r==null?void 0:r.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(n){if($(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await z(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await z(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await z(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if($(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await z(this.fetch,"DELET
338E",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if($(n))return{data:null,error:n};throw n}}async _adminListPasskeys(t){tn(this.experimental),Dn(t.userId);try{return await z(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(t){tn(this.experimental),Dn(t.userId),Dn(t.passkeyId);try{return await z(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if($(n))return{data:null,error:n};throw n}}}function ow(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const wn={debug:!!(globalThis&&NC()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class IC extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class aw extends IC{}async function u3(e,t,n){wn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let s;t>0&&(s=setTimeout(()=>{r.abort(),wn.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 i=>{if(i){clearTimeout(s),wn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{wn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw wn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new aw(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(wn.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null," "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(s),await n()}})}catch(i){if(t>0&&clearTimeout(s),i!==null&&typeof i=="object"&&"name"in i&&i.name==="AbortError"&&t>0){if(r.signal.aborted)return wn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async o=>{if(o){wn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await n()}finally{wn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,o.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw wn.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new aw(`Lock "${e}" was released because another request stole it`)}throw i}}function d3(){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 LC(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function h3(e){return parseInt(e,16)}function f3(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function p3(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:u,uri:d,version:f}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 339`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=LC(e.address),w=u?`${u}://${r}`:r,m=e.statement?`${e.statement} 340`:"",b=`${w} wants you to sign in with your Ethereum account: 341${p} 342 343${m}`;let y=`URI: ${d} 344Version: ${f} 345Chain ID: ${n}${o?` 346Nonce: ${o}`:""} 347Issued At: ${i.toISOString()}`;if(s&&(y+=` 348Expiration Time: ${s.toISOString()}`),a&&(y+=` 349Not Before: ${a.toISOString()}`),l&&(y+=` 350Request ID: ${l}`),c){let g=` 351Resources:`;for(const v of c){if(!v||typeof v!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${v}`);g+=` 352- ${v}`}y+=g}return`${b} 353${y}`}
353class De 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}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class ru extends De{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function m3({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 De({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 De({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 De({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 De({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 De({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new De({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 De({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new De({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(MC(o)){if(i.rp.id!==o)return new De({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new De({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 De({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 De({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 De({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function g3({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 De({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new De({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(MC(r)){if(n.rpId!==r)return new De({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new De({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new De({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 De({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class y3{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 lp=new y3;function lw(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=Qu(e,["challenge","user","excludeCredentials"]),i=Ai(t).buffer,o=Object.assign(Object.assign({}
353,n),{id:Ai(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 c=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:Ai(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function cw(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=Qu(e,["challenge","allowCredentials"]),s=Ai(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:Ai(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function uw(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:ys(new Uint8Array(e.response.attestationObject)),clientDataJSON:ys(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function dw(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:ys(new Uint8Array(s.authenticatorData)),clientDataJSON:ys(new Uint8Array(s.clientDataJSON)),signature:ys(new Uint8Array(s.signature)),userHandle:s.userHandle?ys(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function MC(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function su(){var e,t;return!!(Ye()&&"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 DC(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ru("Browser returned unexpected credential type",t)}:{data:null,error:new ru("Empty credential response",t)}}catch(t){return{data:null,error:m3({error:t,options:e})}}}async function $C(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ru("Browser returned unexpected credential type",t)}:{data:null,error:new ru("Empty credential response",t)}}catch(t){return{data:null,error:g3({error:t,options:e})}}}const v3={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},w3={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function iu(...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]=iu(a,o):r[i]=iu(o)}else r[i]=o}return r}function x3(e,t){return iu(v3,e,t||{})}function b3(e,t){return iu(w3,e,t||{})}class S3{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 c=s??lp.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:u}=a.webauthn.credential_options.publicKey;if(!u.name){const d=r;if(d)u.name=`${u.id}:${d}`;else{const p=(await this.client.getUser()).data.user,w=((o=p==null?void 0:p.user_metadata)===null||o===void 0?void 0:o.name)||(p==null?void 0:p.email)||(p==null?void 0:p.id)||"User";u.name=`${u.id}:${w}`}}u.displayName||(u.displayName=u.name)}
353switch(a.webauthn.type){case"create":{const u=x3(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:f}=await DC({publicKey:u,signal:c});return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}case"request":{const u=b3(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:f}=await $C(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:u,signal:c}));return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}}}catch(a){return $(a)?{data:null,error:a}:{data:null,error:new un("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 Ia("rpId is required for WebAuthn authentication")};try{if(!su())return{data:null,error:new un("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 $(o)?{data:null,error:o}:{data:null,error:new un("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 Ia("rpId is required for WebAuthn registration")};try{if(!su())return{data:null,error:new un("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(u=>{var d;return(d=u.data)===null||d===void 0?void 0:d.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:a};const{data:l,error:c}=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:c}}catch(o){return $(o)?{data:null,error:o}:{data:null,error:new un("Unexpected error in register",o)}}}}d3();const k3={url:_F,storageKey:PF,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:AF,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function hw(e,t,n){return await n()}const Xs={};class La{get jwks(){var t,n;return(n=(t=Xs[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Xs[this.storageKey]=Object.assign(Object.assign({},Xs[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Xs[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Xs[this.storageKey]=Object.assign(Object.assign({},Xs[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s,i;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 o=Object.assign(Object.assign({},k3),t);if(this.storageKey=o.storageKey,this.instanceID=(n=La.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,La.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&Ye()){const a=`${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(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.experimental=(r=o.experimental)!==null&&r!==void 0?r:{},this.admin=new c3({url:o.url,headers:o.headers,fetch:o.fetch,experimental:this.experimental}),this.url=o.url,this.headers=o.headers,this.fetch=OC(o.fetch),this.lock=o.lock||hw,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,this.lockAcquireTimeout=o.lockAcquireTimeout,o.lock?this.lock=o.lock:this.persistSession&&Ye()&&(!((s=globalThis==null?void 0:globalThis.navigator)===null||s===void 0)&&s.locks)?this.lock=u3:this.lock=hw,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 S3(this)}
353,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.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:NC()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=ow(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=ow(this.memoryStorage)),Ye()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a);try{await this._notifyAllSubscribers(a.data.event,a.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}o.skipAutoInitialize||this.initialize().catch(a=>{this._debug("#initialize()","error",a)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${AC}) ${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(Ye()&&(n=zF(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Ye()&&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),IF(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 $(n)?this._returnResult({error:n}):this._returnResult({error:new un("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await z(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:Dt}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if($(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:u,password:d,options:f}=t;let p=null,w=null;this.flowType==="pkce"&&([p,w]=await Qs(this.storage,this.storageKey)),i=await z(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:u,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:p,code_challenge_method:w},xform:Dt})}else if("phone"in t){const{phone:u,password:d,options:f}=t;i=await z(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Dt})}else throw new Ml("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await Ge(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(await Ge(this.storage,`${this.storageKey}-code-verifier`),$(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 z(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:sw})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await z(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:sw})}else throw new Ml("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 Js;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($(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,c,u,d,f;let p,w;if("message"in t)p=t.message,w=t.signature;else{const{chain:m,wallet:b,statement:y,options:g}=t;let v;if(Ye())if(typeof b=="object")v=b;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")v=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 b!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");v=b}const S=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href),k=await v.request({method:"eth_requestAccounts"}).then(A=>A).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!k||k.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=LC(k[0]);let C=(r=g==null?void 0:g.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!C){const A=await v.request({method:"eth_chainId"});C=h3(A)}const T={domain:S.host,address:E,statement:y,uri:S.href,version:"1",chainId:C,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:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.resources};p=p3(T),w=await v.request({method:"personal_sign",params:[f3(p),E]})}try{const{data:m,error:b}=await z(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:w},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Dt});if(b)throw b;if(!m||!m.session||!m.user){const y=new Js;return this._returnResult({data:{user:null,session:null},error:y})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:b})}catch(m){if($(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var n,r,s,i,o,a,l,c,u,d,f,p;let w,m;if("message"in t)w=t.message,m=t.signature;else{const{chain:b,wallet:y,statement:g,options:v}=t;let S;if(Ye())if(typeof y=="object")S=y;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))S=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=y}const k=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const E=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},v==null?void 0:v.signInWithSolana),{version:"1",domain:k.host,uri:k.href}),g?{statement:g}:null));let C;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")C=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)C=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in C&&"signature"in C&&(typeof C.signedMessage=="string"||C.signedMessage instanceof Uint8Array)&&C.signature instanceof Uint8Array)w=typeof C.signedMessage=="string"?C.signedMessage:new TextDecoder().decode(C.signedMessage),m=C.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");w=[`${k.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${k.href}`,`Issued At: ${(s=(r=v==null?void 0:v.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=v==null?void 0:v.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${v.signInWithSolana.notBefore}`]:[],...!((o=v==null?void 0:v.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${v.signInWithSolana.expirationTime}`]:[],...!((a=v==null?void 0:v.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${v.signInWithSolana.chainId}`]:[],...!((l=v==null?void 0:v.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${v.signInWithSolana.nonce}`]:[],...!((c=v==null?void 0:v.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...!((d=(u=v==null?void 0:v.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...v.signInWithSolana.resources.map(C=>
353`- ${C}`)]:[]].join(` 354`);const E=await S.signMessage(new TextEncoder().encode(w),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=E}}try{const{data:b,error:y}=await z(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:ys(m)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Dt});if(y)throw y;if(!b||!b.session||!b.user){const g=new Js;return this._returnResult({data:{user:null,session:null},error:g})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:y})}catch(b){if($(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const n=await as(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new LF;const{data:i,error:o}=await z(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Dt});if(await Ge(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new Js;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers(s==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Ge(this.storage,`${this.storageKey}-code-verifier`),$(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 z(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:Dt}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const u=new Js;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(n){if($(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 c=null,u=null;this.flowType==="pkce"&&([c,u]=await Qs(this.storage,this.storageKey));const{error:d}=await z(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:c,code_challenge_method:u},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:c,error:u}=await z(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:c==null?void 0:c.message_id},error:u})}throw new Ml("You must provide either an email or phone number.")}catch(a){if(await Ge(this.storage,`${this.storageKey}-code-verifier`),$(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 z(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Dt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=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:c,session:l},error:null})}catch(s){if($(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 Qs(this.storage,this.storageKey));const c=await z(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:o3});return!((i=c.data)===null||i===void 0)&&i.url&&Ye()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await Ge(this.storage,`${this.storageKey}-code-verifier`),$(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 We;
354const{error:s}=await z(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($(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 z(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 z(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 Ml("You must provide either an email or phone number and a type")}catch(n){if($(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 as(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 valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<ih:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await as(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=ah()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=n3(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 z(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:vr}):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 We}:await z(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:vr})})}catch(n){if($(n))return Ll(n)&&(await this._removeSession(),await Ge(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 We;
354const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Qs(this.storage,this.storageKey));const{data:c,error:u}=await z(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:vr});if(u)throw u;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Ge(this.storage,`${this.storageKey}-code-verifier`),$(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 We;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=$l(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($(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 We;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($(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){var r;try{if(!Ye())throw new Dl("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Dl(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 Q0("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Dl("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 Q0("No code detected.");const{data:v,error:S}=await this._exchangeCodeForSession(t.code);if(S)throw S;const k=new URL(window.location.href);return k.searchParams.delete("code"),window.history.replaceState(window.history.state,"",k.toString()),{data:{session:v.session,redirectType:(r=v.redirectType)!==null&&r!==void 0?r:null},error:null}}const{provider_token:s,provider_refresh_token:i,access_token:o,refresh_token:a,expires_in:l,expires_at:c,token_type:u}=t;if(!o||!l||!a||!u)throw new Dl("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(l);let p=d+f;c&&(p=parseInt(c));const w=p-d;w*1e3<=ni&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${w}s, should have been closer to ${f}s`);const m=p-f;d-m>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",m,p,d):d-m<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",m,p,d);const{data:b,error:y}=await this._getUser(o);if(y)throw y;const g={provider_token:s,provider_refresh_token:i,access_token:o,expires_in:f,expires_at:p,refresh_token:a,token_type:u,user:b.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:t.type},error:null})}catch(s){if($(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_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 as(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&&!Ll(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&&!(OF(a)&&(a.status===404||a.status===401||a.status===403)||Ll(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Ge(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=VF(),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;
354if(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),Ll(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Qs(this.storage,this.storageKey,!0));try{return await z(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 Ge(this.storage,`${this.storageKey}-code-verifier`),$(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($(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,c,u;const{data:d,error:f}=i;if(f)throw f;const p=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 z(this.fetch,"GET",p,{headers:this.headers,jwt:(u=(c=d.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return Ye()&&!(!((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($(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;if(s)throw s;const{options:o,provider:a,token:l,access_token:c,nonce:u}=t,d=await z(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:c,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Dt}),{data:f,error:p}=d;return p?this._returnResult({data:{user:null,session:null},error:p}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new Js}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:p}))}catch(s){if(await Ge(this.storage,`${this.storageKey}-code-verifier`),$(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 z(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($(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 qF(async s=>(s>
3540&&await HF(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await z(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Dt})),(s,i)=>{const o=200*Math.pow(2,s);return i&&oh(i)&&Date.now()+o-r<ni})}catch(r){if(this._debug(n,"error",r),$(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),Ye()&&!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 as(this.storage,this.storageKey);if(s&&this.userStorage){let o=await as(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await ri(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:ah()}else if(s&&!s.user&&!s.user){const o=await as(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Ge(this.storage,this.storageKey+"-user"),await ri(this.storage,this.storageKey,s)):s.user=ah()}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()<ih;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${ih}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),oh(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 We;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Xu;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new We;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),$(i)){const o={data:null,error:i};return oh(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 Ge(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 ri(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=nw(s);await ri(this.storage,this.storageKey,i)}else{const s=nw(n);await ri(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ge(this.storage,this.storageKey),await Ge(this.storage,this.storageKey+"-code-verifier"),await Ge(this.storage,this.storageKey+"-user"),this.userStorage&&await Ge(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Ye()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
354catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ni);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)/ni);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ni}ms, refresh threshold is ${sp} ticks`),s<=sp&&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 instanceof IC)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ye()||!(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 Qs(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 z(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($(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:c}=await z(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 c?this._returnResult({data:null,error:c}):(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($(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"?uw(t.webauthn.credential_response):dw(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await z(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($(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 z(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:lw(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:cw(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if($(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:p}=$l(t);let w=null;p.aal&&(w=p.aal);let m=w;const{data:{user:b},error:y}=await this.getUser(t);if(y)return this._returnResult({data:null,error:y});((r=(n=b==null?void 0:b.factors)===null||n===void 0?void 0:n.filter(S=>S.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(m="aal2");const v=p.amr||[];return{data:{currentLevel:w,nextLevel:m,currentAuthenticationMethods:v},error:null}}catch(p){if($(p))return this._returnResult({data:null,error:p});throw p}const{data:{session:o},error:a}
354=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}=$l(o.access_token);let c=null;l.aal&&(c=l.aal);let u=c;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(p=>p.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(u="aal2");const f=l.amr||[];return{data:{currentLevel:c,nextLevel:u,currentAuthenticationMethods:f},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 z(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 We})})}catch(n){if($(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 We});const o=await z(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&&Ye()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if($(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 We});const o=await z(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&&Ye()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if($(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 z(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 We})})}catch(t){if($(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 z(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 We})})}catch(n){if($(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+jF>s)return r;const{data:i,error:o}=await z(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:p,error:w}
354=await this.getSession();if(w||!p.session)return this._returnResult({data:null,error:w});r=p.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=$l(r);n!=null&&n.allowExpired||ZF(i.exp);const c=!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(!c){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:i,header:s,signature:o},error:null}}const u=e3(s.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,o,BF(`${a}.${l}`)))throw new ap("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if($(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(t){var n,r,s;tn(this.experimental);try{if(!su())return this._returnResult({data:null,error:new un("Browser does not support WebAuthn",null)});const{data:i,error:o}=await this._startPasskeyAuthentication({options:{captchaToken:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}});if(o||!i)return this._returnResult({data:null,error:o});const a=cw(i.options),l=(s=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:lp.createNewAbortSignal(),{data:c,error:u}=await $C({publicKey:a,signal:l});if(u||!c)return this._returnResult({data:null,error:u??new un("WebAuthn ceremony failed",null)});const d=dw(c);return this._verifyPasskeyAuthentication({challengeId:i.challenge_id,credential:d})}catch(i){if($(i))return this._returnResult({data:null,error:i});throw i}}async registerPasskey(t){var n,r;tn(this.experimental);try{if(!su())return this._returnResult({data:null,error:new un("Browser does not support WebAuthn",null)});const{data:s,error:i}=await this._startPasskeyRegistration();if(i||!s)return this._returnResult({data:null,error:i});const o=lw(s.options),a=(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.signal)!==null&&r!==void 0?r:lp.createNewAbortSignal(),{data:l,error:c}=await DC({publicKey:o,signal:a});if(c||!l)return this._returnResult({data:null,error:c??new un("WebAuthn ceremony failed",null)});const u=uw(l);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:u})}catch(s){if($(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){tn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new We});const{data:s,error:i}=await z(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if($(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){tn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new We});const{data:i,error:o}=await z(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(t){var n;tn(this.experimental);try{const{data:r,error:s}=await z(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:r,error:null})}catch(r){if($(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(t){tn(this.experimental);try{const{data:n,error:r}=await z(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:Dt});return r?this._returnResult({data:null,error:r}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){tn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new We});const{data:s,error:i}=await z(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if($(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){tn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new We});const{data:i,error:o}=await z(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:t.friendlyName}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(t){tn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new We});const{error:i}
354=await z(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}}La.nextInstanceID={};const E3=La,C3="2.105.4";let $o="";typeof Deno<"u"?$o="deno":typeof document<"u"?$o="web":typeof navigator<"u"&&navigator.product==="ReactNative"?$o="react-native":$o="node";const T3={"X-Client-Info":`supabase-js-${$o}/${C3}`},_3={headers:T3},P3={schema:"public"},A3={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},R3={};function Ma(e){"@babel/helpers - typeof";return Ma=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},Ma(e)}function j3(e,t){if(Ma(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ma(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function N3(e){var t=j3(e,"string");return Ma(t)=="symbol"?t:t+""}function O3(e,t,n){return(t=N3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fw(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 Oe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(n),!0).forEach(function(r){O3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const I3=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),L3=()=>Headers,M3=(e,t,n)=>{const r=I3(n),s=L3();return async(i,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new s(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(i,Oe(Oe({},o),{},{headers:c}))}};function D3(e){return e.endsWith("/")?e:e+"/"}function $3(e,t){var n,r;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:c,realtime:u,global:d}=t,f={db:Oe(Oe({},l),s),auth:Oe(Oe({},c),i),realtime:Oe(Oe({},u),o),storage:{},global:Oe(Oe(Oe({},d),a),{},{headers:Oe(Oe({},(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?f.accessToken=e.accessToken:delete f.accessToken,f}function F3(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(D3(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var B3=class extends E3{constructor(e){super(e)}},U3=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=F3(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:P3,realtime:R3,auth:Oe(Oe({},A3),{},{storageKey:o}),global:_3},l=$3(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:(u,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 c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=M3(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Oe({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new f5(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 TF(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new r5(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)}
354channel(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:c,experimental:u,lockAcquireTimeout:d,skipAutoInitialize:f},p,w){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new B3({url:this.authUrl.href,headers:Oe(Oe({},m),p),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:c,experimental:u,fetch:w,lockAcquireTimeout:d,skipAutoInitialize:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(b=>b.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new Y5(this.realtimeUrl.href,Oe(Oe({},e),{},{params:Oe(Oe({},{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 V3=(e,t,n)=>new U3(e,t,n);function z3(){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}z3()&&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 W3="https://rqvcewezdyijlcgginug.supabase.co",H3="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InJxdmNld2V6ZHlpamxjZ2dpbnVnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzA5OTk1NTgsImV4cCI6MjA4NjU3NTU1OH0.ucdn0FGUw7KgAiLxY8l8KQ7rdjK7gv3ZiLrxsiik0OU",pw=V3(W3,H3,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),q3=["Personal Insurance","Small Business Insurance","Homeowners","Flood Insurance","Landlord Insurance","Auto Insurance","Other"],K3=()=>{const{toast:e}=$b(),[t,n]=x.useState(!1),[r,s]=x.useState(!1),[i,o]=x.useState({name:"",email:"",phone:"",quote_type:"",notes:"",consent:!1}),a=(c,u)=>{o(d=>({...d,[c]:u}))},l=async c=>{if(c.preventDefault(),!i.name||!i.email||!i.phone||!i.quote_type||!i.consent){e({title:"Missing Information",description:"Please fill out all required fields.",variant:"destructive"});return}n(!0);const{error:u}=await pw.from("quote_requests").insert({name:i.name,email:i.email,phone:i.phone,quote_type:i.quote_type,notes:i.notes||null});if(u){n(!1),e({title:"Something went wrong",description:"Please try again or call us directly.",variant:"destructive"});return}pw.functions.invoke("send-quote-email",{body:{name:i.name,email:i.email,phone:i.phone,quote_type:i.quote_type,notes:i.notes}}).catch(d=>console.error("Email notification failed:",d)),n(!1),s(!0)};return r?h.jsxs("div",{className:"min-h-screen bg-background",children:[h.jsx(Qi,{}),h.jsx("main",{className:"pt-32 pb-20",children:h.jsx("div",{className:"container mx-auto px-4",children:h.jsxs(xe.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"max-w-lg mx-auto text-center",children:[h.jsx("div",{className:"w-20 h-20 bg-accent/20 rounded-full flex items-center justify-center mx-auto mb-6",children:h.jsx(kA,{className:"w-10 h-10 text-accent"})}),h.jsx("h1",{className:"text-3xl font-bold text-foreground mb-4",children:"Thank You!"}),h.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:"We've received your quote request. Our team will reach out shortly to help you find the best coverage."}),h.jsx(qe,{onClick:()=>window.location.href="/",className:"bg-accent text-accent-foreground hover:bg-gold-dark",children:"Back to Home"})]})})}),h.jsx(Xi,{}),h.jsx(zf,{})]}):h.jsxs("div",{className:"min-h-screen bg-background",children:[h.jsx(Qi,{}),h.jsx("main",{className:"pt-32 pb-20",children:h.jsx("div",{className:"container mx-auto px-4",children:h.jsxs(xe.div,{initial:{opacity:0,y:20}
354,animate:{opacity:1,y:0},className:"max-w-2xl mx-auto",children:[h.jsxs("div",{className:"text-center mb-10",children:[h.jsx("span",{className:"text-accent font-semibold text-sm uppercase tracking-wider",children:"Get Started"}),h.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mt-2 mb-4",children:"Request a Free Quote"}),h.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:"Fill out the form below and one of our team members will get back to you with personalized coverage options."})]}),h.jsxs("form",{onSubmit:l,className:"space-y-6 bg-card rounded-2xl p-8 shadow-card border border-border",children:[h.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"text-sm font-medium text-foreground",children:"Full Name *"}),h.jsx(lc,{placeholder:"John Smith",value:i.name,onChange:c=>a("name",c.target.value),maxLength:100,required:!0})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"text-sm font-medium text-foreground",children:"Email *"}),h.jsx(lc,{type:"email",placeholder:"[email protected]",value:i.email,onChange:c=>a("email",c.target.value),maxLength:255,required:!0})]})]}),h.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"text-sm font-medium text-foreground",children:"Phone *"}),h.jsx(lc,{type:"tel",placeholder:"(225) 555-1234",value:i.phone,onChange:c=>a("phone",c.target.value),maxLength:20,required:!0})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"text-sm font-medium text-foreground",children:"What do you need a quote on? *"}),h.jsxs(q4,{value:i.quote_type,onValueChange:c=>a("quote_type",c),children:[h.jsx(iC,{children:h.jsx(K4,{placeholder:"Select coverage type"})}),h.jsx(lC,{children:q3.map(c=>h.jsx(cC,{value:c,children:c},c))})]})]})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"text-sm font-medium text-foreground",children:"Notes"}),h.jsx(dE,{placeholder:"Tell us more about what you're looking for...",value:i.notes,onChange:c=>a("notes",c.target.value),maxLength:2e3,rows:4})]}),h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx(yC,{id:"consent",checked:i.consent,onCheckedChange:c=>a("consent",c),className:"mt-1"}),h.jsx("label",{htmlFor:"consent",className:"text-xs text-muted-foreground leading-relaxed cursor-pointer",children:"By submitting this form, you consent to receive calls, emails, and/or text messages from Evolve Insurance Partners at the phone number and email provided. Message and data rates may apply. You may opt out at any time."})]}),h.jsxs(qe,{type:"submit",size:"lg",disabled:t,className:"w-full bg-accent text-accent-foreground hover:bg-gold-dark shadow-gold text-lg py-6",children:[t?"Submitting...":"Submit Quote Request",h.jsx(so,{className:"ml-2 w-5 h-5"})]})]})]})})}),h.jsx(Xi,{}),h.jsx(zf,{})]})},G3=()=>h.jsxs("div",{className:"min-h-screen bg-background",children:[h.jsx(Qi,{}),h.jsx("main",{className:"pt-32 pb-20",children:h.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[h.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-8",children:"Privacy Policy"}),h.jsx("p",{className:"text-muted-foreground text-sm mb-8",children:"Last updated: February 17, 2026"}),h.jsxs("div",{className:"prose prose-sm max-w-none space-y-6 text-foreground/80",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Information We Collect"}),h.jsx("p",{children:"When you request a quote or contact us, we may collect the following personal information:"}),h.jsxs("ul",{className:"list-disc pl-6 space-y-1",children:[h.jsx("li",{children:"Full name"}),h.jsx("li",{children:"Email address"}),h.jsx("li",{children:"Phone number"}),h.jsx("li",{children:"Type of insurance coverage requested"}),h.jsx("li",{children:"Additional notes or details you provide"})]})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"How We Use Your Information"}),h.jsx("p",{children:"We use the information we collect to:"}),h.jsxs("ul",{className:"list-disc pl-6 space-y-1",children:[h.jsx("li",{children:"Provide you with insurance quotes and coverage options"}),h.jsx("li",{children:"Contact you by phone, email, or text message regarding your quote request"}),h.jsx("li",{children:"Respond to your inquiries and provide customer support"}),h.jsx("li",{children:"Improve our services and website experience"})]})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Third-Party Sharing"}),h.jsx("p",{children:"We may share your information with insurance carriers and underwriters for the purpose of obtaining quotes on your behalf. We do not sell your personal information to third parties for marketing purposes."}
354),h.jsx("p",{children:"We may also share your information with service providers who assist us in operating our website and conducting our business, such as email delivery services and customer relationship management platforms."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Data Retention"}),h.jsx("p",{children:"We retain your personal information for as long as necessary to fulfill the purposes for which it was collected, comply with legal obligations, resolve disputes, and enforce our agreements. If you would like us to delete your information, please contact us using the information below."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Your Rights"}),h.jsx("p",{children:"You have the right to:"}),h.jsxs("ul",{className:"list-disc pl-6 space-y-1",children:[h.jsx("li",{children:"Request access to the personal information we hold about you"}),h.jsx("li",{children:"Request correction of inaccurate information"}),h.jsx("li",{children:"Request deletion of your personal information"}),h.jsx("li",{children:"Opt out of receiving communications from us at any time"})]})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Cookies and Tracking"}),h.jsx("p",{children:"Our website may use cookies and similar technologies to improve your browsing experience. You can adjust your browser settings to refuse cookies, though this may limit some functionality."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Contact Us"}),h.jsx("p",{children:"If you have questions about this Privacy Policy or your personal information, please contact us:"}),h.jsxs("ul",{className:"list-none space-y-1",children:[h.jsx("li",{children:h.jsx("strong",{children:"Evolve Insurance Partners"})}),h.jsx("li",{children:"400 Conway Village Blvd Ste 203, Gonzales, LA 70737"}),h.jsxs("li",{children:["Phone: ",h.jsx("a",{href:"tel:+1-225-655-8008",className:"text-accent hover:underline",children:"(225) 655-8008"})]}),h.jsxs("li",{children:["Email: ",h.jsx("a",{href:"mailto:[email protected]",className:"text-accent hover:underline",children:"[email protected]"})]})]})]})]})]})}),h.jsx(Xi,{})]}),Y3=()=>h.jsxs("div",{className:"min-h-screen bg-background",children:[h.jsx(Qi,{}),h.jsx("main",{className:"pt-32 pb-20",children:h.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[h.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-8",children:"Terms of Service"}),h.jsx("p",{className:"text-muted-foreground text-sm mb-8",children:"Last updated: February 17, 2026"}),h.jsxs("div",{className:"prose prose-sm max-w-none space-y-6 text-foreground/80",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Acceptance of Terms"}),h.jsx("p",{children:"By accessing and using the Evolve Insurance Partners website, you agree to be bound by these Terms of Service. If you do not agree with any part of these terms, please do not use our website."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Use of Website"}),h.jsx("p",{children:"This website is provided for informational purposes and to facilitate quote requests. You agree to use this website only for lawful purposes and in a manner that does not infringe upon the rights of others."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Insurance Quotes"}),h.jsx("p",{children:"Quotes provided through this website are estimates only and do not constitute a binding contract or guarantee of coverage. Final policy terms, conditions, and premiums are determined by the insurance carrier upon underwriting review. Coverage is not effective until a policy is issued and the required premium is paid."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"No Professional Advice"}),h.jsx("p",{children:"The information on this website is for general informational purposes only and should not be considered professional insurance, legal, or financial advice. We recommend consulting directly with our agents or other qualified professionals for advice specific to your situation."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Limitation of Liability"}),h.jsx("p",{children:"Evolve Insurance Partners shall not be liable for any direct, indirect, incidental, consequential, or punitive damages arising from your use of this website or reliance on any information provided herein. We make no warranties or representations about the accuracy, completeness, or reliability of the content on this website."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Third-Party Links"}),h.jsx("p",{children:"Our website may contain links to third-party websites. We are not responsible for the content, privacy policies, or practices of any third-party sites. Accessing third-party links is at your own risk."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Changes to Terms"}),h.jsx("p",{children:"We reserve the right to modify these Terms of Service at any time. Changes will be effective immediately upon posting to this website. Your continued use of the website after changes are posted constitutes your acceptance of the revised terms."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Governing Law"}),h.jsx("p",{children:"These Terms of Service are governed by and construed in accordance with the laws of the State of Louisiana, without regard to its conflict of law principles. Any disputes arising under these terms shall be subject to the exclusive jurisdiction of the courts located in Louisiana."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Contact Us"}),h.jsx("p",{children:"If you have questions about these Terms of Service, please contact us:"}),h.jsxs("ul",{className:"list-none space-y-1",children:[h.jsx("li",{children:h.jsx("strong",{children:"Evolve Insurance Partners"})}),h.jsx("li",{children:"400 Conway Village Blvd Ste 203, Gonzales, LA 70737"}),h.jsxs("li",{children:["Phone: ",h.jsx("a",{href:"tel:+1-225-655-8008",className:"text-accent hover:underline",children:"(225) 655-8008"})]}),h.jsxs("li",{children:["Email: ",h.jsx("a",{href:"mailto:[email protected]",className:"text-accent hover:underline",children:"[email protected]"})]})]})]})]})]})}),h.jsx(Xi,{})]}),J3=()=>{const e=uo();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),h.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:h.jsxs("div",{className:"text-center",children:[h.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),h.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),h.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})};function lg({eyebrow:e,h1:t,intro:n,crumbs:r,children:s}){return h.jsxs("div",{className:"min-h-screen bg-background",children:[h.jsx(Qi,{}),h.jsx("main",{className:"pt-32 pb-20",children:h.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[h.jsx("nav",{"aria-label":"Breadcrumb",className:"mb-6 text-sm text-muted-foreground",children:h.jsx("ol",{className:"flex flex-wrap items-center gap-1",children:r.map((i,o)=>h.jsxs("li",{className:"flex items-center gap-1",children:[i.href?h.jsx(ke,{to:i.href,className:"hover:text-foreground transition-colors",children:i.label}):h.jsx("span",{className:"text-foreground",children:i.label}),o<r.length-1&&h.jsx(bA,{className:"w-3 h-3"})]},o))})}),h.jsxs(xe.div,{initial:{opacity:0,y:16}
354,animate:{opacity:1,y:0},transition:{duration:.5},children:[h.jsx("p",{className:"text-accent font-semibold uppercase tracking-wider text-sm mb-3",children:e}),h.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-6 leading-tight",children:t}),h.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed mb-10 max-w-3xl",children:n}),h.jsxs("div",{className:"flex flex-wrap gap-3 mb-12",children:[h.jsx(qe,{size:"lg",className:"bg-accent text-accent-foreground hover:bg-gold-dark shadow-gold",onClick:()=>window.location.href="/get-quote",children:"Get a Free Quote"}),h.jsx("a",{href:"tel:+1-225-655-8008",children:h.jsxs(qe,{size:"lg",variant:"outline",children:[h.jsx(Hi,{className:"w-4 h-4 mr-2"}),"(225) 655-8008"]})})]})]}),s]})}),h.jsx(Xi,{})]})}function ou({items:e}){return h.jsx("ul",{className:"space-y-3",children:e.map((t,n)=>h.jsxs("li",{className:"flex items-start gap-3",children:[h.jsx(lm,{className:"w-5 h-5 text-accent shrink-0 mt-1"}),h.jsx("span",{className:"text-foreground/80",children:t})]},n))})}function Pt({title:e,children:t}){return h.jsxs("section",{className:"mb-12",children:[h.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-5",children:e}),t]})}function FC({faqs:e}){return h.jsx("div",{className:"space-y-5",children:e.map((t,n)=>h.jsxs("div",{className:"border border-border rounded-lg p-5 bg-card",children:[h.jsx("h3",{className:"font-semibold text-foreground mb-2",children:t.q}),h.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.a})]},n))})}function cg({headline:e,body:t}){return h.jsxs("section",{className:"mt-16 rounded-2xl bg-primary text-primary-foreground p-8 md:p-12",children:[h.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-3",children:e}),h.jsx("p",{className:"text-primary-foreground/80 mb-6 max-w-2xl",children:t}),h.jsxs("div",{className:"flex flex-wrap gap-3",children:[h.jsx(qe,{size:"lg",className:"bg-accent text-accent-foreground hover:bg-gold-dark",onClick:()=>window.location.href="/get-quote",children:"Get a Free Quote"}),h.jsx("a",{href:"tel:+1-225-655-8008",children:h.jsxs(qe,{size:"lg",variant:"outline",className:"bg-transparent border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:[h.jsx(Hi,{className:"w-4 h-4 mr-2"}),"Call Now"]})})]})]})}const Q3=({slug:e})=>{const t=lE(e);if(!t)return h.jsx(Pm,{to:"/404",replace:!0});const n=`${qr}/${t.slug}`,r=[{"@context":"https://schema.org","@type":"Service",name:t.name,provider:{"@type":"InsuranceAgency",name:Zi,url:qr,telephone:"+1-225-655-8008",areaServed:["Louisiana","Mississippi"]},areaServed:["Louisiana","Mississippi"],description:t.metaDescription,url:n},{"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.faqs.map(s=>
354({"@type":"Question",name:s.q,acceptedAnswer:{"@type":"Answer",text:s.a}}))}];return h.jsxs(h.Fragment,{children:[h.jsx(Vu,{title:t.metaTitle,description:t.metaDescription,canonical:n,jsonLd:r}),h.jsxs(lg,{eyebrow:t.shortName+" Insurance",h1:t.name+" in Louisiana & Mississippi",intro:t.intro,crumbs:[{label:"Home",href:"/"},{label:"Coverages",href:"/"},{label:t.shortName}],children:[h.jsx(Pt,{title:"Who needs this coverage?",children:h.jsx("p",{className:"text-foreground/80 leading-relaxed",children:t.whoNeedsIt})}),h.jsx(Pt,{title:"What's typically covered",children:h.jsx(ou,{items:t.coverageHighlights})}),h.jsx(Pt,{title:"How we work",children:h.jsx("div",{className:"grid md:grid-cols-3 gap-5",children:t.process.map((s,i)=>h.jsxs("div",{className:"border border-border rounded-lg p-5 bg-card",children:[h.jsxs("div",{className:"text-accent font-bold text-2xl mb-2",children:["0",i+1]}),h.jsx("h3",{className:"font-semibold text-foreground mb-2",children:s.title}),h.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:s.body})]},i))})}),h.jsx(Pt,{title:"Frequently asked questions",children:h.jsx(FC,{faqs:t.faqs})}),h.jsxs(Pt,{title:"Cities we serve",children:[h.jsxs("p",{className:"text-foreground/80 mb-4",children:["We write ",t.shortName.toLowerCase()," insurance throughout Louisiana and Mississippi. Visit your city below for local context, or get a quote to start."]}),h.jsx("ul",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:Ja.map(s=>{const i=uE(t.slug,s.slug);return h.jsx("li",{children:h.jsx(ke,{to:i?`/${t.slug}-${s.slug}`:`/${s.slug}`,className:"text-primary hover:text-accent transition-colors text-sm",children:i?`${t.shortName} insurance in ${s.city}, ${s.stateAbbr}`:`${s.city}, ${s.stateAbbr}`})},s.slug)})})]}),h.jsx(cg,{headline:`Ready to compare ${t.shortName.toLowerCase()} quotes?`,body:"Tell us about your situation and we'll shop 20+ carriers to find your best rate. No obligation."})]})]})},X3=({slug:e})=>{const t=cE(e);if(!t)return h.jsx(Pm,{to:"/404",replace:!0});const n=`${qr}/${t.slug}`,r=`Insurance Agent in ${t.city}, ${t.stateAbbr} | ${Zi}`,s=`Independent insurance agency serving ${t.city}, ${t.state}. Compare home, auto, flood, and business insurance from 20+ carriers. Free local quote.`,i={"@context":"https://schema.org","@type":"InsuranceAgency",name:`${Zi} â ${t.city}`,url:n,telephone:"+1-225-655-8008",address:{"@type":"PostalAddress",streetAddress:"400 Conway Village Blvd Ste 203",addressLocality:"Gonzales",addressRegion:"LA",postalCode:"70737",addressCountry:"US"},areaServed:{"@type":"City",name:t.city,containedInPlace:{"@type":"State",name:t.state}},description:s};return h.jsxs(h.Fragment,{children:[h.jsx(Vu,{title:r,description:s,canonical:n,jsonLd:i}),h.jsxs(lg,{eyebrow:`${t.city}, ${t.stateAbbr}`,h1:`Insurance in ${t.city}, ${t.state}`,intro:t.intro,crumbs:[{label:"Home",href:"/"},{label:"Locations"},{label:t.city}],children:[h.jsx(Pt,{title:`What ${t.city} residents should know`,children:h.jsx("p",{className:"text-foreground/80 leading-relaxed",children:t.localContext})}),h.jsx(Pt,{title:"Top local concerns we help with",children:h.jsx(ou,{items:t.topConcerns})}),h.jsx(Pt,{title:`Coverage we write in ${t.city}`,children:h.jsx("ul",{className:"grid md:grid-cols-2 gap-3",children:zu.map(o=>{const a=uE(o.slug,t.slug);return h.jsx("li",{children:h.jsxs(ke,{to:a?`/${o.slug}-${t.slug}`:`/${o.slug}`,className:"block border border-border rounded-lg p-4 bg-card hover:border-accent transition-colors",children:[h.jsx("div",{className:"font-semibold text-foreground",children:a?`${o.name} in ${t.city}`:o.name}),h.jsxs("div",{className:"text-sm text-muted-foreground mt-1",children:["Compare ",o.shortName.toLowerCase()," quotes from 20+ carriers"]})]})},o.slug)})})}),h.jsx(cg,{headline:`Local ${t.city} insurance, shopped across 20+ carriers`,body:`Get a free quote tailored to ${t.city}, ${t.stateAbbr}. We know the local market and the carriers that write here.`})]})]})},Z3=({serviceSlug:e,locationSlug:t})=>{const n=lE(e),r=cE(t);if(!n||!r)return h.jsx(Pm,{to:"/404",replace:!0});const s=`/${n.slug}-${r.slug}`,i=`${qr}${s}`,o=`${n.name} in ${r.city}, ${r.stateAbbr} | ${Zi}`,a=`${n.shortName} insurance in ${r.city}, ${r.state}. Independent agents shopping 20+ carriers for the best rate. Free local quote.`,l=[{"@context":"https://schema.org","@type":"Service",name:`${n.name} in ${r.city}, ${r.stateAbbr}`,provider:{"@type":"InsuranceAgency",name:Zi,url:qr,telephone:"+1-225-655-8008"},areaServed:{"@type":"City",name:r.city,containedInPlace:{"@type":"State",name:r.state}},description:a,url:i},{"@context":"https://schema.org","@type":"FAQPage",mainEntity:n.faqs.map(u=>
354({"@type":"Question",name:u.q,acceptedAnswer:{"@type":"Answer",text:u.a}}))}],c=`${n.intro} Below: what makes ${r.city}, ${r.stateAbbr} different â and how we put together a ${n.shortName.toLowerCase()} program that fits the local market.`;return h.jsxs(h.Fragment,{children:[h.jsx(Vu,{title:o,description:a,canonical:i,jsonLd:l}),h.jsxs(lg,{eyebrow:`${n.shortName} ⢠${r.city}, ${r.stateAbbr}`,h1:`${n.name} in ${r.city}, ${r.state}`,intro:c,crumbs:[{label:"Home",href:"/"},{label:n.shortName,href:`/${n.slug}`},{label:r.city}],children:[h.jsxs(Pt,{title:`Why ${r.city} is different`,children:[h.jsx("p",{className:"text-foreground/80 leading-relaxed mb-4",children:r.localContext}),h.jsx(ou,{items:r.topConcerns})]}),h.jsx(Pt,{title:`What your ${n.shortName.toLowerCase()} policy should include`,children:h.jsx(ou,{items:n.coverageHighlights})}),h.jsx(Pt,{title:"How we shop your quote",children:h.jsx("div",{className:"grid md:grid-cols-3 gap-5",children:n.process.map((u,d)=>h.jsxs("div",{className:"border border-border rounded-lg p-5 bg-card",children:[h.jsxs("div",{className:"text-accent font-bold text-2xl mb-2",children:["0",d+1]}),h.jsx("h3",{className:"font-semibold text-foreground mb-2",children:u.title}),h.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:u.body})]},d))})}),h.jsx(Pt,{title:"Frequently asked questions",children:h.jsx(FC,{faqs:n.faqs})}),h.jsx(Pt,{title:"Related coverage",children:h.jsxs("div",{className:"flex flex-wrap gap-3 text-sm",children:[h.jsxs(ke,{to:`/${n.slug}`,className:"border border-border rounded-full px-4 py-2 hover:border-accent transition-colors",children:["All ",n.shortName.toLowerCase()," info"]}),h.jsxs(ke,{to:`/${r.slug}`,className:"border border-border rounded-full px-4 py-2 hover:border-accent transition-colors",children:["All coverage in ",r.city]})]})}),h.jsx(cg,{headline:`Get a ${r.city} ${n.shortName.toLowerCase()} quote today`,body:`We'll shop 20+ carriers for the best ${n.shortName.toLowerCase()} rate available in ${r.city}, ${r.stateAbbr}. Free, no obligation.`})]})]})},eB=new t2,tB=w$(),nB=()=>h.jsx(r2,{client:eB,children:h.jsxs(jN,{children:[h.jsx(_R,{}),h.jsx(ij,{}),h.jsx(Z2,{children:h.jsxs(q2,{children:[h.jsx(Fn,{path:"/",element:h.jsx(b$,{})}),h.jsx(Fn,{path:"/get-quote",element:h.jsx(K3,{})}),h.jsx(Fn,{path:"/privacy-policy",element:h.jsx(G3,{})}),h.jsx(Fn,{path:"/terms-of-service",element:h.jsx(Y3,{})}),zu.map(e=>h.jsx(Fn,{path:`/${e.slug}`,element:h.jsx(Q3,{slug:e.slug})},e.slug)),Ja.map(e=>h.jsx(Fn,{path:`/${e.slug}`,element:h.jsx(X3,{slug:e.slug})},e.slug)),tB.map(({service:e,location:t})=>h.jsx(Fn,{path:`/${e.slug}-${t.slug}`,element:h.jsx(Z3,{serviceSlug:e.slug,locationSlug:t.slug})},`${e.slug}-${t.slug}`)),h.jsx(Fn,{path:"*",element:h.jsx(J3,{})})]})})]})});Db(document.getElementById("root")).render(h.jsx(nB,{}));
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.