vendor: 4,140 bytes, lines 1-9
1var Dm=e=>{throw TypeError(e)};var Hu=(e,t,n)=>t.has(e)||Dm("Cannot "+n);var R=(e,t,n)=>(Hu(e,t,"read from private field"),n?n.call(e):t.get(e)),le=(e,t,n)=>t.has(e)?Dm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),te=(e,t,n,r)=>(Hu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),et=(e,t,n)=>(Hu(e,t,"access private method"),n);var Xa=(e,t,n,r)=>({set _(s){te(e,t,s,n)},get _(){return R(e,t,r)}});function rE(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 $0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F0={exports:{}},eu={},V0={exports:{}},se={};/** 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 ja=Symbol.for("react.element"),sE=Symbol.for("react.portal"),iE=Symbol.for("react.fragment"),oE=Symbol.for("react.strict_mode"),aE=Symbol.for("react.profiler"),lE=Symbol.for("react.provider"),cE=Symbol.for("react.context"),uE=Symbol.for("react.forward_ref"),dE=Symbol.for("react.suspense"),hE=Symbol.for("react.memo"),fE=Symbol.for("react.lazy"),$m=Symbol.iterator;function pE(e){return e===null||typeof e!="object"?null:(e=$m&&e[$m]||e["@@iterator"],typeof e=="function"?e:null)}var U0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B0=Object.assign,z0={};function Gi(e,t,n){this.props=e,this.context=t,this.refs=z0,this.updater=n||U0}Gi.prototype.isReactComponent={};Gi.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")};Gi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function H0(){}H0.prototype=Gi.prototype;function Ff(e,t,n){this.props=e,this.context=t,this.refs=z0,this.updater=n||U0}var Vf=Ff.prototype=new H0;Vf.constructor=Ff;B0(Vf,Gi.prototype);Vf.isPureReactComponent=!0;var Fm=Array.isArray,W0=Object.prototype.hasOwnProperty,Uf={current:null},q0={key:!0,ref:!0,__self:!0,__source:!0};function K0(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)W0.call(t,r)&&!q0.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:ja,type:e,key:i,ref:o,props:s,_owner:Uf.current}}function mE(e,t){return{$$typeof:ja,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Bf(e){return typeof e=="object"&&e!==null&&e.$$typeof===ja}function gE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Vm=/\/+/g;function Wu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?gE(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function Il(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 ja:case sE:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Wu(o,0):r,Fm(s)?(n="",e!=null&&(n=e.replace(Vm,"$&/")+"/"),Il(s,t,n,"",function(c){return c})):s!=null&&(Bf(s)&&(s=mE(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Vm,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Fm(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Wu(i,a);o+=Il(i,t,n,l,s)}else if(l=pE(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Wu(i,a++),o+=Il(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 Za(e,t,n){if(e==null)return e;var r=[],s=0;return Il(e,r,"","",function(i){return t.call(n,i,s++)}),r}function yE(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 pt={current:null},Ll={transition:null},vE={ReactCurrentDispatcher:pt,ReactCurrentBatchConfig:Ll,ReactCurrentOwner:Uf};function G0(){throw Error("act(...) is not supported in production builds of React.")}se.Children={map:Za,forEach:function(e,t,n){Za(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Za(e,function(){t++}),t},toArray:function(e){return Za(e,function(t){return t})||[]},only:function(e){if(!Bf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};se.Component=Gi;se.Fragment=iE;se.Profiler=aE;se.PureComponent=Ff;se.StrictMode=oE;se.Suspense=dE;se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vE;se.act=G0;se.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=B0({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Uf.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)W0.call(t,l)&&!q0.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:ja,type:e.type,key:s,ref:i,props:r,_owner:o}};se.createContext=function(e){return e={$$typeof:cE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:lE,_context:e},e.Consumer=e};se.createElement=K0;se.createFactory=function(e){var t=K0.bind(null,e);return t.type=e,t};se.createRef=function(){return{current:null}};se.forwardRef=function(e){return{$$typeof:uE,render:e}};se.isValidElement=Bf;se.lazy=function(e){return{$$typeof:fE,_payload:{_status:-1,_result:e},_init:yE}};se.memo=function(e,t){return{$$typeof:hE,type:e,compare:t===void 0?null:t}};se.startTransition=function(e){var t=Ll.transition;Ll.transition={};try{e()}finally{Ll.transition=t}};se.unstable_act=G0;se.useCallback=function(e,t){return pt.current.useCallback(e,t)};se.useContext=function(e){return pt.current.useContext(e)};se.useDebugValue=function(){};se.useDeferredValue=function(e){return pt.current.useDeferredValue(e)};se.useEffect=function(e,t){return pt.current.useEffect(e,t)};se.useId=function(){return pt.current.useId()};se.useImperativeHandle=function(e,t,n){return pt.current.useImperativeHandle(e,t,n)};se.useInsertionEffect=function(e,t){return pt.current.useInsertionEffect(e,t)};se.useLayoutEffect=function(e,t){return pt.current.useLayoutEffect(e,t)};se.useMemo=function(e,t){return pt.current.useMemo(e,t)};se.useReducer=function(e,t,n){return pt.current.useReducer(e,t,n)};se.useRef=function(e){return pt.current.useRef(e)};se.useState=function(e){return pt.current.useState(e)};se.useSyncExternalStore=function(e,t,n){return pt.current.useSyncExternalStore(e,t,n)};se.useTransition=function(){return pt.current.useTransition()};se.version="18.3.1";V0.exports=se;var b=V0.exports;const M=$0(b),J0=rE({__proto__:null,default:M},[b]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var wE=b,xE=Symbol.for("react.element"),bE=Symbol.for("react.fragment"),SE=Object.prototype.hasOwnProperty,kE=wE.__SECRET_INT
vendor: 11,405 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,EE={key:!0,ref:!0,__self:!0,__source:!0};function Y0(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)SE.call(t,r)&&!EE.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:xE,type:e,key:i,ref:o,props:s,_owner:kE.current}}eu.Fragment=bE;eu.jsx=Y0;eu.jsxs=Y0;F0.exports=eu;var p=F0.exports,Q0={exports:{}},Dt={},X0={exports:{}},Z0={};/** 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(A,j){var D=A.length;A.push(j);e:for(;0<D;){var q=D-1>>>1,W=A[q];if(0<s(W,j))A[q]=j,A[D]=W,D=q;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var j=A[0],D=A.pop();if(D!==j){A[0]=D;e:for(var q=0,W=A.length,Z=W>>>1;q<Z;){var Q=2*(q+1)-1,he=A[Q],Pe=Q+1,ee=A[Pe];if(0>s(he,D))Pe<W&&0>s(ee,he)?(A[q]=ee,A[Pe]=D,q=Pe):(A[q]=he,A[Q]=D,q=Q);else if(Pe<W&&0>s(ee,D))A[q]=ee,A[Pe]=D,q=Pe;else break e}}return j}function s(A,j){var D=A.sortIndex-j.sortIndex;return D!==0?D:A.id-j.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,h=3,f=!1,g=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(A){for(var j=n(c);j!==null;){if(j.callback===null)r(c);else if(j.startTime<=A)r(c),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(c)}}function S(A){if(v=!1,w(A),!g)if(n(l)!==null)g=!0,U(k);else{var j=n(c);j!==null&&G(S,j.startTime-A)}}function k(A,j){g=!1,v&&(v=!1,m(T),T=-1),f=!0;var D=h;try{for(w(j),d=n(l);d!==null&&(!(d.expirationTime>j)||A&&!N());){var q=d.callback;if(typeof q=="function"){d.callback=null,h=d.priorityLevel;var W=q(d.expirationTime<=j);j=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(l)&&r(l),w(j)}else r(l);d=n(l)}if(d!==null)var Z=!0;else{var Q=n(c);Q!==null&&G(S,Q.startTime-j),Z=!1}return Z}finally{d=null,h=D,f=!1}}var E=!1,_=null,T=-1,C=5,P=-1;function N(){return!(e.unstable_now()-P<C)}function O(){if(_!==null){var A=e.unstable_now();P=A;var j=!0;try{j=_(!0,A)}finally{j?V():(E=!1,_=null)}}else E=!1}var V;if(typeof y=="function")V=function(){y(O)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,K=I.port2;I.port1.onmessage=O,V=function(){K.postMessage(null)}}else V=function(){x(O,0)};function U(A){_=A,E||(E=!0,V())}function G(A,j){T=x(function(){A(e.unstable_now())},j)}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(A){A.callback=null},e.unstable_continueExecution=function(){g||f||(g=!0,U(k))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(A){switch(h){case 1:case 2:case 3:var j=3;break;default:j=h}var D=h;h=j;try{return A()}finally{h=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,j){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var D=h;h=A;try{return j()}finally{h=D}},e.unstable_scheduleCallback=function(A,j,D){var q=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?q+D:q):D=q,A){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,A={id:u++,callback:j,priorityLevel:A,startTime:D,expirationTime:W,sortIndex:-1},D>q?(A.sortIndex=D,t(c,A),n(l)===null&&A===n(c)&&(v?(m(T),T=-1):v=!0,G(S,D-q))):(A.sortIndex=W,t(l,A),g||f||(g=!0,U(k))),A},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(A){var j=h;return function(){var D=h;h=j;try{return A.apply(this,arguments)}finally{h=D}}}})(Z0);X0.exports=Z0;var _E=X0.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 TE=b,Mt=_E;function L(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 ew=new Set,Ko={};function $s(e,t){Mi(e,t),Mi(e+"Capture",t)}function Mi(e,t){for(Ko[e]=t,e=0;e<t.length;e++)ew.add(t[e])}var nr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wd=Object.prototype.hasOwnProperty,CE=/^[: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]*$/,Um={},Bm={};function PE(e){return Wd.call(Bm,e)?!0:Wd.call(Um,e)?!1:CE.test(e)?Bm[e]=!0:(Um[e]=!0,!1)}function AE(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 jE(e,t,n,r){if(t===null||typeof t>"u"||AE(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 mt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ze[e]=new mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ze[t]=new mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ze[e]=new mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ze[e]=new mt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ze[e]=new mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ze[e]=new mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ze[e]=new mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ze[e]=new mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ze[e]=new mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var zf=/[\-:]([a-z])/g;function Hf(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(zf,Hf);Ze[t]=new mt(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(zf,Hf);Ze[t]=new mt(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(zf,Hf);Ze[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ze[e]=new mt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ze[e]=new mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wf(e,t,n,r){var s=Ze.hasOwnProperty(t)?Ze[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(jE(t,n,s,r)&&(n=null),r||s===null?PE(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 cr=TE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,el=Symbol.for("react.element"),ni=Symbol.for("react.portal"),ri=Symbol.for("react.fragment"),qf=Symbol.for("react.strict_mode"),qd=Symbol.for("react.profiler"),tw=Symbol.for("react.provider"),nw=Symbol.for("react.context"),Kf=Symbol.for("react.forward_ref"),Kd=Symbol.for("react.suspense"),Gd=Symbol.for("react.suspense_list"),Gf=Symbol.for("react.memo"),Sr=Symbol.for("react.lazy"),rw=Symbol.for("react.offscreen"),zm=Symbol.iterator;function lo(e){return e===null||typeof e!="object"?null:(e=zm&&e[zm]||e["@@iterator"],typeof e=="function"?e:null)}var Ce=Object.assign,qu;function bo(e){if(qu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qu=t&&t[1]||""}return` 34`+qu+e}var Ku=!1;function Gu(e,t){if(!e||Ku)return"";Ku=!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{Ku=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bo(e):""}function RE(e){switch(e.tag){case 5:return bo(e.type);case 16:return bo("Lazy");case 13:return bo("Suspense");case 19:return bo("SuspenseList");case 0:case 2:case 15:return e=Gu(e.type,!1),e;case 11:return e=Gu(e.type.render,!1),e;case 1:return e=Gu(e.type,!0),e;default:return""}}function Jd(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 ri:return"Fragment";case ni:return"Portal";case qd:return"Profiler";case qf:return"StrictMode";case Kd:return"Suspense";case Gd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nw:return(e.displayName||"Context")+".Consumer";case tw:return(e._context.displayName||"Context")+".Provider";case Kf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gf:return t=e.displayName||null,t!==null?t:Jd(e.type)||"Memo";case Sr:t=e._payload,e=e._init;try{return Jd(e(t))}catch{}}return null}function NE(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 Jd(t);case 8:return t===qf?"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 Wr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function OE(e){var t=sw(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 tl(e){e._valueTracker||(e._valueTracker=OE(e))}function iw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ic(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 Yd(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wr(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 ow(e,t){t=t.checked,t!=null&&Wf(e,"checked",t,!1)}function Qd(e,t){ow(e,t);var n=Wr(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")?Xd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xd(e,t.type,Wr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wm(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 Xd(e,t,n){(t!=="number"||ic(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var So=Array.isArray;function vi(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=""+Wr(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 Zd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return Ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(So(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Wr(n)}}function aw(e,t){var n=Wr(t.value),r=Wr(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 Km(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function lw(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 eh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?lw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var nl,cw=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(nl=nl||document.createElement("div"),nl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=nl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Go(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ao={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},IE=["Webkit","ms","Moz","O"];Object.keys(Ao).forEach(function(e){IE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ao[t]=Ao[e]})});function uw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ao.hasOwnProperty(e)&&Ao[e]?(""+t).trim():t+"px"}function dw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=uw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var LE=Ce({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 th(e,t){if(t){if(LE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function nh(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 rh=null;function Jf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sh=null,wi=null,xi=null;function Gm(e){if(e=Oa(e)){if(typeof sh!="function")throw Error(L(280));var t=e.stateNode;t&&(t=iu(t),sh(e.stateNode,e.type,t))}}function hw(e){wi?xi?xi.push(e):xi=[e]:wi=e}function fw(){if(wi){var e=wi,t=xi;if(xi=wi=null,Gm(e),t)for(e=0;e<t.length;e++)Gm(t[e])}}function pw(e,t){return e(t)}function mw(){}var Ju=!1;function gw(e,t,n){if(Ju)return e(t,n);Ju=!0;try{return pw(e,t,n)}finally{Ju=!1,(wi!==null||xi!==null)&&(mw(),fw())}}function Jo(e,t){var n=e.stateNode;if(n===null)return null;var r=iu(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(L(231,t,typeof n));return n}var ih=!1;if(nr)try{var co={};Object.defineProperty(co,"passive",{get:function(){ih=!0}}),window.addEventListener("test",co,co),window.removeEventListener("test",co,co)}catch{ih=!1}function ME(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 jo=!1,oc=null,ac=!1,oh=null,DE={onError:function(e){jo=!0,oc=e}};function $E(e,t,n,r,s,i,o,a,l){jo=!1,oc=null,ME.apply(DE,arguments)}function FE(e,t,n,r,s,i,o,a,l){if($E.apply(this,arguments),jo){if(jo){var c=oc;jo=!1,oc=null}else throw Error(L(198));ac||(ac=!0,oh=c)}}function Fs(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 yw(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 Jm(e){if(Fs(e)!==e)throw Error(L(188))}function VE(e){var t=e.alternate;if(!t){if(t=Fs(e),t===null)throw Error(L(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 Jm(s),e;if(i===r)return Jm(s),t;i=i.sibling}throw Error(L(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(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function vw(e){return e=VE(e),e!==null?ww(e):null}function ww(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ww(e);if(t!==null)return t;e=e.sibling}return null}var xw=Mt.unstable_scheduleCallback,Ym=Mt.unstable_cancelCallback,UE=Mt.unstable_shouldYield,BE=Mt.unstable_requestPaint,Oe=Mt.unstable_now,zE=Mt.unstable_getCurrentPriorityLevel,Yf=Mt.unstable_ImmediatePriority,bw=Mt.unstable_UserBlockingPriority,lc=Mt.unstable_NormalPriority,HE=Mt.unstable_LowPriority,Sw=Mt.unstable_IdlePriority,tu=null,Dn=null;function WE(e){if(Dn&&typeof Dn.onCommitFiberRoot=="function")try{Dn.onCommitFiberRoot(tu,e,void 0,(e.current.flags&128)===128)}catch{}}var mn=Math.clz32?Math.clz32:GE,qE=Math.log,KE=Math.LN2;function GE(e){return e>>>=0,e===0?32:31-(qE(e)/KE|0)|0}var rl=64,sl=4194304;function ko(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 cc(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=ko(a):(i&=o,i!==0&&(r=ko(i)))}else o=n&~s,o!==0?r=ko(o):i!==0&&(r=ko(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-mn(t),s=1<<n,r|=e[n],t&=~s;return r}function JE(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 YE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-mn(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=JE(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function ah(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kw(){var e=rl;return rl<<=1,!(rl&4194240)&&(rl=64),e}function Yu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function Ra(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mn(t),e[t]=n}function QE(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-mn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Qf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-mn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ce=0;function Ew(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var _w,Xf,Tw,Cw,Pw,lh=!1,il=[],Dr=null,$r=null,Fr=null,Yo=new Map,Qo=new Map,Er=[],XE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Qm(e,t){switch(e){case"focusin":case"focusout":Dr=null;break;case"dragenter":case"dragleave":$r=null;break;case"mouseover":case"mouseout":Fr=null;break;case"pointerover":case"pointerout":Yo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qo.delete(t.pointerId)}}function uo(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=Oa(t),t!==null&&Xf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function ZE(e,t,n,r,s){switch(t){case"focusin":return Dr=uo(Dr,e,t,n,r,s),!0;case"dragenter":return $r=uo($r,e,t,n,r,s),!0;case"mouseover":return Fr=uo(Fr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Yo.set(i,uo(Yo.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Qo.set(i,uo(Qo.get(i)||null,e,t,n,r,s)),!0}return!1}function Aw(e){var t=ms(e.target);if(t!==null){var n=Fs(t);if(n!==null){if(t=n.tag,t===13){if(t=yw(n),t!==null){e.blockedOn=t,Pw(e.priority,function(){Tw(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 Ml(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ch(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rh=r,n.target.dispatchEvent(r),rh=null}else return t=Oa(n),t!==null&&Xf(t),e.blockedOn=n,!1;t.shift()}return!0}function Xm(e,t,n){Ml(e)&&n.delete(t)}function e_(){lh=!1,Dr!==null&&Ml(Dr)&&(Dr=null),$r!==null&&Ml($r)&&($r=null),Fr!==null&&Ml(Fr)&&(Fr=null),Yo.forEach(Xm),Qo.forEach(Xm)}function ho(e,t){e.blockedOn===t&&(e.blockedOn=null,lh||(lh=!0,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,e_)))}function Xo(e){function t(s){return ho(s,e)}if(0<il.length){ho(il[0],e);for(var n=1;n<il.length;n++){var r=il[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Dr!==null&&ho(Dr,e),$r!==null&&ho($r,e),Fr!==null&&ho(Fr,e),Yo.forEach(t),Qo.forEach(t),n=0;n<Er.length;n++)r=Er[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Er.length&&(n=Er[0],n.blockedOn===null);)Aw(n),n.blockedOn===null&&Er.shift()}var bi=cr.ReactCurrentBatchConfig,uc=!0;function t_(e,t,n,r){var s=ce,i=bi.transition;bi.transition=null;try{ce=1,Zf(e,t,n,r)}finally{ce=s,bi.transition=i}}function n_(e,t,n,r){var s=ce,i=bi.transition;bi.transition=null;try{ce=4,Zf(e,t,n,r)}finally{ce=s,bi.transition=i}}function Zf(e,t,n,r){if(uc){var s=ch(e,t,n,r);if(s===null)od(e,t,r,dc,n),Qm(e,r);else if(ZE(s,e,t,n,r))r.stopPropagation();else if(Qm(e,r),t&4&&-1<XE.indexOf(e)){for(;s!==null;){var i=Oa(s);if(i!==null&&_w(i),i=ch(e,t,n,r),i===null&&od(e,t,r,dc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else od(e,t,r,null,n)}}var dc=null;function ch(e,t,n,r){if(dc=null,e=Jf(r),e=ms(e),e!==null)if(t=Fs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=yw(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 dc=e,null}
vendor: 10,401 bytes, line 37
37function jw(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(zE()){case Yf:return 1;case bw:return 4;case lc:case HE:return 16;case Sw:return 536870912;default:return 16}default:return 16}}var Or=null,ep=null,Dl=null;function Rw(){if(Dl)return Dl;var e,t=ep,n=t.length,r,s="value"in Or?Or.value:Or.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 Dl=s.slice(e,1<r?1-r:void 0)}function $l(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 ol(){return!0}function Zm(){return!1}function $t(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)?ol:Zm,this.isPropagationStopped=Zm,this}return Ce(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=ol)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ol)},persist:function(){},isPersistent:ol}),t}var Ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tp=$t(Ji),Na=Ce({},Ji,{view:0,detail:0}),r_=$t(Na),Qu,Xu,fo,nu=Ce({},Na,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:np,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!==fo&&(fo&&e.type==="mousemove"?(Qu=e.screenX-fo.screenX,Xu=e.screenY-fo.screenY):Xu=Qu=0,fo=e),Qu)},movementY:function(e){return"movementY"in e?e.movementY:Xu}}),eg=$t(nu),s_=Ce({},nu,{dataTransfer:0}),i_=$t(s_),o_=Ce({},Na,{relatedTarget:0}),Zu=$t(o_),a_=Ce({},Ji,{animationName:0,elapsedTime:0,pseudoElement:0}),l_=$t(a_),c_=Ce({},Ji,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),u_=$t(c_),d_=Ce({},Ji,{data:0}),tg=$t(d_),h_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f_={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"},p_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=p_[e])?!!t[e]:!1}function np(){return m_}var g_=Ce({},Na,{key:function(e){if(e.key){var t=h_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$l(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?f_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:np,charCode:function(e){return e.type==="keypress"?$l(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$l(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),y_=$t(g_),v_=Ce({},nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ng=$t(v_),w_=Ce({},Na,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:np}),x_=$t(w_),b_=Ce({},Ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),S_=$t(b_),k_=Ce({},nu,{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}),E_=$t(k_),__=[9,13,27,32],rp=nr&&"CompositionEvent"in window,Ro=null;nr&&"documentMode"in document&&(Ro=document.documentMode);var T_=nr&&"TextEvent"in window&&!Ro,Nw=nr&&(!rp||Ro&&8<Ro&&11>=Ro),rg=" ",sg=!1;function Ow(e,t){switch(e){case"keyup":return __.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Iw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var si=!1;function C_(e,t){switch(e){case"compositionend":return Iw(t);case"keypress":return t.which!==32?null:(sg=!0,rg);case"textInput":return e=t.data,e===rg&&sg?null:e;default:return null}}function P_(e,t){if(si)return e==="compositionend"||!rp&&Ow(e,t)?(e=Rw(),Dl=ep=Or=null,si=!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 Nw&&t.locale!=="ko"?null:t.data;default:return null}}var A_={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 ig(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!A_[e.type]:t==="textarea"}function Lw(e,t,n,r){hw(r),t=hc(t,"onChange"),0<t.length&&(n=new tp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var No=null,Zo=null;function j_(e){qw(e,0)}function ru(e){var t=ai(e);if(iw(t))return e}function R_(e,t){if(e==="change")return t}var Mw=!1;if(nr){var ed;if(nr){var td="oninput"in document;if(!td){var og=document.createElement("div");og.setAttribute("oninput","return;"),td=typeof og.oninput=="function"}ed=td}else ed=!1;Mw=ed&&(!document.documentMode||9<document.documentMode)}function ag(){No&&(No.detachEvent("onpropertychange",Dw),Zo=No=null)}function Dw(e){if(e.propertyName==="value"&&ru(Zo)){var t=[];Lw(t,Zo,e,Jf(e)),gw(j_,t)}}function N_(e,t,n){e==="focusin"?(ag(),No=t,Zo=n,No.attachEvent("onpropertychange",Dw)):e==="focusout"&&ag()}function O_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ru(Zo)}function I_(e,t){if(e==="click")return ru(t)}function L_(e,t){if(e==="input"||e==="change")return ru(t)}function M_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wn=typeof Object.is=="function"?Object.is:M_;function ea(e,t){if(wn(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(!Wd.call(t,s)||!wn(e[s],t[s]))return!1}return!0}function lg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cg(e,t){var n=lg(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=lg(n)}}function $w(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$w(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fw(){for(var e=window,t=ic();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ic(e.document)}return t}function sp(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 D_(e){var t=Fw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$w(n.ownerDocument.documentElement,n)){if(r!==null&&sp(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=cg(n,i);var o=cg(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 $_=nr&&"documentMode"in document&&11>=document.documentMode,ii=null,uh=null,Oo=null,dh=!1;function ug(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dh||ii==null||ii!==ic(r)||(r=ii,"selectionStart"in r&&sp(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: 3,150 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Oo&&ea(Oo,r)||(Oo=r,r=hc(uh,"onSelect"),0<r.length&&(t=new tp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ii)))}function al(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var oi={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionend:al("Transition","TransitionEnd")},nd={},Vw={};nr&&(Vw=document.createElement("div").style,"AnimationEvent"in window||(delete oi.animationend.animation,delete oi.animationiteration.animation,delete oi.animationstart.animation),"TransitionEvent"in window||delete oi.transitionend.transition);function su(e){if(nd[e])return nd[e];if(!oi[e])return e;var t=oi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vw)return nd[e]=t[n];return e}var Uw=su("animationend"),Bw=su("animationiteration"),zw=su("animationstart"),Hw=su("transitionend"),Ww=new Map,dg="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 ts(e,t){Ww.set(e,t),$s(t,[e])}for(var rd=0;rd<dg.length;rd++){var sd=dg[rd],F_=sd.toLowerCase(),V_=sd[0].toUpperCase()+sd.slice(1);ts(F_,"on"+V_)}ts(Uw,"onAnimationEnd");ts(Bw,"onAnimationIteration");ts(zw,"onAnimationStart");ts("dblclick","onDoubleClick");ts("focusin","onFocus");ts("focusout","onBlur");ts(Hw,"onTransitionEnd");Mi("onMouseEnter",["mouseout","mouseover"]);Mi("onMouseLeave",["mouseout","mouseover"]);Mi("onPointerEnter",["pointerout","pointerover"]);Mi("onPointerLeave",["pointerout","pointerover"]);$s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$s("onBeforeInput",["compositionend","keypress","textInput","paste"]);$s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Eo="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(" "),U_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Eo));function hg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,FE(r,t,void 0,e),e.currentTarget=null}
vendor: 4,274 bytes, line 37
37function qw(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(ac)throw e=oh,ac=!1,oh=null,e}function ye(e,t){var n=t[gh];n===void 0&&(n=t[gh]=new Set);var r=e+"__bubble";n.has(r)||(Kw(t,e,2,!1),n.add(r))}function id(e,t,n){var r=0;t&&(r|=4),Kw(n,e,r,t)}var ll="_reactListening"+Math.random().toString(36).slice(2);function ta(e){if(!e[ll]){e[ll]=!0,ew.forEach(function(n){n!=="selectionchange"&&(U_.has(n)||id(n,!1,e),id(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ll]||(t[ll]=!0,id("selectionchange",!1,t))}}function Kw(e,t,n,r){switch(jw(t)){case 1:var s=t_;break;case 4:s=n_;break;default:s=Zf}n=s.bind(null,t,n,e),s=void 0,!ih||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 od(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=ms(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}gw(function(){var c=i,u=Jf(n),d=[];e:{var h=Ww.get(e);if(h!==void 0){var f=tp,g=e;switch(e){case"keypress":if($l(n)===0)break e;case"keydown":case"keyup":f=y_;break;case"focusin":g="focus",f=Zu;break;case"focusout":g="blur",f=Zu;break;case"beforeblur":case"afterblur":f=Zu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=eg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=i_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=x_;break;case Uw:case Bw:case zw:f=l_;break;case Hw:f=S_;break;case"scroll":f=r_;break;case"wheel":f=E_;break;case"copy":case"cut":case"paste":f=u_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=ng}var v=(t&4)!==0,x=!v&&e==="scroll",m=v?h!==null?h+"Capture":null:h;v=[];for(var y=c,w;y!==null;){w=y;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,m!==null&&(S=Jo(y,m),S!=null&&v.push(na(y,S,w)))),x)break;y=y.return}0<v.length&&(h=new f(h,g,null,n,u),d.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&n!==rh&&(g=n.relatedTarget||n.fromElement)&&(ms(g)||g[rr]))break e;if((f||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,f?(g=n.relatedTarget||n.toElement,f=c,g=g?ms(g):null,g!==null&&(x=Fs(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(f=null,g=c),f!==g)){if(v=eg,S="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=ng,S="onPointerLeave",m="onPointerEnter",y="pointer"),x=f==null?h:ai(f),w=g==null?h:ai(g),h=new v(S,y+"leave",f,n,u),h.target=x,h.relatedTarget=w,S=null,ms(u)===c&&(v=new v(m,y+"enter",g,n,u),v.target=w,v.relatedTarget=x,S=v),x=S,f&&g)t:{for(v=f,m=g,y=0,w=v;w;w=zs(w))y++;for(w=0,S=m;S;S=zs(S))w++;for(;0<y-w;)v=zs(v),y--;for(;0<w-y;)m=zs(m),w--;for(;y--;){if(v===m||m!==null&&v===m.alternate)break t;v=zs(v),m=zs(m)}v=null}else v=null;f!==null&&fg(d,h,f,v,!1),g!==null&&x!==null&&fg(d,x,g,v,!0)}}e:{if(h=c?ai(c):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var k=R_;else if(ig(h))if(Mw)k=L_;else{k=O_;var E=N_}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=I_);if(k&&(k=k(e,c))){Lw(d,k,n,u);break e}E&&E(e,h,c),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&Xd(h,"number",h.value)}
vendor: 5,285 bytes, lines 37-38
37switch(E=c?ai(c):window,e){case"focusin":(ig(E)||E.contentEditable==="true")&&(ii=E,uh=c,Oo=null);break;case"focusout":Oo=uh=ii=null;break;case"mousedown":dh=!0;break;case"contextmenu":case"mouseup":case"dragend":dh=!1,ug(d,n,u);break;case"selectionchange":if($_)break;case"keydown":case"keyup":ug(d,n,u)}var _;if(rp)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 si?Ow(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Nw&&n.locale!=="ko"&&(si||T!=="onCompositionStart"?T==="onCompositionEnd"&&si&&(_=Rw()):(Or=u,ep="value"in Or?Or.value:Or.textContent,si=!0)),E=hc(c,T),0<E.length&&(T=new tg(T,e,null,n,u),d.push({event:T,listeners:E}),_?T.data=_:(_=Iw(n),_!==null&&(T.data=_)))),(_=T_?C_(e,n):P_(e,n))&&(c=hc(c,"onBeforeInput"),0<c.length&&(u=new tg("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=_))}qw(d,t)})}function na(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hc(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Jo(e,n),i!=null&&r.unshift(na(e,i,s)),i=Jo(e,t),i!=null&&r.push(na(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 fg(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=Jo(n,i),l!=null&&o.unshift(na(n,l,a))):s||(l=Jo(n,i),l!=null&&o.push(na(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var B_=/\r\n?/g,z_=/\u0000|\uFFFD/g;function pg(e){return(typeof e=="string"?e:""+e).replace(B_,` 38`).replace(z_,"")}function cl(e,t,n){if(t=pg(t),pg(e)!==t&&n)throw Error(L(425))}function fc(){}var hh=null,fh=null;function ph(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 mh=typeof setTimeout=="function"?setTimeout:void 0,H_=typeof clearTimeout=="function"?clearTimeout:void 0,mg=typeof Promise=="function"?Promise:void 0,W_=typeof queueMicrotask=="function"?queueMicrotask:typeof mg<"u"?function(e){return mg.resolve(null).then(e).catch(q_)}:mh;function q_(e){setTimeout(function(){throw e})}function ad(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),Xo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Xo(t)}function Vr(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 gg(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 Yi=Math.random().toString(36).slice(2),Mn="__reactFiber$"+Yi,ra="__reactProps$"+Yi,rr="__reactContainer$"+Yi,gh="__reactEvents$"+Yi,K_="__reactListeners$"+Yi,G_="__reactHandles$"+Yi;function ms(e){var t=e[Mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rr]||n[Mn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gg(e);e!==null;){if(n=e[Mn])return n;e=gg(e)}return t}e=n,n=e.parentNode}return null}function Oa(e){return e=e[Mn]||e[rr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ai(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function iu(e){return e[ra]||null}var yh=[],li=-1;function ns(e){return{current:e}}function we(e){0>li||(e.current=yh[li],yh[li]=null,li--)}function pe(e,t){li++,yh[li]=e.current,e.current=t}var qr={},it=ns(qr),St=ns(!1),Rs=qr;function Di(e,t){var n=e.type.contextTypes;if(!n)return qr;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 kt(e){return e=e.childContextTypes,e!=null}function pc(){we(St),we(it)}function yg(e,t,n){if(it.current!==qr)throw Error(L(168));pe(it,t),pe(St,n)}function Gw(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(L(108,NE(e)||"Unknown",s));return Ce({},n,r)}function mc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qr,Rs=it.current,pe(it,e),pe(St,St.current),!0}function vg(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Gw(e,t,Rs),r.__reactInternalMemoizedMergedChildContext=e,we(St),we(it),pe(it,e)):we(St),pe(St,n)}var Qn=null,ou=!1,ld=!1;function Jw(e){Qn===null?Qn=[e]:Qn.push(e)}function J_(e){ou=!0,Jw(e)}function rs(){if(!ld&&Qn!==null){ld=!0;var e=0,t=ce;try{var n=Qn;for(ce=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Qn=null,ou=!1}catch(s){throw Qn!==null&&(Qn=Qn.slice(e+1)),xw(Yf,rs),s}finally{ce=t,ld=!1}}return null}var ci=[],ui=0,gc=null,yc=0,Bt=[],zt=0,Ns=null,Zn=1,er="";function ds(e,t){ci[ui++]=yc,ci[ui++]=gc,gc=e,yc=t}
vendor: 13,905 bytes, line 38
38function Yw(e,t,n){Bt[zt++]=Zn,Bt[zt++]=er,Bt[zt++]=Ns,Ns=e;var r=Zn;e=er;var s=32-mn(r)-1;r&=~(1<<s),n+=1;var i=32-mn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Zn=1<<32-mn(t)+s|n<<s|r,er=i+e}else Zn=1<<i|n<<s|r,er=e}function ip(e){e.return!==null&&(ds(e,1),Yw(e,1,0))}function op(e){for(;e===gc;)gc=ci[--ui],ci[ui]=null,yc=ci[--ui],ci[ui]=null;for(;e===Ns;)Ns=Bt[--zt],Bt[zt]=null,er=Bt[--zt],Bt[zt]=null,Zn=Bt[--zt],Bt[zt]=null}var It=null,Ot=null,Se=!1,fn=null;function Qw(e,t){var n=Ht(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 wg(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,It=e,Ot=Vr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,It=e,Ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ns!==null?{id:Zn,overflow:er}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,It=e,Ot=null,!0):!1;default:return!1}}function vh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wh(e){if(Se){var t=Ot;if(t){var n=t;if(!wg(e,t)){if(vh(e))throw Error(L(418));t=Vr(n.nextSibling);var r=It;t&&wg(e,t)?Qw(r,n):(e.flags=e.flags&-4097|2,Se=!1,It=e)}}else{if(vh(e))throw Error(L(418));e.flags=e.flags&-4097|2,Se=!1,It=e}}}function xg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;It=e}function ul(e){if(e!==It)return!1;if(!Se)return xg(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ph(e.type,e.memoizedProps)),t&&(t=Ot)){if(vh(e))throw Xw(),Error(L(418));for(;t;)Qw(e,t),t=Vr(t.nextSibling)}if(xg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ot=Vr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ot=null}}else Ot=It?Vr(e.stateNode.nextSibling):null;return!0}function Xw(){for(var e=Ot;e;)e=Vr(e.nextSibling)}function $i(){Ot=It=null,Se=!1}function ap(e){fn===null?fn=[e]:fn.push(e)}var Y_=cr.ReactCurrentBatchConfig;function po(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(L(309));var r=n.stateNode}if(!r)throw Error(L(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(L(284));if(!n._owner)throw Error(L(290,e))}return e}function dl(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bg(e){var t=e._init;return t(e._payload)}function Zw(e){function t(m,y){if(e){var w=m.deletions;w===null?(m.deletions=[y],m.flags|=16):w.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function s(m,y){return m=Hr(m,y),m.index=0,m.sibling=null,m}function i(m,y,w){return m.index=w,e?(w=m.alternate,w!==null?(w=w.index,w<y?(m.flags|=2,y):w):(m.flags|=2,y)):(m.flags|=1048576,y)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,y,w,S){return y===null||y.tag!==6?(y=md(w,m.mode,S),y.return=m,y):(y=s(y,w),y.return=m,y)}function l(m,y,w,S){var k=w.type;return k===ri?u(m,y,w.props.children,S,w.key):y!==null&&(y.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Sr&&bg(k)===y.type)?(S=s(y,w.props),S.ref=po(m,y,w),S.return=m,S):(S=Wl(w.type,w.key,w.props,null,m.mode,S),S.ref=po(m,y,w),S.return=m,S)}function c(m,y,w,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=gd(w,m.mode,S),y.return=m,y):(y=s(y,w.children||[]),y.return=m,y)}function u(m,y,w,S,k){return y===null||y.tag!==7?(y=Ps(w,m.mode,S,k),y.return=m,y):(y=s(y,w),y.return=m,y)}function d(m,y,w){if(typeof y=="string"&&y!==""||typeof y=="number")return y=md(""+y,m.mode,w),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case el:return w=Wl(y.type,y.key,y.props,null,m.mode,w),w.ref=po(m,null,y),w.return=m,w;case ni:return y=gd(y,m.mode,w),y.return=m,y;case Sr:var S=y._init;return d(m,S(y._payload),w)}if(So(y)||lo(y))return y=Ps(y,m.mode,w,null),y.return=m,y;dl(m,y)}return null}function h(m,y,w,S){var k=y!==null?y.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:a(m,y,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case el:return w.key===k?l(m,y,w,S):null;case ni:return w.key===k?c(m,y,w,S):null;case Sr:return k=w._init,h(m,y,k(w._payload),S)}if(So(w)||lo(w))return k!==null?null:u(m,y,w,S,null);dl(m,w)}return null}function f(m,y,w,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(w)||null,a(y,m,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case el:return m=m.get(S.key===null?w:S.key)||null,l(y,m,S,k);case ni:return m=m.get(S.key===null?w:S.key)||null,c(y,m,S,k);case Sr:var E=S._init;return f(m,y,w,E(S._payload),k)}if(So(S)||lo(S))return m=m.get(w)||null,u(y,m,S,k,null);dl(y,S)}return null}function g(m,y,w,S){for(var k=null,E=null,_=y,T=y=0,C=null;_!==null&&T<w.length;T++){_.index>T?(C=_,_=null):C=_.sibling;var P=h(m,_,w[T],S);if(P===null){_===null&&(_=C);break}e&&_&&P.alternate===null&&t(m,_),y=i(P,y,T),E===null?k=P:E.sibling=P,E=P,_=C}if(T===w.length)return n(m,_),Se&&ds(m,T),k;if(_===null){for(;T<w.length;T++)_=d(m,w[T],S),_!==null&&(y=i(_,y,T),E===null?k=_:E.sibling=_,E=_);return Se&&ds(m,T),k}for(_=r(m,_);T<w.length;T++)C=f(_,m,T,w[T],S),C!==null&&(e&&C.alternate!==null&&_.delete(C.key===null?T:C.key),y=i(C,y,T),E===null?k=C:E.sibling=C,E=C);return e&&_.forEach(function(N){return t(m,N)}),Se&&ds(m,T),k}function v(m,y,w,S){var k=lo(w);if(typeof k!="function")throw Error(L(150));if(w=k.call(w),w==null)throw Error(L(151));for(var E=k=null,_=y,T=y=0,C=null,P=w.next();_!==null&&!P.done;T++,P=w.next()){_.index>T?(C=_,_=null):C=_.sibling;var N=h(m,_,P.value,S);if(N===null){_===null&&(_=C);break}e&&_&&N.alternate===null&&t(m,_),y=i(N,y,T),E===null?k=N:E.sibling=N,E=N,_=C}if(P.done)return n(m,_),Se&&ds(m,T),k;if(_===null){for(;!P.done;T++,P=w.next())P=d(m,P.value,S),P!==null&&(y=i(P,y,T),E===null?k=P:E.sibling=P,E=P);return Se&&ds(m,T),k}for(_=r(m,_);!P.done;T++,P=w.next())P=f(_,m,T,P.value,S),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?T:P.key),y=i(P,y,T),E===null?k=P:E.sibling=P,E=P);return e&&_.forEach(function(O){return t(m,O)}),Se&&ds(m,T),k}function x(m,y,w,S){if(typeof w=="object"&&w!==null&&w.type===ri&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case el:e:{for(var k=w.key,E=y;E!==null;){if(E.key===k){if(k=w.type,k===ri){if(E.tag===7){n(m,E.sibling),y=s(E,w.props.children),y.return=m,m=y;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Sr&&bg(k)===E.type){n(m,E.sibling),y=s(E,w.props),y.ref=po(m,E,w),y.return=m,m=y;break e}n(m,E);break}else t(m,E);E=E.sibling}w.type===ri?(y=Ps(w.props.children,m.mode,S,w.key),y.return=m,m=y):(S=Wl(w.type,w.key,w.props,null,m.mode,S),S.ref=po(m,y,w),S.return=m,m=S)}return o(m);case ni:e:{for(E=w.key;y!==null;){if(y.key===E)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(m,y.sibling),y=s(y,w.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=gd(w,m.mode,S),y.return=m,m=y}return o(m);case Sr:return E=w._init,x(m,y,E(w._payload),S)}if(So(w))return g(m,y,w,S);if(lo(w))return v(m,y,w,S);dl(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(m,y.sibling),y=s(y,w),y.return=m,m=y):(n(m,y),y=md(w,m.mode,S),y.return=m,m=y),o(m)):n(m,y)}return x}var Fi=Zw(!0),ex=Zw(!1),vc=ns(null),wc=null,di=null,lp=null;function cp(){lp=di=wc=null}function up(e){var t=vc.current;we(vc),e._currentValue=t}function xh(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 Si(e,t){wc=e,lp=di=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(bt=!0),e.firstContext=null)}function Gt(e){var t=e._currentValue;if(lp!==e)if(e={context:e,memoizedValue:t,next:null},di===null){if(wc===null)throw Error(L(308));di=e,wc.dependencies={lanes:0,firstContext:e}}else di=di.next=e;return t}var gs=null;function dp(e){gs===null?gs=[e]:gs.push(e)}function tx(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,dp(t)):(n.next=s.next,s.next=n),t.interleaved=n,sr(e,r)}function sr(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 kr=!1;function hp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nx(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 tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ur(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,sr(e,n)}return s=r.interleaved,s===null?(t.next=t,dp(r)):(t.next=s.next,s.next=t),r.interleaved=t,sr(e,n)}function Fl(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,Qf(e,n)}}function Sg(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 xc(e,t,n,r){var s=e.updateQueue;kr=!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 h=a.lane,f=a.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,v=a;switch(h=t,f=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){d=g.call(f,d,h);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,h=typeof g=="function"?g.call(f,d,h):g,h==null)break e;d=Ce({},d,h);break e;case 2:kr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=f,l=d):u=u.next=f,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(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);Is|=o,e.lanes=o,e.memoizedState=d}}function kg(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(L(191,s));s.call(r)}}}var Ia={},$n=ns(Ia),sa=ns(Ia),ia=ns(Ia);function ys(e){if(e===Ia)throw Error(L(174));return e}function fp(e,t){switch(pe(ia,t),pe(sa,e),pe($n,Ia),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=eh(t,e)}we($n),pe($n,t)}function Vi(){we($n),we(sa),we(ia)}function rx(e){ys(ia.current);var t=ys($n.current),n=eh(t,e.type);t!==n&&(pe(sa,e),pe($n,n))}function pp(e){sa.current===e&&(we($n),we(sa))}var Ee=ns(0);function bc(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 cd=[];function mp(){for(var e=0;e<cd.length;e++)cd[e]._workInProgressVersionPrimary=null;cd.length=0}var Vl=cr.ReactCurrentDispatcher,ud=cr.ReactCurrentBatchConfig,Os=0,Te=null,Ve=null,We=null,Sc=!1,Io=!1,oa=0,Q_=0;function tt(){throw Error(L(321))}function gp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wn(e[n],t[n]))return!1;return!0}function yp(e,t,n,r,s,i){if(Os=i,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vl.current=e===null||e.memoizedState===null?tT:nT,e=n(r,s),Io){i=0;do{if(Io=!1,oa=0,25<=i)throw Error(L(301));i+=1,We=Ve=null,t.updateQueue=null,Vl.current=rT,e=n(r,s)}while(Io)}if(Vl.current=kc,t=Ve!==null&&Ve.next!==null,Os=0,We=Ve=Te=null,Sc=!1,t)throw Error(L(300));return e}function vp(){var e=oa!==0;return oa=0,e}function Pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Te.memoizedState=We=e:We=We.next=e,We}
vendor: 7,661 bytes, line 38
38function Jt(){if(Ve===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=We===null?Te.memoizedState:We.next;if(t!==null)We=t,Ve=e;else{if(e===null)throw Error(L(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},We===null?Te.memoizedState=We=e:We=We.next=e}return We}function aa(e,t){return typeof t=="function"?t(e):t}function dd(e){var t=Jt(),n=t.queue;if(n===null)throw Error(L(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((Os&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,Te.lanes|=u,Is|=u}c=c.next}while(c!==null&&c!==i);l===null?o=r:l.next=a,wn(r,t.memoizedState)||(bt=!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,Te.lanes|=i,Is|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function hd(e){var t=Jt(),n=t.queue;if(n===null)throw Error(L(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);wn(i,t.memoizedState)||(bt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function sx(){}function ix(e,t){var n=Te,r=Jt(),s=t(),i=!wn(r.memoizedState,s);if(i&&(r.memoizedState=s,bt=!0),r=r.queue,wp(lx.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||We!==null&&We.memoizedState.tag&1){if(n.flags|=2048,la(9,ax.bind(null,n,r,s,t),void 0,null),qe===null)throw Error(L(349));Os&30||ox(n,t,s)}return s}function ox(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ax(e,t,n,r){t.value=n,t.getSnapshot=r,cx(t)&&ux(e)}function lx(e,t,n){return n(function(){cx(t)&&ux(e)})}function cx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wn(e,n)}catch{return!0}}function ux(e){var t=sr(e,1);t!==null&&gn(t,e,1,-1)}function Eg(e){var t=Pn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t.queue=e,e=e.dispatch=eT.bind(null,Te,e),[t.memoizedState,e]}function la(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.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 dx(){return Jt().memoizedState}function Ul(e,t,n,r){var s=Pn();Te.flags|=e,s.memoizedState=la(1|t,n,void 0,r===void 0?null:r)}function au(e,t,n,r){var s=Jt();r=r===void 0?null:r;var i=void 0;if(Ve!==null){var o=Ve.memoizedState;if(i=o.destroy,r!==null&&gp(r,o.deps)){s.memoizedState=la(t,n,i,r);return}}Te.flags|=e,s.memoizedState=la(1|t,n,i,r)}function _g(e,t){return Ul(8390656,8,e,t)}function wp(e,t){return au(2048,8,e,t)}function hx(e,t){return au(4,2,e,t)}function fx(e,t){return au(4,4,e,t)}function px(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 mx(e,t,n){return n=n!=null?n.concat([e]):null,au(4,4,px.bind(null,t,e),n)}function xp(){}function gx(e,t){var n=Jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function yx(e,t){var n=Jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vx(e,t,n){return Os&21?(wn(n,t)||(n=kw(),Te.lanes|=n,Is|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bt=!0),e.memoizedState=n)}function X_(e,t){var n=ce;ce=n!==0&&4>n?n:4,e(!0);var r=ud.transition;ud.transition={};try{e(!1),t()}finally{ce=n,ud.transition=r}}function wx(){return Jt().memoizedState}function Z_(e,t,n){var r=zr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xx(e))bx(t,n);else if(n=tx(e,t,n,r),n!==null){var s=ft();gn(n,e,r,s),Sx(n,t,r)}}function eT(e,t,n){var r=zr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xx(e))bx(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,wn(a,o)){var l=t.interleaved;l===null?(s.next=s,dp(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=tx(e,t,s,r),n!==null&&(s=ft(),gn(n,e,r,s),Sx(n,t,r))}}function xx(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function bx(e,t){Io=Sc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qf(e,n)}}var kc={readContext:Gt,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},tT={readContext:Gt,useCallback:function(e,t){return Pn().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:_g,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ul(4194308,4,px.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ul(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ul(4,2,e,t)},useMemo:function(e,t){var n=Pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pn();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=Z_.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Pn();return e={current:e},t.memoizedState=e},useState:Eg,useDebugValue:xp,useDeferredValue:function(e){return Pn().memoizedState=e},useTransition:function(){var e=Eg(!1),t=e[0];return e=X_.bind(null,e[1]),Pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,s=Pn();if(Se){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),qe===null)throw Error(L(349));Os&30||ox(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,_g(lx.bind(null,r,i,e),[e]),r.flags|=2048,la(9,ax.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pn(),t=qe.identifierPrefix;if(Se){var n=er,r=Zn;n=(r&~(1<<32-mn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=oa++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Q_++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},nT={readContext:Gt,useCallback:gx,useContext:Gt,useEffect:wp,useImperativeHandle:mx,useInsertionEffect:hx,useLayoutEffect:fx,useMemo:yx,useReducer:dd,useRef:dx,useState:function(){return dd(aa)},useDebugValue:xp,useDeferredValue:function(e){var t=Jt();return vx(t,Ve.memoizedState,e)},useTransition:function(){var e=dd(aa)[0],t=Jt().memoizedState;return[e,t]},useMutableSource:sx,useSyncExternalStore:ix,useId:wx,unstable_isNewReconciler:!1},rT={readContext:Gt,useCallback:gx,useContext:Gt,useEffect:wp,useImperativeHandle:mx,useInsertionEffect:hx,useLayoutEffect:fx,useMemo:yx,useReducer:hd,useRef:dx,use
vendor: 4,079 bytes, lines 38-40
38State:function(){return hd(aa)},useDebugValue:xp,useDeferredValue:function(e){var t=Jt();return Ve===null?t.memoizedState=e:vx(t,Ve.memoizedState,e)},useTransition:function(){var e=hd(aa)[0],t=Jt().memoizedState;return[e,t]},useMutableSource:sx,useSyncExternalStore:ix,useId:wx,unstable_isNewReconciler:!1};function an(e,t){if(e&&e.defaultProps){t=Ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function bh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var lu={isMounted:function(e){return(e=e._reactInternals)?Fs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ft(),s=zr(e),i=tr(r,s);i.payload=t,n!=null&&(i.callback=n),t=Ur(e,i,s),t!==null&&(gn(t,e,s,r),Fl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ft(),s=zr(e),i=tr(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ur(e,i,s),t!==null&&(gn(t,e,s,r),Fl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ft(),r=zr(e),s=tr(n,r);s.tag=2,t!=null&&(s.callback=t),t=Ur(e,s,r),t!==null&&(gn(t,e,r,n),Fl(t,e,r))}};function Tg(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?!ea(n,r)||!ea(s,i):!0}function kx(e,t,n){var r=!1,s=qr,i=t.contextType;return typeof i=="object"&&i!==null?i=Gt(i):(s=kt(t)?Rs:it.current,r=t.contextTypes,i=(r=r!=null)?Di(e,s):qr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=lu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Cg(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&&lu.enqueueReplaceState(t,t.state,null)}function Sh(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},hp(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Gt(i):(i=kt(t)?Rs:it.current,s.context=Di(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(bh(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&&lu.enqueueReplaceState(s,s.state,null),xc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ui(e,t){try{var n="",r=t;do n+=RE(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 fd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function kh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var sT=typeof WeakMap=="function"?WeakMap:Map;function Ex(e,t,n){n=tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_c||(_c=!0,Oh=r),kh(e,t)},n}function _x(e,t,n){n=tr(-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(){kh(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){kh(e,t),typeof r!="function"&&(Br===null?Br=new Set([this]):Br.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Pg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new sT;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=vT.bind(null,e,t,n),t.then(e,e))}function Ag(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 jg(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=tr(-1,1),t.tag=2,Ur(n,t,1))),n.lanes|=1),e)}var iT=cr.ReactCurrentOwner,bt=!1;function ct(e,t,n,r){t.child=e===null?ex(t,null,n,r):Fi(t,e.child,n,r)}function Rg(e,t,n,r,s){n=n.render;var i=t.ref;return Si(t,s),r=yp(e,t,n,r,i,s),n=vp(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,ir(e,t,s)):(Se&&n&&ip(t),t.flags|=1,ct(e,t,r,s),t.child)}function Ng(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Pp(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Tx(e,t,i,r,s)):(e=Wl(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:ea,n(o,r)&&e.ref===t.ref)return ir(e,t,s)}return t.flags|=1,e=Hr(i,r),e.ref=t.ref,e.return=t,t.child=e}function Tx(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(ea(i,r)&&e.ref===t.ref)if(bt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(bt=!0);else return t.lanes=e.lanes,ir(e,t,s)}return Eh(e,t,n,r,s)}function Cx(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},pe(fi,jt),jt|=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,pe(fi,jt),jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,pe(fi,jt),jt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,pe(fi,jt),jt|=r;return ct(e,t,s,n),t.child}function Px(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Eh(e,t,n,r,s){var i=kt(n)?Rs:it.current;return i=Di(t,i),Si(t,s),n=yp(e,t,n,r,i,s),r=vp(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,ir(e,t,s)):(Se&&r&&ip(t),t.flags|=1,ct(e,t,n,s),t.child)}function Og(e,t,n,r,s){if(kt(n)){var i=!0;mc(t)}else i=!1;if(Si(t,s),t.stateNode===null)Bl(e,t),kx(t,n,r),Sh(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=Gt(c):(c=kt(n)?Rs:it.current,c=Di(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)&&Cg(t,o,r,c),kr=!1;var h=t.memoizedState;o.state=h,xc(t,r,o,s),l=t.memoizedState,a!==r||h!==l||St.current||kr?(typeof u=="function"&&(bh(t,n,u,r),l=t.memoizedState),(a=kr||Tg(t,n,a,r,h,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,nx(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:an(t.type,a),o.props=c,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Gt(l):(l=kt(n)?Rs:it.current,l=Di(t,l));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Cg(t,o,r,l),kr=!1,h=t.memoizedState,o.state=h,xc(t,r,o,s);var g=t.memoizedState;a!==d||h!==g||St.current||kr?(typeof f=="function"&&(bh(t,n,f,r),g=t.memoizedState),(c=kr||Tg(t,n,c,r,h,g,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return _h(e,t,n,r,i,s)}function _h(e,t,n,r,s,i){Px(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&vg(t,n,!1),ir(e,t,i);r=t.stateNode,iT.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Fi(t,e.child,null,i),t.child=Fi(t,null,a,i)):ct(e,t,a,i),t.memoizedState=r.state,s&&vg(t,n,!0),t.child}function Ax(e){var t=e.stateNode;t.pendingContext?yg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yg(e,t.context,!1),fp(e,t.containerInfo)}function Ig(e,t,n,r,s){return $i(),ap(s),t.flags|=256,ct(e,t,n,r),t.child}var Th={dehydrated:null,treeContext:null,retryLane:0};function Ch(e){return{baseLanes:e,cachePool:null,transitions:null}}function jx(e,t,n){var r=t.pendingProps,s=Ee.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),pe(Ee,s&1),e===null)return wh(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=du(o,r,0,null),e=Ps(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ch(n),t.memoizedState=Th,e):bp(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return oT(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=Hr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Hr(a,i):(i=Ps(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?Ch(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Th,r}return i=e.child,e=i.sibling,r=Hr(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 bp(e,t){return t=du({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hl(e,t,n,r){return r!==null&&ap(r),Fi(t,e.child,null,n),e=bp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oT(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=fd(Error(L(422))),hl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=du({mode:"visible",children:r.children},s,0,null),i=Ps(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Fi(t,e.child,null,o),t.child.memoizedState=Ch(o),t.memoizedState=Th,i);if(!(t.mode&1))return hl(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(L(419)),r=fd(i,r,void 0),hl(e,t,o,r)}if(a=(o&e.childLanes)!==0,bt||a){if(r=qe,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,sr(e,s),gn(r,e,s,-1))}return Cp(),r=fd(Error(L(421))),hl(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=wT.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Ot=Vr(s.nextSibling),It=t,Se=!0,fn=null,e!==null&&(Bt[zt++]=Zn,Bt[zt++]=er,Bt[zt++]=Ns,Zn=e.id,er=e.overflow,Ns=t),t=bp(t,r.children),t.flags|=4096,t)}function Lg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xh(e.return,t,n)}function pd(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 Rx(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(ct(e,t,r.children,n),r=Ee.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&&Lg(e,n,t);else if(e.tag===19)Lg(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(pe(Ee,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&&bc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),pd(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&&bc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}pd(t,!0,n,null,i);break;case"together":pd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ir(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Is|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));
vendor: 4,746 bytes, line 40
40if(t.child!==null){for(e=t.child,n=Hr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function aT(e,t,n){switch(t.tag){case 3:Ax(t),$i();break;case 5:rx(t);break;case 1:kt(t.type)&&mc(t);break;case 4:fp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;pe(vc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(Ee,Ee.current&1),t.flags|=128,null):n&t.child.childLanes?jx(e,t,n):(pe(Ee,Ee.current&1),e=ir(e,t,n),e!==null?e.sibling:null);pe(Ee,Ee.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rx(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),pe(Ee,Ee.current),r)break;return null;case 22:case 23:return t.lanes=0,Cx(e,t,n)}return ir(e,t,n)}var Nx,Ph,Ox,Ix;Nx=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}};Ph=function(){};Ox=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ys($n.current);var i=null;switch(n){case"input":s=Yd(e,s),r=Yd(e,r),i=[];break;case"select":s=Ce({},s,{value:void 0}),r=Ce({},r,{value:void 0}),i=[];break;case"textarea":s=Zd(e,s),r=Zd(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=fc)}th(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"&&(Ko.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"&&(Ko.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ye("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)}};Ix=function(e,t,n,r){n!==r&&(t.flags|=4)};function mo(e,t){if(!Se)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 nt(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 lT(e,t,n){var r=t.pendingProps;switch(op(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return kt(t.type)&&pc(),nt(t),null;case 3:return r=t.stateNode,Vi(),we(St),we(it),mp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ul(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,fn!==null&&(Mh(fn),fn=null))),Ph(e,t),nt(t),null;case 5:pp(t);var s=ys(ia.current);if(n=t.type,e!==null&&t.stateNode!=null)Ox(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return nt(t),null}if(e=ys($n.current),ul(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Mn]=t,r[ra]=i,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(s=0;s<Eo.length;s++)ye(Eo[s],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":Hm(r,i),ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ye("invalid",r);break;case"textarea":qm(r,i),ye("invalid",r)}th(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&&cl(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&cl(r.textContent,a,e),s=["children",""+a]):Ko.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ye("scroll",r)}switch(n){case"input":tl(r),Wm(r,i,!0);break;case"textarea":tl(r),Km(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=fc)}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=lw(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[Mn]=t,e[ra]=r,Nx(e,t,!1,!1),t.stateNode=e;e:{switch(o=nh(n,r),n){case"dialog":ye("cancel",e),ye("close",e),s=r;break;case"iframe":case"object":case"embed":ye("load",e),s=r;break;case"video":case"audio":for(s=0;s<Eo.length;s++)ye(Eo[s],e);s=r;break;case"source":ye("error",e),s=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),s=r;break;case"details":ye("toggle",e),s=r;break;case"input":Hm(e,r),s=Yd(e,r),ye("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Ce({},r,{value:void 0}),ye("invalid",e);break;case"textarea":qm(e,r),s=Zd(e,r),ye("invalid",e);break;default:s=r}th(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?dw(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&cw(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Go(e,l):typeof l=="number"&&Go(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ko.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ye("scroll",e):l!=null&&Wf(e,i,l,o))}switch(n){case"input":tl(e),Wm(e,r,!1);break;case"textarea":tl(e),Km(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Wr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?vi(e,!!r.multiple,i,!1):r.defaultValue!=null&&vi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=fc)}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 nt(t),null;case 6:if(e&&t.stateNode!=null)Ix(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=ys(ia.current),ys($n.current),ul(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mn]=t,(i=r.nodeValue!==n)&&(e=It,e!==null))switch(e.tag){case 3:cl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&cl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Mn]=t,t.stateNode=r}return nt(t),null;case 13:if(we(Ee),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&Ot!==null&&t.mode&1&&!(t.flags&128))Xw(),$i(),t.flags|=98560,i=!1;else if(i=ul(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(L(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(L(317));i[Mn]=t}else $i(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;nt(t),i=!1}else fn!==null&&(Mh(fn),fn=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||Ee.current&1?Be===0&&(Be=3):Cp())),t.updateQueue!==null&&(t.flags|=4),nt(t),null);case 4:return Vi(),Ph(e,t),e===null&&ta(t.stateNode.containerInfo),nt(t),null;case 10:return up(t.type._context),nt(t),null;case 17:return kt(t.type)&&pc(),nt(t),null;case 19:if(we(Ee),i=t.memoizedState,i===null)return nt(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)mo(i,!1);else{if(Be!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=bc(e),o!==null){for(t.flags|=128,mo(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 pe(Ee,Ee.current&1|2),t.child}e=e.sibling}i.tail!==null&&Oe()>Bi&&(t.flags|=128,r=!0,mo(i,!1),t.lanes=4194304)}else{if(!r)if(e=bc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Se)return nt(t),null}else 2*Oe()-i.renderingStartTime>Bi&&n!==1073741824&&(t.flags|=128,r=!0,mo(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=Oe(),t.sibling=null,n=Ee.current,pe(Ee,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return Tp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?jt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function cT(e,t){switch(op(t),t.tag){case 1:return kt(t.type)&&pc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vi(),we(St),we(it),mp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pp(t),null;case 13:if(we(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Ee),null;case 4:return Vi(),null;case 10:return up(t.type._context),null;case 22:case 23:return Tp(),null;case 24:return null;default:return null}}var fl=!1,st=!1,uT=typeof WeakSet=="function"?WeakSet:Set,F=null;function hi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ne(e,t,r)}else n.current=null}function Ah(e,t,n){try{n()}catch(r){Ne(e,t,r)}}var Mg=!1;function dT(e,t){if(hh=uc,e=Fw(),sp(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,h=null;t:for(;;){for(var f;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===s&&(a=o),h===i&&++u===r&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fh={focusedElem:e,selectionRange:n},uc=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,x=g.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:an(t.type,v),x);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(S){Ne(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return g=Mg,Mg=!1,g}function Lo(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&&Ah(t,n,i)}s=s.next}while(s!==r)}}function cu(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 jh(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 Lx(e){var t=e.alternate;t!==null&&(e.alternate=null,Lx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mn],delete t[ra],delete t[gh],delete t[K_],delete t[G_])),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 Mx(e){return e.tag===5||e.tag===3||e.tag===4}function Dg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mx(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 Rh(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=fc));else if(r!==4&&(e=e.child,e!==null))for(Rh(e,t,n),e=e.sibling;e!==null;)Rh(e,t,n),e=e.sibling}function Nh(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(Nh(e,t,n),e=e.sibling;e!==null;)Nh(e,t,n),e=e.sibling}var Je=null,hn=!1;function gr(e,t,n){for(n=n.child;n!==null;)Dx(e,t,n),n=n.sibling}function Dx(e,t,n){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(tu,n)}catch{}switch(n.tag){case 5:st||hi(n,t);case 6:var r=Je,s=hn;Je=null,gr(e,t,n),Je=r,hn=s,Je!==null&&(hn?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(hn?(e=Je,n=n.stateNode,e.nodeType===8?ad(e.parentNode,n):e.nodeType===1&&ad(e,n),Xo(e)):ad(Je,n.stateNode));break;case 4:r=Je,s=hn,Je=n.stateNode.containerInfo,hn=!0,gr(e,t,n),Je=r,hn=s;break;case 0:case 11:case 14:case 15:if(!st&&(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)&&Ah(n,t,o),s=s.next}while(s!==r)}gr(e,t,n);break;case 1:if(!st&&(hi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ne(n,t,a)}gr(e,t,n);break;case 21:gr(e,t,n);break;case 22:n.mode&1?(st=(r=st)||n.memoizedState!==null,gr(e,t,n),st=r):gr(e,t,n);break;default:gr(e,t,n)}}function $g(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new uT),t.forEach(function(r){var s=xT.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function tn(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,hn=!1;break e;case 3:Je=a.stateNode.containerInfo,hn=!0;break e;case 4:Je=a.stateNode.containerInfo,hn=!0;break e}a=a.return}if(Je===null)throw Error(L(160));Dx(i,o,s),Je=null,hn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){Ne(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)$x(t,e),t=t.sibling}function $x(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(tn(t,e),Tn(e),r&4){try{Lo(3,e,e.return),cu(3,e)}catch(v){Ne(e,e.return,v)}try{Lo(5,e,e.return)}catch(v){Ne(e,e.return,v)}}break;case 1:tn(t,e),Tn(e),r&512&&n!==null&&hi(n,n.return);break;case 5:if(tn(t,e),Tn(e),r&512&&n!==null&&hi(n,n.return),e.flags&32){var s=e.stateNode;try{Go(s,"")}catch(v){Ne(e,e.return,v)}}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&&ow(s,i),nh(a,o);var c=nh(a,i);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?dw(s,d):u==="dangerouslySetInnerHTML"?cw(s,d):u==="children"?Go(s,d):Wf(s,u,d,c)}switch(a){case"input":Qd(s,i);break;case"textarea":aw(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?vi(s,!!i.multiple,f,!1):h!==!!i.multiple&&(i.defaultValue!=null?vi(s,!!i.multiple,i.defaultValue,!0):vi(s,!!i.multiple,i.multiple?[]:"",!1))}s[ra]=i}catch(v){Ne(e,e.return,v)}}break;case 6:if(tn(t,e),Tn(e),r&4){if(e.stateNode===null)throw Error(L(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(v){Ne(e,e.return,v)}}break;case 3:if(tn(t,e),Tn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xo(t.containerInfo)}catch(v){Ne(e,e.return,v)}break;case 4:tn(t,e),Tn(e);break;case 13:tn(t,e),Tn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Ep=Oe())),r&4&&$g(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(st=(c=st)||u,tn(t,e),st=c):tn(t,e),Tn(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(F=e,u=e.child;u!==null;){for(d=F=u;F!==null;){switch(h=F,f=h.child,h.tag){case 0:case 11:case 14:case 15:Lo(4,h,h.return);break;case 1:hi(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){Ne(r,n,v)}}break;case 5:hi(h,h.return);break;case 22:if(h.memoizedState!==null){Vg(d);continue}}f!==null?(f.return=h,F=f):Vg(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=uw("display",o))}catch(v){Ne(e,e.return,v)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){Ne(e,e.return,v)}}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:tn(t,e),Tn(e),r&4&&$g(e);break;case 21:break;default:tn(t,e),Tn(e)}}function Tn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Mx(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Go(s,""),r.flags&=-33);var i=Dg(e);Nh(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Dg(e);Rh(e,a,o);break;default:throw Error(L(161))}}catch(l){Ne(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hT(e,t,n){F=e,Fx(e)}function Fx(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var s=F,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||fl;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||st;a=fl;var c=st;if(fl=o,(st=l)&&!c)for(F=s;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?Ug(s):l!==null?(l.return=o,F=l):Ug(s);for(;i!==null;)F=i,Fx(i),i=i.sibling;F=s,fl=a,st=c}Fg(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,F=i):Fg(e)}}function Fg(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:st||cu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!st)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:an(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&kg(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}kg(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&&Xo(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}st||t.flags&512&&jh(t)}catch(h){Ne(t,t.return,h)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Vg(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Ug(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{cu(4,t)}catch(l){Ne(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Ne(t,s,l)}}var i=t.return;try{jh(t)}catch(l){Ne(t,i,l)}break;case 5:var o=t.return;try{jh(t)}catch(l){Ne(t,o,l)}}}catch(l){Ne(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var fT=Math.ceil,Ec=cr.ReactCurrentDispatcher,Sp=cr.ReactCurrentOwner,qt=cr.ReactCurrentBatchConfig,oe=0,qe=null,De=null,Xe=0,jt=0,fi=ns(0),Be=0,ca=null,Is=0,uu=0,kp=0,Mo=null,xt=null,Ep=0,Bi=1/0,Gn=null,_c=!1,Oh=null,Br=null,pl=!1,Ir=null,Tc=0,Do=0,Ih=null,zl=-1,Hl=0;function ft(){return oe&6?Oe():zl!==-1?zl:zl=Oe()}function zr(e){return e.mode&1?oe&2&&Xe!==0?Xe&-Xe:Y_.transition!==null?(Hl===0&&(Hl=kw()),Hl):(e=ce,e!==0||(e=window.event,e=e===void 0?16:jw(e.type)),e):1}function gn(e,t,n,r){if(50<Do)throw Do=0,Ih=null,Error(L(185));Ra(e,n,r),(!(oe&2)||e!==qe)&&(e===qe&&(!(oe&2)&&(uu|=n),Be===4&&_r(e,Xe)),Et(e,r),n===1&&oe===0&&!(t.mode&1)&&(Bi=Oe()+500,ou&&rs()))}function Et(e,t){var n=e.callbackNode;YE(e,t);var r=cc(e,e===qe?Xe:0);if(r===0)n!==null&&Ym(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ym(n),t===1)e.tag===0?J_(Bg.bind(null,e)):Jw(Bg.bind(null,e)),W_(function(){!(oe&6)&&rs()}),n=null;else{switch(Ew(r)){case 1:n=Yf;break;case 4:n=bw;break;case 16:n=lc;break;case 536870912:n=Sw;break;default:n=lc}n=Kx(n,Vx.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Vx(e,t){if(zl=-1,Hl=0,oe&6)throw Error(L(327));var n=e.callbackNode;if(ki()&&e.callbackNode!==n)return null;var r=cc(e,e===qe?Xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cc(e,r);else{t=r;var s=oe;oe|=2;var i=Bx();(qe!==e||Xe!==t)&&(Gn=null,Bi=Oe()+500,Cs(e,t));do try{gT();break}catch(a){Ux(e,a)}while(!0);cp(),Ec.current=i,oe=s,De!==null?t=0:(qe=null,Xe=0,t=Be)}if(t!==0){if(t===2&&(s=ah(e),s!==0&&(r=s,t=Lh(e,s))),t===1)throw n=ca,Cs(e,0),_r(e,r),Et(e,Oe()),n;if(t===6)_r(e,r);else{if(s=e.current.alternate,!(r&30)&&!pT(s)&&(t=Cc(e,r),t===2&&(i=ah(e),i!==0&&(r=i,t=Lh(e,i))),t===1))throw n=ca,Cs(e,0),_r(e,r),Et(e,Oe()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:hs(e,xt,Gn);break;case 3:if(_r(e,r),(r&130023424)===r&&(t=Ep+500-Oe(),10<t)){if(cc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ft(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=mh(hs.bind(null,e,xt,Gn),t);break}hs(e,xt,Gn);break;case 4:if(_r(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-mn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fT(r/1960))-r,10<r){e.timeoutHandle=mh(hs.bind(null,e,xt,Gn),r);break}hs(e,xt,Gn);break;case 5:hs(e,xt,Gn);break;default:throw Error(L(329))}}}return Et(e,Oe()),e.callbackNode===n?Vx.bind(null,e):null}function Lh(e,t){var n=Mo;return e.current.memoizedState.isDehydrated&&(Cs(e,t).flags|=256),e=Cc(e,t),e!==2&&(t=xt,xt=n,t!==null&&Mh(t)),e}function Mh(e){xt===null?xt=e:xt.push.apply(xt,e)}function pT(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(!wn(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 _r(e,t){for(t&=~kp,t&=~uu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-mn(t),r=1<<n;e[n]=-1,t&=~r}}function Bg(e){if(oe&6)throw Error(L(327));ki();var t=cc(e,0);if(!(t&1))return Et(e,Oe()),null;var n=Cc(e,t);if(e.tag!==0&&n===2){var r=ah(e);r!==0&&(t=r,n=Lh(e,r))}if(n===1)throw n=ca,Cs(e,0),_r(e,t),Et(e,Oe()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hs(e,xt,Gn),Et(e,Oe()),null}function _p(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(Bi=Oe()+500,ou&&rs())}}function Ls(e){Ir!==null&&Ir.tag===0&&!(oe&6)&&ki();var t=oe;oe|=1;var n=qt.transition,r=ce;try{if(qt.transition=null,ce=1,e)return e()}finally{ce=r,qt.transition=n,oe=t,!(oe&6)&&rs()}}function Tp(){jt=fi.current,we(fi)}function Cs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,H_(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(op(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&pc();break;case 3:Vi(),we(St),we(it),mp();break;case 5:pp(r);break;case 4:Vi();break;case 13:we(Ee);break;case 19:we(Ee);break;case 10:up(r.type._context);break;case 22:case 23:Tp()}n=n.return}if(qe=e,De=e=Hr(e.current,null),Xe=jt=t,Be=0,ca=null,kp=uu=Is=0,xt=Mo=null,gs!==null){for(t=0;t<gs.length;t++)if(n=gs[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}gs=null}return e}function Ux(e,t){do{var n=De;try{if(cp(),Vl.current=kc,Sc){for(var r=Te.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Sc=!1}if(Os=0,We=Ve=Te=null,Io=!1,oa=0,Sp.current=null,n===null||n.return===null){Be=1,ca=t,De=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=Xe,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 h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Ag(o);if(f!==null){f.flags&=-257,jg(f,o,a,i,t),f.mode&1&&Pg(i,c,t),t=f,l=c;var g=t.updateQueue;if(g===null){var v=new Set;v.add(l),t.updateQueue=v}else g.add(l);break e}else{if(!(t&1)){Pg(i,c,t),Cp();break e}l=Error(L(426))}}else if(Se&&a.mode&1){var x=Ag(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),jg(x,o,a,i,t),ap(Ui(l,a));break e}}i=l=Ui(l,a),Be!==4&&(Be=2),Mo===null?Mo=[i]:Mo.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Ex(i,l,t);Sg(i,m);break e;case 1:a=l;var y=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Br===null||!Br.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=_x(i,a,t);Sg(i,S);break e}}i=i.return}while(i!==null)}Hx(n)}catch(k){t=k,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function Bx(){var e=Ec.current;return Ec.current=kc,e===null?kc:e}function Cp(){(Be===0||Be===3||Be===2)&&(Be=4),qe===null||!(Is&268435455)&&!(uu&268435455)||_r(qe,Xe)}function Cc(e,t){var n=oe;oe|=2;var r=Bx();(qe!==e||Xe!==t)&&(Gn=null,Cs(e,t));do try{mT();break}catch(s){Ux(e,s)}while(!0);if(cp(),oe=n,Ec.current=r,De!==null)throw Error(L(261));return qe=null,Xe=0,Be}function mT(){for(;De!==null;)zx(De)}function gT(){for(;De!==null&&!UE();)zx(De)}function zx(e){var t=qx(e.alternate,e,jt);e.memoizedProps=e.pendingProps,t===null?Hx(e):De=t,Sp.current=null}function Hx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=cT(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Be=6,De=null;return}}else if(n=lT(n,t,jt),n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Be===0&&(Be=5)}function hs(e,t,n){var r=ce,s=qt.transition;try{qt.transition=null,ce=1,yT(e,t,n,r)}finally{qt.transition=s,ce=r}return null}function yT(e,t,n,r){do ki();while(Ir!==null);if(oe&6)throw Error(L(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(L(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(QE(e,i),e===qe&&(De=qe=null,Xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||pl||(pl=!0,Kx(lc,function(){return ki(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=qt.transition,qt.transition=null;var o=ce;ce=1;var a=oe;oe|=4,Sp.current=null,dT(e,n),$x(n,e),D_(fh),uc=!!hh,fh=hh=null,e.current=n,hT(n),BE(),oe=a,ce=o,qt.transition=i}else e.current=n;if(pl&&(pl=!1,Ir=e,Tc=s),i=e.pendingLanes,i===0&&(Br=null),WE(n.stateNode),Et(e,Oe()),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(_c)throw _c=!1,e=Oh,Oh=null,e;return Tc&1&&e.tag!==0&&ki(),i=e.pendingLanes,i&1?e===Ih?Do++:(Do=0,Ih=e):Do=0,rs(),null}function ki(){if(Ir!==null){var e=Ew(Tc),t=qt.transition,n=ce;try{if(qt.transition=null,ce=16>e?16:e,Ir===null)var r=!1;else{if(e=Ir,Ir=null,Tc=0,oe&6)throw Error(L(331));var s=oe;for(oe|=4,F=e.current;F!==null;){var i=F,o=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(F=c;F!==null;){var u=F;switch(u.tag){case 0:case 11:case 15:Lo(8,u,i)}var d=u.child;if(d!==null)d.return=u,F=d;else for(;F!==null;){u=F;var h=u.sibling,f=u.return;if(Lx(u),u===c){F=null;break}if(h!==null){h.return=f,F=h;break}F=f}}}var g=i.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}F=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,F=o;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Lo(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,F=m;break e}F=i.return}}var y=e.current;for(F=y;F!==null;){o=F;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,F=w;else e:for(o=y;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:cu(9,a)}}catch(k){Ne(a,a.return,k)}if(a===o){F=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,F=S;break e}F=a.return}}if(oe=s,rs(),Dn&&typeof Dn.onPostCommitFiberRoot=="function")try{Dn.onPostCommitFiberRoot(tu,e)}catch{}r=!0}return r}finally{ce=n,qt.transition=t}}return!1}function zg(e,t,n){t=Ui(n,t),t=Ex(e,t,1),e=Ur(e,t,1),t=ft(),e!==null&&(Ra(e,1,t),Et(e,t))}function Ne(e,t,n){if(e.tag===3)zg(e,e,n);else for(;t!==null;){if(t.tag===3){zg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Br===null||!Br.has(r))){e=Ui(n,e),e=_x(t,e,1),t=Ur(t,e,1),e=ft(),t!==null&&(Ra(t,1,e),Et(t,e));break}}t=t.return}}function vT(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ft(),e.pingedLanes|=e.suspendedLanes&n,qe===e&&(Xe&n)===n&&(Be===4||Be===3&&(Xe&130023424)===Xe&&500>Oe()-Ep?Cs(e,0):kp|=n),Et(e,t)}function Wx(e,t){t===0&&(e.mode&1?(t=sl,sl<<=1,!(sl&130023424)&&(sl=4194304)):t=1);var n=ft();e=sr(e,t),e!==null&&(Ra(e,t,n),Et(e,n))}function wT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wx(e,n)}function xT(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(L(314))}r!==null&&r.delete(t),Wx(e,n)}var qx;qx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||St.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,aT(e,t,n);bt=!!(e.flags&131072)}else bt=!1,Se&&t.flags&1048576&&Yw(t,yc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bl(e,t),e=t.pendingProps;var s=Di(t,it.current);Si(t,n),s=yp(null,t,r,e,s,n);var i=vp();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,kt(r)?(i=!0,mc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,hp(t),s.updater=lu,t.stateNode=s,s._reactInternals=t,Sh(t,r,e,n),t=_h(null,t,r,!0,i,n)):(t.tag=0,Se&&i&&ip(t),ct(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=ST(r),e=an(r,e),s){case 0:t=Eh(null,t,r,e,n);break e;case 1:t=Og(null,t,r,e,n);break e;case 11:t=Rg(null,t,r,e,n);break e;case 14:t=Ng(null,t,r,an(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:an(r,s),Eh(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:an(r,s),Og(e,t,r,s,n);case 3:e:{if(Ax(t),e===null)throw Error(L(387));
vendor: 4,225 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,s=i.element,nx(e,t),xc(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=Ui(Error(L(423)),t),t=Ig(e,t,r,n,s);break e}else if(r!==s){s=Ui(Error(L(424)),t),t=Ig(e,t,r,n,s);break e}else for(Ot=Vr(t.stateNode.containerInfo.firstChild),It=t,Se=!0,fn=null,n=ex(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($i(),r===s){t=ir(e,t,n);break e}ct(e,t,r,n)}t=t.child}return t;case 5:return rx(t),e===null&&wh(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,ph(r,s)?o=null:i!==null&&ph(r,i)&&(t.flags|=32),Px(e,t),ct(e,t,o,n),t.child;case 6:return e===null&&wh(t),null;case 13:return jx(e,t,n);case 4:return fp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fi(t,null,r,n):ct(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:an(r,s),Rg(e,t,r,s,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(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,pe(vc,r._currentValue),r._currentValue=o,i!==null)if(wn(i.value,o)){if(i.children===s.children&&!St.current){t=ir(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=tr(-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),xh(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(L(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),xh(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}ct(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Si(t,n),s=Gt(s),r=r(s),t.flags|=1,ct(e,t,r,n),t.child;case 14:return r=t.type,s=an(r,t.pendingProps),s=an(r.type,s),Ng(e,t,r,s,n);case 15:return Tx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:an(r,s),Bl(e,t),t.tag=1,kt(r)?(e=!0,mc(t)):e=!1,Si(t,n),kx(t,r,s),Sh(t,r,s,n),_h(null,t,r,!0,e,n);case 19:return Rx(e,t,n);case 22:return Cx(e,t,n)}throw Error(L(156,t.tag))};function Kx(e,t){return xw(e,t)}function bT(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 Ht(e,t,n,r){return new bT(e,t,n,r)}function Pp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ST(e){if(typeof e=="function")return Pp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Kf)return 11;if(e===Gf)return 14}return 2}function Hr(e,t){var n=e.alternate;return n===null?(n=Ht(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 Wl(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Pp(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ri:return Ps(n.children,s,i,t);case qf:o=8,s|=8;break;case qd:return e=Ht(12,n,t,s|2),e.elementType=qd,e.lanes=i,e;case Kd:return e=Ht(13,n,t,s),e.elementType=Kd,e.lanes=i,e;case Gd:return e=Ht(19,n,t,s),e.elementType=Gd,e.lanes=i,e;
vendor: 4,114 bytes, line 40
40case rw:return du(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tw:o=10;break e;case nw:o=9;break e;case Kf:o=11;break e;case Gf:o=14;break e;case Sr:o=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Ht(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Ps(e,t,n,r){return e=Ht(7,e,r,t),e.lanes=n,e}function du(e,t,n,r){return e=Ht(22,e,r,t),e.elementType=rw,e.lanes=n,e.stateNode={isHidden:!1},e}function md(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function gd(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function kT(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=Yu(0),this.expirationTimes=Yu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yu(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Ap(e,t,n,r,s,i,o,a,l){return e=new kT(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hp(i),e}function ET(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ni,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Gx(e){if(!e)return qr;e=e._reactInternals;e:{if(Fs(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(kt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(kt(n))return Gw(e,n,t)}return t}function Jx(e,t,n,r,s,i,o,a,l){return e=Ap(n,r,!0,e,s,i,o,a,l),e.context=Gx(null),n=e.current,r=ft(),s=zr(n),i=tr(r,s),i.callback=t??null,Ur(n,i,s),e.current.lanes=s,Ra(e,s,r),Et(e,r),e}function hu(e,t,n,r){var s=t.current,i=ft(),o=zr(s);return n=Gx(n),t.context===null?t.context=n:t.pendingContext=n,t=tr(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ur(s,t,o),e!==null&&(gn(e,s,o,i),Fl(e,s,o)),o}function Pc(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 Hg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jp(e,t){Hg(e,t),(e=e.alternate)&&Hg(e,t)}function _T(){return null}var Yx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Rp(e){this._internalRoot=e}fu.prototype.render=Rp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));hu(e,t,null,null)};fu.prototype.unmount=Rp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ls(function(){hu(null,e,null,null)}),t[rr]=null}};function fu(e){this._internalRoot=e}fu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cw();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Er.length&&t!==0&&t<Er[n].priority;n++);Er.splice(n,0,e),n===0&&Aw(e)}};function Np(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Wg(){}function TT(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=Pc(o);i.call(c)}}var o=Jx(t,r,e,0,null,!1,!1,"",Wg);return e._reactRootContainer=o,e[rr]=o.current,ta(e.nodeType===8?e.parentNode:e),Ls(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=Pc(l);a.call(c)}}var l=Ap(e,0,!1,null,null,!1,!1,"",Wg);return e._reactRootContainer=l,e[rr]=l.current,ta(e.nodeType===8?e.parentNode:e),Ls(function(){hu(t,l,n,r)}),l}
vendor: 4,898 bytes, line 40
40function mu(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=Pc(o);a.call(l)}}hu(t,o,e,s)}else o=TT(n,t,e,s,r);return Pc(o)}_w=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ko(t.pendingLanes);n!==0&&(Qf(t,n|1),Et(t,Oe()),!(oe&6)&&(Bi=Oe()+500,rs()))}break;case 13:Ls(function(){var r=sr(e,1);if(r!==null){var s=ft();gn(r,e,1,s)}}),jp(e,1)}};Xf=function(e){if(e.tag===13){var t=sr(e,134217728);if(t!==null){var n=ft();gn(t,e,134217728,n)}jp(e,134217728)}};Tw=function(e){if(e.tag===13){var t=zr(e),n=sr(e,t);if(n!==null){var r=ft();gn(n,e,t,r)}jp(e,t)}};Cw=function(){return ce};Pw=function(e,t){var n=ce;try{return ce=e,t()}finally{ce=n}};sh=function(e,t,n){switch(t){case"input":if(Qd(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=iu(r);if(!s)throw Error(L(90));iw(r),Qd(r,s)}}}break;case"textarea":aw(e,n);break;case"select":t=n.value,t!=null&&vi(e,!!n.multiple,t,!1)}};pw=_p;mw=Ls;var CT={usingClientEntryPoint:!1,Events:[Oa,ai,iu,hw,fw,_p]},go={findFiberByHostInstance:ms,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},PT={bundleType:go.bundleType,version:go.version,rendererPackageName:go.rendererPackageName,rendererConfig:go.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:cr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vw(e),e===null?null:e.stateNode},findFiberByHostInstance:go.findFiberByHostInstance||_T,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ml.isDisabled&&ml.supportsFiber)try{tu=ml.inject(PT),Dn=ml}catch{}}Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=CT;Dt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Np(t))throw Error(L(200));return ET(e,t,null,n)};Dt.createRoot=function(e,t){if(!Np(e))throw Error(L(299));var n=!1,r="",s=Yx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Ap(e,1,!1,null,null,n,!1,r,s),e[rr]=t.current,ta(e.nodeType===8?e.parentNode:e),new Rp(t)};Dt.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(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=vw(t),e=e===null?null:e.stateNode,e};Dt.flushSync=function(e){return Ls(e)};Dt.hydrate=function(e,t,n){if(!pu(t))throw Error(L(200));return mu(null,e,t,!0,n)};Dt.hydrateRoot=function(e,t,n){if(!Np(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Yx;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Jx(t,null,e,1,n??null,s,!1,i,o),e[rr]=t.current,ta(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 fu(t)};Dt.render=function(e,t,n){if(!pu(t))throw Error(L(200));return mu(null,e,t,!1,n)};Dt.unmountComponentAtNode=function(e){if(!pu(e))throw Error(L(40));return e._reactRootContainer?(Ls(function(){mu(null,null,e,!1,function(){e._reactRootContainer=null,e[rr]=null})}),!0):!1};Dt.unstable_batchedUpdates=_p;Dt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pu(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return mu(e,t,n,!1,r)};Dt.version="18.3.1-next-f1338f8080-20240426";function Qx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qx)}catch(e){console.error(e)}}Qx(),Q0.exports=Dt;var La=Q0.exports;const Xx=$0(La);var Zx,qg=La;Zx=qg.createRoot,qg.hydrateRoot;const AT=1,jT=1e6;let yd=0;function RT(){return yd=(yd+1)%Number.MAX_SAFE_INTEGER,yd.toString()}const vd=new Map,Kg=e=>{if(vd.has(e))return;const t=setTimeout(()=>{vd.delete(e),$o({type:"REMOVE_TOAST",toastId:e})},jT);vd.set(e,t)},NT=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,AT)};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;
40return n?Kg(n):e.toasts.forEach(r=>{Kg(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 Kl={toasts:[]};function $o(e){Kl=NT(Kl,e),ql.forEach(t=>{t(Kl)})}function OT({...e}){const t=RT(),n=s=>$o({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>$o({type:"DISMISS_TOAST",toastId:t});return $o({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function gu(){const[e,t]=b.useState(Kl);return b.useEffect(()=>(ql.push(t),()=>{const n=ql.indexOf(t);n>-1&&ql.splice(n,1)}),[e]),{...e,toast:OT,dismiss:n=>$o({type:"DISMISS_TOAST",toastId:n})}}function Ue(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 Gg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function eb(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Gg(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():Gg(e[s],null)}}}}function xn(...e){return b.useCallback(eb(...e),e)}function yu(e,t=[]){let n=[];function r(i,o){const a=b.createContext(o),l=n.length;n=[...n,o];const c=d=>{var m;const{scope:h,children:f,...g}=d,v=((m=h==null?void 0:h[e])==null?void 0:m[l])||a,x=b.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:x,children:f})};c.displayName=i+"Provider";function u(d,h){var v;const f=((v=h==null?void 0:h[e])==null?void 0:v[l])||a,g=b.useContext(f);if(g)return g;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=>b.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,IT(s,...t)]}function IT(...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})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Ac(e){const t=MT(e),n=b.forwardRef((r,s)=>{const{children:i,...o}=r,a=b.Children.toArray(i),l=a.find($T);if(l){const c=l.props.children,u=a.map(d=>d===l?b.Children.count(c)>1?b.Children.only(null):b.isValidElement(c)?c.props.children:null:d);return p.jsx(t,{...o,ref:s,children:b.isValidElement(c)?b.cloneElement(c,void 0,u):null})}return p.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var LT=Ac("Slot");function MT(e){const t=b.forwardRef((n,r)=>{const{children:s,...i}=n;if(b.isValidElement(s)){const o=VT(s),a=FT(i,s.props);return s.type!==b.Fragment&&(a.ref=r?eb(r,o):o),b.cloneElement(s,a)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tb=Symbol("radix.slottable");function DT(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=tb,t}function $T(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tb}function FT(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 VT(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 UT(e){const t=e+"CollectionProvider",[n,r]=yu(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:x,children:m}=v,y=M.useRef(null),w=M.useRef(new Map).current;return p.jsx(s,{scope:x,itemMap:w,collectionRef:y,children:m})};o.displayName=t;const a=e+"CollectionSlot",l=Ac(a),c=M.forwardRef((v,x)=>{const{scope:m,children:y}=v,w=i(a,m),S=xn(x,w.collectionRef);return p.jsx(l,{ref:S,children:y})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=Ac(u),f=M.forwardRef((v,x)=>{const{scope:m,children:y,...w}=v,S=M.useRef(null),k=xn(x,S),E=i(u,m);return M.useEffect(()=>(E.itemMap.set(S,{ref:S,...w}),()=>void E.itemMap.delete(S))),p.jsx(h,{[d]:"",ref:k,children:y})});f.displayName=u;function g(v){const x=i(e+"CollectionConsumer",v);return M.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((E,_)=>w.indexOf(E.ref.current)-w.indexOf(_.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},g,r]}var BT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ct=BT.reduce((e,t)=>
vendor: 8,483 bytes, line 40
40{const n=Ac(`Primitive.${t}`),r=b.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function nb(e,t){e&&La.flushSync(()=>e.dispatchEvent(t))}function Kr(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function zT(e,t=globalThis==null?void 0:globalThis.document){const n=Kr(e);b.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var HT="DismissableLayer",Dh="dismissableLayer.update",WT="dismissableLayer.pointerDownOutside",qT="dismissableLayer.focusOutside",Jg,rb=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Op=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=b.useContext(rb),[u,d]=b.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=b.useState({}),g=xn(t,_=>d(_)),v=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(x),y=u?v.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=y>=m,k=GT(_=>{const T=_.target,C=[...c.branches].some(P=>P.contains(T));!S||C||(s==null||s(_),o==null||o(_),_.defaultPrevented||a==null||a())},h),E=JT(_=>{const T=_.target;[...c.branches].some(P=>P.contains(T))||(i==null||i(_),o==null||o(_),_.defaultPrevented||a==null||a())},h);return zT(_=>{y===c.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},h),b.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Jg=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Yg(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Jg)}},[u,h,n,c]),b.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Yg())},[u,c]),b.useEffect(()=>{const _=()=>f({});return document.addEventListener(Dh,_),()=>document.removeEventListener(Dh,_)},[]),p.jsx(Ct.div,{...l,ref:g,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,k.onPointerDownCapture)})});Op.displayName=HT;var KT="DismissableLayerBranch",sb=b.forwardRef((e,t)=>{const n=b.useContext(rb),r=b.useRef(null),s=xn(t,r);return b.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(Ct.div,{...e,ref:s})});sb.displayName=KT;function GT(e,t=globalThis==null?void 0:globalThis.document){const n=Kr(e),r=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){ib(WT,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 JT(e,t=globalThis==null?void 0:globalThis.document){const n=Kr(e),r=b.useRef(!1);return b.useEffect(()=>{const s=i=>{i.target&&!r.current&&ib(qT,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 Yg(){const e=new CustomEvent(Dh);document.dispatchEvent(e)}function ib(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?nb(s,i):s.dispatchEvent(i)}var YT=Op,QT=sb,Gr=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},XT="Portal",ob=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=b.useState(!1);Gr(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Xx.createPortal(p.jsx(Ct.div,{...r,ref:t}),o):null});ob.displayName=XT;function ZT(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var Ip=e=>{const{present:t,children:n}=e,r=eC(t),s=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),i=xn(r.ref,tC(s));return typeof n=="function"||r.isPresent?b.cloneElement(s,{ref:i}):null};Ip.displayName="Presence";function eC(e){const[t,n]=b.useState(),r=b.useRef(null),s=b.useRef(e),i=b.useRef("none"),o=e?"mounted":"unmounted",[a,l]=ZT(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const c=gl(r.current);i.current=a==="mounted"?c:"none"},[a]),Gr(()=>{const c=r.current,u=s.current;if(u!==e){const h=i.current,f=gl(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Gr(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=f=>{const v=gl(r.current).includes(f.animationName);if(f.target===t&&v&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=f=>{f.target===t&&(i.current=gl(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function gl(e){return(e==null?void 0:e.animationName)||"none"}function tC(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 nC=J0[" useInsertionEffect ".trim().toString()]||Gr;function rC({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=sC({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const u=b.useRef(e!==void 0);b.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=b.useCallback(u=>{var d;if(a){const h=iC(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else i(u)},[a,e,i,o]);return[l,c]}function sC({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),s=b.useRef(n),i=b.useRef(t);return nC(()=>{i.current=t},[t]),b.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function iC(e){return typeof e=="function"}var oC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),aC="VisuallyHidden",vu=b.forwardRef((e,t)=>p.jsx(Ct.span,{...e,ref:t,style:{...oC,...e.style}}));vu.displayName=aC;var lC=vu,Lp="ToastProvider",[Mp,cC,uC]=UT("Toast"),[ab,iF]=yu("Toast",[uC]),[dC,wu]=ab(Lp),lb=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=b.useState(null),[c,u]=b.useState(0),d=b.useRef(!1),h=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Lp}\`. Expected non-empty \`string\`.`),p.jsx(Mp.Provider,{scope:t,children:p.jsx(dC,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>u(f=>f+1),[]),onToastRemove:b.useCallback(()=>u(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:o})})};
40lb.displayName=Lp;var cb="ToastViewport",hC=["F8"],$h="toast.viewportPause",Fh="toast.viewportResume",ub=b.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=hC,label:s="Notifications ({hotkey})",...i}=e,o=wu(cb,n),a=cC(n),l=b.useRef(null),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),h=xn(t,d,o.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=o.toastCount>0;b.useEffect(()=>{const x=m=>{var w;r.length!==0&&r.every(S=>m[S]||m.code===S)&&((w=d.current)==null||w.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),b.useEffect(()=>{const x=l.current,m=d.current;if(g&&x&&m){const y=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent($h);m.dispatchEvent(E),o.isClosePausedRef.current=!0}},w=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(Fh);m.dispatchEvent(E),o.isClosePausedRef.current=!1}},S=E=>{!x.contains(E.relatedTarget)&&w()},k=()=>{x.contains(document.activeElement)||w()};return x.addEventListener("focusin",y),x.addEventListener("focusout",S),x.addEventListener("pointermove",y),x.addEventListener("pointerleave",k),window.addEventListener("blur",y),window.addEventListener("focus",w),()=>{x.removeEventListener("focusin",y),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",y),x.removeEventListener("pointerleave",k),window.removeEventListener("blur",y),window.removeEventListener("focus",w)}}},[g,o.isClosePausedRef]);const v=b.useCallback(({tabbingDirection:x})=>{const y=a().map(w=>{const S=w.ref.current,k=[S,..._C(S)];return x==="forwards"?k:k.reverse()});return(x==="forwards"?y.reverse():y).flat()},[a]);return b.useEffect(()=>{const x=d.current;if(x){const m=y=>{var k,E,_;const w=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!w){const T=document.activeElement,C=y.shiftKey;if(y.target===x&&C){(k=c.current)==null||k.focus();return}const O=v({tabbingDirection:C?"backwards":"forwards"}),V=O.findIndex(I=>I===T);wd(O.slice(V+1))?y.preventDefault():C?(E=c.current)==null||E.focus():(_=u.current)==null||_.focus()}};return x.addEventListener("keydown",m),()=>x.removeEventListener("keydown",m)}},[a,v]),p.jsxs(QT,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&p.jsx(Vh,{ref:c,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"forwards"});wd(x)}}),p.jsx(Mp.Slot,{scope:n,children:p.jsx(Ct.ol,{tabIndex:-1,...i,ref:h})}),g&&p.jsx(Vh,{ref:u,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"backwards"});wd(x)}})]})});ub.displayName=cb;var db="ToastFocusProxy",Vh=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=wu(db,n);return p.jsx(vu,{"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()}})});Vh.displayName=db;var Ma="Toast",fC="toast.swipeStart",pC="toast.swipeMove",mC="toast.swipeCancel",gC="toast.swipeEnd",hb=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=rC({prop:r,defaultProp:s??!0,onChange:i,caller:Ma});return p.jsx(Ip,{present:n||a,children:p.jsx(wC,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Kr(e.onPause),onResume:Kr(e.onResume),onSwipeStart:Ue(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ue(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:Ue(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:Ue(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)})})})});hb.displayName=Ma;var[yC,vC]=ab(Ma,{onClose(){}}),wC=b.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,...g}=e,v=wu(Ma,n),[x,m]=b.useState(null),y=xn(t,I=>m(I)),w=b.useRef(null),S=b.useRef(null),k=s||v.duration,E=b.useRef(0),_=b.useRef(k),T=b.useRef(0),{onToastAdd:C,onToastRemove:P}=v,N=Kr(()=>{var K;(x==null?void 0:x.contains(document.activeElement))&&((K=v.viewport)==null||K.focus()),o()}),O=b.useCallback(I=>{!I||I===1/0||(window.clearTimeout(T.current),E.current=new Date().getTime(),T.current=window.setTimeout(N,I))},[N]);b.useEffect(()=>{const I=v.viewport;if(I){const K=()=>{O(_.current),c==null||c()},U=()=>{const G=new Date().getTime()-E.current;_.current=_.current-G,window.clearTimeout(T.current),l==null||l()};return I.addEventListener($h,U),I.addEventListener(Fh,K),()=>{I.removeEventListener($h,U),I.removeEventListener(Fh,K)}}},[v.viewport,k,l,c,O]),b.useEffect(()=>{i&&!v.isClosePausedRef.current&&O(k)},[i,k,v.isClosePausedRef,O]),b.useEffect(()=>(C(),()=>P()),[C,P]);const V=b.useMemo(()=>x?wb(x):null,[x]);return v.viewport?p.jsxs(p.Fragment,{children:[V&&p.jsx(xC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),p.jsx(yC,{scope:n,onClose:N,children:La.createPortal(p.jsx(Mp.ItemSlot,{scope:n,children:p.jsx(YT,{asChild:!0,onEscapeKeyDown:Ue(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||N(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:p.jsx(Ct.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...g,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ue(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,N()))}),onPointerDown:Ue(e.onPointerDown,I=>{I.button===0&&(w.current={x:I.clientX,y:I.clientY})}),onPointerMove:Ue(e.onPointerMove,I=>{if(!w.current)return;const K=I.clientX-w.current.x,U=I.clientY-w.current.y,G=!!S.current,A=["left","right"].includes(v.swipeDirection),j=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,D=A?j(0,K):0,q=A?0:j(0,U),W=I.pointerType==="touch"?10:2,Z={x:D,y:q},Q={originalEvent:I,delta:Z};G?(S.current=Z,yl(pC,d,Q,{discrete:!1})):Qg(Z,v.swipeDirection,W)?(S.current=Z,yl(fC,u,Q,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(K)>W||Math.abs(U)>W)&&(w.current=null)}),onPointerUp:Ue(e.onPointerUp,I=>{const K=S.current,U=I.target;if(U.hasPointerCapture(I.pointerId)&&U.releasePointerCapture(I.pointerId),S.current=null,w.current=null,K){const G=I.currentTarget,A={originalEvent:I,delta:K};Qg(K,v.swipeDirection,v.swipeThreshold)?yl(gC,f,A,{discrete:!0}):yl(mC,h,A,{discrete:!0}),G.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),xC=e=>{const{__scopeToast:t,children:n,...r}=e,s=wu(Ma,t),[i,o]=b.useState(!1),[a,l]=b.useState(!1);return kC(()=>o(!0)),b.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:p.jsx(ob,{asChild:!0,children:p.jsx(vu,{...r,children:i&&p.jsxs(p.Fragment,{children:[s.label," ",n]})})})},bC="ToastTitle",fb=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(Ct.div,{...r,ref:t})});fb.displayName=bC;var SC="ToastDescription",pb=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(Ct.div,{...r,ref:t})});pb.displayName=SC;var mb="ToastAction",gb=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?p.jsx(vb,{altText:n,asChild:!0,children:p.jsx(Dp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${mb}\`. Expected non-empty \`string\`.`),null)});gb.displayName=mb;var yb="ToastClose",Dp=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=vC(yb,n);return p.jsx(vb,{asChild:!0,children:p.jsx(Ct.button,{type:"button",...r,ref:t,onClick:Ue(e.onClick,s.onClose)})})});Dp.displayName=yb;var vb=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return p.jsx(Ct.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function wb(e){const t=[];
vendor: 5,012 bytes, lines 40-75
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),EC(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(...wb(r))}}),t}function yl(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?nb(s,i):s.dispatchEvent(i)}var Qg=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function kC(e=()=>{}){const t=Kr(e);Gr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function EC(e){return e.nodeType===e.ELEMENT_NODE}function _C(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 wd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var TC=lb,xb=ub,bb=hb,Sb=fb,kb=pb,Eb=gb,_b=Dp;function Tb(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=Tb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Cb(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Tb(e))&&(r&&(r+=" "),r+=t);return r}const Xg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zg=Cb,Pb=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Zg(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 h=Xg(u)||Xg(d);return s[c][h]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:h,...f}=u;return Object.entries(f).every(g=>{let[v,x]=g;return Array.isArray(x)?x.includes({...i,...a}[v]):{...i,...a}[v]===x})?[...c,d,h]:c},[]);return Zg(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 CC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ab=(...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 PC={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 AC=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>b.createElement("svg",{ref:l,...PC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ab("lucide",s),...a},[...o.map(([c,u])=>b.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 xe=(e,t)=>{const n=b.forwardRef(({className:r,...s},i)=>b.createElement(AC,{ref:i,iconNode:t,className:Ab(`lucide-${CC(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 jC=xe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const Vn=xe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const jb=xe("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"}
75],["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 Hs=xe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 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 RC=xe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 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 NC=xe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 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 OC=xe("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 $p=xe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 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 IC=xe("Dumbbell",[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]]);/** 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 LC=xe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 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 MC=xe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 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 DC=xe("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 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 $C=xe("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 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 Fp=xe("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 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 Vp=xe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 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 Rb=xe("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"}]]);/** 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 FC=xe("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"}]]);/** 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 VC=xe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 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 UC=xe("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/** 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 BC=xe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 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 zC=xe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 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 HC=xe("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 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 ey=xe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 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 Nb=xe("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"}]]);/** 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 Qi=xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,913 bytes, line 185
185],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Up="-",WC=e=>{const t=KC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Up);return a[0]===""&&a.length!==1&&a.shift(),Ob(a,t)||qC(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Ob=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Ob(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Up);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},ty=/^\[(.+)\]$/,qC=e=>{if(ty.test(e)){const t=ty.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},KC=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return JC(Object.entries(e.classGroups),n).forEach(([i,o])=>{Uh(o,r,i,t)}),r},Uh=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:ny(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(GC(s)){Uh(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Uh(o,ny(t,i),n,r)})})},ny=(e,t)=>{let n=e;return t.split(Up).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},GC=e=>e.isThemeGetter,JC=(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,YC=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)}}},Ib="!",QC=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 x=0;x<a.length;x++){let m=a[x];if(c===0){if(m===s&&(r||a.slice(x,x+i)===t)){l.push(a.slice(u,x)),u=x+i;continue}if(m==="/"){d=x;continue}}m==="["?c++:m==="]"&&c--}const h=l.length===0?a:a.substring(u),f=h.startsWith(Ib),g=f?h.substring(1):h,v=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:o}):o},XC=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},ZC=e=>({cache:YC(e.cacheSize),parseClassName:QC(e),...WC(e)}),eP=/\s+/,tP=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(eP);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(c);let g=!!f,v=r(g?h.substring(0,f):h);if(!v){if(!g){a=c+(a.length>0?" "+a:a);continue}if(v=r(h),!v){a=c+(a.length>0?" "+a:a);continue}g=!1}const x=XC(u).join(":"),m=d?x+Ib:x,y=m+v;if(i.includes(y))continue;i.push(y);const w=s(v,g);for(let S=0;S<w.length;++S){const k=w[S];i.push(m+k)}a=c+(a.length>0?" "+a:a)}return a};function nP(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Lb(t))&&(r&&(r+=" "),r+=n);return r}const Lb=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Lb(e[r]))&&(n&&(n+=" "),n+=t);return n};function rP(e,...t){let n,r,s,i=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=ZC(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=tP(l,n);return s(l,u),u}return function(){return i(nP.apply(null,arguments))}}const ge=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Mb=/^\[(?:([a-z-]+):)?(.+)\]$/i,sP=/^\d+\/\d+$/,iP=new Set(["px","full","screen"]),oP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,aP=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wn=e=>Ei(e)||iP.has(e)||sP.test(e),yr=e=>Xi(e,"length",vP),Ei=e=>!!e&&!Number.isNaN(Number(e)),xd=e=>Xi(e,"number",Ei),yo=e=>!!e&&Number.isInteger(Number(e)),dP=e=>e.endsWith("%")&&Ei(e.slice(0,-1)),re=e=>Mb.test(e),vr=e=>oP.test(e),hP=new Set(["length","size","percentage"]),fP=e=>Xi(e,hP,Db),pP=e=>Xi(e,"position",Db),mP=new Set(["image","url"]),gP=e=>Xi(e,mP,xP),yP=e=>Xi(e,"",wP),vo=()=>!0,Xi=(e,t,n)=>{const r=Mb.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},vP=e=>aP.test(e)&&!lP.test(e),Db=()=>!1,wP=e=>cP.test(e),xP=e=>uP.test(e),bP=()=>{const e=ge("colors"),t=ge("spacing"),n=ge("blur"),r=ge("brightness"),s=ge("borderColor"),i=ge("borderRadius"),o=ge("borderSpacing"),a=ge("borderWidth"),l=ge("contrast"),c=ge("grayscale"),u=ge("hueRotate"),d=ge("invert"),h=ge("gap"),f=ge("gradientColorStops"),g=ge("gradientColorStopPositions"),v=ge("inset"),x=ge("margin"),m=ge("opacity"),y=ge("padding"),w=ge("saturate"),S=ge("scale"),k=ge("sepia"),E=ge("skew"),_=ge("space"),T=ge("translate"),C=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",re,t],O=()=>[re,t],V=()=>["",Wn,yr],I=()=>["auto",Ei,re],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["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"],A=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",re],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[Ei,re];return{cacheSize:500,separator:":",theme:{colors:[vo],spacing:[Wn,yr],blur:["none","",vr,re],brightness:q(),borderColor:[e],borderRadius:["n
185one","","full",vr,re],borderSpacing:O(),borderWidth:V(),contrast:q(),grayscale:j(),hueRotate:q(),invert:j(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[dP,yr],inset:N(),margin:N(),opacity:q(),padding:O(),saturate:q(),scale:q(),sepia:j(),skew:q(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[vr]}],"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:[...K(),re]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yo,re]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",yo,re]}],"grid-cols":[{"grid-cols":[vo]}],"col-start-end":[{col:["auto",{span:["full",yo,re]},re]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[vo]}],"row-start-end":[{row:["auto",{span:[yo,re]},re]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[vr]},vr]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",vr,yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xd]}],"font-family":[{font:[vo]}],"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",re]}],"line-clamp":[{"line-clamp":["none",Ei,xd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Wn,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Wn,yr]}],"underline-offset":[{"underline-offset":["auto",Wn,re]}],"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:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],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",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),pP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gP]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}
vendor: 4,885 bytes, line 185
185],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:U()}],"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:["",...U()]}],"outline-offset":[{"outline-offset":[Wn,re]}],"outline-w":[{outline:[Wn,yr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Wn,yr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",vr,yP]}],"shadow-color":[{shadow:[vo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",vr,re]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],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":[m]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"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",re]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[yo,re]}],"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",re]}],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",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}
vendor: 4,150 bytes, line 185
185],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Wn,yr,xd]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},SP=rP(bP);function Ft(...e){return SP(Cb(e))}const kP=TC,$b=b.forwardRef(({className:e,...t},n)=>p.jsx(xb,{ref:n,className:Ft("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}));$b.displayName=xb.displayName;const EP=Pb("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"}}),Fb=b.forwardRef(({className:e,variant:t,...n},r)=>p.jsx(bb,{ref:r,className:Ft(EP({variant:t}),e),...n}));
185Fb.displayName=bb.displayName;const _P=b.forwardRef(({className:e,...t},n)=>p.jsx(Eb,{ref:n,className:Ft("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}));_P.displayName=Eb.displayName;const Vb=b.forwardRef(({className:e,...t},n)=>p.jsx(_b,{ref:n,className:Ft("absolute right-2 top-2 rounded-md p-1 text-foreground/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:p.jsx(Qi,{className:"h-4 w-4"})}));Vb.displayName=_b.displayName;const Ub=b.forwardRef(({className:e,...t},n)=>p.jsx(Sb,{ref:n,className:Ft("text-sm font-semibold",e),...t}));Ub.displayName=Sb.displayName;const Bb=b.forwardRef(({className:e,...t},n)=>p.jsx(kb,{ref:n,className:Ft("text-sm opacity-90",e),...t}));Bb.displayName=kb.displayName;function TP(){const{toasts:e}=gu();return p.jsxs(kP,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return p.jsxs(Fb,{...i,children:[p.jsxs("div",{className:"grid gap-1",children:[n&&p.jsx(Ub,{children:n}),r&&p.jsx(Bb,{children:r})]}),s,p.jsx(Vb,{})]},t)}),p.jsx($b,{})]})}var ry=["light","dark"],CP="(prefers-color-scheme: dark)",PP=b.createContext(void 0),AP={setTheme:e=>{},themes:[]},jP=()=>{var e;return(e=b.useContext(PP))!=null?e:AP};b.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(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?ry.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(g,v=!1,x=!0)=>{let m=o?o[g]:g,y=v?g+"|| ''":`'${m}'`,w="";return s&&x&&!v&&ry.includes(g)&&(w+=`d.style.colorScheme = '${g}';`),n==="class"?v||m?w+=`c.add(${y})`:w+="null":m&&(w+=`d[s](n,${y})`),w},f=e?`!function(){${u}${h(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${CP}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${c?"":"else{"+h(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${d}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var RP=e=>{switch(e){case"success":return IP;case"info":return MP;case"warning":return LP;case"error":return DP;default:return null}},NP=Array(12).fill(0),OP=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},NP.map((n,r)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),IP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),LP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.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"})),MP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),DP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),$P=M.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"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),FP=()=>
185{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Bh=1,VP=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:Bh++,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)=>
185this.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],M.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(BP(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)||Bh++;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}},wt=new VP,UP=(e,t)=>{let n=(t==null?void 0:t.id)||Bh++;return wt.addToast({title:e,...t,id:n}),n},BP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",zP=UP,HP=()=>wt.toasts,WP=()=>wt.getActiveToasts();Object.assign(zP,{success:wt.success,info:wt.info,warning:wt.warning,error:wt.error,custom:wt.custom,message:wt.message,promise:wt.promise,dismiss:wt.dismiss,loading:wt.loading},{getHistory:HP,getToasts:WP});function qP(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))}qP(`: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;
185left: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}
185: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%);
185--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%)} 186`);function vl(e){return e.label!==void 0}var KP=3,GP="32px",JP="16px",sy=4e3,YP=356,QP=14,XP=20,ZP=200;function nn(...e){return e.filter(Boolean).join(" ")}function eA(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var tA=e=>{var t,n,r,s,i,o,a,l,c,u,d;let{invert:h,toast:f,unstyled:g,interacting:v,setHeights:x,visibleToasts:m,heights:y,index:w,toasts:S,expanded:k,removeToast:E,defaultRichColors:_,closeButton:T,style:C,cancelButtonStyle:P,actionButtonStyle:N,className:O="",descriptionClassName:V="",duration:I,position:K,gap:U,loadingIcon:G,expandByDefault:A,classNames:j,icons:D,closeButtonAriaLabel:q="Close toast",pauseWhenPageIsHidden:W}=e,[Z,Q]=M.useState(null),[he,Pe]=M.useState(null),[ee,Ae]=M.useState(!1),[ze,Ie]=M.use
186State(!1),[ae,H]=M.useState(!1),[ie,me]=M.useState(!1),[$e,ot]=M.useState(!1),[Pt,gt]=M.useState(0),[at,kn]=M.useState(0),Yt=M.useRef(f.duration||I||sy),Vs=M.useRef(null),Qt=M.useRef(null),Wa=w===0,qa=w+1<=m,yt=f.type,Hn=f.dismissible!==!1,Bu=f.className||"",io=f.descriptionClassName||"",At=M.useMemo(()=>y.findIndex(X=>X.toastId===f.id)||0,[y,f.id]),oo=M.useMemo(()=>{var X;return(X=f.closeButton)!=null?X:T},[f.closeButton,T]),Us=M.useMemo(()=>f.duration||I||sy,[f.duration,I]),hr=M.useRef(0),En=M.useRef(0),Ka=M.useRef(0),fr=M.useRef(null),[zu,Ga]=K.split("-"),Ja=M.useMemo(()=>y.reduce((X,ue,be)=>be>=At?X:X+ue.height,0),[y,At]),ao=FP(),Ya=f.invert||h,Bs=yt==="loading";En.current=M.useMemo(()=>At*U+Ja,[At,Ja]),M.useEffect(()=>{Yt.current=Us},[Us]),M.useEffect(()=>{Ae(!0)},[]),M.useEffect(()=>{let X=Qt.current;if(X){let ue=X.getBoundingClientRect().height;return kn(ue),x(be=>[{toastId:f.id,height:ue,position:f.position},...be]),()=>x(be=>be.filter(Xt=>Xt.toastId!==f.id))}},[x,f.id]),M.useLayoutEffect(()=>{if(!ee)return;let X=Qt.current,ue=X.style.height;X.style.height="auto";let be=X.getBoundingClientRect().height;X.style.height=ue,kn(be),x(Xt=>Xt.find(Zt=>Zt.toastId===f.id)?Xt.map(Zt=>Zt.toastId===f.id?{...Zt,height:be}:Zt):[{toastId:f.id,height:be,position:f.position},...Xt])},[ee,f.title,f.description,x,f.id]);let _n=M.useCallback(()=>{Ie(!0),gt(En.current),x(X=>X.filter(ue=>ue.toastId!==f.id)),setTimeout(()=>{E(f)},ZP)},[f,E,x,En]);M.useEffect(()=>{if(f.promise&&yt==="loading"||f.duration===1/0||f.type==="loading")return;let X;return k||v||W&&ao?(()=>{if(Ka.current<hr.current){let ue=new Date().getTime()-hr.current;Yt.current=Yt.current-ue}Ka.current=new Date().getTime()})():Yt.current!==1/0&&(hr.current=new Date().getTime(),X=setTimeout(()=>{var ue;(ue=f.onAutoClose)==null||ue.call(f,f),_n()},Yt.current)),()=>clearTimeout(X)},[k,v,f,yt,W,ao,_n]),M.useEffect(()=>{f.delete&&_n()},[_n,f.delete]);function Qa(){var X,ue,be;return D!=null&&D.loading?M.createElement("div",{className:nn(j==null?void 0:j.loader,(X=f==null?void 0:f.classNames)==null?void 0:X.loader,"sonner-loader"),"data-visible":yt==="loading"},D.loading):G?M.createElement("div",{className:nn(j==null?void 0:j.loader,(ue=f==null?void 0:f.classNames)==null?void 0:ue.loader,"sonner-loader"),"data-visible":yt==="loading"},G):M.createElement(OP,{className:nn(j==null?void 0:j.loader,(be=f==null?void 0:f.classNames)==null?void 0:be.loader),visible:yt==="loading"})}return M.createElement("li",{tabIndex:0,ref:Qt,className:nn(O,Bu,j==null?void 0:j.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[yt],(n=f==null?void 0:f.classNames)==null?void 0:n[yt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:_,"data-styled":!(f.jsx||f.unstyled||g),"data-mounted":ee,"data-promise":!!f.promise,"data-swiped":$e,"data-removed":ze,"data-visible":qa,"data-y-position":zu,"data-x-position":Ga,"data-index":w,"data-front":Wa,"data-swiping":ae,"data-dismissible":Hn,"data-type":yt,"data-invert":Ya,"data-swipe-out":ie,"data-swipe-direction":he,"data-expanded":!!(k||A&&ee),style:{"--index":w,"--toasts-before":w,"--z-index":S.length-w,"--offset":`${ze?Pt:En.current}px`,"--initial-height":A?"auto":`${at}px`,...C,...f.style},onDragEnd:()=>{H(!1),Q(null),fr.current=null},onPointerDown:X=>{Bs||!Hn||(Vs.current=new Date,gt(En.current),X.target.setPointerCapture(X.pointerId),X.target.tagName!=="BUTTON"&&(H(!0),fr.current={x:X.clientX,y:X.clientY}))},onPointerUp:()=>{var X,ue,be,Xt;if(ie||!Hn)return;fr.current=null;let Zt=Number(((X=Qt.current)==null?void 0:X.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),pr=Number(((ue=Qt.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),is=new Date().getTime()-((be=Vs.current)==null?void 0:be.getTime()),en=Z==="x"?Zt:pr,mr=Math.abs(en)/is;if(Math.abs(en)>=XP||mr>.11){gt(En.current),(Xt=f.onDismiss)==null||Xt.call(f,f),Pe(Z==="x"?Zt>0?"right":"left":pr>0?"down":"up"),_n(),me(!0),ot(!1);return}H(!1),Q(null)},onPointerMove:X=>{var ue,be,Xt,Zt;if(!fr.current||!Hn||((ue=window.getSelection())==null?void 0:ue.toString().length)>0)return;let pr=X.clientY-fr.current.y,is=X.clientX-fr.current.x,en=(be=e.swipeDirections)!=null?be:eA(K);!Z&&(Math.abs(is)>1||Math.abs(pr)>1)&&Q(Math.abs(is)>Math.abs(pr)?"x":"y");let mr={x:0,y:0};Z==="y"?(en.includes("top")||en.includes("bottom"))&&(en.includes("top")&&pr<0||en.includes("bottom")&&pr>0)&&(mr.y=pr):Z==="x"&&(en.includes("left")||en.includes("right"))&&(en.includes("left")&&is<0||en.includes("right")&&is>0)&&(mr.x=is),(Math.abs(mr.x)>0||Math.abs(mr.y)>0)&&ot(!0),(Xt=Qt.current)==null||Xt.style.setProperty("--swipe-amount-x",`${mr.x}px`),(Zt=Qt.current)==null||Zt.style.setProperty("--swipe-amount-y",`${mr.y}px`)}},oo&&!f.jsx?M.createElement("button",{"aria-label":q,"data-disabled":
186Bs,"data-close-button":!0,onClick:Bs||!Hn?()=>{}:()=>{var X;_n(),(X=f.onDismiss)==null||X.call(f,f)},className:nn(j==null?void 0:j.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=D==null?void 0:D.close)!=null?i:$P):null,f.jsx||b.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:M.createElement(M.Fragment,null,yt||f.icon||f.promise?M.createElement("div",{"data-icon":"",className:nn(j==null?void 0:j.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Qa():null,f.type!=="loading"?f.icon||(D==null?void 0:D[yt])||RP(yt):null):null,M.createElement("div",{"data-content":"",className:nn(j==null?void 0:j.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},M.createElement("div",{"data-title":"",className:nn(j==null?void 0:j.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?M.createElement("div",{"data-description":"",className:nn(V,io,j==null?void 0:j.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),b.isValidElement(f.cancel)?f.cancel:f.cancel&&vl(f.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||P,onClick:X=>{var ue,be;vl(f.cancel)&&Hn&&((be=(ue=f.cancel).onClick)==null||be.call(ue,X),_n())},className:nn(j==null?void 0:j.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,b.isValidElement(f.action)?f.action:f.action&&vl(f.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||N,onClick:X=>{var ue,be;vl(f.action)&&((be=(ue=f.action).onClick)==null||be.call(ue,X),!X.defaultPrevented&&_n())},className:nn(j==null?void 0:j.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function iy(){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 nA(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?JP:GP;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 rA=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:c,theme:u="light",richColors:d,duration:h,style:f,visibleToasts:g=KP,toastOptions:v,dir:x=iy(),gap:m=QP,loadingIcon:y,icons:w,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k}=e,[E,_]=M.useState([]),T=M.useMemo(()=>Array.from(new Set([r].concat(E.filter(W=>W.position).map(W=>W.position)))),[E,r]),[C,P]=M.useState([]),[N,O]=M.useState(!1),[V,I]=M.useState(!1),[K,U]=M.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=M.useRef(null),A=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=M.useRef(null),D=M.useRef(!1),q=M.useCallback(W=>{_(Z=>{var Q;return(Q=Z.find(he=>he.id===W.id))!=null&&Q.delete||wt.dismiss(W.id),Z.filter(({id:he})=>he!==W.id)})},[]);return M.useEffect(()=>wt.subscribe(W=>{if(W.dismiss){_(Z=>Z.map(Q=>Q.id===W.id?{...Q,delete:!0}:Q));return}setTimeout(()=>{Xx.flushSync(()=>{_(Z=>{let Q=Z.findIndex(he=>he.id===W.id);return Q!==-1?[...Z.slice(0,Q),{...Z[Q],...W},...Z.slice(Q+1)]:[W,...Z]})})})}),[]),M.useEffect(()=>{if(u!=="system"){U(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;let W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:Z})=>{U(Z?"dark":"light")})}catch{W.addListener(({matches:Q})=>
vendor: 5,045 bytes, line 186
186{try{U(Q?"dark":"light")}catch(he){console.error(he)}})}},[u]),M.useEffect(()=>{E.length<=1&&O(!1)},[E]),M.useEffect(()=>{let W=Z=>{var Q,he;s.every(Pe=>Z[Pe]||Z.code===Pe)&&(O(!0),(Q=G.current)==null||Q.focus()),Z.code==="Escape"&&(document.activeElement===G.current||(he=G.current)!=null&&he.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[s]),M.useEffect(()=>{if(G.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,D.current=!1)}},[G.current]),M.createElement("section",{ref:t,"aria-label":`${S} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((W,Z)=>{var Q;let[he,Pe]=W.split("-");return E.length?M.createElement("ol",{key:W,dir:x==="auto"?iy():x,tabIndex:-1,ref:G,className:a,"data-sonner-toaster":!0,"data-theme":K,"data-y-position":he,"data-lifted":N&&E.length>1&&!i,"data-x-position":Pe,style:{"--front-toast-height":`${((Q=C[0])==null?void 0:Q.height)||0}px`,"--width":`${YP}px`,"--gap":`${m}px`,...f,...nA(l,c)},onBlur:ee=>{D.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(D.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||D.current||(D.current=!0,j.current=ee.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{V||O(!1)},onDragEnd:()=>O(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},E.filter(ee=>!ee.position&&Z===0||ee.position===W).map((ee,Ae)=>{var ze,Ie;return M.createElement(tA,{key:ee.id,icons:w,index:Ae,toast:ee,defaultRichColors:d,duration:(ze=v==null?void 0:v.duration)!=null?ze:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:g,closeButton:(Ie=v==null?void 0:v.closeButton)!=null?Ie:o,interacting:V,position:W,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:q,toasts:E.filter(ae=>ae.position==ee.position),heights:C.filter(ae=>ae.position==ee.position),setHeights:P,expandByDefault:i,gap:m,loadingIcon:y,expanded:N,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const sA=({...e})=>{const{theme:t="system"}=jP();return p.jsx(rA,{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})},iA=["top","right","bottom","left"],Jr=Math.min,Rt=Math.max,jc=Math.round,wl=Math.floor,Yr=e=>({x:e,y:e}),oA={left:"right",right:"left",bottom:"top",top:"bottom"},aA={start:"end",end:"start"};function zh(e,t,n){return Rt(e,Jr(t,n))}function or(e,t){return typeof e=="function"?e(t):e}function ar(e){return e.split("-")[0]}function Zi(e){return e.split("-")[1]}function Bp(e){return e==="x"?"y":"x"}function zp(e){return e==="y"?"height":"width"}function Qr(e){return["top","bottom"].includes(ar(e))?"y":"x"}function Hp(e){return Bp(Qr(e))}function lA(e,t,n){n===void 0&&(n=!1);const r=Zi(e),s=Hp(e),i=zp(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Rc(o)),[o,Rc(o)]}function cA(e){const t=Rc(e);return[Hh(e),t,Hh(t)]}function Hh(e){return e.replace(/start|end/g,t=>aA[t])}function uA(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 dA(e,t,n,r){const s=Zi(e);let i=uA(ar(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Hh)))),i}function Rc(e){return e.replace(/left|right|bottom|top/g,t=>oA[t])}function hA(e){return{top:0,right:0,bottom:0,left:0,...e}}function zb(e){return typeof e!="number"?hA(e):{top:e,right:e,bottom:e,left:e}}function Nc(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 oy(e,t,n){let{reference:r,floating:s}=e;const i=Qr(t),o=Hp(t),a=zp(o),l=ar(t),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-s.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-s.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Zi(t)){case"start":f[o]-=h*(n&&c?-1:1);break;case"end":f[o]+=h*(n&&c?-1:1);break}return f}const fA=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}
vendor: 9,536 bytes, line 186
186=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}=oy(c,r,l),h=r,f={},g=0;for(let v=0;v<a.length;v++){const{name:x,fn:m}=a[v],{x:y,y:w,data:S,reset:k}=await m({x:u,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=y??u,d=w??d,f={...f,[x]:{...f[x],...S}},k&&g<=50&&(g++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(c=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:u,y:d}=oy(c,h,l)),v=-1)}return{x:u,y:d,placement:h,strategy:s,middlewareData:f}};async function ua(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:h=!1,padding:f=0}=or(t,e),g=zb(f),x=a[h?d==="floating"?"reference":"floating":d],m=Nc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Nc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:l}):y);return{top:(m.top-k.top+g.top)/S.y,bottom:(k.bottom-m.bottom+g.bottom)/S.y,left:(m.left-k.left+g.left)/S.x,right:(k.right-m.right+g.right)/S.x}}const pA=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}=or(e,t)||{};if(c==null)return{};const d=zb(u),h={x:n,y:r},f=Hp(s),g=zp(f),v=await o.getDimensions(c),x=f==="y",m=x?"top":"left",y=x?"bottom":"right",w=x?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[f]-h[f]-i.floating[g],k=h[f]-i.reference[f],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let _=E?E[w]:0;(!_||!await(o.isElement==null?void 0:o.isElement(E)))&&(_=a.floating[w]||i.floating[g]);const T=S/2-k/2,C=_/2-v[g]/2-1,P=Jr(d[m],C),N=Jr(d[y],C),O=P,V=_-v[g]-N,I=_/2-v[g]/2+T,K=zh(O,I,V),U=!l.arrow&&Zi(s)!=null&&I!==K&&i.reference[g]/2-(I<O?P:N)-v[g]/2<0,G=U?I<O?I-O:I-V:0;return{[f]:h[f]+G,data:{[f]:K,centerOffset:I-K-G,...U&&{alignmentOffset:G}},reset:U}}}),mA=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:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...x}=or(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=ar(s),y=Qr(a),w=ar(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=h||(w||!v?[Rc(a)]:cA(a)),E=g!=="none";!h&&E&&k.push(...dA(a,v,g,S));const _=[a,...k],T=await ua(t,x),C=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&C.push(T[m]),d){const I=lA(s,o,S);C.push(T[I[0]],T[I[1]])}if(P=[...P,{placement:s,overflows:C}],!C.every(I=>I<=0)){var N,O;const I=(((N=i.flip)==null?void 0:N.index)||0)+1,K=_[I];if(K)return{data:{index:I,overflows:P},reset:{placement:K}};let U=(O=P.filter(G=>G.overflows[0]<=0).sort((G,A)=>G.overflows[1]-A.overflows[1])[0])==null?void 0:O.placement;if(!U)switch(f){case"bestFit":{var V;const G=(V=P.filter(A=>{if(E){const j=Qr(A.placement);return j===y||j==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(j=>j>0).reduce((j,D)=>j+D,0)]).sort((A,j)=>A[1]-j[1])[0])==null?void 0:V[0];G&&(U=G);break}case"initialPlacement":U=a;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function ay(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ly(e){return iA.some(t=>e[t]>=0)}const gA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=or(e,t);switch(r){case"referenceHidden":{const i=await ua(t,{...s,elementContext:"reference"}),o=ay(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ly(o)}}}case"escaped":{const i=await ua(t,{...s,altBoundary:!0}),o=ay(i,n.floating);return{data:{escapedOffsets:o,escaped:ly(o)}}}default:return{}}}}};async function yA(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=ar(n),a=Zi(n),l=Qr(n)==="y",c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=or(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}const vA=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 yA(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}}}}},wA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:m,y}=x;return{x:m,y}}},...l}=or(e,t),c={x:n,y:r},u=await ua(t,l),d=Qr(ar(s)),h=Bp(d);let f=c[h],g=c[d];if(i){const x=h==="y"?"top":"left",m=h==="y"?"bottom":"right",y=f+u[x],w=f-u[m];f=zh(y,f,w)}if(o){const x=d==="y"?"top":"left",m=d==="y"?"bottom":"right",y=g+u[x],w=g-u[m];g=zh(y,g,w)}const v=a.fn({...t,[h]:f,[d]:g});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:i,[d]:o}}}}}},xA=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}=or(e,t),u={x:n,y:r},d=Qr(s),h=Bp(d);let f=u[h],g=u[d];const v=or(a,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const w=h==="y"?"height":"width",S=i.reference[h]-i.floating[w]+x.mainAxis,k=i.reference[h]+i.reference[w]-x.mainAxis;f<S?f=S:f>k&&(f=k)}if(c){var m,y;const w=h==="y"?"width":"height",S=["top","left"].includes(ar(s)),k=i.reference[d]-i.floating[w]+(S&&((m=o.offset)==null?void 0:m[d])||0)+(S?0:x.crossAxis),E=i.reference[d]+i.reference[w]+(S?0:((y=o.offset)==null?void 0:y[d])||0)-(S?x.crossAxis:0);g<k?g=k:g>E&&(g=E)}return{[h]:f,[d]:g}}}},bA=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}=or(e,t),u=await ua(t,c),d=ar(s),h=Zi(s),f=Qr(s)==="y",{width:g,height:v}=i.floating;let x,m;d==="top"||d==="bottom"?(x=d,m=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=d,x=h==="end"?"top":"bottom");const y=v-u.top-u.bottom,w=g-u.left-u.right,S=Jr(v-u[x],y),k=Jr(g-u[m],w),E=!t.middlewareData.shift;let _=S,T=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=y),E&&!h){const P=Rt(u.left,0),N=Rt(u.right,0),O=Rt(u.top,0),V=Rt(u.bottom,0);f?T=g-2*(P!==0||N!==0?P+N:Rt(u.left,u.right)):_=v-2*(O!==0||V!==0?O+V:Rt(u.top,u.bottom))}await l({...t,availableWidth:T,availableHeight:_});const C=await o.getDimensions(a.floating);return g!==C.width||v!==C.height?{reset:{rects:!0}}:{}}}};function xu(){return typeof window<"u"}function eo(e){return Hb(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zn(e){var t;return(t=(Hb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hb(e){return xu()?e instanceof Node||e instanceof Lt(e).Node:!1}function bn(e){return xu()?e instanceof Element||e instanceof Lt(e).Element:!1}function Un(e){return xu()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function cy(e){return!xu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function Da(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Sn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function SA(e){return["table","td","th"].includes(eo(e))}function bu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wp(e){const t=qp(),n=bn(e)?Sn(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 kA(e){let t=Xr(e);for(;Un(t)&&!zi(t);){if(Wp(t))return t;if(bu(t))return null;t=Xr(t)}return null}function qp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zi(e){return["html","body","#document"].includes(eo(e))}function Sn(e){return Lt(e).getComputedStyle(e)}function Su(e){return bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xr(e){if(eo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cy(e)&&e.host||zn(e);return cy(t)?t.host:t}function Wb(e){const t=Xr(e);return zi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Un(t)&&Da(t)?t:Wb(t)}
vendor: 7,031 bytes, line 186
186function da(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Wb(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Lt(s);if(i){const a=Wh(o);return t.concat(o,o.visualViewport||[],Da(s)?s:[],a&&n?da(a):[])}return t.concat(s,da(s,[],n))}function Wh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qb(e){const t=Sn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Un(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=jc(n)!==i||jc(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Kp(e){return bn(e)?e:e.contextElement}function _i(e){const t=Kp(e);if(!Un(t))return Yr(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=qb(t);let o=(i?jc(n.width):n.width)/r,a=(i?jc(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const EA=Yr(0);function Kb(e){const t=Lt(e);return!qp()||!t.visualViewport?EA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _A(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function Ms(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Kp(e);let o=Yr(1);t&&(r?bn(r)&&(o=_i(r)):o=_i(e));const a=_A(i,n,r)?Kb(i):Yr(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 h=Lt(i),f=r&&bn(r)?Lt(r):r;let g=h,v=Wh(g);for(;v&&r&&f!==g;){const x=_i(v),m=v.getBoundingClientRect(),y=Sn(v),w=m.left+(v.clientLeft+parseFloat(y.paddingLeft))*x.x,S=m.top+(v.clientTop+parseFloat(y.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=w,c+=S,g=Lt(v),v=Wh(g)}}return Nc({width:u,height:d,x:l,y:c})}function TA(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=zn(r),a=t?bu(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Yr(1);const u=Yr(0),d=Un(r);if((d||!d&&!i)&&((eo(r)!=="body"||Da(o))&&(l=Su(r)),Un(r))){const h=Ms(r);c=_i(r),u.x=h.x+r.clientLeft,u.y=h.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 CA(e){return Array.from(e.getClientRects())}function qh(e,t){const n=Su(e).scrollLeft;return t?t.left+n:Ms(zn(e)).left+n}function PA(e){const t=zn(e),n=Su(e),r=e.ownerDocument.body,s=Rt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Rt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+qh(e);const a=-n.scrollTop;return Sn(r).direction==="rtl"&&(o+=Rt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function AA(e,t){const n=Lt(e),r=zn(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=qp();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function jA(e,t){const n=Ms(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Un(e)?_i(e):Yr(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 uy(e,t,n){let r;if(t==="viewport")r=AA(e,n);else if(t==="document")r=PA(zn(e));else if(bn(t))r=jA(t,n);else{const s=Kb(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return Nc(r)}function Gb(e,t){const n=Xr(e);return n===t||!bn(n)||zi(n)?!1:Sn(n).position==="fixed"||Gb(n,t)}function RA(e,t){const n=t.get(e);if(n)return n;let r=da(e,[],!1).filter(a=>bn(a)&&eo(a)!=="body"),s=null;const i=Sn(e).position==="fixed";let o=i?Xr(e):e;for(;bn(o)&&!zi(o);){const a=Sn(o),l=Wp(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Da(o)&&!l&&Gb(e,o))?r=r.filter(u=>u!==o):s=a,o=Xr(o)}return t.set(e,r),r}function NA(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?bu(t)?[]:RA(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=uy(t,u,s);return c.top=Rt(d.top,c.top),c.right=Jr(d.right,c.right),c.bottom=Jr(d.bottom,c.bottom),c.left=Rt(d.left,c.left),c},uy(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function OA(e){const{width:t,height:n}=qb(e);return{width:t,height:n}}function IA(e,t,n){const r=Un(t),s=zn(t),i=n==="fixed",o=Ms(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Yr(0);if(r||!r&&!i)if((eo(t)!=="body"||Da(s))&&(a=Su(t)),r){const f=Ms(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&(l.x=qh(s));let c=0,u=0;if(s&&!r&&!i){const f=s.getBoundingClientRect();u=f.top+a.scrollTop,c=f.left+a.scrollLeft-qh(s,f)}const d=o.left+a.scrollLeft-l.x-c,h=o.top+a.scrollTop-l.y-u;return{x:d,y:h,width:o.width,height:o.height}}function bd(e){return Sn(e).position==="static"}function dy(e,t){if(!Un(e)||Sn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return zn(e)===n&&(n=n.ownerDocument.body),n}function Jb(e,t){const n=Lt(e);if(bu(e))return n;if(!Un(e)){let s=Xr(e);for(;s&&!zi(s);){if(bn(s)&&!bd(s))return s;s=Xr(s)}return n}let r=dy(e,t);for(;r&&SA(r)&&bd(r);)r=dy(r,t);return r&&zi(r)&&bd(r)&&!Wp(r)?n:r||kA(e)||n}const LA=async function(e){const t=this.getOffsetParent||Jb,n=this.getDimensions,r=await n(e.floating);return{reference:IA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function MA(e){return Sn(e).direction==="rtl"}const DA={convertOffsetParentRelativeRectToViewportRelativeRect:TA,getDocumentElement:zn,getClippingRect:NA,getOffsetParent:Jb,getElementRects:LA,getClientRects:CA,getDimensions:OA,getScale:_i,isElement:bn,isRTL:MA};function $A(e,t){let n=null,r;const s=zn(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:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const f=wl(u),g=wl(s.clientWidth-(c+d)),v=wl(s.clientHeight-(u+h)),x=wl(c),y={rootMargin:-f+"px "+-g+"px "+-v+"px "+-x+"px",threshold:Rt(0,Jr(1,l))||1};let w=!0;function S(k){const E=k[0].intersectionRatio;if(E!==l){if(!w)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...y,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return o(!0),i}function FA(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=Kp(e),u=s||i?[...c?da(c):[],...da(t)]:[];u.forEach(m=>{s&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=c&&a?$A(c,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(m=>{let[y]=m;y&&y.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let g,v=l?Ms(e):null;l&&x();function x(){const m=Ms(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,g=requestAnimationFrame(x)}return n(),()=>{var m;u.forEach(y=>{s&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d==null||d(),(m=f)==null||m.disconnect(),f=null,l&&cancelAnimationFrame(g)}}
vendor: 4,237 bytes, line 186
186const VA=vA,UA=wA,BA=mA,zA=bA,HA=gA,hy=pA,WA=xA,qA=(e,t,n)=>{const r=new Map,s={platform:DA,...n},i={...s.platform,_c:r};return fA(e,t,{...s,platform:i})};var Gl=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Oc(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(!Oc(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)&&!Oc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Yb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fy(e,t){const n=Yb(e);return Math.round(t*n)/n}function Sd(e){const t=b.useRef(e);return Gl(()=>{t.current=e}),t}function KA(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]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=b.useState(r);Oc(h,r)||f(r);const[g,v]=b.useState(null),[x,m]=b.useState(null),y=b.useCallback(A=>{A!==E.current&&(E.current=A,v(A))},[]),w=b.useCallback(A=>{A!==_.current&&(_.current=A,m(A))},[]),S=i||g,k=o||x,E=b.useRef(null),_=b.useRef(null),T=b.useRef(u),C=l!=null,P=Sd(l),N=Sd(s),O=Sd(c),V=b.useCallback(()=>{if(!E.current||!_.current)return;const A={placement:t,strategy:n,middleware:h};N.current&&(A.platform=N.current),qA(E.current,_.current,A).then(j=>{const D={...j,isPositioned:O.current!==!1};I.current&&!Oc(T.current,D)&&(T.current=D,La.flushSync(()=>{d(D)}))})},[h,t,n,N,O]);Gl(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[c]);const I=b.useRef(!1);Gl(()=>(I.current=!0,()=>{I.current=!1}),[]),Gl(()=>{if(S&&(E.current=S),k&&(_.current=k),S&&k){if(P.current)return P.current(S,k,V);V()}},[S,k,V,P,C]);const K=b.useMemo(()=>({reference:E,floating:_,setReference:y,setFloating:w}),[y,w]),U=b.useMemo(()=>({reference:S,floating:k}),[S,k]),G=b.useMemo(()=>{const A={position:n,left:0,top:0};if(!U.floating)return A;const j=fy(U.floating,u.x),D=fy(U.floating,u.y);return a?{...A,transform:"translate("+j+"px, "+D+"px)",...Yb(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:D}},[n,a,U.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:V,refs:K,elements:U,floatingStyles:G}),[u,V,K,U,G])}const GA=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):{}}}},JA=(e,t)=>({...VA(e),options:[e,t]}),YA=(e,t)=>({...UA(e),options:[e,t]}),QA=(e,t)=>({...WA(e),options:[e,t]}),XA=(e,t)=>({...BA(e),options:[e,t]}),ZA=(e,t)=>({...zA(e),options:[e,t]}),ej=(e,t)=>({...HA(e),options:[e,t]}),tj=(e,t)=>({...GA(e),options:[e,t]});var nj="Arrow",Qb=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return p.jsx(Ct.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qb.displayName=nj;var rj=Qb;function sj(e){const[t,n]=b.useState(void 0);return Gr(()=>{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 Xb="Popper",[Zb,e1]=yu(Xb),[oF,t1]=Zb(Xb),n1="PopperAnchor",r1=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=t1(n1,n),o=b.useRef(null),a=xn(t,o);return b.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:p.jsx(Ct.div,{...s,ref:a})});r1.displayName=n1;var Gp="PopperContent",[ij,oj]=Zb(Gp),s1=b.forwardRef((e,t)=>
vendor: 4,205 bytes, line 186
186{var ee,Ae,ze,Ie,ae,H;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:h=!1,updatePositionStrategy:f="optimized",onPlaced:g,...v}=e,x=t1(Gp,n),[m,y]=b.useState(null),w=xn(t,ie=>y(ie)),[S,k]=b.useState(null),E=sj(S),_=(E==null?void 0:E.width)??0,T=(E==null?void 0:E.height)??0,C=r+(i!=="center"?"-"+i:""),P=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},N=Array.isArray(c)?c:[c],O=N.length>0,V={padding:P,boundary:N.filter(lj),altBoundary:O},{refs:I,floatingStyles:K,placement:U,isPositioned:G,middlewareData:A}=KA({strategy:"fixed",placement:C,whileElementsMounted:(...ie)=>FA(...ie,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[JA({mainAxis:s+T,alignmentAxis:o}),l&&YA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?QA():void 0,...V}),l&&XA({...V}),ZA({...V,apply:({elements:ie,rects:me,availableWidth:$e,availableHeight:ot})=>{const{width:Pt,height:gt}=me.reference,at=ie.floating.style;at.setProperty("--radix-popper-available-width",`${$e}px`),at.setProperty("--radix-popper-available-height",`${ot}px`),at.setProperty("--radix-popper-anchor-width",`${Pt}px`),at.setProperty("--radix-popper-anchor-height",`${gt}px`)}}),S&&tj({element:S,padding:a}),cj({arrowWidth:_,arrowHeight:T}),h&&ej({strategy:"referenceHidden",...V})]}),[j,D]=a1(U),q=Kr(g);Gr(()=>{G&&(q==null||q())},[G,q]);const W=(ee=A.arrow)==null?void 0:ee.x,Z=(Ae=A.arrow)==null?void 0:Ae.y,Q=((ze=A.arrow)==null?void 0:ze.centerOffset)!==0,[he,Pe]=b.useState();return Gr(()=>{m&&Pe(window.getComputedStyle(m).zIndex)},[m]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:G?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Ie=A.transformOrigin)==null?void 0:Ie.x,(ae=A.transformOrigin)==null?void 0:ae.y].join(" "),...((H=A.hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(ij,{scope:n,placedSide:j,onArrowChange:k,arrowX:W,arrowY:Z,shouldHideArrow:Q,children:p.jsx(Ct.div,{"data-side":j,"data-align":D,...v,ref:w,style:{...v.style,animation:G?void 0:"none"}})})})});s1.displayName=Gp;var i1="PopperArrow",aj={top:"bottom",right:"left",bottom:"top",left:"right"},o1=b.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=oj(i1,r),o=aj[i.placedSide];return p.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:p.jsx(rj,{...s,ref:n,style:{...s.style,display:"block"}})})});o1.displayName=i1;function lj(e){return e!==null}var cj=e=>({name:"transformOrigin",options:e,fn(t){var x,m,y;const{placement:n,rects:r,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=a1(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((m=s.arrow)==null?void 0:m.x)??0)+a/2,f=(((y=s.arrow)==null?void 0:y.y)??0)+l/2;let g="",v="";return c==="bottom"?(g=o?d:`${h}px`,v=`${-l}px`):c==="top"?(g=o?d:`${h}px`,v=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,v=o?d:`${f}px`):c==="left"&&(g=`${r.floating.width+l}px`,v=o?d:`${f}px`),{data:{x:g,y:v}}}});function a1(e){const[t,n="center"]=e.split("-");return[t,n]}var uj=r1,dj=s1,hj=o1,[ku,aF]=yu("Tooltip",[e1]),Jp=e1(),l1="TooltipProvider",fj=700,py="tooltip.open",[pj,c1]=ku(l1),u1=e=>{const{__scopeTooltip:t,delayDuration:n=fj,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),p.jsx(pj,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>
vendor: 5,838 bytes, line 186
186o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:i})};u1.displayName=l1;var d1="Tooltip",[lF,Eu]=ku(d1),Kh="TooltipTrigger",mj=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Eu(Kh,n),i=c1(Kh,n),o=Jp(n),a=b.useRef(null),l=xn(t,a,s.onTriggerChange),c=b.useRef(!1),u=b.useRef(!1),d=b.useCallback(()=>c.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(uj,{asChild:!0,...o,children:p.jsx(Ct.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:Ue(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:Ue(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:Ue(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ue(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:Ue(e.onBlur,s.onClose),onClick:Ue(e.onClick,s.onClose)})})});mj.displayName=Kh;var gj="TooltipPortal",[cF,yj]=ku(gj,{forceMount:void 0}),Hi="TooltipContent",h1=b.forwardRef((e,t)=>{const n=yj(Hi,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=Eu(Hi,e.__scopeTooltip);return p.jsx(Ip,{present:r||o.open,children:o.disableHoverableContent?p.jsx(f1,{side:s,...i,ref:t}):p.jsx(vj,{side:s,...i,ref:t})})}),vj=b.forwardRef((e,t)=>{const n=Eu(Hi,e.__scopeTooltip),r=c1(Hi,e.__scopeTooltip),s=b.useRef(null),i=xn(t,s),[o,a]=b.useState(null),{trigger:l,onClose:c}=n,u=s.current,{onPointerInTransitChange:d}=r,h=b.useCallback(()=>{a(null),d(!1)},[d]),f=b.useCallback((g,v)=>{const x=g.currentTarget,m={x:g.clientX,y:g.clientY},y=kj(m,x.getBoundingClientRect()),w=Ej(m,y),S=_j(v.getBoundingClientRect()),k=Cj([...w,...S]);a(k),d(!0)},[d]);return b.useEffect(()=>()=>h(),[h]),b.useEffect(()=>{if(l&&u){const g=x=>f(x,u),v=x=>f(x,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",v)}}},[l,u,f,h]),b.useEffect(()=>{if(o){const g=v=>{const x=v.target,m={x:v.clientX,y:v.clientY},y=(l==null?void 0:l.contains(x))||(u==null?void 0:u.contains(x)),w=!Tj(m,o);y?h():w&&(h(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,o,c,h]),p.jsx(f1,{...e,ref:i})}),[wj,xj]=ku(d1,{isInside:!1}),bj=DT("TooltipContent"),f1=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=Eu(Hi,n),c=Jp(n),{onClose:u}=l;return b.useEffect(()=>(document.addEventListener(py,u),()=>document.removeEventListener(py,u)),[u]),b.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),p.jsx(Op,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:p.jsxs(dj,{"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:[p.jsx(bj,{children:r}),p.jsx(wj,{scope:n,isInside:!0,children:p.jsx(lC,{id:l.contentId,role:"tooltip",children:s||r})})]})})});h1.displayName=Hi;var p1="TooltipArrow",Sj=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Jp(n);return xj(p1,n).isInside?null:p.jsx(hj,{...s,...r,ref:t})});Sj.displayName=p1;function kj(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 Ej(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 _j(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 Tj(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,h=l.y;u>r!=h>r&&n<(d-c)*(r-u)/(h-u)+c&&(s=!s)}return s}function Cj(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),Pj(t)}function Pj(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 Aj=u1,m1=h1;const jj=Aj,Rj=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(m1,{ref:r,sideOffset:t,className:Ft("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
186de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Rj.displayName=m1.displayName;var _u=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(){}},Tu=typeof window>"u"||"Deno"in globalThis;function ln(){}function Nj(e,t){return typeof e=="function"?e(t):e}function Oj(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ij(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gh(e,t){return typeof e=="function"?e(t):e}function Lj(e,t){return typeof e=="function"?e(t):e}function my(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Yp(o,t.options))return!1}else if(!fa(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 gy(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ha(t.options.mutationKey)!==ha(i))return!1}else if(!fa(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Yp(e,t){return((t==null?void 0:t.queryKeyHashFn)||ha)(e)}function ha(e){return JSON.stringify(e,(t,n)=>Jh(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function fa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>fa(e[n],t[n])):!1}function g1(e,t){if(e===t)return e;const n=yy(e)&&yy(t);if(n||Jh(e)&&Jh(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]=g1(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function yy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Jh(e){if(!vy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!vy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vy(e){return Object.prototype.toString.call(e)==="[object Object]"}function Mj(e){return new Promise(t=>{setTimeout(t,e)})}function Dj(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?g1(e,t):t}function $j(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Fj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qp=Symbol();function y1(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Qp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var bs,Pr,Pi,j0,Vj=(j0=class extends _u{constructor(){super();le(this,bs);le(this,Pr);le(this,Pi);te(this,Pi,t=>{if(!Tu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Pr)||this.setEventListener(R(this,Pi))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Pr))==null||t.call(this),te(this,Pr,void 0))}setEventListener(t){var n;te(this,Pi,t),(n=R(this,Pr))==null||n.call(this),te(this,Pr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,bs)!==t&&(te(this,bs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,bs)=="boolean"?R(this,bs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},bs=new WeakMap,Pr=new WeakMap,Pi=new WeakMap,j0),v1=new Vj,Ai,Ar,ji,R0,Uj=(R0=class extends _u{constructor(){super();le(this,Ai,!0);le(this,Ar);le(this,ji);te(this,ji,t=>{if(!Tu&&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(){R(this,Ar)||this.setEventListener(R(this,ji))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Ar))==null||t.call(this),te(this,Ar,void 0))}setEventListener(t){var n;
vendor: 4,162 bytes, line 186
186te(this,ji,t),(n=R(this,Ar))==null||n.call(this),te(this,Ar,t(this.setOnline.bind(this)))}setOnline(t){R(this,Ai)!==t&&(te(this,Ai,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,Ai)}},Ai=new WeakMap,Ar=new WeakMap,ji=new WeakMap,R0),Ic=new Uj;function Bj(){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 zj(e){return Math.min(1e3*2**e,3e4)}function w1(e){return(e??"online")==="online"?Ic.isOnline():!0}var x1=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function kd(e){return e instanceof x1}function b1(e){let t=!1,n=0,r=!1,s;const i=Bj(),o=v=>{var x;r||(h(new x1(v)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>v1.isFocused()&&(e.networkMode==="always"||Ic.isOnline())&&e.canRun(),u=()=>w1(e.networkMode)&&e.canRun(),d=v=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,v),s==null||s(),i.resolve(v))},h=v=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,v),s==null||s(),i.reject(v))},f=()=>new Promise(v=>{var x;s=m=>{(r||c())&&v(m)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;s=void 0,r||(v=e.onContinue)==null||v.call(e)}),g=()=>{if(r)return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(m){v=Promise.reject(m)}Promise.resolve(v).then(d).catch(m=>{var E;if(r)return;const y=e.retry??(Tu?0:3),w=e.retryDelay??zj,S=typeof w=="function"?w(n,m):w,k=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,m);if(t||!k){h(m);return}n++,(E=e.onFail)==null||E.call(e,n,m),Mj(S).then(()=>c()?void 0:f()).then(()=>{t?h(m):g()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?g():f().then(g),i)}}var Hj=e=>setTimeout(e,0);function Wj(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=Hj;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 ut=Wj(),Ss,N0,S1=(N0=class{constructor(){le(this,Ss)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oj(this.gcTime)&&te(this,Ss,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Tu?1/0:5*60*1e3))}clearGcTimeout(){R(this,Ss)&&(clearTimeout(R(this,Ss)),te(this,Ss,void 0))}},Ss=new WeakMap,N0),Ri,ks,Ut,Es,rt,Pa,_s,un,Kn,O0,qj=(O0=class extends S1{constructor(t){super();le(this,un);le(this,Ri);le(this,ks);le(this,Ut);le(this,Es);le(this,rt);le(this,Pa);le(this,_s);te(this,_s,!1),te(this,Pa,t.defaultOptions),this.setOptions(t.options),this.observers=[],te(this,Es,t.client),te(this,Ut,R(this,Es).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,te(this,Ri,Gj(this.options)),this.state=t.state??R(this,Ri),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,rt))==null?void 0:t.promise}setOptions(t){this.options={...R(this,Pa),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,Ut).remove(this)}setData(t,n){const r=Dj(this.state.data,t,this.options);return et(this,un,Kn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){et(this,un,Kn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=R(this,rt))==null?void 0:r.promise;return(s=R(this,rt))==null||s.cancel(t),n?n.then(ln).catch(ln):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,Ri))}isActive(){return this.observers.some(t=>Lj(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qp||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 186
186Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Gh(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:!Ij(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,rt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,rt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,Ut).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(R(this,rt)&&(R(this,_s)?R(this,rt).cancel({revert:!0}):R(this,rt).cancelRetry()),this.scheduleGc()),R(this,Ut).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||et(this,un,Kn).call(this,{type:"invalidate"})}
vendor: 13,738 bytes, line 186
186fetch(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(R(this,rt))return R(this,rt).continueRetry(),R(this,rt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(te(this,_s,!0),r.signal)})},i=()=>{const h=y1(this.options,n),g=(()=>{const v={client:R(this,Es),queryKey:this.queryKey,meta:this.meta};return s(v),v})();return te(this,_s,!1),this.options.persister?this.options.persister(h,g,this):h(g)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,Es),state:this.state,fetchFn:i};return s(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),te(this,ks,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&et(this,un,Kn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,g,v,x;kd(h)&&h.silent||et(this,un,Kn).call(this,{type:"error",error:h}),kd(h)||((g=(f=R(this,Ut).config).onError)==null||g.call(f,h,this),(x=(v=R(this,Ut).config).onSettled)==null||x.call(v,this.state.data,h,this)),this.scheduleGc()};return te(this,rt,b1({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,g,v,x;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(m){l(m);return}(g=(f=R(this,Ut).config).onSuccess)==null||g.call(f,h,this),(x=(v=R(this,Ut).config).onSettled)==null||x.call(v,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{et(this,un,Kn).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{et(this,un,Kn).call(this,{type:"pause"})},onContinue:()=>{et(this,un,Kn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),R(this,rt).start()}},Ri=new WeakMap,ks=new WeakMap,Ut=new WeakMap,Es=new WeakMap,rt=new WeakMap,Pa=new WeakMap,_s=new WeakMap,un=new WeakSet,Kn=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,...Kj(r.data,this.options),fetchMeta:t.meta??null};case"success":return te(this,ks,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 kd(s)&&s.revert&&R(this,ks)?{...R(this,ks),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),ut.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,Ut).notify({query:this,type:"updated",action:t})})},O0);function Kj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:w1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Gj(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 Rn,I0,Jj=(I0=class extends _u{constructor(t={}){super();le(this,Rn);this.config=t,te(this,Rn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Yp(s,n);let o=this.get(i);return o||(o=new qj({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){R(this,Rn).has(t.queryHash)||(R(this,Rn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,Rn).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,Rn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ut.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,Rn).get(t)}getAll(){return[...R(this,Rn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>my(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>my(t,r)):n}notify(t){ut.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ut.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ut.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Rn=new WeakMap,I0),Nn,lt,Ts,On,wr,L0,Yj=(L0=class extends S1{constructor(t){super();le(this,On);le(this,Nn);le(this,lt);le(this,Ts);this.mutationId=t.mutationId,te(this,lt,t.mutationCache),te(this,Nn,[]),this.state=t.state||Qj(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,Nn).includes(t)||(R(this,Nn).push(t),this.clearGcTimeout(),R(this,lt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){te(this,Nn,R(this,Nn).filter(n=>n!==t)),this.scheduleGc(),R(this,lt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,Nn).length||(this.state.status==="pending"?this.scheduleGc():R(this,lt).remove(this))}continue(){var t;return((t=R(this,Ts))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,c,u,d,h,f,g,v,x,m,y,w,S,k,E,_,T;const n=()=>{et(this,On,wr).call(this,{type:"continue"})};te(this,Ts,b1({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,P)=>{et(this,On,wr).call(this,{type:"failed",failureCount:C,error:P})},onPause:()=>{et(this,On,wr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,lt).canRun(this)}));const r=this.state.status==="pending",s=!R(this,Ts).canStart();try{if(r)n();else{et(this,On,wr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=R(this,lt).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&&et(this,On,wr).call(this,{type:"pending",context:P,variables:t,isPaused:s})}const C=await R(this,Ts).start();return await((u=(c=R(this,lt).config).onSuccess)==null?void 0:u.call(c,C,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,C,t,this.state.context)),await((g=(f=R(this,lt).config).onSettled)==null?void 0:g.call(f,C,null,this.state.variables,this.state.context,this)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,C,null,t,this.state.context)),et(this,On,wr).call(this,{type:"success",data:C}),C}catch(C){try{throw await((y=(m=R(this,lt).config).onError)==null?void 0:y.call(m,C,t,this.state.context,this)),await((S=(w=this.options).onError)==null?void 0:S.call(w,C,t,this.state.context)),await((E=(k=R(this,lt).config).onSettled)==null?void 0:E.call(k,void 0,C,this.state.variables,this.state.context,this)),await((T=(_=this.options).onSettled)==null?void 0:T.call(_,void 0,C,t,this.state.context)),C}finally{et(this,On,wr).call(this,{type:"error",error:C})}}finally{R(this,lt).runNext(this)}}},Nn=new WeakMap,lt=new WeakMap,Ts=new WeakMap,On=new WeakSet,wr=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),ut.batch(()=>{R(this,Nn).forEach(r=>{r.onMutationUpdate(t)}),R(this,lt).notify({mutation:this,type:"updated",action:t})})},L0);function Qj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xn,dn,Aa,M0,Xj=(M0=class extends _u{constructor(t={}){super();le(this,Xn);le(this,dn);le(this,Aa);this.config=t,te(this,Xn,new Set),te(this,dn,new Map),te(this,Aa,0)}build(t,n,r){const s=new Yj({mutationCache:this,mutationId:++Xa(this,Aa)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){R(this,Xn).add(t);const n=xl(t);if(typeof n=="string"){const r=R(this,dn).get(n);r?r.push(t):R(this,dn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,Xn).delete(t)){const n=xl(t);if(typeof n=="string"){const r=R(this,dn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&R(this,dn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=xl(t);if(typeof n=="string"){const r=R(this,dn).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=xl(t);if(typeof n=="string"){const s=(r=R(this,dn).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(){ut.batch(()=>{R(this,Xn).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,Xn).clear(),R(this,dn).clear()})}getAll(){return Array.from(R(this,Xn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gy(n,r))}findAll(t={}){return this.getAll().filter(n=>gy(t,n))}notify(t){ut.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ut.batch(()=>Promise.all(t.map(n=>n.continue().catch(ln))))}},Xn=new WeakMap,dn=new WeakMap,Aa=new WeakMap,M0);function xl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function wy(e){return{onFetch:(t,n)=>{var u,d,h,f,g;const r=t.options,s=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],o=((g=t.state.data)==null?void 0:g.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let v=!1;const x=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},m=y1(t.options,t.fetchOptions),y=async(w,S,k)=>{if(v)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const _=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return x(N),N})(),T=await m(_),{maxPages:C}=t.options,P=k?Fj:$j;return{pages:P(w.pages,T,C),pageParams:P(w.pageParams,S,C)}};if(s&&i.length){const w=s==="backward",S=w?Zj:xy,k={pages:i,pageParams:o},E=S(r,k);a=await y(k,E,w)}else{const w=e??i.length;do{const S=l===0?o[0]??r.initialPageParam:xy(r,a);if(l>0&&S==null)break;a=await y(a,S),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function xy(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 Zj(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 je,jr,Rr,Ni,Oi,Nr,Ii,Li,D0,eR=(D0=class{constructor(e={}){le(this,je);le(this,jr);le(this,Rr);le(this,Ni);le(this,Oi);le(this,Nr);le(this,Ii);le(this,Li);te(this,je,e.queryCache||new Jj),te(this,jr,e.mutationCache||new Xj),te(this,Rr,e.defaultOptions||{}),te(this,Ni,new Map),te(this,Oi,new Map),te(this,Nr,0)}mount(){Xa(this,Nr)._++,R(this,Nr)===1&&(te(this,Ii,v1.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,je).onFocus())})),te(this,Li,Ic.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,je).onOnline())})))}unmount(){var e,t;Xa(this,Nr)._--,R(this,Nr)===0&&((e=R(this,Ii))==null||e.call(this),te(this,Ii,void 0),(t=R(this,Li))==null||t.call(this),te(this,Li,void 0))}isFetching(e){return R(this,je).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,jr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,je).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,je).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Gh(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,je).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=R(this,je).get(r.queryHash),i=s==null?void 0:s.state.data,o=Nj(t,i);if(o!==void 0)return R(this,je).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ut.batch(()=>R(this,je).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,je).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,je);ut.batch(()=>
186{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,je);return ut.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ut.batch(()=>R(this,je).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(ln).catch(ln)}invalidateQueries(e,t={}){return ut.batch(()=>(R(this,je).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ut.batch(()=>R(this,je).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(ln)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ln)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,je).build(this,t);return n.isStaleByTime(Gh(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ln).catch(ln)}fetchInfiniteQuery(e){return e.behavior=wy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ln).catch(ln)}ensureInfiniteQueryData(e){return e.behavior=wy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ic.isOnline()?R(this,jr).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,je)}getMutationCache(){return R(this,jr)}getDefaultOptions(){return R(this,Rr)}setDefaultOptions(e){te(this,Rr,e)}setQueryDefaults(e,t){R(this,Ni).set(ha(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Ni).values()],n={};return t.forEach(r=>{fa(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,Oi).set(ha(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,Oi).values()],n={};return t.forEach(r=>{fa(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Rr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Yp(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===Qp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Rr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,je).clear(),R(this,jr).clear()}},je=new WeakMap,jr=new WeakMap,Rr=new WeakMap,Ni=new WeakMap,Oi=new WeakMap,Nr=new WeakMap,Ii=new WeakMap,Li=new WeakMap,D0),tR=b.createContext(void 0),nR=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(tR.Provider,{value:e,children:t}));/** 187 * @remix-run/router v1.23.0 188 * 189 * Copyright (c) Remix Software Inc. 190 * 191 * This source code is licensed under the MIT license found in the 192 * LICENSE.md file in the root directory of this source tree. 193 * 194 * @license MIT 195 */function Lc(){return Lc=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},Lc.apply(this,arguments)}var Lr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Lr||(Lr={}));const by="popstate";function rR(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return Yh("",{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:E1(s)}return iR(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function k1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sR(){return Math.random().toString(36).substr(2,8)}function Sy(e,t){return{usr:e.state,key:e.key,idx:t}}function Yh(e,t,n,r){return n===void 0&&(n=null),Lc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cu(t):t,{state:n,key:t&&t.key||r||sR()})}function E1(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 Cu(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 iR(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}
vendor: 3,678 bytes, line 195
195=r,o=s.history,a=Lr.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Lc({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){a=Lr.Pop;let x=u(),m=x==null?null:x-c;c=x,l&&l({action:a,location:v.location,delta:m})}function h(x,m){a=Lr.Push;let y=Yh(v.location,x,m);c=u()+1;let w=Sy(y,c),S=v.createHref(y);try{o.pushState(w,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(S)}i&&l&&l({action:a,location:v.location,delta:1})}function f(x,m){a=Lr.Replace;let y=Yh(v.location,x,m);c=u();let w=Sy(y,c),S=v.createHref(y);o.replaceState(w,"",S),i&&l&&l({action:a,location:v.location,delta:0})}function g(x){let m=s.location.origin!=="null"?s.location.origin:s.location.href,y=typeof x=="string"?x:E1(x);return y=y.replace(/ $/,"%20"),Tt(m,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,m)}let v={get action(){return a},get location(){return e(s,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(by,d),l=x,()=>{s.removeEventListener(by,d),l=null}},createHref(x){return t(s,x)},createURL:g,encodeLocation(x){let m=g(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:f,go(x){return o.go(x)}};return v}var ky;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ky||(ky={}));function oR(e,t,n){return n===void 0&&(n="/"),aR(e,t,n,!1)}function aR(e,t,n,r){let s=typeof t=="string"?Cu(t):t,i=C1(s.pathname||"/",n);if(i==null)return null;let o=_1(e);lR(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=wR(i);a=yR(o[l],c,r)}return a}function _1(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("/")&&(Tt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Ti([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Tt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),_1(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:mR(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 T1(i.path))s(i,o,l)}),t}function T1(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=T1(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 lR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gR(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const cR=/^:[\w-]+$/,uR=3,dR=2,hR=1,fR=10,pR=-2,Ey=e=>e==="*";function mR(e,t){let n=e.split("/"),r=n.length;return n.some(Ey)&&(r+=pR),t&&(r+=dR),n.filter(s=>!Ey(s)).reduce((s,i)=>s+(cR.test(i)?uR:i===""?hR:fR),r)}function gR(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 yR(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=_y({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=_y({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
vendor: 4,131 bytes, lines 195-204
195Object.assign(s,d.params),o.push({params:s,pathname:Ti([i,d.pathname]),pathnameBase:xR(Ti([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=Ti([i,d.pathnameBase]))}return o}function _y(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=vR(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:h,isOptional:f}=u;if(h==="*"){let v=a[d]||"";o=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const g=a[d];return f&&!g?c[h]=void 0:c[h]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function vR(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),k1(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 wR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return k1(!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 C1(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)||"/"}const Ti=e=>e.join("/").replace(/\/\/+/g,"/"),xR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function bR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const P1=["post","put","patch","delete"];new Set(P1);const SR=["get",...P1];new Set(SR);/** 196 * React Router v6.30.1 197 * 198 * Copyright (c) Remix Software Inc. 199 * 200 * This source code is licensed under the MIT license found in the 201 * LICENSE.md file in the root directory of this source tree. 202 * 203 * @license MIT 204 */function Mc(){return Mc=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},Mc.apply(this,arguments)}const kR=b.createContext(null),ER=b.createContext(null),A1=b.createContext(null),Pu=b.createContext(null),Au=b.createContext({outlet:null,matches:[],isDataRoute:!1}),j1=b.createContext(null);function Xp(){return b.useContext(Pu)!=null}function Zp(){return Xp()||Tt(!1),b.useContext(Pu).location}function _R(e,t){return TR(e,t)}function TR(e,t,n,r){Xp()||Tt(!1);let{navigator:s}=b.useContext(A1),{matches:i}=b.useContext(Au),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=Zp(),u;if(t){var d;let x=typeof t=="string"?Cu(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Tt(!1),u=x}else u=c;let h=u.pathname||"/",f=h;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=oR(e,{pathname:f}),v=RR(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Ti([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ti([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&v?b.createElement(Pu.Provider,{value:{location:Mc({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Lr.Pop}},v):v}function CR(){let e=LR(),t=bR(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application
204Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:s},n):null,null)}const PR=b.createElement(CR,null);class AR extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(Au.Provider,{value:this.props.routeContext},b.createElement(j1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jR(e){let{routeContext:t,match:n,children:r}=e,s=b.useContext(kR);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Au.Provider,{value:t},r)}function RR(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||Tt(!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:h,errors:f}=n,g=d.route.loader&&h[d.route.id]===void 0&&(!f||f[d.route.id]===void 0);if(d.route.lazy||g){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,h)=>{let f,g=!1,v=null,x=null;n&&(f=a&&d.route.id?a[d.route.id]:void 0,v=d.route.errorElement||PR,l&&(c<0&&h===0?(g=!0,x=null):c===h&&(g=!0,x=d.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,h+1)),y=()=>{let w;return f?w=v:g?w=x:d.route.Component?w=b.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,b.createElement(jR,{match:d,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?b.createElement(AR,{location:n.location,revalidation:n.revalidation,component:v,error:f,children:y(),routeC
204ontext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var Qh=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}(Qh||{});function NR(e){let t=b.useContext(ER);return t||Tt(!1),t}function OR(e){let t=b.useContext(Au);return t||Tt(!1),t}function IR(e){let t=OR(),n=t.matches[t.matches.length-1];return n.route.id||Tt(!1),n.route.id}function LR(){var e;let t=b.useContext(j1),n=NR(Qh.UseRouteError),r=IR(Qh.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function MR(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Jl(e){Tt(!1)}function DR(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Lr.Pop,navigator:i,static:o=!1,future:a}=e;Xp()&&Tt(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:i,static:o,future:Mc({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=Cu(r));let{pathname:u="/",search:d="",hash:h="",state:f=null,key:g="default"}=r,v=b.useMemo(()=>{let x=C1(u,l);return x==null?null:{location:{pathname:x,search:d,hash:h,state:f,key:g},navigationType:s}},[l,u,d,h,f,g,s]);return v==null?null:b.createElement(A1.Provider,{value:c},b.createElement(Pu.Provider,{children:n,value:v}))}function $R(e){let{children:t,location:n}=e;return _R(Xh(t),n)}new Promise(()=>{});function Xh(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,s)=>{if(!b.isValidElement(r))return;let i=[...t,s];if(r.type===b.Fragment){n.push.apply(n,Xh(r.props.children,i));return}r.type!==Jl&&Tt(!1),!r.props.index||!r.props.children||Tt(!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=Xh(r.props.children,i)),n.push(o)}),n}/** 205 * React Router DOM v6.30.1 206 * 207 * Copyright (c) Remix Software Inc. 208 * 209 * This source code is licensed under the MIT license found in the 210 * LICENSE.md file in the root directory of this source tree. 211 * 212 * @license MIT 213 */const FR="6";try{window.__reactRouterVersion=FR}catch{}const VR="startTransition",Ty=J0[VR];function UR(e){let{basename:t,children:n,future:r,window:s}=e,i=b.useRef();i.current==null&&(i.current=rR({window:s,v5Compat:!0}));let o=i.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=b.useCallback(d=>{c&&Ty?Ty(()=>l(d)):l(d)},[l,c]);return b.useLayoutEffect(()=>o.listen(u),[o,u]),b.useEffect(()=>MR(r),[r]),b.createElement(DR,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}var Cy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cy||(Cy={}));var Py;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Py||(Py={}));const em=b.createContext({});function tm(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const BR=typeof window<"u",R1=BR?b.useLayoutEffect:b.useEffect,ju=b.createContext(null);function nm(e,t){e.indexOf(t)===-1&&e.push(t)}function Dc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Bn=(e,t,n)=>n>t?t:n<e?e:n;let Ru=()=>{},Wi=()=>{};const Zr={},N1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function O1(e){return typeof e=="object"&&e!==null}const I1=e=>/^0[^.\s]+$/u.test(e);function L1(e){let t;return()=>(t===void 0&&(t=e()),t)}const Kt=e=>e,zR=(e,t)=>n=>t(e(n)),$a=(...e)=>e.reduce(zR),pa=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class rm{constructor(){this.subscriptions=[]}add(t){return nm(this.subscriptions,t),()=>Dc(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 _t=e=>e*1e3,Wt=e=>e/1e3;function M1(e,t){return t?e*(1e3/t):0}const D1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,HR=1e-7,WR=12;
vendor: 8,459 bytes, line 213
213function qR(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=D1(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>HR&&++a<WR);return o}function Fa(e,t,n,r){if(e===t&&n===r)return Kt;const s=i=>qR(i,0,1,e,n);return i=>i===0||i===1?i:D1(s(i),t,r)}const $1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,F1=e=>t=>1-e(1-t),V1=Fa(.33,1.53,.69,.99),sm=F1(V1),U1=$1(sm),B1=e=>e>=1?1:(e*=2)<1?.5*sm(e):.5*(2-Math.pow(2,-10*(e-1))),im=e=>1-Math.sin(Math.acos(e)),z1=F1(im),H1=$1(im),KR=Fa(.42,0,1,1),GR=Fa(0,0,.58,1),W1=Fa(.42,0,.58,1),JR=e=>Array.isArray(e)&&typeof e[0]!="number",q1=e=>Array.isArray(e)&&typeof e[0]=="number",Ay={linear:Kt,easeIn:KR,easeInOut:W1,easeOut:GR,circIn:im,circInOut:H1,circOut:z1,backIn:sm,backInOut:U1,backOut:V1,anticipate:B1},YR=e=>typeof e=="string",jy=e=>{if(q1(e)){Wi(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return Fa(t,n,r,s)}else if(YR(e))return Wi(Ay[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ay[e];return e},bl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Ry={value:null,addProjectionMetrics:null};function QR(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,h=!1,f=!1)=>{const v=f&&s?n:r;return h&&o.add(d),v.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0;const h=n;n=r,r=h,n.forEach(c),t&&Ry.value&&Ry.value.frameloop[t].push(l),l=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const XR=40;function K1(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=bl.reduce((w,S)=>(w[S]=QR(i,t?S:void 0),w),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:f,postRender:g}=o,v=()=>{const w=Zr.useManualTiming,S=w?s.timestamp:performance.now();n=!1,w||(s.delta=r?1e3/60:Math.max(Math.min(S-s.timestamp,XR),1)),s.timestamp=S,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),h.process(s),f.process(s),g.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(v))},x=()=>{n=!0,r=!0,s.isProcessing||e(v)};return{schedule:bl.reduce((w,S)=>{const k=o[S];return w[S]=(E,_=!1,T=!1)=>(n||x(),k.schedule(E,_,T)),w},{}),cancel:w=>{for(let S=0;S<bl.length;S++)o[bl[S]].cancel(w)},state:s,steps:o}}const{schedule:de,cancel:es,state:Ye,steps:Ed}=K1(typeof requestAnimationFrame<"u"?requestAnimationFrame:Kt,!0);let Yl;function ZR(){Yl=void 0}const dt={now:()=>(Yl===void 0&&dt.set(Ye.isProcessing||Zr.useManualTiming?Ye.timestamp:performance.now()),Yl),set:e=>{Yl=e,queueMicrotask(ZR)}},G1=e=>t=>typeof t=="string"&&t.startsWith(e),J1=G1("--"),eN=G1("var(--"),om=e=>eN(e)?tN.test(e.split("/*")[0].trim()):!1,tN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ny(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const to={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ma={...to,transform:e=>Bn(0,1,e)},Sl={...to,default:1},Fo=e=>Math.round(e*1e5)/1e5,am=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function nN(e){return e==null}const rN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,lm=(e,t)=>n=>!!(typeof n=="string"&&rN.test(n)&&n.startsWith(e)||t&&!nN(n)&&Object.prototype.hasOwnProperty.call(n,t)),Y1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(am);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},sN=e=>Bn(0,255,e),_d={...to,transform:e=>Math.round(sN(e))},vs={test:lm("rgb","red"),parse:Y1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+_d.transform(e)+", "+_d.transform(t)+", "+_d.transform(n)+", "+Fo(ma.transform(r))+")"};function iN(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 Zh={test:lm("#"),parse:iN,transform:vs.transform},Va=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Va("deg"),Fn=Va("%"),B=Va("px"),oN=Va("vh"),aN=Va("vw"),Oy={...Fn,parse:e=>Fn.parse(e)/100,transform:e=>Fn.transform(e*100)},pi={test:lm("hsl","hue"),parse:Y1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fn.transform(Fo(t))+", "+Fn.transform(Fo(n))+", "+Fo(ma.transform(r))+")"},Me={test:e=>vs.test(e)||Zh.test(e)||pi.test(e),parse:e=>vs.test(e)?vs.parse(e):pi.test(e)?pi.parse(e):Zh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vs.transform(e):pi.transform(e),getAnimatableNone:e=>{const t=Me.parse(e);return t.alpha=0,Me.transform(t)}},lN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function cN(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(am))==null?void 0:t.length)||0)+(((n=e.match(lN))==null?void 0:n.length)||0)>0}const Q1="number",X1="color",uN="var",dN="var(",Iy="${}",hN=/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 qi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(hN,l=>(Me.test(l)?(r.color.push(i),s.push(X1),n.push(Me.parse(l))):l.startsWith(dN)?(r.var.push(i),s.push(uN),n.push(l)):(r.number.push(i),s.push(Q1),n.push(parseFloat(l))),++i,Iy)).split(Iy);return{values:n,split:a,indexes:r,types:s}}function fN(e){return qi(e).values}function Z1({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===Q1?s+=Fo(r[i]):o===X1?s+=Me.transform(r[i]):s+=r[i]}return s}}function pN(e){return Z1(qi(e))}const mN=e=>typeof e=="number"?0:Me.test(e)?Me.getAnimatableNone(e):e,gN=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:mN(e);function yN(e){const t=qi(e);return Z1(t)(t.values.map((r,s)=>gN(r,t.split[s])))}const yn={test:cN,parse:fN,createTransformer:pN,getAnimatableNone:yN};function Td(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 vN({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=Td(l,a,e+1/3),i=Td(l,a,e),o=Td(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function $c(e,t){return n=>n>0?t:e}const ve=(e,t,n)=>e+(t-e)*n,Cd=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},wN=[Zh,vs,pi],xN=e=>wN.find(t=>t.test(e));function Ly(e){const t=xN(e);if(Ru(!!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===pi&&(n=vN(n)),n}const My=(e,t)=>{const n=Ly(e),r=Ly(t);if(!n||!r)return $c(e,t);const s={...n};return i=>(s.red=Cd(n.red,r.red,i),s.green=Cd(n.green,r.green,i),s.blue=Cd(n.blue,r.blue,i),s.alpha=ve(n.alpha,r.alpha,i),vs.transform(s))},ef=new Set(["none","hidden"]);function bN(e,t){return ef.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function SN(e,t){return n=>ve(e,t,n)}function cm(e){return typeof e=="number"?SN:typeof e=="string"?om(e)?$c:Me.test(e)?My:_N:Array.isArray(e)?eS:typeof e=="object"?Me.test(e)?My:kN:$c}function eS(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>cm(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function kN(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=cm(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function EN(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 _N=(e,t)=>{const n=yn.createTransformer(t),r=qi(e),s=qi(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?ef.has(e)&&!s.values.length||ef.has(t)&&!r.values.length?bN(e,t):$a(eS(EN(r,s),s.values),n):(Ru(!0,`Complex values '${e}' and '${t}
213' 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"),$c(e,t))};function tS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ve(e,t,n):cm(e)(e,t)}const TN=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>de.update(t,n),stop:()=>es(t),now:()=>Ye.isProcessing?Ye.timestamp:dt.now()}},nS=(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)})`},Fc=2e4;function um(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Fc;)t+=n,r=e.next(t);return t>=Fc?1/0:t}function CN(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(um(r),Fc);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Wt(s)}}const ke={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 tf(e,t){return e*Math.sqrt(1-t*t)}const PN=12;function AN(e,t,n){let r=n;for(let s=1;s<PN;s++)r=r-e(r)/t(r);return r}const Pd=.001;function jN({duration:e=ke.duration,bounce:t=ke.bounce,velocity:n=ke.velocity,mass:r=ke.mass}){let s,i;Ru(e<=_t(ke.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=Bn(ke.minDamping,ke.maxDamping,o),e=Bn(ke.minDuration,ke.maxDuration,Wt(e)),o<1?(s=c=>{const u=c*o,d=u*e,h=u-n,f=tf(c,o),g=Math.exp(-d);return Pd-h/f*g},i=c=>{const d=c*o*e,h=d*n+n,f=Math.pow(o,2)*Math.pow(c,2)*e,g=Math.exp(-d),v=tf(Math.pow(c,2),o);return(-s(c)+Pd>0?-1:1)*((h-f)*g)/v}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Pd+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=AN(s,i,a);if(e=_t(e),isNaN(l))return{stiffness:ke.stiffness,damping:ke.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const RN=["duration","bounce"],NN=["stiffness","damping","mass"];function Dy(e,t){return t.some(n=>e[n]!==void 0)}function ON(e){let t={velocity:ke.velocity,stiffness:ke.stiffness,damping:ke.damping,mass:ke.mass,isResolvedFromDuration:!1,...e};if(!Dy(e,NN)&&Dy(e,RN))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Bn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ke.mass,stiffness:s,damping:i}}else{const n=jN({...e,velocity:0});t={...t,...n,mass:ke.mass},t.isResolvedFromDuration=!0}return t}function Vc(e=ke.visualDuration,t=ke.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:h,isResolvedFromDuration:f}=ON({...n,velocity:-Wt(n.velocity||0)}),g=h||0,v=c/(2*Math.sqrt(l*u)),x=o-i,m=Wt(Math.sqrt(l/u)),y=Math.abs(x)<5;r||(r=y?ke.restSpeed.granular:ke.restSpeed.default),s||(s=y?ke.restDelta.granular:ke.restDelta.default);let w,S,k,E,_,T;if(v<1)k=tf(m,v),E=(g+v*m*x)/k,w=P=>{const N=Math.exp(-v*m*P);return o-N*(E*Math.sin(k*P)+x*Math.cos(k*P))},_=v*m*E+x*k,T=v*m*x-E*k,S=P=>Math.exp(-v*m*P)*(_*Math.sin(k*P)+T*Math.cos(k*P));else if(v===1){w=N=>o-Math.exp(-m*N)*(x+(g+m*x)*N);const P=g+m*x;S=N=>Math.exp(-m*N)*(m*P*N-g)}else{const P=m*Math.sqrt(v*v-1);w=I=>{const K=Math.exp(-v*m*I),U=Math.min(P*I,300);return o-K*((g+v*m*x)*Math.sinh(U)+P*x*Math.cosh(U))/P};const N=(g+v*m*x)/P,O=v*m*N-x*P,V=v*m*x-N*P;S=I=>{const K=Math.exp(-v*m*I),U=Math.min(P*I,300);return K*(O*Math.sinh(U)+V*Math.cosh(U))}}const C={calculatedDuration:f&&d||null,velocity:P=>_t(S(P)),next:P=>{if(!f&&v<1){const O=Math.exp(-v*m*P),V=Math.sin(k*P),I=Math.cos(k*P),K=o-O*(E*V+x*I),U=_t(O*(_*V+T*I));return a.done=Math.abs(U)<=r&&Math.abs(o-K)<=s,a.value=a.done?o:K,a}const N=w(P);if(f)a.done=P>=d;else{const O=_t(S(P));a.done=Math.abs(O)<=r&&Math.abs(o-N)<=s}return a.value=a.done?o:N,a},toString:()=>{const P=Math.min(um(C),Fc),N=nS(O=>C.next(P*O).value,P,30);return P+"ms "+N},toTransition:()=>{}};return C}Vc.applyToOptions=e=>{const t=CN(e,100,Vc);return e.ease=t.ease,e.duration=_t(t.duration),e.type="keyframes",e};const IN=5;function rS(e,t,n){const r=Math.max(t-IN,0);return M1(n-e(r),t-r)}function nf({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],h={done:!1,value:d},f=T=>a!==void 0&&T<a||l!==void 0&&T>l,g=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let v=n*t;const x=d+v,m=o===void 0?x:o(x);m!==x&&(v=m-d);const y=T=>-v*Math.exp(-T/r),w=T=>m+y(T),S=T=>{const C=y(T),P=w(T);h.done=Math.abs(C)<=c,h.value=h.done?m:P};let k,E;const _=T=>{f(h.value)&&(k=T,E=Vc({keyframes:[h.value,g(h.value)],velocity:rS(w,T,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:T=>{let C=!1;return!E&&k===void 0&&(C=!0,S(T),_(T)),k!==void 0&&T>
vendor: 15,355 bytes, line 213
213=k?E.next(T-k):(!C&&S(T),h)}}}function LN(e,t,n){const r=[],s=n||Zr.mix||tS,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]||Kt:t;a=$a(l,a)}r.push(a)}return r}function MN(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Wi(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=LN(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 h=pa(e[d],e[d+1],u);return a[d](h)};return n?u=>c(Bn(e[0],e[i-1],u)):c}function DN(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=pa(0,t,r);e.push(ve(n,1,s))}}function $N(e){const t=[0];return DN(t,e.length-1),t}function FN(e,t){return e.map(n=>n*t)}function VN(e,t){return e.map(()=>t||W1).splice(0,e.length-1)}function Vo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=JR(r)?r.map(jy):jy(r),i={done:!1,value:t[0]},o=FN(n&&n.length===t.length?n:$N(t),e),a=MN(o,t,{ease:Array.isArray(s)?s:VN(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const UN=e=>e!==null;function Nu(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(UN),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const BN={decay:nf,inertia:nf,tween:Vo,keyframes:Vo,spring:Vc};function sS(e){typeof e.type=="string"&&(e.type=BN[e.type])}class dm{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 zN=e=>e/100;class Uc extends dm{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!==dt.now()&&this.tick(dt.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;sS(t);const{type:n=Vo,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Vo;l!==Vo&&typeof a[0]!="number"&&(this.mixKeyframes=$a(zN,tS(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=um(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:h,repeatDelay:f,type:g,onUpdate:v,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?m<0:m>s;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let w=this.currentTime,S=r;if(d){const T=Math.min(this.currentTime,s)/a;let C=Math.floor(T),P=T%1;!P&&T>=1&&(P=1),P===1&&C--,C=Math.min(C,d+1),!!(C%2)&&(h==="reverse"?(P=1-P,f&&(P-=f/a)):h==="mirror"&&(S=o)),w=Bn(0,1,P)*a}let k;y?(this.delayState.value=u[0],k=this.delayState):k=S.next(w),i&&!y&&(k.value=i(k.value));let{done:E}=k;!y&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return _&&g!==nf&&(k.value=Nu(u,this.options,x,this.speed)),v&&v(k.value),_&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return Wt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Wt(t)}get time(){return Wt(this.currentTime)}set time(t){t=_t(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 rS(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(dt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Wt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=TN,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(dt.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 HN(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ws=e=>e*180/Math.PI,rf=e=>{const t=ws(Math.atan2(e[1],e[0]));return sf(t)},WN={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:rf,rotateZ:rf,skewX:e=>ws(Math.atan(e[1])),skewY:e=>ws(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},sf=e=>(e=e%360,e<0&&(e+=360),e),$y=rf,Fy=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Vy=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),qN={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Fy,scaleY:Vy,scale:e=>(Fy(e)+Vy(e))/2,rotateX:e=>sf(ws(Math.atan2(e[6],e[5]))),rotateY:e=>sf(ws(Math.atan2(-e[2],e[0]))),rotateZ:$y,rotate:$y,skewX:e=>ws(Math.atan(e[4])),skewY:e=>ws(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function of(e){return e.includes("scale")?1:0}function af(e,t){if(!e||e==="none")return of(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=qN,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=WN,s=a}if(!s)return of(t);const i=r[t],o=s[1].split(",").map(GN);return typeof i=="function"?i(o):o[i]}const KN=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return af(n,t)};function GN(e){return parseFloat(e.trim())}const no=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ro=new Set(no),Uy=e=>e===to||e===B,JN=new Set(["x","y","z"]),YN=no.filter(e=>!JN.has(e));function QN(e){const t=[];return YN.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mr={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})=>af(t,"x"),y:(e,{transform:t})=>af(t,"y")};Mr.translateX=Mr.x;Mr.translateY=Mr.y;const As=new Set;let lf=!1,cf=!1,uf=!1;function iS(){if(cf){const e=Array.from(As).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=QN(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)})}cf=!1,lf=!1,As.forEach(e=>e.complete(uf)),As.clear()}function oS(){As.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cf=!0)})}function XN(){uf=!0,oS(),iS(),uf=!1}class hm{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?(As.add(this),lf||(lf=!0,de.read(oS),de.resolveKeyframes(iS))):(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])}HN(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),As.delete(this)}cancel(){this.state==="scheduled"&&(As.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ZN=e=>e.startsWith("--");function aS(e,t,n){ZN(t)?e.style.setProperty(t,n):e.style[t]=n}const e2={};function lS(e,t){const n=L1(e);return()=>e2[t]??n()}const t2=lS(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),cS=lS(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_o=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,By={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_o([0,.65,.55,1]),circOut:_o([.55,0,1,.45]),backIn:_o([.31,.01,.66,-.59]),backOut:_o([.33,1.53,.69,.99])};function uS(e,t){if(e)return typeof e=="function"?cS()?nS(e,t):"ease-out":q1(e)?_o(e):Array.isArray(e)?e.map(n=>uS(n,t)||By.easeOut):By[e]}function n2(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=uS(a,s);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function dS(e){return typeof e=="function"&&"applyToOptions"in e}function r2({type:e,...t}){return dS(e)&&cS()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class hS extends dm{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,Wi(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=r2(t);this.animation=n2(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Nu(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),aS(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 Wt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Wt(t)}get time(){return Wt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_t(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&&t2()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Kt):s(this)}}const fS={anticipate:B1,backInOut:U1,circInOut:H1};function s2(e){return e in fS}function i2(e){typeof e.ease=="string"&&s2(e.ease)&&(e.ease=fS[e.ease])}const Ad=10;class o2 extends hS{constructor(t){i2(t),sS(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 Uc({...o,autoplay:!1}),l=Math.max(Ad,dt.now()-this.startTime),c=Bn(0,Ad,l-Ad),u=a.sample(l).value,{name:d}=this.options;i&&d&&aS(i,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const zy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(yn.test(e)||e==="0")&&!e.startsWith("url("));function a2(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 l2(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=zy(s,t),a=zy(i,t);return Ru(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:a2(e)||(n==="spring"||dS(n))&&r}function df(e){e.duration=0,e.type="keyframes"}const pS=new Set(["opacity","clipPath","filter","transform"]),c2=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function u2(e){for(let t=0;t<e.length;
213t++)if(typeof e[t]=="string"&&c2.test(e[t]))return!0;return!1}const d2=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),h2=L1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function f2(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 h2()&&n&&(pS.has(n)||d2.has(n)&&u2(a))&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const p2=40;class m2 extends dm{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 g;super(),this.stop=()=>{var v,x;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=dt.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},f=(u==null?void 0:u.KeyframeResolver)||hm;this.keyframeResolver=new f(a,(v,x,m)=>this.onKeyframesResolved(v,x,h,!m),l,c,u),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(t,n,r,s){var m,y;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=dt.now();let d=!0;l2(t,i,o,a)||(d=!1,(Zr.instantAnimations||!l)&&(u==null||u(Nu(t,r,n))),t[0]=t[t.length-1],df(r),r.repeat=0);const f={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>p2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},g=d&&!c&&f2(f),v=(y=(m=f.motionValue)==null?void 0:m.owner)==null?void 0:y.current;let x;if(g)try{x=new o2({...f,element:v})}catch{x=new Uc(f)}else x=new Uc(f);x.finished.then(()=>{this.notifyFinished()}).catch(Kt),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}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(),XN()),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 mS(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 g2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function y2(e){const t=g2.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const v2=4;function gS(e,t,n=1){Wi(n<=v2,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=y2(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return N1(o)?parseFloat(o):o}return om(s)?gS(s,t,n+1):s}const w2={type:"spring",stiffness:500,damping:25,restSpeed:10},x2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),b2={type:"keyframes",duration:.8},S2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},k2=(e,{keyframes:t})=>t.length>2?b2:ro.has(e)?e.startsWith("scale")?x2(t[1]):w2:S2;function yS(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function fm(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?yS(n,e):n}
vendor: 9,103 bytes, line 213
213const E2=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function _2(e){for(const t in e)if(!E2.has(t))return!0;return!1}const pm=(e,t,n,r={},s,i)=>o=>{const a=fm(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-_t(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};_2(a)||Object.assign(u,k2(e,u)),u.duration&&(u.duration=_t(u.duration)),u.repeatDelay&&(u.repeatDelay=_t(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(df(u),u.delay===0&&(d=!0)),(Zr.instantAnimations||Zr.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(d=!0,df(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=Nu(u.keyframes,a);if(h!==void 0){de.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Uc(u):new m2(u)};function Hy(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function mm(e,t,n,r){if(typeof t=="function"){const[s,i]=Hy(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]=Hy(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function js(e,t,n){const r=e.getProps();return mm(r,t,n!==void 0?n:r.custom,e)}const vS=new Set(["width","height","top","left","right","bottom",...no]),Wy=30,T2=e=>!isNaN(parseFloat(e));class C2{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=dt.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=dt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=T2(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 rm);const r=this.events[t].add(n);return t==="change"?()=>{r(),de.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=dt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Wy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wy);return M1(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 Ki(e,t){return new C2(e,t)}const hf=e=>Array.isArray(e);function P2(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ki(n))}function A2(e){return hf(e)?e[e.length-1]||0:e}function j2(e,t){const n=js(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=A2(i[o]);P2(e,o,a)}}const Qe=e=>!!(e&&e.getVelocity);function R2(e){return!!(Qe(e)&&e.add)}function ff(e,t){const n=e.getValue("willChange");if(R2(n))return n.add(t);if(!n&&Zr.WillChange){const r=new Zr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function gm(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const N2="framerAppearId",wS="data-"+gm(N2);function xS(e){return e.props[wS]}function O2({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function bS(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?yS(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 h in a){const f=e.getValue(h,e.latestValues[h]??null),g=a[h];if(g===void 0||d&&O2(d,h))continue;const v={delay:n,...fm(i||{},h)},x=f.get();if(x!==void 0&&!f.isAnimating()&&!Array.isArray(g)&&g===x&&!v.velocity){de.update(()=>f.set(g));continue}let m=!1;if(window.MotionHandoffAnimation){const S=xS(e);if(S){const k=window.MotionHandoffAnimation(S,h,de);k!==null&&(v.startTime=k,m=!0)}}ff(e,h);const y=c??e.shouldReduceMotion;f.start(pm(h,f,g,y&&vS.has(h)?{type:!1}:v,e,m));const w=f.animation;w&&u.push(w)}if(o){const h=()=>de.update(()=>{o&&j2(e,o)});u.length?Promise.all(u).then(h):h()}return u}function pf(e,t,n={}){var l;const r=js(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(bS(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=s;return I2(e,t,c,u,d,h,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 I2(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(pf(l,t,{...o,delay:n+(typeof r=="function"?0:r)+mS(e.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function L2(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>pf(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=pf(e,t,n);else{const s=typeof t=="function"?js(e,t,n.custom):t;r=Promise.all(bS(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const M2={test:e=>e==="auto",parse:e=>e},SS=e=>t=>t.test(e),kS=[to,B,Fn,xr,aN,oN,M2],qy=e=>kS.find(SS(e));function D2(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||I1(e):!0}const $2=new Set(["brightness","contrast","saturate","opacity"]);function F2(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(am)||[];if(!r)return e;const s=n.replace(r,"");let i=$2.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const V2=/\b([a-z-]*)\(.*?\)/gu,mf={...yn,getAnimatableNone:e=>{const t=e.match(V2);return t?t.map(F2).join(" "):e}},gf={...yn,getAnimatableNone:e=>{const t=yn.parse(e);return yn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Ky={...to,transform:Math.round},U2={rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Sl,scaleX:Sl,scaleY:Sl,scaleZ:Sl,skew:xr,skewX:xr,skewY:xr,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:ma,originX:Oy,originY:Oy,originZ:B},ym={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,inset:B,insetBlock:B,insetBlockStart:B,insetBlockEnd:B,insetInline:B,insetInlineStart:B,insetInlineEnd:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,paddingBlock:B,paddingBlockStart:B,paddingBlockEnd:B,paddingInline:B,paddingInlineStart:B,paddingInlineEnd:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,marginBlock:B,marginBlockStart:B,marginBlockEnd:B,marginInline:B,marginInlineStart:B,marginInlineEnd:B,fontSize:B,backgroundPositionX:B,backgroundPositionY:B,...U2,zIndex:Ky,fillOpacity:ma,strokeOpacity:ma,numOctaves:Ky},B2={...ym,color:Me,backgroundColor:Me,outlineColor:Me,fill:Me,stroke:Me,borderColor:Me,borderTopColor:Me,borderRightColor:Me,borderBottomColor:Me,borderLeftColor:Me,filter:mf,WebkitFilter:mf,mask:gf,WebkitMask:gf},ES=e=>B2[e],z2=new Set([mf,gf]);function _S(e,t){let n=ES(e);return z2.has(n)||(n=yn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 1,717 bytes, line 213
213const H2=new Set(["auto","none","0"]);function W2(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!H2.has(i)&&qi(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=_S(n,s)}class q2 extends hm{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(),om(d))){const h=gS(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!vS.has(r)||t.length!==2)return;const[s,i]=t,o=qy(s),a=qy(i),l=Ny(s),c=Ny(i);if(l!==c&&Mr[r]){this.needsMeasurement=!0;return}if(o!==a)if(Uy(o)&&Uy(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else Mr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||D2(t[s]))&&r.push(s);r.length&&W2(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=Mr[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]=Mr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
vendor: 40,849 bytes, line 213
213h(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function vm(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 TS=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ql(e){return O1(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:wm,cancel:uF}=K1(queueMicrotask,!1),sn={x:!1,y:!1};function CS(){return sn.x||sn.y}function K2(e){return e==="x"||e==="y"?sn[e]?null:(sn[e]=!0,()=>{sn[e]=!1}):sn.x||sn.y?null:(sn.x=sn.y=!0,()=>{sn.x=sn.y=!1})}function PS(e,t){const n=vm(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function G2(e){return!(e.pointerType==="touch"||CS())}function J2(e,t,n={}){const[r,s,i]=PS(e,n);return r.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",g)},d=x=>{c&&(c(x),c=void 0),u()},h=x=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(x))},f=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},g=x=>{if(x.pointerType!=="touch"){if(a){l=!0;return}d(x)}},v=x=>{if(!G2(x))return;l=!1;const m=t(o,x);typeof m=="function"&&(c=m,o.addEventListener("pointerleave",g,s))};o.addEventListener("pointerenter",v,s),o.addEventListener("pointerdown",f,s)}),i}const AS=(e,t)=>t?e===t?!0:AS(e,t.parentElement):!1,xm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Y2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Q2(e){return Y2.has(e.tagName)||e.isContentEditable===!0}const X2=new Set(["INPUT","SELECT","TEXTAREA"]);function Z2(e){return X2.has(e.tagName)||e.isContentEditable===!0}const Xl=new WeakSet;function Gy(e){return t=>{t.key==="Enter"&&e(t)}}function jd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const eO=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Gy(()=>{if(Xl.has(n))return;jd(n,"down");const s=Gy(()=>{jd(n,"up")}),i=()=>jd(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 Jy(e){return xm(e)&&!CS()}const Yy=new WeakSet;function tO(e,t,n={}){const[r,s,i]=PS(e,n),o=a=>{const l=a.currentTarget;if(!Jy(a)||Yy.has(a))return;Xl.add(l),n.stopPropagation&&Yy.add(a);const c=t(l,a),u=(f,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),Xl.has(l)&&Xl.delete(l),Jy(f)&&typeof c=="function"&&c(f,{success:g})},d=f=>{u(f,l===window||l===document||n.useGlobalTarget||AS(l,f.target))},h=f=>{u(f,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",h,s)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),Ql(a)&&(a.addEventListener("focus",c=>eO(c,s)),!Q2(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function bm(e){return O1(e)&&"ownerSVGElement"in e}const Zl=new WeakMap;let br;const jS=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:bm(r)&&"getBBox"in r?r.getBBox()[t]:r[n],nO=jS("inline","width","offsetWidth"),rO=jS("block","height","offsetHeight");function sO({target:e,borderBoxSize:t}){var n;(n=Zl.get(e))==null||n.forEach(r=>{r(e,{get width(){return nO(e,t)},get height(){return rO(e,t)}})})}function iO(e){e.forEach(sO)}function oO(){typeof ResizeObserver>"u"||(br=new ResizeObserver(iO))}function aO(e,t){br||oO();const n=vm(e);return n.forEach(r=>{let s=Zl.get(r);s||(s=new Set,Zl.set(r,s)),s.add(t),br==null||br.observe(r)}),()=>{n.forEach(r=>{const s=Zl.get(r);s==null||s.delete(t),s!=null&&s.size||br==null||br.unobserve(r)})}}const ec=new Set;let mi;function lO(){mi=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ec.forEach(t=>t(e))},window.addEventListener("resize",mi)}function cO(e){return ec.add(e),mi||lO(),()=>{ec.delete(e),!ec.size&&typeof mi=="function"&&(window.removeEventListener("resize",mi),mi=void 0)}}function Qy(e,t){return typeof e=="function"?cO(e):aO(e,t)}function uO(e){return bm(e)&&e.tagName==="svg"}const dO=[...kS,Me,yn],hO=e=>dO.find(SS(e)),Xy=()=>({translate:0,scale:1,origin:0,originPoint:0}),gi=()=>({x:Xy(),y:Xy()}),Zy=()=>({min:0,max:0}),Fe=()=>({x:Zy(),y:Zy()}),fO=new WeakMap;function Ou(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ga(e){return typeof e=="string"||Array.isArray(e)}const Sm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],km=["initial",...Sm];function Iu(e){return Ou(e.animate)||km.some(t=>ga(e[t]))}function RS(e){return!!(Iu(e)||e.variants)}function pO(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Qe(s))e.addValue(r,s);else if(Qe(i))e.addValue(r,Ki(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,Ki(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yf={current:null},NS={current:!1},mO=typeof window<"u";function gO(){if(NS.current=!0,!!mO)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yf.current=e.matches;e.addEventListener("change",t),t()}else yf.current=!1}const ev=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Bc={};function OS(e){Bc=e}function yO(){return Bc}class vO{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=hm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=dt.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,de.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=Iu(n),this.isVariantNode=RS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const g=h[f];c[f]!==void 0&&Qe(g)&&g.set(c[f])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,fO.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:(NS.current||gO(),this.shouldReduceMotion=yf.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(),es(this.notifyUpdate),es(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&&pS.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new hS({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:_t(u)}),h=o(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const r=ro.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&de.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 Bc){const n=Bc[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):Fe()}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<ev.length;r++){const s=ev[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=pO(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=Ki(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"&&(N1(r)||I1(r))?r=parseFloat(r):!hO(r)&&yn.test(n)&&(r=_S(t,n)),this.setBaseTarget(t,Qe(r)?r.get():r)),Qe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=mm(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Qe(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new rm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){wm.render(this.render)}}class IS extends vO{constructor(){super(...arguments),this.KeyframeResolver=q2}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Qe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ss{constructor(t){this.isMounted=!1,this.node=t}update(){}}function LS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function wO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function xO(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 Rd(e){return e===void 0||e===1}function vf({scale:e,scaleX:t,scaleY:n}){return!Rd(e)||!Rd(t)||!Rd(n)}function fs(e){return vf(e)||MS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function MS(e){return tv(e.x)||tv(e.y)}function tv(e){return e&&e!=="0%"}function zc(e,t,n){const r=e-n,s=t*r;return n+s}function nv(e,t,n,r,s){return s!==void 0&&(e=zc(e,s,r)),zc(e,n,r)+t}function wf(e,t=0,n=1,r,s){e.min=nv(e.min,t,n,r,s),e.max=nv(e.max,t,n,r,s)}function DS(e,{x:t,y:n}){wf(e.x,t.translate,t.scale,t.originPoint),wf(e.y,n.translate,n.scale,n.originPoint)}const rv=.999999999999,sv=1.0000000000001;function bO(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&&(In(e.x,-i.scroll.offset.x),In(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,DS(e,o)),r&&fs(i.latestValues)&&tc(e,i.latestValues,(a=i.layout)==null?void 0:a.layoutBox))}t.x<sv&&t.x>rv&&(t.x=1),t.y<sv&&t.y>rv&&(t.y=1)}function In(e,t){e.min+=t,e.max+=t}function iv(e,t,n,r,s=.5){const i=ve(e.min,e.max,s);wf(e,t,n,i,r)}function ov(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function tc(e,t,n){const r=n??e;iv(e.x,ov(t.x,r.x),t.scaleX,t.scale,t.originX),iv(e.y,ov(t.y,r.y),t.scaleY,t.scale,t.originY)}function $S(e,t){return LS(xO(e.getBoundingClientRect(),t))}function SO(e,t,n){const r=$S(e,n),{scroll:s}=t;return s&&(In(r.x,s.offset.x),In(r.y,s.offset.y)),r}const kO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},EO=no.length;function _O(e,t,n){let r="",s=!0;for(let i=0;i<EO;i++){const o=no[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=TS(a,ym[o]);if(!l){s=!1;const u=kO[o]||o;r+=`${u}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Em(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(ro.has(l)){o=!0;continue}else if(J1(l)){s[l]=c;continue}else{const u=TS(c,ym[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=_O(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 FS(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 av(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=av(e,t.target.x),r=av(e,t.target.y);return`${n}% ${r}%`}},TO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=yn.parse(e);if(s.length>5)return r;const i=yn.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=ve(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},xf={borderRadius:{...wo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wo,borderTopRightRadius:wo,borderBottomLeftRadius:wo,borderBottomRightRadius:wo,boxShadow:TO};function VS(e,{layout:t,layoutId:n}){return ro.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!xf[e]||e==="opacity")}function _m(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(Qe(r[a])||s&&Qe(s[a])||VS(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function CO(e){return window.getComputedStyle(e)}class PO extends IS{constructor(){super(...arguments),this.type="html",this.renderInstance=FS}readValueFromInstance(t,n){var r;if(ro.has(n))return(r=this.projection)!=null&&r.isProjecting?of(n):KN(t,n);{const s=CO(t),i=(J1(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $S(t,n)}build(t,n,r){Em(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return _m(t,n,r)}}const AO={offset:"stroke-dashoffset",array:"stroke-dasharray"},jO={offset:"strokeDashoffset",array:"strokeDasharray"};function RO(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?AO:jO;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const NO=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function US(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(Em(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const f of NO)d[f]!==void 0&&(h[f]=d[f],delete d[f]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&RO(d,s,i,o,!1)}const BS=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"]),zS=e=>typeof e=="string"&&e.toLowerCase()==="svg";function OO(e,t,n,r){FS(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(BS.has(s)?s:gm(s),t.attrs[s])}function HS(e,t,n){const r=_m(e,t,n);for(const s in e)if(Qe(e[s])||Qe(t[s])){const i=no.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class IO extends IS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ro.has(n)){const r=ES(n);return r&&r.default||0}return n=BS.has(n)?n:gm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return HS(t,n,r)}build(t,n,r){US(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){OO(t,n,r,s)}mount(t){this.isSVGTag=zS(t.tagName),super.mount(t)}}const LO=km.length;function WS(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?WS(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<LO;n++){const r=km[n],s=e.props[r];(ga(s)||s===!1)&&(t[r]=s)}return t}function qS(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 MO=[...Sm].reverse(),DO=Sm.length;function $O(e){return t=>Promise.all(t.map(({animation:n,options:r})=>L2(e,n,r)))}function FO(e){let t=$O(e),n=lv(),r=!0,s=!1;const i=c=>(u,d)=>{var f;const h=js(e,d,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:g,transitionEnd:v,...x}=h;u={...u,...x,...v}}return u};function o(c){t=c(e)}function a(c){const{props:u}=e,d=WS(e.parent)||{},h=[],f=new Set;let g={},v=1/0;for(let m=0;m<DO;m++){const y=MO[m],w=n[y],S=u[y]!==void 0?u[y]:d[y],k=ga(S),E=y===c?w.isActive:null;E===!1&&(v=m);let _=S===d[y]&&S!==u[y]&&k;if(_&&(r||s)&&e.manuallyAnimateOnMount&&(_=!1),w.protectedKeys={...g},!w.isActive&&E===null||!S&&!w.prevProp||Ou(S)||typeof S=="boolean")continue;if(y==="exit"&&w.isActive&&E!==!0){w.prevResolvedValues&&(g={...g,...w.prevResolvedValues});continue}const T=VO(w.prevProp,S);let C=T||y===c&&w.isActive&&!_&&k||m>v&&k,P=!1;const N=Array.isArray(S)?S:[S];let O=N.reduce(i(y),{});E===!1&&(O={});const{prevResolvedValues:V={}}=w,I={...V,...O},K=A=>{C=!0,f.has(A)&&(P=!0,f.delete(A)),w.needsAnimating[A]=!0;const j=e.getValue(A);j&&(j.liveStyle=!1)};for(const A in I){const j=O[A],D=V[A];if(g.hasOwnProperty(A))continue;let q=!1;hf(j)&&hf(D)?q=!qS(j,D):q=j!==D,q?j!=null?K(A):f.add(A):j!==void 0&&f.has(A)?K(A):w.protectedKeys[A]=!0}w.prevProp=S,w.prevResolvedValues=O,w.isActive&&(g={...g,...O}),(r||s)&&e.blockInitialAnimation&&(C=!1);const U=_&&T;C&&(!U||P)&&h.push(...N.map(A=>{const j={type:y};if(typeof A=="string"&&(r||s)&&!U&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,q=js(D,A);if(D.enteringChildren&&q){const{delayChildren:W}=q.transition||{};j.delay=mS(D.enteringChildren,e,W)}}return{animation:A,options:j}}))}if(f.size){const m={};if(typeof u.initial!="boolean"){const y=js(e,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(m.transition=y.transition)}f.forEach(y=>{const w=e.getBaseTarget(y),S=e.getValue(y);S&&(S.liveStyle=!0),m[y]=w??null}),h.push({animation:m})}let x=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,s=!1,x?t(h):Promise.resolve()}function l(c,u){var h;if(n[c].isActive===u)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(f=>{var g;return(g=f.animationState)==null?void 0:g.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=lv(),s=!0}}}function VO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qS(t,e):!1}function os(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lv(){return{animate:os(!0),whileInView:os(),whileHover:os(),whileTap:os(),whileDrag:os(),whileFocus:os(),exit:os()}}function bf(e,t){e.min=t.min,e.max=t.max}function rn(e,t){bf(e.x,t.x),bf(e.y,t.y)}function cv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const KS=1e-4,UO=1-KS,BO=1+KS,GS=.01,zO=0-GS,HO=0+GS;function ht(e){return e.max-e.min}function WO(e,t,n){return Math.abs(e-t)<=n}function uv(e,t,n,r=.5){e.origin=r,e.originPoint=ve(t.min,t.max,e.origin),e.scale=ht(n)/ht(t),e.translate=ve(n.min,n.max,e.origin)-e.originPoint,(e.scale>=UO&&e.scale<=BO||isNaN(e.scale))&&(e.scale=1),(e.translate>=zO&&e.translate<=HO||isNaN(e.translate))&&(e.translate=0)}function Uo(e,t,n,r){uv(e.x,t.x,n.x,r?r.originX:void 0),uv(e.y,t.y,n.y,r?r.originY:void 0)}function dv(e,t,n,r=0){const s=r?ve(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+ht(t)}function qO(e,t,n,r){dv(e.x,t.x,n.x,r==null?void 0:r.x),dv(e.y,t.y,n.y,r==null?void 0:r.y)}function hv(e,t,n,r=0){const s=r?ve(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+ht(t)}function Hc(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 fv(e,t,n,r,s){return e-=t,e=zc(e,1/n,r),s!==void 0&&(e=zc(e,1/s,r)),e}function KO(e,t=0,n=1,r=.5,s,i=e,o=e){if(Fn.test(t)&&(t=parseFloat(t),t=ve(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ve(i.min,i.max,r);e===i&&(a-=t),e.min=fv(e.min,t,n,a,s),e.max=fv(e.max,t,n,a,s)}function pv(e,t,[n,r,s],i,o){KO(e,t[n],t[r],t[s],t.scale,i,o)}const GO=["x","scaleX","originX"],JO=["y","scaleY","originY"];function mv(e,t,n,r){pv(e.x,t,GO,n?n.x:void 0,r?r.x:void 0),pv(e.y,t,JO,n?n.y:void 0,r?r.y:void 0)}function gv(e){return e.translate===0&&e.scale===1}function JS(e){return gv(e.x)&&gv(e.y)}function yv(e,t){return e.min===t.min&&e.max===t.max}function YO(e,t){return yv(e.x,t.x)&&yv(e.y,t.y)}function vv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function YS(e,t){return vv(e.x,t.x)&&vv(e.y,t.y)}function wv(e){return ht(e.x)/ht(e.y)}function xv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function An(e){return[e("x"),e("y")]}function QO(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:h,skewX:f,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),f&&(r+=`skewX(${f}deg) `),g&&(r+=`skewY(${g}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 QS=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],XO=QS.length,bv=e=>typeof e=="string"?parseFloat(e):e,Sv=e=>typeof e=="number"||B.test(e);function ZO(e,t,n,r,s,i){s?(e.opacity=ve(0,n.opacity??1,eI(r)),e.opacityExit=ve(t.opacity??1,0,tI(r))):i&&(e.opacity=ve(t.opacity??1,n.opacity??1,r));for(let o=0;o<XO;o++){const a=QS[o];let l=kv(t,a),c=kv(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Sv(l)===Sv(c)?(e[a]=Math.max(ve(bv(l),bv(c),r),0),(Fn.test(c)||Fn.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ve(t.rotate||0,n.rotate||0,r))}function kv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const eI=XS(0,.5,z1),tI=XS(.5,.95,Kt);function XS(e,t,n){return r=>r<e?0:r>t?1:n(pa(e,t,r))}function nI(e,t,n){const r=Qe(e)?e:Ki(e);return r.start(pm("",r,t,n)),r.animation}function ya(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const rI=(e,t)=>e.depth-t.depth;class sI{constructor(){this.children=[],this.isDirty=!1}add(t){nm(this.children,t),this.isDirty=!0}remove(t){Dc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rI),this.isDirty=!1,this.children.forEach(t)}}function iI(e,t){const n=dt.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(es(r),e(i-t))};return de.setup(r,!0),()=>es(r)}function nc(e){return Qe(e)?e.get():e}class oI{constructor(){this.members=[]}add(t){nm(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&&(Dc(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Dc(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 rc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Nd=["","X","Y","Z"],aI=1e3;let lI=0;function Od(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ZS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=xS(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",de,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ZS(r)}function ek({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=lI++,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(dI),this.nodes.forEach(yI),this.nodes.forEach(vI),this.nodes.forEach(hI)},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 sI)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new rm),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=bm(o)&&!uO(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 h=()=>this.root.updateBlockedByResize=!1;de.read(()=>{d=window.innerWidth}),e(o,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,u&&u(),u=iI(h,250),rc.hasAnimatedSinceResize&&(rc.hasAnimatedSinceResize=!1,this.nodes.forEach(Tv)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||kI,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=c.getProps(),m=!this.targetLayout||!YS(this.targetLayout,f),y=!d&&h;if(this.options.layoutRoot||this.resumeFrom||y||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...fm(g,"layout"),onPlay:v,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,y)}else d||Tv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),es(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(wI),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&&ZS(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(pI),this.nodes.forEach(Ev);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(_v);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mI),this.nodes.forEach(gI),this.nodes.forEach(cI),this.nodes.forEach(uI)):this.nodes.forEach(_v),this.clearAllSnapshots();const a=dt.now();Ye.delta=Bn(0,1e3/60,a-Ye.timestamp),Ye.timestamp=a,Ye.isProcessing=!0,Ed.update.process(Ye),Ed.preRender.process(Ye),Ed.render.process(Ye),Ye.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fI),this.sharedNodes.forEach(xI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,de.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){de.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ht(this.snapshot.measuredBox.x)&&!ht(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=Fe()),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&&!JS(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||fs(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)),EI(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Fe();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(_I))){const{scroll:u}=this.root;u&&(In(a.x,u.offset.x),In(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=Fe();if(rn(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:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&rn(a,o),In(a.x,d.offset.x),In(a.y,d.offset.y))}return a}applyTransform(o,a=!1,l){var u,d;const c=l||Fe();rn(c,o);for(let h=0;h<this.path.length;h++){const f=this.path[h];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(In(c.x,-f.scroll.offset.x),In(c.y,-f.scroll.offset.y)),fs(f.latestValues)&&tc(c,f.latestValues,(u=f.layout)==null?void 0:u.layoutBox)}return fs(this.latestValues)&&tc(c,this.latestValues,(d=this.layout)==null?void 0:d.layoutBox),c}removeTransform(o){var l;const a=Fe();rn(a,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!fs(u.latestValues))continue;let d;u.instance&&(vf(u.latestValues)&&u.updateSnapshot(),d=Fe(),rn(d,u.measurePageBox())),mv(a,u.latestValues,(l=u.snapshot)==null?void 0:l.layoutBox,d)}return fs(this.latestValues)&&mv(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ye.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=Ye.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Fe(),this.targetWithTransforms=Fe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qO(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rn(this.target,this.layout.layoutBox),DS(this.target,this.targetDelta)):rn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||vf(this.parent.latestValues)||MS(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=Fe(),this.relativeTargetOrigin=Fe(),Hc(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),rn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var g;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty)&&
vendor: 5,333 bytes, line 213
213(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ye.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;rn(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;bO(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=Fe());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cv(this.prevProjectionDelta.x,this.projectionDelta.x),cv(this.prevProjectionDelta.y,this.projectionDelta.y)),Uo(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!xv(this.projectionDelta.x,this.prevProjectionDelta.x)||!xv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gi(),this.projectionDelta=gi(),this.projectionDeltaWithTransform=gi()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=gi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Fe(),f=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=f!==g,x=this.getStack(),m=!x||x.members.length<=1,y=!!(v&&!m&&this.options.crossfade===!0&&!this.path.some(SI));this.animationProgress=0;let w;this.mixTargetDelta=S=>{const k=S/1e3;Cv(d.x,o.x,k),Cv(d.y,o.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hc(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),bI(this.relativeTarget,this.relativeTargetOrigin,h,k),w&&YO(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Fe()),rn(w,this.relativeTarget)),v&&(this.animationValues=u,ZO(u,c,this.latestValues,k,y,m)),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&&(es(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=de.update(()=>{rc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ki(0)),this.motionValue.jump(0,!1),this.currentAnimation=nI(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(aI),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&&tk(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Fe();const d=ht(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=ht(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}rn(a,l),tc(a,u),Uo(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new oI),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}
vendor: 4,506 bytes, line 213
213resetSkewAndRotation(){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&&Od("z",o,c,this.animationValues);for(let u=0;u<Nd.length;u++)Od(`rotate${Nd[u]}`,o,c,this.animationValues),Od(`skew${Nd[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=nc(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=nc(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!fs(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=QO(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),o.transform=d;const{x:h,y:f}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${f.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 g in xf){if(u[g]===void 0)continue;const{correct:v,applyTo:x,isCSSVariable:m}=xf[g],y=d==="none"?u[g]:v(u[g],c);if(x){const w=x.length;for(let S=0;S<w;S++)o[x[S]]=y}else m?this.options.visualElement.renderState.vars[g]=y:o[g]=y}this.options.layoutId&&(o.pointerEvents=c===this?nc(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(Ev),this.root.sharedNodes.clear()}}}function cI(e){e.updateLayout()}function uI(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")An(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=ht(h);h.min=r[d].min,h.max=h.min+f});else if(i==="x"||i==="y"){const d=i==="x"?"y":"x";bf(o?t.measuredBox[d]:t.layoutBox[d],r[d])}else tk(i,t.layoutBox,r)&&An(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=ht(r[d]);h.max=h.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const a=gi();Uo(a,r,t.layoutBox);const l=gi();o?Uo(l,e.applyTransform(s,!0),t.measuredBox):Uo(l,r,t.layoutBox);const c=!JS(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const g=e.options.layoutAnchor||void 0,v=Fe();Hc(v,t.layoutBox,h.layoutBox,g);const x=Fe();Hc(x,r,f.layoutBox,g),YS(v,x)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=v,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 dI(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 hI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fI(e){e.clearSnapshot()}function Ev(e){e.clearMeasurements()}function pI(e){e.isLayoutDirty=!0,e.updateLayout()}function _v(e){e.isLayoutDirty=!1}function mI(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function gI(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Tv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yI(e){e.resolveTargetDelta()}function vI(e){e.calcProjection()}
213function wI(e){e.resetSkewAndRotation()}function xI(e){e.removeLeadSnapshot()}function Cv(e,t,n){e.translate=ve(t.translate,0,n),e.scale=ve(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Pv(e,t,n,r){e.min=ve(t.min,n.min,r),e.max=ve(t.max,n.max,r)}function bI(e,t,n,r){Pv(e.x,t.x,n.x,r),Pv(e.y,t.y,n.y,r)}function SI(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kI={duration:.45,ease:[.4,0,.1,1]},Av=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jv=Av("applewebkit/")&&!Av("chrome/")?Math.round:Kt;function Rv(e){e.min=jv(e.min),e.max=jv(e.max)}function EI(e){Rv(e.x),Rv(e.y)}function tk(e,t,n){return e==="position"||e==="preserve-aspect"&&!WO(wv(t),wv(n),.2)}function _I(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const TI=ek({attachResizeListener:(e,t)=>ya(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}),Id={current:void 0},nk=ek({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Id.current){const e=new TI({});e.mount(window),e.setOptions({layoutScroll:!0}),Id.current=e}return Id.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Tm=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Nv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function CI(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Nv(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():Nv(e[s],null)}}}}function PI(...e){return b.useCallback(CI(...e),e)}class AI extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Ql(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,s=Ql(r)&&r.offsetWidth||0,i=Ql(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 jI({children:e,isPresent:t,anchorX:n,anchorY:r,root:s,pop:i}){var h;const o=b.useId(),a=b.useRef(null),l=b.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=b.useContext(Tm),u=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),d=PI(a,u);return b.useInsertionEffect(()=>{const{width:f,height:g,top:v,left:x,right:m,bottom:y}=l.current;if(t||i===!1||!a.current||!f||!g)return;const w=n==="left"?`left: ${x}`:`right: ${m}`,S=r==="bottom"?`bottom: ${y}`:`top: ${v}`;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(` 214 [data-motion-pop-id="${o}"] { 215 position: absolute !important; 216 width: ${f}px !important; 217 height: ${g}px !important; 218 ${w}px !important; 219 ${S}px !important; 220 } 221 `),()=>{var _;(_=a.current)==null||_.removeAttribute("data-motion-pop-id"),E.contains(k)&&E.removeChild(k)}},[t]),p.jsx(AI,{isPresent:t,childRef:a,sizeRef:l,pop:i,children:i===!1?e:b.cloneElement(e,{ref:d})})}const RI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:l,root:c})=>{const u=tm(NI),d=b.useId();let h=!0,f=b.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:s,onExitComplete:g=>{u.set(g,!0);for(const v of u.values())if(!v)return;r&&r()},register:g=>(u.set(g,!1),()=>u.delete(g))}),[n,u,r]);return i&&h&&(f={...f}),b.useMemo(()=>{u.forEach((g,v)=>u.set(v,!1))},[n]),b.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=p.jsx(jI,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),p.jsx(ju.Provider,{value:f,children:e})};function NI(){return new Map}function rk(e=!0){const t=b.useContext(ju);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=b.useId();b.useEffect(()=>{if(e)return s(i)},[e]);const o=b.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const kl=e=>e.key||"";function Ov(e){const t=[];
vendor: 5,647 bytes, line 221
221return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const Ua=({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]=rk(o),h=b.useMemo(()=>Ov(e),[e]),f=o&&!u?[]:h.map(kl),g=b.useRef(!0),v=b.useRef(h),x=tm(()=>new Map),m=b.useRef(new Set),[y,w]=b.useState(h),[S,k]=b.useState(h);R1(()=>{g.current=!1,v.current=h;for(let T=0;T<S.length;T++){const C=kl(S[T]);f.includes(C)?(x.delete(C),m.current.delete(C)):x.get(C)!==!0&&x.set(C,!1)}},[S,f.length,f.join("-")]);const E=[];if(h!==y){let T=[...h];for(let C=0;C<S.length;C++){const P=S[C],N=kl(P);f.includes(N)||(T.splice(C,0,P),E.push(P))}return i==="wait"&&E.length&&(T=E),k(Ov(T)),w(h),null}const{forceRender:_}=b.useContext(em);return p.jsx(p.Fragment,{children:S.map(T=>{const C=kl(T),P=o&&!u?!1:h===S||f.includes(C),N=()=>{if(m.current.has(C))return;if(x.has(C))m.current.add(C),x.set(C,!0);else return;let O=!0;x.forEach(V=>{V||(O=!1)}),O&&(_==null||_(),k(v.current),o&&(d==null||d()),r&&r())};return p.jsx(RI,{isPresent:P,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:P?void 0:N,anchorX:a,anchorY:l,children:T},C)})})},sk=b.createContext({strict:!1}),Iv={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 Lv=!1;function OI(){if(Lv)return;const e={};for(const t in Iv)e[t]={isEnabled:n=>Iv[t].some(r=>!!n[r])};OS(e),Lv=!0}function ik(){return OI(),yO()}function II(e){const t=ik();for(const n in e)t[n]={...t[n],...e[n]};OS(t)}const LI=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 Wc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||LI.has(e)}let ok=e=>!Wc(e);function MI(e){typeof e=="function"&&(ok=t=>t.startsWith("on")?!Wc(t):e(t))}try{MI(require("@emotion/is-prop-valid").default)}catch{}function DI(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||Qe(e[s])||(ok(s)||n===!0&&Wc(s)||!t&&!Wc(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Lu=b.createContext({});function $I(e,t){if(Iu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ga(n)?n:void 0,animate:ga(r)?r:void 0}}return e.inherit!==!1?t:{}}function FI(e){const{initial:t,animate:n}=$I(e,b.useContext(Lu));return b.useMemo(()=>({initial:t,animate:n}),[Mv(t),Mv(n)])}function Mv(e){return Array.isArray(e)?e.join(" "):e}const Cm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ak(e,t,n){for(const r in t)!Qe(t[r])&&!VS(r,n)&&(e[r]=t[r])}function VI({transformTemplate:e},t){return b.useMemo(()=>{const n=Cm();return Em(n,t,e),Object.assign({},n.vars,n.style)},[t])}function UI(e,t){const n=e.style||{},r={};return ak(r,n,e),Object.assign(r,VI(e,t)),r}function BI(e,t){const n={},r=UI(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 lk=()=>({...Cm(),attrs:{}});function zI(e,t,n,r){const s=b.useMemo(()=>{const i=lk();return US(i,t,zS(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ak(i,e.style,e),s.style={...i,...s.style}}return s}const HI=["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 Pm(e){return typeof e!="string"||e.includes("-")?!1:!!(HI.indexOf(e)>-1||/[A-Z]/u.test(e))}function WI(e,t,n,{latestValues:r},s,i=!1,o){const l=(o??Pm(e)?zI:BI)(t,r,s,e),c=DI(t,typeof e=="string",i),u=e!==b.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=b.useMemo(()=>Qe(d)?d.get():d,[d]);return b.createElement(e,{...u,children:h})}function qI({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:KI(n,r,s,e),renderState:t()}}function KI(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=nc(i[h]);let{initial:o,animate:a}=e;const l=Iu(e),c=RS(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"&&!Ou(d)){const h=Array.isArray(d)?d:[d];for(let f=0;f<h.length;f++){const g=mm(e,h[f]);if(g){const{transitionEnd:v,transition:x,...m}=g;for(const y in m){let w=m[y];if(Array.isArray(w)){const S=u?w.length-1:0;w=w[S]}w!==null&&(s[y]=w)}for(const y in v)s[y]=v[y]}}}return s}const ck=e=>(t,n)=>{const r=b.useContext(Lu),s=b.useContext(ju),i=()=>qI(e,t,r,s);return n?i():tm(i)},GI=ck({scrapeMotionValuesFromProps:_m,createRenderState:Cm}),JI=ck({scrapeMotionValuesFromProps:HS,createRenderState:lk}),YI=Symbol.for("motionComponentSymbol");
vendor: 23,609 bytes, line 221
221function QI(e,t,n){const r=b.useRef(n);b.useInsertionEffect(()=>{r.current=n});const s=b.useRef(null);return b.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i));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 uk=b.createContext({});function Qs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function XI(e,t,n,r,s,i){var w,S;const{visualElement:o}=b.useContext(Lu),a=b.useContext(sk),l=b.useContext(ju),c=b.useContext(Tm),u=c.reducedMotion,d=c.skipAnimations,h=b.useRef(null),f=b.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),f.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const g=h.current,v=b.useContext(uk);g&&!g.projection&&s&&(g.type==="html"||g.type==="svg")&&ZI(h.current,n,s,v);const x=b.useRef(!1);b.useInsertionEffect(()=>{g&&x.current&&g.update(n,l)});const m=n[wS],y=b.useRef(!!m&&typeof window<"u"&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,m))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,m)));return R1(()=>{f.current=!0,g&&(x.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),y.current&&g.animationState&&g.animationState.animateChanges())}),b.useEffect(()=>{g&&(!y.current&&g.animationState&&g.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var k;(k=window.MotionHandoffMarkAsComplete)==null||k.call(window,m)}),y.current=!1),g.enteringChildren=void 0)}),g}function ZI(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:dk(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Qs(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function dk(e){if(e)return e.options.allowProjection!==!1?e.projection:dk(e.parent)}function Ld(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&II(r);const i=n?n==="svg":Pm(e),o=i?JI:GI;function a(c,u){let d;const h={...b.useContext(Tm),...c,layoutId:eL(c)},{isStatic:f}=h,g=FI(c),v=o(c,f);if(!f&&typeof window<"u"){tL();const x=nL(h);d=x.MeasureLayout,g.visualElement=XI(e,v,h,s,x.ProjectionNode,i)}return p.jsxs(Lu.Provider,{value:g,children:[d&&g.visualElement?p.jsx(d,{visualElement:g.visualElement,...h}):null,WI(e,c,QI(v,g.visualElement,u),v,f,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=b.forwardRef(a);return l[YI]=e,l}function eL({layoutId:e}){const t=b.useContext(em).id;return t&&e!==void 0?t+"-"+e:e}function tL(e,t){b.useContext(sk).strict}function nL(e){const t=ik(),{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 rL(e,t){if(typeof Proxy>"u")return Ld;const n=new Map,r=(i,o)=>Ld(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,Ld(o,void 0,e,t)),n.get(o))})}const sL=(e,t)=>t.isSVG??Pm(e)?new IO(t):new PO(t,{allowProjection:e!==b.Fragment});class iL extends ss{constructor(t){super(t),t.animationState||(t.animationState=FO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ou(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 oL=0;class aL extends ss{constructor(){super(...arguments),this.id=oL++,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=js(this.node,o,a);if(l){const{transition:c,transitionEnd:u,...d}=l;for(const h in d)(i=this.node.getValue(h))==null||i.jump(d[h])}}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 lL={animation:{Feature:iL},exit:{Feature:aL}};function Ba(e){return{point:{x:e.pageX,y:e.pageY}}}const cL=e=>t=>xm(t)&&e(t,Ba(t));function Bo(e,t,n,r){return ya(e,t,cL(n),r)}const hk=({current:e})=>e?e.ownerDocument.defaultView:null,Dv=(e,t)=>Math.abs(e-t);function uL(e,t){const n=Dv(e.x,t.x),r=Dv(e.y,t.y);return Math.sqrt(n**2+r**2)}const $v=new Set(["auto","scroll"]);class fk{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=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=El(this.lastRawMoveEventInfo,this.transformPagePoint));const f=Md(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,v=uL(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!v)return;const{point:x}=f,{timestamp:m}=Ye;this.history.push({...x,timestamp:m});const{onStart:y,onMove:w}=this.handlers;g||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,f)},this.handlePointerMove=(f,g)=>{this.lastMoveEvent=f,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=El(g,this.transformPagePoint),de.update(this.updatePoint,!0)},this.handlePointerUp=(f,g)=>{this.end();const{onEnd:v,onSessionEnd:x,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Md(f.type==="pointercancel"?this.lastMoveEventInfo:El(g,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,y),x&&x(f,y)},!xm(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=Ba(t),c=El(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=Ye;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Md(c,this.history)),this.removeListeners=$a(Bo(this.contextWindow,"pointermove",this.handlePointerMove),Bo(this.contextWindow,"pointerup",this.handlePointerUp),Bo(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);($v.has(r.overflowX)||$v.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),de.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),es(this.updatePoint)}}function El(e,t){return t?{point:t(e.point)}:e}function Fv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Md({point:e},t){return{point:e,delta:Fv(e,pk(t)),offset:Fv(e,dL(t)),velocity:hL(t,.1)}}function dL(e){return e[0]}function pk(e){return e[e.length-1]}function hL(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=pk(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>_t(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>_t(t)*2&&(r=e[1]);const i=Wt(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 fL(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ve(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ve(n,e,r.max):Math.min(e,n)),e}function Vv(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 pL(e,{top:t,left:n,bottom:r,right:s}){return{x:Vv(e.x,n,s),y:Vv(e.y,t,r)}}function Uv(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 mL(e,t){return{x:Uv(e.x,t.x),y:Uv(e.y,t.y)}}function gL(e,t){let n=.5;const r=ht(e),s=ht(t);return s>r?n=pa(t.min,t.max-r,e.min):r>s&&(n=pa(e.min,e.max-s,t.min)),Bn(0,1,n)}function yL(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 Sf=.35;function vL(e=Sf){return e===!1?e=0:e===!0&&(e=Sf),{x:Bv(e,"left","right"),y:Bv(e,"top","bottom")}}function Bv(e,t,n){return{min:zv(e,t),max:zv(e,n)}}function zv(e,t){return typeof e=="number"?e:e[t]||0}const wL=new WeakMap;class xL{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=Fe(),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(Ba(d).point),this.stopAnimation()},o=(d,h)=>{const{drag:f,dragPropagation:g,onDragStart:v}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=K2(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),An(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Fn.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[m];S&&(y=ht(S)*(parseFloat(y)/100))}}this.originPoint[m]=y}),v&&de.update(()=>v(d,h),!1,!0),ff(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:v,onDrag:x}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:m}=h;if(g&&this.currentDirection===null){this.currentDirection=SL(m),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,m),this.updateAxis("y",h.point,m),this.visualElement.render(),x&&de.update(()=>x(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new fk(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:hk(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&&de.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||!_l(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=fL(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&&Qs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=pL(r.layoutBox,t):this.constraints=!1,this.elastic=vL(n),s!==this.constraints&&!Qs(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&An(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=yL(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qs(t))return!1;const r=t.current;Wi(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=SO(r,s.root,this.visualElement.getTransformPagePoint());let o=mL(s.layout.layoutBox,i);if(n){const a=n(wO(o));this.hasMutatedConstraints=!!a,a&&(o=LS(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=An(u=>{if(!_l(u,n,this.currentDirection))return;let d=l&&l[u]||{};(o===!0||o===u)&&(d={min:0,max:0});const h=s?200:1e6,f=s?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ff(this.visualElement,t),r.start(pm(t,r,0,n,this.visualElement,!1))}stopAnimation(){An(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){An(n=>{const{drag:r}=this.getProps();if(!_l(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]-ve(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qs(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};An(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=gL({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(),An(o=>{if(!_l(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(ve(l,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;wL.set(this.visualElement,this);const t=this.visualElement.current,n=Bo(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),h=c.target,f=h!==t&&Z2(h);u&&d&&!f&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();Qs(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=bL(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),de.read(s);const a=ya(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(An(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.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=Sf,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Hv(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function bL(e,t,n){const r=Qy(e,Hv(n)),s=Qy(t,Hv(n));return()=>{r(),s()}}function _l(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function SL(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class kL extends ss{constructor(t){super(t),this.removeGroupControls=Kt,this.removeListeners=Kt,this.controls=new xL(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Kt}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 Dd=e=>(t,n)=>{e&&de.update(()=>e(t,n),!1,!0)};class EL extends ss{constructor(){super(...arguments),this.removePointerDownListener=Kt}onPointerDown(t){this.session=new fk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Dd(t),onStart:Dd(n),onMove:Dd(r),onEnd:(i,o)=>{delete this.session,s&&de.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Bo(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 $d=!1;class _L extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),$d&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rc.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}),$d=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||de.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(),wm.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;$d=!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 mk(e){const[t,n]=rk(),r=b.useContext(em);return p.jsx(_L,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(uk),isPresent:t,safeToRemove:n})}const TL={pan:{Feature:EL},drag:{Feature:kL,ProjectionNode:nk,MeasureLayout:mk}};function Wv(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&&de.postRender(()=>i(t,Ba(t)))}class CL extends ss{mount(){const{current:t}=this.node;t&&(this.unmount=J2(t,(n,r)=>(Wv(this.node,r,"Start"),s=>Wv(this.node,s,"End"))))}unmount(){}}class PL extends ss{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=$a(ya(this.node.current,"focus",()=>this.onFocus()),ya(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function qv(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&&de.postRender(()=>i(t,Ba(t)))}class AL extends ss{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=tO(t,(s,i)=>(qv(this.node,i,"Start"),(o,{success:a})=>qv(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const kf=new WeakMap,Fd=new WeakMap,jL=e=>{const t=kf.get(e.target);t&&t(e)},RL=e=>{e.forEach(jL)};function NL({root:e,...t}){const n=e||document;Fd.has(n)||Fd.set(n,{});const r=Fd.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(RL,{root:e,...t})),r[s]}function OL(e,t,n){const r=NL(t);return kf.set(e,n),r.observe(e),()=>{kf.delete(e),r.unobserve(e)}}const IL={some:0,all:1};class LL extends ss{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:IL[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:h}=this.node.getProps(),f=u?d:h;f&&f(c)};this.stopObserver=OL(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(ML(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function ML({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const DL={inView:{Feature:LL},tap:{Feature:AL},focus:{Feature:PL},hover:{Feature:CL}},$L={layout:{ProjectionNode:nk,MeasureLayout:mk}},FL={...lL,...DL,...TL,...$L},J=rL(FL,sL),VL={some:0,all:1};function UL(e,t,{root:n,margin:r,amount:s="some"}={}){const i=vm(e),o=new WeakMap,a=c=>
221{c.forEach(u=>{const d=o.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const h=t(u.target,u);typeof h=="function"?o.set(u.target,h):l.unobserve(u.target)}else typeof d=="function"&&(d(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof s=="number"?s:VL[s]});return i.forEach(c=>l.observe(c)),()=>l.disconnect()}function ur(e,{root:t,margin:n,amount:r,once:s=!1,initial:i=!1}={}){const[o,a]=b.useState(i);return b.useEffect(()=>{if(!e.current||s&&o)return;const l=()=>(a(!0),s?void 0:()=>a(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return UL(e.current,l,c)},[t,e,n,s,r]),o}const gk="/assets/dm-logo-black-B__pmqoc.png",ne=[.22,1,.36,1],lr={once:!0,margin:"-80px"},Ws=(e=0)=>({initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.7,delay:e,ease:ne}}),Kv=[{label:"Mission",href:"/#mission"},{label:"Pôles",href:"/#poles"},{label:"Le Bureau",href:"/#bureau"},{label:"Ãcosystème",href:"/#ecosystem"},{label:"Recrutement",href:"/#recruitment"},{label:"Ãvénements",href:"/#events"}],yk=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),s=Zp();b.useEffect(()=>{const o=()=>t(window.scrollY>20);return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[]);const i=s.pathname==="/";return p.jsxs(J.nav,{initial:{y:-100},animate:{y:0},transition:{duration:.6,ease:ne},className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${e||!i?"glass shadow-sm":"bg-transparent"}`,children:[p.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:p.jsxs("div",{className:"flex items-center justify-between h-16 lg:h-20",children:[p.jsx("a",{href:"/",className:"flex items-center gap-3 group",children:p.jsx("img",{src:gk,alt:"DealMakers Club",className:`h-16 w-auto ${e||!i?"":"invert"}`})}),p.jsx("div",{className:"hidden lg:flex items-center gap-8",children:Kv.map(o=>p.jsx("a",{href:o.href,className:`text-[11px] font-medium tracking-widest uppercase transition-colors duration-300 hover:text-primary ${e||!i?"text-muted-foreground":"text-white/70 hover:text-white"}`,children:o.label},o.label))}),p.jsx("div",{className:"hidden lg:flex items-center",children:p.jsx("a",{href:"/#join",className:"px-5 py-2.5 bg-primary text-primary-foreground text-xs font-medium tracking-wide uppercase rounded-lg hover:opacity-90 transition-opacity duration-300",children:"Nous rejoindre"})}),p.jsx("button",{onClick:()=>r(!n),"aria-label":n?"Fermer le menu":"Ouvrir le menu","aria-expanded":n,className:`lg:hidden p-2 transition-colors ${e||!i?"text-foreground":"text-white"}`,children:n?p.jsx(Qi,{size:20}):p.jsx(FC,{size:20})})]})}),n&&p.jsx(J.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3,ease:ne},className:"lg:hidden glass border-t border-border/50",children:p.jsxs("div",{className:"px-6 py-6 space-y-4",children:[Kv.map(o=>p.jsx("a",{href:o.href,onClick:()=>r(!1),className:"block text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:o.label},o.label)),p.jsx("a",{href:"/#join",className:"block w-full text-center px-5 py-3 bg-primary text-primary-foreground text-xs font-medium tracking-wide uppercase rounded-lg mt-4",children:"Rejoindre le club"})]})})]})},Vd=["EY","Deloitte","PwC","KPMG","Grant Thornton","Forvis Mazars","BDO","RSM","Crowe","Baker Tilly","RSA"],BL=()=>p.jsxs("div",{className:"relative overflow-hidden py-10 bg-primary border-t border-white/5",children:[p.jsx("p",{className:"text-center text-xs font-medium tracking-widest uppercase text-white/40 mb-8",children:"Nos membres viennent de"}),p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-24 bg-gradient-to-r from-primary to-transparent z-10"}),p.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-24 bg-gradient-to-l from-primary to-transparent z-10"}),p.jsx(J.div,{className:"flex gap-16 items-center whitespace-nowrap",animate:{x:["0%","-50%"]},transition:{duration:40,repeat:1/0,ease:"linear"},children:[...Vd,...Vd,...Vd].map((e,t)=>p.jsx("span",{className:"flex-shrink-0 text-lg font-semibold tracking-wide text-white/70 hover:text-white transition-colors duration-300",children:e},t))})]})]});function zL(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
221return 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 HL=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Am 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 WL extends Am{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Gv extends Am{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Jv extends Am{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Ef;(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"})(Ef||(Ef={}));class qL{constructor(t,{headers:n={},customFetch:r,region:s=Ef.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=HL(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return zL(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 h={},{region:f}=r;f||(f=this.region);const g=new URL(`${this.url}/${n}`);f&&f!=="any"&&(h["x-region"]=f,g.searchParams.set("forceFunctionRegion",f));let v;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",v=c):typeof c=="string"?(h["Content-Type"]="text/plain",v=c):typeof FormData<"u"&&c instanceof FormData?v=c:(h["Content-Type"]="application/json",v=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?v=JSON.stringify(c):v=c;let x=u;d&&(o=new AbortController,i=setTimeout(()=>o.abort(),d),u?(x=o.signal,u.addEventListener("abort",()=>o.abort())):x=o.signal);const m=yield this.fetch(g.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:v,signal:x}).catch(k=>{throw new WL(k)}),y=m.headers.get("x-relay-error");if(y&&y==="true")throw new Gv(m);if(!m.ok)throw new Jv(m);let w=((s=m.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),S;return w==="application/json"?S=yield m.json():w==="application/octet-stream"||w==="application/pdf"?S=yield m.blob():w==="text/event-stream"?S=m:w==="multipart/form-data"?S=yield m.formData():S=yield m.text(),{data:S,error:null,response:m}}catch(a){return{data:null,error:a,response:a instanceof Jv||a instanceof Gv?a.context:void 0}}finally{i&&clearTimeout(i)}})}}const vk=3,Yv=e=>Math.min(1e3*2**e,3e4),KL=[520,503],wk=["GET","HEAD","OPTIONS"];var GL=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
221de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Qv(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 JL(e,t,n,r){return!(!r||n>=vk||!wk.includes(e)||!KL.includes(t))}var YL=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,h)=>typeof h=="bigint"?h.toString():h),signal:n.signal})}catch(d){if(d instanceof Error&&(d.name==="AbortError"||"code"in d&&d.code==="ABORT_ERR")||!wk.includes(n.method))throw d;if(n.retryEnabled&&o<vk){const h=Yv(o);o++,await Qv(h,n.signal);continue}throw d}if(JL(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,h=d!==null?Math.max(0,parseInt(d,10)||0)*1e3:Yv(o);await u.text(),o++,await Qv(h,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 h,f,g,v;const y=(h=d==null?void 0:d.message)!==null&&h!==void 0?h:"",w=(f=d==null?void 0:d.code)!==null&&f!==void 0?f:"";l=`${(g=o==null?void 0:o.name)!==null&&g!==void 0?g:"FetchError"}: ${o==null?void 0:o.message}`,l+=` 222 223Caused by: ${(v=d==null?void 0:d.name)!==null&&v!==void 0?v:"Error"}: ${y}`,w&&(l+=` (${w})`),d!=null&&d.stack&&(l+=` 224${d.stack}`)}else{var x;l=(x=o==null?void 0:o.stack)!==null&&x!==void 0?x:""}const m=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)",m>this.urlLengthLimit&&(c+=`. Note: Your request URL is ${m} 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)",m>this.urlLengthLimit&&(c+=`. Your request URL is ${m} 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:""}}
224)),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 h=await e.text();h===""||(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=h:r=JSON.parse(h))}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 GL(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:o}}returns(){return this}overrideTypes(){return this}},QL=class extends YL{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}explain({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 Xv=new RegExp("[,()]");var Xs=class extends QL{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"&&Xv.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"&&Xv.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])=>
224n!==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}},XL=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 Xs({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>
2240){const l=[...new Set(a)].map(c=>`"${c}"`);i.searchParams.set("columns",l.join(","))}}return new Xs({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 Xs({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 Xs({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 Xs({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 va(e){"@babel/helpers - typeof";return va=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},va(e)}function ZL(e,t){if(va(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(va(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eM(e){var t=ZL(e,"string");return va(t)=="symbol"?t:t+""}function tM(e,t,n){return(t=eM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zv(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 Tl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zv(Object(n),!0).forEach(function(r){tM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var nM=class xk{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,h=setTimeout(()=>d.abort(),i),f=u==null?void 0:u.signal;if(f){if(f.aborted)return clearTimeout(h),l(c,u);const g=()=>{clearTimeout(h),d.abort()};return f.addEventListener("abort",g,{once:!0}),l(c,Tl(Tl({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(h),f.removeEventListener("abort",g)})}return l(c,Tl(Tl({},u),{},{signal:d.signal})).finally(()=>clearTimeout(h))}: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 XL(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 xk(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=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(u)),d=r&&Object.values(n).some(u);d?(a="POST",c=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([f,g])=>g!==void 0).map(([f,g])=>[f,Array.isArray(g)?`{${g.join(",")}}`:`${g}
224`]).forEach(([f,g])=>{l.searchParams.append(f,g)})):(a="POST",c=n);const h=new Headers(this.headers);return d?h.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&h.set("Prefer",`count=${i}`),new Xs({method:a,url:l,headers:h,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class rM{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: 225import ws from "ws" 226new 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+=` 227 228Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const sM="2.105.3",iM=`realtime-js/${sM}`,oM="1.0.0",bk="2.0.0",aM=bk,lM=1e4,cM=100,Tr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Sk={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},_f={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class uM{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 h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+d.length,f=new ArrayBuffer(this.HEADER_LENGTH+h);let g=new DataView(f),v=0;g.setUint8(v++,this.KINDS.userBroadcastPush),g.setUint8(v++,l.length),g.setUint8(v++,a.length),g.setUint8(v++,o.length),g.setUint8(v++,c.length),g.setUint8(v++,d.length),g.setUint8(v++,n),Array.from(l,m=>g.setUint8(v++,m.charCodeAt(0))),Array.from(a,m=>g.setUint8(v++,m.charCodeAt(0))),Array.from(o,m=>g.setUint8(v++,m.charCodeAt(0))),Array.from(c,m=>g.setUint8(v++,m.charCodeAt(0))),Array.from(d,m=>g.setUint8(v++,m.charCodeAt(0)));var x=new Uint8Array(f.byteLength+r.byteLength);return x.set(new Uint8Array(f),0),x.set(new Uint8Array(r),f.byteLength),x.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,o,a,l]=r;
228return 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 h=t.slice(l,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(r.decode(h)):h,g={type:this.BROADCAST_EVENT,event:u,payload:f};return o>0&&(g.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:g}}_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 fe;(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"})(fe||(fe={}));const e0=(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]=dM(o,e,t,s),i),{}):{}},dM=(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)?kk(i,o):Tf(o)},kk=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return mM(t,n)}switch(e){case fe.bool:return hM(t);case fe.float4:case fe.float8:case fe.int2:case fe.int4:case fe.int8:case fe.numeric:case fe.oid:return fM(t);case fe.json:case fe.jsonb:return pM(t);case fe.timestamp:return gM(t);case fe.abstime:case fe.date:case fe.daterange:case fe.int4range:case fe.int8range:case fe.money:case fe.reltime:case fe.text:case fe.time:case fe.timestamptz:case fe.timetz:case fe.tsrange:case fe.tstzrange:return Tf(t);default:return Tf(t)}},Tf=e=>e,hM=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},fM=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},pM=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},mM=(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=>kk(t,a))}return e},gM=e=>typeof e=="string"?e.replace(" ","T"):e,Ek=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},yM=typeof self<"u"?self:null,Zs=typeof window<"u"?window:null,jn=yM||Zs||globalThis,vM="2.0.0",wM=1e4,xM=1e3,Ln={connecting:0,open:1,closing:2,closed:3},vt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Jn={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Cf={longpoll:"longpoll",websocket:"websocket"},bM={complete:4},Pf="base64url.bearer.phx.",Cl=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.recHooks=[],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()}
vendor: 8,135 bytes, line 228
228matchReceive({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})}},_k=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))}},SM=class{constructor(e,t,n){this.state=vt.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 Cl(this,Jn.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new _k(()=>{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=vt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=vt.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=vt.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=vt.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 Cl(this,Jn.leave,zo({}),this.timeout).send(),this.state=vt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Jn.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=vt.closed,this.bindings=[]}onClose(e){this.on(Jn.close,e)}onError(e){return this.on(Jn.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 Cl(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=vt.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Jn.close,"leave")},n=new Cl(this,Jn.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=vt.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===vt.closed}isErrored(){return this.state===vt.errored}isJoined(){return this.state===vt.joined}isJoining(){return this.state===vt.joining}isLeaving(){return this.state===vt.leaving}},qc=class{static request(e,t,n,r,s,i,o){if(jn.XDomainRequest){let a=new jn.XDomainRequest;return this.xdomainRequest(a,e,t,r,s,i,o)}else if(jn.XMLHttpRequest){let a=new jn.XMLHttpRequest;return this.xhrRequest(a,e,t,n,r,s,i,o)}else{if(jn.fetch&&jn.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),jn.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===bM.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)}`}},kM=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)},qs=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Pf)&&(this.authToken=atob(t[1].slice(Pf.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=Ln.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Cf.websocket),"$1/"+Cf.longpoll)}endpointURL(){return qc.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Ln.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Ln.open||this.readyState===Ln.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=Ln.open,this.onopen({}),this.poll();break;
228case 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=kM(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(` 229`),()=>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=Ln.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=qc.request(e,this.endpointURL(),t,n,this.timeout,o,a=>{this.reqs.delete(i),this.isActive()&&s(a)}),this.reqs.add(i)}},EM=class To{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=To.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=To.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=To.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 To.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(v=>v.phx_ref),h=u.metas.map(v=>v.phx_ref),f=c.metas.filter(v=>h.indexOf(v.phx_ref)<0),g=u.metas.filter(v=>d.indexOf(v.phx_ref)<0);f.length>0&&(o[l]=c,o[l].metas=f),g.length>0&&(a[l]=this.clone(u),a[l].metas=g)}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(h=>h.phx_ref),d=c.metas.filter(h=>u.indexOf(h.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))}},Pl={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,459 bytes, line 229
229,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 h=e.slice(a,e.byteLength),f={status:d,response:h};return{join_ref:l,ref:c,topic:u,event:Jn.reply,payload:f}},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}}},_M=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||wM,this.transport=t.transport||jn.WebSocket||qs,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||jn&&jn.sessionStorage,this.establishedConnections=0,this.defaultEncoder=Pl.encode.bind(Pl),this.defaultDecoder=Pl.decode.bind(Pl),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!==qs?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;Zs&&Zs.addEventListener&&(Zs.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),n=this.connectClock)}),Zs.addEventListener("pageshow",r=>{n===this.connectClock&&(n=null,this.connect())}),Zs.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=r=>t.rejoinAfterMs?t.rejoinAfterMs(r):[1e3,2e3,5e3][r-1]||1e4,this.reconnectAfterMs=r=>t.reconnectAfterMs?t.reconnectAfterMs(r):[10,50,100,150,200,250,500,1e3,2e3][r-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(r,s,i)=>{console.log(`${r}: ${s}`,i)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=zo(t.params||{}),this.endPoint=`${e}/${Cf.websocket}`,this.vsn=t.vsn||vM,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new _k(()=>{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 qs}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=qc.appendParams(qc.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!==qs?this.connectWithFallback(qs,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 qs:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Pf}${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(),xM,"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===Ln.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 229
229triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Jn.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case Ln.connecting:return"connecting";case Ln.open:return"open";case Ln.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 SM(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 Ho{constructor(t,n){const r=CM(n);this.presence=new EM(t.getChannel(),r),this.presence.onJoin((s,i,o)=>{const a=Ho.onJoinPayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onLeave((s,i,o)=>{const a=Ho.onLeavePayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Ho.transformState(this.presence.state)}static transformState(t){return t=TM(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return n[r]=sc(s),n},{})}static onJoinPayload(t,n,r){const s=t0(n),i=sc(r);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,n,r){const s=t0(n),i=sc(r);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function sc(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function TM(e){return JSON.parse(JSON.stringify(e))}function CM(e){return(e==null?void 0:e.events)&&{events:e.events}}function t0(e){return e!=null&&e.metas?sc(e):[]}var n0;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(n0||(n0={}));class PM{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Ho(this.channel.channelAdapter,n)}}function AM(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
229if(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 jM{constructor(t,n,r){const s=RM(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>cM){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===Tr.joined}isJoined(){return this.state===Tr.joined}isJoining(){return this.state===Tr.joining}isClosed(){return this.state===Tr.closed}isLeaving(){return this.state===Tr.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function RM(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var r0;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(r0||(r0={}));var yi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(yi||(yi={}));var Yn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Yn||(Yn={}));class Wo{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 jM(this.socket.socketAdapter,t,this.params),this.presence=new PM(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=Ek(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(f=>f.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[yi.PRESENCE]&&this.bindings[yi.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:u}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>{t==null||t(Yn.CHANNEL_ERROR,AM(f))}),this._onClose(()=>t==null?void 0:t(Yn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:f})=>{if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(Yn.SUBSCRIBED);return}this._updatePostgresBindings(f,t)}).receive("error",f=>{this.state=Tr.errored;const g=Object.values(f).join(", ")||"error";t==null||t(Yn.CHANNEL_ERROR,new Error(g,{cause:f}))}).receive("timeout",()=>{t==null||t(Yn.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:h}}=l,f=t&&t[a];if(f&&f.event===c&&Wo.isFilterValueEqual(f.schema,u)&&Wo.isFilterValueEqual(f.table,d)&&Wo.isFilterValueEqual(f.filter,h))o.push(Object.assign(Object.assign({},l),{id:f.id}));else{this.unsubscribe(),this.state=Tr.errored,n==null||n(Yn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=Tr.errored&&n&&n(Yn.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===yi.PRESENCE||t===yi.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;
229try{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 in 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 h=(s=this.bindings[d])===null||s===void 0?void 0:s.find(f=>f.ref===t.ref);if(!h)return!0;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in h){const f=h.id,g=(i=
229h.filter)===null||i===void 0?void 0:i.event;return f&&((o=n.ids)===null||o===void 0?void 0:o.includes(f))&&(g==="*"||(g==null?void 0:g.toLocaleLowerCase())===((a=n.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const f=(c=(l=h==null?void 0:h.filter)===null||l===void 0?void 0:l.event)===null||c===void 0?void 0:c.toLocaleLowerCase();return f==="*"||f===((u=n==null?void 0:n.event)===null||u===void 0?void 0:u.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===d})}_notThisChannelEvent(t,n){const{close:r,error:s,leave:i,join:o}=Sk;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=e0(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=e0(t.columns,t.old_record)),n}}class NM{constructor(t,n){this.socket=new _M(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()==_f.connecting}isDisconnecting(){return this.socket.connectionState()==_f.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const s0={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},OM=[1e3,2e3,5e3,1e4],IM=1e4,LM=` 230 addEventListener("message", (e) => { 231 if (e.data.event === "start") { 232 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 233 } 234 });`;class MM{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={}
234,this.ref=0,this.serializer=new uM,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 NM(t,s),this.httpEndpoint=Ek(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} 235 236To use Realtime in Node.js, you need to provide a WebSocket implementation: 237 238Option 1: Use Node.js 22+ which has native WebSocket support 239Option 2: Install and provide the "ws" package: 240 241 npm install ws 242 243 import ws from "ws" 244 const client = new RealtimeClient(url, { 245 ...options, 246 transport: ws 247 })`):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()||_f.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 Wo(`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}
247this._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:iM};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(Sk.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([LM],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,s,i,o,a,l,c,u,d,h;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 f={};f.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:lM,f.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:s0.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:s0.HEARTBEAT_INTERVAL),f.transport=(l=t==null?void 0:t.transport)!==null&&l!==void 0?l:rM.getWebSocketConstructor(),f.params=t==null?void 0:t.params,f.logger=t==null?void 0:t.logger,f.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),f.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:m=>OM[m-1]||IM;let g,v;const x=(u=t==null?void 0:t.vsn)!==null&&u!==void 0?u:aM;switch(x){case oM:g=(m,y)=>y(JSON.stringify(m)),v=(m,y)=>y(JSON.parse(m));break;case bk:g=this.serializer.encode.bind(this.serializer),v=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${f.vsn}`)}if(f.vsn=x,f.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:g,f.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:v,f.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,f.params=Object.assign(Object.assign({},f.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,f.autoSendHeartbeat=!this.worker}return f}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
247var wa=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 DM(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 $M(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 FM(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=DM(e.baseUrl,r,s),l=await $M(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"),h=d&&u?JSON.parse(u):u;if(!c.ok){const f=d?h:void 0,g=f==null?void 0:f.error;throw new wa((g==null?void 0:g.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:g==null?void 0:g.type,icebergCode:g==null?void 0:g.code,details:f})}return{status:c.status,headers:c.headers,data:h}}}}function Al(e){return e.join("�")}var VM=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Al(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/${Al(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Al(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Al(e.namespace)}`}),!0}catch(t){if(t instanceof wa&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof wa&&n.status===409)return;throw n}}};function Ks(e){return e.join("�")}var UM=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/${Ks(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/${Ks(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/${Ks(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/${Ks(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/${Ks(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/${Ks(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof wa&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof wa&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},BM=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=FM({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new VM(this.client,t),this.tableOps=new UM(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)}
247async 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 xa(e){"@babel/helpers - typeof";return xa=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},xa(e)}function zM(e,t){if(xa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HM(e){var t=zM(e,"string");return xa(t)=="symbol"?t:t+""}function WM(e,t,n){return(t=HM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i0(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?i0(Object(n),!0).forEach(function(r){WM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Mu=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 Du(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Af=class extends Mu{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())}},Tk=class extends Mu{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function Kc(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 qM(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}const KM=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),GM=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)},jf=e=>{if(Array.isArray(e))return e.map(n=>jf(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]=jf(r)}),t},JM=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),o0=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)},YM=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 Af(o0(o),i,a,r))}).catch(()=>{const o=i+"";t(new Af(s.statusText||`HTTP ${i} error`,i,o,r))})}else t(new Tk(o0(e),e,r))},QM=(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(GM(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=Kc(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 xo(e,t,n,r,s,i,o){return new Promise((a,l)=>{e(n,QM(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=>YM(c,l,r,o))})}function Ck(e="storage"){return{get:async(t,n,r,s)=>xo(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>xo(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>xo(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>xo(t,"HEAD",n,Y(Y({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>xo(t,"DELETE",n,s,i,r,e)}}const XM=Ck("storage"),{get:ba,post:cn,put:Rf,head:ZM,remove:jm}=XM,Nt=Ck("vectors");var so=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=qM(t),this.fetch=KM(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=Kc(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(Du(n))return{data:null,error:n};throw n}}},eD=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(Du(t))return{data:null,error:t};throw t}}};let Pk;Pk=Symbol.toStringTag;var tD=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Pk]="BlobDownloadBuilder",this.promise=null}asStream(){return new eD(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(Du(t))return{data:null,error:t};throw t}}};const nD={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},a0={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var rD=class extends so{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({},a0),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[h,f]of Object.entries(r.headers))a=Kc(a,h,f);const c=s._removeEmptyFolders(t),u=s._getFinalPath(c),d=await(e=="PUT"?Rf:cn)(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({},a0),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
247ppend("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[h,f]of Object.entries(r.headers))u=Kc(u,h,f);return{path:i,fullPath:(await Rf(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 cn(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 Mu("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 cn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
247stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await cn(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 cn(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 cn(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=()=>ba(this.fetch,`${this.url}/${r}/${o}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new tD(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>jf(await ba(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await ZM(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(Du(s)){var r;const i=s instanceof Af?s.status:s instanceof Tk?(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 jm(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({},nD),t),{},{prefix:e||""});return await cn(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 cn(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 sD="2.105.3",za={"X-Client-Info":`storage-js/${sD}`};var iD=class extends so{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({},za),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await ba(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ba(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await cn(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 Rf(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 cn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await jm(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():""}},oD=class extends so{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},za),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await cn(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 ba(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await jm(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!JM(e))throw new Mu("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 BM({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
247),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}}}}})}},aD=class extends so{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},za),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Nt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Nt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Nt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Nt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},lD=class extends so{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},za),{},{"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 Nt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Nt.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 Nt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Nt.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 Nt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},cD=class extends so{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},za),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Nt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Nt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Nt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Nt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},uD=class extends cD{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new dD(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)}},dD=class extends aD{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 hD(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}
247,hD=class extends lD{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}))}},fD=class extends iD{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new rD(this.url,this.headers,e,this.fetch)}get vectors(){return new uD(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new oD(this.url+"/iceberg",this.headers,this.fetch)}};function $u(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 Ak="2.105.3",ei=30*1e3,Nf=3,Ud=Nf*ei,pD="http://localhost:9999",mD="supabase.auth.token",gD={"X-Client-Info":`gotrue-js/${Ak}`},Of="X-Supabase-Api-Version",jk={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},yD=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,vD=10*60*1e3;class Sa 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 wD extends Sa{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function xD(e){return $(e)&&e.name==="AuthApiError"}class pn extends Sa{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class dr extends Sa{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class He extends dr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function jl(e){return $(e)&&e.name==="AuthSessionMissingError"}class Gs extends dr{constructor(){super("Auth session or user missing","AuthInvalidToken
247ResponseError",500,void 0)}}class Rl extends dr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Nl extends dr{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 bD(e){return $(e)&&e.name==="AuthImplicitGrantRedirectError"}class l0 extends dr{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 SD extends dr{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 If extends dr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Bd(e){return $(e)&&e.name==="AuthRetryableFetchError"}class c0 extends dr{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 Lf extends dr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Gc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),u0=` 248\r=`.split(""),kD=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<u0.length;t+=1)e[u0[t].charCodeAt(0)]=-2;for(let t=0;t<Gc.length;t+=1)e[Gc[t].charCodeAt(0)]=t;return e})();function d0(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(Gc[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(Gc[r]),t.queuedBits-=6}}function Rk(e,t,n){const r=kD[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 h0(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{TD(o,r,n)};for(let o=0;o<e.length;o+=1)Rk(e.charCodeAt(o),s,i);return t.join("")}function ED(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 _D(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}ED(r,t)}}function TD(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 Ci(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)Rk(e.charCodeAt(s),n,r);return new Uint8Array(t)}function CD(e){const t=[];return _D(e,n=>t.push(n)),new Uint8Array(t)}function xs(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>d0(s,n,r)),d0(null,n,r),t.join("")}function PD(e){return Math.round(Date.now()/1e3)+e}function AD(){return Symbol("auth-callback")}const Ge=()=>typeof window<"u"&&typeof document<"u",as={tested:!1,writable:!1},Nk=()=>{if(!Ge())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(as.tested)return as.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),as.tested=!0,as.writable=!0}catch{as.tested=!0,as.writable=!1}return as.writable};function jD(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
248h((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const Ok=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),RD=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",ti=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},ls=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Ke=async(e,t)=>{await e.removeItem(t)};class Fu{constructor(){this.promise=new Fu.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Fu.promiseConstructor=Promise;function Ol(e){const t=e.split(".");if(t.length!==3)throw new Lf("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!yD.test(t[r]))throw new Lf("JWT not in base64url format");return{header:JSON.parse(h0(t[0])),payload:JSON.parse(h0(t[1])),signature:Ci(t[2]),raw:{header:t[0],payload:t[1]}}}async function ND(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function OD(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 ID(e){return("0"+e.toString(16)).substr(-2)}function LD(){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,ID).join("")}async function MD(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 DD(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 MD(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Js(e,t,n=!1){const r=LD();let s=r;n&&(s+="/recovery"),await ti(e,`${t}-code-verifier`,s);const i=await DD(r);return[i,r===i?"plain":"s256"]}const $D=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function FD(e){const t=e.headers.get(Of);if(!t||!t.match($D))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function VD(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 UD(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 BD=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function qn(e){if(!BD.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function on(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 zd(){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 zD(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
248if(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 f0(e){return JSON.parse(JSON.stringify(e))}const ps=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)},HD=[502,503,504,520,521,522,523,524,530];async function p0(e){var t;if(!RD(e))throw new If(ps(e),0);if(HD.includes(e.status))throw new If(ps(e),e.status);let n;try{n=await e.json()}catch(i){throw new pn(ps(i),i)}let r;const s=FD(e);if(s&&s.getTime()>=jk["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 c0(ps(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new He}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 c0(ps(n),e.status,n.weak_password.reasons);throw new wD(ps(n),e.status||500,r)}const WD=(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[Of]||(i[Of]=jk["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 qD(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 qD(e,t,n,r,s,i){const o=WD(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new If(ps(l),0)}if(a.ok||await p0(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await p0(l)}}function Vt(e){var t;let n=null;JD(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=PD(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function m0(e){const t=Vt(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Cr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function KD(e){return{data:e,error:null}}function GD(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=$u(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 g0(e){return e}function JD(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const Hd=["global","local","others"];class YD{constructor({url:t="",headers:n={},fetch:r,experimental:s}){this.url=t,this.headers=n,this.fetch=Ok(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)}}
vendor: 4,751 bytes, line 248
248async signOut(t,n=Hd[0]){if(Hd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Hd.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:Cr})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=$u(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:GD,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:Cr})}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:g0});if(u.error)throw u.error;const d=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(g=>{const v=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(g.split(";")[1].split("=")[1]);c[`${x}Page`]=v}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if($(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){qn(t);try{return await z(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Cr})}catch(n){if($(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){qn(t);try{return await z(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Cr})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){qn(t);try{return await z(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Cr})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){qn(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){qn(t.userId),qn(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:g0});if(u.error)throw u.error;const d=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(g=>{const v=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(g.split(";")[1].split("=")[1]);c[`${x}Page`]=v}),c.total=parseInt(h)),{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,"DELET
248E",`${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,"DELETE",`${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){on(this.experimental),qn(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){on(this.experimental),qn(t.userId),qn(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 y0(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Cn={debug:!!(globalThis&&Nk()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
248class Ik extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class v0 extends Ik{}async function QD(e,t,n){Cn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let s;t>0&&(s=setTimeout(()=>{r.abort(),Cn.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),Cn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{Cn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw Cn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new v0(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Cn.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 Cn.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){Cn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await n()}finally{Cn.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 Cn.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new v0(`Lock "${e}" was released because another request stole it`)}throw i}}function XD(){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 Lk(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function ZD(e){return parseInt(e,16)}function e$(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function t$(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:h}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 249`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=Lk(e.address),g=u?`${u}://${r}`:r,v=e.statement?`${e.statement} 250`:"",x=`${g} wants you to sign in with your Ethereum account: 251${f} 252 253${v}`;let m=`URI: ${d} 254Version: ${h} 255Chain ID: ${n}${o?` 256Nonce: ${o}`:""} 257Issued At: ${i.toISOString()}`;if(s&&(m+=` 258Expiration Time: ${s.toISOString()}`),a&&(m+=` 259Not Before: ${a.toISOString()}`),l&&(m+=` 260Request ID: ${l}`),c){let y=` 261Resources:`;
261for(const w of c){if(!w||typeof w!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${w}`);y+=` 262- ${w}`}m+=y}return`${x} 263${m}`}class Le 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 Jc extends Le{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function n$({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 Le({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Le({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Le({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Le({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Le({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Le({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Le({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Le({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(Mk(o)){if(i.rp.id!==o)return new Le({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Le({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Le({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Le({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Le({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function r$({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Le({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Le({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(Mk(r)){if(n.rpId!==r)return new Le({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Le({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Le({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ER
263ROR",cause:e})}return new Le({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class s${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 Mf=new s$;function w0(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=$u(e,["challenge","user","excludeCredentials"]),i=Ci(t).buffer,o=Object.assign(Object.assign({},n),{id:Ci(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:Ci(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function x0(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=$u(e,["challenge","allowCredentials"]),s=Ci(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:Ci(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function b0(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:xs(new Uint8Array(e.response.attestationObject)),clientDataJSON:xs(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function S0(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:xs(new Uint8Array(s.authenticatorData)),clientDataJSON:xs(new Uint8Array(s.clientDataJSON)),signature:xs(new Uint8Array(s.signature)),userHandle:s.userHandle?xs(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Mk(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Yc(){var e,t;return!!(Ge()&&"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 Dk(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Jc("Browser returned unexpected credential type",t)}:{data:null,error:new Jc("Empty credential response",t)}}catch(t){return{data:null,error:n$({error:t,options:e})}}}async function $k(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Jc("Browser returned unexpected credential type",t)}:{data:null,error:new Jc("Empty credential response",t)}}catch(t){return{data:null,error:r$({error:t,options:e})}}}const i$={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},o$={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Qc(...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]=Qc(a,o):r[i]=Qc(o)}else r[i]=o}return r}function a$(e,t){return Qc(i$,e,t||{})}function l$(e,t){return Qc(o$,e,t||{})}class c${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??Mf.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 f=(await this.client.getUser()).data.user,g=((o=f==null?void 0:f.user_metadata)===null||o===void 0?void 0:o.name)||(f==null?void 0:f.email)||(f==null?void 0:f.id)||"User";u.name=`${u.id}:${g}`}}u.displayName||(u.displayName=u.name)}
263switch(a.webauthn.type){case"create":{const u=a$(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:h}=await Dk({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:h}}case"request":{const u=l$(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:h}=await $k(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:h}}}}catch(a){return $(a)?{data:null,error:a}:{data:null,error:new pn("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 Sa("rpId is required for WebAuthn authentication")};try{if(!Yc())return{data:null,error:new pn("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 pn("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 Sa("rpId is required for WebAuthn registration")};try{if(!Yc())return{data:null,error:new pn("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(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.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 pn("Unexpected error in register",o)}}}}XD();const u$={url:pD,storageKey:mD,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:gD,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function k0(e,t,n){return await n()}const Ys={};class ka{get jwks(){var t,n;return(n=(t=Ys[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Ys[this.storageKey]=Object.assign(Object.assign({},Ys[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Ys[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Ys[this.storageKey]=Object.assign(Object.assign({},Ys[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({},u$),t);if(this.storageKey=o.storageKey,this.instanceID=(n=ka.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,ka.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&Ge()){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 YD({url:o.url,headers:o.headers,fetch:o.fetch,experimental:this.experimental}),this.url=o.url,this.headers=o.headers,this.fetch=Ok(o.fetch),this.lock=o.lock||k0,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&&Ge()&&(!((s=globalThis==null?void 0:globalThis.navigator)===null||s===void 0)&&s.locks)?this.lock=QD:this.lock=k0,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 c$(this)}
263,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:Nk()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=y0(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=y0(this.memoryStorage)),Ge()&&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} (${Ak}) ${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(Ge()&&(n=jD(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Ge()&&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),bD(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 pn("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:Vt}),{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:h}=t;let f=null,g=null;this.flowType==="pkce"&&([f,g]=await Js(this.storage,this.storageKey)),i=await z(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:u,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:g},xform:Vt})}else if("phone"in t){const{phone:u,password:d,options:h}=t;i=await z(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Vt})}else throw new Rl("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await Ke(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 Ke(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:m0})}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:m0})}else throw new Rl("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 Gs;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,h;let f,g;if("message"in t)f=t.message,g=t.signature;else{const{chain:v,wallet:x,statement:m,options:y}=t;let w;if(Ge())if(typeof x=="object")w=x;else{const C=window;if("ethereum"in C&&typeof C.ethereum=="object"&&"request"in C.ethereum&&typeof C.ethereum.request=="function")w=C.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=x}const S=new URL((n=y==null?void 0:y.url)!==null&&n!==void 0?n:window.location.href),k=await w.request({method:"eth_requestAccounts"}).then(C=>C).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=Lk(k[0]);let _=(r=y==null?void 0:y.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!_){const C=await w.request({method:"eth_chainId"});_=ZD(C)}const T={domain:S.host,address:E,statement:m,uri:S.href,version:"1",chainId:_,nonce:(s=y==null?void 0:y.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=y==null?void 0:y.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=y==null?void 0:y.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=y==null?void 0:y.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=y==null?void 0:y.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=y==null?void 0:y.signInWithEthereum)===null||u===void 0?void 0:u.resources};f=t$(T),g=await w.request({method:"personal_sign",params:[e$(f),E]})}try{const{data:v,error:x}=await z(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:g},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Vt});if(x)throw x;if(!v||!v.session||!v.user){const m=new Gs;return this._returnResult({data:{user:null,session:null},error:m})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:x})}catch(v){if($(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async signInWithSolana(t){var n,r,s,i,o,a,l,c,u,d,h,f;let g,v;if("message"in t)g=t.message,v=t.signature;else{const{chain:x,wallet:m,statement:y,options:w}=t;let S;if(Ge())if(typeof m=="object")S=m;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 m!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=m}const k=new URL((n=w==null?void 0:w.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()},w==null?void 0:w.signInWithSolana),{version:"1",domain:k.host,uri:k.href}),y?{statement:y}:null));let _;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")_=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)_=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)g=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),v=_.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");g=[`${k.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...y?["",y,""]:[""],"Version: 1",`URI: ${k.href}`,`Issued At: ${(s=(r=w==null?void 0:w.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((c=w==null?void 0:w.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((d=(u=w==null?void 0:w.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...w.sign
263InWithSolana.resources.map(_=>`- ${_}`)]:[]].join(` 264`);const E=await S.signMessage(new TextEncoder().encode(g),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=E}}try{const{data:x,error:m}=await z(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:g,signature:xs(v)},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Vt});if(m)throw m;if(!x||!x.session||!x.user){const y=new Gs;return this._returnResult({data:{user:null,session:null},error:y})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:m})}catch(x){if($(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await ls(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new SD;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:Vt});if(await Ke(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new Gs;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 Ke(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:Vt}),{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 Gs;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 Js(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 Rl("You must provide either an email or phone number.")}catch(a){if(await Ke(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:Vt});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 Js(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:KD});return!((i=c.data)===null||i===void 0)&&i.url&&Ge()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await Ke(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 He;const{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 Rl("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 ls(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
264id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Ud:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await ls(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=zd()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=zD(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:Cr}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new He}: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:Cr})})}catch(n){if($(n))return jl(n)&&(await this._removeSession(),await Ke(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 He;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Js(this.storage,this.storageKey));const{data: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:Cr});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 Ke(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 He;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Ol(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 He;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(!Ge())throw new Nl("No browser detected.");
264if(t.error||t.error_description||t.error_code)throw new Nl(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 l0("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Nl("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 l0("No code detected.");const{data:w,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:w.session,redirectType:(r=w.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 Nl("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(l);let f=d+h;c&&(f=parseInt(c));const g=f-d;g*1e3<=ei&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${g}s, should have been closer to ${h}s`);const v=f-h;d-v>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",v,f,d):d-v<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",v,f,d);const{data:x,error:m}=await this._getUser(o);if(m)throw m;const y={provider_token:s,provider_refresh_token:i,access_token:o,expires_in:h,expires_at:f,refresh_token:a,token_type:u,user:x.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:y,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 ls(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&&!jl(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&&!(xD(a)&&(a.status===404||a.status===401||a.status===403)||jl(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Ke(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=AD(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),jl(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Js(this.storage,this.storageKey,!0));try{return await 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 Ke(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:h}=i;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await z(this.fetch,"GET",f,{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 Ge()&&!(!((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;
264if(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:Vt}),{data:h,error:f}=d;return f?this._returnResult({data:{user:null,session:null},error:f}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new Gs}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:f}))}catch(s){if(await Ke(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 OD(async s=>(s>
2640&&await ND(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:Vt})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Bd(i)&&Date.now()+o-r<ei})}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),Ge()&&!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 ls(this.storage,this.storageKey);if(s&&this.userStorage){let o=await ls(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await ti(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:zd()}else if(s&&!s.user&&!s.user){const o=await ls(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Ke(this.storage,this.storageKey+"-user"),await ti(this.storage,this.storageKey,s)):s.user=zd()}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()<Ud;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${Ud}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Bd(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 He;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Fu;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new He;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 Bd(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 Ke(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 ti(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=f0(s);await ti(this.storage,this.storageKey,i)}else{const s=f0(n);await ti(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ke(this.storage,this.storageKey),await Ke(this.storage,this.storageKey+"-code-verifier"),await Ke(this.storage,this.storageKey+"-user"),this.userStorage&&await Ke(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Ge()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
264catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ei);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)/ei);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ei}ms, refresh threshold is ${Nf} ticks`),s<=Nf&&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 Ik)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ge()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await Js(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await 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"?b0(t.webauthn.credential_response):S0(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:w0(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:x0(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:f}=Ol(t);let g=null;f.aal&&(g=f.aal);let v=g;const{data:{user:x},error:m}=await this.getUser(t);if(m)return this._returnResult({data:null,error:m});((r=(n=x==null?void 0:x.factors)===null||n===void 0?void 0:n.filter(S=>S.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(v="aal2");const w=f.amr||[];return{data:{currentLevel:g,nextLevel:v,currentAuthenticationMethods:w},error:null}}catch(f){if($(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:o},error:a}
264=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}=Ol(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(f=>f.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(u="aal2");const h=l.amr||[];return{data:{currentLevel:c,nextLevel:u,currentAuthenticationMethods:h},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await 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 He})})}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 He});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&&Ge()&&!(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 He});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&&Ge()&&!(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 He})})}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 He})})}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+vD>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:f,error:g}
264=await this.getSession();if(g||!f.session)return this._returnResult({data:null,error:g});r=f.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=Ol(r);n!=null&&n.allowExpired||VD(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:f}=await this.getUser(r);if(f)throw f;return{data:{claims:i,header:s,signature:o},error:null}}const u=UD(s.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,o,CD(`${a}.${l}`)))throw new Lf("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;on(this.experimental);try{if(!Yc())return this._returnResult({data:null,error:new pn("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=x0(i.options),l=(s=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:Mf.createNewAbortSignal(),{data:c,error:u}=await $k({publicKey:a,signal:l});if(u||!c)return this._returnResult({data:null,error:u??new pn("WebAuthn ceremony failed",null)});const d=S0(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;on(this.experimental);try{if(!Yc())return this._returnResult({data:null,error:new pn("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=w0(s.options),a=(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.signal)!==null&&r!==void 0?r:Mf.createNewAbortSignal(),{data:l,error:c}=await Dk({publicKey:o,signal:a});if(c||!l)return this._returnResult({data:null,error:c??new pn("WebAuthn ceremony failed",null)});const u=b0(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(){on(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 He});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){on(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 He});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;on(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){on(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:Vt});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(){on(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 He});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){on(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 He});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){on(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 He});const{error:i}
264=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}}}ka.nextInstanceID={};const d$=ka,h$="2.105.3";let Co="";typeof Deno<"u"?Co="deno":typeof document<"u"?Co="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Co="react-native":Co="node";const f$={"X-Client-Info":`supabase-js-${Co}/${h$}`},p$={headers:f$},m$={schema:"public"},g$={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},y$={};function Ea(e){"@babel/helpers - typeof";return Ea=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},Ea(e)}function v$(e,t){if(Ea(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ea(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w$(e){var t=v$(e,"string");return Ea(t)=="symbol"?t:t+""}function x$(e,t,n){return(t=w$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E0(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 Re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E0(Object(n),!0).forEach(function(r){x$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const b$=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),S$=()=>Headers,k$=(e,t,n)=>{const r=b$(n),s=S$();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,Re(Re({},o),{},{headers:c}))}};function E$(e){return e.endsWith("/")?e:e+"/"}function _$(e,t){var n,r;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:c,realtime:u,global:d}=t,h={db:Re(Re({},l),s),auth:Re(Re({},c),i),realtime:Re(Re({},u),o),storage:{},global:Re(Re(Re({},d),a),{},{headers:Re(Re({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function T$(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(E$(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var C$=class extends d${constructor(e){super(e)}},P$=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=T$(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:m$,realtime:y$,auth:Re(Re({},g$),{},{storageKey:o}),global:p$},l=_$(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=k$(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Re({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 nM(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 fD(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new qL(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)}
264channel(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:h},f,g){const v={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new C$({url:this.authUrl.href,headers:Re(Re({},v),f),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:c,experimental:u,fetch:g,lockAcquireTimeout:d,skipAutoInitialize:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(x=>x.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new MM(this.realtimeUrl.href,Re(Re({},e),{},{params:Re(Re({},{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 A$=(e,t,n)=>new P$(e,t,n);function j$(){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}j$()&&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");function R$(){var x,m;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(y=>e===y||e.endsWith("."+y)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((x=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:x[1])??((m=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:m[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),c=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",d=2e3,h=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),f=(y,w,S)=>new Promise(k=>{const E=h();let _=!1,T;const C=O=>{_||(_=!0,clearTimeout(T),window.removeEventListener("message",P),k(O))},P=O=>{if(c.indexOf(O.origin)<0)return;const V=O.data;V&&V.type===u&&V.requestId===E&&C(V)};window.addEventListener("message",P);const N={type:y,requestId:E,projectId:s,key:w};S!==void 0&&(N.value=S);for(const O of c)window.parent.postMessage(N,O);T=setTimeout(()=>C(null),d)});let g=!0;const v=250;return{getItem:async y=>{let w=await f("lovable-preview-auth:get",y);return!w&&g&&(await new Promise(S=>setTimeout(S,v)),w=await f("lovable-preview-auth:get",y)),g=!1,w&&w.ok&&typeof w.value=="string"?w.value===""?(localStorage.removeItem(y),null):w.value:localStorage.getItem(y)},setItem:(y,w)=>(localStorage.setItem(y,w),f("lovable-preview-auth:set",y,w).then(()=>{})),removeItem:y=>(localStorage.removeItem(y),f("lovable-preview-auth:remove",y).then(()=>{}))}}const N$="https://hkkrxebfvevkexjjtotm.supabase.co",O$="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imhra3J4ZWJmdmV2a2V4amp0b3RtIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzgxNzc0MzYsImV4cCI6MjA5Mzc1MzQzNn0.gXwLzG3O6Ee7MUaxif80XpW8Ri8kTxu74mqT7xhJLmo",Xc=A$(N$,O$,{auth:{storage:R$(),persistSession:!0,autoRefreshToken:!0}}),Fk=({isOpen:e,onClose:t})=>{const{toast:n}
264=gu(),[r,s]=b.useState(!1),[i,o]=b.useState(!1),[a,l]=b.useState({first_name:"",last_name:"",email:"",phone:"",company:"",position:"",linkedin_url:"",motivation:"",referral:""}),c=h=>{l({...a,[h.target.name]:h.target.value})},u=async h=>{if(h.preventDefault(),!a.first_name||!a.last_name||!a.email||!a.company||!a.position){n({title:"Champs requis manquants",description:"Merci de remplir tous les champs obligatoires.",variant:"destructive"});return}s(!0);const{error:f}=await Xc.from("club_applications").insert({first_name:a.first_name,last_name:a.last_name,email:a.email,phone:a.phone||null,company:a.company,position:a.position,linkedin_url:a.linkedin_url||null,motivation:a.motivation||null,referral:a.referral||null});s(!1),f?n({title:"Erreur",description:"Une erreur est survenue. Veuillez réessayer.",variant:"destructive"}):o(!0)},d="w-full px-4 py-3 bg-muted border border-border rounded-xl text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200";return p.jsx(Ua,{children:e&&p.jsxs(J.div,{initial:{opacity:0}
264,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[p.jsx(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"absolute inset-0 bg-foreground/60 backdrop-blur-sm",onClick:t}),p.jsxs(J.div,{initial:{opacity:0,scale:.96,y:16},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.96,y:16},transition:{duration:.35,ease:ne},className:"relative w-full max-w-lg max-h-[90vh] overflow-y-auto bg-card rounded-2xl border border-border shadow-2xl",children:[p.jsxs("div",{className:"sticky top-0 z-10 flex items-center justify-between p-6 pb-4 bg-card border-b border-border rounded-t-2xl",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"Rejoindre le Club"}),p.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Candidature DealMakers Club"})]}),p.jsx("button",{onClick:t,className:"p-2 rounded-xl hover:bg-muted transition-colors",children:p.jsx(Qi,{size:18,className:"text-muted-foreground"})})]}),i?p.jsxs(J.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.4,ease:ne},className:"p-8 text-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-full bg-emerald-50 flex items-center justify-center mx-auto mb-4",children:p.jsx($p,{size:32,className:"text-emerald-500"})}),p.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Candidature envoyée !"}),p.jsx("p",{className:"text-muted-foreground text-sm mb-6",children:"Merci pour votre intérêt. Notre équipe reviendra vers vous dans les plus brefs délais."}),p.jsx("button",{onClick:t,className:"px-6 py-3 bg-primary text-primary-foreground text-sm font-medium rounded-xl hover:opacity-90 transition-opacity",children:"Fermer"})]}):p.jsxs("form",{onSubmit:u,className:"p-6 space-y-4",children:[p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Prénom *"}),p.jsx("input",{name:"first_name",value:a.first_name,onChange:c,className:d,placeholder:"Jean",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Nom *"}),p.jsx("input",{name:"last_name",value:a.last_name,onChange:c,className:d,placeholder:"Dupont",required:!0})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Email professionnel *"}),p.jsx("input",{name:"email",type:"email",value:a.email,onChange:c,className:d,placeholder:"[email protected]",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Téléphone"}),p.jsx("input",{name:"phone",value:a.phone,onChange:c,className:d,placeholder:"+33 6 12 34 56 78"})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Entreprise *"}),p.jsx("input",{name:"company",value:a.company,onChange:c,className:d,placeholder:"Rydge Conseil",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Poste *"}),p.jsx("input",{name:"position",value:a.position,onChange:c,className:d,placeholder:"Associate M&A",required:!0})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"LinkedIn"}),p.jsx("input",{name:"linkedin_url",value:a.linkedin_url,onChange:c,className:d,placeholder:"https://linkedin.com/in/..."})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Motivation"}),p.jsx("textarea",{name:"motivation",value:a.motivation,onChange:c,rows:3,className:d+" resize-none",placeholder:"Pourquoi souhaitez-vous rejoindre le DealMakers Club ?"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Comment avez-vous connu le club ?"}),p.jsxs("select",{name:"referral",value:a.referral,onChange:c,className:d,children:[p.jsx("option",{value:"",children:"Sélectionner..."}),p.jsx("option",{value:"linkedin",children:"LinkedIn"}),p.jsx("option",{value:"member",children:"Un membre"}),p.jsx("option",{value:"event",children:"Un événement"}),p.jsx("option",{value:"school",children:"Ãcole / Université"}),p.jsx("option",{value:"other",children:"Autre"})]})]}),p.jsx("button",{type:"submit",disabled:r,className:"w-full flex items-center justify-center gap-2 px-6 py-3.5 bg-primary text-primary-foreground text-sm font-medium rounded-xl hover:opacity-90 transition-opacity disabled:opacity-50 mt-2",children:r?p.jsx(Vp,{size:16,className:"animate-spin"}):p.jsxs(p.Fragment,{children:["Envoyer ma candidature",p.jsx(Vn,{size:16})]})}),p.jsx("p",{className:"text-[10px] text-muted-foreground text-center",children:"En soumettant ce formulaire, vous acceptez d'être contacté par le DealMakers Club."})]})]})]})})},I$=[{value:50,suffix:"+",label:"Membres actifs"},{value:15,suffix:"+",label:"Ãvénements / an"},{value:5,suffix:"",label:"Métiers représentés"}];function L$({value:e,suffix:t}){const[n,r]=b.useState(0),[s,i]=b.useState(!1);return b.useEffect(()=>{const o=setTimeout(()=>i(!0),600);return()=>clearTimeout(o)},[]),b.useEffect(()=>{if(!s)return;let o=0;const l=1800/e,c=setInterval(()=>{o+=1,r(o),o>=e&&clearInterval(c)},l);return()=>clearInterval(c)},[s,e]),p.jsxs("span",{className:"tabular-nums",children:[n,t]})}const M$=()=>{const[e,t]=b.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsxs("section",{className:"relative min-h-screen flex flex-col justify-center overflow-hidden bg-primary",children:[p.jsx("div",{className:"absolute top-1/4 -left-32 w-96 h-96 bg-emerald-400/20 rounded-full blur-3xl"}),p.jsx("div",{className:"absolute bottom-1/4 -right-32 w-96 h-96 bg-emerald-300/10 rounded-full blur-3xl"}),p.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6 lg:px-8 pt-32 pb-20",children:[p.jsxs("div",{className:"max-w-4xl",children:[p.jsx(J.div,{initial:{opacity:0,y:20}
264,animate:{opacity:1,y:0},transition:{duration:.6,delay:.1,ease:ne},className:"mb-6",children:p.jsxs("span",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-white/10 border border-white/10 text-white/80 text-xs font-medium tracking-wide",children:[p.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"La communauté de référence du deal en France"]})}),p.jsxs(J.h1,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.7,delay:.2,ease:ne},className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-semibold text-white leading-[1.05] tracking-tight mb-8",children:["Le Club des",p.jsx("br",{}),p.jsx("span",{className:"font-display italic font-normal text-emerald-300",children:"Dealmakers"})]}),p.jsx(J.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.35,ease:ne},className:"text-lg md:text-xl text-white max-w-2xl leading-relaxed mb-12",children:"L'association qui rassemble les professionnels du deal autour du networking, du sport, des insights et de la formation."}),p.jsxs(J.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.5,ease:ne},className:"flex flex-col sm:flex-row gap-4",children:[p.jsxs("button",{onClick:()=>t(!0),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-primary font-medium text-sm rounded-xl hover:bg-white/90 transition-all duration-300 group",children:["Rejoindre le club",p.jsx(Vn,{size:16,className:"group-hover:translate-x-1 transition-transform"})]}),p.jsx("a",{href:"#ecosystem",className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white/10 text-white font-medium text-sm rounded-xl border border-white/10 hover:bg-white/15 transition-all duration-300",children:"Explorer l'écosystème"})]})]}),p.jsx(J.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.65,ease:ne},className:"grid grid-cols-3 gap-8 mt-20 pt-12 border-t border-white/10 max-w-2xl mx-auto text-center",children:I$.map(n=>p.jsxs("div",{children:[p.jsx("div",{className:"text-3xl md:text-4xl font-semibold text-white mb-1",children:p.jsx(L$,{value:n.value,suffix:n.suffix})}),p.jsx("div",{className:"text-sm text-white/40",children:n.label})]},n.label))})]}),p.jsx(BL,{}),p.jsx(J.div,{initial:{opacity:0}
264,animate:{opacity:1},transition:{delay:1.1,duration:.5,ease:ne},className:"absolute bottom-28 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2",children:p.jsx(RC,{size:20,className:"text-white/30 animate-bounce"})})]}),p.jsx(Fk,{isOpen:e,onClose:()=>t(!1)})]})},D$=()=>{const e=b.useRef(null),t=ur(e,lr),n=[{icon:Nb,label:"Relations humaines",desc:"Créer des connexions authentiques et durables"},{icon:zC,label:"Opportunités",desc:"Accéder à un deal flow exclusif"},{icon:$C,label:"Partage",desc:"Ãchanger savoirs et expériences entre professionnels du deal"},{icon:BC,label:"Recrutement",desc:"Connecter les talents avec les meilleures opportunités du marché",link:"#recruitment"}];return p.jsx("section",{id:"mission",className:"section-padding bg-background",ref:e,children:p.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:p.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 lg:gap-24 items-center",children:[p.jsxs(J.div,{initial:{opacity:0,x:-24},animate:t?{opacity:1,x:0}:{},transition:{duration:.7,ease:ne},children:[p.jsx("span",{className:"text-xs font-medium tracking-widest uppercase text-primary mb-4 block",children:"Notre mission"}),p.jsxs("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold tracking-tight text-foreground leading-tight mb-6",children:["Connecter les acteurs",p.jsx("br",{}),p.jsx("span",{className:"font-display italic font-normal text-primary",children:"du deal"})]}),p.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:"Le DealMakers Club crée un véritable écosystème du deal incluant les conseils financier (TS, évaluation, M&A), les conseils légaux (avocat, juriste), les investisseurs (private equity, private debt), les gestionnaires de patrimoine (family offices, gestionnaires de fortunes) et les autres métiers connexes."}),p.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Notre ambition : rassembler les professionnels de l'industrie afin de favoriser le développement de leur carrière, de leur réseau et de leurs compétences."})]}),p.jsx(J.div,{initial:{opacity:0,x:24},animate:t?{opacity:1,x:0}:{},transition:{duration:.7,delay:.15,ease:ne},className:"grid grid-cols-2 gap-4",children:n.map((r,s)=>{const i=p.jsxs(J.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.5,delay:.2+s*.08,ease:ne},className:"card-premium flex flex-col gap-3 p-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-accent flex items-center justify-center",children:p.jsx(r.icon,{size:18,className:"text-primary"})}),p.jsx("h3",{className:"font-semibold text-sm text-foreground",children:r.label}),p.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:r.desc})]});return r.link?p.jsx("a",{href:r.link,className:"group",children:i},r.label):p.jsx("div",{children:i},r.label)})})]})})})},$$=[{icon:Nb,title:"Networking",description:"Ãvénements privés et rencontres premium pour tisser des liens authentiques.",formats:["Afterworks","Wine tasting","Blind lunches"]},{icon:UC,title:"Insights",description:"Formats inspirants autour des marchés, des tendances et de la diversité en finance.",formats:["Conférences","Petits-déjeuners","Women in Finance"]},{icon:IC,title:"Sport",description:"Connecter autrement autour d'événements sportifs et de challenges entre membres.",formats:["Course à pied","Padel"]},{icon:DC,title:"Formation",description:"Accompagner la montée en compétences des talents et futurs leaders du deal.",formats:["Parcours de mentoring","Conférences"]}],F$=()=>{const e=b.useRef(null),t=ur(e,lr);return p.jsx("section",{id:"poles",className:"section-padding bg-muted",ref:e,children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[p.jsxs(J.div,{initial:{opacity:0,y:24},animate:t?{opacity:1,y:0}:{},transition:{duration:.7,ease:ne},className:"text-center mb-16",children:[p.jsx("span",{className:"text-xs font-medium tracking-widest uppercase text-primary mb-4 block",children:"Nos pôles"}),p.jsxs("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold tracking-tight text-foreground",children:["4 piliers,"," ",p.jsx("span",{className:"font-display italic font-normal text-primary",children:"un écosystème"})]}),p.jsx("p",{className:"mt-4 text-muted-foreground text-lg max-w-2xl mx-auto",children:"Chaque pôle propose ses propres formats d'événements pour répondre à toutes les envies."})]}),p.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:$$.map((n,r)=>p.jsxs(J.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.5,delay:.15+r*.08,ease:ne},className:"card-premium group h-full",children:[p.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-5",children:p.jsx(n.icon,{size:22,className:"text-primary"})}),p.jsx("h3",{className:"text-lg font-semibold text-foreground mb-3",children:n.title}),p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-5",children:n.description}),p.jsx("div",{className:"flex flex-wrap gap-2",children:n.formats.map(s=>p.jsx("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-primary/10 text-primary",children:s},s))})]},n.title))}),p.jsx(J.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.5,ease:ne},className:"mt-14 text-center",children:p.jsxs("a",{href:"mailto:[email protected]",className:"group inline-flex items-center gap-2 rounded-full bg-primary px-6 py-3 text-sm font-medium text-white transition-all hover:bg-primary/90 hover:shadow-lg hover:shadow-
264primary/20",children:[p.jsx(Rb,{size:16,className:"transition-transform group-hover:scale-110"}),"Vous souhaitez sponsoriser un événement, ou un format ? Contactez-nous"]})})]})})},Vk="/assets/team-valentin-C_FSJbV2.jpg",Uk="/assets/team-chiara-Cmg62xRW.jpg",Bk="/assets/team-william-Dun09ySW.jpg",zk="/assets/team-sabine-Jd-lEOa0.jpg",Hk="/assets/team-benjamin-CI9ibsrM.jpg",Wk="/assets/team-anne-PpQ_Jmhm.jpg",qk="/assets/team-marc-lzTqwZL_.jpg",V$={"Valentin THIAULT":{photo:Vk,linkedin:"https://www.linkedin.com/in/valentinthiault"},"Chiara OPERTO":{photo:Uk,linkedin:"https://www.linkedin.com/in/chiara-operto-edgeskills/"},"William GERMAIN":{photo:Bk,linkedin:"https://www.linkedin.com/in/william-germain/"},"Sabine BENSAID":{photo:zk,linkedin:"https://www.linkedin.com/in/sabine-bensaid-7b957a145/"},"Benjamin LE MAITRE":{photo:Hk,linkedin:"https://www.linkedin.com/in/benjaminlemaitre/"},"Anne HIEBLER":{photo:Wk,linkedin:"https://www.linkedin.com/in/anne-hiebler-321230/"},"Marc SABATÃ":{photo:qk,linkedin:"https://www.linkedin.com/in/marcsabate"}},cs=[{name:"M&A",tagline:"Les banques d'affaires qui structurent les opérations.",items:[{name:"Transaction R",domain:"transaction-r.com",description:"Banque d'affaires indépendante française, en tête des league tables M&A small & mid-cap."},{name:"Adviso Group",domain:"adviso-partners.com",description:"Banque d'affaires indépendante spécialisée en M&A mid-cap en France."},{name:"Edmond de Rothschild",domain:"edmond-de-rothschild.com",description:"Groupe financier indépendant, acteur de référence du conseil M&A européen."},{name:"Mirabaud Advisors",domain:"mirabaud.com",description:"Activité de conseil M&A du groupe Mirabaud, dédiée aux opérations small & mid-cap.",member:"Marc SABATÃ",memberRole:"Directeur Général"}
264,{name:"Crédit Agricole CIB",domain:"ca-cib.com",description:"Banque de financement et d'investissement du groupe Crédit Agricole.",member:"Anne HIEBLER"},{name:"Rothschild & Co",domain:"rothschildandco.com",description:"Banque d'affaires franco-britannique, leader mondial du conseil en fusions-acquisitions."},{name:"Lazard",domain:"lazard.com",description:"Banque d'affaires internationale spécialisée en conseil financier et gestion d'actifs."},{name:"Evercore",domain:"evercore.com",description:"Banque d'affaires indépendante américaine, référence du conseil M&A."},{name:"Moelis",domain:"moelis.com",description:"Banque d'affaires indépendante spécialisée en restructuration et M&A."}]},{name:"Deal Advisory",tagline:"Transaction Services, évaluation et due diligence.",items:[{name:"Rydge Conseil",domain:"rydge-conseil.com",description:"Cabinet de conseil spécialisé en Deal Advisory et transactions.",member:"Valentin THIAULT"},{name:"Deloitte",domain:"deloitte.com",description:"Réseau mondial d'audit, conseil et services financiers â pôle Transaction Services."},{name:"PwC",domain:"pwc.com",description:"Leader mondial de l'audit et du conseil â expertise Deals et valorisation."},{name:"KPMG",domain:"kpmg.com",description:"Réseau international â pôle Deal Advisory, TS et évaluation financière."},{name:"EY",domain:"ey.com",description:"Cabinet international â Strategy and Transactions, TS et valorisation."},{name:"Eight Advisory",domain:"eightadvisory.com",description:"Cabinet indépendant de conseil financier, spécialisé en Transaction Services et restructuring."}]},{name:"Avocats",tagline:"Les conseils juridiques des transactions.",items:[{name:"Darrois Villey",domain:"darroisvilley.com",description:"Cabinet d'avocats d'affaires français, référence en M&A et droit des sociétés."},{name:"Bredin Prat",domain:"bredinprat.com",description:"Cabinet indépendant français, leader en contentieux et transactions."},{name:"Gide",domain:"gide.com",description:"Cabinet d'avocats international d'origine française, présent dans 15 pays."},{name:"Goodwin",domain:"goodwinlaw.com",description:"Cabinet international spécialisé en PE, VC et technology.",member:"Sabine BENSAID"},{name:"Linklaters",domain:"linklaters.com",description:"Cabinet d'avocats international de premier plan, expert en M&A, finance et capital marchés."}]},{name:"Private Equity & Private Debt",tagline:"Les fonds qui investissent et financent la croissance.",items:[{name:"Ardian",domain:"ardian.com",description:"Leader européen de l'investissement privé avec plus de 150 Mds$ sous gestion."},{name:"PAI Partners",domain:"paipartners.com",description:"Fonds de private equity européen spécialisé dans les transformations d'entreprises."},{name:"Eurazeo",domain:"eurazeo.com",description:"Groupe d'investissement européen diversifié, coté à Paris."},{name:"Bridgepoint",domain:"bridgepoint.eu",description:"Fonds de private equity international focalisé sur le mid-market européen."},{name:"Siparex",domain:"siparex.com",description:"Groupe indépendant de capital-investissement, acteur majeur du mid-market français.",member:"William GERMAIN"},{name:"Tikehau Capital",domain:"tikehaucapital.com",description:"Groupe de gestion d'actifs spécialisé en dette privée, private equity et immobilier."},{name:"Archimed",domain:"archimed-group.eu",description:"Fonds d'investissement européen spécialisé dans le secteur de la santé et des sciences de la vie."},{name:"Pemberton Capital",domain:"pembertonam.com",description:"Fonds européen de dette privée pour les entreprises mid et large-cap."}]},{name:"Family Office",tagline:"Les investisseurs patrimoniaux et holdings familiales.",items:[{name:"Avant Garde",domain:"avantgarde.fr",description:"Structure d'investissement et de conseil stratégique.",member:"Benjamin LE MAITRE"},{name:"Wendel",domain:"wendelgroup.com",description:"Société d'investissement familiale cotée, l'un des plus anciens family offices français."},{name:"Financière Agache",domain:"groupearnault.com",description:"Holding d'investissement du groupe Arnault, acteur majeur du family office en France."}]}],U$=e=>e?`https://logo.clearbit.com/${e}`:"",B$=()=>{const e=b.useRef(null),t=b.useRef(null),n=ur(e,lr),[r,s]=b.useState(null),[i,o]=b.useState(0),a=r!=null&&r.member?V$[r.member]:null;b.useMemo(()=>cs.reduce((d,h)=>d+h.items.filter(f=>f.member).length,0),[]),b.useEffect(()=>{const d=t.current;if(!d)return;
264const h=Array.from(d.querySelectorAll("[data-slide]")),f=new IntersectionObserver(g=>{g.forEach(v=>{if(v.isIntersecting&&v.intersectionRatio>.6){const x=Number(v.target.getAttribute("data-slide"));o(x)}})},{root:d,threshold:[.6,.9]});return h.forEach(g=>f.observe(g)),()=>f.disconnect()},[]);const l=d=>{const h=t.current;if(!h)return;const f=h.querySelector(`[data-slide="${d}"]`);f&&h.scrollTo({left:f.offsetLeft,behavior:"smooth"})},c=()=>l(Math.max(0,i-1)),u=()=>l(Math.min(cs.length-1,i+1));return b.useEffect(()=>{const d=h=>{r&&h.key==="Escape"&&s(null)};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[r]),p.jsxs("section",{id:"ecosystem",className:"section-padding bg-background relative overflow-hidden",ref:e,children:[p.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 opacity-60",style:{background:"radial-gradient(circle at 50% 30%, hsl(var(--primary) / 0.06), transparent 60%)"}}),p.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8 relative",children:[p.jsxs(J.div,{initial:{opacity:0,y:24},animate:n?{opacity:1,y:0}:{},transition:{duration:.7,ease:ne},className:"text-center mb-10",children:[p.jsx("span",{className:"text-xs font-medium tracking-widest uppercase text-primary mb-4 block",children:"L'écosystème"}),p.jsxs("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold tracking-tight text-foreground mb-4",children:["Le hub du deal"," ",p.jsx("span",{className:"font-display italic font-normal text-primary",children:"français"})]}),p.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:"Parcourez les métiers de l'écosystème transactionnel français. Chaque étape regroupe les acteurs de référence et nos membres."})]}),p.jsx(J.div,{initial:{opacity:0,y:12},animate:n?{opacity:1,y:0}:{},transition:{duration:.6,delay:.15,ease:ne},className:"relative mb-8",children:p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"absolute left-0 right-0 top-1/2 h-px bg-border -translate-y-1/2"}),p.jsx("div",{className:"absolute left-0 top-1/2 h-px bg-primary -translate-y-1/2 transition-all duration-500 ease-out",style:{width:`${(i+.5)/cs.length*100}%`}}),p.jsx("ol",{className:"relative grid grid-cols-3 md:grid-cols-5 gap-2",children:cs.map((d,h)=>{const f=h===i,g=h<i;return p.jsx("li",{className:"flex flex-col items-center text-center",children:p.jsxs("button",{type:"button",onClick:()=>l(h),className:"group flex flex-col items-center focus:outline-none","aria-label":`Aller à ${d.name}`,"aria-current":f?"step":void 0,children:[p.jsx("span",{className:`relative z-10 flex items-center justify-center w-8 h-8 rounded-full border-2 text-[11px] font-semibold transition-all duration-300 ${f?"bg-primary border-primary text-primary-foreground scale-110 shadow-md shadow-primary/30":g?"bg-primary/15 border-primary text-primary":"bg-background border-border text-muted-foreground group-hover:border-primary/60"}`,children:String(h+1).padStart(2,"0")}),p.jsx("span",{className:`mt-2 text-[10px] md:text-xs font-medium tracking-wide uppercase leading-tight transition-colors ${f?"text-foreground":"text-muted-foreground group-hover:text-foreground"}`,children:d.name})]})},d.name)})})]})}),p.jsxs("div",{className:"relative",children:[p.jsx("button",{type:"button",onClick:c,disabled:i===0,className:"hidden md:flex absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 z-20 w-10 h-10 rounded-full bg-card border border-border shadow-md items-center justify-center text-foreground hover:bg-primary hover:text-primary-foreground hover:border-primary transition-all disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:bg-card disabled:hover:text-foreground disabled:hover:border-border","aria-label":"Précédent",children:p.jsx(NC,{size:18})}),p.jsx("button",{type:"button",onClick:u,disabled:i===cs.length-1,className:"hidden md:flex absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 z-20 w-10 h-10 rounded-full bg-card border border-border shadow-md items-center justify-center text-foreground hover:bg-primary hover:text-primary-foreground hover:border-primary transition-all disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:bg-card disabled:hover:text-foreground disabled:hover:border-border","aria-label":"Suivant",children:p.jsx(OC,{size:18})}),p.jsx("div",{ref:t,className:"flex overflow-x-auto snap-x snap-mandatory scroll-smooth gap-6 pb-4 -mx-6 px-6 scrollbar-hide",style:{scrollbarWidth:"none"},children:cs.map((d,h)=>
264p.jsx("article",{"data-slide":h,className:"snap-center flex-shrink-0 w-full",children:p.jsxs("div",{className:"card-premium p-6 md:p-8 h-full",children:[p.jsxs("header",{className:"mb-6 pb-5 border-b border-border",children:[p.jsx("div",{className:"flex items-baseline gap-3 mb-2",children:p.jsxs("span",{className:"text-xs font-mono text-primary/70",children:[String(h+1).padStart(2,"0")," / ",String(cs.length).padStart(2,"0")]})}),p.jsx("h3",{className:"text-2xl md:text-3xl font-semibold text-foreground",children:d.name}),p.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:d.tagline})]}),p.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:d.items.map((f,g)=>p.jsx(J.li,{initial:{opacity:0,y:12},animate:i===h?{opacity:1,y:0}:{opacity:.5,y:0},transition:{duration:.4,delay:g*.04,ease:ne},children:p.jsx("button",{type:"button",onClick:()=>s(f),className:"w-full h-full flex items-center gap-3 p-3 rounded-xl border border-border bg-card hover:border-primary hover:shadow-md hover:shadow-primary/10 transition-all text-left group",children:p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium text-foreground group-hover:text-primary transition-colors truncate",children:f.name}),f.member&&p.jsx("p",{className:"text-[10px] font-medium tracking-wide uppercase text-primary mt-0.5",children:"Membre"})]})})},f.name+g))})]})},d.name))})]})]}),p.jsx(Ua,{children:r&&p.jsx(J.div,{initial:{opacity:0}
264,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm p-4",onClick:()=>s(null),children:p.jsxs(J.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.3,ease:ne},className:"card-premium max-w-md w-full p-8 relative",onClick:d=>d.stopPropagation(),children:[p.jsx("button",{onClick:()=>s(null),className:"absolute top-4 right-4 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Fermer",children:p.jsx(Qi,{size:18})}),p.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[p.jsx("div",{className:"w-12 h-12 rounded-xl bg-white border border-border flex items-center justify-center overflow-hidden",children:r.domain?p.jsx("img",{src:U$(r.domain),alt:"",className:"w-full h-full object-contain p-1.5",onError:d=>{d.target.style.visibility="hidden"}}):p.jsx(jb,{size:18,className:"text-primary"})}),p.jsx("h3",{className:"text-lg font-semibold text-foreground",children:r.name})]}),p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-6",children:r.description}),r.member&&a&&p.jsxs("div",{className:"border-t border-border pt-4",children:[p.jsx("p",{className:"text-[10px] font-medium tracking-widest uppercase text-primary mb-3",children:"Membre DealMakers"}),p.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-xl bg-muted/50 border border-border/50",children:[p.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden border border-border flex-shrink-0",children:p.jsx("img",{src:a.photo,alt:r.member,className:`w-full h-full object-cover ${r.member==="Marc SABATÃ"?"grayscale":""}`})}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-semibold text-foreground",children:r.member}),r.memberRole&&p.jsx("p",{className:"text-xs text-muted-foreground",children:r.memberRole})]}),p.jsx("a",{href:a.linkedin,target:"_blank",rel:"noopener noreferrer",className:"flex-shrink-0 w-8 h-8 rounded-lg bg-accent flex items-center justify-center text-muted-foreground hover:text-primary transition-colors",children:p.jsx(Fp,{size:14})})]})]})]})},"entity-overlay")})]})},z$=({isOpen:e,onClose:t})=>{const{toast:n}=gu(),[r,s]=b.useState(!1),[i,o]=b.useState(!1),[a,l]=b.useState(null),c=b.useRef(null),[u,d]=b.useState({first_name:"",last_name:"",email:"",phone:"",current_position:"",current_company:"",experience_years:"",sector:"",availability:"",linkedin_url:"",message:""}),h=x=>{d({...u,[x.target.name]:x.target.value})},f=x=>{var w;const m=(w=x.target.files)==null?void 0:w[0];if(!m)return;if(!["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(m.type)){n({title:"Format non supporté",description:"Merci d'envoyer un fichier PDF, DOC ou DOCX.",variant:"destructive"});return}if(m.size>5*1024*1024){n({title:"Fichier trop volumineux",description:"Le CV doit faire moins de 5 Mo.",variant:"destructive"});return}l(m)},g=async x=>{if(x.preventDefault(),!u.first_name||!u.last_name||!u.email||!u.phone||!u.current_position||!u.current_company){n({title:"Champs requis manquants",description:"Merci de remplir tous les champs obligatoires.",variant:"destructive"});return}s(!0);let m=null;if(a){const w=a.name.split(".").pop(),S=`${u.last_name}-${u.first_name}`.replace(/[^a-zA-Z0-9-]/g,"_"),E=`${crypto.randomUUID()}/${S}.${w}`,{error:_}=await Xc.storage.from("cv-uploads").upload(E,a,{contentType:a.type,upsert:!1});if(_){s(!1),n({title:"Erreur d'upload",description:"Impossible d'envoyer votre CV. Veuillez réessayer.",variant:"destructive"});return}m=E}const{error:y}=await Xc.from("talent_profiles").insert({first_name:u.first_name,last_name:u.last_name,email:u.email,phone:u.phone||null,current_position:u.current_position,current_company:u.current_company,experience_years:u.experience_years||null,sector:u.sector||null,availability:u.availability||null,linkedin_url:u.linkedin_url||null,cv_url:m,message:u.message||null});s(!1),y?n({title:"Erreur",description:"Une erreur est survenue. Veuillez réessayer.",variant:"destructive"}):o(!0)},v="w-full px-4 py-3 bg-muted border border-border rounded-xl text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200";return p.jsx(Ua,{children:e&&p.jsxs(J.div,{initial:{opacity:0}
264,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[p.jsx(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"absolute inset-0 bg-foreground/60 backdrop-blur-sm",onClick:t}),p.jsxs(J.div,{initial:{opacity:0,scale:.96,y:16},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.96,y:16},transition:{duration:.35,ease:ne},className:"relative w-full max-w-lg max-h-[90vh] overflow-y-auto bg-card rounded-2xl border border-border shadow-2xl",children:[p.jsxs("div",{className:"sticky top-0 z-10 flex items-center justify-between p-6 pb-4 bg-card border-b border-border rounded-t-2xl",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"Créer mon profil talent"}),p.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Rejoignez le vivier de talents du Club"})]}),p.jsx("button",{onClick:t,className:"p-2 rounded-xl hover:bg-muted transition-colors",children:p.jsx(Qi,{size:18,className:"text-muted-foreground"})})]}),i?p.jsxs(J.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.4,ease:ne},className:"p-8 text-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-full bg-emerald-50 flex items-center justify-center mx-auto mb-4",children:p.jsx($p,{size:32,className:"text-emerald-500"})}),p.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Profil envoyé !"}),p.jsx("p",{className:"text-muted-foreground text-sm mb-6",children:"Votre profil a bien été reçu. Nous reviendrons vers vous si une opportunité correspond."}),p.jsx("button",{onClick:t,className:"px-6 py-3 bg-primary text-primary-foreground text-sm font-medium rounded-xl hover:opacity-90 transition-opacity",children:"Fermer"})]}):p.jsxs("form",{onSubmit:g,className:"p-6 space-y-4",children:[p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Prénom *"}),p.jsx("input",{name:"first_name",value:u.first_name,onChange:h,className:v,placeholder:"Jean",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Nom *"}),p.jsx("input",{name:"last_name",value:u.last_name,onChange:h,className:v,placeholder:"Dupont",required:!0})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Email *"}),p.jsx("input",{name:"email",type:"email",value:u.email,onChange:h,className:v,placeholder:"[email protected]",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Téléphone *"}),p.jsx("input",{name:"phone",value:u.phone,onChange:h,className:v,placeholder:"+33 6 12 34 56 78",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Poste actuel *"}),p.jsx("input",{name:"current_position",value:u.current_position,onChange:h,className:v,placeholder:"Analyste M&A",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Entreprise actuelle *"}),p.jsx("input",{name:"current_company",value:u.current_company,onChange:h,className:v,placeholder:"Rydge Conseil",required:!0})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Expérience"}),p.jsxs("select",{name:"experience_years",value:u.experience_years,onChange:h,className:v,children:[p.jsx("option",{value:"",children:"Sélectionner..."}),p.jsx("option",{value:"0-2",children:"0-2 ans"}),p.jsx("option",{value:"3-5",children:"3-5 ans"}),p.jsx("option",{value:"6-10",children:"6-10 ans"}),p.jsx("option",{value:"10+",children:"10+ ans"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Secteur"}),p.jsx("input",{name:"sector",value:u.sector,onChange:h,className:v,placeholder:"TMT, Santé..."})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Statut de la recherche"}),p.jsxs("select",{name:"availability",value:u.availability,onChange:h,className:v,children:[p.jsx("option",{value:"",children:"Sélectionner..."}),p.jsx("option",{value:"open",children:"En recherche active"}),p.jsx("option",{value:"exploring",children:"A l'écoute du marché"}),p.jsx("option",{value:"not_open",children:"Pas en recherche"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"LinkedIn"}),p.jsx("input",{name:"linkedin_url",value:u.linkedin_url,onChange:h,className:v,placeholder:"https://linkedin.com/in/..."})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"CV (PDF, DOC, DOCX â 5 Mo max)"}),p.jsx("input",{ref:c,type:"file",accept:".pdf,.doc,.docx,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",onChange:f,className:"hidden"}),p.jsx("button",{type:"button",onClick:()=>{var x;return(x=c.current)==null?void 0:x.click()},className:"w-full flex items-center gap-3 px-4 py-3 bg-muted border border-dashed border-border rounded-xl text-sm text-muted-foreground hover:border-primary hover:text-foreground transition-colors",children:a?p.jsxs(p.Fragment,{children:[p.jsx(MC,{size:16,className:"text-primary shrink-0"}),p.jsx("span",{className:"truncate flex-1 text-left text-foreground",children:a.name}),p.jsx("span",{onClick:x=>{x.stopPropagation(),l(null),c.current&&(c.current.value="")},className:"text-xs text-muted-foreground hover:text-destructive",children:"Retirer"})]}):p.jsxs(p.Fragment,{children:[p.jsx(HC,{size:16,className:"shrink-0"}),p.jsx("span",{children:"Téléverser mon CV"})]})})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Message"}),p.jsx("textarea",{name:"message",value:u.message,onChange:h,rows:3,className:v+" resize-none",placeholder:"Quelques mots sur vos aspirations..."})]}),p.jsx("button",{type:"submit",disabled:r,className:"w-full flex items-center justify-center gap-2 px-6 py-3.5 bg-primary text-primary-foreground text-sm font-medium rounded-xl hover:opacity-90 transition-opacity disabled:opacity-50 mt-2",children:r?p.jsx(Vp,{size:16,className:"animate-spin"}):p.jsxs(p.Fragment,{children:["Envoyer mon profil ",p.jsx(Vn,{size:16})]})}),p.jsx("p",{className:"text-[10px] text-muted-foreground text-center",children:"En soumettant ce formulaire, vous acceptez d'être contacté par le DealMakers Club."})]})]})]})})},H$=({isOpen:e,onClose:t})=>{const{toast:n}
264=gu(),[r,s]=b.useState(!1),[i,o]=b.useState(!1),[a,l]=b.useState({first_name:"",last_name:"",email:"",phone:"",company:"",position:"",sought_profile:"",message:""}),c=h=>{l({...a,[h.target.name]:h.target.value})},u=async h=>{if(h.preventDefault(),!a.first_name||!a.last_name||!a.email||!a.phone||!a.company||!a.position||!a.sought_profile){n({title:"Champs requis manquants",description:"Merci de remplir tous les champs obligatoires.",variant:"destructive"});return}s(!0);const{error:f}=await Xc.from("recruiter_requests").insert({first_name:a.first_name,last_name:a.last_name,email:a.email,phone:a.phone||null,company:a.company,position:a.position,sought_profile:a.sought_profile,message:a.message||null});s(!1),f?n({title:"Erreur",description:"Une erreur est survenue. Veuillez réessayer.",variant:"destructive"}):o(!0)},d="w-full px-4 py-3 bg-muted border border-border rounded-xl text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200";return p.jsx(Ua,{children:e&&p.jsxs(J.div,{initial:{opacity:0}
264,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[p.jsx(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"absolute inset-0 bg-foreground/60 backdrop-blur-sm",onClick:t}),p.jsxs(J.div,{initial:{opacity:0,scale:.96,y:16},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.96,y:16},transition:{duration:.35,ease:ne},className:"relative w-full max-w-lg max-h-[90vh] overflow-y-auto bg-card rounded-2xl border border-border shadow-2xl",children:[p.jsxs("div",{className:"sticky top-0 z-10 flex items-center justify-between p-6 pb-4 bg-card border-b border-border rounded-t-2xl",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"Recruter via le Club"}),p.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Décrivez votre besoin, nous vous mettons en relation"})]}),p.jsx("button",{onClick:t,className:"p-2 rounded-xl hover:bg-muted transition-colors",children:p.jsx(Qi,{size:18,className:"text-muted-foreground"})})]}),i?p.jsxs(J.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.4,ease:ne},className:"p-8 text-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-full bg-emerald-50 flex items-center justify-center mx-auto mb-4",children:p.jsx($p,{size:32,className:"text-emerald-500"})}),p.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Demande envoyée !"}),p.jsx("p",{className:"text-muted-foreground text-sm mb-6",children:"Notre équipe revient vers vous très rapidement pour échanger sur votre besoin."}),p.jsx("button",{onClick:t,className:"px-6 py-3 bg-primary text-primary-foreground text-sm font-medium rounded-xl hover:opacity-90 transition-opacity",children:"Fermer"})]}):p.jsxs("form",{onSubmit:u,className:"p-6 space-y-4",children:[p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Prénom *"}),p.jsx("input",{name:"first_name",value:a.first_name,onChange:c,className:d,placeholder:"Marie",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Nom *"}),p.jsx("input",{name:"last_name",value:a.last_name,onChange:c,className:d,placeholder:"Martin",required:!0})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Email professionnel *"}),p.jsx("input",{name:"email",type:"email",value:a.email,onChange:c,className:d,placeholder:"[email protected]",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Téléphone *"}),p.jsx("input",{name:"phone",value:a.phone,onChange:c,className:d,placeholder:"+33 6 12 34 56 78",required:!0})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Entreprise *"}),p.jsx("input",{name:"company",value:a.company,onChange:c,className:d,placeholder:"Rydge Conseil",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Votre poste *"}),p.jsx("input",{name:"position",value:a.position,onChange:c,className:d,placeholder:"Head of HR",required:!0})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Profil recherché *"}),p.jsx("input",{name:"sought_profile",value:a.sought_profile,onChange:c,className:d,placeholder:"Senior Associate M&A",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1.5",children:"Description du besoin"}),p.jsx("textarea",{name:"message",value:a.message,onChange:c,rows:4,className:d+" resize-none",placeholder:"Précisez le périmètre, l'expérience attendue, le secteur..."})]}),p.jsx("button",{type:"submit",disabled:r,className:"w-full flex items-center justify-center gap-2 px-6 py-3.5 bg-primary text-primary-foreground text-sm font-medium rounded-xl hover:opacity-90 transition-opacity disabled:opacity-50 mt-2",children:r?p.jsx(Vp,{size:16,className:"animate-spin"}):p.jsxs(p.Fragment,{children:["Envoyer ma demande ",p.jsx(Vn,{size:16})]})}),p.jsx("p",{className:"text-[10px] text-muted-foreground text-center",children:"En soumettant ce formulaire, vous acceptez d'être contacté par le DealMakers Club."})]})]})]})})},W$=[{role:"Analyste M&A",exp:"3 ans",sector:"TMT",status:"Open to opportunities"},{role:"Senior TS",exp:"5 ans",sector:"Généraliste",status:"Open to opportunities"},{role:"Avocat Collaborateur",exp:"8 ans",sector:"M&A",status:"Exploring"}],q$=()=>{const e=b.useRef(null),t=ur(e,lr),[n,r]=b.useState(!1),[s,i]=b.useState(!1);return p.jsxs("section",{id:"recruitment",className:"section-padding bg-muted",ref:e,children:[p.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[p.jsxs(J.div,{initial:{opacity:0,y:24},animate:t?{opacity:1,y:0}:{},transition:{duration:.7,ease:ne},className:"text-center mb-16",children:[p.jsx("span",{className:"text-xs font-medium tracking-widest uppercase text-primary mb-4 block",children:"Recrutement"}),p.jsxs("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold tracking-tight text-foreground mb-4",children:["Talents &"," ",p.jsx("span",{className:"font-display italic font-normal text-primary",children:"Opportunités"})]}),p.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:"Connectez talents exceptionnels et entreprises ambitieuses via notre réseau exclusif."})]}),p.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[p.jsxs(J.div,{initial:{opacity:0,x:-20},animate:t?{opacity:1,x:0}:{},transition:{duration:.6,delay:.15,ease:ne},className:"card-premium",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-accent flex items-center justify-center",children:p.jsx(ey,{size:18,className:"text-primary"})}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-semibold text-foreground",children:"Pour les talents"}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Indiquez votre disponibilité"})]})]}),p.jsx("div",{className:"space-y-3 mb-6",children:W$.map((o,a)=>p.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-muted/50 border border-border/50",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-full bg-accent flex items-center justify-center",children:p.jsx(ey,{size:14,className:"text-primary"})}),p.jsxs("div",{children:[p.jsx("div",{className:"text-sm font-medium text-foreground",children:o.role}),p.jsxs("div",{className:"text-xs text-muted-foreground",children:[o.exp," · ",o.sector]})]})]}),p.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-medium text-emerald-600 bg-emerald-50 px-2 py-1 rounded-full",children:[p.jsx("span",{className:"w-1 h-1 rounded-full bg-emerald-500"}),o.status]})]},a))}),p.jsxs("button",{type:"button",onClick:()=>r(!0),className:"inline-flex items-center gap-2 text-sm font-medium text-primary hover:underline group",children:["Créer mon profil",p.jsx(Vn,{size:14,className:"group-hover:translate-x-1 transition-transform"})]})]}),p.jsxs(J.div,{initial:{opacity:0,x:20},animate:t?{opacity:1,x:0}:{},transition:{duration:.6,delay:.25,ease:ne},className:"card-premium",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-accent flex items-center justify-center",children:p.jsx(jb,{size:18,className:"text-primary"})}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-semibold text-foreground",children:"Pour les entreprises"}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Recrutez via le club"})]})]}),p.jsxs("div",{className:"space-y-4 mb-6",children:[p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Accédez à un vivier de talents qualifiés issus des meilleures institutions. Notre réseau couvre l'ensemble des métiers du deal : M&A, PE, VC, conseil, audit."}),p.jsx("div",{className:"grid grid-cols-2 gap-3",children:["Profils vérifiés","Réseau confidentiel","Matching premium","Process sur-mesure"].map(o=>p.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[p.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary"}),o]},o))})]}),p.jsxs("button",{type:"button",onClick:()=>i(!0),className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-primary-foreground text-sm font-medium rounded-xl hover:opacity-90 transition-opacity group",children:["Recruter via le Club",p.jsx(Vn,{size:14,className:"group-hover:translate-x-1 transition-transform"})]})]})]})]}),p.jsx(z$,{isOpen:n,onClose:()=>r(!1)}),p.jsx(H$,{isOpen:s,onClose:()=>i(!1)})]})},K$=()=>{const e=b.useRef(null),t=ur(e,lr);return p.jsx("section",{id:"events",className:"section-padding bg-background",ref:e,children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[p.jsxs(J.div,{initial:{opacity:0,y:24},animate:t?{opacity:1,y:0}:{},transition:{duration:.7,ease:ne},className:"text-center mb-16",children:[p.jsx("span",{className:"text-xs font-medium tracking-widest uppercase text-primary mb-4 block",children:"Ãvénements"}),p.jsxs("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold tracking-tight text-foreground mb-4",children:["Agenda"," ",p.jsx("span",{className:"font-display italic font-normal text-primary",children:"exclusif"})]}),p.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:"Des événements pensés pour créer des connexions authentiques entre professionnels du deal."})]}),p.jsxs(J.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.15,ease:ne}
264,className:"max-w-2xl mx-auto space-y-6",children:[p.jsx("div",{className:"group block rounded-2xl border border-border bg-card p-8 transition-all hover:shadow-lg hover:shadow-primary/5",children:p.jsxs("div",{className:"flex items-start gap-6",children:[p.jsxs("div",{className:"flex-shrink-0 w-16 h-16 rounded-2xl bg-primary/10 flex flex-col items-center justify-center text-primary",children:[p.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"JUIL"}),p.jsx("span",{className:"text-2xl font-bold leading-none",children:"09"})]}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-primary mb-2",children:[p.jsx(Hs,{size:14}),"Soirée annuelle"]}),p.jsx("h3",{className:"text-xl md:text-2xl font-semibold text-card-foreground mb-2",children:"Summer Party"}),p.jsx("p",{className:"text-muted-foreground mb-4",children:"Rejoignez-nous pour une soirée exclusive entre professionnels du deal."}),p.jsxs("a",{href:"https://canva.link/2c1lvzoupxgbiws",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-full bg-primary px-5 py-2.5 text-sm font-medium text-white transition-all hover:bg-primary/90 hover:shadow-lg hover:shadow-primary/20",children:[p.jsx(VC,{size:14,fill:"currentColor"}),"Voir le récap vidéo"]})]})]})}),p.jsx("div",{className:"group block rounded-2xl border border-border bg-card p-8 transition-all hover:shadow-lg hover:shadow-primary/5",children:p.jsxs("div",{className:"flex items-start gap-6",children:[p.jsxs("div",{className:"flex-shrink-0 w-16 h-16 rounded-2xl bg-primary/10 flex flex-col items-center justify-center text-primary",children:[p.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"OCT"}),p.jsx("span",{className:"text-2xl font-bold leading-none",children:"01"})]}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-primary mb-2",children:[p.jsx(Hs,{size:14}),"Networking"]}),p.jsx("h3",{className:"text-xl md:text-2xl font-semibold text-card-foreground mb-2",children:"Wine Tasting"}),p.jsx("p",{className:"text-muted-foreground",children:"Dégustation exclusive de vins entre membres du club."})]})]})}),p.jsx("div",{className:"group block rounded-2xl border border-border bg-card p-8 transition-all hover:shadow-lg hover:shadow-primary/5",children:p.jsxs("div",{className:"flex items-start gap-6",children:[p.jsxs("div",{className:"flex-shrink-0 w-16 h-16 rounded-2xl bg-primary/10 flex flex-col items-center justify-center text-primary",children:[p.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"OCT"}),p.jsx("span",{className:"text-2xl font-bold leading-none",children:"22"})]}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-primary mb-2",children:[p.jsx(Hs,{size:14}),"Sport"]}),p.jsx("h3",{className:"text-xl md:text-2xl font-semibold text-card-foreground mb-2",children:"Course à pied"}),p.jsx("p",{className:"text-muted-foreground",children:"Un moment convivial entre membres autour d'une sortie course à pied."})]})]})}),p.jsx("div",{className:"group block rounded-2xl border border-border bg-card p-8 transition-all hover:shadow-lg hover:shadow-primary/5",children:p.jsxs("div",{className:"flex items-start gap-6",children:[p.jsxs("div",{className:"flex-shrink-0 w-16 h-16 rounded-2xl bg-primary/10 flex flex-col items-center justify-center text-primary",children:[p.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"NOV"}),p.jsx("span",{className:"text-2xl font-bold leading-none",children:"04"})]}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-primary mb-2",children:[p.jsx(Hs,{size:14}),"Conférence sectorielle"]}),p.jsx("h3",{className:"text-xl md:text-2xl font-semibold text-card-foreground mb-2",children:"Petit déjeuner Deals & Sport"}),p.jsx("p",{className:"text-muted-foreground",children:"Un petit déjeuner autour d'une conférence et d'un temps d'échange dédié aux deals dans le secteur du sport."})]})]})}),p.jsx("div",{className:"group block rounded-2xl border border-border bg-card p-8 transition-all hover:shadow-lg hover:shadow-
264primary/5",children:p.jsxs("div",{className:"flex items-start gap-6",children:[p.jsxs("div",{className:"flex-shrink-0 w-16 h-16 rounded-2xl bg-primary/10 flex flex-col items-center justify-center text-primary",children:[p.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"NOV"}),p.jsx("span",{className:"text-base font-bold leading-none whitespace-nowrap",children:"16â30"})]}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-primary mb-2",children:[p.jsx(Hs,{size:14}),"Sport"]}),p.jsx("h3",{className:"text-xl md:text-2xl font-semibold text-card-foreground mb-2",children:"Padel"}),p.jsx("p",{className:"text-muted-foreground",children:"Un moment sportif entre membres autour d'un tournoi de padel."})]})]})}),p.jsx("div",{className:"group block rounded-2xl border border-border bg-card p-8 transition-all hover:shadow-lg hover:shadow-primary/5",children:p.jsxs("div",{className:"flex items-start gap-6",children:[p.jsxs("div",{className:"flex-shrink-0 w-16 h-16 rounded-2xl bg-primary/10 flex flex-col items-center justify-center text-primary",children:[p.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"DÃC"}),p.jsx("span",{className:"text-base font-bold leading-none whitespace-nowrap",children:"01â15"})]}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-primary mb-2",children:[p.jsx(Hs,{size:14}),"Atelier / Conférence"]}),p.jsx("h3",{className:"text-xl md:text-2xl font-semibold text-card-foreground mb-2",children:"Les enjeux de l'IA dans l'industrie"}),p.jsx("p",{className:"text-muted-foreground",children:"Un atelier / conférence dédié aux opportunités et défis de l'intelligence artificielle pour l'industrie."})]})]})})]}),p.jsx(J.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.3,ease:ne},className:"mt-10 text-center",children:p.jsxs("a",{href:"https://luma.com/dealmakersclub?k=c",target:"_blank",rel:"noopener noreferrer",className:"group inline-flex items-center gap-2 rounded-full bg-primary px-6 py-3 text-sm font-medium text-white transition-all hover:bg-primary/90 hover:shadow-lg hover:shadow-primary/20",children:["Voir tous les événements du club",p.jsx(Vn,{size:16,className:"transition-transform group-hover:translate-x-1"})]})})]})})};function G$(e){return Object.prototype.toString.call(e)==="[object Object]"}function _0(e){return G$(e)||Array.isArray(e)}function J$(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Rm(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],l=t[o];return typeof a=="function"?`${a}`==`${l}`:!_0(a)||!_0(l)?a===l:Rm(a,l)})}function T0(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Y$(e,t){if(e.length!==t.length)return!1;const n=T0(e),r=T0(t);return n.every((s,i)=>{const o=r[i];return Rm(s,o)})}function Nm(e){return typeof e=="number"}function Df(e){return typeof e=="string"}function Vu(e){return typeof e=="boolean"}function C0(e){return Object.prototype.toString.call(e)==="[object Object]"}function _e(e){return Math.abs(e)}function Om(e){return Math.sign(e)}function qo(e,t){return _e(e-t)}function Q$(e,t){if(e===0||t===0||_e(e)<=_e(t))return 0;const n=qo(_e(e),_e(t));return _e(n/e)}function _a(e){return Ta(e).map(Number)}function vn(e){return e[Ha(e)]}function Ha(e){return Math.max(0,e.length-1)}function Im(e,t){return t===Ha(e)}function P0(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Ta(e){return Object.keys(e)}function Kk(e,t){return[e,t].reduce((n,r)=>(Ta(r).forEach(s=>{const i=n[s],o=r[s],a=C0(i)&&C0(o);n[s]=a?Kk(i,o):o}),n),{})}function $f(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function X$(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(l){return i(l)/2}function i(l){return t-l}function o(l,c){return Df(e)?n[e](l):e(t,l,c)}return{measure:o}}function Ca(){let e=[];function t(s,i,o,a={passive:!0}){let l;if("addEventListener"in s)s.addEventListener(i,o,a),l=()=>s.removeEventListener(i,o,a);else{const c=s;c.addListener(o),l=()=>c.removeListener(o)}return e.push(l),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function Z$(e,t,n,r){const s=Ca(),i=1e3/60;let o=null,a=0,l=0;function c(){s.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){f(),s.clear()}function d(x){if(!l)return;o||(o=x);const m=x-o;for(o=x,a+=m;a>=i;)n(i),a-=i;const y=a/i;r(y),l&&t.requestAnimationFrame(d)}function h(){l||(l=t.requestAnimationFrame(d))}function f(){t.cancelAnimationFrame(l),o=null,a=0,l=0}function g(){o=null,a=0}return{init:c,destroy:u,start:h,stop:f,update:()=>n(i),render:r}}function e4(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),l=d();function c(g){const{height:v,width:x}=g;return r?v:x}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function h(g){return g*o}return{scroll:s,cross:i,startEdge:a,endEdge:l,measureSize:c,direction:h}}function Ds(e=0,t=0){const n=_e(e-t);function r(c){return c<e}function s(c){return c>t}function i(c){return r(c)||s(c)}function o(c){return i(c)?r(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}
vendor: 10,982 bytes, line 264
264function Gk(e,t,n){const{constrain:r}=Ds(0,e),s=e+1;let i=o(t);function o(h){return n?_e((s+h)%s):r(h)}function a(){return i}function l(h){return i=o(h),d}function c(h){return u().set(a()+h)}function u(){return Gk(e,a(),n)}const d={get:a,set:l,add:c,clone:u};return d}function t4(e,t,n,r,s,i,o,a,l,c,u,d,h,f,g,v,x,m,y){const{cross:w,direction:S}=e,k=["INPUT","SELECT","TEXTAREA"],E={passive:!1},_=Ca(),T=Ca(),C=Ds(50,225).constrain(f.measure(20)),P={mouse:300,touch:400},N={mouse:500,touch:600},O=g?43:25;let V=!1,I=0,K=0,U=!1,G=!1,A=!1,j=!1;function D(H){if(!y)return;function ie($e){(Vu(y)||y(H,$e))&&Pe($e)}const me=t;_.add(me,"dragstart",$e=>$e.preventDefault(),E).add(me,"touchmove",()=>{},E).add(me,"touchend",()=>{}).add(me,"touchstart",ie).add(me,"mousedown",ie).add(me,"touchcancel",Ae).add(me,"contextmenu",Ae).add(me,"click",ze,!0)}function q(){_.clear(),T.clear()}function W(){const H=j?n:t;T.add(H,"touchmove",ee,E).add(H,"touchend",Ae).add(H,"mousemove",ee,E).add(H,"mouseup",Ae)}function Z(H){const ie=H.nodeName||"";return k.includes(ie)}function Q(){return(g?N:P)[j?"mouse":"touch"]}function he(H,ie){const me=d.add(Om(H)*-1),$e=u.byDistance(H,!g).distance;return g||_e(H)<C?$e:x&&ie?$e*.5:u.byIndex(me.get(),0).distance}function Pe(H){const ie=$f(H,r);j=ie,A=g&&ie&&!H.buttons&&V,V=qo(s.get(),o.get())>=2,!(ie&&H.button!==0)&&(Z(H.target)||(U=!0,i.pointerDown(H),c.useFriction(0).useDuration(0),s.set(o),W(),I=i.readPoint(H),K=i.readPoint(H,w),h.emit("pointerDown")))}function ee(H){if(!$f(H,r)&&H.touches.length>=2)return Ae(H);const me=i.readPoint(H),$e=i.readPoint(H,w),ot=qo(me,I),Pt=qo($e,K);if(!G&&!j&&(!H.cancelable||(G=ot>Pt,!G)))return Ae(H);const gt=i.pointerMove(H);ot>v&&(A=!0),c.useFriction(.3).useDuration(.75),a.start(),s.add(S(gt)),H.preventDefault()}function Ae(H){const me=u.byDistance(0,!1).index!==d.get(),$e=i.pointerUp(H)*Q(),ot=he(S($e),me),Pt=Q$($e,ot),gt=O-10*Pt,at=m+Pt/50;G=!1,U=!1,T.clear(),c.useDuration(gt).useFriction(at),l.distance(ot,!g),j=!1,h.emit("pointerUp")}function ze(H){A&&(H.stopPropagation(),H.preventDefault(),A=!1)}function Ie(){return U}return{init:D,destroy:q,pointerDown:Ie}}function n4(e,t){let r,s;function i(d){return d.timeStamp}function o(d,h){const g=`client${(h||e.scroll)==="x"?"X":"Y"}`;return($f(d,t)?d:d.touches[0])[g]}function a(d){return r=d,s=d,o(d)}function l(d){const h=o(d)-o(s),f=i(d)-i(r)>170;return s=d,f&&(r=d),h}function c(d){if(!r||!s)return 0;const h=o(s)-o(r),f=i(d)-i(r),g=i(d)-i(s)>170,v=h/f;return f&&!g&&_e(v)>.1?v:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:o}}function r4(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function s4(e){function t(r){return e*(r/100)}return{measure:t}}function i4(e,t,n,r,s,i,o){const a=[e].concat(r);let l,c,u=[],d=!1;function h(x){return s.measureSize(o.measure(x))}function f(x){if(!i)return;c=h(e),u=r.map(h);function m(y){for(const w of y){if(d)return;const S=w.target===e,k=r.indexOf(w.target),E=S?c:u[k],_=h(S?e:r[k]);if(_e(_-E)>=.5){x.reInit(),t.emit("resize");break}}}l=new ResizeObserver(y=>{(Vu(i)||i(x,y))&&m(y)}),n.requestAnimationFrame(()=>{a.forEach(y=>l.observe(y))})}function g(){d=!0,l&&l.disconnect()}return{init:f,destroy:g}}function o4(e,t,n,r,s,i){let o=0,a=0,l=s,c=i,u=e.get(),d=0;function h(E){const _=E/1e3,T=l*_,C=r.get()-e.get(),P=!l;let N=0;return P?(o=0,n.set(r),e.set(r),N=C):(n.set(e),o+=C/T,o*=c,u+=o,e.add(o*_),N=u-d),a=Om(N),d=u,k}function f(){const E=r.get()-t.get();return _e(E)<.001}function g(){return l}function v(){return a}function x(){return o}function m(){return w(s)}function y(){return S(i)}function w(E){return l=E,k}function S(E){return c=E,k}const k={direction:v,duration:g,velocity:x,seek:h,settled:f,useBaseFriction:y,useBaseDuration:m,useFriction:S,useDuration:w};return k}function a4(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=Ds(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(f){if(!c())return;const g=e.reachedMin(t.get())?"min":"max",v=_e(e[g]-t.get()),x=n.get()-t.get(),m=a.constrain(v/o);n.subtract(x*m),!f&&_e(x)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(f){l=!f}return{shouldConstrain:c,constrain:u,toggleActive:d}}function l4(e,t,n,r,s){const i=Ds(-t+e,0),o=d(),a=u(),l=h();function c(g,v){return qo(g,v)<1}function u(){const g=o[0],v=vn(o),x=o.lastIndexOf(g),m=o.indexOf(v)+1;return Ds(x,m)}function d(){return n.map((g,v)=>{const{min:x,max:m}=i,y=i.constrain(g),w=!v,S=Im(n,v);return w?m:S||c(x,y)?x:c(m,y)?m:y}).map(g=>parseFloat(g.toFixed(3)))}function h(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:g,max:v}=a;return o.slice(g,v)}return{snapsContained:l,scrollContainLimit:a}}function c4(e,t,n){const r=t[0],s=n?r-e:vn(t);return{limit:Ds(s,r)}}function u4(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:l}=Ds(i,o);function c(h){return h===1?l(n.get()):h===-1?a(n.get()):!1}function u(h){if(!c(h))return;const f=e*(h*-1);r.forEach(g=>g.add(f))}return{loop:u}}function d4(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function h4(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,l=d().map(t.measure),c=h(),u=f();function d(){return a(r).map(v=>vn(v)[o]-v[0][i]).map(_e)}function h(){return r.map(v=>n[i]-v[i]).map(v=>-_e(v))}function f(){return a(c).map(v=>v[0]).map((v,x)=>v+l[x])}return{snaps:c,snapsAligned:u}}function f4(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:l}=r,c=u();function u(){const h=o(i),f=!e||t==="keepSnaps";return n.length===1?[i]:f?h:h.slice(a,l).map((g,v,x)=>{const m=!v,y=Im(x,v);if(m){const w=vn(x[0])+1;return P0(w)}if(y){const w=Ha(i)-vn(x)[0]+1;return P0(w,vn(x)[0])}return g})}return{slideRegistry:c}}function p4(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function l(g){return g.concat().sort((v,x)=>_e(v)-_e(x))[0]}function c(g){const v=e?o(g):a(g),x=t.map((y,w)=>({diff:u(y-v,0),index:w})).sort((y,w)=>_e(y.diff)-_e(w.diff)),{index:m}=x[0];return{index:m,distance:v}}function u(g,v){const x=[g,g+n,g-n];if(!e)return g;if(!v)return l(x);const m=x.filter(y=>Om(y)===v);return m.length?l(m):vn(x)-n}function d(g,v){const x=t[g]-s.get(),m=u(x,v);return{index:g,distance:m}}function h(g,v){const x=s.get()+g,{index:m,distance:y}=c(x),w=!e&&i(x);if(!v||w)return{index:m,distance:g};const S=t[m]-y,k=g+u(S,0);return{index:m,distance:k}}return{byDistance:h,byIndex:d,shortcut:u}}function m4(e,t,n,r,s,i,o){function a(d){const h=d.distance,f=d.index!==t.get();i.add(h),h&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),f&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function l(d,h){const f=s.byDistance(d,h);a(f)}function c(d,h){const f=t.clone().set(d),g=s.byIndex(f.get(),h);a(g)}return{distance:l,index:c}}function g4(e,t,n,r,s,i,o,a){const l={passive:!0,capture:!0};let c=0;function u(f){if(!a)return;function g(v){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const y=n.findIndex(w=>w.includes(v));Nm(y)&&(s.useDuration(0),r.index(y,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((v,x)=>{i.add(v,"focus",m=>{(Vu(a)||a(f,m))&&g(x)},l)})}function d(f){f.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function Po(e){let t=e;function n(){return t}function r(l){t=o(l)}function s(l){t+=o(l)}function i(l){t-=o(l)}function o(l){return Nm(l)?l:l.get()}return{get:n,set:r,add:s,subtract:i}}function Jk(e,t){const n=e.scroll==="x"?i:o,r=t.style;let s=!1;function i(d){return`translate3d(${d}px,0px,0px)`}function o(d){return`translate3d(0px,${d}px,0px)`}function a(d){s||(r.transform=n(e.direction(d)))}function l(d){s=!d}function c(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:c,to:a,toggleActive:l}}function y4(e,t,n,r,s,i,o,a,l){const u=_a(s),d=_a(s).reverse(),h=m().concat(y());function f(_,T){return _.reduce((C,P)=>C-s[P],T)}function g(_,T){return _.reduce((C,P)=>f(C,T)>0?C.concat([P]):C,[])}function v(_){return i.map((T,C)=>({start:T-r[C]+.5+_,end:T+t-.5+_}))}function x(_,T,C){const P=v(T);return _.map(N=>{const O=C?0:-n,V=C?n:0,I=C?"end":"start",K=P[N][I];return{index:N,loopPoint:K,slideLocation:Po(-1),translate:Jk(e,l[N]),target:()=>a.get()>K?O:V}})}function m(){const _=o[0],T=g(d,_);return x(T,n,!1)}function y(){const _=t-o[0]-1,T=g(u,_);return x(T,-n,!0)}function w(){return h.every(({index:_})=>{const T=u.filter(C=>C!==_);return f(T,t)<=.1})}function S(){h.forEach(_=>{const{target:T,translate:C,slideLocation:P}=_,N=T();N!==P.get()&&(C.to(N),P.set(N))})}function k(){h.forEach(_=>_.translate.clear())}return{canLoop:w,clear:k,loop:S,loopPoints:h}}function v4(e,t,n){let r,s=!1;function i(l){if(!n)return;function c(u){for(const d of u)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(Vu(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function w4(e,t,n,r){const s={};let i=null,o=null,a,l=!1;function c(){a=new IntersectionObserver(g=>{l||(g.forEach(v=>{const x=t.indexOf(v.target);s[x]=v}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>a.observe(g))}function u(){a&&a.disconnect(),l=!0}function d(g){return Ta(s).reduce((v,x)=>{const m=parseInt(x),{isIntersecting:y}=s[m];return(g&&y||!g&&!y)&&v.push(m),v},[])}function h(g=!0){if(g&&i)return i;if(!g&&o)return o;const v=d(g);return g&&(i=v),g||(o=v),v}return{init:c,destroy:u,get:h}}function x4(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:l}=e,c=n[0]&&s,u=g(),d=v(),h=n.map(o),f=x();function g(){if(!c)return 0;const y=n[0];return _e(t[a]-y[a])}function v(){if(!c)return 0;const y=i.getComputedStyle(vn(r));return parseFloat(y.getPropertyValue(`margin-${l}`))}function x(){return n.map((y,w,S)=>{const k=!w,E=Im(S,w);return k?h[w]+u:E?h[w]+d:S[w+1][a]-y[a]}).map(_e)}return{slideSizes:h,slideSizesWithGaps:f,startGap:u,endGap:d}}function b4(e,t,n,r,s,i,o,a,l){const{startEdge:c,endEdge:u,direction:d}=e,h=Nm(n);function f(m,y){return _a(m).filter(w=>w%y===0).map(w=>m.slice(w,w+y))}function g(m){return m.length?_a(m).reduce((y,w,S)=>{const k=vn(y)||0,E=k===0,_=w===Ha(m),T=s[c]-i[k][c],C=s[c]-i[w][u],P=!r&&E?d(o):0,N=!r&&_?d(a):0,O=_e(C-N-(T+P));return S&&O>t+l&&y.push(w),_&&y.push(m.length),y},[]).map((y,w,S)=>{const k=Math.max(S[w-1]||0);return m.slice(k,y)}):[]}function v(m){return h?f(m,n):g(m)}return{groupSlides:v}}function S4(e,t,n,r,s,i,o){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:h,dragFree:f,dragThreshold:g,inViewThreshold:v,slidesToScroll:x,skipSnaps:m,containScroll:y,watchResize:w,watchSlides:S,watchDrag:k,watchFocus:E}=i,_=2,T=r4(),C=T.measure(t),P=n.map(T.measure),N=e4(l,c),O=N.measureSize(C),V=s4(O),I=X$(a,O),K=!d&&!!y,U=d||!!y,{slideSizes:G,slideSizesWithGaps:A,startGap:j,endGap:D}=x4(N,C,P,n,U,s),q=b4(N,O,x,d,C,P,j,D,_),{snaps:W,snapsAligned:Z}
264=h4(N,I,C,P,q),Q=-vn(W)+vn(A),{snapsContained:he,scrollContainLimit:Pe}=l4(O,Q,Z,y,_),ee=K?he:Z,{limit:Ae}=c4(Q,ee,d),ze=Gk(Ha(ee),u,d),Ie=ze.clone(),ae=_a(n),H=({dragHandler:At,scrollBody:oo,scrollBounds:Us,options:{loop:hr}},En)=>{hr||Us.constrain(At.pointerDown()),oo.seek(En)},ie=({scrollBody:At,translate:oo,location:Us,offsetLocation:hr,scrollLooper:En,slideLooper:Ka,dragHandler:fr,animation:zu,eventHandler:Ga,scrollBounds:Ja,options:{loop:ao}},Ya)=>{const Bs=At.settled(),_n=!Ja.shouldConstrain(),Qa=ao?Bs:Bs&&_n;Qa&&!fr.pointerDown()&&(zu.stop(),Ga.emit("settle")),Qa||Ga.emit("scroll");const X=Us.get()*Ya+gt.get()*(1-Ya);hr.set(X),ao&&(En.loop(At.direction()),Ka.loop()),oo.to(hr.get())},me=Z$(r,s,At=>H(io,At),At=>ie(io,At)),$e=.68,ot=ee[ze.get()],Pt=Po(ot),gt=Po(ot),at=Po(ot),kn=Po(ot),Yt=o4(Pt,at,gt,kn,h,$e),Vs=p4(d,ee,Q,Ae,kn),Qt=m4(me,ze,Ie,Yt,Vs,kn,o),Wa=d4(Ae),qa=Ca(),yt=w4(t,n,o,v),{slideRegistry:Hn}=f4(K,y,ee,Pe,q,ae),Bu=g4(e,n,Hn,Qt,Yt,qa,o,E),io={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:C,slideRects:P,animation:me,axis:N,dragHandler:t4(N,e,r,s,kn,n4(N,s),Pt,me,Qt,Yt,Vs,ze,o,V,f,g,m,$e,k),eventStore:qa,percentOfView:V,index:ze,indexPrevious:Ie,limit:Ae,location:Pt,offsetLocation:at,previousLocation:gt,options:i,resizeHandler:i4(t,o,s,n,N,w,T),scrollBody:Yt,scrollBounds:a4(Ae,at,kn,Yt,V),scrollLooper:u4(Q,Ae,at,[Pt,at,gt,kn]),scrollProgress:Wa,scrollSnapList:ee.map(Wa.get),scrollSnaps:ee,scrollTarget:Vs,scrollTo:Qt,slideLooper:y4(N,O,Q,G,A,W,ee,at,n),slideFocus:Bu,slidesHandler:v4(t,o,S),slidesInView:yt,slideIndexes:ae,slideRegistry:Hn,slidesToScroll:q,target:kn,translate:Jk(N,t)};return io}function k4(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}
vendor: 5,473 bytes, line 264
264function s(c){return r(c).forEach(u=>u(t,c)),l}function i(c,u){return e[c]=r(c).concat([u]),l}function o(c,u){return e[c]=r(c).filter(d=>d!==u),l}function a(){e={}}const l={init:n,emit:s,off:o,on:i,clear:a};return l}const E4={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function _4(e){function t(i,o){return Kk(i,o||{})}function n(i){const o=i.breakpoints||{},a=Ta(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(i,a)}function r(i){return i.map(o=>Ta(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function T4(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function Zc(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=_4(s),o=T4(i),a=Ca(),l=k4(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:h,off:f,emit:g}=l,v=N;let x=!1,m,y=c(E4,Zc.globalOptions),w=c(y),S=[],k,E,_;function T(){const{container:ae,slides:H}=w;E=(Df(ae)?e.querySelector(ae):ae)||e.children[0];const me=Df(H)?E.querySelectorAll(H):H;_=[].slice.call(me||E.children)}function C(ae){const H=S4(e,E,_,r,s,ae,l);if(ae.loop&&!H.slideLooper.canLoop()){const ie=Object.assign({},ae,{loop:!1});return C(ie)}return H}function P(ae,H){x||(y=c(y,ae),w=u(y),S=H||S,T(),m=C(w),d([y,...S.map(({options:ie})=>ie)]).forEach(ie=>a.add(ie,"change",N)),w.active&&(m.translate.to(m.location.get()),m.animation.init(),m.slidesInView.init(),m.slideFocus.init(Ie),m.eventHandler.init(Ie),m.resizeHandler.init(Ie),m.slidesHandler.init(Ie),m.options.loop&&m.slideLooper.loop(),E.offsetParent&&_.length&&m.dragHandler.init(Ie),k=o.init(Ie,S)))}function N(ae,H){const ie=q();O(),P(c({startIndex:ie},ae),H),l.emit("reInit")}function O(){m.dragHandler.destroy(),m.eventStore.clear(),m.translate.clear(),m.slideLooper.clear(),m.resizeHandler.destroy(),m.slidesHandler.destroy(),m.slidesInView.destroy(),m.animation.destroy(),o.destroy(),a.clear()}function V(){x||(x=!0,a.clear(),O(),l.emit("destroy"),l.clear())}function I(ae,H,ie){!w.active||x||(m.scrollBody.useBaseFriction().useDuration(H===!0?0:w.duration),m.scrollTo.index(ae,ie||0))}function K(ae){const H=m.index.add(1).get();I(H,ae,-1)}function U(ae){const H=m.index.add(-1).get();I(H,ae,1)}function G(){return m.index.add(1).get()!==q()}function A(){return m.index.add(-1).get()!==q()}function j(){return m.scrollSnapList}function D(){return m.scrollProgress.get(m.location.get())}function q(){return m.index.get()}function W(){return m.indexPrevious.get()}function Z(){return m.slidesInView.get()}function Q(){return m.slidesInView.get(!1)}function he(){return k}function Pe(){return m}function ee(){return e}function Ae(){return E}function ze(){return _}const Ie={canScrollNext:G,canScrollPrev:A,containerNode:Ae,internalEngine:Pe,destroy:V,off:f,on:h,emit:g,plugins:he,previousScrollSnap:W,reInit:v,rootNode:ee,scrollNext:K,scrollPrev:U,scrollProgress:D,scrollSnapList:j,scrollTo:I,selectedScrollSnap:q,slideNodes:ze,slidesInView:Z,slidesNotInView:Q};return P(t,n),setTimeout(()=>l.emit("init"),0),Ie}Zc.globalOptions=void 0;function Lm(e={},t=[]){const n=b.useRef(e),r=b.useRef(t),[s,i]=b.useState(),[o,a]=b.useState(),l=b.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return b.useEffect(()=>{Rm(n.current,e)||(n.current=e,l())},[e,l]),b.useEffect(()=>{Y$(r.current,t)||(r.current=t,l())},[t,l]),b.useEffect(()=>{if(J$()&&o){Zc.globalOptions=Lm.globalOptions;const c=Zc(o,n.current,r.current);return i(c),()=>c.destroy()}else i(void 0)},[o,i]),[a,s]}Lm.globalOptions=void 0;const C4=Pb("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"}}),Mm=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?LT:"button";return p.jsx(o,{className:Ft(C4({variant:t,size:n,className:e})),ref:i,...s})});Mm.displayName="Button";const Yk=b.createContext(null);function Uu(){const e=b.useContext(Yk);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Qk=b.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:s,children:i,...o},a)=>{const[l,c]=Lm({...t,axis:e==="horizontal"?"x":"y"},r),[u,d]=b.useState(!1),[h,f]=b.useState(!1),g=b.useCallback(y=>
264{y&&(d(y.canScrollPrev()),f(y.canScrollNext()))},[]),v=b.useCallback(()=>{c==null||c.scrollPrev()},[c]),x=b.useCallback(()=>{c==null||c.scrollNext()},[c]),m=b.useCallback(y=>{y.key==="ArrowLeft"?(y.preventDefault(),v()):y.key==="ArrowRight"&&(y.preventDefault(),x())},[v,x]);return b.useEffect(()=>{!c||!n||n(c)},[c,n]),b.useEffect(()=>{if(c)return g(c),c.on("reInit",g),c.on("select",g),()=>{c==null||c.off("select",g)}},[c,g]),p.jsx(Yk.Provider,{value:{carouselRef:l,api:c,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:x,canScrollPrev:u,canScrollNext:h},children:p.jsx("div",{ref:a,onKeyDownCapture:m,className:Ft("relative",s),role:"region","aria-roledescription":"carousel",...o,children:i})})});Qk.displayName="Carousel";const Xk=b.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:s}=Uu();return p.jsx("div",{ref:r,className:"overflow-hidden",children:p.jsx("div",{ref:n,className:Ft("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Xk.displayName="CarouselContent";const Zk=b.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Uu();return p.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:Ft("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});Zk.displayName="CarouselItem";const eE=b.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:i,scrollPrev:o,canScrollPrev:a}=Uu();return p.jsxs(Mm,{ref:s,variant:t,size:n,className:Ft("absolute h-8 w-8 rounded-full",i==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:o,...r,children:[p.jsx(jC,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Previous slide"})]})});eE.displayName="CarouselPrevious";const tE=b.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:i,scrollNext:o,canScrollNext:a}=Uu();return p.jsxs(Mm,{ref:s,variant:t,size:n,className:Ft("absolute h-8 w-8 rounded-full",i==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:o,...r,children:[p.jsx(Vn,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Next slide"})]})});tE.displayName="CarouselNext";const A0=[{name:"Valentin THIAULT",role:"Président",title:"Rydge Conseil",subtitle:"Senior Associate Distressed M&A",photo:Vk,linkedin:"https://www.linkedin.com/in/valentinthiault"},{name:"Chiara OPERTO",role:"",title:"Edge Skills",subtitle:"CEO",photo:Uk,linkedin:"https://www.linkedin.com/in/chiara-operto-edgeskills/"},{name:"William GERMAIN",role:"",title:"Siparex",subtitle:"Senior Analyst Flex Equity",photo:Bk,linkedin:"https://www.linkedin.com/in/william-germain/"},{name:"Sabine BENSAID",role:"",title:"Goodwin France",subtitle:"Avocat à la Cour",photo:zk,linkedin:"https://www.linkedin.com/in/sabine-bensaid-7b957a145/"},{name:"Marc SABATÃ",role:"",title:"Mirabaud Advisors | France M&A",subtitle:"Directeur Général | Co-Président",photo:qk,linkedin:"#"},{name:"Benjamin LE MAITRE",role:"",title:"Avant Garde",subtitle:"Directeur Général",photo:Hk,linkedin:"https://www.linkedin.com/in/benjaminlemaitre/"}
264,{name:"Anne HIEBLER",role:"",title:"Crédit Agricole CIB",subtitle:"Global Head of M&A",photo:Wk,linkedin:"https://www.linkedin.com/in/anne-hiebler-321230/"}],P4=()=>{const e=b.useRef(null),t=ur(e,lr),[n,r]=b.useState(),[s,i]=b.useState(0);return b.useEffect(()=>{n&&(i(n.selectedScrollSnap()),n.on("select",()=>i(n.selectedScrollSnap())))},[n]),p.jsxs("section",{className:"section-padding bg-background relative overflow-hidden",ref:e,children:[p.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 opacity-60",style:{background:"radial-gradient(circle at 50% 40%, hsl(var(--primary) / 0.06), transparent 60%)"}}),p.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8 relative",children:[p.jsxs(J.div,{initial:{opacity:0,y:24},animate:t?{opacity:1,y:0}:{},transition:{duration:.7,ease:ne},className:"text-center mb-12",children:[p.jsx("span",{className:"text-xs font-medium tracking-widest uppercase text-primary mb-4 block",children:"Le Bureau"}),p.jsxs("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold tracking-tight text-foreground mb-4",children:["L'équipe qui"," ",p.jsx("span",{className:"font-display italic font-normal text-primary",children:"structure"})]}),p.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:"Des professionnels passionnés qui font vivre le club au quotidien."})]}),p.jsxs(J.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.7,ease:ne,delay:.2},children:[p.jsxs(Qk,{setApi:r,opts:{align:"center",loop:!0},className:"w-full",children:[p.jsx(Xk,{className:"-ml-4",children:A0.map((o,a)=>{const l=o.name==="Marc SABATÃ",c=s===a;return p.jsx(Zk,{className:"pl-4 basis-full sm:basis-1/2 lg:basis-1/3",children:p.jsxs(J.div,{animate:{scale:c?1:.92,opacity:c?1:.55},transition:{duration:.4,ease:ne},className:"card-premium group text-center h-full flex flex-col",children:[p.jsxs("div",{className:"relative w-32 h-32 rounded-full mx-auto mb-5 overflow-hidden border-2 border-border group-hover:border-primary/40 transition-colors duration-300",children:[c&&p.jsx("span",{"aria-hidden":!0,className:"absolute -inset-1 rounded-full ring-2 ring-primary/30"}),p.jsx("img",{src:o.photo,alt:o.name,className:`w-full h-full object-cover grayscale transition-all duration-500 ${l?"":"group-hover:grayscale-0"}`,loading:"lazy",width:512,height:640})]}),o.role&&p.jsx("span",{className:"inline-block self-center text-[10px] font-semibold tracking-widest uppercase text-primary bg-primary/10 px-2.5 py-1 rounded-full mb-2",children:o.role}),p.jsx("h3",{className:"text-base font-semibold text-foreground",children:o.name}),p.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:o.title}),p.jsx("p",{className:"text-sm text-muted-foreground",children:o.subtitle}),p.jsx("div",{className:"mt-4 pt-4 border-t border-border",children:p.jsxs("a",{href:o.linkedin,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-primary transition-colors",children:[p.jsx(Fp,{size:14}),"LinkedIn"]})})]})},o.name)})}),p.jsx(eE,{className:"hidden md:flex -left-4 lg:-left-12"}),p.jsx(tE,{className:"hidden md:flex -right-4 lg:-right-12"})]}),p.jsx("div",{className:"flex items-center justify-center gap-2 mt-8",children:A0.map((o,a)=>p.jsx("button",{"aria-label":`Aller au membre ${a+1}`,onClick:()=>n==null?void 0:n.scrollTo(a),className:`h-1.5 rounded-full transition-all duration-300 ${s===a?"w-8 bg-primary":"w-1.5 bg-border hover:bg-primary/40"}`},a))})]})]})]})},A4=()=>{const e=b.useRef(null),t=ur(e,lr),[n,r]=b.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsxs("section",{id:"join",className:"relative section-padding bg-primary overflow-hidden",ref:e,children:[p.jsx("div",{className:"absolute top-0 left-1/4 w-96 h-96 bg-emerald-400/20 rounded-full blur-3xl"}),p.jsx("div",{className:"absolute bottom-0 right-1/4 w-96 h-96 bg-emerald-300/10 rounded-full blur-3xl"}),p.jsx("div",{className:"relative z-10 max-w-4xl mx-auto px-6 lg:px-8 text-center",children:p.jsxs(J.div,{initial:{opacity:0,y:24},animate:t?{opacity:1,y:0}:{},transition:{duration:.7,ease:ne},children:[p.jsxs("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-semibold text-white tracking-tight leading-tight mb-6",children:["Rejoignez la nouvelle génération",p.jsx("br",{}),"de"," ",p.jsx("span",{className:"font-display italic font-normal text-emerald-300",children:"dealmakers"})]}),p.jsx("p",{className:"text-lg text-white/50 max-w-xl mx-auto mb-10",children:"Intégrez un réseau exclusif de professionnels ambitieux et accédez à un écosystème unique."}),p.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:p.jsxs("button",{onClick:()=>r(!0),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-primary font-medium text-sm rounded-xl hover:bg-white/90 transition-all duration-300 group",children:["Candidater",p.jsx(Vn,{size:16,className:"group-hover:translate-x-1 transition-transform"})]})})]})})]}),p.jsx(Fk,{isOpen:n,onClose:()=>r(!1)})]})},nE=()=>p.jsx("footer",{className:"bg-foreground text-background py-16",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[p.jsxs("div",{className:"grid md:grid-cols-4 gap-12",children:[p.jsxs("div",{className:"md:col-span-2",children:[p.jsx("div",{className:"flex items-center gap-3 mb-4",children:p.jsx("img",{src:gk,alt:"DealMakers Club",className:"h-16 w-auto invert"})}),p.jsx("p",{className:"text-white/40 text-sm leading-relaxed max-w-sm",children:"La communauté de référence pour les professionnels des métiers du deal en France."})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-xs font-semibold tracking-widest uppercase text-white/50 mb-4",children:"Club"}),p.jsxs("div",{className:"space-y-3",children:[p.jsx("a",{href:"/#mission",className:"block text-sm text-white/60 hover:text-white transition-colors",children:"Mission"}),p.jsx("a",{href:"/#poles",className:"block text-sm text-white/60 hover:text-white transition-colors",children:"Nos pôles"}),p.jsx("a",{href:"/#events",className:"block text-sm text-white/60 hover:text-white transition-colors",children:"Ãvénements"}),p.jsx("a",{href:"/#recruitment",className:"block text-sm text-white/60 hover:text-white transition-colors",children:"Recrutement"})]})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-xs font-semibold tracking-widest uppercase text-white/50 mb-4",children:"Suivez-nous"}),p.jsxs("div",{className:"flex gap-3",children:[p.jsx("a",{href:"https://www.linkedin.com/company/dealmakersclub/",target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",className:"w-10 h-10 rounded-xl bg-white/5 flex items-center justify-center hover:bg-white/10 transition-colors",children:p.jsx(Fp,{size:16,className:"text-white/60"})}),p.jsx("a",{href:"mailto:[email protected]","aria-label":"E-mail",className:"w-10 h-10 rounded-xl bg-white/5 flex items-center justify-center hover:bg-white/10 transition-colors",children:p.jsx(Rb,{size:16,className:"text-white/60"})})]})]})]}),p.jsxs("div",{className:"mt-16 pt-8 border-t border-white/10 flex flex-col md:flex-row justify-between items-center gap-4",children:[p.jsx("p",{className:"text-xs text-white/30",children:"© 2026 DealMakers Club. Tous droits réservés."}),p.jsxs("div",{className:"flex gap-6",children:[p.jsx("a",{href:"/mentions-legales",className:"text-xs text-white/30 hover:text-white/60 transition-colors",children:"Mentions légales"}),p.jsx("a",{href:"#",className:"text-xs text-white/30 hover:text-white/60 transition-colors",children:"Politique de confidentialité"})]})]})]})}),us=({variant:e="default"})=>{const t=b.useRef(null),n=ur(t,{once:!0});return e==="gradient"?p.jsx("div",{className:"relative h-10 overflow-hidden",ref:t,children:p.jsx(J.div,{initial:{scaleX:0},animate:n?{scaleX:1}:{},transition:{duration:.9,ease:ne},className:"absolute inset-0 bg-gradient-to-r from-transparent via-primary/10 to-transparent"})}):e==="wave"?p.jsx("div",{className:"relative py-4 overflow-hidden",ref:t,children:p.jsx(J.div,{initial:{opacity:0,width:0},animate:n?{opacity:1,width:"100%"}:{},transition:{duration:.8,ease:ne},className:"mx-auto max-w-xs h-px bg-gradient-to-r from-transparent via-primary/30 to-transparent"})}):p.jsx("div",{className:"relative py-3",ref:t,children:p.jsxs(J.div,{initial:{opacity:0,scaleX:0},animate:n?{opacity:1,scaleX:1}:{},transition:{duration:.7,ease:ne},className:"flex items-center justify-center gap-4",children:[p.jsx("div",{className:"h-px flex-1 max-w-24 bg-gradient-to-r from-transparent to-border"}),p.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary/30"}),p.jsx("div",{className:"h-px flex-1 max-w-24 bg-gradient-to-l from-transparent to-border"})]})})},j4="/assets/partner-cncef-KnyS6yEd.jpg",R4=1,N4="d09488e3-9a10-4ad1-9945-5865489278a5",O4="f5c62a2c-f269-40de-a5c9-281ceb0d9e6b",I4="/__l5e/assets-v1/d09488e3-9a10-4ad1-9945-5865489278a5/edge-skills.png",L4="a/v1/f5c62a2c-f269-40de-a5c9-281ceb0d9e6b/d09488e3-9a10-4ad1-9945-5865489278a5/edge-skills.png",M4="edge-skills.png",D4=9154,$4="image/jpeg",F4="2026-06-29T10:24:01Z",V4={version:R4,asset_id:N4,project_id:O4,url:I4,r2_key:L4,original_filename:M4,size:D4,content_type:$4,created_at:F4},U4=1,B4="71fc7b72-84f4-42cc-a48e-340212b82087",z4="f5c62a2c-f269-40de-a5c9-281ceb0d9e6b",H4="/__l5e/assets-v1/71fc7b72-84f4-42cc-a48e-340212b82087/partner-datasite.png",W4="a/v1/f5c62a2c-f269-40de-a5c9-281ceb0d9e6b/71fc7b72-84f4-42cc-a48e-340212b82087/partner-datasite.png",q4="partner-datasite.png",K4=41231,G4="image/png",J4="2026-07-23T21:19:39Z",Y4={version:U4,asset_id:B4,project_id:z4,url:H4,r2_key:W4,original_filename:q4,size:K4,content_type:G4,created_at:J4},Q4=[{name:"CNCEF France M&A",logo:j4,url:"https://www.cncef.org/cncef-france-ma-association-professionnelle-pour-les-experts-en-haut-de-bilan/",description:"CNCEF France M&A est partenaire du DealMakers Club. Association professionnelle reconnue qui fédère les acteurs du M&A en France et défend les standards d'excellence du métier, nous Åuvrons ensemble à structurer, professionnaliser et faire rayonner la filière auprès des nouvelles générations."},{name:"Edge Skills",logo:V4.url,url:"https://www.edgeskills-career.com",description:"Edge Skills accompagne les professionnels de la finance et du conseil à chaque étape de leur carrière. Le cabinet intervient sur trois expertises complémentaires : le coaching des étudiants, la formation des juniors en poste et l'accompagnement marque employeur pour les entreprises de l'écosystème M&A."},{name:"Datasite",logo:Y4.url,url:"https://www.datasite.com",description:"Datasite est une plateforme leader de gestion des transactions M&A, utilisée par les banques d'affaires, les cabinets de conseil et les entreprises pour orchestrer les due diligence et sécuriser les phases de deal."}],X4=()=>{const e=b.useRef(null),t=ur(e,{once:!0,margin:"-100px"}),[n,r]=b.useState(null),s=i=>{r(o=>o===i?null:i)};return p.jsx("section",{id:"partners",className:"section-padding bg-card",ref:e,children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[p.jsxs(J.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.7,ease:ne},className:"text-center mb-12",children:[p.jsx("p",{className:"text-xs font-semibold tracking-widest uppercase text-primary mb-3",children:"Partenariats"}),p.jsxs("h2",{className:"text-4xl md:text-5xl font-light text-foreground",children:["Nos ",p.jsx("span",{className:"text-gradient font-medium",children:"partenaires"})]}),p.jsx("p",{className:"mt-4 text-muted-foreground max-w-2xl mx-auto",children:"Des alliances stratég
264iques avec les acteurs de référence de l'écosystème M&A."})]}),p.jsx("div",{className:"grid md:grid-cols-3 gap-8 items-start",children:Q4.map((i,o)=>p.jsxs(J.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.15+o*.1,ease:ne},className:"flex flex-col gap-5",children:[p.jsxs("button",{onClick:()=>s(i.name),className:"group flex flex-col items-center gap-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 rounded-2xl p-4","aria-expanded":n===i.name,"aria-controls":`partner-desc-${o}`,children:[p.jsx("img",{src:i.logo,alt:i.name,className:`w-auto object-contain opacity-90 group-hover:opacity-100 transition-opacity ${i.name==="Datasite"?"h-28":"h-36"}`}),p.jsxs("span",{className:"text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity",children:["Cliquer pour ",n===i.name?"masquer":"découvrir"]})]}),p.jsx(Ua,{initial:!1,children:n===i.name&&p.jsx(J.div,{id:`partner-desc-${o}`,initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.35,ease:ne},className:"overflow-hidden",children:p.jsxs("div",{className:"bg-card rounded-2xl border border-border/60 p-8 hover:border-primary/40 hover:shadow-lg transition-all duration-300",children:[p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed text-left",children:i.description}),i.url&&p.jsxs("a",{href:i.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-4 text-sm font-medium text-primary hover:text-primary/80 transition-colors",children:["Visiter le site",p.jsx(LC,{size:14})]})]})})})]},i.name))}),p.jsxs(J.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.7,delay:.3,ease:ne},className:"mt-16 text-center",children:[p.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto mb-6",children:"Vous souhaitez rejoindre notre écosystème et devenir partenaire du DealMakers Club ?"}),p.jsxs("a",{href:"mailto:[email protected]?subject=Devenir%20partenaire%20du%20DealMakers%20Club&body=Bonjour%2C%0A%0AJe%20souhaite%20devenir%20partenaire%20du%20DealMakers%20Club.%0A%0AEntreprise%20%3A%20%0APoste%20%3A%20%0AT%C3%A9l%C3%A9phone%20%3A%20%0A%0AMessage%20%3A%20%0A%0AMerci.",className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-primary text-primary-foreground font-medium text-sm rounded-xl hover:bg-primary/90 transition-all duration-300 group",children:["Devenir partenaire",p.jsx(Vn,{size:16,className:"group-hover:translate-x-1 transition-transform"})]})]})]})})},Z4=()=>p.jsxs("div",{className:"min-h-screen",children:[p.jsx(yk,{}),p.jsxs("main",{children:[p.jsx(M$,{}),p.jsx(us,{variant:"wave"}),p.jsx(D$,{}),p.jsx(us,{variant:"gradient"}),p.jsx(F$,{}),p.jsx(us,{}),p.jsx("div",{id:"bureau",children:p.jsx(P4,{})}),p.jsx(us,{variant:"wave"}),p.jsx(B$,{}),p.jsx(us,{variant:"gradient"}),p.jsx(q$,{}),p.jsx(us,{}),p.jsx(K$,{}),p.jsx(us,{variant:"gradient"}),p.jsx(X4,{}),p.jsx(A4,{})]}),p.jsx(nE,{})]}),eF=()=>(b.useEffect(()=>{document.title="Mentions légales | DealMakers Club";const e=document.querySelector('meta[name="description"]');e&&e.setAttribute("content","Mentions légales du site DealMakers Club : édition, hébergement, directeur de publication et contacts.")},[]),p.jsxs("div",{className:"min-h-screen bg-background",children:[p.jsx(yk,{}),p.jsx("main",{className:"pt-32 pb-24 lg:pb-32",children:p.jsxs("div",{className:"max-w-3xl mx-auto px-6 lg:px-8",children:[p.jsxs(J.div,{initial:Ws().initial,whileInView:Ws().animate,viewport:lr,transition:Ws().transition,children:[p.jsxs("h1",{className:"text-4xl md:text-5xl font-light text-foreground mb-4",children:["Mentions ",p.jsx("span",{className:"text-emerald-600",children:"légales"})]}),p.jsx("p",{className:"text-muted-foreground text-sm mb-12",children:"Dernière mise à jour : 28 juillet 2026"})]}),p.jsxs(J.div,{initial:Ws().initial,whileInView:Ws().animate,viewport:lr,transition:Ws().transition,className:"max-w-none text-foreground space-y-10",children:[p.jsx("section",{children:p.jsx("p",{className:"text-base leading-relaxed text-muted-foreground",children:"Conformément aux dispositions de la loi n° 2004-575 du 21 juin 2004 pour la confiance en lâéconomie numérique, il est précisé aux utilisateurs du site DealMakers Club lâidentité des différents intervenants dans le cadre de sa réalisation et de son suivi."})}),p.jsxs("section",{children:[p.jsx("h2",{className:"text-xl font-medium text-foreground mb-3",children:"Ãdition du site"}),p.jsx("p",{className:"text-base leading-relaxed text-muted-foreground",children:"Le présent site, accessible à lâURL
264www.dealmakersclub.fr (le « Site »), est édité par :"}),p.jsx("p",{className:"text-base leading-relaxed text-muted-foreground mt-3",children:"Lâassociation DealMakers Club, enregistrée auprès de la préfecture/sous-préfecture de 92 - Préfecture Nanterre sous le numéro W923012458, ayant son siège situé à 60 boulevard Gallieni, 92130 Issy Les Moulineaux, représentée par Valentin Thiault dûment habilité(e)."})]}),p.jsxs("section",{children:[p.jsx("h2",{className:"text-xl font-medium text-foreground mb-3",children:"Hébergement"}),p.jsx("p",{className:"text-base leading-relaxed text-muted-foreground",children:"Le Site est hébergé par la société OVH SAS, situé 2 rue Kellermann - BP 80157 - 59053 Roubaix Cedex 1, (contact téléphonique ou email : 1007)."})]}),p.jsxs("section",{children:[p.jsx("h2",{className:"text-xl font-medium text-foreground mb-3",children:"Directeur de publication"}),p.jsx("p",{className:"text-base leading-relaxed text-muted-foreground",children:"Le Directeur de la publication du Site est Valentin Thiault."})]}),p.jsxs("section",{children:[p.jsx("h2",{className:"text-xl font-medium text-foreground mb-3",children:"Nous contacter"}),p.jsxs("ul",{className:"space-y-2 text-base text-muted-foreground list-none pl-0",children:[p.jsxs("li",{children:[p.jsx("span",{className:"font-medium text-foreground",children:"Par téléphone :"})," ",p.jsx("a",{href:"tel:+33605234047",className:"hover:text-emerald-600 transition-colors",children:"+33 6 05 23 40 47"})]}),p.jsxs("li",{children:[p.jsx("span",{className:"font-medium text-foreground",children:"Par email :"})," ",p.jsx("a",{href:"mailto:[email protected]",className:"hover:text-emerald-600 transition-colors",children:"[email protected]"})]}),p.jsxs("li",{children:[p.jsx("span",{className:"font-medium text-foreground",children:"Par courrier :"})," 60 boulevard Gallieni, 92130 Issy Les Moulineaux"]})]})]})]})]})}),p.jsx(nE,{})]})),tF=()=>{const e=Zp();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),p.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:p.jsxs("div",{className:"text-center",children:[p.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),p.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),p.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},nF=new eR,rF=()=>p.jsx(nR,{client:nF,children:p.jsxs(jj,{children:[p.jsx(TP,{}),p.jsx(sA,{}),p.jsx(UR,{children:p.jsxs($R,{children:[p.jsx(Jl,{path:"/",element:p.jsx(Z4,{})}),p.jsx(Jl,{path:"/mentions-legales",element:p.jsx(eF,{})}),p.jsx(Jl,{path:"*",element:p.jsx(tF,{})})]})})]})});Zx(document.getElementById("root")).render(p.jsx(b.StrictMode,{children:p.jsx(rF,{})}));
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.