PageSourceSearch

https://future-trends.ca/assets/index-Cqm4L9pJ.js

js future-trends.ca collected 2026-10-09 22:01:25 UTC 730,747 bytes, 314 lines download raw bytes

vendor: 4,303 bytes, lines 1-9
1var pE=Object.defineProperty;var $m=e=>{throw TypeError(e)};var mE=(e,t,n)=>t in e?pE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Pn=(e,t,n)=>mE(e,typeof t!="symbol"?t+"":t,n),Iu=(e,t,n)=>t.has(e)||$m("Cannot "+n);var j=(e,t,n)=>(Iu(e,t,"read from private field"),n?n.call(e):t.get(e)),se=(e,t,n)=>t.has(e)?$m("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Q=(e,t,n,r)=>(Iu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),He=(e,t,n)=>(Iu(e,t,"access private method"),n);var Va=(e,t,n,r)=>({set _(s){Q(e,t,s,n)},get _(){return j(e,t,r)}});function gE(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 ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U0={exports:{}},Wc={},F0={exports:{}},ee={};/**
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 Ea=Symbol.for("react.element"),yE=Symbol.for("react.portal"),vE=Symbol.for("react.fragment"),wE=Symbol.for("react.strict_mode"),xE=Symbol.for("react.profiler"),bE=Symbol.for("react.provider"),SE=Symbol.for("react.context"),kE=Symbol.for("react.forward_ref"),EE=Symbol.for("react.suspense"),TE=Symbol.for("react.memo"),CE=Symbol.for("react.lazy"),Um=Symbol.iterator;function _E(e){return e===null||typeof e!="object"?null:(e=Um&&e[Um]||e["@@iterator"],typeof e=="function"?e:null)}var B0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V0=Object.assign,z0={};function Bi(e,t,n){this.props=e,this.context=t,this.refs=z0,this.updater=n||B0}Bi.prototype.isReactComponent={};Bi.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")};Bi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function H0(){}H0.prototype=Bi.prototype;function Df(e,t,n){this.props=e,this.context=t,this.refs=z0,this.updater=n||B0}var $f=Df.prototype=new H0;$f.constructor=Df;V0($f,Bi.prototype);$f.isPureReactComponent=!0;var Fm=Array.isArray,W0=Object.prototype.hasOwnProperty,Uf={current:null},K0={key:!0,ref:!0,__self:!0,__source:!0};function q0(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)&&!K0.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:Ea,type:e,key:i,ref:o,props:s,_owner:Uf.current}}function PE(e,t){return{$$typeof:Ea,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ff(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ea}function AE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Bm=/\/+/g;function Lu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?AE(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function _l(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 Ea:case yE:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Lu(o,0):r,Fm(s)?(n="",e!=null&&(n=e.replace(Bm,"$&/")+"/"),_l(s,t,n,"",function(c){return c})):s!=null&&(Ff(s)&&(s=PE(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Bm,"$&/")+"/")+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+Lu(i,a);o+=_l(i,t,n,l,s)}else if(l=_E(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Lu(i,a++),o+=_l(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 _l(e,r,"","",function(i){return t.call(n,i,s++)}),r}function RE(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 rt={current:null},Pl={transition:null},jE={ReactCurrentDispatcher:rt,ReactCurrentBatchConfig:Pl,ReactCurrentOwner:Uf};function G0(){throw Error("act(...) is not supported in production builds of React.")}ee.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(!Ff(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=Bi;ee.Fragment=vE;ee.Profiler=xE;ee.PureComponent=Df;ee.StrictMode=wE;ee.Suspense=EE;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jE;ee.act=G0;ee.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=V0({},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)&&!K0.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:Ea,type:e.type,key:s,ref:i,props:r,_owner:o}};ee.createContext=function(e){return e={$$typeof:SE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:bE,_context:e},e.Consumer=e};ee.createElement=q0;ee.createFactory=function(e){var t=q0.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:kE,render:e}};ee.isValidElement=Ff;ee.lazy=function(e){return{$$typeof:CE,_payload:{_status:-1,_result:e},_init:RE}};ee.memo=function(e,t){return{$$typeof:TE,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=Pl.transition;Pl.transition={};try{e()}finally{Pl.transition=t}};ee.unstable_act=G0;ee.useCallback=function(e,t){return rt.current.useCallback(e,t)};ee.useContext=function(e){return rt.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return rt.current.useDeferredValue(e)};ee.useEffect=function(e,t){return rt.current.useEffect(e,t)};ee.useId=function(){return rt.current.useId()};ee.useImperativeHandle=function(e,t,n){return rt.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return rt.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return rt.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return rt.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return rt.current.useReducer(e,t,n)};ee.useRef=function(e){return rt.current.useRef(e)};ee.useState=function(e){return rt.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return rt.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return rt.current.useTransition()};ee.version="18.3.1";F0.exports=ee;var b=F0.exports;const N=ka(b),J0=gE({__proto__:null,default:N},[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 NE=b,OE=Symbol.for("react.element"),IE=Symbol.for("react.fragment"),LE=Object.prototype.hasOwnProperty,ME=NE.__SECRET_INT
vendor: 11,413 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,DE={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)LE.call(t,r)&&!DE.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:OE,type:e,key:i,ref:o,props:s,_owner:ME.current}}Wc.Fragment=IE;Wc.jsx=Y0;Wc.jsxs=Y0;U0.exports=Wc;var p=U0.exports,Q0={exports:{}},St={},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(_,R){var M=_.length;_.push(R);e:for(;0<M;){var K=M-1>>>1,H=_[K];if(0<s(H,R))_[K]=R,_[M]=H,M=K;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var R=_[0],M=_.pop();if(M!==R){_[0]=M;e:for(var K=0,H=_.length,Z=H>>>1;K<Z;){var te=2*(K+1)-1,Te=_[te],ze=te+1,ie=_[ze];if(0>s(Te,M))ze<H&&0>s(ie,Te)?(_[K]=ie,_[ze]=M,K=ze):(_[K]=Te,_[te]=M,K=te);else if(ze<H&&0>s(ie,M))_[K]=ie,_[ze]=M,K=ze;else break e}}return R}function s(_,R){var M=_.sortIndex-R.sortIndex;return M!==0?M:_.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,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(_){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=_)r(c),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(c)}}function S(_){if(v=!1,w(_),!g)if(n(l)!==null)g=!0,V(k);else{var R=n(c);R!==null&&J(S,R.startTime-_)}}function k(_,R){g=!1,v&&(v=!1,m(C),C=-1),f=!0;var M=h;try{for(w(R),d=n(l);d!==null&&(!(d.expirationTime>R)||_&&!D());){var K=d.callback;if(typeof K=="function"){d.callback=null,h=d.priorityLevel;var H=K(d.expirationTime<=R);R=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(l)&&r(l),w(R)}else r(l);d=n(l)}if(d!==null)var Z=!0;else{var te=n(c);te!==null&&J(S,te.startTime-R),Z=!1}return Z}finally{d=null,h=M,f=!1}}var E=!1,T=null,C=-1,A=5,P=-1;function D(){return!(e.unstable_now()-P<A)}function L(){if(T!==null){var _=e.unstable_now();P=_;var R=!0;try{R=T(!0,_)}finally{R?q():(E=!1,T=null)}}else E=!1}var q;if(typeof y=="function")q=function(){y(L)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,G=I.port2;I.port1.onmessage=L,q=function(){G.postMessage(null)}}else q=function(){x(L,0)};function V(_){T=_,E||(E=!0,q())}function J(_,R){C=x(function(){_(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_continueExecution=function(){g||f||(g=!0,V(k))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var M=h;h=R;try{return _()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,R){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var M=h;h=_;try{return R()}finally{h=M}},e.unstable_scheduleCallback=function(_,R,M){var K=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?K+M:K):M=K,_){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=M+H,_={id:u++,callback:R,priorityLevel:_,startTime:M,expirationTime:H,sortIndex:-1},M>K?(_.sortIndex=M,t(c,_),n(l)===null&&_===n(c)&&(v?(m(C),C=-1):v=!0,J(S,M-K))):(_.sortIndex=H,t(l,_),g||f||(g=!0,V(k))),_},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(_){var R=h;return function(){var M=h;h=R;try{return _.apply(this,arguments)}finally{h=M}}}})(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 UE=b,bt=$E;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ew=new Set,Bo={};function Es(e,t){Ai(e,t),Ai(e+"Capture",t)}function Ai(e,t){for(Bo[e]=t,e=0;e<t.length;e++)ew.add(t[e])}var Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bd=Object.prototype.hasOwnProperty,FE=/^[: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]*$/,Vm={},zm={};function BE(e){return Bd.call(zm,e)?!0:Bd.call(Vm,e)?!1:FE.test(e)?zm[e]=!0:(Vm[e]=!0,!1)}function VE(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 zE(e,t,n,r){if(t===null||typeof t>"u"||VE(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 st(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 Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new st(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){Ve[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bf=/[\-:]([a-z])/g;function Vf(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(Bf,Vf);Ve[t]=new st(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(Bf,Vf);Ve[t]=new st(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(Bf,Vf);Ve[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function zf(e,t,n,r){var s=Ve.hasOwnProperty(t)?Ve[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zE(t,n,s,r)&&(n=null),r||s===null?BE(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Wn=UE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ha=Symbol.for("react.element"),Gs=Symbol.for("react.portal"),Js=Symbol.for("react.fragment"),Hf=Symbol.for("react.strict_mode"),Vd=Symbol.for("react.profiler"),tw=Symbol.for("react.provider"),nw=Symbol.for("react.context"),Wf=Symbol.for("react.forward_ref"),zd=Symbol.for("react.suspense"),Hd=Symbol.for("react.suspense_list"),Kf=Symbol.for("react.memo"),ir=Symbol.for("react.lazy"),rw=Symbol.for("react.offscreen"),Hm=Symbol.iterator;function to(e){return e===null||typeof e!="object"?null:(e=Hm&&e[Hm]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,Mu;function go(e){if(Mu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Mu=t&&t[1]||""}return`
34`+Mu+e}var Du=!1;function $u(e,t){if(!e||Du)return"";Du=!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: 15,597 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{Du=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?go(e):""}function HE(e){switch(e.tag){case 5:return go(e.type);case 16:return go("Lazy");case 13:return go("Suspense");case 19:return go("SuspenseList");case 0:case 2:case 15:return e=$u(e.type,!1),e;case 11:return e=$u(e.type.render,!1),e;case 1:return e=$u(e.type,!0),e;default:return""}}function Wd(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 Js:return"Fragment";case Gs:return"Portal";case Vd:return"Profiler";case Hf:return"StrictMode";case zd:return"Suspense";case Hd: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 Wf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kf:return t=e.displayName||null,t!==null?t:Wd(e.type)||"Memo";case ir:t=e._payload,e=e._init;try{return Wd(e(t))}catch{}}return null}function WE(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 Wd(t);case 8:return t===Hf?"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 Ar(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 KE(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 Wa(e){e._valueTracker||(e._valueTracker=KE(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 ec(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 Kd(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Wm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ar(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&&zf(e,"checked",t,!1)}function qd(e,t){ow(e,t);var n=Ar(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")?Gd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gd(e,t.type,Ar(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Km(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 Gd(e,t,n){(t!=="number"||ec(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yo=Array.isArray;function ui(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=""+Ar(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 Jd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return xe({},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(O(92));if(yo(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ar(n)}}function aw(e,t){var n=Ar(t.value),r=Ar(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 Gm(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 Yd(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 Ka,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(Ka=Ka||document.createElement("div"),Ka.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ka.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Eo={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},qE=["Webkit","ms","Moz","O"];Object.keys(Eo).forEach(function(e){qE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Eo[t]=Eo[e]})});function uw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Eo.hasOwnProperty(e)&&Eo[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 GE=xe({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 Qd(e,t){if(t){if(GE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Xd(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 Zd=null;function qf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var eh=null,di=null,hi=null;function Jm(e){if(e=_a(e)){if(typeof eh!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Yc(t),eh(e.stateNode,e.type,t))}}function hw(e){di?hi?hi.push(e):hi=[e]:di=e}function fw(){if(di){var e=di,t=hi;if(hi=di=null,Jm(e),t)for(e=0;e<t.length;e++)Jm(t[e])}}function pw(e,t){return e(t)}function mw(){}var Uu=!1;function gw(e,t,n){if(Uu)return e(t,n);Uu=!0;try{return pw(e,t,n)}finally{Uu=!1,(di!==null||hi!==null)&&(mw(),fw())}}function zo(e,t){var n=e.stateNode;if(n===null)return null;var r=Yc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var th=!1;if(Un)try{var no={};Object.defineProperty(no,"passive",{get:function(){th=!0}}),window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{th=!1}function JE(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 To=!1,tc=null,nc=!1,nh=null,YE={onError:function(e){To=!0,tc=e}};function QE(e,t,n,r,s,i,o,a,l){To=!1,tc=null,JE.apply(YE,arguments)}function XE(e,t,n,r,s,i,o,a,l){if(QE.apply(this,arguments),To){if(To){var c=tc;To=!1,tc=null}else throw Error(O(198));nc||(nc=!0,nh=c)}}function Ts(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 Ym(e){if(Ts(e)!==e)throw Error(O(188))}function ZE(e){var t=e.alternate;if(!t){if(t=Ts(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Ym(s),e;if(i===r)return Ym(s),t;i=i.sibling}throw Error(O(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function vw(e){return e=ZE(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=bt.unstable_scheduleCallback,Qm=bt.unstable_cancelCallback,eT=bt.unstable_shouldYield,tT=bt.unstable_requestPaint,Ee=bt.unstable_now,nT=bt.unstable_getCurrentPriorityLevel,Gf=bt.unstable_ImmediatePriority,bw=bt.unstable_UserBlockingPriority,rc=bt.unstable_NormalPriority,rT=bt.unstable_LowPriority,Sw=bt.unstable_IdlePriority,Kc=null,xn=null;function sT(e){if(xn&&typeof xn.onCommitFiberRoot=="function")try{xn.onCommitFiberRoot(Kc,e,void 0,(e.current.flags&128)===128)}catch{}}var Zt=Math.clz32?Math.clz32:aT,iT=Math.log,oT=Math.LN2;function aT(e){return e>>>=0,e===0?32:31-(iT(e)/oT|0)|0}var qa=64,Ga=4194304;function vo(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 sc(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=vo(a):(i&=o,i!==0&&(r=vo(i)))}else o=n&~s,o!==0?r=vo(o):i!==0&&(r=vo(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-Zt(t),s=1<<n,r|=e[n],t&=~s;return r}function lT(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 cT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Zt(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=lT(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function rh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kw(){var e=qa;return qa<<=1,!(qa&4194240)&&(qa=64),e}function Fu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ta(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zt(t),e[t]=n}function uT(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-Zt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Jf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Zt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var oe=0;function Ew(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Tw,Yf,Cw,_w,Pw,sh=!1,Ja=[],xr=null,br=null,Sr=null,Ho=new Map,Wo=new Map,ar=[],dT="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 Xm(e,t){switch(e){case"focusin":case"focusout":xr=null;break;case"dragenter":case"dragleave":br=null;break;case"mouseover":case"mouseout":Sr=null;break;case"pointerover":case"pointerout":Ho.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wo.delete(t.pointerId)}}function ro(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=_a(t),t!==null&&Yf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 1,140 bytes, line 37
37function hT(e,t,n,r,s){switch(t){case"focusin":return xr=ro(xr,e,t,n,r,s),!0;case"dragenter":return br=ro(br,e,t,n,r,s),!0;case"mouseover":return Sr=ro(Sr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Ho.set(i,ro(Ho.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Wo.set(i,ro(Wo.get(i)||null,e,t,n,r,s)),!0}return!1}function Aw(e){var t=ts(e.target);if(t!==null){var n=Ts(t);if(n!==null){if(t=n.tag,t===13){if(t=yw(n),t!==null){e.blockedOn=t,Pw(e.priority,function(){Cw(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 Al(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ih(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zd=r,n.target.dispatchEvent(r),Zd=null}else return t=_a(n),t!==null&&Yf(t),e.blockedOn=n,!1;t.shift()}return!0}function Zm(e,t,n){Al(e)&&n.delete(t)}function fT(){sh=!1,xr!==null&&Al(xr)&&(xr=null),br!==null&&Al(br)&&(br=null),Sr!==null&&Al(Sr)&&(Sr=null),Ho.forEac
vendor: 11,841 bytes, line 37
37h(Zm),Wo.forEach(Zm)}function so(e,t){e.blockedOn===t&&(e.blockedOn=null,sh||(sh=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,fT)))}function Ko(e){function t(s){return so(s,e)}if(0<Ja.length){so(Ja[0],e);for(var n=1;n<Ja.length;n++){var r=Ja[n];r.blockedOn===e&&(r.blockedOn=null)}}for(xr!==null&&so(xr,e),br!==null&&so(br,e),Sr!==null&&so(Sr,e),Ho.forEach(t),Wo.forEach(t),n=0;n<ar.length;n++)r=ar[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ar.length&&(n=ar[0],n.blockedOn===null);)Aw(n),n.blockedOn===null&&ar.shift()}var fi=Wn.ReactCurrentBatchConfig,ic=!0;function pT(e,t,n,r){var s=oe,i=fi.transition;fi.transition=null;try{oe=1,Qf(e,t,n,r)}finally{oe=s,fi.transition=i}}function mT(e,t,n,r){var s=oe,i=fi.transition;fi.transition=null;try{oe=4,Qf(e,t,n,r)}finally{oe=s,fi.transition=i}}function Qf(e,t,n,r){if(ic){var s=ih(e,t,n,r);if(s===null)Yu(e,t,r,oc,n),Xm(e,r);else if(hT(s,e,t,n,r))r.stopPropagation();else if(Xm(e,r),t&4&&-1<dT.indexOf(e)){for(;s!==null;){var i=_a(s);if(i!==null&&Tw(i),i=ih(e,t,n,r),i===null&&Yu(e,t,r,oc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Yu(e,t,r,null,n)}}var oc=null;function ih(e,t,n,r){if(oc=null,e=qf(r),e=ts(e),e!==null)if(t=Ts(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 oc=e,null}function Rw(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(nT()){case Gf:return 1;case bw:return 4;case rc:case rT:return 16;case Sw:return 536870912;default:return 16}default:return 16}}var gr=null,Xf=null,Rl=null;function jw(){if(Rl)return Rl;var e,t=Xf,n=t.length,r,s="value"in gr?gr.value:gr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Rl=s.slice(e,1<r?1-r:void 0)}function jl(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 Ya(){return!0}function eg(){return!1}function kt(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)?Ya:eg,this.isPropagationStopped=eg,this}return xe(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=Ya)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ya)},persist:function(){},isPersistent:Ya}),t}var Vi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zf=kt(Vi),Ca=xe({},Vi,{view:0,detail:0}),gT=kt(Ca),Bu,Vu,io,qc=xe({},Ca,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ep,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==io&&(io&&e.type==="mousemove"?(Bu=e.screenX-io.screenX,Vu=e.screenY-io.screenY):Vu=Bu=0,io=e),Bu)},movementY:function(e){return"movementY"in e?e.movementY:Vu}}),tg=kt(qc),yT=xe({},qc,{dataTransfer:0}),vT=kt(yT),wT=xe({},Ca,{relatedTarget:0}),zu=kt(wT),xT=xe({},Vi,{animationName:0,elapsedTime:0,pseudoElement:0}),bT=kt(xT),ST=xe({},Vi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kT=kt(ST),ET=xe({},Vi,{data:0}),ng=kt(ET),TT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CT={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"},_T={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_T[e])?!!t[e]:!1}function ep(){return PT}var AT=xe({},Ca,{key:function(e){if(e.key){var t=TT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?CT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ep,charCode:function(e){return e.type==="keypress"?jl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),RT=kt(AT),jT=xe({},qc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rg=kt(jT),NT=xe({},Ca,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ep}),OT=kt(NT),IT=xe({},Vi,{propertyName:0,elapsedTime:0,pseudoElement:0}),LT=kt(IT),MT=xe({},qc,{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}),DT=kt(MT),$T=[9,13,27,32],tp=Un&&"CompositionEvent"in window,Co=null;Un&&"documentMode"in document&&(Co=document.documentMode);var UT=Un&&"TextEvent"in window&&!Co,Nw=Un&&(!tp||Co&&8<Co&&11>=Co),sg=" ",ig=!1;function Ow(e,t){switch(e){case"keyup":return $T.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 Ys=!1;function FT(e,t){switch(e){case"compositionend":return Iw(t);case"keypress":return t.which!==32?null:(ig=!0,sg);case"textInput":return e=t.data,e===sg&&ig?null:e;default:return null}}function BT(e,t){if(Ys)return e==="compositionend"||!tp&&Ow(e,t)?(e=jw(),Rl=Xf=gr=null,Ys=!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 VT={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 og(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!VT[e.type]:t==="textarea"}function Lw(e,t,n,r){hw(r),t=ac(t,"onChange"),0<t.length&&(n=new Zf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _o=null,qo=null;function zT(e){Kw(e,0)}function Gc(e){var t=Zs(e);if(iw(t))return e}function HT(e,t){if(e==="change")return t}var Mw=!1;if(Un){var Hu;if(Un){var Wu="oninput"in document;if(!Wu){var ag=document.createElement("div");ag.setAttribute("oninput","return;"),Wu=typeof ag.oninput=="function"}Hu=Wu}else Hu=!1;Mw=Hu&&(!document.documentMode||9<document.documentMode)}function lg(){_o&&(_o.detachEvent("onpropertychange",Dw),qo=_o=null)}function Dw(e){if(e.propertyName==="value"&&Gc(qo)){var t=[];Lw(t,qo,e,qf(e)),gw(zT,t)}}function WT(e,t,n){e==="focusin"?(lg(),_o=t,qo=n,_o.attachEvent("onpropertychange",Dw)):e==="focusout"&&lg()}function KT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gc(qo)}function qT(e,t){if(e==="click")return Gc(t)}function GT(e,t){if(e==="input"||e==="change")return Gc(t)}function JT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:JT;function Go(e,t){if(nn(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(!Bd.call(t,s)||!nn(e[s],t[s]))return!1}return!0}function cg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ug(e,t){var n=cg(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=cg(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 Uw(){for(var e=window,t=ec();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ec(e.document)}return t}function np(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 YT(e){var t=Uw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$w(n.ownerDocument.documentElement,n)){if(r!==null&&np(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=ug(n,i);var o=ug(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 QT=Un&&"documentMode"in document&&11>=document.documentMode,Qs=null,oh=null,Po=null,ah=!1;function dg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ah||Qs==null||Qs!==ec(r)||(r=Qs,"selectionStart"in r&&np(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,352 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Po&&Go(Po,r)||(Po=r,r=ac(oh,"onSelect"),0<r.length&&(t=new Zf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qs)))}function Qa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xs={animationend:Qa("Animation","AnimationEnd"),animationiteration:Qa("Animation","AnimationIteration"),animationstart:Qa("Animation","AnimationStart"),transitionend:Qa("Transition","TransitionEnd")},Ku={},Fw={};Un&&(Fw=document.createElement("div").style,"AnimationEvent"in window||(delete Xs.animationend.animation,delete Xs.animationiteration.animation,delete Xs.animationstart.animation),"TransitionEvent"in window||delete Xs.transitionend.transition);function Jc(e){if(Ku[e])return Ku[e];if(!Xs[e])return e;var t=Xs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fw)return Ku[e]=t[n];return e}var Bw=Jc("animationend"),Vw=Jc("animationiteration"),zw=Jc("animationstart"),Hw=Jc("transitionend"),Ww=new Map,hg="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 Dr(e,t){Ww.set(e,t),Es(t,[e])}for(var qu=0;qu<hg.length;qu++){var Gu=hg[qu],XT=Gu.toLowerCase(),ZT=Gu[0].toUpperCase()+Gu.slice(1);Dr(XT,"on"+ZT)}Dr(Bw,"onAnimationEnd");Dr(Vw,"onAnimationIteration");Dr(zw,"onAnimationStart");Dr("dblclick","onDoubleClick");Dr("focusin","onFocus");Dr("focusout","onBlur");Dr(Hw,"onTransitionEnd");Ai("onMouseEnter",["mouseout","mouseover"]);Ai("onMouseLeave",["mouseout","mouseover"]);Ai("onPointerEnter",["pointerout","pointerover"]);Ai("onPointerLeave",["pointerout","pointerover"]);Es("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Es("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Es("onBeforeInput",["compositionend","keypress","textInput","paste"]);Es("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Es("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Es("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),eC=new Set("cancel close invalid load scroll toggle".split(" ").concat(wo));function fg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,XE(r,t,void 0,e),e.currentTarget=null}function Kw(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;fg(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;fg(s,a,c),i=l}}}if(nc)throw e=nh,nc=!1,nh=null,e}function he(e,t){var n=t[hh];n===void 0&&(n=t[hh]=new Set);var r=e+"__bubble";n.has(r)||(qw(t,e,2,!1),n.add(r))}function Ju(e,t,n){var r=0;t&&(r|=4),qw(n,e,r,t)}var Xa="_reactListening"+Math.random().toString(36).slice(2);function Jo(e){if(!e[Xa]){e[Xa]=!0,ew.forEach(function(n){n!=="selectionchange"&&(eC.has(n)||Ju(n,!1,e),Ju(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xa]||(t[Xa]=!0,Ju("selectionchange",!1,t))}}function qw(e,t,n,r){switch(Rw(t)){case 1:var s=pT;break;case 4:s=mT;break;default:s=Qf}n=s.bind(null,t,n,e),s=void 0,!th||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}
vendor: 4,454 bytes, line 37
37function Yu(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=ts(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=qf(n),d=[];e:{var h=Ww.get(e);if(h!==void 0){var f=Zf,g=e;switch(e){case"keypress":if(jl(n)===0)break e;case"keydown":case"keyup":f=RT;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=tg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=vT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=OT;break;case Bw:case Vw:case zw:f=bT;break;case Hw:f=LT;break;case"scroll":f=gT;break;case"wheel":f=DT;break;case"copy":case"cut":case"paste":f=kT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=rg}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=zo(y,m),S!=null&&v.push(Yo(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!==Zd&&(g=n.relatedTarget||n.fromElement)&&(ts(g)||g[Fn]))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?ts(g):null,g!==null&&(x=Ts(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(f=null,g=c),f!==g)){if(v=tg,S="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=rg,S="onPointerLeave",m="onPointerEnter",y="pointer"),x=f==null?h:Zs(f),w=g==null?h:Zs(g),h=new v(S,y+"leave",f,n,u),h.target=x,h.relatedTarget=w,S=null,ts(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=Ls(w))y++;for(w=0,S=m;S;S=Ls(S))w++;for(;0<y-w;)v=Ls(v),y--;for(;0<w-y;)m=Ls(m),w--;for(;y--;){if(v===m||m!==null&&v===m.alternate)break t;v=Ls(v),m=Ls(m)}v=null}else v=null;f!==null&&pg(d,h,f,v,!1),g!==null&&x!==null&&pg(d,x,g,v,!0)}}e:{if(h=c?Zs(c):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var k=HT;else if(og(h))if(Mw)k=GT;else{k=KT;var E=WT}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=qT);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"&&Gd(h,"number",h.value)}switch(E=c?Zs(c):window,e){case"focusin":(og(E)||E.contentEditable==="true")&&(Qs=E,oh=c,Po=null);break;case"focusout":Po=oh=Qs=null;break;case"mousedown":ah=!0;break;case"contextmenu":case"mouseup":case"dragend":ah=!1,dg(d,n,u);break;case"selectionchange":if(QT)break;case"keydown":case"keyup":dg(d,n,u)}var T;if(tp)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Ys?Ow(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Nw&&n.locale!=="ko"&&(Ys||C!=="onCompositionStart"?C==="onCompositionEnd"&&Ys&&(T=jw()):(gr=u,Xf="value"in gr?gr.value:gr.textContent,Ys=!0)),E=ac(c,C),0<E.length&&(C=new ng(C,e,null,n,u),d.push({event:C,listeners:E}),T?C.data=T:(T=Iw(n),T!==null&&(C.data=T)))),(T=UT?FT(e,n):BT(e,n))&&(c=ac(c,"onBeforeInput"),0<c.length&&(u=new ng("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=T))}Kw(d,t)})}function Yo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ac(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=zo(e,n),i!=null&&r.unshift(Yo(e,i,s)),i=zo(e,t),i!=null&&r.push(Yo(e,i,s))),e=e.return}return r}function Ls(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}
vendor: 4,594 bytes, lines 37-38
37function pg(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=zo(n,i),l!=null&&o.unshift(Yo(n,l,a))):s||(l=zo(n,i),l!=null&&o.push(Yo(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var tC=/\r\n?/g,nC=/\u0000|\uFFFD/g;function mg(e){return(typeof e=="string"?e:""+e).replace(tC,`
38`).replace(nC,"")}function Za(e,t,n){if(t=mg(t),mg(e)!==t&&n)throw Error(O(425))}function lc(){}var lh=null,ch=null;function uh(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 dh=typeof setTimeout=="function"?setTimeout:void 0,rC=typeof clearTimeout=="function"?clearTimeout:void 0,gg=typeof Promise=="function"?Promise:void 0,sC=typeof queueMicrotask=="function"?queueMicrotask:typeof gg<"u"?function(e){return gg.resolve(null).then(e).catch(iC)}:dh;function iC(e){setTimeout(function(){throw e})}function Qu(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),Ko(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Ko(t)}function kr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function yg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var zi=Math.random().toString(36).slice(2),vn="__reactFiber$"+zi,Qo="__reactProps$"+zi,Fn="__reactContainer$"+zi,hh="__reactEvents$"+zi,oC="__reactListeners$"+zi,aC="__reactHandles$"+zi;function ts(e){var t=e[vn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fn]||n[vn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yg(e);e!==null;){if(n=e[vn])return n;e=yg(e)}return t}e=n,n=e.parentNode}return null}function _a(e){return e=e[vn]||e[Fn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Zs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Yc(e){return e[Qo]||null}var fh=[],ei=-1;function $r(e){return{current:e}}function pe(e){0>ei||(e.current=fh[ei],fh[ei]=null,ei--)}function ue(e,t){ei++,fh[ei]=e.current,e.current=t}var Rr={},Je=$r(Rr),ct=$r(!1),vs=Rr;function Ri(e,t){var n=e.type.contextTypes;if(!n)return Rr;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 ut(e){return e=e.childContextTypes,e!=null}function cc(){pe(ct),pe(Je)}function vg(e,t,n){if(Je.current!==Rr)throw Error(O(168));ue(Je,t),ue(ct,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(O(108,WE(e)||"Unknown",s));return xe({},n,r)}function uc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rr,vs=Je.current,ue(Je,e),ue(ct,ct.current),!0}function wg(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Gw(e,t,vs),r.__reactInternalMemoizedMergedChildContext=e,pe(ct),pe(Je),ue(Je,e)):pe(ct),ue(ct,n)}var In=null,Qc=!1,Xu=!1;function Jw(e){In===null?In=[e]:In.push(e)}function lC(e){Qc=!0,Jw(e)}function Ur(){if(!Xu&&In!==null){Xu=!0;var e=0,t=oe;try{var n=In;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}In=null,Qc=!1}catch(s){throw In!==null&&(In=In.slice(e+1)),xw(Gf,Ur),s}finally{oe=t,Xu=!1}}return null}var ti=[],ni=0,dc=null,hc=0,_t=[],Pt=0,ws=null,Mn=1,Dn="";function Yr(e,t){ti[ni++]=hc,ti[ni++]=dc,dc=e,hc=t}function Yw(e,t,n){_t[Pt++]=Mn,_t[Pt++]=Dn,_t[Pt++]=ws,ws=e;var r=Mn;e=Dn;var s=32-Zt(r)-1;r&=~(1<<s),n+=1;var i=32-Zt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Mn=1<<32-Zt(t)+s|n<<s|r,Dn=i+e}else Mn=1<<i|n<<s|r,Dn=e}function rp(e){e.return!==null&&(Yr(e,1),Yw(e,1,0))}function sp(e){for(;e===dc;)dc=ti[--ni],ti[ni]=null,hc=ti[--ni],ti[ni]=null;for(;e===ws;)ws=_t[--Pt],_t[Pt]=null,Dn=_t[--Pt],_t[Pt]=null,Mn=_t[--Pt],_t[Pt]=null}var wt=null,vt=null,ge=!1,Qt=null;function Qw(e,t){var n=At(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function xg(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 14,541 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,wt=e,vt=kr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wt=e,vt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ws!==null?{id:Mn,overflow:Dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,wt=e,vt=null,!0):!1;default:return!1}}function ph(e){return(e.mode&1)!==0&&(e.flags&128)===0}function mh(e){if(ge){var t=vt;if(t){var n=t;if(!xg(e,t)){if(ph(e))throw Error(O(418));t=kr(n.nextSibling);var r=wt;t&&xg(e,t)?Qw(r,n):(e.flags=e.flags&-4097|2,ge=!1,wt=e)}}else{if(ph(e))throw Error(O(418));e.flags=e.flags&-4097|2,ge=!1,wt=e}}}function bg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wt=e}function el(e){if(e!==wt)return!1;if(!ge)return bg(e),ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!uh(e.type,e.memoizedProps)),t&&(t=vt)){if(ph(e))throw Xw(),Error(O(418));for(;t;)Qw(e,t),t=kr(t.nextSibling)}if(bg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){vt=kr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}vt=null}}else vt=wt?kr(e.stateNode.nextSibling):null;return!0}function Xw(){for(var e=vt;e;)e=kr(e.nextSibling)}function ji(){vt=wt=null,ge=!1}function ip(e){Qt===null?Qt=[e]:Qt.push(e)}var cC=Wn.ReactCurrentBatchConfig;function oo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function tl(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Sg(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=_r(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=id(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===Js?u(m,y,w.props.children,S,w.key):y!==null&&(y.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ir&&Sg(k)===y.type)?(S=s(y,w.props),S.ref=oo(m,y,w),S.return=m,S):(S=$l(w.type,w.key,w.props,null,m.mode,S),S.ref=oo(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=od(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=ms(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=id(""+y,m.mode,w),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ha:return w=$l(y.type,y.key,y.props,null,m.mode,w),w.ref=oo(m,null,y),w.return=m,w;case Gs:return y=od(y,m.mode,w),y.return=m,y;case ir:var S=y._init;return d(m,S(y._payload),w)}if(yo(y)||to(y))return y=ms(y,m.mode,w,null),y.return=m,y;tl(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 Ha:return w.key===k?l(m,y,w,S):null;case Gs:return w.key===k?c(m,y,w,S):null;case ir:return k=w._init,h(m,y,k(w._payload),S)}if(yo(w)||to(w))return k!==null?null:u(m,y,w,S,null);tl(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 Ha:return m=m.get(S.key===null?w:S.key)||null,l(y,m,S,k);case Gs:return m=m.get(S.key===null?w:S.key)||null,c(y,m,S,k);case ir:var E=S._init;return f(m,y,w,E(S._payload),k)}if(yo(S)||to(S))return m=m.get(w)||null,u(y,m,S,k,null);tl(y,S)}return null}function g(m,y,w,S){for(var k=null,E=null,T=y,C=y=0,A=null;T!==null&&C<w.length;C++){T.index>C?(A=T,T=null):A=T.sibling;var P=h(m,T,w[C],S);if(P===null){T===null&&(T=A);break}e&&T&&P.alternate===null&&t(m,T),y=i(P,y,C),E===null?k=P:E.sibling=P,E=P,T=A}if(C===w.length)return n(m,T),ge&&Yr(m,C),k;if(T===null){for(;C<w.length;C++)T=d(m,w[C],S),T!==null&&(y=i(T,y,C),E===null?k=T:E.sibling=T,E=T);return ge&&Yr(m,C),k}for(T=r(m,T);C<w.length;C++)A=f(T,m,C,w[C],S),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?C:A.key),y=i(A,y,C),E===null?k=A:E.sibling=A,E=A);return e&&T.forEach(function(D){return t(m,D)}),ge&&Yr(m,C),k}function v(m,y,w,S){var k=to(w);if(typeof k!="function")throw Error(O(150));if(w=k.call(w),w==null)throw Error(O(151));for(var E=k=null,T=y,C=y=0,A=null,P=w.next();T!==null&&!P.done;C++,P=w.next()){T.index>C?(A=T,T=null):A=T.sibling;var D=h(m,T,P.value,S);if(D===null){T===null&&(T=A);break}e&&T&&D.alternate===null&&t(m,T),y=i(D,y,C),E===null?k=D:E.sibling=D,E=D,T=A}if(P.done)return n(m,T),ge&&Yr(m,C),k;if(T===null){for(;!P.done;C++,P=w.next())P=d(m,P.value,S),P!==null&&(y=i(P,y,C),E===null?k=P:E.sibling=P,E=P);return ge&&Yr(m,C),k}for(T=r(m,T);!P.done;C++,P=w.next())P=f(T,m,C,P.value,S),P!==null&&(e&&P.alternate!==null&&T.delete(P.key===null?C:P.key),y=i(P,y,C),E===null?k=P:E.sibling=P,E=P);return e&&T.forEach(function(L){return t(m,L)}),ge&&Yr(m,C),k}function x(m,y,w,S){if(typeof w=="object"&&w!==null&&w.type===Js&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ha:e:{for(var k=w.key,E=y;E!==null;){if(E.key===k){if(k=w.type,k===Js){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===ir&&Sg(k)===E.type){n(m,E.sibling),y=s(E,w.props),y.ref=oo(m,E,w),y.return=m,m=y;break e}n(m,E);break}else t(m,E);E=E.sibling}w.type===Js?(y=ms(w.props.children,m.mode,S,w.key),y.return=m,m=y):(S=$l(w.type,w.key,w.props,null,m.mode,S),S.ref=oo(m,y,w),S.return=m,m=S)}return o(m);case Gs: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=od(w,m.mode,S),y.return=m,m=y}return o(m);case ir:return E=w._init,x(m,y,E(w._payload),S)}if(yo(w))return g(m,y,w,S);if(to(w))return v(m,y,w,S);tl(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=id(w,m.mode,S),y.return=m,m=y),o(m)):n(m,y)}return x}var Ni=Zw(!0),ex=Zw(!1),fc=$r(null),pc=null,ri=null,op=null;function ap(){op=ri=pc=null}function lp(e){var t=fc.current;pe(fc),e._currentValue=t}function gh(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 pi(e,t){pc=e,op=ri=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lt=!0),e.firstContext=null)}function It(e){var t=e._currentValue;if(op!==e)if(e={context:e,memoizedValue:t,next:null},ri===null){if(pc===null)throw Error(O(308));ri=e,pc.dependencies={lanes:0,firstContext:e}}else ri=ri.next=e;return t}var ns=null;function cp(e){ns===null?ns=[e]:ns.push(e)}function tx(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,cp(t)):(n.next=s.next,s.next=n),t.interleaved=n,Bn(e,r)}function Bn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var or=!1;function up(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 $n(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Er(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Bn(e,n)}return s=r.interleaved,s===null?(t.next=t,cp(r)):(t.next=s.next,s.next=t),r.interleaved=t,Bn(e,n)}function Nl(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,Jf(e,n)}}function kg(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 mc(e,t,n,r){var s=e.updateQueue;or=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,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=xe({},d,h);break e;case 2:or=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},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);bs|=o,e.lanes=o,e.memoizedState=d}}function Eg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(O(191,s));s.call(r)}}}var Pa={},bn=$r(Pa),Xo=$r(Pa),Zo=$r(Pa);function rs(e){if(e===Pa)throw Error(O(174));return e}function dp(e,t){switch(ue(Zo,t),ue(Xo,e),ue(bn,Pa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yd(t,e)}pe(bn),ue(bn,t)}function Oi(){pe(bn),pe(Xo),pe(Zo)}function rx(e){rs(Zo.current);var t=rs(bn.current),n=Yd(t,e.type);t!==n&&(ue(Xo,e),ue(bn,n))}function hp(e){Xo.current===e&&(pe(bn),pe(Xo))}var ve=$r(0);function gc(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 Zu=[];function fp(){for(var e=0;e<Zu.length;e++)Zu[e]._workInProgressVersionPrimary=null;Zu.length=0}var Ol=Wn.ReactCurrentDispatcher,ed=Wn.ReactCurrentBatchConfig,xs=0,we=null,je=null,Ie=null,yc=!1,Ao=!1,ea=0,uC=0;function We(){throw Error(O(321))}function pp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nn(e[n],t[n]))return!1;return!0}function mp(e,t,n,r,s,i){if(xs=i,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ol.current=e===null||e.memoizedState===null?pC:mC,e=n(r,s),Ao){i=0;do{if(Ao=!1,ea=0,25<=i)throw Error(O(301));i+=1,Ie=je=null,t.updateQueue=null,Ol.current=gC,e=n(r,s)}while(Ao)}if(Ol.current=vc,t=je!==null&&je.next!==null,xs=0,Ie=je=we=null,yc=!1,t)throw Error(O(300));return e}function gp(){var e=ea!==0;return ea=0,e}function un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?we.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Lt(){if(je===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Ie===null?we.memoizedState:Ie.next;if(t!==null)Ie=t,je=e;else{if(e===null)throw Error(O(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Ie===null?we.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function ta(e,t){return typeof t=="function"?t(e):t}function td(e){var t=Lt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=je,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((xs&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,we.lanes|=u,bs|=u}c=c.next}while(c!==null&&c!==i);l===null?o=r:l.next=a,nn(r,t.memoizedState)||(lt=!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,we.lanes|=i,bs|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}
vendor: 6,334 bytes, line 38
38function nd(e){var t=Lt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);nn(i,t.memoizedState)||(lt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function sx(){}function ix(e,t){var n=we,r=Lt(),s=t(),i=!nn(r.memoizedState,s);if(i&&(r.memoizedState=s,lt=!0),r=r.queue,yp(lx.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,na(9,ax.bind(null,n,r,s,t),void 0,null),Le===null)throw Error(O(349));xs&30||ox(n,t,s)}return s}function ox(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.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!nn(e,n)}catch{return!0}}function ux(e){var t=Bn(e,1);t!==null&&en(t,e,1,-1)}function Tg(e){var t=un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e},t.queue=e,e=e.dispatch=fC.bind(null,we,e),[t.memoizedState,e]}function na(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.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 Lt().memoizedState}function Il(e,t,n,r){var s=un();we.flags|=e,s.memoizedState=na(1|t,n,void 0,r===void 0?null:r)}function Xc(e,t,n,r){var s=Lt();r=r===void 0?null:r;var i=void 0;if(je!==null){var o=je.memoizedState;if(i=o.destroy,r!==null&&pp(r,o.deps)){s.memoizedState=na(t,n,i,r);return}}we.flags|=e,s.memoizedState=na(1|t,n,i,r)}function Cg(e,t){return Il(8390656,8,e,t)}function yp(e,t){return Xc(2048,8,e,t)}function hx(e,t){return Xc(4,2,e,t)}function fx(e,t){return Xc(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,Xc(4,4,px.bind(null,t,e),n)}function vp(){}function gx(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function yx(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vx(e,t,n){return xs&21?(nn(n,t)||(n=kw(),we.lanes|=n,bs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,lt=!0),e.memoizedState=n)}function dC(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=ed.transition;ed.transition={};try{e(!1),t()}finally{oe=n,ed.transition=r}}function wx(){return Lt().memoizedState}function hC(e,t,n){var r=Cr(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=nt();en(n,e,r,s),Sx(n,t,r)}}function fC(e,t,n){var r=Cr(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,nn(a,o)){var l=t.interleaved;l===null?(s.next=s,cp(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=tx(e,t,s,r),n!==null&&(s=nt(),en(n,e,r,s),Sx(n,t,r))}}function xx(e){var t=e.alternate;return e===we||t!==null&&t===we}function bx(e,t){Ao=yc=!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,Jf(e,n)}}var vc={readContext:It,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},pC={readContext:It,useCallback:function(e,t){return un().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:Cg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Il(4194308,4,px.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Il(4194308,4,e,t)},useInsertionEffect:function(e,t){return Il(4,2,e,t)},useMemo:function(e,t){var n=un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=un();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=hC.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=un();return e={current:e},t.memoizedState=e},useState:Tg,useDebugValue:vp,useDeferredValue:function(e){return un().memoizedState=e},useTransition:function(){var e=Tg(!1),t=e[0];return e=dC.bind(null,e[1]),un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,s=un();if(ge){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Le===null)throw Error(O(349));xs&30||ox(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Cg(lx.bind(null,r,i,e),[e]),r.flags|=2048,na(9,ax.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=un(),t=Le.identifierPrefix;if(ge){var n=Dn,r=Mn;n=(r&~(1<<32-Zt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ea++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=uC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mC={readContext:It,useCallback:gx,useContext:It,useEffect:yp,useImperativeHandle:mx,useInsertionEffect:hx,useLayoutEffect:fx,useMemo:yx,useReducer:td,useRef:dx,useState:function(){return td(ta)},useDebugValue:vp,useDeferredValue:function(e){var t=Lt();return vx(t,je.memoizedState,e)},useTransition:function(){var e=td(ta)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:sx,useSyncExternalStore:ix,useId:wx,unstable_isNewReconciler:!1},gC={readContext:It,useCallback:gx,useContext:It,useEffect:yp,useImperativeHandle:mx,useInsertionEffect:hx,useLayoutEffect:fx,useMemo:yx,useReducer:nd,useRef:dx,use
vendor: 4,079 bytes, lines 38-40
38State:function(){return nd(ta)},useDebugValue:vp,useDeferredValue:function(e){var t=Lt();return je===null?t.memoizedState=e:vx(t,je.memoizedState,e)},useTransition:function(){var e=nd(ta)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:sx,useSyncExternalStore:ix,useId:wx,unstable_isNewReconciler:!1};function Wt(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function yh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zc={isMounted:function(e){return(e=e._reactInternals)?Ts(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nt(),s=Cr(e),i=$n(r,s);i.payload=t,n!=null&&(i.callback=n),t=Er(e,i,s),t!==null&&(en(t,e,s,r),Nl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nt(),s=Cr(e),i=$n(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Er(e,i,s),t!==null&&(en(t,e,s,r),Nl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nt(),r=Cr(e),s=$n(n,r);s.tag=2,t!=null&&(s.callback=t),t=Er(e,s,r),t!==null&&(en(t,e,r,n),Nl(t,e,r))}};function _g(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?!Go(n,r)||!Go(s,i):!0}function kx(e,t,n){var r=!1,s=Rr,i=t.contextType;return typeof i=="object"&&i!==null?i=It(i):(s=ut(t)?vs:Je.current,r=t.contextTypes,i=(r=r!=null)?Ri(e,s):Rr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Pg(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&&Zc.enqueueReplaceState(t,t.state,null)}function vh(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},up(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=It(i):(i=ut(t)?vs:Je.current,s.context=Ri(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(yh(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&&Zc.enqueueReplaceState(s,s.state,null),mc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ii(e,t){try{var n="",r=t;do n+=HE(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 rd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function wh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var yC=typeof WeakMap=="function"?WeakMap:Map;function Ex(e,t,n){n=$n(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xc||(xc=!0,Ah=r),wh(e,t)},n}function Tx(e,t,n){n=$n(-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(){wh(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){wh(e,t),typeof r!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ag(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new yC;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=jC.bind(null,e,t,n),t.then(e,e))}function Rg(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=$n(-1,1),t.tag=2,Er(n,t,1))),n.lanes|=1),e)}var vC=Wn.ReactCurrentOwner,lt=!1;function Qe(e,t,n,r){t.child=e===null?ex(t,null,n,r):Ni(t,e.child,n,r)}function Ng(e,t,n,r,s){n=n.render;var i=t.ref;return pi(t,s),r=mp(e,t,n,r,i,s),n=gp(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Vn(e,t,s)):(ge&&n&&rp(t),t.flags|=1,Qe(e,t,r,s),t.child)}function Og(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Cp(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Cx(e,t,i,r,s)):(e=$l(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:Go,n(o,r)&&e.ref===t.ref)return Vn(e,t,s)}return t.flags|=1,e=_r(i,r),e.ref=t.ref,e.return=t,t.child=e}function Cx(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Go(i,r)&&e.ref===t.ref)if(lt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(lt=!0);else return t.lanes=e.lanes,Vn(e,t,s)}return xh(e,t,n,r,s)}function _x(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},ue(ii,mt),mt|=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,ue(ii,mt),mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ue(ii,mt),mt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ue(ii,mt),mt|=r;return Qe(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 xh(e,t,n,r,s){var i=ut(n)?vs:Je.current;return i=Ri(t,i),pi(t,s),n=mp(e,t,n,r,i,s),r=gp(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Vn(e,t,s)):(ge&&r&&rp(t),t.flags|=1,Qe(e,t,n,s),t.child)}function Ig(e,t,n,r,s){if(ut(n)){var i=!0;uc(t)}else i=!1;if(pi(t,s),t.stateNode===null)Ll(e,t),kx(t,n,r),vh(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=It(c):(c=ut(n)?vs:Je.current,c=Ri(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)&&Pg(t,o,r,c),or=!1;var h=t.memoizedState;o.state=h,mc(t,r,o,s),l=t.memoizedState,a!==r||h!==l||ct.current||or?(typeof u=="function"&&(yh(t,n,u,r),l=t.memoizedState),(a=or||_g(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:Wt(t.type,a),o.props=c,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=It(l):(l=ut(n)?vs:Je.current,l=Ri(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)&&Pg(t,o,r,l),or=!1,h=t.memoizedState,o.state=h,mc(t,r,o,s);var g=t.memoizedState;a!==d||h!==g||ct.current||or?(typeof f=="function"&&(yh(t,n,f,r),g=t.memoizedState),(c=or||_g(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 bh(e,t,n,r,i,s)}function bh(e,t,n,r,s,i){Px(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&wg(t,n,!1),Vn(e,t,i);r=t.stateNode,vC.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ni(t,e.child,null,i),t.child=Ni(t,null,a,i)):Qe(e,t,a,i),t.memoizedState=r.state,s&&wg(t,n,!0),t.child}function Ax(e){var t=e.stateNode;t.pendingContext?vg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vg(e,t.context,!1),dp(e,t.containerInfo)}function Lg(e,t,n,r,s){return ji(),ip(s),t.flags|=256,Qe(e,t,n,r),t.child}var Sh={dehydrated:null,treeContext:null,retryLane:0};function kh(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rx(e,t,n){var r=t.pendingProps,s=ve.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),ue(ve,s&1),e===null)return mh(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=nu(o,r,0,null),e=ms(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=kh(n),t.memoizedState=Sh,e):wp(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return wC(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=_r(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=_r(a,i):(i=ms(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?kh(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Sh,r}return i=e.child,e=i.sibling,r=_r(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 wp(e,t){return t=nu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function nl(e,t,n,r){return r!==null&&ip(r),Ni(t,e.child,null,n),e=wp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wC(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=rd(Error(O(422))),nl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=nu({mode:"visible",children:r.children},s,0,null),i=ms(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ni(t,e.child,null,o),t.child.memoizedState=kh(o),t.memoizedState=Sh,i);if(!(t.mode&1))return nl(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(O(419)),r=rd(i,r,void 0),nl(e,t,o,r)}if(a=(o&e.childLanes)!==0,lt||a){if(r=Le,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Bn(e,s),en(r,e,s,-1))}return Tp(),r=rd(Error(O(421))),nl(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=NC.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,vt=kr(s.nextSibling),wt=t,ge=!0,Qt=null,e!==null&&(_t[Pt++]=Mn,_t[Pt++]=Dn,_t[Pt++]=ws,Mn=e.id,Dn=e.overflow,ws=t),t=wp(t,r.children),t.flags|=4096,t)}function Mg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gh(e.return,t,n)}function sd(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 jx(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Qe(e,t,r.children,n),r=ve.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&&Mg(e,n,t);else if(e.tag===19)Mg(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(ue(ve,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&&gc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),sd(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&&gc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}sd(t,!0,n,null,i);break;case"together":sd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ll(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));
vendor: 4,174 bytes, line 40
40if(t.child!==null){for(e=t.child,n=_r(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_r(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xC(e,t,n){switch(t.tag){case 3:Ax(t),ji();break;case 5:rx(t);break;case 1:ut(t.type)&&uc(t);break;case 4:dp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ue(fc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?Rx(e,t,n):(ue(ve,ve.current&1),e=Vn(e,t,n),e!==null?e.sibling:null);ue(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return jx(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ue(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,_x(e,t,n)}return Vn(e,t,n)}var Nx,Eh,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}};Eh=function(){};Ox=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,rs(bn.current);var i=null;switch(n){case"input":s=Kd(e,s),r=Kd(e,r),i=[];break;case"select":s=xe({},s,{value:void 0}),r=xe({},r,{value:void 0}),i=[];break;case"textarea":s=Jd(e,s),r=Jd(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=lc)}Qd(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"&&(Bo.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"&&(Bo.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&he("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 ao(e,t){if(!ge)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 Ke(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 bC(e,t,n){var r=t.pendingProps;switch(sp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return ut(t.type)&&cc(),Ke(t),null;case 3:return r=t.stateNode,Oi(),pe(ct),pe(Je),fp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(el(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qt!==null&&(Nh(Qt),Qt=null))),Eh(e,t),Ke(t),null;case 5:hp(t);var s=rs(Zo.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(O(166));return Ke(t),null}if(e=rs(bn.current),el(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;
vendor: 33,008 bytes, line 40
40switch(r[vn]=t,r[Qo]=i,e=(t.mode&1)!==0,n){case"dialog":he("cancel",r),he("close",r);break;case"iframe":case"object":case"embed":he("load",r);break;case"video":case"audio":for(s=0;s<wo.length;s++)he(wo[s],r);break;case"source":he("error",r);break;case"img":case"image":case"link":he("error",r),he("load",r);break;case"details":he("toggle",r);break;case"input":Wm(r,i),he("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},he("invalid",r);break;case"textarea":qm(r,i),he("invalid",r)}Qd(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Za(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Za(r.textContent,a,e),s=["children",""+a]):Bo.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&he("scroll",r)}switch(n){case"input":Wa(r),Km(r,i,!0);break;case"textarea":Wa(r),Gm(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=lc)}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[vn]=t,e[Qo]=r,Nx(e,t,!1,!1),t.stateNode=e;e:{switch(o=Xd(n,r),n){case"dialog":he("cancel",e),he("close",e),s=r;break;case"iframe":case"object":case"embed":he("load",e),s=r;break;case"video":case"audio":for(s=0;s<wo.length;s++)he(wo[s],e);s=r;break;case"source":he("error",e),s=r;break;case"img":case"image":case"link":he("error",e),he("load",e),s=r;break;case"details":he("toggle",e),s=r;break;case"input":Wm(e,r),s=Kd(e,r),he("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=xe({},r,{value:void 0}),he("invalid",e);break;case"textarea":qm(e,r),s=Jd(e,r),he("invalid",e);break;default:s=r}Qd(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!=="")&&Vo(e,l):typeof l=="number"&&Vo(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Bo.hasOwnProperty(i)?l!=null&&i==="onScroll"&&he("scroll",e):l!=null&&zf(e,i,l,o))}switch(n){case"input":Wa(e),Km(e,r,!1);break;case"textarea":Wa(e),Gm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ar(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ui(e,!!r.multiple,i,!1):r.defaultValue!=null&&ui(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=lc)}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 Ke(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(O(166));if(n=rs(Zo.current),rs(bn.current),el(t)){if(r=t.stateNode,n=t.memoizedProps,r[vn]=t,(i=r.nodeValue!==n)&&(e=wt,e!==null))switch(e.tag){case 3:Za(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Za(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[vn]=t,t.stateNode=r}return Ke(t),null;case 13:if(pe(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ge&&vt!==null&&t.mode&1&&!(t.flags&128))Xw(),ji(),t.flags|=98560,i=!1;else if(i=el(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(O(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(O(317));i[vn]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),i=!1}else Qt!==null&&(Nh(Qt),Qt=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||ve.current&1?Oe===0&&(Oe=3):Tp())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return Oi(),Eh(e,t),e===null&&Jo(t.stateNode.containerInfo),Ke(t),null;case 10:return lp(t.type._context),Ke(t),null;case 17:return ut(t.type)&&cc(),Ke(t),null;case 19:if(pe(ve),i=t.memoizedState,i===null)return Ke(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)ao(i,!1);else{if(Oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=gc(e),o!==null){for(t.flags|=128,ao(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ue(ve,ve.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ee()>Li&&(t.flags|=128,r=!0,ao(i,!1),t.lanes=4194304)}else{if(!r)if(e=gc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ao(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ge)return Ke(t),null}else 2*Ee()-i.renderingStartTime>Li&&n!==1073741824&&(t.flags|=128,r=!0,ao(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ee(),t.sibling=null,n=ve.current,ue(ve,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return Ep(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?mt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function SC(e,t){switch(sp(t),t.tag){case 1:return ut(t.type)&&cc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Oi(),pe(ct),pe(Je),fp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hp(t),null;case 13:if(pe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ve),null;case 4:return Oi(),null;case 10:return lp(t.type._context),null;case 22:case 23:return Ep(),null;case 24:return null;default:return null}}var rl=!1,Ge=!1,kC=typeof WeakSet=="function"?WeakSet:Set,$=null;function si(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function Th(e,t,n){try{n()}catch(r){ke(e,t,r)}}var Dg=!1;function EC(e,t){if(lh=ic,e=Uw(),np(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(ch={focusedElem:e,selectionRange:n},ic=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;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:Wt(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(O(163))}}catch(S){ke(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return g=Dg,Dg=!1,g}function Ro(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&&Th(t,n,i)}s=s.next}while(s!==r)}}function eu(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 Ch(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[vn],delete t[Qo],delete t[hh],delete t[oC],delete t[aC])),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 $g(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 _h(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=lc));else if(r!==4&&(e=e.child,e!==null))for(_h(e,t,n),e=e.sibling;e!==null;)_h(e,t,n),e=e.sibling}function Ph(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(Ph(e,t,n),e=e.sibling;e!==null;)Ph(e,t,n),e=e.sibling}var $e=null,Yt=!1;function Zn(e,t,n){for(n=n.child;n!==null;)Dx(e,t,n),n=n.sibling}function Dx(e,t,n){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(Kc,n)}catch{}switch(n.tag){case 5:Ge||si(n,t);case 6:var r=$e,s=Yt;$e=null,Zn(e,t,n),$e=r,Yt=s,$e!==null&&(Yt?(e=$e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$e.removeChild(n.stateNode));break;case 18:$e!==null&&(Yt?(e=$e,n=n.stateNode,e.nodeType===8?Qu(e.parentNode,n):e.nodeType===1&&Qu(e,n),Ko(e)):Qu($e,n.stateNode));break;case 4:r=$e,s=Yt,$e=n.stateNode.containerInfo,Yt=!0,Zn(e,t,n),$e=r,Yt=s;break;case 0:case 11:case 14:case 15:if(!Ge&&(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)&&Th(n,t,o),s=s.next}while(s!==r)}Zn(e,t,n);break;case 1:if(!Ge&&(si(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ke(n,t,a)}Zn(e,t,n);break;case 21:Zn(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,Zn(e,t,n),Ge=r):Zn(e,t,n);break;default:Zn(e,t,n)}}function Ug(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new kC),t.forEach(function(r){var s=OC.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ft(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:$e=a.stateNode,Yt=!1;break e;case 3:$e=a.stateNode.containerInfo,Yt=!0;break e;case 4:$e=a.stateNode.containerInfo,Yt=!0;break e}a=a.return}if($e===null)throw Error(O(160));Dx(i,o,s),$e=null,Yt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){ke(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(Ft(t,e),an(e),r&4){try{Ro(3,e,e.return),eu(3,e)}catch(v){ke(e,e.return,v)}try{Ro(5,e,e.return)}catch(v){ke(e,e.return,v)}}break;case 1:Ft(t,e),an(e),r&512&&n!==null&&si(n,n.return);break;case 5:if(Ft(t,e),an(e),r&512&&n!==null&&si(n,n.return),e.flags&32){var s=e.stateNode;try{Vo(s,"")}catch(v){ke(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),Xd(a,o);var c=Xd(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"?Vo(s,d):zf(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?ui(s,!!i.multiple,f,!1):h!==!!i.multiple&&(i.defaultValue!=null?ui(s,!!i.multiple,i.defaultValue,!0):ui(s,!!i.multiple,i.multiple?[]:"",!1))}s[Qo]=i}catch(v){ke(e,e.return,v)}}break;case 6:if(Ft(t,e),an(e),r&4){if(e.stateNode===null)throw Error(O(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(v){ke(e,e.return,v)}}break;case 3:if(Ft(t,e),an(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ko(t.containerInfo)}catch(v){ke(e,e.return,v)}break;case 4:Ft(t,e),an(e);break;case 13:Ft(t,e),an(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Sp=Ee())),r&4&&Ug(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Ge=(c=Ge)||u,Ft(t,e),Ge=c):Ft(t,e),an(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for($=e,u=e.child;u!==null;){for(d=$=u;$!==null;){switch(h=$,f=h.child,h.tag){case 0:case 11:case 14:case 15:Ro(4,h,h.return);break;case 1:si(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){ke(r,n,v)}}break;case 5:si(h,h.return);break;case 22:if(h.memoizedState!==null){Bg(d);continue}}f!==null?(f.return=h,$=f):Bg(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){ke(e,e.return,v)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){ke(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:Ft(t,e),an(e),r&4&&Ug(e);break;case 21:break;default:Ft(t,e),an(e)}}function an(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(O(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Vo(s,""),r.flags&=-33);var i=$g(e);Ph(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=$g(e);_h(e,a,o);break;default:throw Error(O(161))}}catch(l){ke(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function TC(e,t,n){$=e,Ux(e)}function Ux(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var s=$,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||rl;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Ge;a=rl;var c=Ge;if(rl=o,(Ge=l)&&!c)for($=s;$!==null;)o=$,l=o.child,o.tag===22&&o.memoizedState!==null?Vg(s):l!==null?(l.return=o,$=l):Vg(s);for(;i!==null;)$=i,Ux(i),i=i.sibling;$=s,rl=a,Ge=c}Fg(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,$=i):Fg(e)}}function Fg(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ge||eu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ge)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Wt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Eg(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}Eg(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&&Ko(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Ge||t.flags&512&&Ch(t)}catch(h){ke(t,t.return,h)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Bg(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function Vg(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{eu(4,t)}catch(l){ke(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){ke(t,s,l)}}var i=t.return;try{Ch(t)}catch(l){ke(t,i,l)}break;case 5:var o=t.return;try{Ch(t)}catch(l){ke(t,o,l)}}}catch(l){ke(t,t.return,l)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var CC=Math.ceil,wc=Wn.ReactCurrentDispatcher,xp=Wn.ReactCurrentOwner,Nt=Wn.ReactCurrentBatchConfig,re=0,Le=null,Pe=null,Be=0,mt=0,ii=$r(0),Oe=0,ra=null,bs=0,tu=0,bp=0,jo=null,at=null,Sp=0,Li=1/0,jn=null,xc=!1,Ah=null,Tr=null,sl=!1,yr=null,bc=0,No=0,Rh=null,Ml=-1,Dl=0;function nt(){return re&6?Ee():Ml!==-1?Ml:Ml=Ee()}function Cr(e){return e.mode&1?re&2&&Be!==0?Be&-Be:cC.transition!==null?(Dl===0&&(Dl=kw()),Dl):(e=oe,e!==0||(e=window.event,e=e===void 0?16:Rw(e.type)),e):1}function en(e,t,n,r){if(50<No)throw No=0,Rh=null,Error(O(185));Ta(e,n,r),(!(re&2)||e!==Le)&&(e===Le&&(!(re&2)&&(tu|=n),Oe===4&&lr(e,Be)),dt(e,r),n===1&&re===0&&!(t.mode&1)&&(Li=Ee()+500,Qc&&Ur()))}function dt(e,t){var n=e.callbackNode;cT(e,t);var r=sc(e,e===Le?Be:0);if(r===0)n!==null&&Qm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Qm(n),t===1)e.tag===0?lC(zg.bind(null,e)):Jw(zg.bind(null,e)),sC(function(){!(re&6)&&Ur()}),n=null;else{switch(Ew(r)){case 1:n=Gf;break;case 4:n=bw;break;case 16:n=rc;break;case 536870912:n=Sw;break;default:n=rc}n=qx(n,Fx.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Fx(e,t){if(Ml=-1,Dl=0,re&6)throw Error(O(327));var n=e.callbackNode;if(mi()&&e.callbackNode!==n)return null;var r=sc(e,e===Le?Be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Sc(e,r);else{t=r;var s=re;re|=2;var i=Vx();(Le!==e||Be!==t)&&(jn=null,Li=Ee()+500,ps(e,t));do try{AC();break}catch(a){Bx(e,a)}while(!0);ap(),wc.current=i,re=s,Pe!==null?t=0:(Le=null,Be=0,t=Oe)}if(t!==0){if(t===2&&(s=rh(e),s!==0&&(r=s,t=jh(e,s))),t===1)throw n=ra,ps(e,0),lr(e,r),dt(e,Ee()),n;if(t===6)lr(e,r);else{if(s=e.current.alternate,!(r&30)&&!_C(s)&&(t=Sc(e,r),t===2&&(i=rh(e),i!==0&&(r=i,t=jh(e,i))),t===1))throw n=ra,ps(e,0),lr(e,r),dt(e,Ee()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:Qr(e,at,jn);break;case 3:if(lr(e,r),(r&130023424)===r&&(t=Sp+500-Ee(),10<t)){if(sc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){nt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=dh(Qr.bind(null,e,at,jn),t);break}Qr(e,at,jn);break;case 4:if(lr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Zt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*CC(r/1960))-r,10<r){e.timeoutHandle=dh(Qr.bind(null,e,at,jn),r);break}Qr(e,at,jn);break;case 5:Qr(e,at,jn);break;default:throw Error(O(329))}}}return dt(e,Ee()),e.callbackNode===n?Fx.bind(null,e):null}function jh(e,t){var n=jo;return e.current.memoizedState.isDehydrated&&(ps(e,t).flags|=256),e=Sc(e,t),e!==2&&(t=at,at=n,t!==null&&Nh(t)),e}function Nh(e){at===null?at=e:at.push.apply(at,e)}function _C(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(!nn(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 lr(e,t){for(t&=~bp,t&=~tu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Zt(t),r=1<<n;e[n]=-1,t&=~r}}function zg(e){if(re&6)throw Error(O(327));mi();var t=sc(e,0);if(!(t&1))return dt(e,Ee()),null;var n=Sc(e,t);if(e.tag!==0&&n===2){var r=rh(e);r!==0&&(t=r,n=jh(e,r))}if(n===1)throw n=ra,ps(e,0),lr(e,t),dt(e,Ee()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qr(e,at,jn),dt(e,Ee()),null}function kp(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(Li=Ee()+500,Qc&&Ur())}}function Ss(e){yr!==null&&yr.tag===0&&!(re&6)&&mi();var t=re;re|=1;var n=Nt.transition,r=oe;try{if(Nt.transition=null,oe=1,e)return e()}finally{oe=r,Nt.transition=n,re=t,!(re&6)&&Ur()}}function Ep(){mt=ii.current,pe(ii)}function ps(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,rC(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(sp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&cc();break;case 3:Oi(),pe(ct),pe(Je),fp();break;case 5:hp(r);break;case 4:Oi();break;case 13:pe(ve);break;case 19:pe(ve);break;case 10:lp(r.type._context);break;case 22:case 23:Ep()}n=n.return}if(Le=e,Pe=e=_r(e.current,null),Be=mt=t,Oe=0,ra=null,bp=tu=bs=0,at=jo=null,ns!==null){for(t=0;t<ns.length;t++)if(n=ns[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}ns=null}return e}function Bx(e,t){do{var n=Pe;try{if(ap(),Ol.current=vc,yc){for(var r=we.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}yc=!1}if(xs=0,Ie=je=we=null,Ao=!1,ea=0,xp.current=null,n===null||n.return===null){Oe=1,ra=t,Pe=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=Be,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var 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=Rg(o);if(f!==null){f.flags&=-257,jg(f,o,a,i,t),f.mode&1&&Ag(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)){Ag(i,c,t),Tp();break e}l=Error(O(426))}}else if(ge&&a.mode&1){var x=Rg(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),jg(x,o,a,i,t),ip(Ii(l,a));break e}}i=l=Ii(l,a),Oe!==4&&(Oe=2),jo===null?jo=[i]:jo.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Ex(i,l,t);kg(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"&&(Tr===null||!Tr.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=Tx(i,a,t);kg(i,S);break e}}i=i.return}while(i!==null)}Hx(n)}catch(k){t=k,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function Vx(){var e=wc.current;return wc.current=vc,e===null?vc:e}function Tp(){(Oe===0||Oe===3||Oe===2)&&(Oe=4),Le===null||!(bs&268435455)&&!(tu&268435455)||lr(Le,Be)}function Sc(e,t){var n=re;re|=2;var r=Vx();(Le!==e||Be!==t)&&(jn=null,ps(e,t));do try{PC();break}catch(s){Bx(e,s)}while(!0);if(ap(),re=n,wc.current=r,Pe!==null)throw Error(O(261));return Le=null,Be=0,Oe}function PC(){for(;Pe!==null;)zx(Pe)}function AC(){for(;Pe!==null&&!eT();)zx(Pe)}function zx(e){var t=Kx(e.alternate,e,mt);e.memoizedProps=e.pendingProps,t===null?Hx(e):Pe=t,xp.current=null}function Hx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=SC(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Oe=6,Pe=null;return}}else if(n=bC(n,t,mt),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Oe===0&&(Oe=5)}function Qr(e,t,n){var r=oe,s=Nt.transition;try{Nt.transition=null,oe=1,RC(e,t,n,r)}finally{Nt.transition=s,oe=r}return null}function RC(e,t,n,r){do mi();while(yr!==null);if(re&6)throw Error(O(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(uT(e,i),e===Le&&(Pe=Le=null,Be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||sl||(sl=!0,qx(rc,function(){return mi(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Nt.transition,Nt.transition=null;var o=oe;oe=1;var a=re;re|=4,xp.current=null,EC(e,n),$x(n,e),YT(ch),ic=!!lh,ch=lh=null,e.current=n,TC(n),tT(),re=a,oe=o,Nt.transition=i}else e.current=n;if(sl&&(sl=!1,yr=e,bc=s),i=e.pendingLanes,i===0&&(Tr=null),sT(n.stateNode),dt(e,Ee()),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(xc)throw xc=!1,e=Ah,Ah=null,e;return bc&1&&e.tag!==0&&mi(),i=e.pendingLanes,i&1?e===Rh?No++:(No=0,Rh=e):No=0,Ur(),null}function mi(){if(yr!==null){var e=Ew(bc),t=Nt.transition,n=oe;try{if(Nt.transition=null,oe=16>e?16:e,yr===null)var r=!1;else{if(e=yr,yr=null,bc=0,re&6)throw Error(O(331));var s=re;for(re|=4,$=e.current;$!==null;){var i=$,o=i.child;if($.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for($=c;$!==null;){var u=$;switch(u.tag){case 0:case 11:case 15:Ro(8,u,i)}var d=u.child;if(d!==null)d.return=u,$=d;else for(;$!==null;){u=$;var h=u.sibling,f=u.return;if(Lx(u),u===c){$=null;break}if(h!==null){h.return=f,$=h;break}$=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)}}$=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,$=o;else e:for(;$!==null;){if(i=$,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ro(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,$=m;break e}$=i.return}}var y=e.current;for($=y;$!==null;){o=$;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,$=w;else e:for(o=y;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:eu(9,a)}}catch(k){ke(a,a.return,k)}if(a===o){$=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,$=S;break e}$=a.return}}if(re=s,Ur(),xn&&typeof xn.onPostCommitFiberRoot=="function")try{xn.onPostCommitFiberRoot(Kc,e)}catch{}r=!0}return r}finally{oe=n,Nt.transition=t}}return!1}function Hg(e,t,n){t=Ii(n,t),t=Ex(e,t,1),e=Er(e,t,1),t=nt(),e!==null&&(Ta(e,1,t),dt(e,t))}function ke(e,t,n){if(e.tag===3)Hg(e,e,n);else for(;t!==null;){if(t.tag===3){Hg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Tr===null||!Tr.has(r))){e=Ii(n,e),e=Tx(t,e,1),t=Er(t,e,1),e=nt(),t!==null&&(Ta(t,1,e),dt(t,e));break}}t=t.return}}function jC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=nt(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Be&n)===n&&(Oe===4||Oe===3&&(Be&130023424)===Be&&500>Ee()-Sp?ps(e,0):bp|=n),dt(e,t)}function Wx(e,t){t===0&&(e.mode&1?(t=Ga,Ga<<=1,!(Ga&130023424)&&(Ga=4194304)):t=1);var n=nt();e=Bn(e,t),e!==null&&(Ta(e,t,n),dt(e,n))}function NC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wx(e,n)}function OC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),Wx(e,n)}var Kx;Kx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lt=!1,xC(e,t,n);lt=!!(e.flags&131072)}else lt=!1,ge&&t.flags&1048576&&Yw(t,hc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ll(e,t),e=t.pendingProps;var s=Ri(t,Je.current);pi(t,n),s=mp(null,t,r,e,s,n);var i=gp();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,ut(r)?(i=!0,uc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,up(t),s.updater=Zc,t.stateNode=s,s._reactInternals=t,vh(t,r,e,n),t=bh(null,t,r,!0,i,n)):(t.tag=0,ge&&i&&rp(t),Qe(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ll(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=LC(r),e=Wt(r,e),s){case 0:t=xh(null,t,r,e,n);break e;case 1:t=Ig(null,t,r,e,n);break e;case 11:t=Ng(null,t,r,e,n);break e;case 14:t=Og(null,t,r,Wt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Wt(r,s),xh(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Wt(r,s),Ig(e,t,r,s,n);case 3:e:{if(Ax(t),e===null)throw Error(O(387));r=t.pendingProps,i=t.memoizedState,s=i.element,nx(e,t),mc(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=Ii(Error(O(423)),t),t=Lg(e,t,r,n,s);break e}else if(r!==s){s=Ii(Error(O(424)),t),t=Lg(e,t,r,n,s);break e}else for(vt=kr(t.stateNode.containerInfo.firstChild),wt=t,ge=!0,Qt=null,n=ex(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ji(),r===s){t=Vn(e,t,n);break e}Qe(e,t,r,n)}t=t.child}return t;case 5:return rx(t),e===null&&mh(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,uh(r,s)?o=null:i!==null&&uh(r,i)&&(t.flags|=32),Px(e,t),Qe(e,t,o,n),t.child;case 6:return e===null&&mh(t),null;case 13:return Rx(e,t,n);case 4:return dp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ni(t,null,r,n):Qe(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Wt(r,s),Ng(e,t,r,s,n);case 7:return Qe(e,t,t.pendingProps,n),t.child;case 8:return Qe(e,t,t.pendingProps.children,n),t.child;case 12:return Qe(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,ue(fc,r._currentValue),r._currentValue=o,i!==null)if(nn(i.value,o)){if(i.children===s.children&&!ct.current){t=Vn(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=$n(-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),gh(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(O(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),gh(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}Qe(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,pi(t,n),s=It(s),r=r(s),t.flags|=1,Qe(e,t,r,n),t.child;case 14:return r=t.type,s=Wt(r,t.pendingProps),s=Wt(r.type,s),Og(e,t,r,s,n);case 15:return Cx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Wt(r,s),Ll(e,t),t.tag=1,ut(r)?(e=!0,uc(t)):e=!1,pi(t,n),kx(t,r,s),vh(t,r,s,n),bh(null,t,r,!0,e,n);case 19:return jx(e,t,n);case 22:return _x(e,t,n)}throw Error(O(156,t.tag))};function qx(e,t){return xw(e,t)}function IC(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 At(e,t,n,r){return new IC(e,t,n,r)}function Cp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function LC(e){if(typeof e=="function")return Cp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wf)return 11;if(e===Kf)return 14}return 2}function _r(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 4,322 bytes, line 40
40ons=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $l(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Cp(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Js:return ms(n.children,s,i,t);case Hf:o=8,s|=8;break;case Vd:return e=At(12,n,t,s|2),e.elementType=Vd,e.lanes=i,e;case zd:return e=At(13,n,t,s),e.elementType=zd,e.lanes=i,e;case Hd:return e=At(19,n,t,s),e.elementType=Hd,e.lanes=i,e;case rw:return nu(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 Wf:o=11;break e;case Kf:o=14;break e;case ir:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=At(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function ms(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function nu(e,t,n,r){return e=At(22,e,r,t),e.elementType=rw,e.lanes=n,e.stateNode={isHidden:!1},e}function id(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function od(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function MC(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=Fu(0),this.expirationTimes=Fu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fu(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function _p(e,t,n,r,s,i,o,a,l){return e=new MC(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=At(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},up(i),e}function DC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Gs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Gx(e){if(!e)return Rr;e=e._reactInternals;e:{if(Ts(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ut(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(ut(n))return Gw(e,n,t)}return t}function Jx(e,t,n,r,s,i,o,a,l){return e=_p(n,r,!0,e,s,i,o,a,l),e.context=Gx(null),n=e.current,r=nt(),s=Cr(n),i=$n(r,s),i.callback=t??null,Er(n,i,s),e.current.lanes=s,Ta(e,s,r),dt(e,r),e}function ru(e,t,n,r){var s=t.current,i=nt(),o=Cr(s);return n=Gx(n),t.context===null?t.context=n:t.pendingContext=n,t=$n(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Er(s,t,o),e!==null&&(en(e,s,o,i),Nl(e,s,o)),o}function kc(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 Wg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pp(e,t){Wg(e,t),(e=e.alternate)&&Wg(e,t)}function $C(){return null}var Yx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ap(e){this._internalRoot=e}su.prototype.render=Ap.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));ru(e,t,null,null)};su.prototype.unmount=Ap.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ss(function(){ru(null,e,null,null)}),t[Fn]=null}};function su(e){this._internalRoot=e}su.prototype.unstable_scheduleHydration=function(e){if(e){var t=_w();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ar.length&&t!==0&&t<ar[n].priority;n++);ar.splice(n,0,e),n===0&&Aw(e)}};function Rp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function iu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Kg(){}
vendor: 5,083 bytes, line 40
40function UC(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=kc(o);i.call(c)}}var o=Jx(t,r,e,0,null,!1,!1,"",Kg);return e._reactRootContainer=o,e[Fn]=o.current,Jo(e.nodeType===8?e.parentNode:e),Ss(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=kc(l);a.call(c)}}var l=_p(e,0,!1,null,null,!1,!1,"",Kg);return e._reactRootContainer=l,e[Fn]=l.current,Jo(e.nodeType===8?e.parentNode:e),Ss(function(){ru(t,l,n,r)}),l}function ou(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=kc(o);a.call(l)}}ru(t,o,e,s)}else o=UC(n,t,e,s,r);return kc(o)}Tw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vo(t.pendingLanes);n!==0&&(Jf(t,n|1),dt(t,Ee()),!(re&6)&&(Li=Ee()+500,Ur()))}break;case 13:Ss(function(){var r=Bn(e,1);if(r!==null){var s=nt();en(r,e,1,s)}}),Pp(e,1)}};Yf=function(e){if(e.tag===13){var t=Bn(e,134217728);if(t!==null){var n=nt();en(t,e,134217728,n)}Pp(e,134217728)}};Cw=function(e){if(e.tag===13){var t=Cr(e),n=Bn(e,t);if(n!==null){var r=nt();en(n,e,t,r)}Pp(e,t)}};_w=function(){return oe};Pw=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};eh=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=Yc(r);if(!s)throw Error(O(90));iw(r),qd(r,s)}}}break;case"textarea":aw(e,n);break;case"select":t=n.value,t!=null&&ui(e,!!n.multiple,t,!1)}};pw=kp;mw=Ss;var FC={usingClientEntryPoint:!1,Events:[_a,Zs,Yc,hw,fw,kp]},lo={findFiberByHostInstance:ts,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},BC={bundleType:lo.bundleType,version:lo.version,rendererPackageName:lo.rendererPackageName,rendererConfig:lo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vw(e),e===null?null:e.stateNode},findFiberByHostInstance:lo.findFiberByHostInstance||$C,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 il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!il.isDisabled&&il.supportsFiber)try{Kc=il.inject(BC),xn=il}catch{}}St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=FC;St.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rp(t))throw Error(O(200));return DC(e,t,null,n)};St.createRoot=function(e,t){if(!Rp(e))throw Error(O(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=_p(e,1,!1,null,null,n,!1,r,s),e[Fn]=t.current,Jo(e.nodeType===8?e.parentNode:e),new Ap(t)};St.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=vw(t),e=e===null?null:e.stateNode,e};St.flushSync=function(e){return Ss(e)};St.hydrate=function(e,t,n){if(!iu(t))throw Error(O(200));return ou(null,e,t,!0,n)};St.hydrateRoot=function(e,t,n){if(!Rp(e))throw Error(O(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[Fn]=t.current,Jo(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 su(t)};St.render=function(e,t,n){if(!iu(t))throw Error(O(200));return ou(null,e,t,!1,n)};St.unmountComponentAtNode=function(e){if(!iu(e))throw Error(O(40));return e._reactRootContainer?(Ss(function(){ou(null,null,e,!1,function(){e._reactRootContainer=null,e[Fn]=null})}),!0):!1};St.unstable_batchedUpdates=kp;St.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!iu(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return ou(e,t,n,!1,r)};St.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=St;var Aa=Q0.exports;const Xx=ka(Aa);var Zx,qg=Aa;Zx=qg.createRoot,qg.hydrateRoot;var VC=typeof Element<"u",zC=typeof Map=="function",HC=typeof Set=="function",WC=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ul(e,t){if(e===t)return!0;
40if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ul(e[r],t[r]))return!1;return!0}var i;if(zC&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Ul(r.value[1],t.get(r.value[0])))return!1;return!0}if(HC&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(WC&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(VC&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!Ul(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var KC=function(t,n){try{return Ul(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const qC=ka(KC);var GC=function(e,t,n,r,s,i,o,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,s,i,o,a],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},JC=GC;const Gg=ka(JC);var YC=function(t,n,r,s){var i=r?r.call(s,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),a=Object.keys(n);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<o.length;c++){var u=o[c];if(!l(u))return!1;var d=t[u],h=n[u];if(i=r?r.call(s,d,h,u):void 0,i===!1||i===void 0&&d!==h)return!1}return!0};const QC=ka(YC);var eb=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(eb||{}),ad={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Jg=Object.values(eb),au={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},tb=Object.entries(au).reduce((e,[t,n])=>(e[n]=t,e),{}),Xt="data-rh",gi={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},yi=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},XC=e=>{let t=yi(e,"title");const n=yi(e,gi.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=yi(e,gi.DEFAULT_TITLE);return t||r||void 0},ZC=e=>yi(e,gi.ON_CHANGE_CLIENT_STATE)||(()=>{}),ld=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),e_=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let i=0;i<s.length;i+=1){const a=s[i].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),t_=e=>console&&typeof console.warn=="function"&&console.warn(e),co=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&t_(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const o={};i.filter(l=>{let c;const u=Object.keys(l);for(let h=0;h<u.length;h+=1){const f=u[h],g=f.toLowerCase();t.indexOf(g)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(g==="rel"&&l[g].toLowerCase()==="stylesheet")&&(c=g),t.indexOf(f)!==-1&&(f==="innerHTML"||f==="cssText"||f==="itemprop")&&(c=f)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return r[c]||(r[c]={}),o[c]||(o[c]={}),r[c][d]?!1:(o[c][d]=!0,!0)}
40).reverse().forEach(l=>s.push(l));const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const c=a[l],u={...r[c],...o[c]};r[c]=u}return s},[]).reverse()},n_=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},r_=e=>({baseTag:e_(["href"],e),bodyAttributes:ld("bodyAttributes",e),defer:yi(e,gi.DEFER),encode:yi(e,gi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ld("htmlAttributes",e),linkTags:co("link",["rel","href"],e),metaTags:co("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:co("noscript",["innerHTML"],e),onChangeClientState:ZC(e),scriptTags:co("script",["src","innerHTML"],e),styleTags:co("style",["cssText"],e),title:XC(e),titleAttributes:ld("titleAttributes",e),prioritizeSeoTags:n_(e,gi.PRIORITIZE_SEO_TAGS)}),nb=e=>Array.isArray(e)?e.join(""):e,s_=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},cd=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(s_(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Yg=(e,t)=>({...e,[t]:void 0}),i_=["noscript","script","style"],Oh=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),rb=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),o_=(e,t,n,r)=>{const s=rb(n),i=nb(t);return s?`<${e} ${Xt}="true" ${s}>${Oh(i,r)}</${e}>`:`<${e} ${Xt}="true">${Oh(i,r)}</${e}>`},a_=(e,t,n=!0)=>t.reduce((r,s)=>{const i=s,o=Object.keys(i).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof i[u]>"u"?u:`${u}="${Oh(i[u],n)}"`;return c?`${c} ${d}`:d},""),a=i.innerHTML||i.cssText||"",l=i_.indexOf(e)===-1;return`${r}<${e} ${Xt}="true" ${o}${l?"/>":`>${a}</${e}>`}`},""),sb=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=au[r];return n[s||r]=e[r],n},t),l_=(e,t,n)=>{const r={key:t,[Xt]:!0},s=sb(n,r);return[N.createElement("title",s,t)]},Fl=(e,t)=>t.map((n,r)=>{const s={key:r,[Xt]:!0};return Object.keys(n).forEach(i=>{const a=au[i]||i;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=n[i]}),N.createElement(e,s)}),Tt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>l_(e,t.title,t.titleAttributes),toString:()=>o_(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>sb(t),toString:()=>rb(t)};default:return{toComponent:()=>Fl(e,t),toString:()=>a_(e,t,n)}}},c_=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=cd(e,ad.meta),i=cd(t,ad.link),o=cd(n,ad.script);return{priorityMethods:{toComponent:()=>[...Fl("meta",s.priority),...Fl("link",i.priority),...Fl("script",o.priority)],toString:()=>`${Tt("meta",s.priority,r)} ${Tt("link",i.priority,r)} ${Tt("script",o.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},u_=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:h}=e,f={toComponent:()=>[],toString:()=>""};return c&&({priorityMethods:f,linkTags:u,metaTags:d,scriptTags:h}=c_(e)),{priority:f,base:Tt("base",t,r),bodyAttributes:Tt("bodyAttributes",n,r),htmlAttributes:Tt("htmlAttributes",s,r),link:Tt("link",u,r),meta:Tt("meta",d,r),noscript:Tt("noscript",i,r),script:Tt("script",h,r),style:Tt("style",o,r),title:Tt("title",{title:a,titleAttributes:l},r)}},Ih=u_,ol=[],jp=!!(typeof window<"u"&&window.document&&window.document.createElement),Lh=class{constructor(e,t){Pn(this,"instances",[]);Pn(this,"canUseDOM",jp);Pn(this,"context");Pn(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ol:this.instances,add:e=>{(this.canUseDOM?ol:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ol:this.instances).indexOf(e);(this.canUseDOM?ol:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Ih({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},d_=parseInt(N.version.split(".")[0],10),Mh=d_>=19,h_={},ib=N.createContext(h_),as,ob=(as=class extends b.Component{constructor(n){super(n);Pn(this,"helmetData");Mh?this.helmetData=null:this.helmetData=new Lh(this.props.context||{},as.canUseDOM)}render(){return Mh?N.createElement(N.Fragment,null,this.props.children):N.createElement(ib.Provider,{value:this.helmetData.value},this.props.children)}},Pn(as,"canUseDOM",jp),as),Ms=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Xt}]`),s=[].slice.call(r),i=[];let o;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c))if(c==="innerHTML")l.innerHTML=a.innerHTML;else if(c==="cssText"){const u=a.cssText;l.appendChild(document.createTextNode(u))}else{const u=c,d=typeof a[u]>
40"u"?"":a[u];l.setAttribute(c,d)}l.setAttribute(Xt,"true"),s.some((c,u)=>(o=u,l.isEqualNode(c)))?s.splice(o,1):i.push(l)}),s.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),i.forEach(a=>n.appendChild(a)),{oldTags:s,newTags:i}},Dh=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Xt),s=r?r.split(","):[],i=[...s],o=Object.keys(t);for(const a of o){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const c=i.indexOf(a);c!==-1&&i.splice(c,1)}for(let a=i.length-1;a>=0;a-=1)n.removeAttribute(i[a]);s.length===i.length?n.removeAttribute(Xt):n.getAttribute(Xt)!==o.join(",")&&n.setAttribute(Xt,o.join(","))},f_=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=nb(e)),Dh("title",t)},Qg=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:h}=e;Dh("body",r),Dh("html",s),f_(d,h);const f={baseTag:Ms("base",n),linkTags:Ms("link",i),metaTags:Ms("meta",o),noscriptTags:Ms("noscript",a),scriptTags:Ms("script",c),styleTags:Ms("style",u)},g={},v={};Object.keys(f).forEach(x=>{const{newTags:m,oldTags:y}=f[x];m.length&&(g[x]=m),y.length&&(v[x]=f[x].oldTags)}),t&&t(),l(e,g,v)},uo=null,p_=e=>{uo&&cancelAnimationFrame(uo),e.defer?uo=requestAnimationFrame(()=>{Qg(e,()=>{uo=null})}):(Qg(e),uo=null)},m_=p_,Xg=class extends b.Component{constructor(){super(...arguments);Pn(this,"rendered",!1)}shouldComponentUpdate(t){return!QC(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=r_(t.get().map(i=>{const{context:o,...a}=i.props;return a}));
40ob.canUseDOM?m_(s):Ih&&(r=Ih(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Bl=[],Zg=e=>{const t={};for(const n of Object.keys(e))t[tb[n]||n]=e[n];return t},Kr=e=>{const t={};for(const n of Object.keys(e)){const r=au[n];t[r||n]=e[n]}return t},ey=(e,t)=>{if(!jp)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",s=n.getAttribute(r),i=s?s.split(","):[],o=Object.keys(t);for(const a of i)o.includes(a)||n.removeAttribute(a);for(const a of o){const l=t[a];l==null||l===!1?n.removeAttribute(a):l===!0?n.setAttribute(a,""):n.setAttribute(a,String(l))}o.length>0?n.setAttribute(r,o.join(",")):n.removeAttribute(r)},ud=()=>{const e={},t={};for(const n of Bl){const{htmlAttributes:r,bodyAttributes:s}=n.props;r&&Object.assign(e,Zg(r)),s&&Object.assign(t,Zg(s))}ey("html",e),ey("body",t)},g_=class extends b.Component{componentDidMount(){Bl.push(this),ud()}componentDidUpdate(){ud()}componentWillUnmount(){const e=Bl.indexOf(this);e!==-1&&Bl.splice(e,1),ud()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return N.createElement("title",Kr(t),e)}renderBase(){const{base:e}=this.props;return e?N.createElement("base",Kr(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>N.createElement("meta",{key:n,...Kr(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>N.createElement("link",{key:n,...Kr(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=Kr(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),N.createElement("script",{key:n,...i})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...s}=t,i=Kr(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),N.createElement("style",{key:n,...i})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=Kr(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),N.createElement("noscript",{key:n,...i})})}render(){return N.createElement(N.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Fd,y_=(Fd=class extends b.Component{shouldComponentUpdate(e){return!qC(Yg(this.props,"helmetData"),Yg(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Gg(Jg.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Jg.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Gg(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return N.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,o=Object.keys(i).reduce((l,c)=>(l[tb[c]||c]=i[c],l),{});let{type:a}=r;
40switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,s),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,s);break;default:t=this.mapObjectTypeChildren(r,t,o,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Lh)){const s=r;r=new Lh(s.context,!0),delete n.helmetData}return Mh?N.createElement(g_,{...n}):r?N.createElement(Xg,{...n,context:r.value}):N.createElement(ib.Consumer,null,s=>N.createElement(Xg,{...n,context:s}))}},Pn(Fd,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Fd);const v_=1,w_=1e6;let dd=0;function x_(){return dd=(dd+1)%Number.MAX_SAFE_INTEGER,dd.toString()}const hd=new Map,ty=e=>{if(hd.has(e))return;const t=setTimeout(()=>{hd.delete(e),Oo({type:"REMOVE_TOAST",toastId:e})},w_);hd.set(e,t)},b_=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,v_)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?ty(n):e.toasts.forEach(r=>{ty(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Vl=[];let zl={toasts:[]};function Oo(e){zl=b_(zl,e),Vl.forEach(t=>{t(zl)})}function S_({...e}){const t=x_(),n=s=>Oo({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Oo({type:"DISMISS_TOAST",toastId:t});return Oo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function ab(){const[e,t]=b.useState(zl);return b.useEffect(()=>(Vl.push(t),()=>{const n=Vl.indexOf(t);n>-1&&Vl.splice(n,1)}),[e]),{...e,toast:S_,dismiss:n=>Oo({type:"DISMISS_TOAST",toastId:n})}}function Ne(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 ny(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lb(...e){return t=>{let n=!1;const r=e.map(s=>{const i=ny(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():ny(e[s],null)}}}}function rn(...e){return b.useCallback(lb(...e),e)}function lu(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,k_(s,...t)]}function k_(...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 Ec(e){const t=T_(e),n=b.forwardRef((r,s)=>{const{children:i,...o}=r,a=b.Children.toArray(i),l=a.find(__);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 E_=Ec("Slot");function T_(e){const t=b.forwardRef((n,r)=>{const{children:s,...i}=n;if(b.isValidElement(s)){const o=A_(s),a=P_(i,s.props);return s.type!==b.Fragment&&(a.ref=r?lb(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 cb=Symbol("radix.slottable");function C_(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=cb,t}function __(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cb}function P_(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}
vendor: 9,308 bytes, line 40
40:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function A_(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 R_(e){const t=e+"CollectionProvider",[n,r]=lu(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:x,children:m}=v,y=N.useRef(null),w=N.useRef(new Map).current;return p.jsx(s,{scope:x,itemMap:w,collectionRef:y,children:m})};o.displayName=t;const a=e+"CollectionSlot",l=Ec(a),c=N.forwardRef((v,x)=>{const{scope:m,children:y}=v,w=i(a,m),S=rn(x,w.collectionRef);return p.jsx(l,{ref:S,children:y})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=Ec(u),f=N.forwardRef((v,x)=>{const{scope:m,children:y,...w}=v,S=N.useRef(null),k=rn(x,S),E=i(u,m);return N.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 N.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((E,T)=>w.indexOf(E.ref.current)-w.indexOf(T.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},g,r]}var j_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ft=j_.reduce((e,t)=>{const n=Ec(`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 ub(e,t){e&&Aa.flushSync(()=>e.dispatchEvent(t))}function jr(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 N_(e,t=globalThis==null?void 0:globalThis.document){const n=jr(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 O_="DismissableLayer",$h="dismissableLayer.update",I_="dismissableLayer.pointerDownOutside",L_="dismissableLayer.focusOutside",ry,db=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Np=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=b.useContext(db),[u,d]=b.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=b.useState({}),g=rn(t,T=>d(T)),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=D_(T=>{const C=T.target,A=[...c.branches].some(P=>P.contains(C));!S||A||(s==null||s(T),o==null||o(T),T.defaultPrevented||a==null||a())},h),E=$_(T=>{const C=T.target;[...c.branches].some(P=>P.contains(C))||(i==null||i(T),o==null||o(T),T.defaultPrevented||a==null||a())},h);return N_(T=>{y===c.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},h),b.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ry=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),sy(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ry)}},[u,h,n,c]),b.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),sy())},[u,c]),b.useEffect(()=>{const T=()=>f({});return document.addEventListener($h,T),()=>document.removeEventListener($h,T)},[]),p.jsx(ft.div,{...l,ref:g,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,k.onPointerDownCapture)})});Np.displayName=O_;var M_="DismissableLayerBranch",hb=b.forwardRef((e,t)=>{const n=b.useContext(db),r=b.useRef(null),s=rn(t,r);return b.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(ft.div,{...e,ref:s})});hb.displayName=M_;function D_(e,t=globalThis==null?void 0:globalThis.document){const n=jr(e),r=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){fb(I_,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 $_(e,t=globalThis==null?void 0:globalThis.document){const n=jr(e),r=b.useRef(!1);return b.useEffect(()=>{const s=i=>{i.target&&!r.current&&fb(L_,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 sy(){const e=new CustomEvent($h);document.dispatchEvent(e)}function fb(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?ub(s,i):s.dispatchEvent(i)}var U_=Np,F_=hb,Nr=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},B_="Portal",pb=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=b.useState(!1);Nr(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Xx.createPortal(p.jsx(ft.div,{...r,ref:t}),o):null});pb.displayName=B_;function V_(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var Op=e=>{const{present:t,children:n}=e,r=z_(t),s=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),i=rn(r.ref,H_(s));return typeof n=="function"||r.isPresent?b.cloneElement(s,{ref:i}):null};Op.displayName="Presence";function z_(e){const[t,n]=b.useState(),r=b.useRef(null),s=b.useRef(e),i=b.useRef("none"),o=e?"mounted":"unmounted",[a,l]=V_(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const c=al(r.current);i.current=a==="mounted"?c:"none"},[a]),Nr(()=>{const c=r.current,u=s.current;if(u!==e){const h=i.current,f=al(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]),Nr(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=f=>{const v=al(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=al(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 al(e){return(e==null?void 0:e.animationName)||"none"}function H_(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 W_=J0[" useInsertionEffect ".trim().toString()]||Nr;function K_({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=q_({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=G_(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 q_({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),s=b.useRef(n),i=b.useRef(t);return W_(()=>{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 G_(e){return typeof e=="function"}var J_=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"}),Y_="VisuallyHidden",cu=b.forwardRef((e,t)=>
40p.jsx(ft.span,{...e,ref:t,style:{...J_,...e.style}}));cu.displayName=Y_;var Q_=cu,Ip="ToastProvider",[Lp,X_,Z_]=R_("Toast"),[mb,F4]=lu("Toast",[Z_]),[eP,uu]=mb(Ip),gb=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 \`${Ip}\`. Expected non-empty \`string\`.`),p.jsx(Lp.Provider,{scope:t,children:p.jsx(eP,{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})})};gb.displayName=Ip;var yb="ToastViewport",tP=["F8"],Uh="toast.viewportPause",Fh="toast.viewportResume",vb=b.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=tP,label:s="Notifications ({hotkey})",...i}=e,o=uu(yb,n),a=X_(n),l=b.useRef(null),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),h=rn(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(Uh);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,...pP(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,T;const w=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!w){const C=document.activeElement,A=y.shiftKey;if(y.target===x&&A){(k=c.current)==null||k.focus();return}const L=v({tabbingDirection:A?"backwards":"forwards"}),q=L.findIndex(I=>I===C);fd(L.slice(q+1))?y.preventDefault():A?(E=c.current)==null||E.focus():(T=u.current)==null||T.focus()}};return x.addEventListener("keydown",m),()=>x.removeEventListener("keydown",m)}},[a,v]),p.jsxs(F_,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&p.jsx(Bh,{ref:c,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"forwards"});fd(x)}}),p.jsx(Lp.Slot,{scope:n,children:p.jsx(ft.ol,{tabIndex:-1,...i,ref:h})}),g&&p.jsx(Bh,{ref:u,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"backwards"});fd(x)}})]})});vb.displayName=yb;var wb="ToastFocusProxy",Bh=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=uu(wb,n);return p.jsx(cu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&r()}})});Bh.displayName=wb;var Ra="Toast",nP="toast.swipeStart",rP="toast.swipeMove",sP="toast.swipeCancel",iP="toast.swipeEnd",xb=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=K_({prop:r,defaultProp:s??!0,onChange:i,caller:Ra});return p.jsx(Op,{present:n||a,children:p.jsx(lP,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:jr(e.onPause),onResume:jr(e.onResume),onSwipeStart:Ne(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ne(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:Ne(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:Ne(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});xb.displayName=Ra;var[oP,aP]=mb(Ra,{onClose(){}}),lP=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=uu(Ra,n),[x,m]=b.useState(null),y=rn(t,I=>m(I)),w=b.useRef(null),S=b.useRef(null),k=s||v.duration,E=b.useRef(0),T=b.useRef(k),C=b.useRef(0),{onToastAdd:A,onToastRemove:P}=v,D=jr(()=>{var G;(x==null?void 0:x.contains(document.activeElement))&&((G=v.viewport)==null||G.focus()),o()}),L=b.useCallback(I=>{!I||I===1/0||(window.clearTimeout(C.current),E.current=new Date().getTime(),C.current=window.setTimeout(D,I))},[D]);b.useEffect(()=>{const I=v.viewport;if(I){const G=()=>{L(T.current),c==null||c()},V=()=>{const J=new Date().getTime()-E.current;T.current=T.current-J,window.clearTimeout(C.current),l==null||l()};return I.addEventListener(Uh,V),I.addEventListener(Fh,G),()=>{I.removeEventListener(Uh,V),I.removeEventListener(Fh,G)}}},[v.viewport,k,l,c,L]),b.useEffect(()=>{i&&!v.isClosePausedRef.current&&L(k)},[i,k,v.isClosePausedRef,L]),b.useEffect(()=>(A(),()=>P()),[A,P]);const q=b.useMemo(()=>x?_b(x):null,[x]);return v.viewport?p.jsxs(p.Fragment,{children:[q&&p.jsx(cP,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:q}),p.jsx(oP,{scope:n,onClose:D,children:Aa.createPortal(p.jsx(Lp.ItemSlot,{scope:n,children:p.jsx(U_,{asChild:!0,onEscapeKeyDown:Ne(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||D(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:p.jsx(ft.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:Ne(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:Ne(e.onPointerDown,I=>{I.button===0&&(w.current={x:I.clientX,y:I.clientY})}),onPointerMove:Ne(e.onPointerMove,I=>{if(!w.current)return;const G=I.clientX-w.current.x,V=I.clientY-w.current.y,J=!!S.current,_=["left","right"].includes(v.swipeDirection),R=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,M=_?R(0,G):0,K=_?0:R(0,V),H=I.pointerType==="touch"?10:2,Z={x:M,y:K},te={originalEvent:I,delta:Z};J?(S.current=Z,ll(rP,d,te,{discrete:!1})):iy(Z,v.swipeDirection,H)?(S.current=Z,ll(nP,u,te,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(G)>H||Math.abs(V)>H)&&(w.current=null)}),onPointerUp:Ne(e.onPointerUp,I=>{const G=S.current,V=I.target;if(V.hasPointerCapture(I.pointerId)&&V.releasePointerCapture(I.pointerId),S.current=null,w.current=null,G){const J=I.currentTarget,_={originalEvent:I,delta:G};iy(G,v.swipeDirection,v.swipeThreshold)?ll(iP,f,_,{discrete:!0}):ll(sP,h,_,{discrete:!0}),J.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),cP=e=>{const{__scopeToast:t,children:n,...r}=e,s=uu(Ra,t),[i,o]=b.useState(!1),[a,l]=b.useState(!1);return hP(()=>o(!0)),b.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:p.jsx(pb,{asChild:!0,children:p.jsx(cu,{...r,children:i&&p.jsxs(p.Fragment,{children:[s.label," ",n]})})})},uP="ToastTitle",bb=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(ft.div,{...r,ref:t})});bb.displayName=uP;var dP="ToastDescription",Sb=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(ft.div,{...r,ref:t})});Sb.displayName=dP;var kb="ToastAction",Eb=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?p.jsx(Cb,{altText:n,asChild:!0,children:p.jsx(Mp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${kb}\`. Expected non-empty \`string\`.`),null)});Eb.displayName=kb;var Tb="ToastClose",Mp=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=aP(Tb,n);return p.jsx(Cb,{asChild:!0,children:p.jsx(ft.button,{type:"button",...r,ref:t,onClick:Ne(e.onClick,s.onClose)})})});Mp.displayName=Tb;var Cb=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return p.jsx(ft.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function _b(e){const t=[];
vendor: 6,844 bytes, lines 40-99
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),fP(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(..._b(r))}}),t}function ll(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?ub(s,i):s.dispatchEvent(i)}var iy=(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 hP(e=()=>{}){const t=jr(e);Nr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function fP(e){return e.nodeType===e.ELEMENT_NODE}function pP(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 fd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var mP=gb,Pb=vb,Ab=xb,Rb=bb,jb=Sb,Nb=Eb,Ob=Mp;function Ib(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=Ib(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Lb(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Ib(e))&&(r&&(r+=" "),r+=t);return r}const oy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ay=Lb,Mb=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ay(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=oy(u)||oy(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 ay(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 gP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Db=(...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 yP={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 vP=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,...yP,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Db("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 ne=(e,t)=>{const n=b.forwardRef(({className:r,...s},i)=>b.createElement(vP,{ref:i,iconNode:t,className:Db(`lucide-${gP(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 Sn=ne("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const Dp=ne("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
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 wP=ne("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
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 xP=ne("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/**
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 bP=ne("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"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const SP=ne("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
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 $p=ne("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
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 kP=ne("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
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 EP=ne("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
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 TP=ne("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
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 $b=ne("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const CP=ne("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"}]]);/**
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 Hi=ne("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
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 du=ne("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"}]]);/**
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 Up=ne("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const _P=ne("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
141 * @license lucide-react v0.462.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const Ub=ne("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
146 * @license lucide-react v0.462.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const PP=ne("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/**
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 Fb=ne("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"}]]);/**
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 Bb=ne("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"}]]);/**
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 AP=ne("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"}]]);/**
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 RP=ne("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"}]]);/**
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 jP=ne("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
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 Vb=ne("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
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 NP=ne("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
186 * @license lucide-react v0.462.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const Fp=ne("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
190kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
191 * @license lucide-react v0.462.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const OP=ne("School",[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.382a1 1 0 0 1 .553-.894L6 10",key:"1xqip1"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 7.106-3.553a2 2 0 0 1 1.788 0L20 6",key:"9d2mlk"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]]);/**
196 * @license lucide-react v0.462.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const IP=ne("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
201 * @license lucide-react v0.462.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const ja=ne("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
206 * @license lucide-react v0.462.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const zb=ne("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
211 * @license lucide-react v0.462.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const LP=ne("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"}]]);/**
216 * @license lucide-react v0.462.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const Hb=ne("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"}]]);/**
221 * @license lucide-react v0.462.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const Bp=ne("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
226 * @license lucide-react v0.462.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const MP=ne("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/**
231 * @license lucide-react v0.462.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
vendor: 5,418 bytes, line 235
235 */const Wb=ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vp="-",DP=e=>{const t=UP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Vp);return a[0]===""&&a.length!==1&&a.shift(),Kb(a,t)||$P(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Kb=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Kb(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Vp);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},ly=/^\[(.+)\]$/,$P=e=>{if(ly.test(e)){const t=ly.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},UP=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return BP(Object.entries(e.classGroups),n).forEach(([i,o])=>{Vh(o,r,i,t)}),r},Vh=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:cy(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(FP(s)){Vh(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Vh(o,cy(t,i),n,r)})})},cy=(e,t)=>{let n=e;return t.split(Vp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},FP=e=>e.isThemeGetter,BP=(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,VP=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)}}},qb="!",zP=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(qb),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},HP=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},WP=e=>({cache:VP(e.cacheSize),parseClassName:zP(e),...DP(e)}),KP=/\s+/,qP=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(KP);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=HP(u).join(":"),m=d?x+qb: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 GP(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Gb(t))&&(r&&(r+=" "),r+=n);return r}const Gb=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Gb(e[r]))&&(n&&(n+=" "),n+=t);return n};function JP(e,...t){let n,r,s,i=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=WP(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=qP(l,n);return s(l,u),u}return function(){return i(GP.apply(null,arguments))}}const de=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Jb=/^\[(?:([a-z-]+):)?(.+)\]$/i,YP=/^\d+\/\d+$/,QP=new Set(["px","full","screen"]),XP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZP=/\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$/,eA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,An=e=>vi(e)||QP.has(e)||YP.test(e),er=e=>Wi(e,"length",uA),vi=e=>!!e&&!Number.isNaN(Number(e)),pd=e=>Wi(e,"number",vi),ho=e=>!!e&&Number.isInteger(Number(e)),rA=e=>e.endsWith("%")&&vi(e.slice(0,-1)),X=e=>Jb.test(e),tr=e=>XP.test(e),sA=new Set(["length","size","percentage"]),iA=e=>Wi(e,sA,Yb),oA=e=>Wi(e,"position",Yb),aA=new Set(["image","url"]),lA=e=>Wi(e,aA,hA),cA=e=>Wi(e,"",dA),fo=()=>!0,Wi=(e,t,n)=>{const r=Jb.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},uA=e=>ZP.test(e)&&!eA.test(e),Yb=()=>!1,dA=e=>tA.test(e),hA=e=>nA.test(e),fA=()=>{const e=de("colors"),t=de("spacing"),n=de("blur"),r=de("brightness"),s=de("borderColor"),i=de("borderRadius"),o=de("borderSpacing"),a=de("borderWidth"),l=de("contrast"),c=de("grayscale"),u=de("hueRotate"),d=de("invert"),h=de("gap"),f=de("gradientColorStops"),g=de("gradientColorStopPositions"),v=de("inset"),x=de("margin"),m=de("opacity"),y=de("padding"),w=de("saturate"),S=de("scale"),k=de("sepia"),E=de("skew"),T=de("space"),C=de("translate"),A=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",X,t],L=()=>[X,t],q=()=>["",An,er],I=()=>["auto",vi,X],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],
vendor: 12,034 bytes, line 235
235V=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",X],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[vi,X];return{cacheSize:500,separator:":",theme:{colors:[fo],spacing:[An,er],blur:["none","",tr,X],brightness:K(),borderColor:[e],borderRadius:["none","","full",tr,X],borderSpacing:L(),borderWidth:q(),contrast:K(),grayscale:R(),hueRotate:K(),invert:R(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[rA,er],inset:D(),margin:D(),opacity:K(),padding:L(),saturate:K(),scale:K(),sepia:R(),skew:K(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[tr]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:[...G(),X]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[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",ho,X]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",ho,X]}],"grid-cols":[{"grid-cols":[fo]}],"col-start-end":[{col:["auto",{span:["full",ho,X]},X]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[fo]}],"row-start-end":[{row:["auto",{span:[ho,X]},X]}],"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",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[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":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[tr]},tr]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",tr,er]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pd]}],"font-family":[{font:[fo]}],"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",X]}],"line-clamp":[{"line-clamp":["none",vi,pd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",An,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"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:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",An,er]}],"underline-offset":[{"underline-offset":["auto",An,X]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],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",X]}],"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:[...G(),oA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",iA]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lA]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"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:[...V(),"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:V()}],"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:["",...V()]}],"outline-offset":[{"outline-offset":[An,X]}],"outline-w":[{outline:[An,er]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[An,er]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",tr,cA]}],"shadow-color":[{shadow:[fo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",tr,X]}],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",X]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ho,X]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"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",X]}],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",X]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,646 bytes, line 235
235],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",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[An,er,pd]}],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"]}}},pA=JP(fA);function Mt(...e){return pA(Lb(e))}const mA=mP,Qb=b.forwardRef(({className:e,...t},n)=>p.jsx(Pb,{ref:n,className:Mt("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}));Qb.displayName=Pb.displayName;const gA=Mb("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"}}),Xb=b.forwardRef(({className:e,variant:t,...n},r)=>p.jsx(Ab,{ref:r,className:Mt(gA({variant:t}),e),...n}));Xb.displayName=Ab.displayName;const yA=b.forwardRef(({className:e,...t},n)=>p.jsx(Nb,{ref:n,className:Mt("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}));yA.displayName=Nb.displayName;const Zb=b.forwardRef(({className:e,...t},n)=>p.jsx(Ob,{ref:n,className:Mt("absolute right-2 top-2 rounded-md p-1 text-foreground
235/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:p.jsx(Wb,{className:"h-4 w-4"})}));Zb.displayName=Ob.displayName;const e1=b.forwardRef(({className:e,...t},n)=>p.jsx(Rb,{ref:n,className:Mt("text-sm font-semibold",e),...t}));e1.displayName=Rb.displayName;const t1=b.forwardRef(({className:e,...t},n)=>p.jsx(jb,{ref:n,className:Mt("text-sm opacity-90",e),...t}));t1.displayName=jb.displayName;function vA(){const{toasts:e}=ab();return p.jsxs(mA,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return p.jsxs(Xb,{...i,children:[p.jsxs("div",{className:"grid gap-1",children:[n&&p.jsx(e1,{children:n}),r&&p.jsx(t1,{children:r})]}),s,p.jsx(Zb,{})]},t)}),p.jsx(Qb,{})]})}var uy=["light","dark"],wA="(prefers-color-scheme: dark)",xA=b.createContext(void 0),bA={setTheme:e=>{},themes:[]},SA=()=>{var e;return(e=b.useContext(xA))!=null?e:bA};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?uy.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&&uy.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='${wA}',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 kA=e=>{switch(e){case"success":return CA;case"info":return PA;case"warning":return _A;case"error":return AA;default:return null}},EA=Array(12).fill(0),TA=({visible:e,className:t})=>N.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},N.createElement("div",{className:"sonner-spinner"},EA.map((n,r)=>N.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),CA=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),_A=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},N.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"})),PA=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),AA=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),RA=N.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"},N.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),N.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),jA=()=>{let[e,t]=N.useState(document.hidden);return N.useEffect(()=>{let n=()=>{t(document.hidden)};
235return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},zh=1,NA=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:zh++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
235this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],N.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(IA(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)||zh++;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}},ot=new NA,OA=(e,t)=>{let n=(t==null?void 0:t.id)||zh++;return ot.addToast({title:e,...t,id:n}),n},IA=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",LA=OA,MA=()=>ot.toasts,DA=()=>ot.getActiveToasts();Object.assign(LA,{success:ot.success,info:ot.info,warning:ot.warning,error:ot.error,custom:ot.custom,message:ot.message,promise:ot.promise,dismiss:ot.dismiss,loading:ot.loading},{getHistory:MA,getToasts:DA});function $A(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))}$A(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
235left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
235:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
235--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
236`);function cl(e){return e.label!==void 0}var UA=3,FA="32px",BA="16px",dy=4e3,VA=356,zA=14,HA=20,WA=200;function Bt(...e){return e.filter(Boolean).join(" ")}function KA(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var qA=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:T,closeButton:C,style:A,cancelButtonStyle:P,actionButtonStyle:D,className:L="",descriptionClassName:q="",duration:I,position:G,gap:V,loadingIcon:J,expandByDefault:_,classNames:R,icons:M,closeButtonAriaLabel:K="Close toast",pauseWhenPageIsHidden:H}=e,[Z,te]=N.useState(null),[Te,ze]=N.useState(null),[ie,As]=N.useState(!1),[qn,zr]=N.useState(!1),[Gn,Rs]=N.useState(!1),[Jn,Ua]=N.useState(!1),[Ru,Fa]=N.useState(!1),[ju,Zi]=N.useState(0),[js,Nm]=N.useState(0),eo=N.useRef(f.duration||I||dy),Om=N.useRef(null),Hr=N.useRef(null),iE=w===0,oE=w+1<=m,Et=f.type,Ns=f.dismissible!==!1,aE=f.className||"",lE=f.descriptionClassName||"",Ba=N.useMemo(()=>y.findIndex(Y=>Y.toastId===f.id)||0,[y,f.id]),cE=N.useMemo(()=>{var Y;return(Y=f.closeButton)!=null?Y:C},[f.closeButton,C]),Im=N.useMemo(()=>f.duration||I||dy,[f.duration,I]),Nu=N.useRef(0),Os=N.useRef(0),Lm=N.useRef(0),Is=N.useRef(null),[uE,dE]=G.split("-"),Mm=N.useMemo(()=>y.reduce((Y,ae,me)=>me>=Ba?Y:Y+ae.height,0),[y,Ba]),Dm=jA(),hE=f.invert||h,Ou=Et==="loading";Os.current=N.useMemo(()=>Ba*V+Mm,[Ba,Mm]),N.useEffect(()=>{eo.current=Im},[Im]),N.useEffect(()=>{As(!0)},[]),N.useEffect(()=>{let Y=Hr.current;if(Y){let ae=Y.getBoundingClientRect().height;return Nm(ae),x(me=>[{toastId:f.id,height:ae,position:f.position},...me]),()=>x(me=>me.filter(Dt=>Dt.toastId!==f.id))}},[x,f.id]),N.useLayoutEffect(()=>{if(!ie)return;let Y=Hr.current,ae=Y.style.height;Y.style.height="auto";let me=Y.getBoundingClientRect().height;Y.style.height=ae,Nm(me),x(Dt=>Dt.find($t=>$t.toastId===f.id)?Dt.map($t=>$t.toastId===f.id?{...$t,height:me}:$t):[{toastId:f.id,height:me,position:f.position},...Dt])},[ie,f.title,f.description,x,f.id]);let Yn=N.useCallback(()=>{zr(!0),Zi(Os.current),x(Y=>Y.filter(ae=>ae.toastId!==f.id)),setTimeout(()=>{E(f)},WA)},[f,E,x,Os]);N.useEffect(()=>{if(f.promise&&Et==="loading"||f.duration===1/0||f.type==="loading")return;let Y;return k||v||H&&Dm?(()=>{if(Lm.current<Nu.current){let ae=new Date().getTime()-Nu.current;eo.current=eo.current-ae}
236Lm.current=new Date().getTime()})():eo.current!==1/0&&(Nu.current=new Date().getTime(),Y=setTimeout(()=>{var ae;(ae=f.onAutoClose)==null||ae.call(f,f),Yn()},eo.current)),()=>clearTimeout(Y)},[k,v,f,Et,H,Dm,Yn]),N.useEffect(()=>{f.delete&&Yn()},[Yn,f.delete]);function fE(){var Y,ae,me;return M!=null&&M.loading?N.createElement("div",{className:Bt(R==null?void 0:R.loader,(Y=f==null?void 0:f.classNames)==null?void 0:Y.loader,"sonner-loader"),"data-visible":Et==="loading"},M.loading):J?N.createElement("div",{className:Bt(R==null?void 0:R.loader,(ae=f==null?void 0:f.classNames)==null?void 0:ae.loader,"sonner-loader"),"data-visible":Et==="loading"},J):N.createElement(TA,{className:Bt(R==null?void 0:R.loader,(me=f==null?void 0:f.classNames)==null?void 0:me.loader),visible:Et==="loading"})}return N.createElement("li",{tabIndex:0,ref:Hr,className:Bt(L,aE,R==null?void 0:R.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[Et],(n=f==null?void 0:f.classNames)==null?void 0:n[Et]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:T,"data-styled":!(f.jsx||f.unstyled||g),"data-mounted":ie,"data-promise":!!f.promise,"data-swiped":Ru,"data-removed":qn,"data-visible":oE,"data-y-position":uE,"data-x-position":dE,"data-index":w,"data-front":iE,"data-swiping":Gn,"data-dismissible":Ns,"data-type":Et,"data-invert":hE,"data-swipe-out":Jn,"data-swipe-direction":Te,"data-expanded":!!(k||_&&ie),style:{"--index":w,"--toasts-before":w,"--z-index":S.length-w,"--offset":`${qn?ju:Os.current}px`,"--initial-height":_?"auto":`${js}px`,...A,...f.style},onDragEnd:()=>{Rs(!1),te(null),Is.current=null},onPointerDown:Y=>{Ou||!Ns||(Om.current=new Date,Zi(Os.current),Y.target.setPointerCapture(Y.pointerId),Y.target.tagName!=="BUTTON"&&(Rs(!0),Is.current={x:Y.clientX,y:Y.clientY}))},onPointerUp:()=>{var Y,ae,me,Dt;if(Jn||!Ns)return;Is.current=null;let $t=Number(((Y=Hr.current)==null?void 0:Y.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Qn=Number(((ae=Hr.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Wr=new Date().getTime()-((me=Om.current)==null?void 0:me.getTime()),Ut=Z==="x"?$t:Qn,Xn=Math.abs(Ut)/Wr;if(Math.abs(Ut)>=HA||Xn>.11){Zi(Os.current),(Dt=f.onDismiss)==null||Dt.call(f,f),ze(Z==="x"?$t>0?"right":"left":Qn>0?"down":"up"),Yn(),Ua(!0),Fa(!1);return}Rs(!1),te(null)},onPointerMove:Y=>{var ae,me,Dt,$t;if(!Is.current||!Ns||((ae=window.getSelection())==null?void 0:ae.toString().length)>0)return;let Qn=Y.clientY-Is.current.y,Wr=Y.clientX-Is.current.x,Ut=(me=e.swipeDirections)!=null?me:KA(G);!Z&&(Math.abs(Wr)>1||Math.abs(Qn)>1)&&te(Math.abs(Wr)>Math.abs(Qn)?"x":"y");let Xn={x:0,y:0};Z==="y"?(Ut.includes("top")||Ut.includes("bottom"))&&(Ut.includes("top")&&Qn<0||Ut.includes("bottom")&&Qn>0)&&(Xn.y=Qn):Z==="x"&&(Ut.includes("left")||Ut.includes("right"))&&(Ut.includes("left")&&Wr<0||Ut.includes("right")&&Wr>0)&&(Xn.x=Wr),(Math.abs(Xn.x)>0||Math.abs(Xn.y)>0)&&Fa(!0),(Dt=Hr.current)==null||Dt.style.setProperty("--swipe-amount-x",`${Xn.x}px`),($t=Hr.current)==null||$t.style.setProperty("--swipe-amount-y",`${Xn.y}px`)}},cE&&!f.jsx?N.createElement("button",{"aria-label":K,"data-disabled":Ou,"data-close-button":!0,onClick:Ou||!Ns?()=>{}:()=>{var Y;Yn(),(Y=f.onDismiss)==null||Y.call(f,f)},className:Bt(R==null?void 0:R.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=M==null?void 0:M.close)!=null?i:RA):null,f.jsx||b.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:N.createElement(N.Fragment,null,Et||f.icon||f.promise?N.createElement("div",{"data-icon":"",className:Bt(R==null?void 0:R.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||fE():null,f.type!=="loading"?f.icon||(M==null?void 0:M[Et])||kA(Et):null):null,N.createElement("div",{"data-content":"",className:Bt(R==null?void 0:R.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},N.createElement("div",{"data-title":"",className:Bt(R==null?void 0:R.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?N.createElement("div",{"data-description":"",className:Bt(q,lE,R==null?void 0:R.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&&cl(f.cancel)?N.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||P,onClick:Y=>{var ae,me;cl(f.cancel)&&Ns&&((me=(ae=f.cancel).onClick)==null||me.call(ae,Y),Yn())},className:Bt(R==null?void 0:R.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&&cl(f.action)?N.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||D,onClick:Y=>{var ae,me;cl(f.action)&&((me=(ae=f.action).onClick)==null||me.call(ae,Y),!Y.defaultPrevented&&Yn())},className:Bt(R==null?void 0:R.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function hy(){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 GA(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?BA:FA;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 JA=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=UA,toastOptions:v,dir:x=hy(),gap:m=zA,loadingIcon:y,icons:w,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k}=e,[E,T]=N.useState([]),C=N.useMemo(()=>Array.from(new Set([r].concat(E.filter(H=>H.position).map(H=>H.position)))),[E,r]),[A,P]=N.useState([]),[D,L]=N.useState(!1),[q,I]=N.useState(!1),[G,V]=N.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
236k":"light"),J=N.useRef(null),_=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=N.useRef(null),M=N.useRef(!1),K=N.useCallback(H=>{T(Z=>{var te;return(te=Z.find(Te=>Te.id===H.id))!=null&&te.delete||ot.dismiss(H.id),Z.filter(({id:Te})=>Te!==H.id)})},[]);return N.useEffect(()=>ot.subscribe(H=>{if(H.dismiss){T(Z=>Z.map(te=>te.id===H.id?{...te,delete:!0}:te));return}setTimeout(()=>{Xx.flushSync(()=>{T(Z=>{let te=Z.findIndex(Te=>Te.id===H.id);return te!==-1?[...Z.slice(0,te),{...Z[te],...H},...Z.slice(te+1)]:[H,...Z]})})})}),[]),N.useEffect(()=>{if(u!=="system"){V(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;let H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:Z})=>{V(Z?"dark":"light")})}catch{H.addListener(({matches:te})=>{try{V(te?"dark":"light")}catch(Te){console.error(Te)}})}},[u]),N.useEffect(()=>{E.length<=1&&L(!1)},[E]),N.useEffect(()=>{let H=Z=>{var te,Te;s.every(ze=>Z[ze]||Z.code===ze)&&(L(!0),(te=J.current)==null||te.focus()),Z.code==="Escape"&&(document.activeElement===J.current||(Te=J.current)!=null&&Te.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[s]),N.useEffect(()=>{if(J.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,M.current=!1)}},[J.current]),N.createElement("section",{ref:t,"aria-label":`${S} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((H,Z)=>{var te;let[Te,ze]=H.split("-");return E.length?N.createElement("ol",{key:H,dir:x==="auto"?hy():x,tabIndex:-1,ref:J,className:a,"data-sonner-toaster":!0,"data-theme":G,"data-y-position":Te,"data-lifted":D&&E.length>1&&!i,"data-x-position":ze,style:{"--front-toast-height":`${((te=A[0])==null?void 0:te.height)||0}px`,"--width":`${VA}px`,"--gap":`${m}px`,...f,...GA(l,c)},onBlur:ie=>{M.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(M.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||M.current||(M.current=!0,R.current=ie.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{q||L(!1)},onDragEnd:()=>L(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},E.filter(ie=>!ie.position&&Z===0||ie.position===H).map((ie,As)=>{var qn,zr;return N.createElement(qA,{key:ie.id,icons:w,index:As,toast:ie,defaultRichColors:d,duration:(qn=v==null?void 0:v.duration)!=null?qn:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:g,closeButton:(zr=v==null?void 0:v.closeButton)!=null?zr:o,interacting:q,position:H,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:K,toasts:E.filter(Gn=>Gn.position==ie.position),heights:A.filter(Gn=>Gn.position==ie.position),setHeights:P,expandByDefault:i,gap:m,loadingIcon:y,expanded:D,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const YA=({...e})=>{const{theme:t="system"}=SA();return p.jsx(JA,{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})},QA=["top","right","bottom","left"],Or=Math.min,gt=Math.max,Tc=Math.round,ul=Math.floor,kn=e=>({x:e,y:e}
vendor: 11,917 bytes, line 236
236),XA={left:"right",right:"left",bottom:"top",top:"bottom"},ZA={start:"end",end:"start"};function Hh(e,t,n){return gt(e,Or(t,n))}function zn(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function Ki(e){return e.split("-")[1]}function zp(e){return e==="x"?"y":"x"}function Hp(e){return e==="y"?"height":"width"}const eR=new Set(["top","bottom"]);function wn(e){return eR.has(Hn(e))?"y":"x"}function Wp(e){return zp(wn(e))}function tR(e,t,n){n===void 0&&(n=!1);const r=Ki(e),s=Wp(e),i=Hp(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Cc(o)),[o,Cc(o)]}function nR(e){const t=Cc(e);return[Wh(e),t,Wh(t)]}function Wh(e){return e.replace(/start|end/g,t=>ZA[t])}const fy=["left","right"],py=["right","left"],rR=["top","bottom"],sR=["bottom","top"];function iR(e,t,n){switch(e){case"top":case"bottom":return n?t?py:fy:t?fy:py;case"left":case"right":return t?rR:sR;default:return[]}}function oR(e,t,n,r){const s=Ki(e);let i=iR(Hn(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Wh)))),i}function Cc(e){return e.replace(/left|right|bottom|top/g,t=>XA[t])}function aR(e){return{top:0,right:0,bottom:0,left:0,...e}}function n1(e){return typeof e!="number"?aR(e):{top:e,right:e,bottom:e,left:e}}function _c(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 my(e,t,n){let{reference:r,floating:s}=e;const i=wn(t),o=Wp(t),a=Hp(o),l=Hn(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(Ki(t)){case"start":f[o]-=h*(n&&c?-1:1);break;case"end":f[o]+=h*(n&&c?-1:1);break}return f}const lR=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=my(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}=my(c,h,l)),v=-1)}return{x:u,y:d,placement:h,strategy:s,middlewareData:f}};async function sa(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}=zn(t,e),g=n1(f),x=a[h?d==="floating"?"reference":"floating":d],m=_c(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=_c(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 cR=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}=zn(e,t)||{};if(c==null)return{};const d=n1(u),h={x:n,y:r},f=Wp(s),g=Hp(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 T=E?E[w]:0;(!T||!await(o.isElement==null?void 0:o.isElement(E)))&&(T=a.floating[w]||i.floating[g]);const C=S/2-k/2,A=T/2-v[g]/2-1,P=Or(d[m],A),D=Or(d[y],A),L=P,q=T-v[g]-D,I=T/2-v[g]/2+C,G=Hh(L,I,q),V=!l.arrow&&Ki(s)!=null&&I!==G&&i.reference[g]/2-(I<L?P:D)-v[g]/2<0,J=V?I<L?I-L:I-q:0;return{[f]:h[f]+J,data:{[f]:G,centerOffset:I-G-J,...V&&{alignmentOffset:J}},reset:V}}}),uR=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}=zn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Hn(s),y=wn(a),w=Hn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=h||(w||!v?[Cc(a)]:nR(a)),E=g!=="none";!h&&E&&k.push(...oR(a,v,g,S));const T=[a,...k],C=await sa(t,x),A=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&A.push(C[m]),d){const I=tR(s,o,S);A.push(C[I[0]],C[I[1]])}if(P=[...P,{placement:s,overflows:A}],!A.every(I=>I<=0)){var D,L;const I=(((D=i.flip)==null?void 0:D.index)||0)+1,G=T[I];if(G&&(!(d==="alignment"?y!==wn(G):!1)||P.every(_=>_.overflows[0]>0&&wn(_.placement)===y)))return{data:{index:I,overflows:P},reset:{placement:G}};let V=(L=P.filter(J=>J.overflows[0]<=0).sort((J,_)=>J.overflows[1]-_.overflows[1])[0])==null?void 0:L.placement;if(!V)switch(f){case"bestFit":{var q;const J=(q=P.filter(_=>{if(E){const R=wn(_.placement);return R===y||R==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)]).sort((_,R)=>_[1]-R[1])[0])==null?void 0:q[0];J&&(V=J);break}case"initialPlacement":V=a;break}if(s!==V)return{reset:{placement:V}}}return{}}}};function gy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yy(e){return QA.some(t=>e[t]>=0)}const dR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=zn(e,t);switch(r){case"referenceHidden":{const i=await sa(t,{...s,elementContext:"reference"}),o=gy(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:yy(o)}}}case"escaped":{const i=await sa(t,{...s,altBoundary:!0}),o=gy(i,n.floating);return{data:{escapedOffsets:o,escaped:yy(o)}}}default:return{}}}}},r1=new Set(["left","top"]);async function hR(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Hn(n),a=Ki(n),l=wn(n)==="y",c=r1.has(o)?-1:1,u=i&&l?-1:1,d=zn(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 fR=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 hR(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}}}}},pR=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}=zn(e,t),c={x:n,y:r},u=await sa(t,l),d=wn(Hn(s)),h=zp(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=Hh(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=Hh(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}}}}}},mR=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}=zn(e,t),u={x:n,y:r},d=wn(s),h=zp(d);let f=u[h],g=u[d];const v=zn(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=r1.has(Hn(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}}}},gR=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}=zn(e,t),u=await sa(t,c),d=Hn(s),h=Ki(s),f=wn(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=Or(v-u[x],y),k=Or(g-u[m],w),E=!t.middlewareData.shift;let T=S,C=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=y),E&&!h){const P=gt(u.left,0),D=gt(u.right,0),L=gt(u.top,0),q=gt(u.bottom,0);f?C=g-2*(P!==0||D!==0?P+D:gt(u.left,u.right)):T=v-2*(L!==0||q!==0?L+q:gt(u.top,u.bottom))}await l({...t,availableWidth:C,availableHeight:T});const A=await o.getDimensions(a.floating);return g!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function hu(){return typeof window<"u"}function qi(e){return s1(e)?(e.nodeName||"").toLowerCase():"#document"}function xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _n(e){var t;return(t=(s1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function s1(e){return hu()?e instanceof Node||e instanceof xt(e).Node:!1}function sn(e){return hu()?e instanceof Element||e instanceof xt(e).Element:!1}function Tn(e){return hu()?e instanceof HTMLElement||e instanceof xt(e).HTMLElement:!1}function vy(e){return!hu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xt(e).ShadowRoot}const yR=new Set(["inline","contents"]);function Na(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!yR.has(s)}const vR=new Set(["table","td","th"]);function wR(e){return vR.has(qi(e))}const xR=[":popover-open",":modal"];function fu(e){return xR.some(t=>{try{return e.matches(t)}catch{return!1}})}const bR=["transform","translate","scale","rotate","perspective"],SR=["transform","translate","scale","rotate","perspective","filter"],kR=["paint","layout","strict","content"];function Kp(e){const t=qp(),n=sn(e)?on(e):e;return bR.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||SR.some(r=>(n.willChange||"").includes(r))||kR.some(r=>(n.contain||"").includes(r))}function ER(e){let t=Ir(e);for(;Tn(t)&&!Mi(t);){if(Kp(t))return t;if(fu(t))return null;t=Ir(t)}return null}function qp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const TR=new Set(["html","body","#document"]);function Mi(e){return TR.has(qi(e))}function on(e){return xt(e).getComputedStyle(e)}function pu(e){return sn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ir(e){if(qi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vy(e)&&e.host||_n(e);return vy(t)?t.host:t}function i1(e){const t=Ir(e);return Mi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tn(t)&&Na(t)?t:i1(t)}function ia(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=i1(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=xt(s);if(i){const a=Kh(o);
vendor: 4,127 bytes, line 236
236return t.concat(o,o.visualViewport||[],Na(s)?s:[],a&&n?ia(a):[])}return t.concat(s,ia(s,[],n))}function Kh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function o1(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Tn(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Tc(n)!==i||Tc(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Gp(e){return sn(e)?e:e.contextElement}function wi(e){const t=Gp(e);if(!Tn(t))return kn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=o1(t);let o=(i?Tc(n.width):n.width)/r,a=(i?Tc(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const CR=kn(0);function a1(e){const t=xt(e);return!qp()||!t.visualViewport?CR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _R(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==xt(e)?!1:t}function ks(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Gp(e);let o=kn(1);t&&(r?sn(r)&&(o=wi(r)):o=wi(e));const a=_R(i,n,r)?a1(i):kn(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=xt(i),f=r&&sn(r)?xt(r):r;let g=h,v=Kh(g);for(;v&&r&&f!==g;){const x=wi(v),m=v.getBoundingClientRect(),y=on(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=xt(v),v=Kh(g)}}return _c({width:u,height:d,x:l,y:c})}function Jp(e,t){const n=pu(e).scrollLeft;return t?t.left+n:ks(_n(e)).left+n}function l1(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Jp(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function PR(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=_n(r),a=t?fu(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=kn(1);const u=kn(0),d=Tn(r);if((d||!d&&!i)&&((qi(r)!=="body"||Na(o))&&(l=pu(r)),Tn(r))){const f=ks(r);c=wi(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const h=o&&!d&&!i?l1(o,l,!0):kn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function AR(e){return Array.from(e.getClientRects())}function RR(e){const t=_n(e),n=pu(e),r=e.ownerDocument.body,s=gt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=gt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Jp(e);const a=-n.scrollTop;return on(r).direction==="rtl"&&(o+=gt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function jR(e,t){const n=xt(e),r=_n(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}}const NR=new Set(["absolute","fixed"]);function OR(e,t){const n=ks(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Tn(e)?wi(e):kn(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 wy(e,t,n){let r;if(t==="viewport")r=jR(e,n);else if(t==="document")r=RR(_n(e));else if(sn(t))r=OR(t,n);else{const s=a1(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return _c(r)}function c1(e,t){const n=Ir(e);return n===t||!sn(n)||Mi(n)?!1:on(n).position==="fixed"||c1(n,t)}function IR(e,t){const n=t.get(e);if(n)return n;let r=ia(e,[],!1).filter(a=>sn(a)&&qi(a)!=="body"),s=null;const i=on(e).position==="fixed";let o=i?Ir(e):e;for(;sn(o)&&!Mi(o);){const a=on(o),l=Kp(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&NR.has(s.position)||Na(o)&&!l&&c1(e,o))?r=r.filter(u=>u!==o):s=a,o=Ir(o)}return t.set(e,r),r}function LR(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?fu(t)?[]:IR(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=wy(t,u,s);return c.top=gt(d.top,c.top),c.right=Or(d.right,c.right),c.bottom=Or(d.bottom,c.bottom),c.left=gt(d.left,c.left),c},wy(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function MR(e){const{width:t,height:n}=o1(e);return{width:t,height:n}}
vendor: 9,635 bytes, line 236
236function DR(e,t,n){const r=Tn(t),s=_n(t),i=n==="fixed",o=ks(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=kn(0);function c(){l.x=Jp(s)}if(r||!r&&!i)if((qi(t)!=="body"||Na(s))&&(a=pu(t)),r){const f=ks(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&c();i&&!r&&s&&c();const u=s&&!r&&!i?l1(s,a):kn(0),d=o.left+a.scrollLeft-l.x-u.x,h=o.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:o.width,height:o.height}}function md(e){return on(e).position==="static"}function xy(e,t){if(!Tn(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _n(e)===n&&(n=n.ownerDocument.body),n}function u1(e,t){const n=xt(e);if(fu(e))return n;if(!Tn(e)){let s=Ir(e);for(;s&&!Mi(s);){if(sn(s)&&!md(s))return s;s=Ir(s)}return n}let r=xy(e,t);for(;r&&wR(r)&&md(r);)r=xy(r,t);return r&&Mi(r)&&md(r)&&!Kp(r)?n:r||ER(e)||n}const $R=async function(e){const t=this.getOffsetParent||u1,n=this.getDimensions,r=await n(e.floating);return{reference:DR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function UR(e){return on(e).direction==="rtl"}const FR={convertOffsetParentRelativeRectToViewportRelativeRect:PR,getDocumentElement:_n,getClippingRect:LR,getOffsetParent:u1,getElementRects:$R,getClientRects:AR,getDimensions:MR,getScale:wi,isElement:sn,isRTL:UR};function d1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function BR(e,t){let n=null,r;const s=_n(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 c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=c;if(a||t(),!h||!f)return;const g=ul(d),v=ul(s.clientWidth-(u+h)),x=ul(s.clientHeight-(d+f)),m=ul(u),w={rootMargin:-g+"px "+-v+"px "+-x+"px "+-m+"px",threshold:gt(0,Or(1,l))||1};let S=!0;function k(E){const T=E[0].intersectionRatio;if(T!==l){if(!S)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!d1(c,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(k,{...w,root:s.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return o(!0),i}function VR(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=Gp(e),u=s||i?[...c?ia(c):[],...ia(t)]:[];u.forEach(m=>{s&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=c&&a?BR(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?ks(e):null;l&&x();function x(){const m=ks(e);v&&!d1(v,m)&&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)}}const zR=fR,HR=pR,WR=uR,KR=gR,qR=dR,by=cR,GR=mR,JR=(e,t,n)=>{const r=new Map,s={platform:FR,...n},i={...s.platform,_c:r};return lR(e,t,{...s,platform:i})};var YR=typeof document<"u",QR=function(){},Hl=YR?b.useLayoutEffect:QR;function Pc(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(!Pc(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)&&!Pc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function h1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sy(e,t){const n=h1(e);return Math.round(t*n)/n}function gd(e){const t=b.useRef(e);return Hl(()=>{t.current=e}),t}function XR(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);Pc(h,r)||f(r);const[g,v]=b.useState(null),[x,m]=b.useState(null),y=b.useCallback(_=>{_!==E.current&&(E.current=_,v(_))},[]),w=b.useCallback(_=>{_!==T.current&&(T.current=_,m(_))},[]),S=i||g,k=o||x,E=b.useRef(null),T=b.useRef(null),C=b.useRef(u),A=l!=null,P=gd(l),D=gd(s),L=gd(c),q=b.useCallback(()=>{if(!E.current||!T.current)return;const _={placement:t,strategy:n,middleware:h};D.current&&(_.platform=D.current),JR(E.current,T.current,_).then(R=>{const M={...R,isPositioned:L.current!==!1};I.current&&!Pc(C.current,M)&&(C.current=M,Aa.flushSync(()=>{d(M)}))})},[h,t,n,D,L]);Hl(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(_=>({..._,isPositioned:!1})))},[c]);const I=b.useRef(!1);Hl(()=>(I.current=!0,()=>{I.current=!1}),[]),Hl(()=>{if(S&&(E.current=S),k&&(T.current=k),S&&k){if(P.current)return P.current(S,k,q);q()}},[S,k,q,P,A]);const G=b.useMemo(()=>({reference:E,floating:T,setReference:y,setFloating:w}),[y,w]),V=b.useMemo(()=>({reference:S,floating:k}),[S,k]),J=b.useMemo(()=>{const _={position:n,left:0,top:0};if(!V.floating)return _;const R=Sy(V.floating,u.x),M=Sy(V.floating,u.y);return a?{..._,transform:"translate("+R+"px, "+M+"px)",...h1(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:M}},[n,a,V.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:q,refs:G,elements:V,floatingStyles:J}),[u,q,G,V,J])}const ZR=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?by({element:r.current,padding:s}).fn(n):{}:r?by({element:r,padding:s}).fn(n):{}}}},ej=(e,t)=>({...zR(e),options:[e,t]}),tj=(e,t)=>({...HR(e),options:[e,t]}),nj=(e,t)=>({...GR(e),options:[e,t]}),rj=(e,t)=>({...WR(e),options:[e,t]}),sj=(e,t)=>({...KR(e),options:[e,t]}),ij=(e,t)=>({...qR(e),options:[e,t]}),oj=(e,t)=>({...ZR(e),options:[e,t]});var aj="Arrow",f1=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return p.jsx(ft.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"})})});f1.displayName=aj;var lj=f1;function cj(e){const[t,n]=b.useState(void 0);return Nr(()=>{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 p1="Popper",[m1,g1]=lu(p1),[B4,y1]=m1(p1),v1="PopperAnchor",w1=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=y1(v1,n),o=b.useRef(null),a=rn(t,o);return b.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:p.jsx(ft.div,{...s,ref:a})});w1.displayName=v1;var Yp="PopperContent",[uj,dj]=m1(Yp),x1=b.forwardRef((e,t)=>{var ie,As,qn,zr,Gn,Rs;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=y1(Yp,n),[m,y]=b.useState(null),w=rn(t,Jn=>y(Jn)),[S,k]=b.useState(null),E=cj(S),T=(E==null?void 0:E.width)??0,C=(E==null?void 0:E.height)??0,A=r+(i!=="center"?"-"+i:""),P=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(c)?c:[c],L=D.length>0,q={padding:P,boundary:D.filter(fj),altBoundary:L},{refs:I,floatingStyles:G,placement:V,isPositioned:J,middlewareData:_}=XR({strategy:"fixed",placement:A,whileElementsMounted:(...Jn)=>VR(...Jn,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[ej({mainAxis:s+C,alignmentAxis:o}),l&&tj({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?nj():void 0,...q}),l&&rj({...q}),sj({...q,apply:({elements:Jn,rects:Ua,availableWidth:Ru,availableHeight:Fa})=>{const{width:ju,height:Zi}=Ua.reference,js=Jn.floating.style;js.setProperty("--radix-popper-available-width",`${Ru}px`),js.setProperty("--radix-popper-available-height",`${Fa}px`),js.setProperty("--radix-popper-anchor-width",`${ju}px`),js.setProperty("--radix-popper-anchor-height",`${Zi}px`)}}),S&&oj({element:S,padding:a}),pj({arrowWidth:T,arrowHeight:C}),h&&ij({strategy:"referenceHidden",...q})]}),[R,M]=k1(V),K=jr(g);Nr(()=>{J&&(K==null||K())},[J,K]);const H=(ie=_.arrow)==null?void 0:ie.x,Z=(As=_.arrow)==null?void 0:As.y,te=((qn=_.arrow)==null?void 0:qn.centerOffset)!==0,[Te,ze]=b.useState();return Nr(()=>{m&&ze(window.getComputedStyle(m).zIndex)},[m]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:J?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Te,"--radix-popper-transform-origin":[(zr=_.transformOrigin)==null?void 0:zr.x,(Gn=_.transformOrigin)==null?void 0:Gn.y].join(" "),...((Rs=_.hide)==null?void 0:Rs.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(uj,{scope:n,placedSide:R,onArrowChange:k,arrowX:H,arrowY:Z,shouldHideArrow:te,children:p.jsx(ft.div,{"data-side":R,"data-align":M,...v,ref:w,style:{...v.style,animation:J?void 0:"none"}})})})});x1.displayName=Yp;var b1="PopperArrow",hj={top:"bottom",right:"left",bottom:"top",left:"r
236ight"},S1=b.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=dj(b1,r),o=hj[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(lj,{...s,ref:n,style:{...s.style,display:"block"}})})});S1.displayName=b1;function fj(e){return e!==null}var pj=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]=k1(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 k1(e){const[t,n="center"]=e.split("-");return[t,n]}var mj=w1,gj=x1,yj=S1,[mu,V4]=lu("Tooltip",[g1]),Qp=g1(),E1="TooltipProvider",vj=700,ky="tooltip.open",[wj,T1]=mu(E1),C1=e=>{const{__scopeTooltip:t,delayDuration:n=vj,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(wj,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:i})};C1.displayName=E1;var _1="Tooltip",[z4,gu]=mu(_1),qh="TooltipTrigger",xj=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=gu(qh,n),i=T1(qh,n),o=Qp(n),a=b.useRef(null),l=rn(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(mj,{asChild:!0,...o,children:p.jsx(ft.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:Ne(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:Ne(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:Ne(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ne(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:Ne(e.onBlur,s.onClose),onClick:Ne(e.onClick,s.onClose)})})});xj.displayName=qh;var bj="TooltipPortal",[H4,Sj]=mu(bj,{forceMount:void 0}),Di="TooltipContent",P1=b.forwardRef((e,t)=>{const n=Sj(Di,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=gu(Di,e.__scopeTooltip);return p.jsx(Op,{present:r||o.open,children:o.disableHoverableContent?p.jsx(A1,{side:s,...i,ref:t}):p.jsx(kj,{side:s,...i,ref:t})})}),kj=b.forwardRef((e,t)=>{const n=gu(Di,e.__scopeTooltip),r=T1(Di,e.__scopeTooltip),s=b.useRef(null),i=rn(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=Pj(m,x.getBoundingClientRect()),w=Aj(m,y),S=Rj(v.getBoundingClientRect()),k=Nj([...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=!jj(m,o);y?h():w&&(h(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,o,c,h]),p.jsx(A1,{...e,ref:i})}),[Ej,Tj]=mu(_1,{isInside:!1}),Cj=C_("TooltipContent"),A1=b.forwardRef((e,t)=>
236{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=gu(Di,n),c=Qp(n),{onClose:u}=l;return b.useEffect(()=>(document.addEventListener(ky,u),()=>document.removeEventListener(ky,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(Np,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:p.jsxs(gj,{"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(Cj,{children:r}),p.jsx(Ej,{scope:n,isInside:!0,children:p.jsx(Q_,{id:l.contentId,role:"tooltip",children:s||r})})]})})});P1.displayName=Di;var R1="TooltipArrow",_j=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Qp(n);return Tj(R1,n).isInside?null:p.jsx(yj,{...s,...r,ref:t})});_j.displayName=R1;function Pj(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 Aj(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 Rj(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 jj(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 Nj(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),Oj(t)}function Oj(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 Ij=C1,j1=P1;const Lj=Ij,Mj=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(j1,{ref:r,sideOffset:t,className:Mt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Mj.displayName=j1.displayName;var yu=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(){}},vu=typeof window>"u"||"Deno"in globalThis;function Kt(){}function Dj(e,t){return typeof e=="function"?e(t):e}function $j(e){return typeof e=="number"&&e>=0&&e!==1/0}function Uj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gh(e,t){return typeof e=="function"?e(t):e}function Fj(e,t){return typeof e=="function"?e(t):e}function Ey(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Xp(o,t.options))return!1}else if(!aa(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 Ty(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(oa(t.options.mutationKey)!==oa(i))return!1}else if(!aa(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Xp(e,t){return((t==null?void 0:t.queryKeyHashFn)||oa)(e)}function oa(e){return JSON.stringify(e,(t,n)=>Jh(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function aa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>aa(e[n],t[n])):!1}function N1(e,t){if(e===t)return e;const n=Cy(e)&&Cy(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]=N1(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function Cy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Jh(e){if(!_y(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!_y(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function _y(e){return Object.prototype.toString.call(e)==="[object Object]"}function Bj(e){return new Promise(t=>{setTimeout(t,e)})}function Vj(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?N1(e,t):t}function zj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Hj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Zp=Symbol();function O1(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Zp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ls,dr,bi,j0,Wj=(j0=class extends yu{constructor(){super();se(this,ls);se(this,dr);se(this,bi);Q(this,bi,t=>{if(!vu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,dr)||this.setEventListener(j(this,bi))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,dr))==null||t.call(this),Q(this,dr,void 0))}setEventListener(t){var n;Q(this,bi,t),(n=j(this,dr))==null||n.call(this),Q(this,dr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){j(this,ls)!==t&&(Q(this,ls,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,517 bytes, line 236
236this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,ls)=="boolean"?j(this,ls):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ls=new WeakMap,dr=new WeakMap,bi=new WeakMap,j0),I1=new Wj,Si,hr,ki,N0,Kj=(N0=class extends yu{constructor(){super();se(this,Si,!0);se(this,hr);se(this,ki);Q(this,ki,t=>{if(!vu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){j(this,hr)||this.setEventListener(j(this,ki))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,hr))==null||t.call(this),Q(this,hr,void 0))}setEventListener(t){var n;Q(this,ki,t),(n=j(this,hr))==null||n.call(this),Q(this,hr,t(this.setOnline.bind(this)))}setOnline(t){j(this,Si)!==t&&(Q(this,Si,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return j(this,Si)}},Si=new WeakMap,hr=new WeakMap,ki=new WeakMap,N0),Ac=new Kj;function qj(){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 Gj(e){return Math.min(1e3*2**e,3e4)}function L1(e){return(e??"online")==="online"?Ac.isOnline():!0}var M1=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yd(e){return e instanceof M1}function D1(e){let t=!1,n=0,r=!1,s;const i=qj(),o=v=>{var x;r||(h(new M1(v)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>I1.isFocused()&&(e.networkMode==="always"||Ac.isOnline())&&e.canRun(),u=()=>L1(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??(vu?0:3),w=e.retryDelay??Gj,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),Bj(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 Jj=e=>setTimeout(e,0);function Yj(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=Jj;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 Xe=Yj(),cs,O0,$1=(O0=class{constructor(){se(this,cs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$j(this.gcTime)&&Q(this,cs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vu?1/0:5*60*1e3))}clearGcTimeout(){j(this,cs)&&(clearTimeout(j(this,cs)),Q(this,cs,void 0))}},cs=new WeakMap,O0),Ei,us,Ct,ds,qe,ba,hs,Gt,Rn,I0,Qj=(I0=class extends $1{constructor(t){super();se(this,Gt);se(this,Ei);se(this,us);se(this,Ct);se(this,ds);se(this,qe);se(this,ba);se(this,hs);Q(this,hs,!1),Q(this,ba,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,ds,t.client),Q(this,Ct,j(this,ds).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,Ei,Zj(this.options)),this.state=t.state??j(this,Ei),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,qe))==null?void 0:t.promise}setOptions(t){this.options={...j(this,ba),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,Ct).remove(this)}setData(t,n){const r=Vj(this.state.data,t,this.options);return He(this,Gt,Rn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){He(this,Gt,Rn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=j(this,qe))==null?void 0:r.promise;
vendor: 1,669 bytes, line 236
236return(s=j(this,qe))==null||s.cancel(t),n?n.then(Kt).catch(Kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,Ei))}isActive(){return this.observers.some(t=>Fj(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Zp||this.state.dataUpdateCount+this.state.errorUpdateCount===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:!Uj(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,qe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,qe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,Ct).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(j(this,qe)&&(j(this,hs)?j(this,qe).cancel({revert:!0}):j(this,qe).cancelRetry()),this.scheduleGc()),j(this,Ct).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||He(this,Gt,Rn).call(this,{type:"invalidate"})}
vendor: 14,003 bytes, line 236
236fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,qe))return j(this,qe).continueRetry(),j(this,qe).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:()=>(Q(this,hs,!0),r.signal)})},i=()=>{const h=O1(this.options,n),g=(()=>{const v={client:j(this,ds),queryKey:this.queryKey,meta:this.meta};return s(v),v})();return Q(this,hs,!1),this.options.persister?this.options.persister(h,g,this):h(g)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,ds),state:this.state,fetchFn:i};return s(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),Q(this,us,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&He(this,Gt,Rn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,g,v,x;yd(h)&&h.silent||He(this,Gt,Rn).call(this,{type:"error",error:h}),yd(h)||((g=(f=j(this,Ct).config).onError)==null||g.call(f,h,this),(x=(v=j(this,Ct).config).onSettled)==null||x.call(v,this.state.data,h,this)),this.scheduleGc()};return Q(this,qe,D1({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=j(this,Ct).config).onSuccess)==null||g.call(f,h,this),(x=(v=j(this,Ct).config).onSettled)==null||x.call(v,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{He(this,Gt,Rn).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{He(this,Gt,Rn).call(this,{type:"pause"})},onContinue:()=>{He(this,Gt,Rn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),j(this,qe).start()}},Ei=new WeakMap,us=new WeakMap,Ct=new WeakMap,ds=new WeakMap,qe=new WeakMap,ba=new WeakMap,hs=new WeakMap,Gt=new WeakSet,Rn=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,...Xj(r.data,this.options),fetchMeta:t.meta??null};case"success":return Q(this,us,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 yd(s)&&s.revert&&j(this,us)?{...j(this,us),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),Xe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),j(this,Ct).notify({query:this,type:"updated",action:t})})},I0);function Xj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:L1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Zj(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 fn,L0,eN=(L0=class extends yu{constructor(t={}){super();se(this,fn);this.config=t,Q(this,fn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Xp(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){j(this,fn).has(t.queryHash)||(j(this,fn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=j(this,fn).get(t.queryHash);n&&(t.destroy(),n===t&&j(this,fn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Xe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,fn).get(t)}getAll(){return[...j(this,fn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ey(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ey(t,r)):n}notify(t){Xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Xe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Xe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},fn=new WeakMap,L0),pn,Ye,fs,mn,nr,M0,tN=(M0=class extends $1{constructor(t){super();se(this,mn);se(this,pn);se(this,Ye);se(this,fs);this.mutationId=t.mutationId,Q(this,Ye,t.mutationCache),Q(this,pn,[]),this.state=t.state||nN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,pn).includes(t)||(j(this,pn).push(t),this.clearGcTimeout(),j(this,Ye).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,pn,j(this,pn).filter(n=>n!==t)),this.scheduleGc(),j(this,Ye).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,pn).length||(this.state.status==="pending"?this.scheduleGc():j(this,Ye).remove(this))}continue(){var t;return((t=j(this,fs))==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,C;const n=()=>{He(this,mn,nr).call(this,{type:"continue"})};Q(this,fs,D1({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,P)=>{He(this,mn,nr).call(this,{type:"failed",failureCount:A,error:P})},onPause:()=>{He(this,mn,nr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,Ye).canRun(this)}));const r=this.state.status==="pending",s=!j(this,fs).canStart();try{if(r)n();else{He(this,mn,nr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=j(this,Ye).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&&He(this,mn,nr).call(this,{type:"pending",context:P,variables:t,isPaused:s})}const A=await j(this,fs).start();return await((u=(c=j(this,Ye).config).onSuccess)==null?void 0:u.call(c,A,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,A,t,this.state.context)),await((g=(f=j(this,Ye).config).onSettled)==null?void 0:g.call(f,A,null,this.state.variables,this.state.context,this)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,A,null,t,this.state.context)),He(this,mn,nr).call(this,{type:"success",data:A}),A}catch(A){try{throw await((y=(m=j(this,Ye).config).onError)==null?void 0:y.call(m,A,t,this.state.context,this)),await((S=(w=this.options).onError)==null?void 0:S.call(w,A,t,this.state.context)),await((E=(k=j(this,Ye).config).onSettled)==null?void 0:E.call(k,void 0,A,this.state.variables,this.state.context,this)),await((C=(T=this.options).onSettled)==null?void 0:C.call(T,void 0,A,t,this.state.context)),A}finally{He(this,mn,nr).call(this,{type:"error",error:A})}}finally{j(this,Ye).runNext(this)}}},pn=new WeakMap,Ye=new WeakMap,fs=new WeakMap,mn=new WeakSet,nr=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),Xe.batch(()=>{j(this,pn).forEach(r=>{r.onMutationUpdate(t)}),j(this,Ye).notify({mutation:this,type:"updated",action:t})})},M0);function nN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ln,Jt,Sa,D0,rN=(D0=class extends yu{constructor(t={}){super();se(this,Ln);se(this,Jt);se(this,Sa);this.config=t,Q(this,Ln,new Set),Q(this,Jt,new Map),Q(this,Sa,0)}build(t,n,r){const s=new tN({mutationCache:this,mutationId:++Va(this,Sa)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){j(this,Ln).add(t);const n=dl(t);if(typeof n=="string"){const r=j(this,Jt).get(n);r?r.push(t):j(this,Jt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,Ln).delete(t)){const n=dl(t);if(typeof n=="string"){const r=j(this,Jt).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&j(this,Jt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=dl(t);if(typeof n=="string"){const r=j(this,Jt).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=dl(t);if(typeof n=="string"){const s=(r=j(this,Jt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Xe.batch(()=>{j(this,Ln).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,Ln).clear(),j(this,Jt).clear()})}getAll(){return Array.from(j(this,Ln))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ty(n,r))}findAll(t={}){return this.getAll().filter(n=>Ty(t,n))}notify(t){Xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Xe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Kt))))}},Ln=new WeakMap,Jt=new WeakMap,Sa=new WeakMap,D0);function dl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Py(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=O1(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 T=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return x(D),D})(),C=await m(T),{maxPages:A}=t.options,P=k?Hj:zj;return{pages:P(w.pages,C,A),pageParams:P(w.pageParams,S,A)}};if(s&&i.length){const w=s==="backward",S=w?sN:Ay,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:Ay(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 Ay(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 sN(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 be,fr,pr,Ti,Ci,mr,_i,Pi,$0,iN=($0=class{constructor(e={}){se(this,be);se(this,fr);se(this,pr);se(this,Ti);se(this,Ci);se(this,mr);se(this,_i);se(this,Pi);Q(this,be,e.queryCache||new eN),Q(this,fr,e.mutationCache||new rN),Q(this,pr,e.defaultOptions||{}),Q(this,Ti,new Map),Q(this,Ci,new Map),Q(this,mr,0)}mount(){Va(this,mr)._++,j(this,mr)===1&&(Q(this,_i,I1.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,be).onFocus())})),Q(this,Pi,Ac.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,be).onOnline())})))}unmount(){var e,t;Va(this,mr)._--,j(this,mr)===0&&((e=j(this,_i))==null||e.call(this),Q(this,_i,void 0),(t=j(this,Pi))==null||t.call(this),Q(this,Pi,void 0))}isFetching(e){return j(this,be).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,fr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,be).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=j(this,be).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 j(this,be).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=j(this,be).get(r.queryHash),i=s==null?void 0:s.state.data,o=Dj(t,i);if(o!==void 0)return j(this,be).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Xe.batch(()=>j(this,be).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,be).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,be);Xe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,be);return Xe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Xe.batch(()=>j(this,be).findAll(e).map(s=>s.cancel(n)));
236return Promise.all(r).then(Kt).catch(Kt)}invalidateQueries(e,t={}){return Xe.batch(()=>(j(this,be).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=Xe.batch(()=>j(this,be).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Kt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,be).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(Kt).catch(Kt)}fetchInfiniteQuery(e){return e.behavior=Py(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Kt).catch(Kt)}ensureInfiniteQueryData(e){return e.behavior=Py(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ac.isOnline()?j(this,fr).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,be)}getMutationCache(){return j(this,fr)}getDefaultOptions(){return j(this,pr)}setDefaultOptions(e){Q(this,pr,e)}setQueryDefaults(e,t){j(this,Ti).set(oa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,Ti).values()],n={};return t.forEach(r=>{aa(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){j(this,Ci).set(oa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,Ci).values()],n={};return t.forEach(r=>{aa(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,pr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Xp(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===Zp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,pr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,be).clear(),j(this,fr).clear()}},be=new WeakMap,fr=new WeakMap,pr=new WeakMap,Ti=new WeakMap,Ci=new WeakMap,mr=new WeakMap,_i=new WeakMap,Pi=new WeakMap,$0),oN=b.createContext(void 0),aN=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(oN.Provider,{value:e,children:t}));/**
237 * @remix-run/router v1.23.0
238 *
239 * Copyright (c) Remix Software Inc.
240 *
241 * This source code is licensed under the MIT license found in the
242 * LICENSE.md file in the root directory of this source tree.
243 *
244 * @license MIT
245 */function la(){return la=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},la.apply(this,arguments)}var vr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(vr||(vr={}));const Ry="popstate";function lN(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:Rc(s)}return uN(t,n,null,e)}function Ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function U1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cN(){return Math.random().toString(36).substr(2,8)}function jy(e,t){return{usr:e.state,key:e.key,idx:t}}function Yh(e,t,n,r){return n===void 0&&(n=null),la({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Gi(t):t,{state:n,key:t&&t.key||r||cN()})}function Rc(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 Gi(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 uN(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=vr.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(la({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){a=vr.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=vr.Push;let y=Yh(v.location,x,m);c=u()+1;let w=jy(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=vr.Replace;let y=Yh(v.location,x,m);c=u();let w=jy(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=="str
245ing"?x:Rc(x);return y=y.replace(/ $/,"%20"),Ae(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(Ry,d),l=x,()=>{s.removeEventListener(Ry,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 Ny;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ny||(Ny={}));function dN(e,t,n){return n===void 0&&(n="/"),hN(e,t,n,!1)}function hN(e,t,n,r){let s=typeof t=="string"?Gi(t):t,i=em(s.pathname||"/",n);if(i==null)return null;let o=F1(e);fN(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=EN(i);a=SN(o[l],c,r)}return a}function F1(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("/")&&(Ae(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=Pr([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Ae(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),F1(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:xN(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 B1(i.path))s(i,o,l)}),t}function B1(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=B1(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 fN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bN(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const pN=/^:[\w-]+$/,mN=3,gN=2,yN=1,vN=10,wN=-2,Oy=e=>e==="*";function xN(e,t){let n=e.split("/"),r=n.length;return n.some(Oy)&&(r+=wN),t&&(r+=gN),n.filter(s=>!Oy(s)).reduce((s,i)=>s+(pN.test(i)?mN:i===""?yN:vN),r)}function bN(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 SN(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=Iy({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Iy({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
vendor: 9,180 bytes, lines 245-254
245Object.assign(s,d.params),o.push({params:s,pathname:Pr([i,d.pathname]),pathnameBase:PN(Pr([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=Pr([i,d.pathnameBase]))}return o}function Iy(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=kN(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 kN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),U1(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function EN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return U1(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function em(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function TN(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Gi(e):e;return{pathname:n?n.startsWith("/")?n:CN(n,t):t,search:AN(r),hash:RN(s)}}function CN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function vd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function _N(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function V1(e,t){let n=_N(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function z1(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Gi(e):(s=la({},e),Ae(!s.pathname||!s.pathname.includes("?"),vd("?","pathname","search",s)),Ae(!s.pathname||!s.pathname.includes("#"),vd("#","pathname","hash",s)),Ae(!s.search||!s.search.includes("#"),vd("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;s.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=TN(s,a),c=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Pr=e=>e.join("/").replace(/\/\/+/g,"/"),PN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function jN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const H1=["post","put","patch","delete"];new Set(H1);const NN=["get",...H1];new Set(NN);/**
246 * React Router v6.30.1
247 *
248 * Copyright (c) Remix Software Inc.
249 *
250 * This source code is licensed under the MIT license found in the
251 * LICENSE.md file in the root directory of this source tree.
252 *
253 * @license MIT
254 */function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ca.apply(this,arguments)}const tm=b.createContext(null),ON=b.createContext(null),Cs=b.createContext(null),wu=b.createContext(null),_s=b.createContext({outlet:null,matches:[],isDataRoute:!1}),W1=b.createContext(null);function IN(e,t){let{relative:n}=t===void 0?{}:t;Oa()||Ae(!1);let{basename:r,navigator:s}=b.useContext(Cs),{hash:i,pathname:o,search:a}=G1(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Pr([r,o])),s.createHref({pathname:l,search:a,hash:i})}function Oa(){return b.useContext(wu)!=null}function Fr(){return Oa()||Ae(!1),b.useContext(wu).location}function K1(e){b.useContext(Cs).static||b.useLayoutEffect(e)}function q1(){let{isDataRoute:e}=b.useContext(_s);return e?qN():LN()}function LN(){Oa()||Ae(!1);let e=b.useContext(tm),{basename:t,future:n,navigator:r}=b.useContext(Cs),{matches:s}=b.useContext(_s),{pathname:i}=Fr(),o=JSON.stringify(V1(s,n.v7_relativeSplatPath)),a=b.useRef(!1);return K1(()=>{a.current=!0}),b.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=z1(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Pr([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,o,i,e])}function G1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(Cs),{matches:s}=b.useContext(_s),{pathname:i}=Fr(),o=JSON.stringify(V1(s,r.v7_relativeSplatPath));return b.useMemo(()=>z1(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function MN(e,t){return DN(e,t)}function DN(e,t,n,r){Oa()||Ae(!1);let{navigator:s}=b.useContext(Cs),{matches:i}=b.useContext(_s),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=Fr(),u;if(t){var d;let x=typeof t=="string"?Gi(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Ae(!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=dN(e,{pathname:f}),v=VN(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Pr([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Pr([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&v?b.createElement(wu.Provider,{value:{location:ca({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:vr.Pop}},v):v}function $N(){let e=KN(),t=jN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:s},n):null,null)}const UN=b.createElement($N,null);class FN 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(_s.Provider,{value:this.props.routeContext},b.createElement(W1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function BN(e){let{routeContext:t,match:n,children:r}=e,s=b.useContext(tm);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(_s.Provider,{value:t},r)}function VN(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Ae(!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||UN,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(BN,{match:d,routeC
254ontext:{outlet:u,matches:m,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?b.createElement(FN,{location:n.location,revalidation:n.revalidation,component:v,error:f,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var J1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(J1||{}),jc=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}(jc||{});function zN(e){let t=b.useContext(tm);return t||Ae(!1),t}function HN(e){let t=b.useContext(ON);return t||Ae(!1),t}function WN(e){let t=b.useContext(_s);return t||Ae(!1),t}function Y1(e){let t=WN(),n=t.matches[t.matches.length-1];return n.route.id||Ae(!1),n.route.id}function KN(){var e;let t=b.useContext(W1),n=HN(jc.UseRouteError),r=Y1(jc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function qN(){let{router:e}=zN(J1.UseNavigateStable),t=Y1(jc.UseNavigateStable),n=b.useRef(!1);return K1(()=>{n.current=!0}),b.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,ca({fromRouteId:t},i)))},[e,t])}function GN(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function cn(e){Ae(!1)}function JN(e){let{basename:t="/",children:n=null,location:r,navigationType:s=vr.Pop,navigator:i,static:o=!1,future:a}=e;Oa()&&Ae(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:i,static:o,future:ca({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=Gi(r));let{pathname:u="/",search:d="",hash:h="",state:f=null,key:g="default"}=r,v=b.useMemo(()=>{let x=em(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(Cs.Provider,{value:c},b.createElement(wu.Provider,{children:n,value:v}))}function YN(e){let{children:t,location:n}=e;return MN(Qh(t),n)}new Promise(()=>{});function Qh(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,Qh(r.props.children,i));return}r.type!==cn&&Ae(!1),!r.props.index||!r.props.children||Ae(!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=Qh(r.props.children,i)),n.push(o)}),n}/**
255 * React Router DOM v6.30.1
256 *
257 * Copyright (c) Remix Software Inc.
258 *
259 * This source code is licensed under the MIT license found in the
260 * LICENSE.md file in the root directory of this source tree.
261 *
262 * @license MIT
263 */function Xh(){return Xh=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},Xh.apply(this,arguments)}function QN(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function XN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZN(e,t){return e.button===0&&(!t||t==="_self")&&!XN(e)}function Zh(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function e2(e,t){let n=Zh(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const t2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],n2="6";try{window.__reactRouterVersion=n2}catch{}const r2="startTransition",Ly=J0[r2];function s2(e){let{basename:t,children:n,future:r,window:s}=e,i=b.useRef();i.current==null&&(i.current=lN({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&&Ly?Ly(()=>l(d)):l(d)},[l,c]);return b.useLayoutEffect(()=>o.listen(u),[o,u]),b.useEffect(()=>GN(r),[r]),b.createElement(JN,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const i2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",o2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rt=b.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=QN(t,t2),{basename:f}=b.useContext(Cs),g,v=!1;if(typeof c=="string"&&o2.test(c)&&(g=c,i2))try{let w=new URL(window.location.href),S=c.startsWith("//")?new URL(w.protocol+c):new URL(c),k=em(S.pathname,f);S.origin===w.origin&&k!=null?c=k+S.search+S.hash:v=!0}catch{}let x=IN(c,{relative:s}),m=a2(c,{replace:o,state:a,target:l,preventScrollReset:u,relative:s,viewTransition:d});function y(w){r&&r(w),w.defaultPrevented||m(w)}return b.createElement("a",Xh({},h,{href:g||x,onClick:v||i?r:y,ref:n,target:l}))});var My;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(My||(My={}));var Dy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Dy||(Dy={}));function a2(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=q1(),c=Fr(),u=G1(e,{relative:o});return b.useCallback(d=>
vendor: 10,122 bytes, line 263
263{if(ZN(d,n)){d.preventDefault();let h=r!==void 0?r:Rc(c)===Rc(u);l(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,l,u,r,s,n,e,i,o,a])}function l2(e){let t=b.useRef(Zh(e)),n=b.useRef(!1),r=Fr(),s=b.useMemo(()=>e2(r.search,n.current?null:t.current),[r.search]),i=q1(),o=b.useCallback((a,l)=>{const c=Zh(typeof a=="function"?a(s):a);n.current=!0,i("?"+c,l)},[i,s]);return[s,o]}const c2=()=>{const{pathname:e}=Fr();return b.useEffect(()=>{window.scrollTo({top:0,left:0})},[e]),null},nm=b.createContext({});function rm(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const u2=typeof window<"u",Q1=u2?b.useLayoutEffect:b.useEffect,xu=b.createContext(null);function sm(e,t){e.indexOf(t)===-1&&e.push(t)}function Nc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Cn=(e,t,n)=>n>t?t:n<e?e:n;let bu=()=>{},$i=()=>{};const Lr={},X1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Z1(e){return typeof e=="object"&&e!==null}const eS=e=>/^0[^.\s]+$/u.test(e);function tS(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ot=e=>e,d2=(e,t)=>n=>t(e(n)),Ia=(...e)=>e.reduce(d2),ua=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class im{constructor(){this.subscriptions=[]}add(t){return sm(this.subscriptions,t),()=>Nc(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 ht=e=>e*1e3,jt=e=>e/1e3;function nS(e,t){return t?e*(1e3/t):0}const rS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,h2=1e-7,f2=12;function p2(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=rS(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>h2&&++a<f2);return o}function La(e,t,n,r){if(e===t&&n===r)return Ot;const s=i=>p2(i,0,1,e,n);return i=>i===0||i===1?i:rS(s(i),t,r)}const sS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iS=e=>t=>1-e(1-t),oS=La(.33,1.53,.69,.99),om=iS(oS),aS=sS(om),lS=e=>e>=1?1:(e*=2)<1?.5*om(e):.5*(2-Math.pow(2,-10*(e-1))),am=e=>1-Math.sin(Math.acos(e)),cS=iS(am),uS=sS(am),m2=La(.42,0,1,1),g2=La(0,0,.58,1),dS=La(.42,0,.58,1),y2=e=>Array.isArray(e)&&typeof e[0]!="number",hS=e=>Array.isArray(e)&&typeof e[0]=="number",$y={linear:Ot,easeIn:m2,easeInOut:dS,easeOut:g2,circIn:am,circInOut:uS,circOut:cS,backIn:om,backInOut:aS,backOut:oS,anticipate:lS},v2=e=>typeof e=="string",Uy=e=>{if(hS(e)){$i(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return La(t,n,r,s)}else if(v2(e))return $i($y[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),$y[e];return e},hl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Fy={value:null,addProjectionMetrics:null};function w2(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&&Fy.value&&Fy.value.frameloop[t].push(l),l=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const x2=40;function fS(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=hl.reduce((w,S)=>(w[S]=w2(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=Lr.useManualTiming,S=w?s.timestamp:performance.now();n=!1,w||(s.delta=r?1e3/60:Math.max(Math.min(S-s.timestamp,x2),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:hl.reduce((w,S)=>{const k=o[S];return w[S]=(E,T=!1,C=!1)=>(n||x(),k.schedule(E,T,C)),w},{}),cancel:w=>{for(let S=0;S<hl.length;S++)o[hl[S]].cancel(w)},state:s,steps:o}}const{schedule:le,cancel:Mr,state:Ue,steps:wd}=fS(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ot,!0);let Wl;function b2(){Wl=void 0}const Ze={now:()=>(Wl===void 0&&Ze.set(Ue.isProcessing||Lr.useManualTiming?Ue.timestamp:performance.now()),Wl),set:e=>{Wl=e,queueMicrotask(b2)}},pS=e=>t=>typeof t=="string"&&t.startsWith(e),mS=pS("--"),S2=pS("var(--"),lm=e=>S2(e)?k2.test(e.split("/*")[0].trim()):!1,k2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function By(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ji={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},da={...Ji,transform:e=>Cn(0,1,e)},fl={...Ji,default:1},Io=e=>Math.round(e*1e5)/1e5,cm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E2(e){return e==null}const T2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,um=(e,t)=>n=>!!(typeof n=="string"&&T2.test(n)&&n.startsWith(e)||t&&!E2(n)&&Object.prototype.hasOwnProperty.call(n,t)),gS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(cm);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},C2=e=>Cn(0,255,e),xd={...Ji,transform:e=>Math.round(C2(e))},ss={test:um("rgb","red"),parse:gS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xd.transform(e)+", "+xd.transform(t)+", "+xd.transform(n)+", "+Io(da.transform(r))+")"};function _2(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 ef={test:um("#"),parse:_2,transform:ss.transform},Ma=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),rr=Ma("deg"),En=Ma("%"),U=Ma("px"),P2=Ma("vh"),A2=Ma("vw"),Vy={...En,parse:e=>En.parse(e)/100,transform:e=>En.transform(e*100)},oi={test:um("hsl","hue"),parse:gS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+En.transform(Io(t))+", "+En.transform(Io(n))+", "+Io(da.transform(r))+")"},_e={test:e=>ss.test(e)||ef.test(e)||oi.test(e),parse:e=>ss.test(e)?ss.parse(e):oi.test(e)?oi.parse(e):ef.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ss.transform(e):oi.transform(e),getAnimatableNone:e=>{const t=_e.parse(e);return t.alpha=0,_e.transform(t)}},R2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function j2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(cm))==null?void 0:t.length)||0)+(((n=e.match(R2))==null?void 0:n.length)||0)>0}const yS="number",vS="color",N2="var",O2="var(",zy="${}",I2=/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 Ui(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(I2,l=>(_e.test(l)?(r.color.push(i),s.push(vS),n.push(_e.parse(l))):l.startsWith(O2)?(r.var.push(i),s.push(N2),n.push(l)):(r.number.push(i),s.push(yS),n.push(parseFloat(l))),++i,zy)).split(zy);return{values:n,split:a,indexes:r,types:s}}function L2(e){return Ui(e).values}function wS({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===yS?s+=Io(r[i]):o===vS?s+=_e.transform(r[i]):s+=r[i]}return s}}function M2(e){return wS(Ui(e))}const D2=e=>typeof e=="number"?0:_e.test(e)?_e.getAnimatableNone(e):e,$2=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:D2(e);function U2(e){const t=Ui(e);return wS(t)(t.values.map((r,s)=>$2(r,t.split[s])))}const tn={test:j2,parse:L2,createTransformer:M2,getAnimatableNone:U2};function bd(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 F2({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=bd(l,a,e+1/3),i=bd(l,a,e),o=bd(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Oc(e,t){return n=>n>0?t:e}const fe=(e,t,n)=>e+(t-e)*n,Sd=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},B2=[ef,ss,oi],V2=e=>B2.find(t=>t.test(e));function Hy(e){const t=V2(e);if(bu(!!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===oi&&(n=F2(n)),n}const Wy=(e,t)=>{const n=Hy(e),r=Hy(t);if(!n||!r)return Oc(e,t);const s={...n};return i=>(s.red=Sd(n.red,r.red,i),s.green=Sd(n.green,r.green,i),s.blue=Sd(n.blue,r.blue,i),s.alpha=fe(n.alpha,r.alpha,i),ss.transform(s))},tf=new Set(["none","hidden"]);function z2(e,t){return tf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function H2(e,t){return n=>fe(e,t,n)}function dm(e){return typeof e=="number"?H2:typeof e=="string"?lm(e)?Oc:_e.test(e)?Wy:q2:Array.isArray(e)?xS:typeof e=="object"?_e.test(e)?Wy:W2:Oc}function xS(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>dm(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function W2(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=dm(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function K2(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 q2=(e,t)=>{const n=tn.createTransformer(t),r=Ui(e),s=Ui(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?tf.has(e)&&!s.values.length||tf.has(t)&&!r.values.length?z2(e,t):Ia(xS(K2(r,s),s.values),n):(bu(!0,`Complex values '${e}' and '${t}
263' 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"),Oc(e,t))};function bS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?fe(e,t,n):dm(e)(e,t)}const G2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>le.update(t,n),stop:()=>Mr(t),now:()=>Ue.isProcessing?Ue.timestamp:Ze.now()}},SS=(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)})`},Ic=2e4;function hm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ic;)t+=n,r=e.next(t);return t>=Ic?1/0:t}function J2(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(hm(r),Ic);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:jt(s)}}const ye={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 nf(e,t){return e*Math.sqrt(1-t*t)}const Y2=12;function Q2(e,t,n){let r=n;for(let s=1;s<Y2;s++)r=r-e(r)/t(r);return r}const kd=.001;function X2({duration:e=ye.duration,bounce:t=ye.bounce,velocity:n=ye.velocity,mass:r=ye.mass}){let s,i;bu(e<=ht(ye.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=Cn(ye.minDamping,ye.maxDamping,o),e=Cn(ye.minDuration,ye.maxDuration,jt(e)),o<1?(s=c=>{const u=c*o,d=u*e,h=u-n,f=nf(c,o),g=Math.exp(-d);return kd-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=nf(Math.pow(c,2),o);return(-s(c)+kd>0?-1:1)*((h-f)*g)/v}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-kd+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=Q2(s,i,a);if(e=ht(e),isNaN(l))return{stiffness:ye.stiffness,damping:ye.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Z2=["duration","bounce"],eO=["stiffness","damping","mass"];function Ky(e,t){return t.some(n=>e[n]!==void 0)}function tO(e){let t={velocity:ye.velocity,stiffness:ye.stiffness,damping:ye.damping,mass:ye.mass,isResolvedFromDuration:!1,...e};if(!Ky(e,eO)&&Ky(e,Z2))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Cn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ye.mass,stiffness:s,damping:i}}else{const n=X2({...e,velocity:0});t={...t,...n,mass:ye.mass},t.isResolvedFromDuration=!0}return t}function Lc(e=ye.visualDuration,t=ye.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}=tO({...n,velocity:-jt(n.velocity||0)}),g=h||0,v=c/(2*Math.sqrt(l*u)),x=o-i,m=jt(Math.sqrt(l/u)),y=Math.abs(x)<5;r||(r=y?ye.restSpeed.granular:ye.restSpeed.default),s||(s=y?ye.restDelta.granular:ye.restDelta.default);let w,S,k,E,T,C;if(v<1)k=nf(m,v),E=(g+v*m*x)/k,w=P=>{const D=Math.exp(-v*m*P);return o-D*(E*Math.sin(k*P)+x*Math.cos(k*P))},T=v*m*E+x*k,C=v*m*x-E*k,S=P=>Math.exp(-v*m*P)*(T*Math.sin(k*P)+C*Math.cos(k*P));else if(v===1){w=D=>o-Math.exp(-m*D)*(x+(g+m*x)*D);const P=g+m*x;S=D=>Math.exp(-m*D)*(m*P*D-g)}else{const P=m*Math.sqrt(v*v-1);w=I=>{const G=Math.exp(-v*m*I),V=Math.min(P*I,300);return o-G*((g+v*m*x)*Math.sinh(V)+P*x*Math.cosh(V))/P};const D=(g+v*m*x)/P,L=v*m*D-x*P,q=v*m*x-D*P;S=I=>{const G=Math.exp(-v*m*I),V=Math.min(P*I,300);return G*(L*Math.sinh(V)+q*Math.cosh(V))}}const A={calculatedDuration:f&&d||null,velocity:P=>ht(S(P)),next:P=>{if(!f&&v<1){const L=Math.exp(-v*m*P),q=Math.sin(k*P),I=Math.cos(k*P),G=o-L*(E*q+x*I),V=ht(L*(T*q+C*I));return a.done=Math.abs(V)<=r&&Math.abs(o-G)<=s,a.value=a.done?o:G,a}const D=w(P);if(f)a.done=P>=d;else{const L=ht(S(P));a.done=Math.abs(L)<=r&&Math.abs(o-D)<=s}return a.value=a.done?o:D,a},toString:()=>{const P=Math.min(hm(A),Ic),D=SS(L=>A.next(P*L).value,P,30);return P+"ms "+D},toTransition:()=>{}};return A}Lc.applyToOptions=e=>{const t=J2(e,100,Lc);return e.ease=t.ease,e.duration=ht(t.duration),e.type="keyframes",e};const nO=5;function kS(e,t,n){const r=Math.max(t-nO,0);return nS(n-e(r),t-r)}function rf({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=C=>a!==void 0&&C<a||l!==void 0&&C>l,g=C=>a===void 0?l:l===void 0||Math.abs(a-C)<Math.abs(l-C)?a:l;let v=n*t;const x=d+v,m=o===void 0?x:o(x);m!==x&&(v=m-d);const y=C=>-v*Math.exp(-C/r),w=C=>m+y(C),S=C=>{const A=y(C),P=w(C);h.done=Math.abs(A)<=c,h.value=h.done?m:P};let k,E;const T=C=>{f(h.value)&&(k=C,E=Lc({keyframes:[h.value,g(h.value)],velocity:kS(w,C,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:C=>{let A=!1;return!E&&k===void 0&&(A=!0,S(C),T(C)),k!==void 0&&C>=k?E.next(C-k):(!A&&S(C),h)}}}function rO(e,t,n){const r=[],s=n||Lr.mix||bS,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]||Ot:t;a=Ia(l,a)}r.push(a)}return r}function sO(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if($i(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=rO(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=ua(e[d],e[d+1],u);return a[d](h)};return n?u=>c(Cn(e[0],e[i-1],u)):c}function iO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=ua(0,t,r);e.push(fe(n,1,s))}}function oO(e){const t=[0];return iO(t,e.length-1),t}function aO(e,t){return e.map(n=>n*t)}function lO(e,t){return e.map(()=>t||dS).splice(0,e.length-1)}function Lo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=y2(r)?r.map(Uy):Uy(r),i={done:!1,value:t[0]},o=aO(n&&n.length===t.length?n:oO(t),e),a=sO(o,t,{ease:Array.isArray(s)?s:lO(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const cO=e=>e!==null;function Su(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(cO),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const uO={decay:rf,inertia:rf,tween:Lo,keyframes:Lo,spring:Lc};function ES(e){typeof e.type=="string"&&(e.type=uO[e.type])}class fm{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 dO=e=>e/100;class Mc extends fm{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!==Ze.now()&&this.tick(Ze.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;ES(t);const{type:n=Lo,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Lo;l!==Lo&&typeof a[0]!="number"&&(this.mixKeyframes=Ia(dO,bS(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=hm(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 C=Math.min(this.currentTime,s)/a;let A=Math.floor(C),P=C%1;!P&&C>=1&&(P=1),P===1&&A--,A=Math.min(A,d+1),!!(A%2)&&(h==="reverse"?(P=1-P,f&&(P-=f/a)):h==="mirror"&&(S=o)),w=Cn(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 T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return T&&g!==rf&&(k.value=Su(u,this.options,x,this.speed)),v&&v(k.value),T&&this.finish(),
263k}then(t,n){return this.finished.then(t,n)}get duration(){return jt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+jt(t)}get time(){return jt(this.currentTime)}set time(t){t=ht(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return kS(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Ze.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=jt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=G2,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(Ze.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 hO(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const is=e=>e*180/Math.PI,sf=e=>{const t=is(Math.atan2(e[1],e[0]));return of(t)}
vendor: 8,843 bytes, line 263
263,fO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:sf,rotateZ:sf,skewX:e=>is(Math.atan(e[1])),skewY:e=>is(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},of=e=>(e=e%360,e<0&&(e+=360),e),qy=sf,Gy=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Jy=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),pO={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Gy,scaleY:Jy,scale:e=>(Gy(e)+Jy(e))/2,rotateX:e=>of(is(Math.atan2(e[6],e[5]))),rotateY:e=>of(is(Math.atan2(-e[2],e[0]))),rotateZ:qy,rotate:qy,skewX:e=>is(Math.atan(e[4])),skewY:e=>is(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function af(e){return e.includes("scale")?1:0}function lf(e,t){if(!e||e==="none")return af(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=pO,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=fO,s=a}if(!s)return af(t);const i=r[t],o=s[1].split(",").map(gO);return typeof i=="function"?i(o):o[i]}const mO=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return lf(n,t)};function gO(e){return parseFloat(e.trim())}const Yi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qi=new Set(Yi),Yy=e=>e===Ji||e===U,yO=new Set(["x","y","z"]),vO=Yi.filter(e=>!yO.has(e));function wO(e){const t=[];return vO.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const wr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",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})=>lf(t,"x"),y:(e,{transform:t})=>lf(t,"y")};wr.translateX=wr.x;wr.translateY=wr.y;const gs=new Set;let cf=!1,uf=!1,df=!1;function TS(){if(uf){const e=Array.from(gs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=wO(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)})}uf=!1,cf=!1,gs.forEach(e=>e.complete(df)),gs.clear()}function CS(){gs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(uf=!0)})}function xO(){df=!0,CS(),TS(),df=!1}class pm{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?(gs.add(this),cf||(cf=!0,le.read(CS),le.resolveKeyframes(TS))):(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])}hO(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),gs.delete(this)}cancel(){this.state==="scheduled"&&(gs.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const bO=e=>e.startsWith("--");function _S(e,t,n){bO(t)?e.style.setProperty(t,n):e.style[t]=n}const SO={};function PS(e,t){const n=tS(e);return()=>SO[t]??n()}const kO=PS(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),AS=PS(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xo([0,.65,.55,1]),circOut:xo([.55,0,1,.45]),backIn:xo([.31,.01,.66,-.59]),backOut:xo([.33,1.53,.69,.99])};function RS(e,t){if(e)return typeof e=="function"?AS()?SS(e,t):"ease-out":hS(e)?xo(e):Array.isArray(e)?e.map(n=>RS(n,t)||Qy.easeOut):Qy[e]}function EO(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=RS(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 jS(e){return typeof e=="function"&&"applyToOptions"in e}function TO({type:e,...t}){return jS(e)&&AS()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class NS extends fm{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,$i(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=TO(t);this.animation=EO(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Su(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),_S(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 jt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+jt(t)}get time(){return jt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ht(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&&kO()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Ot):s(this)}}const OS={anticipate:lS,backInOut:aS,circInOut:uS};function CO(e){return e in OS}function _O(e){typeof e.ease=="string"&&CO(e.ease)&&(e.ease=OS[e.ease])}const Ed=10;class PO extends NS{constructor(t){_O(t),ES(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 Mc({...o,autoplay:!1}),l=Math.max(Ed,Ze.now()-this.startTime),c=Cn(0,Ed,l-Ed),u=a.sample(l).value,{name:d}=this.options;i&&d&&_S(i,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const Xy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(tn.test(e)||e==="0")&&!e.startsWith("url("));function AO(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 RO(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=Xy(s,t),a=Xy(i,t);return bu(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:AO(e)||(n==="spring"||jS(n))&&r}function hf(e){e.duration=0,e.type="keyframes"}const IS=new Set(["opacity","clipPath","filter","transform"]),jO=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function NO(e){for(let t=0;t<e.length;
263t++)if(typeof e[t]=="string"&&jO.test(e[t]))return!0;return!1}const OO=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),IO=tS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function LO(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 IO()&&n&&(IS.has(n)||OO.has(n)&&NO(a))&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const MO=40;class DO extends fm{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=Ze.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)||pm;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=Ze.now();let d=!0;RO(t,i,o,a)||(d=!1,(Lr.instantAnimations||!l)&&(u==null||u(Su(t,r,n))),t[0]=t[t.length-1],hf(r),r.repeat=0);const f={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>MO?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},g=d&&!c&&LO(f),v=(y=(m=f.motionValue)==null?void 0:m.owner)==null?void 0:y.current;let x;if(g)try{x=new PO({...f,element:v})}catch{x=new Mc(f)}else x=new Mc(f);x.finished.then(()=>{this.notifyFinished()}).catch(Ot),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(),xO()),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 LS(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 $O=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UO(e){const t=$O.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const FO=4;function MS(e,t,n=1){$i(n<=FO,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=UO(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return X1(o)?parseFloat(o):o}return lm(s)?MS(s,t,n+1):s}const BO={type:"spring",stiffness:500,damping:25,restSpeed:10},VO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zO={type:"keyframes",duration:.8},HO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},WO=(e,{keyframes:t})=>t.length>2?zO:Qi.has(e)?e.startsWith("scale")?VO(t[1]):BO:HO;function DS(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function mm(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?DS(n,e):n}const KO=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function qO(e){for(const t in e)if(!KO.has(t))return!0;return!1}const gm=(e,t,n,r={},s,i)=>o=>{const a=mm(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-ht(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};qO(a)||Object.assign(u,WO(e,u)),u.duration&&(u.duration=ht(u.duration)),u.repeatDelay&&(u.repeatDelay=ht(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(hf(u),u.delay===0&&(
vendor: 8,735 bytes, line 263
263d=!0)),(Lr.instantAnimations||Lr.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(d=!0,hf(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=Su(u.keyframes,a);if(h!==void 0){le.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Mc(u):new DO(u)};function Zy(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ym(e,t,n,r){if(typeof t=="function"){const[s,i]=Zy(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]=Zy(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function ys(e,t,n){const r=e.getProps();return ym(r,t,n!==void 0?n:r.custom,e)}const $S=new Set(["width","height","top","left","right","bottom",...Yi]),ev=30,GO=e=>!isNaN(parseFloat(e));class JO{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=Ze.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=Ze.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=GO(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 im);const r=this.events[t].add(n);return t==="change"?()=>{r(),le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ze.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ev)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ev);return nS(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 Fi(e,t){return new JO(e,t)}const ff=e=>Array.isArray(e);function YO(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fi(n))}function QO(e){return ff(e)?e[e.length-1]||0:e}function XO(e,t){const n=ys(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=QO(i[o]);YO(e,o,a)}}const Fe=e=>!!(e&&e.getVelocity);function ZO(e){return!!(Fe(e)&&e.add)}function pf(e,t){const n=e.getValue("willChange");if(ZO(n))return n.add(t);if(!n&&Lr.WillChange){const r=new Lr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function vm(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const eI="framerAppearId",US="data-"+vm(eI);function FS(e){return e.props[US]}function tI({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?DS(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&&tI(d,h))continue;const v={delay:n,...mm(i||{},h)},x=f.get();if(x!==void 0&&!f.isAnimating()&&!Array.isArray(g)&&g===x&&!v.velocity){le.update(()=>f.set(g));continue}let m=!1;if(window.MotionHandoffAnimation){const S=FS(e);if(S){const k=window.MotionHandoffAnimation(S,h,le);k!==null&&(v.startTime=k,m=!0)}}pf(e,h);const y=c??e.shouldReduceMotion;f.start(gm(h,f,g,y&&$S.has(h)?{type:!1}:v,e,m));const w=f.animation;w&&u.push(w)}if(o){const h=()=>le.update(()=>{o&&XO(e,o)});u.length?Promise.all(u).then(h):h()}return u}function mf(e,t,n={}){var l;const r=ys(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 nI(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 nI(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(mf(l,t,{...o,delay:n+(typeof r=="function"?0:r)+LS(e.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function rI(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>mf(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=mf(e,t,n);else{const s=typeof t=="function"?ys(e,t,n.custom):t;r=Promise.all(BS(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const sI={test:e=>e==="auto",parse:e=>e},VS=e=>t=>t.test(e),zS=[Ji,U,En,rr,A2,P2,sI],tv=e=>zS.find(VS(e));function iI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||eS(e):!0}const oI=new Set(["brightness","contrast","saturate","opacity"]);function aI(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(cm)||[];if(!r)return e;const s=n.replace(r,"");let i=oI.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const lI=/\b([a-z-]*)\(.*?\)/gu,gf={...tn,getAnimatableNone:e=>{const t=e.match(lI);return t?t.map(aI).join(" "):e}},yf={...tn,getAnimatableNone:e=>{const t=tn.parse(e);return tn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},nv={...Ji,transform:Math.round},cI={rotate:rr,rotateX:rr,rotateY:rr,rotateZ:rr,scale:fl,scaleX:fl,scaleY:fl,scaleZ:fl,skew:rr,skewX:rr,skewY:rr,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:da,originX:Vy,originY:Vy,originZ:U},wm={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,...cI,zIndex:nv,fillOpacity:da,strokeOpacity:da,numOctaves:nv},uI={...wm,color:_e,backgroundColor:_e,outlineColor:_e,fill:_e,stroke:_e,borderColor:_e,borderTopColor:_e,borderRightColor:_e,borderBottomColor:_e,borderLeftColor:_e,filter:gf,WebkitFilter:gf,mask:yf,WebkitMask:yf},HS=e=>uI[e],dI=new Set([gf,yf]);function WS(e,t){let n=HS(e);return dI.has(n)||(n=tn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hI=new Set(["auto","none","0"]);function fI(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!hI.has(i)&&Ui(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=WS(n,s)}class pI extends pm{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];
vendor: 1,295 bytes, line 263
263if(typeof d=="string"&&(d=d.trim(),lm(d))){const h=MS(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!$S.has(r)||t.length!==2)return;const[s,i]=t,o=tv(s),a=tv(i),l=By(s),c=By(i);if(l!==c&&wr[r]){this.needsMeasurement=!0;return}if(o!==a)if(Yy(o)&&Yy(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else wr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||iI(t[s]))&&r.push(s);r.length&&fI(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=wr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=wr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
vendor: 40,849 bytes, line 263
263h(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function KS(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 qS=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Kl(e){return Z1(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:xm,cancel:W4}=fS(queueMicrotask,!1),Ht={x:!1,y:!1};function GS(){return Ht.x||Ht.y}function mI(e){return e==="x"||e==="y"?Ht[e]?null:(Ht[e]=!0,()=>{Ht[e]=!1}):Ht.x||Ht.y?null:(Ht.x=Ht.y=!0,()=>{Ht.x=Ht.y=!1})}function JS(e,t){const n=KS(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function gI(e){return!(e.pointerType==="touch"||GS())}function yI(e,t,n={}){const[r,s,i]=JS(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(!gI(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 YS=(e,t)=>t?e===t?!0:YS(e,t.parentElement):!1,bm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,vI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wI(e){return vI.has(e.tagName)||e.isContentEditable===!0}const xI=new Set(["INPUT","SELECT","TEXTAREA"]);function bI(e){return xI.has(e.tagName)||e.isContentEditable===!0}const ql=new WeakSet;function rv(e){return t=>{t.key==="Enter"&&e(t)}}function Td(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const SI=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=rv(()=>{if(ql.has(n))return;Td(n,"down");const s=rv(()=>{Td(n,"up")}),i=()=>Td(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 sv(e){return bm(e)&&!GS()}const iv=new WeakSet;function kI(e,t,n={}){const[r,s,i]=JS(e,n),o=a=>{const l=a.currentTarget;if(!sv(a)||iv.has(a))return;ql.add(l),n.stopPropagation&&iv.add(a);const c=t(l,a),u=(f,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),ql.has(l)&&ql.delete(l),sv(f)&&typeof c=="function"&&c(f,{success:g})},d=f=>{u(f,l===window||l===document||n.useGlobalTarget||YS(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),Kl(a)&&(a.addEventListener("focus",c=>SI(c,s)),!wI(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Sm(e){return Z1(e)&&"ownerSVGElement"in e}const Gl=new WeakMap;let sr;const QS=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Sm(r)&&"getBBox"in r?r.getBBox()[t]:r[n],EI=QS("inline","width","offsetWidth"),TI=QS("block","height","offsetHeight");function CI({target:e,borderBoxSize:t}){var n;(n=Gl.get(e))==null||n.forEach(r=>{r(e,{get width(){return EI(e,t)},get height(){return TI(e,t)}})})}function _I(e){e.forEach(CI)}function PI(){typeof ResizeObserver>"u"||(sr=new ResizeObserver(_I))}function AI(e,t){sr||PI();const n=KS(e);return n.forEach(r=>{let s=Gl.get(r);s||(s=new Set,Gl.set(r,s)),s.add(t),sr==null||sr.observe(r)}),()=>{n.forEach(r=>{const s=Gl.get(r);s==null||s.delete(t),s!=null&&s.size||sr==null||sr.unobserve(r)})}}const Jl=new Set;let ai;function RI(){ai=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Jl.forEach(t=>t(e))},window.addEventListener("resize",ai)}function jI(e){return Jl.add(e),ai||RI(),()=>{Jl.delete(e),!Jl.size&&typeof ai=="function"&&(window.removeEventListener("resize",ai),ai=void 0)}}function ov(e,t){return typeof e=="function"?jI(e):AI(e,t)}function NI(e){return Sm(e)&&e.tagName==="svg"}const OI=[...zS,_e,tn],II=e=>OI.find(VS(e)),av=()=>({translate:0,scale:1,origin:0,originPoint:0}),li=()=>({x:av(),y:av()}),lv=()=>({min:0,max:0}),Re=()=>({x:lv(),y:lv()}),LI=new WeakMap;function ku(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ha(e){return typeof e=="string"||Array.isArray(e)}const km=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Em=["initial",...km];function Eu(e){return ku(e.animate)||Em.some(t=>ha(e[t]))}function XS(e){return!!(Eu(e)||e.variants)}function MI(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Fe(s))e.addValue(r,s);else if(Fe(i))e.addValue(r,Fi(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,Fi(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const vf={current:null},ZS={current:!1},DI=typeof window<"u";function $I(){if(ZS.current=!0,!!DI)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vf.current=e.matches;e.addEventListener("change",t),t()}else vf.current=!1}const cv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Dc={};function ek(e){Dc=e}function UI(){return Dc}class FI{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=pm,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=Ze.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,le.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=Eu(n),this.isVariantNode=XS(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&&Fe(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,LI.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:(ZS.current||$I(),this.shouldReduceMotion=vf.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(),Mr(this.notifyUpdate),Mr(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&&IS.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new NS({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:ht(u)}),h=o(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const r=Qi.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Dc){const n=Dc[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):Re()}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<cv.length;r++){const s=cv[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=MI(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=Fi(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"&&(X1(r)||eS(r))?r=parseFloat(r):!II(r)&&tn.test(n)&&(r=WS(t,n)),this.setBaseTarget(t,Fe(r)?r.get():r)),Fe(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=ym(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&&!Fe(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 im),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xm.render(this.render)}}class tk extends FI{constructor(){super(...arguments),this.KeyframeResolver=pI}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;Fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Br{constructor(t){this.isMounted=!1,this.node=t}update(){}}function nk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function VI(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 Cd(e){return e===void 0||e===1}function wf({scale:e,scaleX:t,scaleY:n}){return!Cd(e)||!Cd(t)||!Cd(n)}function Xr(e){return wf(e)||rk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rk(e){return uv(e.x)||uv(e.y)}function uv(e){return e&&e!=="0%"}function $c(e,t,n){const r=e-n,s=t*r;return n+s}function dv(e,t,n,r,s){return s!==void 0&&(e=$c(e,s,r)),$c(e,n,r)+t}function xf(e,t=0,n=1,r,s){e.min=dv(e.min,t,n,r,s),e.max=dv(e.max,t,n,r,s)}function sk(e,{x:t,y:n}){xf(e.x,t.translate,t.scale,t.originPoint),xf(e.y,n.translate,n.scale,n.originPoint)}const hv=.999999999999,fv=1.0000000000001;function zI(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&&(gn(e.x,-i.scroll.offset.x),gn(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,sk(e,o)),r&&Xr(i.latestValues)&&Yl(e,i.latestValues,(a=i.layout)==null?void 0:a.layoutBox))}t.x<fv&&t.x>hv&&(t.x=1),t.y<fv&&t.y>hv&&(t.y=1)}function gn(e,t){e.min+=t,e.max+=t}function pv(e,t,n,r,s=.5){const i=fe(e.min,e.max,s);xf(e,t,n,i,r)}function mv(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Yl(e,t,n){const r=n??e;pv(e.x,mv(t.x,r.x),t.scaleX,t.scale,t.originX),pv(e.y,mv(t.y,r.y),t.scaleY,t.scale,t.originY)}function ik(e,t){return nk(VI(e.getBoundingClientRect(),t))}function HI(e,t,n){const r=ik(e,n),{scroll:s}=t;return s&&(gn(r.x,s.offset.x),gn(r.y,s.offset.y)),r}const WI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},KI=Yi.length;function qI(e,t,n){let r="",s=!0;for(let i=0;i<KI;i++){const o=Yi[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=qS(a,wm[o]);if(!l){s=!1;const u=WI[o]||o;r+=`${u}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Tm(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(Qi.has(l)){o=!0;continue}else if(mS(l)){s[l]=c;continue}else{const u=qS(c,wm[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=qI(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 ok(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 gv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const po={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(U.test(e))e=parseFloat(e);else return e;const n=gv(e,t.target.x),r=gv(e,t.target.y);return`${n}% ${r}%`}},GI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=tn.parse(e);if(s.length>5)return r;const i=tn.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=fe(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},bf={borderRadius:{...po,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:po,borderTopRightRadius:po,borderBottomLeftRadius:po,borderBottomRightRadius:po,boxShadow:GI};function ak(e,{layout:t,layoutId:n}){return Qi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!bf[e]||e==="opacity")}function Cm(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)(Fe(r[a])||s&&Fe(s[a])||ak(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function JI(e){return window.getComputedStyle(e)}class YI extends tk{constructor(){super(...arguments),this.type="html",this.renderInstance=ok}readValueFromInstance(t,n){var r;if(Qi.has(n))return(r=this.projection)!=null&&r.isProjecting?af(n):mO(t,n);{const s=JI(t),i=(mS(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ik(t,n)}build(t,n,r){Tm(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Cm(t,n,r)}}const QI={offset:"stroke-dashoffset",array:"stroke-dasharray"},XI={offset:"strokeDashoffset",array:"strokeDasharray"};function ZI(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?QI:XI;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const eL=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function lk(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(Tm(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 eL)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&&ZI(d,s,i,o,!1)}const ck=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"]),uk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tL(e,t,n,r){ok(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(ck.has(s)?s:vm(s),t.attrs[s])}function dk(e,t,n){const r=Cm(e,t,n);for(const s in e)if(Fe(e[s])||Fe(t[s])){const i=Yi.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class nL extends tk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Re}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Qi.has(n)){const r=HS(n);return r&&r.default||0}return n=ck.has(n)?n:vm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return dk(t,n,r)}build(t,n,r){lk(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){tL(t,n,r,s)}mount(t){this.isSVGTag=uk(t.tagName),super.mount(t)}}const rL=Em.length;function hk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?hk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rL;n++){const r=Em[n],s=e.props[r];(ha(s)||s===!1)&&(t[r]=s)}return t}function fk(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 sL=[...km].reverse(),iL=km.length;function oL(e){return t=>Promise.all(t.map(({animation:n,options:r})=>rI(e,n,r)))}function aL(e){let t=oL(e),n=yv(),r=!0,s=!1;const i=c=>(u,d)=>{var f;const h=ys(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=hk(e.parent)||{},h=[],f=new Set;let g={},v=1/0;for(let m=0;m<iL;m++){const y=sL[m],w=n[y],S=u[y]!==void 0?u[y]:d[y],k=ha(S),E=y===c?w.isActive:null;E===!1&&(v=m);let T=S===d[y]&&S!==u[y]&&k;if(T&&(r||s)&&e.manuallyAnimateOnMount&&(T=!1),w.protectedKeys={...g},!w.isActive&&E===null||!S&&!w.prevProp||ku(S)||typeof S=="boolean")continue;if(y==="exit"&&w.isActive&&E!==!0){w.prevResolvedValues&&(g={...g,...w.prevResolvedValues});continue}const C=lL(w.prevProp,S);let A=C||y===c&&w.isActive&&!T&&k||m>v&&k,P=!1;const D=Array.isArray(S)?S:[S];let L=D.reduce(i(y),{});E===!1&&(L={});const{prevResolvedValues:q={}}=w,I={...q,...L},G=_=>{A=!0,f.has(_)&&(P=!0,f.delete(_)),w.needsAnimating[_]=!0;const R=e.getValue(_);R&&(R.liveStyle=!1)};for(const _ in I){const R=L[_],M=q[_];if(g.hasOwnProperty(_))continue;let K=!1;ff(R)&&ff(M)?K=!fk(R,M):K=R!==M,K?R!=null?G(_):f.add(_):R!==void 0&&f.has(_)?G(_):w.protectedKeys[_]=!0}w.prevProp=S,w.prevResolvedValues=L,w.isActive&&(g={...g,...L}),(r||s)&&e.blockInitialAnimation&&(A=!1);const V=T&&C;A&&(!V||P)&&h.push(...D.map(_=>{const R={type:y};if(typeof _=="string"&&(r||s)&&!V&&e.manuallyAnimateOnMount&&e.parent){const{parent:M}=e,K=ys(M,_);if(M.enteringChildren&&K){const{delayChildren:H}=K.transition||{};R.delay=LS(M.enteringChildren,e,H)}}return{animation:_,options:R}}))}if(f.size){const m={};if(typeof u.initial!="boolean"){const y=ys(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=yv(),s=!0}}}function lL(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fk(t,e):!1}function qr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yv(){return{animate:qr(!0),whileInView:qr(),whileHover:qr(),whileTap:qr(),whileDrag:qr(),whileFocus:qr(),exit:qr()}}function Sf(e,t){e.min=t.min,e.max=t.max}function Vt(e,t){Sf(e.x,t.x),Sf(e.y,t.y)}function vv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const pk=1e-4,cL=1-pk,uL=1+pk,mk=.01,dL=0-mk,hL=0+mk;function et(e){return e.max-e.min}function fL(e,t,n){return Math.abs(e-t)<=n}function wv(e,t,n,r=.5){e.origin=r,e.originPoint=fe(t.min,t.max,e.origin),e.scale=et(n)/et(t),e.translate=fe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cL&&e.scale<=uL||isNaN(e.scale))&&(e.scale=1),(e.translate>=dL&&e.translate<=hL||isNaN(e.translate))&&(e.translate=0)}function Mo(e,t,n,r){wv(e.x,t.x,n.x,r?r.originX:void 0),wv(e.y,t.y,n.y,r?r.originY:void 0)}function xv(e,t,n,r=0){const s=r?fe(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+et(t)}function pL(e,t,n,r){xv(e.x,t.x,n.x,r==null?void 0:r.x),xv(e.y,t.y,n.y,r==null?void 0:r.y)}function bv(e,t,n,r=0){const s=r?fe(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+et(t)}function Uc(e,t,n,r){bv(e.x,t.x,n.x,r==null?void 0:r.x),bv(e.y,t.y,n.y,r==null?void 0:r.y)}function Sv(e,t,n,r,s){return e-=t,e=$c(e,1/n,r),s!==void 0&&(e=$c(e,1/s,r)),e}function mL(e,t=0,n=1,r=.5,s,i=e,o=e){if(En.test(t)&&(t=parseFloat(t),t=fe(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=fe(i.min,i.max,r);e===i&&(a-=t),e.min=Sv(e.min,t,n,a,s),e.max=Sv(e.max,t,n,a,s)}function kv(e,t,[n,r,s],i,o){mL(e,t[n],t[r],t[s],t.scale,i,o)}const gL=["x","scaleX","originX"],yL=["y","scaleY","originY"];function Ev(e,t,n,r){kv(e.x,t,gL,n?n.x:void 0,r?r.x:void 0),kv(e.y,t,yL,n?n.y:void 0,r?r.y:void 0)}function Tv(e){return e.translate===0&&e.scale===1}function gk(e){return Tv(e.x)&&Tv(e.y)}function Cv(e,t){return e.min===t.min&&e.max===t.max}function vL(e,t){return Cv(e.x,t.x)&&Cv(e.y,t.y)}function _v(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function yk(e,t){return _v(e.x,t.x)&&_v(e.y,t.y)}function Pv(e){return et(e.x)/et(e.y)}function Av(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function dn(e){return[e("x"),e("y")]}function wL(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 vk=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],xL=vk.length,Rv=e=>typeof e=="string"?parseFloat(e):e,jv=e=>typeof e=="number"||U.test(e);function bL(e,t,n,r,s,i){s?(e.opacity=fe(0,n.opacity??1,SL(r)),e.opacityExit=fe(t.opacity??1,0,kL(r))):i&&(e.opacity=fe(t.opacity??1,n.opacity??1,r));for(let o=0;o<xL;o++){const a=vk[o];let l=Nv(t,a),c=Nv(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||jv(l)===jv(c)?(e[a]=Math.max(fe(Rv(l),Rv(c),r),0),(En.test(c)||En.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=fe(t.rotate||0,n.rotate||0,r))}function Nv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const SL=wk(0,.5,cS),kL=wk(.5,.95,Ot);function wk(e,t,n){return r=>r<e?0:r>t?1:n(ua(e,t,r))}function EL(e,t,n){const r=Fe(e)?e:Fi(e);return r.start(gm("",r,t,n)),r.animation}function fa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const TL=(e,t)=>e.depth-t.depth;class CL{constructor(){this.children=[],this.isDirty=!1}add(t){sm(this.children,t),this.isDirty=!0}remove(t){Nc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(TL),this.isDirty=!1,this.children.forEach(t)}}function _L(e,t){const n=Ze.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Mr(r),e(i-t))};return le.setup(r,!0),()=>Mr(r)}function Ql(e){return Fe(e)?e.get():e}class PL{constructor(){this.members=[]}add(t){sm(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&&(Nc(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Nc(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 Xl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},_d=["","X","Y","Z"],AL=1e3;let RL=0;function Pd(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function xk(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=FS(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",le,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&xk(r)}function bk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=RL++,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(OL),this.nodes.forEach(UL),this.nodes.forEach(FL),this.nodes.forEach(IL)},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 CL)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new im),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=Sm(o)&&!NI(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;le.read(()=>{d=window.innerWidth}),e(o,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,u&&u(),u=_L(h,250),Xl.hasAnimatedSinceResize&&(Xl.hasAnimatedSinceResize=!1,this.nodes.forEach(Lv)))})}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()||WL,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=c.getProps(),m=!this.targetLayout||!yk(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={...mm(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||Lv(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(),Mr(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(BL),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&&xk(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(ML),this.nodes.forEach(Ov);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Iv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(DL),this.nodes.forEach($L),this.nodes.forEach(jL),this.nodes.forEach(NL)):this.nodes.forEach(Iv),this.clearAllSnapshots();const a=Ze.now();Ue.delta=Cn(0,1e3/60,a-Ue.timestamp),Ue.timestamp=a,Ue.isProcessing=!0,wd.update.process(Ue),wd.preRender.process(Ue),wd.render.process(Ue),Ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(LL),this.sharedNodes.forEach(VL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!et(this.snapshot.measuredBox.x)&&!et(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=Re()),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&&!gk(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||Xr(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)),KL(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Re();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(qL))){const{scroll:u}=this.root;u&&(gn(a.x,u.offset.x),gn(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=Re();if(Vt(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&&Vt(a,o),gn(a.x,d.offset.x),gn(a.y,d.offset.y))}return a}applyTransform(o,a=!1,l){var u,d;const c=l||Re();Vt(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&&(gn(c.x,-f.scroll.offset.x),gn(c.y,-f.scroll.offset.y)),Xr(f.latestValues)&&Yl(c,f.latestValues,(u=f.layout)==null?void 0:u.layoutBox)}return Xr(this.latestValues)&&Yl(c,this.latestValues,(d=this.layout)==null?void 0:d.layoutBox),c}removeTransform(o){var l;const a=Re();Vt(a,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!Xr(u.latestValues))continue;let d;u.instance&&(wf(u.latestValues)&&u.updateSnapshot(),d=Re(),Vt(d,u.measurePageBox())),Ev(a,u.latestValues,(l=u.snapshot)==null?void 0:l.layoutBox,d)}return Xr(this.latestValues)&&Ev(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!==Ue.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=Ue.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=Re(),this.targetWithTransforms=Re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pL(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Vt(this.target,this.layout.layoutBox),sk(this.target,this.targetDelta)):Vt(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||wf(this.parent.latestValues)||rk(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=Re(),this.relativeTargetOrigin=Re(),Uc(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Vt(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 263
263(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ue.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;Vt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;zI(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=Re());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vv(this.prevProjectionDelta.x,this.projectionDelta.x),vv(this.prevProjectionDelta.y,this.projectionDelta.y)),Mo(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Av(this.projectionDelta.x,this.prevProjectionDelta.x)||!Av(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=li(),this.projectionDelta=li(),this.projectionDeltaWithTransform=li()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=li();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Re(),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(HL));this.animationProgress=0;let w;this.mixTargetDelta=S=>{const k=S/1e3;Mv(d.x,o.x,k),Mv(d.y,o.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Uc(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),zL(this.relativeTarget,this.relativeTargetOrigin,h,k),w&&vL(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Re()),Vt(w,this.relativeTarget)),v&&(this.animationValues=u,bL(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&&(Mr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{Xl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Fi(0)),this.motionValue.jump(0,!1),this.currentAnimation=EL(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(AL),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&&Sk(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Re();const d=et(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=et(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Vt(a,l),Yl(a,u),Mo(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new PL),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 263
263resetSkewAndRotation(){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&&Pd("z",o,c,this.animationValues);for(let u=0;u<_d.length;u++)Pd(`rotate${_d[u]}`,o,c,this.animationValues),Pd(`skew${_d[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=Ql(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=Ql(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Xr(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=wL(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 bf){if(u[g]===void 0)continue;const{correct:v,applyTo:x,isCSSVariable:m}=bf[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?Ql(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(Ov),this.root.sharedNodes.clear()}}}function jL(e){e.updateLayout()}function NL(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")dn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=et(h);h.min=r[d].min,h.max=h.min+f});else if(i==="x"||i==="y"){const d=i==="x"?"y":"x";Sf(o?t.measuredBox[d]:t.layoutBox[d],r[d])}else Sk(i,t.layoutBox,r)&&dn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=et(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=li();Mo(a,r,t.layoutBox);const l=li();o?Mo(l,e.applyTransform(s,!0),t.measuredBox):Mo(l,r,t.layoutBox);const c=!gk(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=Re();Uc(v,t.layoutBox,h.layoutBox,g);const x=Re();Uc(x,r,f.layoutBox,g),yk(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 OL(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 IL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function LL(e){e.clearSnapshot()}function Ov(e){e.clearMeasurements()}function ML(e){e.isLayoutDirty=!0,e.updateLayout()}function Iv(e){e.isLayoutDirty=!1}function DL(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function $L(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Lv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function UL(e){e.resolveTargetDelta()}function FL(e){e.calcProjection()}
263function BL(e){e.resetSkewAndRotation()}function VL(e){e.removeLeadSnapshot()}function Mv(e,t,n){e.translate=fe(t.translate,0,n),e.scale=fe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dv(e,t,n,r){e.min=fe(t.min,n.min,r),e.max=fe(t.max,n.max,r)}function zL(e,t,n,r){Dv(e.x,t.x,n.x,r),Dv(e.y,t.y,n.y,r)}function HL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const WL={duration:.45,ease:[.4,0,.1,1]},$v=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Uv=$v("applewebkit/")&&!$v("chrome/")?Math.round:Ot;function Fv(e){e.min=Uv(e.min),e.max=Uv(e.max)}function KL(e){Fv(e.x),Fv(e.y)}function Sk(e,t,n){return e==="position"||e==="preserve-aspect"&&!fL(Pv(t),Pv(n),.2)}function qL(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const GL=bk({attachResizeListener:(e,t)=>fa(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}),Ad={current:void 0},kk=bk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ad.current){const e=new GL({});e.mount(window),e.setOptions({layoutScroll:!0}),Ad.current=e}return Ad.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),_m=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Bv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function JL(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Bv(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():Bv(e[s],null)}}}}function YL(...e){return b.useCallback(JL(...e),e)}class QL extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Kl(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,s=Kl(r)&&r.offsetWidth||0,i=Kl(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 XL({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(_m),u=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),d=YL(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(`
264          [data-motion-pop-id="${o}"] {
265            position: absolute !important;
266            width: ${f}px !important;
267            height: ${g}px !important;
268            ${w}px !important;
269            ${S}px !important;
270          }
271        `),()=>{var T;(T=a.current)==null||T.removeAttribute("data-motion-pop-id"),E.contains(k)&&E.removeChild(k)}},[t]),p.jsx(QL,{isPresent:t,childRef:a,sizeRef:l,pop:i,children:i===!1?e:b.cloneElement(e,{ref:d})})}const ZL=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:l,root:c})=>{const u=rm(eM),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(XL,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),p.jsx(xu.Provider,{value:f,children:e})};function eM(){return new Map}function Ek(e=!0){const t=b.useContext(xu);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 pl=e=>e.key||"";function Vv(e){const t=[];
vendor: 8,843 bytes, line 271
271return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const Tk=({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]=Ek(o),h=b.useMemo(()=>Vv(e),[e]),f=o&&!u?[]:h.map(pl),g=b.useRef(!0),v=b.useRef(h),x=rm(()=>new Map),m=b.useRef(new Set),[y,w]=b.useState(h),[S,k]=b.useState(h);Q1(()=>{g.current=!1,v.current=h;for(let C=0;C<S.length;C++){const A=pl(S[C]);f.includes(A)?(x.delete(A),m.current.delete(A)):x.get(A)!==!0&&x.set(A,!1)}},[S,f.length,f.join("-")]);const E=[];if(h!==y){let C=[...h];for(let A=0;A<S.length;A++){const P=S[A],D=pl(P);f.includes(D)||(C.splice(A,0,P),E.push(P))}return i==="wait"&&E.length&&(C=E),k(Vv(C)),w(h),null}const{forceRender:T}=b.useContext(nm);return p.jsx(p.Fragment,{children:S.map(C=>{const A=pl(C),P=o&&!u?!1:h===S||f.includes(A),D=()=>{if(m.current.has(A))return;if(x.has(A))m.current.add(A),x.set(A,!0);else return;let L=!0;x.forEach(q=>{q||(L=!1)}),L&&(T==null||T(),k(v.current),o&&(d==null||d()),r&&r())};return p.jsx(ZL,{isPresent:P,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:P?void 0:D,anchorX:a,anchorY:l,children:C},A)})})},Ck=b.createContext({strict:!1}),zv={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 Hv=!1;function tM(){if(Hv)return;const e={};for(const t in zv)e[t]={isEnabled:n=>zv[t].some(r=>!!n[r])};ek(e),Hv=!0}function _k(){return tM(),UI()}function nM(e){const t=_k();for(const n in e)t[n]={...t[n],...e[n]};ek(t)}const rM=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 Fc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rM.has(e)}let Pk=e=>!Fc(e);function sM(e){typeof e=="function"&&(Pk=t=>t.startsWith("on")?!Fc(t):e(t))}try{sM(require("@emotion/is-prop-valid").default)}catch{}function iM(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||Fe(e[s])||(Pk(s)||n===!0&&Fc(s)||!t&&!Fc(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Tu=b.createContext({});function oM(e,t){if(Eu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ha(n)?n:void 0,animate:ha(r)?r:void 0}}return e.inherit!==!1?t:{}}function aM(e){const{initial:t,animate:n}=oM(e,b.useContext(Tu));return b.useMemo(()=>({initial:t,animate:n}),[Wv(t),Wv(n)])}function Wv(e){return Array.isArray(e)?e.join(" "):e}const Pm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ak(e,t,n){for(const r in t)!Fe(t[r])&&!ak(r,n)&&(e[r]=t[r])}function lM({transformTemplate:e},t){return b.useMemo(()=>{const n=Pm();return Tm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cM(e,t){const n=e.style||{},r={};return Ak(r,n,e),Object.assign(r,lM(e,t)),r}function uM(e,t){const n={},r=cM(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 Rk=()=>({...Pm(),attrs:{}});function dM(e,t,n,r){const s=b.useMemo(()=>{const i=Rk();return lk(i,t,uk(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 hM=["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 Am(e){return typeof e!="string"||e.includes("-")?!1:!!(hM.indexOf(e)>-1||/[A-Z]/u.test(e))}function fM(e,t,n,{latestValues:r},s,i=!1,o){const l=(o??Am(e)?dM:uM)(t,r,s,e),c=iM(t,typeof e=="string",i),u=e!==b.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=b.useMemo(()=>Fe(d)?d.get():d,[d]);return b.createElement(e,{...u,children:h})}function pM({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:mM(n,r,s,e),renderState:t()}}function mM(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=Ql(i[h]);let{initial:o,animate:a}=e;const l=Eu(e),c=XS(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"&&!ku(d)){const h=Array.isArray(d)?d:[d];for(let f=0;f<h.length;f++){const g=ym(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 jk=e=>(t,n)=>{const r=b.useContext(Tu),s=b.useContext(xu),i=()=>pM(e,t,r,s);return n?i():rm(i)},gM=jk({scrapeMotionValuesFromProps:Cm,createRenderState:Pm}),yM=jk({scrapeMotionValuesFromProps:dk,createRenderState:Rk}),vM=Symbol.for("motionComponentSymbol");function wM(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 Nk=b.createContext({});function zs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xM(e,t,n,r,s,i){var w,S;const{visualElement:o}=b.useContext(Tu),a=b.useContext(Ck),l=b.useContext(xu),c=b.useContext(_m),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(Nk);g&&!g.projection&&s&&(g.type==="html"||g.type==="svg")&&bM(h.current,n,s,v);const x=b.useRef(!1);b.useInsertionEffect(()=>{g&&x.current&&g.update(n,l)});const m=n[US],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 Q1(()=>{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 bM(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:Ok(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&zs(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function Ok(e){if(e)return e.options.allowProjection!==!1?e.projection:Ok(e.parent)}function Rd(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&nM(r);const i=n?n==="svg":Am(e),o=i?yM:gM;function a(c,u){let d;const h={...b.useContext(_m),...c,layoutId:SM(c)},{isStatic:f}=h,g=aM(c),v=o(c,f);if(!f&&typeof window<"u"){kM();const x=EM(h);d=x.MeasureLayout,g.visualElement=xM(e,v,h,s,x.ProjectionNode,i)}return p.jsxs(Tu.Provider,{value:g,children:[d&&g.visualElement?p.jsx(d,{visualElement:g.visualElement,...h}):null,fM(e,c,wM(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[vM]=e,l}function SM({layoutId:e}){const t=b.useContext(nm).id;return t&&e!==void 0?t+"-"+e:e}function kM(e,t){b.useContext(Ck).strict}function EM(e){const t=_k(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
vendor: 18,168 bytes, line 271
271function TM(e,t){if(typeof Proxy>"u")return Rd;const n=new Map,r=(i,o)=>Rd(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,Rd(o,void 0,e,t)),n.get(o))})}const CM=(e,t)=>t.isSVG??Am(e)?new nL(t):new YI(t,{allowProjection:e!==b.Fragment});class _M extends Br{constructor(t){super(t),t.animationState||(t.animationState=aL(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ku(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 PM=0;class AM extends Br{constructor(){super(...arguments),this.id=PM++,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=ys(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 RM={animation:{Feature:_M},exit:{Feature:AM}};function Da(e){return{point:{x:e.pageX,y:e.pageY}}}const jM=e=>t=>bm(t)&&e(t,Da(t));function Do(e,t,n,r){return fa(e,t,jM(n),r)}const Ik=({current:e})=>e?e.ownerDocument.defaultView:null,Kv=(e,t)=>Math.abs(e-t);function NM(e,t){const n=Kv(e.x,t.x),r=Kv(e.y,t.y);return Math.sqrt(n**2+r**2)}const qv=new Set(["auto","scroll"]);class Lk{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=ml(this.lastRawMoveEventInfo,this.transformPagePoint));const f=jd(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,v=NM(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!v)return;const{point:x}=f,{timestamp:m}=Ue;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=ml(g,this.transformPagePoint),le.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=jd(f.type==="pointercancel"?this.lastMoveEventInfo:ml(g,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,y),x&&x(f,y)},!bm(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=Da(t),c=ml(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=Ue;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,jd(c,this.history)),this.removeListeners=Ia(Do(this.contextWindow,"pointermove",this.handlePointerMove),Do(this.contextWindow,"pointerup",this.handlePointerUp),Do(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(qv.has(r.overflowX)||qv.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),le.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Mr(this.updatePoint)}}function ml(e,t){return t?{point:t(e.point)}:e}function Gv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function jd({point:e},t){return{point:e,delta:Gv(e,Mk(t)),offset:Gv(e,OM(t)),velocity:IM(t,.1)}}function OM(e){return e[0]}function Mk(e){return e[e.length-1]}function IM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Mk(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>ht(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>ht(t)*2&&(r=e[1]);const i=jt(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 LM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?fe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?fe(n,e,r.max):Math.min(e,n)),e}function Jv(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 MM(e,{top:t,left:n,bottom:r,right:s}){return{x:Jv(e.x,n,s),y:Jv(e.y,t,r)}}function Yv(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 DM(e,t){return{x:Yv(e.x,t.x),y:Yv(e.y,t.y)}}function $M(e,t){let n=.5;const r=et(e),s=et(t);return s>r?n=ua(t.min,t.max-r,e.min):r>s&&(n=ua(e.min,e.max-s,t.min)),Cn(0,1,n)}function UM(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 kf=.35;function FM(e=kf){return e===!1?e=0:e===!0&&(e=kf),{x:Qv(e,"left","right"),y:Qv(e,"top","bottom")}}function Qv(e,t,n){return{min:Xv(e,t),max:Xv(e,n)}}function Xv(e,t){return typeof e=="number"?e:e[t]||0}const BM=new WeakMap;class VM{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=Re(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=d=>{n&&this.snapToCursor(Da(d).point),this.stopAnimation()},o=(d,h)=>{const{drag:f,dragPropagation:g,onDragStart:v}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mI(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),dn(m=>{let y=this.getAxisMotionValue(m).get()||0;if(En.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[m];S&&(y=et(S)*(parseFloat(y)/100))}}this.originPoint[m]=y}),v&&le.update(()=>v(d,h),!1,!0),pf(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=HM(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&&le.update(()=>x(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Lk(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Ik(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&le.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!gl(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=LM(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&zs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=MM(r.layoutBox,t):this.constraints=!1,this.elastic=FM(n),s!==this.constraints&&!zs(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&dn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=UM(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!zs(t))return!1;const r=t.current;$i(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=HI(r,s.root,this.visualElement.getTransformPagePoint());let o=DM(s.layout.layoutBox,i);if(n){const a=n(BI(o));this.hasMutatedConstraints=!!a,a&&(o=nk(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=dn(u=>{if(!gl(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 pf(this.visualElement,t),r.start(gm(t,r,0,n,this.visualElement,!1))}stopAnimation(){dn(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){dn(n=>{const{drag:r}=this.getProps();if(!gl(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]-fe(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!zs(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};dn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=$M({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(),dn(o=>{if(!gl(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(fe(l,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;BM.set(this.visualElement,this);const t=this.visualElement.current,n=Do(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),h=c.target,f=h!==t&&bI(h);u&&d&&!f&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();zs(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=zM(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),le.read(s);const a=fa(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(dn(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=kf,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Zv(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function zM(e,t,n){const r=ov(e,Zv(n)),s=ov(t,Zv(n));return()=>{r(),s()}}function gl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function HM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class WM extends Br{constructor(t){super(t),this.removeGroupControls=Ot,this.removeListeners=Ot,this.controls=new VM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ot}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 Nd=e=>(t,n)=>{e&&le.update(()=>e(t,n),!1,!0)};class KM extends Br{constructor(){super(...arguments),this.removePointerDownListener=Ot}onPointerDown(t){this.session=new Lk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ik(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Nd(t),onStart:Nd(n),onMove:Nd(r),onEnd:(i,o)=>{delete this.session,s&&le.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Do(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 Od=!1;class qM 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),Od&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Xl.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}),Od=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||le.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),xm.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Od=!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 Dk(e){const[t,n]=Ek(),r=b.useContext(nm);return p.jsx(qM,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(Nk),isPresent:t,safeToRemove:n})}const GM={pan:{Feature:KM},drag:{Feature:WM,ProjectionNode:kk,MeasureLayout:Dk}};function e0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&le.postRender(()=>i(t,Da(t)))}class JM extends Br{mount(){const{current:t}=this.node;t&&(this.unmount=yI(t,(n,r)=>(e0(this.node,r,"Start"),s=>e0(this.node,s,"End"))))}unmount(){}}class YM extends Br{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=Ia(fa(this.node.current,"focus",()=>this.onFocus()),fa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}
271function t0(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&le.postRender(()=>i(t,Da(t)))}class QM extends Br{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=kI(t,(s,i)=>(t0(this.node,i,"Start"),(o,{success:a})=>t0(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Ef=new WeakMap,Id=new WeakMap,XM=e=>{const t=Ef.get(e.target);t&&t(e)},ZM=e=>{e.forEach(XM)};function eD({root:e,...t}){const n=e||document;Id.has(n)||Id.set(n,{});const r=Id.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(ZM,{root:e,...t})),r[s]}function tD(e,t,n){const r=eD(t);return Ef.set(e,n),r.observe(e),()=>{Ef.delete(e),r.unobserve(e)}}const nD={some:0,all:1};class rD extends Br{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:nD[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=tD(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(sD(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function sD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const iD={inView:{Feature:rD},tap:{Feature:QM},focus:{Feature:YM},hover:{Feature:JM}},oD={layout:{ProjectionNode:kk,MeasureLayout:Dk}},aD={...RM,...iD,...GM,...oD},B=TM(aD,CM),lD=Mb("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"}}),tt=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?E_:"button";return p.jsx(o,{className:Mt(lD({variant:t,size:n,className:e})),ref:i,...s})});tt.displayName="Button";const cD="/assets/logo-BC095VTI.png",n0=[{to:"/",label:"Home"},{to:"/about",label:"About"},{to:"/mind-mapping",label:"Mind Mapping"},{to:"/life-coaching",label:"Life Coaching"},{to:"/outschool",label:"Outschool"},{to:"/community-outreach",label:"Community Outreach"},{to:"/contact",label:"Contact"}],uD=()=>{const[e,t]=b.useState(!1),n=Fr();return p.jsxs("nav",{className:"sticky top-0 z-50 bg-background/80 backdrop-blur-lg border-b border-border",children:[p.jsxs("div",{className:"container mx-auto px-6 py-3 flex items-center justify-between",children:[p.jsxs(Rt,{to:"/",className:"flex items-center gap-3",children:[p.jsx("img",{src:cD,alt:"Future Trends Educational Consulting",className:"h-10 w-10 object-contain"}),p.jsx("span",{className:"font-serif text-2xl font-bold text-foreground tracking-tight",children:"Future Trends"})]}),p.jsxs("div",{className:"hidden md:flex items-center gap-8",children:[n0.map(r=>p.jsxs(Rt,{to:r.to,className:Mt("text-sm font-medium tracking-wide transition-colors hover:text-primary relative py-1",n.pathname===r.to?"text-primary":"text-muted-foreground"),children:[r.label,n.pathname===r.to&&p.jsx(B.div,{layoutId:"activeNav",className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-primary rounded-full"})]},r.to)),p.jsx("div",{className:"flex items-center gap-3 ml-2 pl-4 border-l border-border",children:[{href:"https://www.facebook.com/nusrihassam13",icon:$b,label:"Facebook"}
271,{href:"http://www.linkedin.com/in/nusri-hassam-25896134",icon:Bb,label:"LinkedIn"},{href:"https://www.instagram.com/futuretrendseducation",icon:Ub,label:"Instagram"},{href:"https://outschool.com/teachers/Nusri-Hassam#usEyCBI7ch",icon:null,label:"Outschool"}].map(r=>p.jsx("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-primary transition-colors","aria-label":r.label,children:r.icon?p.jsx(r.icon,{size:16}):p.jsx("span",{className:"text-xs font-bold leading-none tracking-tight",children:"OS"})},r.label))})]}),p.jsx("button",{className:"md:hidden text-foreground",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?p.jsx(Wb,{size:24}):p.jsx(RP,{size:24})})]}),p.jsx(Tk,{children:e&&p.jsx(B.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"md:hidden overflow-hidden bg-background border-b border-border",children:p.jsx("div",{className:"px-6 py-4 flex flex-col gap-3",children:n0.map(r=>p.jsx(Rt,{to:r.to,onClick:()=>t(!1),className:Mt("text-sm font-medium py-2 transition-colors",n.pathname===r.to?"text-primary":"text-muted-foreground"),children:r.label},r.to))})})})]})},dD=()=>p.jsx("footer",{className:"bg-foreground text-background py-12",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsxs("div",{className:"flex flex-col items-center gap-6 text-center",children:[p.jsxs("div",{children:[p.jsx("h3",{className:"font-serif text-xl font-semibold mb-1",children:"Future Trends"}),p.jsx("p",{className:"text-sm opacity-70",children:"Educational Consulting"})]}),p.jsxs("div",{className:"flex items-center gap-5",children:[p.jsx("a",{href:"https://www.facebook.com/nusrihassam13",target:"_blank",rel:"noopener noreferrer",className:"opacity-60 hover:opacity-100 transition-opacity","aria-label":"Facebook",children:p.jsx($b,{size:20})}),p.jsx("a",{href:"http://www.linkedin.com/in/nusri-hassam-25896134",target:"_blank",rel:"noopener noreferrer",className:"opacity-60 hover:opacity-100 transition-opacity","aria-label":"LinkedIn",children:p.jsx(Bb,{size:20})}),p.jsx("a",{href:"https://www.instagram.com/futuretrendseducation",target:"_blank",rel:"noopener noreferrer",className:"opacity-60 hover:opacity-100 transition-opacity","aria-label":"Instagram",children:p.jsx(Ub,{size:20})}),p.jsx("a",{href:"https://outschool.com/teachers/Nusri-Hassam#usEyCBI7ch",target:"_blank",rel:"noopener noreferrer",className:"opacity-60 hover:opacity-100 transition-opacity","aria-label":"Outschool",children:p.jsx("span",{className:"text-sm font-bold leading-none tracking-tight",children:"OS"})})]}),p.jsxs("div",{className:"text-sm opacity-60",children:[p.jsxs("p",{children:["© ",new Date().getFullYear()," Future Trends Educational Consulting"]}),p.jsx("p",{children:"[email protected]"})]})]})})}),Vr=({children:e})=>p.jsxs("div",{className:"min-h-screen flex flex-col",children:[p.jsx(uD,{}),p.jsx("main",{className:"flex-1",children:e}),p.jsx(dD,{})]}),Ld="https://future-trends-edu.lovable.app",yl="Future Trends Educational Consulting",r0="https://pub-bb2e103a32db4e198524a2e9ed8f35b4.r2.dev/6c1059b0-1d6d-48c4-bd20-e57db3631103/id-preview-87b24562--fb11038a-55a2-4aa3-a708-5cda77d42b8b.lovable.app-1772564312888.png",Ps=({title:e,description:t,canonical:n,type:r="website",jsonLd:s})=>{const i=e===yl?e:`${e} | ${yl}`,o=n?`${Ld}${n}`:Ld,a={"@context":"https://schema.org","@type":"EducationalOrganization",name:yl,url:Ld,description:"Personalized educational consulting, mind mapping classes, life coaching, and mentoring services by Nusri Hassam, B.Ed., M.Ed. UBC.",founder:{"@type":"Person",name:"Nusri Hassam",jobTitle:"Educational Consultant",alumniOf:{"@type":"CollegeOrUniversity",name:"University of British Columbia"}},areaServed:["Canada","International"],sameAs:["https://www.facebook.com/nusrihassam13","http://www.linkedin.com/in/nusri-hassam-25896134","https://www.instagram.com/futuretrendseducation","https://outschool.com/teachers/Nusri-Hassam#usEyCBI7ch"]};return p.jsxs(y_,{children:[p.jsx("title",{children:i}),p.jsx("meta",{name:"description",content:t}),p.jsx("link",{rel:"canonical",href:o}),p.jsx("meta",{property:"og:type",content:r}),p.jsx("meta",{property:"og:title",content:i}),p.jsx("meta",{property:"og:description",content:t}),p.jsx("meta",{property:"og:url",content:o}),p.jsx("meta",{property:"og:site_name",content:yl}),p.jsx("meta",{property:"og:image",content:r0}),p.jsx("meta",{property:"og:locale",content:"en_CA"}),p.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),p.jsx("meta",{name:"twitter:title",content:i}),p.jsx("meta",{name:"twitter:description",content:t}),p.jsx("meta",{name:"twitter:image",content:r0}),p.jsx("meta",{name:"author",content:"Nusri Hassam"}),p.jsx("meta",{name:"robots",content:"index, follow"}),p.jsx("script",{type:"application/ld+json",children:JSON.stringify(s||a)})]})},hD="/assets/nusri-headshot-D_4HZ8PL.jpg",vl={hidden:{opacity:0,y:30},visible:e=>({opacity:1,y:0,transition:{delay:e*.15,duration:.6,ease:[.25,.46,.45,.94]}})}
271,fD=[{icon:EP,label:"40+ years combined experience"},{icon:Hi,label:"Programs across 4 continents"},{icon:du,label:"CEFR & inquiry-based aligned"}],pD=[{icon:OP,title:"Schools & School Systems",description:"Seeking measurable improvement in English and academic performance."},{icon:Bp,title:"Educational Organizations & NGOs",description:"Running large-scale learning programs that need results."},{icon:Up,title:"Parents",description:"Looking for high-quality enrichment and language support for their children."},{icon:du,title:"Teachers & Leaders",description:"Who want effective, practical professional development."}],mD=[{icon:Dp,title:"English Language Programs (EAL / ESL)",points:["Speaking & writing-focused, CEFR-aligned instruction","Impactful programs for students and professionals","Online, blended, and in-person delivery in Vancouver Lower Mainland"]},{icon:Vb,title:"Educational Technology Integration",points:["Selecting and implementing the right ed-tech, not more tech","Teacher training and adoption support","Pilot design, evaluation, and scaling","Incorporating gamification to make learning fun for anyone"]},{icon:Fb,title:"Project-Based & Inquiry-Based Learning",points:["Hands-on, interdisciplinary learning","Critical thinking, communication, and collaboration","Engaging programs for children and youth"]},{icon:kP,title:"Consulting & Program Design",points:["Needs analysis and diagnostics","Curriculum and assessment design","Monitoring, evaluation, and improvement planning"]}],gD=[{icon:LP,title:"Real-World Experience",description:"Decades of real classroom, leadership, and consulting experience, not theory alone."},{icon:Hb,title:"Results-Focused",description:"Programs designed to show impact through measurable progress, not just participation."},{icon:Hi,title:"Global Perspective",description:"Successfully worked across cultures, countries, and education systems."},{icon:ja,title:"Practical & Human-Centered",description:"Balancing technology with pedagogy, relationships, and real-world constraints."}],yD=["Improved English proficiency by at least one CEFR level in pilot programs","Successful technology-enabled language initiatives for students and teachers","Strong engagement and retention through project-based learning models"],vD=[{icon:jP,title:"Free Consultation",description:"We understand your goals and challenges"},{icon:CP,title:"Custom Plan",description:"Tailored program or solution"},{icon:Fp,title:"Implementation",description:"Clear timelines, training, and support"},{icon:SP,title:"Measure Results",description:"Track progress and refine"}],wD=()=>p.jsxs(Vr,{children:[p.jsx(Ps,{title:"Future Trends Educational Consulting | Nusri Hassam",description:"Proven educational consulting, English language programs, mind mapping, ed-tech integration, and life coaching by Nusri Hassam, B.Ed., M.Ed. UBC. Serving schools, organizations, and families worldwide.",canonical:"/"}),p.jsx("section",{className:"relative overflow-hidden bg-peach",children:p.jsx("div",{className:"container mx-auto px-6 py-20 md:py-28",children:p.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-12 md:gap-16",children:[p.jsxs(B.div,{className:"flex-1 text-center md:text-left",initial:"hidden",animate:"visible",children:[p.jsxs(B.h1,{custom:0,variants:vl,className:"font-serif text-3xl md:text-4xl lg:text-5xl font-bold text-foreground leading-tight mb-6",children:["Future Trends",p.jsx("br",{}),"Educational Consulting & Mentoring"]}),p.jsx(B.p,{custom:1,variants:vl,className:"text-lg md:text-xl text-muted-foreground max-w-2xl leading-relaxed mb-10",children:"Proven Technology and AI-Driven Learning with Impact that Delivers Real Results"}),p.jsx(B.p,{custom:2,variants:vl,className:"text-base text-muted-foreground max-w-lg mx-auto md:mx-0 leading-relaxed",children:"We help schools, organizations, and learners improve English proficiency, academic outcomes, and confidence through proven teaching expertise and smart educational technology incorporating AI for adaptive and customized learning."}),p.jsx(B.div,{custom:3,variants:vl,className:"mt-8 flex flex-wrap gap-4 justify-center md:justify-start",children:p.jsx(tt,{asChild:!0,size:"lg",className:"rounded-full px-8",children:p.jsxs(Rt,{to:"/contact",children:["Book a Free Consultation ",p.jsx(Sn,{className:"ml-2",size:16})]})})})]}),p.jsxs(B.div,{className:"flex-shrink-0",initial:{opacity:0,scale:.9}
271,animate:{opacity:1,scale:1},transition:{delay:.3,duration:.7},children:[p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"w-56 h-56 md:w-72 md:h-72 rounded-full overflow-hidden border-4 border-background shadow-2xl",children:p.jsx("img",{src:hD,alt:"Nusri Hassam - Educational Consultant",className:"w-full h-full object-cover"})}),p.jsx("div",{className:"absolute -bottom-4 left-1/2 -translate-x-1/2 bg-background rounded-full px-5 py-2 shadow-lg",children:p.jsx("p",{className:"text-xs font-semibold text-foreground whitespace-nowrap",children:"Nusri Hassam, B.Ed., M.Ed. UBC"})})]}),p.jsx("div",{className:"mt-8 text-center",children:p.jsx(tt,{asChild:!0,variant:"outline",size:"lg",className:"rounded-full px-8",children:p.jsx(Rt,{to:"/about",children:"Learn More About Nusri"})})})]})]})})}),p.jsx("section",{className:"bg-foreground py-5",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsx("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-6 sm:gap-12",children:fD.map((e,t)=>p.jsxs(B.div,{className:"flex items-center gap-3",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.5+t*.1},children:[p.jsx(e.icon,{size:18,className:"text-primary-foreground/70 flex-shrink-0"}),p.jsx("span",{className:"text-primary-foreground/90 text-sm font-medium",children:e.label})]},e.label))})})}),p.jsx("section",{className:"py-20 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[p.jsxs(B.div,{className:"text-center mb-12",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[p.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-bold mb-4",children:"Who We Work With"}),p.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"We partner with organizations and individuals committed to meaningful learning outcomes."})]}),p.jsx("div",{className:"space-y-0 divide-y divide-border",children:pD.map((e,t)=>p.jsxs(B.div,{className:"flex items-center gap-4 py-5",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:t*.08},children:[p.jsx(e.icon,{size:20,className:"text-primary flex-shrink-0"}),p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-baseline sm:gap-2",children:[p.jsx("h3",{className:"font-serif text-lg font-semibold",children:e.title}),p.jsx("span",{className:"hidden sm:inline text-muted-foreground",children:"—"}),p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.description})]})]},e.title))})]})}),p.jsx("section",{className:"py-20 bg-card",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-3xl",children:[p.jsx(B.h2,{className:"font-serif text-3xl md:text-4xl font-bold text-center mb-14",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:"What We Offer"}),p.jsx("div",{className:"space-y-12",children:mD.map((e,t)=>p.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.08},children:[p.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[p.jsx("div",{className:"w-px h-6 bg-primary"}),p.jsx(e.icon,{size:18,className:"text-primary"}),p.jsx("h3",{className:"font-serif text-xl font-semibold",children:e.title})]}),p.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed pl-10",children:e.points.join(" · ")})]},e.title))}),p.jsx(B.div,{className:"text-center mt-14",initial:{opacity:0}
271,whileInView:{opacity:1},viewport:{once:!0},children:p.jsx(tt,{asChild:!0,variant:"outline",size:"lg",className:"rounded-full px-8",children:p.jsxs(Rt,{to:"/contact",children:["Request a Proposal ",p.jsx(Sn,{className:"ml-2",size:16})]})})})]})}),p.jsx("section",{className:"py-20 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-3xl",children:[p.jsx(B.h2,{className:"font-serif text-3xl md:text-4xl font-bold text-center mb-14",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:"Why Choose Future Trends?"}),p.jsx("div",{className:"grid sm:grid-cols-2 gap-6",children:gD.map((e,t)=>p.jsxs(B.div,{className:"bg-card rounded-xl p-6 border border-border/50",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.08},children:[p.jsx(e.icon,{size:24,className:"text-primary mb-3"}),p.jsx("h3",{className:"font-serif text-lg font-semibold mb-2",children:e.title}),p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.description})]},e.title))})]})}),p.jsx("section",{className:"py-20 bg-peach",children:p.jsx("div",{className:"container mx-auto px-6 max-w-3xl",children:p.jsxs(B.div,{className:"text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[p.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-bold mb-10",children:"Proven Impact"}),p.jsx("div",{className:"space-y-4 text-left",children:yD.map((e,t)=>p.jsxs(B.div,{className:"flex items-start gap-4 bg-background/60 backdrop-blur-sm rounded-lg p-5",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:t*.1},children:[p.jsx($p,{size:20,className:"text-primary flex-shrink-0 mt-0.5"}),p.jsx("span",{className:"text-foreground leading-relaxed",children:e})]},t))}),p.jsx("p",{className:"text-sm text-muted-foreground mt-6 italic",children:"Detailed case studies available on request."})]})})}),p.jsx("section",{className:"py-20 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[p.jsx(B.h2,{className:"font-serif text-3xl md:text-4xl font-bold text-center mb-14",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:"How It Works"}),p.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-8",children:vD.map((e,t)=>p.jsxs(B.div,{className:"text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},children:[p.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:p.jsx(e.icon,{size:24,className:"text-primary"})}),p.jsxs("span",{className:"font-serif text-sm font-bold text-primary mb-1 block",children:["Step ",t+1]}),p.jsx("h3",{className:"font-serif text-lg font-semibold mb-1",children:e.title}),p.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]},e.title))})]})}),p.jsx("section",{className:"py-24 bg-peach",children:p.jsx("div",{className:"container mx-auto px-6 text-center",children:p.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[p.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-bold mb-4",children:"Ready to Improve Learning Outcomes?"}),p.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto mb-3 text-lg",children:"Whether you're a school leader, parent, or organization, we'd love to explore how we can support your goals."}),p.jsx("p",{className:"text-muted-foreground mb-8 font-medium",children:"Start with a free 15-minute consultation."}),p.jsx(tt,{asChild:!0,size:"lg",className:"rounded-full px-8",children:p.jsxs(Rt,{to:"/contact",children:["Book Your Free Strategy Call",p.jsx(Sn,{className:"ml-2",size:16})]})})]})})})]}),xD="/assets/mind-map-example-SZGM42Ao.jpg",bD=()=>{const e=["Memory & idea generation","Brainstorming & problem solving","Note taking during meetings & school","Book summaries, reports & reviews","Project management & presentations","Setting life, work, or school goals","Business plans & simplifying complex ideas","Research, sourcing & systemizing"],t=[{text:"This class was great! It gave me another tool to help with projects, essays planning and decision making. I highly recommend any students going into Middle school or High School to take this class.",author:"Natalie L."},{text:"The course has taught me how to focus on the key words and get detailed information without having to write everything. Nusri is an excellent instructor who taught the skills in an interactive way.",author:"Nazlin W."}];return p.jsxs(Vr,{children:[p.jsx(Ps,{title:"Mind Mapping Classes",description:"Learn mind mapping from a licensed Tony Buzan instructor. Boost memory, creativity, and study skills with proven visual thinking techniques for students and professionals.",canonical:"/mind-mapping",jsonLd:{"@context":"https://schema.org","@type":"Course",name:"Mind Mapping Classes",description:"Learn mind mapping techniques from a licensed Tony Buzan instructor.",provider:{"@type":"Organization",name:"Future Trends Educational Consulting"}}}),p.jsx("section",{className:"bg-peach py-16 md:py-24",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsx(B.h1,{className:"font-serif text-4xl md:text-5xl font-bold text-center mb-6",initial:{opacity:0,y:20}
271,animate:{opacity:1,y:0},children:"Learn Mind Mapping"}),p.jsx(B.p,{className:"text-center text-muted-foreground max-w-2xl mx-auto text-lg",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},children:"A brain-friendly way to take notes along with using your creativity."})]})}),p.jsx("section",{className:"py-16 bg-background",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-12",children:[p.jsx(B.div,{className:"lg:w-1/2",initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:p.jsx("img",{src:xD,alt:"Mind Map example showing various uses",className:"rounded-xl shadow-lg w-full"})}),p.jsxs(B.div,{className:"lg:w-1/2",initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[p.jsx("h2",{className:"font-serif text-3xl font-bold mb-4",children:"Your Enjoyable Mind Mapping Experience"}),p.jsx("p",{className:"text-muted-foreground mb-4 leading-relaxed",children:"Nusri Hassam is a Licensed Instructor in Mind Mapping trained by the world famous Mr. Tony Buzan. She has taught students from ECE to higher education and specializes with gifted students."}),p.jsx("p",{className:"text-muted-foreground mb-6 leading-relaxed",children:"Mind Maps are really fun especially for artistic and right brain learners, or anyone who does NOT want to use many words in their note taking. They use both sides of your brain with images and colors. Very easy to learn, create, and present from."}),p.jsx("p",{className:"text-muted-foreground mb-2 leading-relaxed",children:"She teaches adults to create their first two mind maps within an hour."})]})]})})}),p.jsx("section",{className:"py-16 bg-card",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsx("h2",{className:"font-serif text-3xl font-bold text-center mb-10",children:"Use Mind Maps For"}),p.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-4 max-w-4xl mx-auto",children:e.map((n,r)=>p.jsxs(B.div,{className:"flex items-start gap-3 bg-background rounded-lg p-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.05},children:[p.jsx($p,{size:18,className:"text-primary mt-0.5 flex-shrink-0"}),p.jsx("span",{className:"text-sm",children:n})]},n))})]})}),p.jsx("section",{className:"py-16 bg-background",children:p.jsx("div",{className:"container mx-auto px-6 max-w-2xl",children:p.jsxs(B.div,{className:"bg-peach rounded-2xl p-8 md:p-12 text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[p.jsx("h2",{className:"font-serif text-3xl font-bold mb-6",children:"Class Information"}),p.jsxs("div",{className:"space-y-3 text-muted-foreground mb-6",children:[p.jsx("p",{className:"text-lg font-semibold text-foreground",children:"60 Minutes — $25 per session"}),p.jsx("p",{children:"Minimum 3 students per class"}),p.jsx("p",{children:"Attend a free 30-minute webinar first!"}),p.jsx("p",{className:"text-sm",children:"Have some unlined paper and 6 or more medium felt pens or markers."})]}),p.jsx("div",{className:"space-y-3",children:p.jsx("p",{className:"text-sm text-muted-foreground",children:"All former students have access to future classes as a refresher. Pre-arranged permission needed."})}),p.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row gap-3 justify-center",children:[p.jsx(tt,{asChild:!0,size:"lg",className:"rounded-full px-8",children:p.jsxs(Rt,{to:"/contact",children:["Get Started ",p.jsx(Sn,{className:"ml-2",size:16})]})}),p.jsx(tt,{asChild:!0,variant:"outline",size:"lg",className:"rounded-full px-8",children:p.jsx("a",{href:"mailto:[email protected]",children:"Email Nusri"})})]})]})})}),p.jsx("section",{className:"py-16 bg-card",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsx("h2",{className:"font-serif text-3xl font-bold text-center mb-10",children:"Student Reviews"}),p.jsx("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:t.map((n,r)=>p.jsxs(B.div,{className:"bg-background rounded-xl p-8 shadow-sm",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},children:[p.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(5)].map((s,i)=>p.jsx(zb,{size:16,className:"fill-primary text-primary"},i))}),p.jsxs("p",{className:"text-muted-foreground italic leading-relaxed mb-4",children:['"',n.text,'"']}),p.jsxs("p",{className:"text-sm font-semibold text-foreground",children:["— ",n.author]})]},r))}),p.jsx("p",{className:"text-center text-sm text-muted-foreground mt-8",children:"194 total reviews · 211 completed classes at Outschool.com"})]})})]})},SD="/assets/nusri-about-CzsuzWTq.jpg",kD=["B.Ed. & M.Ed., University of British Columbia","Professional Teaching Certificate","Licensed Mind Mapping Instructor, trained by Tony Buzan","20+ years of experience in education","11 years of online teaching with SelfDesign.org"],ED=[{icon:_P,title:"Homeschool Families",description:"Navigate curriculum choices, planning, and learning strategies that work for your child."},{icon:xP,title:"Struggling Math Learners",description:"Rebuild core skills and confidence with individualized support in a patient, focused environment."},{icon:TP,title:"Families Seeking Clarity",description:"Get actionable advice on your child's academic path, learning style, and next steps."}],TD=()=>p.jsxs(Vr,{children:[p.jsx(Ps,{title:"About Nusri Hassam",description:"Meet Nusri Hassam, B.Ed., M.Ed. UBC — educational consultant with 20+ years of experience in teaching, curriculum design, and ed-tech integration across four continents.",canonical:"/about",jsonLd:{"@context":"https://schema.org","@type":"Person",name:"Nusri Hassam",jobTitle:"Educational Consultant",description:"B.Ed., M.Ed. UBC — 20+ years in education, curriculum design, and ed-tech.",alumniOf:{"@type":"CollegeOrUniversity",name:"University of British Columbia"},url:"https://future-trends-edu.lovable.app/about"}}),p.jsx("section",{className:"bg-primary text-primary-foreground py-4",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsxs(B.div,{className:"flex flex-col sm:flex-row items-center justify-center gap-3 text-center sm:text-left",initial:{opacity:0,y:-10}
271,animate:{opacity:1,y:0},children:[p.jsx(Dp,{size:20,className:"flex-shrink-0"}),p.jsx("p",{className:"text-sm md:text-base font-medium",children:"Co-author of an upcoming book - releasing on or before Sept 13, 2026!"}),p.jsx("a",{href:"https://gofund.me/62909d379",target:"_blank",rel:"noopener noreferrer",children:p.jsxs(tt,{size:"sm",variant:"secondary",className:"rounded-full whitespace-nowrap",children:["Support on GoFundMe ",p.jsx(Sn,{size:14,className:"ml-1"})]})})]})})}),p.jsx("section",{className:"bg-peach py-16 md:py-24",children:p.jsxs("div",{className:"container mx-auto px-6 text-center",children:[p.jsx(B.h1,{className:"font-serif text-4xl md:text-5xl font-bold mb-3",initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:"Meet Nusri Hassam"}),p.jsx(B.p,{className:"text-lg text-muted-foreground",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:"M.Ed., B.Ed. Certified Teacher"})]})}),p.jsx("section",{className:"py-16 bg-background",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsxs("div",{className:"flex flex-col lg:flex-row items-start gap-12 max-w-5xl mx-auto",children:[p.jsx(B.div,{className:"lg:w-2/5",initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:p.jsx("img",{src:SD,alt:"Nusri Hassam",className:"rounded-xl shadow-lg w-full max-w-xs mx-auto"})}),p.jsxs(B.div,{className:"lg:w-3/5",initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[p.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg mb-6",children:"With over 20 years of experience in education, Nusri supports students and families with expert, practical guidance across ECE, K-12, homeschooling, and higher education. She holds a Professional Teaching Certificate along with a B.Ed. and M.Ed. from the University of British Columbia."}),p.jsxs("p",{className:"text-muted-foreground leading-relaxed text-lg mb-6",children:["Nusri has worked extensively with homeschooling families through her own consulting practice, offering personalized support on curriculum choices, learning goals, and family-specific educational needs. She is a Remedial Math Learning Specialist at"," ",p.jsx("a",{href:"https://fraseracademy.ca/who-we-are/meet-the-team/team-members/nusri-hassam/",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline hover:text-primary/80",children:"Fraser Academy"})," and currently teaches at"," ",p.jsx("a",{href:"https://outschool.com/teachers/Nusri-Hassam?signup=true&usid=EyCBI7ch",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline hover:text-primary/80",children:"Outschool"}),"."]}),p.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg mb-6",children:"Nusri was an online teacher with SelfDesign.org for 11 years. In addition to her teaching career, Nusri is a co-author and a Licensed Mind Mapping Instructor trained by Tony Buzan, she teaches learners of all ages to enhance their study and organization skills, memory, and comprehension."}),p.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg",children:"Whether you're navigating the world of homeschooling or seeking help for a struggling learner, Nusri brings both experience and tailored strategies to every consultation."})]})]})})}),p.jsx("section",{className:"py-16 bg-card",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-3xl",children:[p.jsx(B.h2,{className:"font-serif text-3xl md:text-4xl font-bold text-center mb-10",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:"Credentials"}),p.jsx("div",{className:"space-y-4",children:kD.map((e,t)=>p.jsxs(B.div,{className:"flex items-center gap-4 bg-background rounded-lg p-4",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:t*.08},children:[p.jsx($p,{size:20,className:"text-primary flex-shrink-0"}),p.jsx("span",{className:"text-foreground",children:e})]},t))})]})}),p.jsx("section",{className:"py-16 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[p.jsx(B.h2,{className:"font-serif text-3xl md:text-4xl font-bold text-center mb-12",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:"Who Nusri Helps"}),p.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:ED.map((e,t)=>p.jsxs(B.div,{className:"bg-card rounded-xl p-6 text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},children:[p.jsx(e.icon,{size:32,className:"text-primary mx-auto mb-4"}),p.jsx("h3",{className:"font-serif text-lg font-semibold mb-2",children:e.title}),p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.description})]},e.title))})]})}),p.jsx("section",{className:"py-20 bg-peach",children:p.jsx("div",{className:"container mx-auto px-6 text-center",children:p.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[p.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-bold mb-4",children:"Ready to Improve Learning Outcomes?"}),p.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto mb-3 text-lg",children:"Whether you're looking for guidance on homeschooling, academic supp
271ort for your child, or strategies to help a learner overcome challenges, Nusri offers practical, expert solutions."}),p.jsx("p",{className:"text-muted-foreground mb-8 font-medium",children:"Get the personalized support you need."}),p.jsx(tt,{asChild:!0,size:"lg",className:"rounded-full px-8",children:p.jsxs(Rt,{to:"/contact",children:["Book a Free Consultation ",p.jsx(Sn,{className:"ml-2",size:16})]})})]})})})]}),CD=[{icon:PP,title:"Healthy Living",desc:"Advice and practical tips on detoxing, weight loss, healthy living, and eating."},{icon:Bp,title:"Parenting & Family",desc:"Guidance on parenting, family genealogies, and issues facing women of minorities."},{icon:wP,title:"Career & Income",desc:"Consulting to raise your income, find and apply for jobs and educational programs."},{icon:ja,title:"Writing & Editing",desc:"Professional editing and writing support for academic and personal projects."},{icon:MP,title:"Lifestyle",desc:"Practical ideas on celebrations, birthdays, and having awesome holidays and travels!"},{icon:Up,title:"Personal Growth",desc:"Holistic guidance to help you live a more fulfilling and balanced life."}],_D=()=>p.jsxs(Vr,{children:[p.jsx(Ps,{title:"Life Coaching",description:"Holistic life coaching services including healthy living advice, parenting guidance, career consulting, and personal growth mentoring by Nusri Hassam.",canonical:"/life-coaching"}),p.jsx("section",{className:"bg-peach py-16 md:py-24",children:p.jsxs("div",{className:"container mx-auto px-6 text-center",children:[p.jsx(B.h1,{className:"font-serif text-4xl md:text-5xl font-bold mb-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:"Life Coaching"}),p.jsx(B.p,{className:"text-muted-foreground max-w-2xl mx-auto text-lg",initial:{opacity:0}
271,animate:{opacity:1},transition:{delay:.15},children:"Holistic guidance to help you thrive in every area of your life."})]})}),p.jsx("section",{className:"py-16 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[p.jsx("div",{className:"grid md:grid-cols-2 gap-5",children:CD.map((e,t)=>{const n=t===0||t===5;return p.jsxs(B.div,{className:`relative overflow-hidden rounded-2xl bg-card p-8 md:p-10 group hover:bg-peach transition-colors duration-300 ${n?"md:col-span-2 md:flex md:items-center md:gap-10":""}`,initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:t*.06},children:[p.jsx("div",{className:`w-16 h-16 rounded-2xl bg-peach group-hover:bg-primary flex items-center justify-center flex-shrink-0 mb-5 transition-colors duration-300 ${n?"md:mb-0 md:w-20 md:h-20":""}`,children:p.jsx(e.icon,{size:n?28:24,className:"text-primary group-hover:text-primary-foreground transition-colors duration-300"})}),p.jsxs("div",{children:[p.jsx("h3",{className:`font-serif font-semibold mb-2 ${n?"text-2xl":"text-xl"}`,children:e.title}),p.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.desc})]})]},e.title)})}),p.jsx(B.div,{className:"text-center mt-14",initial:{opacity:0}
271,whileInView:{opacity:1},viewport:{once:!0},children:p.jsx(tt,{asChild:!0,size:"lg",className:"rounded-full px-8",children:p.jsxs(Rt,{to:"/contact",children:["Get in Touch ",p.jsx(Sn,{className:"ml-2",size:16})]})})})]})})]}),PD=[{icon:Dp,title:"Subjects",desc:"Language Arts, Math, Science, Socials, ESL, public speaking, and more."},{icon:ja,title:"Learning Style",desc:"Fun, creative strategies including mnemonics, brain power techniques, and creative thinking."},{icon:Bp,title:"Specialized Experience",desc:"20+ years working with twice-exceptional, gifted/talented learners with AHA moments and big smiles."},{icon:Hi,title:"Cultural Exploration",desc:"Exciting classes about countries across seven continents, cultural heritage, and family histories."},{icon:du,title:"Career Support",desc:"Resumes, job searching, increasing income, career paths, and positive reinforcement."},{icon:Fb,title:"Teaching Philosophy",desc:'"Learning at its funnest!" Interactive sessions based on interests, passions, and learning styles.'}],AD=()=>p.jsxs(Vr,{children:[p.jsx(Ps,{title:"Outschool Classes",description:"Explore Nusri Hassam's 5-star rated Outschool classes — Language Arts, Math, Science, ESL, public speaking, and cultural exploration for gifted and twice-exceptional learners.",canonical:"/outschool"}),p.jsx("section",{className:"bg-peach py-16 md:py-24",children:p.jsxs("div",{className:"container mx-auto px-6 text-center",children:[p.jsx(B.h1,{className:"font-serif text-4xl md:text-5xl font-bold mb-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:"Outschool"}),p.jsx(B.p,{className:"text-muted-foreground max-w-2xl mx-auto text-lg",initial:{opacity:0}
271,animate:{opacity:1},transition:{delay:.15},children:"Nusri has been teaching at Outschool since 2017 and has garnered many followers and 5-star reviews for her outstanding teaching and dedication to her profession."})]})}),p.jsx("section",{className:"py-16 bg-background",children:p.jsx("div",{className:"container mx-auto px-6 max-w-3xl",children:p.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[p.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg mb-6",children:"I am passionate about teaching and motivating learners to pursue their passions to the fullest extent. All my students enjoy learning as it is made fun and easy for them. I support them to accelerate their learning, sharing many shortcuts and strategies, including finding out their learning styles, improving their memory using mnemonics, tapping into their brain power, and using creative thinking."}),p.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg mb-6",children:"I have taught classes to improve reading speed, comprehension, and even spelling through Practice makes Perfect and Proper Preparation Prevents Poor Performance."}),p.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg",children:"I can teach to anyone's passions and interests in the areas where I have the expertise. I offer Educational Consulting in all areas from ECE to Adults."})]})})}),p.jsx("section",{className:"py-16 bg-card",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-3xl",children:[p.jsx("h2",{className:"font-serif text-3xl font-bold text-center mb-12",children:"What I Offer on Outschool"}),p.jsx("div",{className:"space-y-0 divide-y divide-border",children:PD.map((e,t)=>{const[n,r]=N.useState(!0);return p.jsxs(B.div,{initial:{opacity:0}
271,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:t*.06},children:[p.jsxs("button",{onClick:()=>r(!n),className:"w-full flex items-center gap-5 py-6 text-left group",children:[p.jsx("div",{className:"w-12 h-12 rounded-full bg-peach flex items-center justify-center flex-shrink-0 group-hover:bg-primary group-hover:text-primary-foreground transition-colors",children:p.jsx(e.icon,{size:20,className:"text-primary group-hover:text-primary-foreground transition-colors"})}),p.jsx("h3",{className:"font-serif text-lg md:text-xl font-semibold flex-1",children:e.title}),p.jsx(B.span,{animate:{rotate:n?45:0},transition:{duration:.2},className:"text-2xl text-muted-foreground flex-shrink-0 leading-none",children:"+"})]}),p.jsx(B.div,{initial:!1,animate:{height:n?"auto":0,opacity:n?1:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:p.jsx("p",{className:"text-muted-foreground leading-relaxed pb-6 pl-[4.25rem]",children:e.desc})})]},e.title)})})]})}),p.jsx("section",{className:"py-16 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center",children:[p.jsx("h2",{className:"font-serif text-3xl font-bold mb-8",children:"Introduction Video"}),p.jsx("div",{className:"aspect-video rounded-xl overflow-hidden shadow-lg",children:p.jsx("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/KyuyBGzTADI",title:"Outschool Introduction Video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full"})})]})}),p.jsx("section",{className:"py-16 bg-peach",children:p.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center",children:p.jsxs(B.div,{initial:{opacity:0}
271,whileInView:{opacity:1},viewport:{once:!0},children:[p.jsx("div",{className:"flex justify-center gap-1 mb-6",children:[...Array(5)].map((e,t)=>p.jsx(zb,{size:20,className:"fill-primary text-primary"},t))}),p.jsx("p",{className:"text-muted-foreground leading-relaxed italic mb-8",children:`"My three boys are now all grown up, two of them graduated from University with Bachelor's degrees and the middle son became a professional video game player with a passion to cook and is aiming to be a chef next. My husband is a professor in many varied subjects."`}),p.jsx(tt,{asChild:!0,size:"lg",className:"rounded-full px-8",children:p.jsxs(Rt,{to:"/contact",children:["Get in Touch ",p.jsx(Sn,{className:"ml-2",size:16})]})})]})})})]}),RD=[{year:"2025/26",active:!0,icon:Hb,title:"Ed Tech English Proficiency Program",location:"India, Pakistan & Kyrgyzstan",description:"Scaling a technology-driven English proficiency program to 2,600 students across three countries, combining adaptive learning tools with proven pedagogical strategies.",stats:[{label:"Students",value:"2,600"},{label:"Countries",value:"3"}]},{year:"2024/25",active:!0,icon:Vb,title:"SME in Educational Technology",location:"India & Pakistan",description:"Subject Matter Expert in educational technology for a nonprofit school system, leading a 200-student pilot program integrating ed-tech solutions into classroom instruction.",stats:[{label:"Students",value:"200"},{label:"Role",value:"SME"}]},{year:"2023",icon:ja,title:"Co-Founder - English is Fun Global Program",location:"India & Pakistan",description:"Co-founded an innovative global English learning program designed to make language acquisition engaging and accessible for underserved communities.",stats:[{label:"Role",value:"Co-Founder"},{label:"Countries",value:"2"}]},{year:"2021/22",icon:du,title:"Principal & Global Academic Lead - ELC Program",location:"Iran & India",description:"Served as Principal for the English Language Connections Iran/India program and led as Global Academic Lead across 4 cohorts, overseeing instruction for 400 students.",stats:[{label:"Students",value:"400"},{label:"Cohorts",value:"4"}]},{year:"2019",icon:Hi,title:"Founding SME - English Language Connections (ELC)",location:"Afghanistan & Syria",description:"Selected as a Founding National Subject Matter Expert for the ELC Program, helping establish English language education in conflict-affected regions.",stats:[{label:"Role",value:"Founding SME"},{label:"Countries",value:"2"}]}],jD=[{value:"3,200+",label:"Students Reached"},{value:"7+",label:"Countries Served"},{value:"6+",label:"Years of Service"},{value:"5",label:"Major Programs"}],ND=()=>p.jsxs(p.Fragment,{children:[p.jsx("section",{className:"bg-foreground py-8",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8",children:jD.map((e,t)=>p.jsxs(B.div,{className:"text-center",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1+t*.1},children:[p.jsx("p",{className:"font-serif text-3xl md:text-4xl font-bold text-primary-foreground",children:e.value}),p.jsx("p",{className:"text-primary-foreground/70 text-sm mt-1",children:e.label})]},e.label))})})}),p.jsx("section",{className:"py-20 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[p.jsxs(B.div,{className:"text-center mb-16",initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[p.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-bold mb-4",children:"A Journey of Global Impact"}),p.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:"From founding programs in Afghanistan and Syria to scaling across continents, every initiative is rooted in the belief that education changes lives."})]}),p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"absolute left-8 md:left-1/2 top-0 bottom-0 w-px bg-border md:-translate-x-px"}),p.jsx("div",{className:"space-y-12 md:space-y-16",children:RD.map((e,t)=>{const n=t%2===0;return p.jsxs(B.div,{className:"relative",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.08,duration:.5},children:[p.jsx("div",{className:"absolute left-8 md:left-1/2 -translate-x-1/2 -top-1 z-10",children:p.jsx("div",{className:`w-16 h-16 rounded-full flex items-center justify-center border-4 border-background shadow-lg ${e.active?"bg-primary text-primary-foreground":"bg-card text-primary"}`,children:p.jsx(e.icon,{size:22})})}),p.jsx("div",{className:`ml-24 md:ml-0 md:w-[calc(50%-3rem)] ${n?"md:mr-auto md:pr-0":"md:ml-auto md:pl-0"}`,children:p.jsxs("div",{className:`bg-card rounded-xl p-6 md:p-8 border border-border/50 shadow-sm ${e.active?"ring-2 ring-primary/20":""}`,children:[p.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[p.jsx("span",{className:"font-serif text-sm font-bold text-primary tracking-wide",children:e.year}),e.active&&p.jsxs("span",{className:"inline-flex items-center gap-1 text-[11px] font-semibold uppercase tracking-wider bg-primary/10 text-primary px-2.5 py-0.5 rounded-full",children:[p.jsx(Fp,{size:10}),"Ongoing"]})]}),p.jsx("h3",{className:"font-serif text-xl font-semibold mb-1",children:e.title}),p.jsxs("p",{className:"text-sm text-primary/80 font-medium mb-3 flex items-center gap-1.5",children:[p.jsx(Hi,{size:13}),e.location]}),p.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed mb-4",children:e.description}),p.jsx("div",{className:"flex gap-6",children:e.stats.map(r=>p.jsxs("div",{children:[p.jsx("p",{className:"font-serif text-lg font-bold text-foreground",children:r.value}),p.jsx("p",{className:"text-xs text-muted-foreground",children:r.label})]},r.label))})]})})]},e.year)})})]})]})})]}),OD="/assets/wwb-article-Cv-syjHf.png",ID=()=>p.jsx("section",{className:"py-20 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[p.jsxs(B.div,{initial:{opacity:0,y:20}
271,animate:{opacity:1,y:0},className:"mb-16",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx(ja,{size:18,className:"text-primary"}),p.jsx("p",{className:"text-sm font-semibold text-primary uppercase tracking-wide",children:"August 2025 – Present"})]}),p.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-bold mb-6",children:"How It Started"}),p.jsxs("div",{className:"space-y-5 text-muted-foreground leading-relaxed text-[15px]",children:[p.jsx("p",{children:"In August 2025, a conversation I had with Alka Goel-Stevens (now Chairperson of WWB) about the challenges and barriers many women face in our community sparked something bigger than either of us anticipated. We reflected on the unequal division of labour, the struggle of balancing family responsibilities with careers, and the gender and cultural challenges that so many women navigate daily."}),p.jsxs("p",{children:["While there are many excellent organizations supporting women, we recognized a gap — a need for a smaller, more accessible and supportive community. That conversation became the seed for ",p.jsx("strong",{className:"text-foreground",children:"Women Without Barriers (WWB)"}),", and I took on the role of ",p.jsx("strong",{className:"text-foreground",children:"Advisor"})," to help shape the initiative from the ground up."]}),p.jsx("p",{children:"By October 2025, a team of passionate members came together with a shared commitment. We developed a clear vision and set of goals that would guide everything we do."})]})]}),p.jsxs(B.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"grid md:grid-cols-2 gap-10 mb-16",children:[p.jsxs("div",{children:[p.jsx("h3",{className:"font-serif text-lg font-semibold mb-3",children:"Our Vision"}),p.jsx("blockquote",{className:"text-foreground italic leading-relaxed border-l-4 border-primary/30 pl-5",children:'"To create a safe and empowering community of women who thrive, break barriers, and realize their full potential."'})]}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-serif text-lg font-semibold mb-3",children:"Our Goal"}),p.jsx("blockquote",{className:"text-foreground italic leading-relaxed border-l-4 border-primary/30 pl-5",children:`"To support and strengthen women's health and well-being by compassionately enabling them to overcome personal, cultural, social, and other emerging barriers."`})]})]}),p.jsx("div",{className:"w-12 h-px bg-border mx-auto mb-16"}),p.jsxs(B.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mb-16",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx(Fp,{size:18,className:"text-primary"}),p.jsx("p",{className:"text-sm font-semibold text-primary uppercase tracking-wide",children:"March 8, 2026 — International Women's Day"})]}),p.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-bold mb-6",children:"Official Launch"}),p.jsx("p",{className:"text-muted-foreground leading-relaxed text-[15px] mb-8",children:`On International Women's Day, we officially launched Women Without Barriers by hosting a "Stress and Anxiety" workshop and lunch in New Westminster. Thirty-three women from diverse professions, cultures, and ethnic backgrounds came together for what became a powerful and moving afternoon — a testament to the community we're building.`}),p.jsxs("div",{className:"flex gap-10 text-center",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-serif text-3xl font-bold text-foreground",children:"33"}),p.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Women Attended"})]}),p.jsxs("div",{children:[p.jsx("p",{className:"font-serif text-3xl font-bold text-foreground",children:"1st"}),p.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Workshop Held"})]}),p.jsxs("div",{children:[p.jsx("p",{className:"font-serif text-3xl font-bold text-foreground",children:"Advisor"}),p.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"My Role"})]})]})]}),p.jsxs(B.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx(NP,{size:18,className:"text-primary"}),p.jsx("h3",{className:"font-serif text-xl font-semibold",children:"Featured in The Link Paper"})]}),p.jsx("p",{className:"text-muted-foreground leading-relaxed text-[15px] mb-6",children:"Our launch was covered by The Link Paper (March 14, 2026), highlighting the initiative's mission and the energy of our first event."}),p.jsx("figure",{className:"rounded-lg overflow-hidden border border-border/30 shadow-sm",children:p.jsx("img",{src:OD,alt:"The Link Paper article: Women Without Barriers Initiative Launched In Lower Mainland, March 14, 2026",className:"w-full h-auto",loading:"lazy"})})]})]})}),LD=[{id:"international",label:"International Education",icon:Hi,description:"Founding programs in conflict zones and scaling ed-tech solutions reaching thousands of learners worldwide."},{id:"wwb",label:"Women Without Barriers",icon:Up,description:"Co-founding a local initiative to create a safe, empowering community where women thrive and break barriers."}],MD=()=>{const[e,t]=b.useState("international");return p.jsxs(Vr,{children:[p.jsx(Ps,{title:"Community Outreach",description:"Nusri Hassam'
271s community outreach work — from international education leadership reaching 3,200+ students across 7 countries to co-founding Women Without Barriers locally.",canonical:"/community-outreach"}),p.jsx("section",{className:"bg-peach py-16 md:py-24",children:p.jsx("div",{className:"container mx-auto px-6 text-center",children:p.jsxs(B.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[p.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:"Community Outreach"}),p.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto text-lg leading-relaxed mb-10",children:"From leading international education programs across seven countries to building supportive communities locally — driven by the belief that empowerment changes lives."}),p.jsx("div",{className:"inline-flex bg-background rounded-full p-1.5 border border-border shadow-sm",children:LD.map(n=>p.jsxs("button",{onClick:()=>t(n.id),className:`relative flex items-center gap-2 px-5 py-2.5 rounded-full text-sm font-medium transition-colors ${e===n.id?"text-primary-foreground":"text-muted-foreground hover:text-foreground"}`,children:[e===n.id&&p.jsx(B.div,{layoutId:"activeTabBg",className:"absolute inset-0 bg-primary rounded-full",transition:{type:"spring",bounce:.2,duration:.5}}),p.jsxs("span",{className:"relative z-10 flex items-center gap-2",children:[p.jsx(n.icon,{size:15}),p.jsx("span",{children:n.label})]})]},n.id))})]})})}),p.jsx(Tk,{mode:"wait",children:p.jsx(B.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-12},transition:{duration:.3},children:e==="international"?p.jsx(ND,{}):p.jsx(ID,{})},e)}),p.jsx("section",{className:"py-20 bg-peach",children:p.jsx("div",{className:"container mx-auto px-6 text-center",children:p.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[p.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-bold mb-4",children:"Interested in Collaborating?"}),p.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto mb-8 text-lg",children:"Whether you represent a school, nonprofit, or educational organization, let's discuss how we can create impact together."}),p.jsx(tt,{asChild:!0,size:"lg",className:"rounded-full px-8",children:p.jsxs(Rt,{to:"/contact",children:["Get in Touch ",p.jsx(Sn,{className:"ml-2",size:16})]})})]})})})]})},bo=b.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:Mt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));bo.displayName="Input";const $k=b.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:Mt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
271ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));$k.displayName="Textarea";function Cu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function DD(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}const $D=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Rm 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 UD extends Rm{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class s0 extends Rm{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class i0 extends Rm{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Tf;(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"})(Tf||(Tf={}));class FD{constructor(t,{headers:n={},customFetch:r,region:s=Tf.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=$D(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return DD(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 UD(k)}),y=m.headers.get("x-relay-error");if(y&&y==="true")throw new s0(m);if(!m.ok)throw new i0(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 i0||a instanceof s0?a.context:void 0}}finally{i&&clearTimeout(i)}})}}const Uk=3,o0=e=>Math.min(1e3*2**e,3e4),BD=[520,503],Fk=["GET","HEAD","OPTIONS"];var VD=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
271de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function a0(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 zD(e,t,n,r){return!(!r||n>=Uk||!Fk.includes(e)||!BD.includes(t))}var HD=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==null?void 0:d.name)==="AbortError"||(d==null?void 0:d.code)==="ABORT_ERR"||!Fk.includes(n.method))throw d;if(n.retryEnabled&&o<Uk){const h=o0(o);o++,await a0(h,n.signal);continue}throw d}if(zD(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:o0(o);await u.text(),o++,await a0(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+=`
272
273Caused by: ${(v=d==null?void 0:d.name)!==null&&v!==void 0?v:"Error"}: ${y}`,w&&(l+=` (${w})`),d!=null&&d.stack&&(l+=`
274${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:""}}
274)),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 VD(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:o}}returns(){return this}overrideTypes(){return this}},WD=class extends HD{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 l0=new RegExp("[,()]");var Hs=class extends WD{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"&&l0.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"&&l0.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])=>
274n!==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}},KD=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 Hs({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>
2740){const l=[...new Set(a)].map(c=>`"${c}"`);i.searchParams.set("columns",l.join(","))}}return new Hs({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 Hs({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 Hs({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 Hs({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 pa(e){"@babel/helpers - typeof";return pa=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},pa(e)}function qD(e,t){if(pa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GD(e){var t=qD(e,"string");return pa(t)=="symbol"?t:t+""}function JD(e,t,n){return(t=GD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c0(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 wl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c0(Object(n),!0).forEach(function(r){JD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var YD=class Bk{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,wl(wl({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(h),f.removeEventListener("abort",g)})}return l(c,wl(wl({},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 KD(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 Bk(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}
274`]).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 Hs({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 QD{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
275import ws from "ws"
276new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
277
278Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const XD="2.103.3",ZD=`realtime-js/${XD}`,e$="1.0.0",Vk="2.0.0",t$=Vk,n$=1e4,r$=100,cr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},zk={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Cf={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class s${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;
278return 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 ce;(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"})(ce||(ce={}));const u0=(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]=i$(o,e,t,s),i),{}):{}},i$=(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)?Hk(i,o):_f(o)},Hk=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return c$(t,n)}switch(e){case ce.bool:return o$(t);case ce.float4:case ce.float8:case ce.int2:case ce.int4:case ce.int8:case ce.numeric:case ce.oid:return a$(t);case ce.json:case ce.jsonb:return l$(t);case ce.timestamp:return u$(t);case ce.abstime:case ce.date:case ce.daterange:case ce.int4range:case ce.int8range:case ce.money:case ce.reltime:case ce.text:case ce.time:case ce.timestamptz:case ce.timetz:case ce.tsrange:case ce.tstzrange:return _f(t);default:return _f(t)}},_f=e=>e,o$=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},a$=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},l$=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},c$=(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=>Hk(t,a))}return e},u$=e=>typeof e=="string"?e.replace(" ","T"):e,Wk=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 $o=e=>typeof e=="function"?e:function(){return e},d$=typeof self<"u"?self:null,Ws=typeof window<"u"?window:null,hn=d$||Ws||globalThis,h$="2.0.0",f$=1e4,p$=1e3,yn={connecting:0,open:1,closing:2,closed:3},it={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Nn={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Pf={longpoll:"longpoll",websocket:"websocket"},m$={complete:4},Af="base64url.bearer.phx.",xl=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 278
278matchReceive({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})}},Kk=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))}},g$=class{constructor(e,t,n){this.state=it.closed,this.topic=e,this.params=$o(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new xl(this,Nn.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Kk(()=>{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=it.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=it.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=it.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=it.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 xl(this,Nn.leave,$o({}),this.timeout).send(),this.state=it.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Nn.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=it.closed,this.bindings=[]}onClose(e){this.on(Nn.close,e)}onError(e){return this.on(Nn.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 xl(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=it.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Nn.close,"leave")},n=new xl(this,Nn.leave,$o({}),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=it.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===it.closed}isErrored(){return this.state===it.errored}isJoined(){return this.state===it.joined}isJoining(){return this.state===it.joining}isLeaving(){return this.state===it.leaving}},Bc=class{static request(e,t,n,r,s,i,o){if(hn.XDomainRequest){let a=new hn.XDomainRequest;return this.xdomainRequest(a,e,t,r,s,i,o)}else if(hn.XMLHttpRequest){let a=new hn.XMLHttpRequest;return this.xhrRequest(a,e,t,n,r,s,i,o)}else{if(hn.fetch&&hn.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),hn.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===m$.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)}`}},y$=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)},Ds=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Af)&&(this.authToken=atob(t[1].slice(Af.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=yn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Pf.websocket),"$1/"+Pf.longpoll)}endpointURL(){return Bc.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=yn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===yn.open||this.readyState===yn.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=yn.open,this.onopen({}),this.poll();break;
278case 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=y$(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(`
279`),()=>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=yn.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=Bc.request(e,this.endpointURL(),t,n,this.timeout,o,a=>{this.reqs.delete(i),this.isActive()&&s(a)}),this.reqs.add(i)}},v$=class So{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=So.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=So.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=So.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 So.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))}},bl={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,419 bytes, line 279
279,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:Nn.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}}},w$=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||f$,this.transport=t.transport||hn.WebSocket||Ds,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||hn&&hn.sessionStorage,this.establishedConnections=0,this.defaultEncoder=bl.encode.bind(bl),this.defaultDecoder=bl.decode.bind(bl),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!==Ds?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;Ws&&Ws.addEventListener&&(Ws.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),n=this.connectClock)}),Ws.addEventListener("pageshow",r=>{n===this.connectClock&&(n=null,this.connect())}),Ws.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=$o(t.params||{}),this.endPoint=`${e}/${Pf.websocket}`,this.vsn=t.vsn||h$,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Kk(()=>{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 Ds}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=Bc.appendParams(Bc.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=$o(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Ds?this.connectWithFallback(Ds,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 Ds:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Af}${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(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),p$,"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===yn.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(),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError()}
279triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(Nn.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case yn.connecting:return"connecting";case yn.open:return"open";case yn.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 g$(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 Uo{constructor(t,n){const r=b$(n);this.presence=new v$(t.getChannel(),r),this.presence.onJoin((s,i,o)=>{const a=Uo.onJoinPayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onLeave((s,i,o)=>{const a=Uo.onLeavePayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Uo.transformState(this.presence.state)}static transformState(t){return t=x$(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return n[r]=Zl(s),n},{})}static onJoinPayload(t,n,r){const s=d0(n),i=Zl(r);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,n,r){const s=d0(n),i=Zl(r);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function Zl(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function x$(e){return JSON.parse(JSON.stringify(e))}function b$(e){return(e==null?void 0:e.events)&&{events:e.events}}function d0(e){return e!=null&&e.metas?Zl(e):[]}var h0;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(h0||(h0={}));class S${get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Uo(this.channel.channelAdapter,n)}}class k${constructor(t,n,r){const s=E$(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>r$){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===cr.joined}isJoined(){return this.state===cr.joined}isJoining(){return this.state===cr.joining}isClosed(){return this.state===cr.closed}isLeaving(){return this.state===cr.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function E$(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var f0;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(f0||(f0={}));var ci;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(ci||(ci={}));var On;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(On||(On={}));class Fo{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 k$(this.socket.socketAdapter,t,this.params),this.presence=new S$(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=Wk(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[ci.PRESENCE]&&this.bindings[ci.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(On.CHANNEL_ERROR,f)}),this._onClose(()=>t==null?void 0:t(On.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(On.SUBSCRIBED);return}this._updatePostgresBindings(f,t)}).receive("error",f=>{this.state=cr.errored,t==null||t(On.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(On.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&&Fo.isFilterValueEqual(f.schema,u)&&Fo.isFilterValueEqual(f.table,d)&&Fo.isFilterValueEqual(f.filter,h))o.push(Object.assign(Object.assign({},l),{id:f.id}));else{this.unsubscribe(),this.state=cr.errored,n==null||n(On.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=cr.errored&&n&&n(On.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===ci.PRESENCE||t===ci.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;
279try{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.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=
279h.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}=zk;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=u0(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=u0(t.columns,t.old_record)),n}}class T${constructor(t,n){this.socket=new w$(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()==Cf.connecting}isDisconnecting(){return this.socket.connectionState()==Cf.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const C$={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},_$=[1e3,2e3,5e3,1e4],P$=1e4,A$=`
280  addEventListener("message", (e) => {
281    if (e.data.event === "start") {
282      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
283    }
284  });`;class R${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={}
284,this.ref=0,this.serializer=new s$,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,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 T$(t,s),this.httpEndpoint=Wk(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}
285
286To use Realtime in Node.js, you need to provide a WebSocket implementation:
287
288Option 1: Use Node.js 22+ which has native WebSocket support
289Option 2: Install and provide the "ws" package:
290
291  npm install ws
292
293  import ws from "ws"
294  const client = new RealtimeClient(url, {
295    ...options,
296    transport: ws
297  })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return 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(),this.channels.length===0&&this.disconnect(),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 this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||Cf.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 Fo(`realtime:${t}`,n,this);return 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)}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:ZD};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(zk.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([A$],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,s,i,o,a,l,c,u;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 d={};
297d.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:n$,d.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:C$.HEARTBEAT_INTERVAL,d.transport=(o=t==null?void 0:t.transport)!==null&&o!==void 0?o:QD.getWebSocketConstructor(),d.params=t==null?void 0:t.params,d.logger=t==null?void 0:t.logger,d.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),d.reconnectAfterMs=(a=t==null?void 0:t.reconnectAfterMs)!==null&&a!==void 0?a:v=>_$[v-1]||P$;let h,f;const g=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:t$;switch(g){case e$:h=(v,x)=>x(JSON.stringify(v)),f=(v,x)=>x(JSON.parse(v));break;case Vk:h=this.serializer.encode.bind(this.serializer),f=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${d.vsn}`)}if(d.vsn=g,d.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:h,d.decode=(u=t==null?void 0:t.decode)!==null&&u!==void 0?u:f,d.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,d.params=Object.assign(Object.assign({},d.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,d.autoSendHeartbeat=!this.worker}return d}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}var ma=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 j$(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 N$(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 O$(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=j$(e.baseUrl,r,s),l=await N$(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 ma((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 Sl(e){return e.join("�")}var I$=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Sl(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/${Sl(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Sl(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Sl(e.namespace)}`}),!0}catch(t){if(t instanceof ma&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof ma&&n.status===409)return;throw n}}};function $s(e){return e.join("�")}var L$=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/${$s(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/${$s(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/${$s(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/${$s(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/${$s(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/${$s(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof ma&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof ma&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},M$=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=O$({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new I$(this.client,t),this.tableOps=new L$(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)}
297async 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 ga(e){"@babel/helpers - typeof";return ga=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},ga(e)}function D$(e,t){if(ga(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ga(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $$(e){var t=D$(e,"string");return ga(t)=="symbol"?t:t+""}function U$(e,t,n){return(t=$$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p0(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 W(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(n),!0).forEach(function(r){U$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _u=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 Pu(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Rf=class extends _u{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 W({},super.toJSON())}},qk=class extends _u{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const F$=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),B$=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},V$=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),m0=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},z$=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&typeof e.json=="function"){const s=e;let i=parseInt(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 Rf(m0(o),i,a,r))}).catch(()=>{const o=i+"";t(new Rf(s.statusText||`HTTP ${i} error`,i,o,r))})}else t(new qk(m0(e),e,r))},H$=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!r)return W(W({},s),n);if(B$(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=W$(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),W(W({},s),n)};function W$(e,t,n){const r=W({},e);for(const s of Object.keys(r))s.toLowerCase()===t.toLowerCase()&&delete r[s];return r[t]=n,r}async function mo(e,t,n,r,s,i,o){return new Promise((a,l)=>{e(n,H$(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=>z$(c,l,r,o))})}function Gk(e="storage"){return{get:async(t,n,r,s)=>mo(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>mo(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>mo(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>mo(t,"HEAD",n,W(W({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>mo(t,"DELETE",n,s,i,r,e)}}const K$=Gk("storage"),{get:ya,post:qt,put:Nf,head:q$,remove:jm}=K$,yt=Gk("vectors");var Xi=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=Object.fromEntries(Object.entries(t).map(([s,i])=>[s.toLowerCase(),i])),this.fetch=F$(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=W(W({},this.headers),{},{[e.toLowerCase()]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Pu(n))return{data:null,error:n};throw n}}},G$=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(Pu(t))return{data:null,error:t};throw t}}};let Jk;Jk=Symbol.toStringTag;var J$=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Jk]="BlobDownloadBuilder",this.promise=null}asStream(){return new G$(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(Pu(t))return{data:null,error:t};throw t}}};const Y$={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},g0={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var Q$=class extends Xi{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=W(W({},g0),r);let a=W(W({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(a=W(W({},a),r.headers));const c=s._removeEmptyFolders(t),u=s._getFinalPath(c),d=await(e=="PUT"?Nf:qt)(s.fetch,`${s.url}/object/${u}`,i,W({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=W(W({},g0),r),u=W(W({},s.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType),{path:i,fullPath:(await Nf(s.fetch,a.toString(),l,{headers:u})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=W({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await qt(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 _u("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 qt(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
297stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await qt(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 qt(r.fetch,`${r.url}/object/sign/${s}`,W({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 qt(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=>W(W({},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=()=>ya(this.fetch,`${this.url}/${r}/${o}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new J$(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>jf(await ya(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await q$(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(Pu(s)){var r;const i=s instanceof Rf?s.status:s instanceof qk?(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=W(W(W({},Y$),t),{},{prefix:e||""});return await qt(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=W({},e);return await qt(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 X$="2.103.3",$a={"X-Client-Info":`storage-js/${X$}`};var Z$=class extends Xi{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=W(W({},$a),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await ya(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ya(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await qt(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 Nf(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 qt(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():""}},e3=class extends Xi{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=W(W({},$a),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await qt(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 ya(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(!V$(e))throw new _u("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 M$({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
297),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}}}}})}},t3=class extends Xi{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=W(W({},$a),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await yt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await yt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await yt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await yt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},n3=class extends Xi{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=W(W({},$a),{},{"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 yt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await yt.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 yt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await yt.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 yt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},r3=class extends Xi{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=W(W({},$a),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await yt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await yt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await yt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await yt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},s3=class extends r3{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new i3(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)}},i3=class extends t3{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,W(W({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,W(W({},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 o3(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}
297,o3=class extends n3{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,W(W({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,W(W({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,W(W({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,W(W({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,W(W({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},a3=class extends Z${constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new Q$(this.url,this.headers,e,this.fetch)}get vectors(){return new s3(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new e3(this.url+"/iceberg",this.headers,this.fetch)}};const Yk="2.103.3",Ks=30*1e3,Of=3,Md=Of*Ks,l3="http://localhost:9999",c3="supabase.auth.token",u3={"X-Client-Info":`gotrue-js/${Yk}`},If="X-Supabase-Api-Version",Qk={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},d3=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,h3=10*60*1e3;
297class va 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 F(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class f3 extends va{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function p3(e){return F(e)&&e.name==="AuthApiError"}class es extends va{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Kn extends va{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class pt extends Kn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function kl(e){return F(e)&&e.name==="AuthSessionMissingError"}class Us extends Kn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class El extends Kn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Tl extends Kn{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 m3(e){return F(e)&&e.name==="AuthImplicitGrantRedirectError"}class y0 extends Kn{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 g3 extends Kn{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 Lf extends Kn{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Dd(e){return F(e)&&e.name==="AuthRetryableFetchError"}class v0 extends Kn{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 Mf extends Kn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Vc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),w0=` 	
298\r=`.split(""),y3=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<w0.length;t+=1)e[w0[t].charCodeAt(0)]=-2;for(let t=0;t<Vc.length;t+=1)e[Vc[t].charCodeAt(0)]=t;return e})();function x0(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(Vc[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(Vc[r]),t.queuedBits-=6}}function Xk(e,t,n){const r=y3[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 b0(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{x3(o,r,n)};for(let o=0;o<e.length;o+=1)Xk(e.charCodeAt(o),s,i);return t.join("")}function v3(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 w3(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}v3(r,t)}}function x3(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 xi(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)Xk(e.charCodeAt(s),n,r);return new Uint8Array(t)}function b3(e){const t=[];return w3(e,n=>t.push(n)),new Uint8Array(t)}function os(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>x0(s,n,r)),x0(null,n,r),t.join("")}function S3(e){return Math.round(Date.now()/1e3)+e}function k3(){return Symbol("auth-callback")}const De=()=>typeof window<"u"&&typeof document<"u",Gr={tested:!1,writable:!1},Zk=()=>
298{if(!De())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Gr.tested)return Gr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Gr.tested=!0,Gr.writable=!0}catch{Gr.tested=!0,Gr.writable=!1}return Gr.writable};function E3(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const eE=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),T3=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",qs=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Jr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Me=async(e,t)=>{await e.removeItem(t)};class Au{constructor(){this.promise=new Au.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Au.promiseConstructor=Promise;function Cl(e){const t=e.split(".");if(t.length!==3)throw new Mf("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!d3.test(t[r]))throw new Mf("JWT not in base64url format");return{header:JSON.parse(b0(t[0])),payload:JSON.parse(b0(t[1])),signature:xi(t[2]),raw:{header:t[0],payload:t[1]}}}async function C3(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function _3(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 P3(e){return("0"+e.toString(16)).substr(-2)}function A3(){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,P3).join("")}async function R3(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 j3(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 R3(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Fs(e,t,n=!1){const r=A3();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await qs(e,`${t}-code-verifier`,s);const i=await j3(r);return[i,r===i?"plain":"s256"]}const N3=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function O3(e){const t=e.headers.get(If);if(!t||!t.match(N3))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function I3(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 L3(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 M3=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Bs(e){if(!M3.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function $d(){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 D3(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
298if(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 S0(e){return JSON.parse(JSON.stringify(e))}const Zr=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),$3=[502,503,504,520,521,522,523,524,530];async function k0(e){var t;if(!T3(e))throw new Lf(Zr(e),0);if($3.includes(e.status))throw new Lf(Zr(e),e.status);let n;try{n=await e.json()}catch(i){throw new es(Zr(i),i)}let r;const s=O3(e);if(s&&s.getTime()>=Qk["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 v0(Zr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new pt}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 v0(Zr(n),e.status,n.weak_password.reasons);throw new f3(Zr(n),e.status||500,r)}const U3=(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[If]||(i[If]=Qk["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 F3(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 F3(e,t,n,r,s,i){const o=U3(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new Lf(Zr(l),0)}if(a.ok||await k0(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await k0(l)}}function zt(e){var t;let n=null;z3(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=S3(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function E0(e){const t=zt(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 ur(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function B3(e){return{data:e,error:null}}function V3(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=Cu(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 T0(e){return e}function z3(e){return e.access_token&&e.refresh_token&&e.expires_in}const Ud=["global","local","others"];class H3{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=eE(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},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)}}
vendor: 4,751 bytes, line 298
298async signOut(t,n=Ud[0]){if(Ud.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Ud.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(F(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:ur})}catch(r){if(F(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Cu(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:V3,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(F(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:ur})}catch(n){if(F(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:T0});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(F(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){Bs(t);try{return await z(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:ur})}catch(n){if(F(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Bs(t);try{return await z(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:ur})}catch(r){if(F(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Bs(t);try{return await z(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:ur})}catch(r){if(F(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Bs(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(F(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Bs(t.userId),Bs(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(F(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:T0});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(F(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(F(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(F(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(F(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await z(this.fetch,"DELET
298E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(F(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(F(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(F(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(F(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(F(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(F(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(F(n))return{data:null,error:n};throw n}}}function C0(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const ln={debug:!!(globalThis&&Zk()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class tE extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class _0 extends tE{}async function W3(e,t,n){ln.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let s;t>0&&(s=setTimeout(()=>{r.abort(),ln.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),ln.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{ln.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw ln.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new _0(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(ln.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?void 0:i.name)==="AbortError"&&t>0){if(r.signal.aborted)return ln.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){ln.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await n()}finally{ln.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 ln.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new _0(`Lock "${e}" was released because another request stole it`)}throw i}}function K3(){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 nE(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
298" is invalid.`);return e.toLowerCase()}function q3(e){return parseInt(e,16)}function G3(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function J3(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(`
299`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=nE(e.address),g=u?`${u}://${r}`:r,v=e.statement?`${e.statement}
300`:"",x=`${g} wants you to sign in with your Ethereum account:
301${f}
302
303${v}`;let m=`URI: ${d}
304Version: ${h}
305Chain ID: ${n}${o?`
306Nonce: ${o}`:""}
307Issued At: ${i.toISOString()}`;if(s&&(m+=`
308Expiration Time: ${s.toISOString()}`),a&&(m+=`
309Not Before: ${a.toISOString()}`),l&&(m+=`
310Request ID: ${l}`),c){let y=`
311Resources:`;for(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+=`
312- ${w}`}m+=y}return`${x}
313${m}`}class Ce extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class zc extends Ce{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function Y3({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ce({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Ce({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Ce({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Ce({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Ce({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Ce({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Ce({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Ce({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(rE(o)){if(i.rp.id!==o)return new Ce({message:`The RP ID "${i.rp.id}
313" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ce({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Ce({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Ce({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ce({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function Q3({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ce({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Ce({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(rE(r)){if(n.rpId!==r)return new Ce({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ce({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Ce({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ce({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class X3{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 Z3=new X3;function e4(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=Cu(e,["challenge","user","excludeCredentials"]),i=xi(t).buffer,o=Object.assign(Object.assign({},n),{id:xi(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:xi(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function t4(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=Cu(e,["challenge","allowCredentials"]),s=xi(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:xi(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function n4(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:os(new Uint8Array(e.response.attestationObject)),clientDataJSON:os(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function r4(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:os(new Uint8Array(s.authenticatorData)),clientDataJSON:os(new Uint8Array(s.clientDataJSON)),signature:os(new Uint8Array(s.signature)),userHandle:s.userHandle?os(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function rE(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function P0(){var e,t;return!!(De()&&"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 s4(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new zc("Browser returned unexpected credential type",t)}:{data:null,error:new zc("Empty credential response",t)}}
313catch(t){return{data:null,error:Y3({error:t,options:e})}}}async function i4(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new zc("Browser returned unexpected credential type",t)}:{data:null,error:new zc("Empty credential response",t)}}catch(t){return{data:null,error:Q3({error:t,options:e})}}}const o4={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},a4={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Hc(...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]=Hc(a,o):r[i]=Hc(o)}else r[i]=o}return r}function l4(e,t){return Hc(o4,e,t||{})}function c4(e,t){return Hc(a4,e,t||{})}class u4{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??Z3.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)}switch(a.webauthn.type){case"create":{const u=l4(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:h}=await s4({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=c4(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:h}=await i4(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 F(a)?{data:null,error:a}:{data:null,error:new es("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 va("rpId is required for WebAuthn authentication")};try{if(!P0())return{data:null,error:new es("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 F(o)?{data:null,error:o}:{data:null,error:new es("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 va("rpId is required for WebAuthn registration")};try{if(!P0())return{data:null,error:new es("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 F(o)?{data:null,error:o}:{data:null,error:new es("Unexpected error in register",o)}}}}K3();const d4={url:l3,storageKey:c3,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:u3,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function A0(e,t,n){return await n()}const Vs={};class wa{get jwks(){var t,n;return(n=(t=Vs[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Vs[this.storageKey]=Object.assign(Object.assign({},Vs[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Vs[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Vs[this.storageKey]=Object.assign(Object.assign({},Vs[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},d4),t);if(this.storageKey=i.storageKey,this.instanceID=(n=wa.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,wa.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&De()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new H3({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=eE(i.fetch),this.lock=i.lock||A0,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&De()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=W3:this.lock=A0,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 u4(this)}
313,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:Zk()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=C0(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=C0(this.memoryStorage)),De()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}i.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Yk}) ${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(De()&&(n=E3(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),De()&&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),m3(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 F(n)?this._returnResult({error:n}):this._returnResult({error:new es("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:zt}),{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(F(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 Fs(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:zt})}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:zt})}else throw new El("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await Me(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 Me(this.storage,`${this.storageKey}-code-verifier`),F(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:E0})}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:E0})}else throw new El("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 Us;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(F(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(De())if(typeof x=="object")w=x;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")w=A.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(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(A=>A).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!k||k.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=nE(k[0]);let T=(r=y==null?void 0:y.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!T){const A=await w.request({method:"eth_chainId"});T=q3(A)}const C={domain:S.host,address:E,statement:m,uri:S.href,version:"1",chainId:T,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=J3(C),g=await w.request({method:"personal_sign",params:[G3(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:zt});if(x)throw x;if(!v||!v.session||!v.user){const m=new Us;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(F(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(De())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 T;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")T=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)T=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in T&&"signature"in T&&(typeof T.signedMessage=="string"||T.signedMessage instanceof Uint8Array)&&T.signature instanceof Uint8Array)g=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),v=T.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");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
313InWithSolana.resources.map(T=>`- ${T}`)]:[]].join(`
314`);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:os(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:zt});if(m)throw m;if(!x||!x.session||!x.user){const y=new Us;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(F(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await Jr(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new g3;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:zt});if(await Me(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new Us;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Me(this.storage,`${this.storageKey}-code-verifier`),F(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:zt}),{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 Us;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(F(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 Fs(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 El("You must provide either an email or phone number.")}catch(a){if(await Me(this.storage,`${this.storageKey}-code-verifier`),F(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:zt});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(F(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 Fs(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:B3});return!((i=c.data)===null||i===void 0)&&i.url&&De()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await Me(this.storage,`${this.storageKey}-code-verifier`),F(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 pt;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(F(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 El("You must provide either an email or phone number and a type")}catch(n){if(F(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 Jr(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
314id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Md:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Jr(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=$d()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=D3(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:ur}):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 pt}: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:ur})})}catch(n){if(F(n))return kl(n)&&(await this._removeSession(),await Me(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 pt;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Fs(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:ur});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 Me(this.storage,`${this.storageKey}-code-verifier`),F(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 pt;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Cl(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(F(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 pt;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(F(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!De())throw new Tl("No browser detected.");
314if(t.error||t.error_description||t.error_code)throw new Tl(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 y0("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Tl("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 y0("No code detected.");const{data:y,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:y.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=t;if(!i||!a||!o||!c)throw new Tl("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(a);let h=u+d;l&&(h=parseInt(l));const f=h-u;f*1e3<=Ks&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${d}s`);const g=h-d;u-g>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",g,h,u):u-g<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",g,h,u);const{data:v,error:x}=await this._getUser(i);if(x)throw x;const m={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:d,expires_at:h,refresh_token:o,token_type:c,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:m,redirectType:t.type},error:null})}catch(r){if(F(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Jr(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&&!kl(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&&!(p3(a)&&(a.status===404||a.status===401||a.status===403)||kl(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Me(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=k3(),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),kl(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Fs(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 Me(this.storage,`${this.storageKey}-code-verifier`),F(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(F(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 De()&&!(!((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(F(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;
314if(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:zt}),{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 Us}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:f}))}catch(s){if(await Me(this.storage,`${this.storageKey}-code-verifier`),F(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(F(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 _3(async s=>(s>0&&await C3(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:zt})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Dd(i)&&Date.now()+o-r<Ks})}catch(r){if(this._debug(n,"error",r),F(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),De()&&!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 Jr(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Jr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await qs(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:$d()}else if(s&&!s.user&&!s.user){const o=await Jr(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Me(this.storage,this.storageKey+"-user"),await qs(this.storage,this.storageKey,s)):s.user=$d()}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()<Md;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${Md}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Dd(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 pt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Au;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new pt;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),F(i)){const o={data:null,error:i};return Dd(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 Me(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 qs(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=S0(s);await qs(this.storage,this.storageKey,i)}else{const s=S0(n);await qs(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Me(this.storage,this.storageKey),await Me(this.storage,this.storageKey+"-code-verifier"),await Me(this.storage,this.storageKey+"-user"),this.userStorage&&await Me(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&De()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
314catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ks);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)/Ks);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ks}ms, refresh threshold is ${Of} ticks`),s<=Of&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof tE)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!De()||!(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 Fs(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(F(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(F(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"?n4(t.webauthn.credential_response):r4(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(F(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:e4(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:t4(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(F(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}=Cl(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(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:o},error:a}
314=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}=Cl(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 pt})})}catch(n){if(F(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 pt});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&&De()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(F(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 pt});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&&De()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(F(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 pt})})}catch(t){if(F(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 pt})})}catch(n){if(F(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+h3>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}
314=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}}=Cl(r);n!=null&&n.allowExpired||I3(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=L3(s.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,o,b3(`${a}.${l}`)))throw new Mf("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(F(r))return this._returnResult({data:null,error:r});throw r}}}wa.nextInstanceID={};const h4=wa,f4="2.103.3";let ko="";typeof Deno<"u"?ko="deno":typeof document<"u"?ko="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ko="react-native":ko="node";const p4={"X-Client-Info":`supabase-js-${ko}/${f4}`},m4={headers:p4},g4={schema:"public"},y4={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},v4={};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 w4(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 x4(e){var t=w4(e,"string");return xa(t)=="symbol"?t:t+""}function b4(e,t,n){return(t=x4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R0(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 Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R0(Object(n),!0).forEach(function(r){b4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const S4=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),k4=()=>Headers,E4=(e,t,n)=>{const r=S4(n),s=k4();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,Se(Se({},o),{},{headers:c}))}};function T4(e){return e.endsWith("/")?e:e+"/"}function C4(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:Se(Se({},l),s),auth:Se(Se({},c),i),realtime:Se(Se({},u),o),storage:{},global:Se(Se(Se({},d),a),{},{headers:Se(Se({},(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 _4(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(T4(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var P4=class extends h4{constructor(e){super(e)}},A4=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=_4(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:g4,realtime:v4,auth:Se(Se({},y4),{},{storageKey:o}),global:m4},l=C4(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=E4(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Se({headers:this.headers,accessToken:this._getAccessToken.bind(this)},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 YD(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 a3(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new FD(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)}
314channel(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},u,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new P4({url:this.authUrl.href,headers:Se(Se({},h),u),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:c,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new R$(this.realtimeUrl.href,Se(Se({},e),{},{params:Se(Se({},{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 R4=(e,t,n)=>new A4(e,t,n);function j4(){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}j4()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const N4="https://uecxtzonykcdllxsvjfg.supabase.co",O4="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVlY3h0em9ueWtjZGxseHN2amZnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQ1NzE3MzAsImV4cCI6MjA5MDE0NzczMH0.f96-HERmUu7cSHNwEKDnxlKjqs89xul9coN8qwbpjhc",sE=R4(N4,O4,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),I4=()=>{const{toast:e}=ab(),[t,n]=b.useState(!1),r=async s=>{s.preventDefault(),n(!0);const i=s.target,o=new FormData(i),a=o.get("firstName"),l=o.get("lastName"),c=o.get("email"),u=o.get("phone"),d=o.get("message");try{const h=crypto.randomUUID();await sE.functions.invoke("send-transactional-email",{body:{templateName:"contact-notification",recipientEmail:"[email protected]",idempotencyKey:`contact-${h}`,templateData:{firstName:a,lastName:l,email:c,phone:u,message:d}}}),e({title:"Message sent!",description:"Thanks for reaching out. Nusri will get back to you soon!"}),i.reset()}catch{e({title:"Something went wrong",description:"Please try again or email directly.",variant:"destructive"})}finally{n(!1)}};return p.jsxs(Vr,{children:[p.jsx(Ps,{title:"Contact",description:"Get in touch with Nusri Hassam for a free consultation on educational consulting, English language programs, mind mapping, or life coaching services.",canonical:"/contact"}),p.jsx("section",{className:"bg-peach py-16 md:py-24",children:p.jsxs("div",{className:"container mx-auto px-6 text-center",children:[p.jsx(B.h1,{className:"font-serif text-4xl md:text-5xl font-bold mb-3",initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:"Contact Nusri"}),p.jsx(B.p,{className:"text-muted-foreground text-lg",initial:{opacity:0}
314,animate:{opacity:1},transition:{delay:.15},children:"I'd love to hear from you"})]})}),p.jsx("section",{className:"py-16 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-2xl space-y-10",children:[p.jsxs(B.div,{className:"text-center space-y-5",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},children:[p.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary text-sm font-medium px-4 py-1.5 rounded-full",children:[p.jsx(bP,{size:14}),"Recommended"]}),p.jsx("h2",{className:"font-serif text-3xl font-bold",children:"Book a Free Consultation"}),p.jsx("p",{className:"text-muted-foreground max-w-md mx-auto",children:"Pick a time that works for you and let's chat for 30 minutes — no commitment, no pressure."}),p.jsx(tt,{asChild:!0,size:"lg",className:"rounded-full text-base px-10",children:p.jsxs("a",{href:"https://calendly.com/nusrihassam13/30min",target:"_blank",rel:"noopener noreferrer",children:["Schedule on Calendly",p.jsx(Sn,{className:"ml-2",size:18})]})})]}),p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:"flex-1 h-px bg-border"}),p.jsx("span",{className:"text-sm text-muted-foreground",children:"or send a message"}),p.jsx("div",{className:"flex-1 h-px bg-border"})]}),p.jsxs(B.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:[p.jsxs("form",{onSubmit:r,className:"space-y-4",children:[p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"text-sm font-medium mb-1.5 block",children:"First Name"}),p.jsx(bo,{required:!0,name:"firstName",placeholder:"First Name"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"text-sm font-medium mb-1.5 block",children:"Last Name"}),p.jsx(bo,{required:!0,name:"lastName",placeholder:"Last Name"})]})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"text-sm font-medium mb-1.5 block",children:"Email"}),p.jsx(bo,{required:!0,type:"email",name:"email",placeholder:"Email"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"text-sm font-medium mb-1.5 block",children:"Phone"}),p.jsx(bo,{type:"tel",name:"phone",placeholder:"Phone"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"text-sm font-medium mb-1.5 block",children:"Message"}),p.jsx($k,{required:!0,name:"message",placeholder:"Type your message here...",rows:5})]}),p.jsxs(tt,{type:"submit",size:"lg",variant:"outline",className:"w-full rounded-full",disabled:t,children:[t?"Sending...":"Send Message",p.jsx(IP,{className:"ml-2",size:16})]})]}),p.jsxs("div",{className:"mt-8 pt-6 border-t border-border text-center",children:[p.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Or reach out directly:"}),p.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 text-primary hover:underline font-medium",children:[p.jsx(AP,{size:16})," [email protected]"]})]})]})]})})]})},L4=()=>{const e=Fr();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-muted",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-muted-foreground",children:"Oops! Page not found"}),p.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},M4=()=>{const[e]=l2(),t=e.get("token"),[n,r]=b.useState("loading");b.useEffect(()=>{if(!t){r("invalid");return}(async()=>{try{const l=await fetch(`https://uecxtzonykcdllxsvjfg.supabase.co/functions/v1/handle-email-unsubscribe?token=${t}`,{headers:{apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVlY3h0em9ueWtjZGxseHN2amZnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQ1NzE3MzAsImV4cCI6MjA5MDE0NzczMH0.f96-HERmUu7cSHNwEKDnxlKjqs89xul9coN8qwbpjhc"}}),c=await l.json();l.ok&&c.valid?r("valid"):c.reason==="already_unsubscribed"?r("already_unsubscribed"):r("invalid")}catch{r("error")}})()},[t]);const s=async()=>{try{const{data:i,error:o}=await sE.functions.invoke("handle-email-unsubscribe",{body:{token:t}});if(o)throw o;i!=null&&i.success?r("success"):(i==null?void 0:i.reason)==="already_unsubscribed"?r("already_unsubscribed"):r("error")}catch{r("error")}};return p.jsx(Vr,{children:p.jsx("section",{className:"py-24 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6 max-w-md text-center",children:[n==="loading"&&p.jsx("p",{className:"text-muted-foreground",children:"Verifying..."}),n==="valid"&&p.jsxs("div",{className:"space-y-4",children:[p.jsx("h1",{className:"font-serif text-2xl font-bold",children:"Unsubscribe"}),p.jsx("p",{className:"text-muted-foreground",children:"Are you sure you want to unsubscribe from our emails?"}),p.jsx(tt,{onClick:s,className:"rounded-full",children:"Confirm Unsubscribe"})]}),n==="success"&&p.jsxs("div",{className:"space-y-3",children:[p.jsx("h1",{className:"font-serif text-2xl font-bold",children:"Unsubscribed"}),p.jsx("p",{className:"text-muted-foreground",children:"You have been successfully unsubscribed."})]}),n==="already_unsubscribed"&&p.jsxs("div",{className:"space-y-3",children:[p.jsx("h1",{className:"font-serif text-2xl font-bold",children:"Already Unsubscribed"}),p.jsx("p",{className:"text-muted-foreground",children:"You have already been unsubscribed from our emails."})]}),n==="invalid"&&p.jsxs("div",{className:"space-y-3",children:[p.jsx("h1",{className:"font-serif text-2xl font-bold",children:"Invalid Link"}),p.jsx("p",{className:"text-muted-foreground",children:"This unsubscribe link is invali
314d or has expired."})]}),n==="error"&&p.jsxs("div",{className:"space-y-3",children:[p.jsx("h1",{className:"font-serif text-2xl font-bold",children:"Something Went Wrong"}),p.jsx("p",{className:"text-muted-foreground",children:"Please try again later or contact us for help."})]})]})})})},D4=new iN,$4=()=>p.jsx(aN,{client:D4,children:p.jsxs(Lj,{children:[p.jsx(vA,{}),p.jsx(YA,{}),p.jsxs(s2,{children:[p.jsx(c2,{}),p.jsxs(YN,{children:[p.jsx(cn,{path:"/",element:p.jsx(wD,{})}),p.jsx(cn,{path:"/mind-mapping",element:p.jsx(bD,{})}),p.jsx(cn,{path:"/about",element:p.jsx(TD,{})}),p.jsx(cn,{path:"/life-coaching",element:p.jsx(_D,{})}),p.jsx(cn,{path:"/outschool",element:p.jsx(AD,{})}),p.jsx(cn,{path:"/community-outreach",element:p.jsx(MD,{})}),p.jsx(cn,{path:"/contact",element:p.jsx(I4,{})}),p.jsx(cn,{path:"*",element:p.jsx(L4,{})}),p.jsx(cn,{path:"/unsubscribe",element:p.jsx(M4,{})})]})]})]})});Zx(document.getElementById("root")).render(p.jsx(ob,{children:p.jsx($4,{})}));

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.