PageSourceSearch

https://zeropointlabs.ai/assets/index-CLtGP32Z.js

js zeropointlabs.ai collected 2026-10-05 15:19:23 UTC 898,867 bytes, 333 lines download raw bytes

vendor: 5,426 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-C2j6SfnZ.js","assets/badge-BKvD35-V.js","assets/Research-BG9oHxND.js","assets/select-Bq2l4yDN.js","assets/index-CMZ90543.js","assets/index-DAJOau0q.js","assets/usePublications-ZTTLGDzh.js","assets/eye-CNG-t9XB.js","assets/Team-DW2T8Q48.js","assets/usePublicationsByAuthor-D3uJ4xDn.js","assets/mail-BrhL5Kus.js","assets/github-BlT9urZP.js","assets/file-text-BL-ZejJn.js","assets/TeamMember-GgJSOGsV.js","assets/bibtex-oZ81ZAzw.js","assets/search-CW3eO2GS.js","assets/Insights-DU7yuYeR.js","assets/download-0Cc2Blf3.js","assets/Blog-DvgGQoFA.js","assets/clock-C9vcnWLo.js","assets/BlogPost-DgE29edd.js","assets/index-Clt_xwED.js","assets/Publications-B2lkU11m.js","assets/FAQ-Bvcl6HoX.js","assets/Login-Dvz-368h.js","assets/label-C5P13FKO.js","assets/ResetPassword-fB88ApCl.js","assets/Contact-DO-nnpMD.js","assets/types-BMHrb74q.js","assets/AdminLayout-ClAmdIQY.js","assets/separator-iZ0hbXOD.js","assets/newspaper-xPzFCBgf.js","assets/Dashboard-CZSAy0j_.js","assets/table-VQ_0MYAS.js","assets/plus-DFFH5FJe.js","assets/TeamManagement-xPNaNo08.js","assets/useMutation-BvxM86re.js","assets/DeleteConfirmDialog-DE-kX4hh.js","assets/alert-dialog-nG4Kb3iB.js","assets/index-mC58iiqr.js","assets/index-PT8koDjQ.js","assets/dialog-x1Gc4z_6.js","assets/switch-BuJuE40j.js","assets/ImageUpload-DhJhk6u0.js","assets/PublicationsManagement-VwqpOWoT.js","assets/FileUpload-DldFs2sY.js","assets/BlogManagement-BuVZp2j3.js","assets/pencil-BepMmq3g.js","assets/trash-2-MtCU_bNd.js","assets/ResearchManagement-3JCdraJY.js","assets/WhitePapersManagement-Coizpz_H.js","assets/ContactsManagement-2tzDkgZI.js","assets/NewsletterManagement-Dzi8ivJr.js","assets/AnalyticsPage-enBKY0FU.js","assets/SettingsPage-QJUQP6TU.js","assets/save-DQzP6t1C.js","assets/WizardConfig-Coaronwq.js"])))=>i.map(i=>d[i]);
2var hR=Object.defineProperty;var o0=e=>{throw TypeError(e)};var fR=(e,t,n)=>t in e?hR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Sr=(e,t,n)=>fR(e,typeof t!="symbol"?t+"":t,n),jh=(e,t,n)=>t.has(e)||o0("Cannot "+n);var P=(e,t,n)=>(jh(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>t.has(e)?o0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),U=(e,t,n,r)=>(jh(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ce=(e,t,n)=>(jh(e,t,"access private method"),n);var yu=(e,t,n,r)=>({set _(i){U(e,t,i,n)},get _(){return P(e,t,r)}});function pR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Dc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function As(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kS={exports:{}},Md={},ES={exports:{}},ue={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var Zl=Symbol.for("react.element"),mR=Symbol.for("react.portal"),gR=Symbol.for("react.fragment"),yR=Symbol.for("react.strict_mode"),vR=Symbol.for("react.profiler"),wR=Symbol.for("react.provider"),bR=Symbol.for("react.context"),xR=Symbol.for("react.forward_ref"),SR=Symbol.for("react.suspense"),kR=Symbol.for("react.memo"),ER=Symbol.for("react.lazy"),a0=Symbol.iterator;function CR(e){return e===null||typeof e!="object"?null:(e=a0&&e[a0]||e["@@iterator"],typeof e=="function"?e:null)}var CS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},TS=Object.assign,_S={};function ea(e,t,n){this.props=e,this.context=t,this.refs=_S,this.updater=n||CS}ea.prototype.isReactComponent={};ea.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")};ea.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function PS(){}PS.prototype=ea.prototype;function Pg(e,t,n){this.props=e,this.context=t,this.refs=_S,this.updater=n||CS}var Ag=Pg.prototype=new PS;Ag.constructor=Pg;TS(Ag,ea.prototype);Ag.isPureReactComponent=!0;var l0=Array.isArray,AS=Object.prototype.hasOwnProperty,Rg={current:null}
vendor: 5,629 bytes, lines 10-18
10,RS={key:!0,ref:!0,__self:!0,__source:!0};function jS(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)AS.call(t,r)&&!RS.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Zl,type:e,key:s,ref:o,props:i,_owner:Rg.current}}function TR(e,t){return{$$typeof:Zl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jg(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zl}function _R(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var u0=/\/+/g;function Nh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_R(""+e.key):t.toString(36)}function lc(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Zl:case mR:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Nh(o,0):r,l0(i)?(n="",e!=null&&(n=e.replace(u0,"$&/")+"/"),lc(i,t,n,"",function(u){return u})):i!=null&&(jg(i)&&(i=TR(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(u0,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",l0(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Nh(s,a);o+=lc(s,t,n,l,i)}else if(l=CR(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Nh(s,a++),o+=lc(s,t,n,l,i);else if(s==="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 vu(e,t,n){if(e==null)return e;var r=[],i=0;return lc(e,r,"","",function(s){return t.call(n,s,i++)}),r}function PR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pt={current:null},uc={transition:null},AR={ReactCurrentDispatcher:Pt,ReactCurrentBatchConfig:uc,ReactCurrentOwner:Rg};function NS(){throw Error("act(...) is not supported in production builds of React.")}ue.Children={map:vu,forEach:function(e,t,n){vu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vu(e,function(){t++}),t},toArray:function(e){return vu(e,function(t){return t})||[]},only:function(e){if(!jg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=ea;ue.Fragment=gR;ue.Profiler=vR;ue.PureComponent=Pg;ue.StrictMode=yR;ue.Suspense=SR;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AR;ue.act=NS;ue.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=TS({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Rg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)AS.call(t,l)&&!RS.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Zl,type:e.type,key:i,ref:s,props:r,_owner:o}};ue.createContext=function(e){return e={$$typeof:bR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wR,_context:e},e.Consumer=e};ue.createElement=jS;ue.createFactory=function(e){var t=jS.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:xR,render:e}};ue.isValidElement=jg;ue.lazy=function(e){return{$$typeof:ER,_payload:{_status:-1,_result:e},_init:PR}};ue.memo=function(e,t){return{$$typeof:kR,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=uc.transition;uc.transition={};try{e()}finally{uc.transition=t}};ue.unstable_act=NS;ue.useCallback=function(e,t){return Pt.current.useCallback(e,t)};ue.useContext=function(e){return Pt.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return Pt.current.useDeferredValue(e)};ue.useEffect=function(e,t){return Pt.current.useEffect(e,t)};ue.useId=function(){return Pt.current.useId()};ue.useImperativeHandle=function(e,t,n){return Pt.current.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return Pt.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return Pt.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return Pt.current.useMemo(e,t)};ue.useReducer=function(e,t,n){return Pt.current.useReducer(e,t,n)};ue.useRef=function(e){return Pt.current.useRef(e)};ue.useState=function(e){return Pt.current.useState(e)};ue.useSyncExternalStore=function(e,t,n){return Pt.current.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return Pt.current.useTransition()};ue.version="18.3.1";ES.exports=ue;var v=ES.exports;const L=As(v),Ng=pR({__proto__:null,default:L},[v]);/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var RR=v,jR=Symbol.for("react.element"),NR=Symbol.for("react.fragment"),OR=Object.prototype.hasOwnProperty,IR=RR.__SECRET_INT
vendor: 8,838 bytes, lines 18-34
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,LR={key:!0,ref:!0,__self:!0,__source:!0};function OS(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)OR.call(t,r)&&!LR.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:jR,type:e,key:s,ref:o,props:i,_owner:IR.current}}Md.Fragment=NR;Md.jsx=OS;Md.jsxs=OS;kS.exports=Md;var p=kS.exports,IS={exports:{}},tn={},LS={exports:{}},MS={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */(function(e){function t(D,M){var E=D.length;D.push(M);e:for(;0<E;){var Y=E-1>>>1,q=D[Y];if(0<i(q,M))D[Y]=M,D[E]=q,E=Y;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var M=D[0],E=D.pop();if(E!==M){D[0]=E;e:for(var Y=0,q=D.length,T=q>>>1;Y<T;){var ne=2*(Y+1)-1,_e=D[ne],ge=ne+1,fe=D[ge];if(0>i(_e,E))ge<q&&0>i(fe,_e)?(D[Y]=fe,D[ge]=E,Y=ge):(D[Y]=_e,D[ne]=E,Y=ne);else if(ge<q&&0>i(fe,E))D[Y]=fe,D[ge]=E,Y=ge;else break e}}return M}function i(D,M){var E=D.sortIndex-M.sortIndex;return E!==0?E:D.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,y=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,b=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(D){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=D)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function S(D){if(m=!1,w(D),!y)if(n(l)!==null)y=!0,Z(C);else{var M=n(u);M!==null&&se(S,M.startTime-D)}}function C(D,M){y=!1,m&&(m=!1,g(R),R=-1),h=!0;var E=f;try{for(w(M),d=n(l);d!==null&&(!(d.expirationTime>M)||D&&!I());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var q=Y(d.expirationTime<=M);M=e.unstable_now(),typeof q=="function"?d.callback=q:d===n(l)&&r(l),w(M)}else r(l);d=n(l)}if(d!==null)var T=!0;else{var ne=n(u);ne!==null&&se(S,ne.startTime-M),T=!1}return T}finally{d=null,f=E,h=!1}}var k=!1,_=null,R=-1,A=5,j=-1;function I(){return!(e.unstable_now()-j<A)}function O(){if(_!==null){var D=e.unstable_now();j=D;var M=!0;try{M=_(!0,D)}finally{M?W():(k=!1,_=null)}}else k=!1}var W;if(typeof b=="function")W=function(){b(O)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,K=Q.port2;Q.port1.onmessage=O,W=function(){K.postMessage(null)}}else W=function(){x(O,0)};function Z(D){_=D,k||(k=!0,W())}function se(D,M){R=x(function(){D(e.unstable_now())},M)}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(D){D.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,Z(C))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(D){switch(f){case 1:case 2:case 3:var M=3;break;default:M=f}var E=f;f=M;try{return D()}finally{f=E}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,M){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var E=f;f=D;try{return M()}finally{f=E}},e.unstable_scheduleCallback=function(D,M,E){var Y=e.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?Y+E:Y):E=Y,D){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=E+q,D={id:c++,callback:M,priorityLevel:D,startTime:E,expirationTime:q,sortIndex:-1},E>Y?(D.sortIndex=E,t(u,D),n(l)===null&&D===n(u)&&(m?(g(R),R=-1):m=!0,se(S,E-Y))):(D.sortIndex=q,t(l,D),y||h||(y=!0,Z(C))),D},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(D){var M=f;return function(){var E=f;f=M;try{return D.apply(this,arguments)}finally{f=E}}}})(MS);LS.exports=MS;var MR=LS.exports;/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var DR=v,en=MR;function F(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 DS=new Set,pl={};function Rs(e,t){Uo(e,t),Uo(e+"Capture",t)}function Uo(e,t){for(pl[e]=t,e=0;e<t.length;e++)DS.add(t[e])}var Or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sp=Object.prototype.hasOwnProperty,FR=/^[: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]*$/,c0={},d0={};function $R(e){return sp.call(d0,e)?!0:sp.call(c0,e)?!1:FR.test(e)?d0[e]=!0:(c0[e]=!0,!1)}function zR(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 BR(e,t,n,r){if(t===null||typeof t>"u"||zR(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 At(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pt[e]=new At(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pt[t]=new At(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pt[e]=new At(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pt[e]=new At(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){pt[e]=new At(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pt[e]=new At(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pt[e]=new At(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pt[e]=new At(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pt[e]=new At(e,5,!1,e.toLowerCase(),null,!1,!1)});var Og=/[\-:]([a-z])/g;function Ig(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
34-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(Og,Ig);pt[t]=new At(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(Og,Ig);pt[t]=new At(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(Og,Ig);pt[t]=new At(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pt[e]=new At(e,1,!1,e.toLowerCase(),null,!1,!1)});pt.xlinkHref=new At("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pt[e]=new At(e,1,!1,e.toLowerCase(),null,!0,!0)});function Lg(e,t,n,r){var i=pt.hasOwnProperty(t)?pt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(BR(t,n,i,r)&&(n=null),r||i===null?$R(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Dr=DR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,wu=Symbol.for("react.element"),Zs=Symbol.for("react.portal"),eo=Symbol.for("react.fragment"),Mg=Symbol.for("react.strict_mode"),op=Symbol.for("react.profiler"),FS=Symbol.for("react.provider"),$S=Symbol.for("react.context"),Dg=Symbol.for("react.forward_ref"),ap=Symbol.for("react.suspense"),lp=Symbol.for("react.suspense_list"),Fg=Symbol.for("react.memo"),ei=Symbol.for("react.lazy"),zS=Symbol.for("react.offscreen"),h0=Symbol.iterator;function wa(e){return e===null||typeof e!="object"?null:(e=h0&&e[h0]||e["@@iterator"],typeof e=="function"?e:null)}var Ve=Object.assign,Oh;function Da(e){if(Oh===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Oh=t&&t[1]||""}return`
35`+Oh+e}var Ih=!1;function Lh(e,t){if(!e||Ih)return"";Ih=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
36`),s=r.stack.split(`
37`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
38`+i[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{Ih=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Da(e):""}function UR(e){switch(e.tag){case 5:return Da(e.type);case 16:return Da("Lazy");case 13:return Da("Suspense");case 19:return Da("SuspenseList");case 0:case 2:case 15:return e=Lh(e.type,!1),e;case 11:return e=Lh(e.type.render,!1),e;case 1:return e=Lh(e.type,!0),e;default:return""}}function up(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 eo:return"Fragment";case Zs:return"Portal";case op:return"Profiler";case Mg:return"StrictMode";case ap:return"Suspense";case lp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $S:return(e.displayName||"Context")+".Consumer";case FS:return(e._context.displayName||"Context")+".Provider";case Dg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fg:return t=e.displayName||null,t!==null?t:up(e.type)||"Memo";case ei:t=e._payload,e=e._init;try{return up(e(t))}catch{}}return null}function VR(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 up(t);case 8:return t===Mg?"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 Pi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function BS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function HR(e){var t=BS(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 i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.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 bu(e){e._valueTracker||(e._valueTracker=HR(e))}function US(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=BS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fc(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 cp(e,t){var n=t.checked;return Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function f0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Pi(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 VS(e,t){t=t.checked,t!=null&&Lg(e,"checked",t,!1)}function dp(e,t){VS(e,t);var n=Pi(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")?hp(e,t.type,n):t.hasOwnProperty("defaultValue")&&hp(e,t.type,Pi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function p0(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 hp(e,t,n){(t!=="number"||Fc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fa=Array.isArray;function go(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Pi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function fp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return Ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function m0(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(Fa(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Pi(n)}}function HS(e,t){var n=Pi(t.value),r=Pi(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 g0(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function WS(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 pp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?WS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xu,qS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xu=xu||document.createElement("div"),xu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ml(e,t){if(t){var n=e.firstChild;
vendor: 9,889 bytes, line 38
38if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ka={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},WR=["Webkit","ms","Moz","O"];Object.keys(Ka).forEach(function(e){WR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ka[t]=Ka[e]})});function KS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ka.hasOwnProperty(e)&&Ka[e]?(""+t).trim():t+"px"}function GS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=KS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var qR=Ve({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 mp(e,t){if(t){if(qR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function gp(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 yp=null;function $g(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vp=null,yo=null,vo=null;function y0(e){if(e=nu(e)){if(typeof vp!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Bd(t),vp(e.stateNode,e.type,t))}}function YS(e){yo?vo?vo.push(e):vo=[e]:yo=e}function QS(){if(yo){var e=yo,t=vo;if(vo=yo=null,y0(e),t)for(e=0;e<t.length;e++)y0(t[e])}}function JS(e,t){return e(t)}function XS(){}var Mh=!1;function ZS(e,t,n){if(Mh)return e(t,n);Mh=!0;try{return JS(e,t,n)}finally{Mh=!1,(yo!==null||vo!==null)&&(XS(),QS())}}function gl(e,t){var n=e.stateNode;if(n===null)return null;var r=Bd(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(F(231,t,typeof n));return n}var wp=!1;if(Or)try{var ba={};Object.defineProperty(ba,"passive",{get:function(){wp=!0}}),window.addEventListener("test",ba,ba),window.removeEventListener("test",ba,ba)}catch{wp=!1}function KR(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ga=!1,$c=null,zc=!1,bp=null,GR={onError:function(e){Ga=!0,$c=e}};function YR(e,t,n,r,i,s,o,a,l){Ga=!1,$c=null,KR.apply(GR,arguments)}function QR(e,t,n,r,i,s,o,a,l){if(YR.apply(this,arguments),Ga){if(Ga){var u=$c;Ga=!1,$c=null}else throw Error(F(198));zc||(zc=!0,bp=u)}}function js(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 ek(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 v0(e){if(js(e)!==e)throw Error(F(188))}function JR(e){var t=e.alternate;if(!t){if(t=js(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return v0(i),e;if(s===r)return v0(i),t;s=s.sibling}throw Error(F(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,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){for(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)throw Error(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function tk(e){return e=JR(e),e!==null?nk(e):null}function nk(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=nk(e);if(t!==null)return t;e=e.sibling}return null}var rk=en.unstable_scheduleCallback,w0=en.unstable_cancelCallback,XR=en.unstable_shouldYield,ZR=en.unstable_requestPaint,Ge=en.unstable_now,ej=en.unstable_getCurrentPriorityLevel,zg=en.unstable_ImmediatePriority,ik=en.unstable_UserBlockingPriority,Bc=en.unstable_NormalPriority,tj=en.unstable_LowPriority,sk=en.unstable_IdlePriority,Dd=null,fr=null;function nj(e){if(fr&&typeof fr.onCommitFiberRoot=="function")try{fr.onCommitFiberRoot(Dd,e,void 0,(e.current.flags&128)===128)}catch{}}var Un=Math.clz32?Math.clz32:sj,rj=Math.log,ij=Math.LN2;function sj(e){return e>>>=0,e===0?32:31-(rj(e)/ij|0)|0}var Su=64,ku=4194304;function $a(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 Uc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=$a(a):(s&=o,s!==0&&(r=$a(s)))}else o=n&~i,o!==0?r=$a(o):s!==0&&(r=$a(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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-Un(t),i=1<<n,r|=e[n],t&=~i;return r}function oj(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 aj(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Un(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=oj(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function xp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ok(){var e=Su;return Su<<=1,!(Su&4194240)&&(Su=64),e}function Dh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function eu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Un(t),e[t]=n}function lj(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 i=31-Un(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Bg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Un(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ke=0;function ak(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var lk,Ug,uk,ck,dk,Sp=!1,Eu=[],vi=null,wi=null,bi=null,yl=new Map,vl=new Map,ni=[],uj="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 b0(e,t){switch(e){case"focusin":case"focusout":vi=null;break;case"dragenter":case"dragleave":wi=null;break;case"mouseover":case"mouseout":bi=null;break;case"pointerover":case"pointerout":yl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vl.delete(t.pointerId)}}function xa(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=nu(t),t!==null&&Ug(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function cj(e,t,n,r,i){switch(t){case"focusin":return vi=xa(vi,e,t,n,r,i),!0;case"dragenter":return wi=xa(wi,e,t,n,r,i),!0;case"mouseover":return bi=xa(bi,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return yl.set(s,xa(yl.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,vl.set(s,xa(vl.get(s)||null,e,t,n,r,i)),!0}return!1}function hk(e){var t=Xi(e.target);if(t!==null){var n=js(t);if(n!==null){if(t=n.tag,t===13){if(t=ek(n),t!==null){e.blockedOn=t,dk(e.priority,function(){uk(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 cc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=kp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);yp=r,n.target.dispatchEvent(r),yp=null}else return t=nu(n),t!==null&&Ug(t),e.blockedOn=n,!1;t.shift()}return!0}function x0(e,t,n){cc(e)&&n.delete(t)}
vendor: 9,407 bytes, line 38
38function dj(){Sp=!1,vi!==null&&cc(vi)&&(vi=null),wi!==null&&cc(wi)&&(wi=null),bi!==null&&cc(bi)&&(bi=null),yl.forEach(x0),vl.forEach(x0)}function Sa(e,t){e.blockedOn===t&&(e.blockedOn=null,Sp||(Sp=!0,en.unstable_scheduleCallback(en.unstable_NormalPriority,dj)))}function wl(e){function t(i){return Sa(i,e)}if(0<Eu.length){Sa(Eu[0],e);for(var n=1;n<Eu.length;n++){var r=Eu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(vi!==null&&Sa(vi,e),wi!==null&&Sa(wi,e),bi!==null&&Sa(bi,e),yl.forEach(t),vl.forEach(t),n=0;n<ni.length;n++)r=ni[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ni.length&&(n=ni[0],n.blockedOn===null);)hk(n),n.blockedOn===null&&ni.shift()}var wo=Dr.ReactCurrentBatchConfig,Vc=!0;function hj(e,t,n,r){var i=ke,s=wo.transition;wo.transition=null;try{ke=1,Vg(e,t,n,r)}finally{ke=i,wo.transition=s}}function fj(e,t,n,r){var i=ke,s=wo.transition;wo.transition=null;try{ke=4,Vg(e,t,n,r)}finally{ke=i,wo.transition=s}}function Vg(e,t,n,r){if(Vc){var i=kp(e,t,n,r);if(i===null)Kh(e,t,r,Hc,n),b0(e,r);else if(cj(i,e,t,n,r))r.stopPropagation();else if(b0(e,r),t&4&&-1<uj.indexOf(e)){for(;i!==null;){var s=nu(i);if(s!==null&&lk(s),s=kp(e,t,n,r),s===null&&Kh(e,t,r,Hc,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Kh(e,t,r,null,n)}}var Hc=null;function kp(e,t,n,r){if(Hc=null,e=$g(r),e=Xi(e),e!==null)if(t=js(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ek(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 Hc=e,null}function fk(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(ej()){case zg:return 1;case ik:return 4;case Bc:case tj:return 16;case sk:return 536870912;default:return 16}default:return 16}}var pi=null,Hg=null,dc=null;function pk(){if(dc)return dc;var e,t=Hg,n=t.length,r,i="value"in pi?pi.value:pi.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return dc=i.slice(e,1<r?1-r:void 0)}function hc(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 Cu(){return!0}function S0(){return!1}function nn(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Cu:S0,this.isPropagationStopped=S0,this}return Ve(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=Cu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Cu)},persist:function(){},isPersistent:Cu}),t}var ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wg=nn(ta),tu=Ve({},ta,{view:0,detail:0}),pj=nn(tu),Fh,$h,ka,Fd=Ve({},tu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qg,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!==ka&&(ka&&e.type==="mousemove"?(Fh=e.screenX-ka.screenX,$h=e.screenY-ka.screenY):$h=Fh=0,ka=e),Fh)},movementY:function(e){return"movementY"in e?e.movementY:$h}}),k0=nn(Fd),mj=Ve({},Fd,{dataTransfer:0}),gj=nn(mj),yj=Ve({},tu,{relatedTarget:0}),zh=nn(yj),vj=Ve({},ta,{animationName:0,elapsedTime:0,pseudoElement:0}),wj=nn(vj),bj=Ve({},ta,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xj=nn(bj),Sj=Ve({},ta,{data:0}),E0=nn(Sj),kj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ej={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"},Cj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tj(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cj[e])?!!t[e]:!1}function qg(){return Tj}var _j=Ve({},tu,{key:function(e){if(e.key){var t=kj[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ej[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qg,charCode:function(e){return e.type==="keypress"?hc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pj=nn(_j),Aj=Ve({},Fd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),C0=nn(Aj),Rj=Ve({},tu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qg}),jj=nn(Rj),Nj=Ve({},ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),Oj=nn(Nj),Ij=Ve({},Fd,{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}),Lj=nn(Ij),Mj=[9,13,27,32],Kg=Or&&"CompositionEvent"in window,Ya=null;Or&&"documentMode"in document&&(Ya=document.documentMode);var Dj=Or&&"TextEvent"in window&&!Ya,mk=Or&&(!Kg||Ya&&8<Ya&&11>=Ya),T0=" ",_0=!1;function gk(e,t){switch(e){case"keyup":return Mj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var to=!1;function Fj(e,t){switch(e){case"compositionend":return yk(t);case"keypress":return t.which!==32?null:(_0=!0,T0);case"textInput":return e=t.data,e===T0&&_0?null:e;default:return null}}function $j(e,t){if(to)return e==="compositionend"||!Kg&&gk(e,t)?(e=pk(),dc=Hg=pi=null,to=!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 mk&&t.locale!=="ko"?null:t.data;default:return null}}var zj={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 P0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zj[e.type]:t==="textarea"}function vk(e,t,n,r){YS(r),t=Wc(t,"onChange"),0<t.length&&(n=new Wg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qa=null,bl=null;function Bj(e){Ak(e,0)}function $d(e){var t=io(e);if(US(t))return e}function Uj(e,t){if(e==="change")return t}var wk=!1;if(Or){var Bh;if(Or){var Uh="oninput"in document;if(!Uh){var A0=document.createElement("div");A0.setAttribute("oninput","return;"),Uh=typeof A0.oninput=="function"}Bh=Uh}else Bh=!1;wk=Bh&&(!document.documentMode||9<document.documentMode)}function R0(){Qa&&(Qa.detachEvent("onpropertychange",bk),bl=Qa=null)}function bk(e){if(e.propertyName==="value"&&$d(bl)){var t=[];vk(t,bl,e,$g(e)),ZS(Bj,t)}}function Vj(e,t,n){e==="focusin"?(R0(),Qa=t,bl=n,Qa.attachEvent("onpropertychange",bk)):e==="focusout"&&R0()}function Hj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $d(bl)}function Wj(e,t){if(e==="click")return $d(t)}function qj(e,t){if(e==="input"||e==="change")return $d(t)}function Kj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wn=typeof Object.is=="function"?Object.is:Kj;function xl(e,t){if(Wn(e,t))return!0;
vendor: 4,808 bytes, line 38
38if(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 i=n[r];if(!sp.call(t,i)||!Wn(e[i],t[i]))return!1}return!0}function j0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function N0(e,t){var n=j0(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=j0(n)}}function xk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sk(){for(var e=window,t=Fc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fc(e.document)}return t}function Gg(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 Gj(e){var t=Sk(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xk(n.ownerDocument.documentElement,n)){if(r!==null&&Gg(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 i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=N0(n,s);var o=N0(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>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 Yj=Or&&"documentMode"in document&&11>=document.documentMode,no=null,Ep=null,Ja=null,Cp=!1;function O0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cp||no==null||no!==Fc(r)||(r=no,"selectionStart"in r&&Gg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ja&&xl(Ja,r)||(Ja=r,r=Wc(Ep,"onSelect"),0<r.length&&(t=new Wg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=no)))}function Tu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ro={animationend:Tu("Animation","AnimationEnd"),animationiteration:Tu("Animation","AnimationIteration"),animationstart:Tu("Animation","AnimationStart"),transitionend:Tu("Transition","TransitionEnd")},Vh={},kk={};Or&&(kk=document.createElement("div").style,"AnimationEvent"in window||(delete ro.animationend.animation,delete ro.animationiteration.animation,delete ro.animationstart.animation),"TransitionEvent"in window||delete ro.transitionend.transition);function zd(e){if(Vh[e])return Vh[e];if(!ro[e])return e;var t=ro[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kk)return Vh[e]=t[n];return e}var Ek=zd("animationend"),Ck=zd("animationiteration"),Tk=zd("animationstart"),_k=zd("transitionend"),Pk=new Map,I0="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 Oi(e,t){Pk.set(e,t),Rs(t,[e])}for(var Hh=0;Hh<I0.length;Hh++){var Wh=I0[Hh],Qj=Wh.toLowerCase(),Jj=Wh[0].toUpperCase()+Wh.slice(1);Oi(Qj,"on"+Jj)}Oi(Ek,"onAnimationEnd");Oi(Ck,"onAnimationIteration");Oi(Tk,"onAnimationStart");Oi("dblclick","onDoubleClick");Oi("focusin","onFocus");Oi("focusout","onBlur");Oi(_k,"onTransitionEnd");Uo("onMouseEnter",["mouseout","mouseover"]);Uo("onMouseLeave",["mouseout","mouseover"]);Uo("onPointerEnter",["pointerout","pointerover"]);Uo("onPointerLeave",["pointerout","pointerover"]);Rs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,388 bytes, line 38
38Rs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Rs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Rs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Rs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Rs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var za="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(" "),Xj=new Set("cancel close invalid load scroll toggle".split(" ").concat(za));function L0(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,QR(r,t,void 0,e),e.currentTarget=null}function Ak(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;L0(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;L0(i,a,u),s=l}}}if(zc)throw e=bp,zc=!1,bp=null,e}function Oe(e,t){var n=t[Rp];n===void 0&&(n=t[Rp]=new Set);var r=e+"__bubble";n.has(r)||(Rk(t,e,2,!1),n.add(r))}function qh(e,t,n){var r=0;t&&(r|=4),Rk(n,e,r,t)}var _u="_reactListening"+Math.random().toString(36).slice(2);function Sl(e){if(!e[_u]){e[_u]=!0,DS.forEach(function(n){n!=="selectionchange"&&(Xj.has(n)||qh(n,!1,e),qh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_u]||(t[_u]=!0,qh("selectionchange",!1,t))}}function Rk(e,t,n,r){switch(fk(t)){case 1:var i=hj;break;case 4:i=fj;break;default:i=Vg}n=i.bind(null,t,n,e),i=void 0,!wp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Kh(e,t,n,r,i){var s=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===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Xi(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}ZS(function(){var u=s,c=$g(n),d=[];e:{var f=Pk.get(e);if(f!==void 0){var h=Wg,y=e;switch(e){case"keypress":if(hc(n)===0)break e;case"keydown":case"keyup":h=Pj;break;case"focusin":y="focus",h=zh;break;case"focusout":y="blur",h=zh;break;case"beforeblur":case"afterblur":h=zh;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":h=k0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=gj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=jj;break;case Ek:case Ck:case Tk:h=wj;break;case _k:h=Oj;break;case"scroll":h=pj;break;case"wheel":h=Lj;break;case"copy":case"cut":case"paste":h=xj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=C0}var m=(t&4)!==0,x=!m&&e==="scroll",g=m?f!==null?f+"Capture":null:f;m=[];for(var b=u,w;b!==null;){w=b;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,g!==null&&(S=gl(b,g),S!=null&&m.push(kl(b,S,w)))),x)break;b=b.return}0<m.length&&(f=new h(f,y,null,n,c),d.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==yp&&(y=n.relatedTarget||n.fromElement)&&(Xi(y)||y[Ir]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?Xi(y):null,y!==null&&(x=js(y),y!==x||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(m=k0,S="onMouseLeave",g="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(m=C0,S="onPointerLeave",g="onPointerEnter",b="pointer"),x=h==null?f:io(h),w=y==null?f:io(y),f=new m(S,b+"leave",h,n,c
vendor: 5,040 bytes, lines 38-39
38),f.target=x,f.relatedTarget=w,S=null,Xi(c)===u&&(m=new m(g,b+"enter",y,n,c),m.target=w,m.relatedTarget=x,S=m),x=S,h&&y)t:{for(m=h,g=y,b=0,w=m;w;w=Is(w))b++;for(w=0,S=g;S;S=Is(S))w++;for(;0<b-w;)m=Is(m),b--;for(;0<w-b;)g=Is(g),w--;for(;b--;){if(m===g||g!==null&&m===g.alternate)break t;m=Is(m),g=Is(g)}m=null}else m=null;h!==null&&M0(d,f,h,m,!1),y!==null&&x!==null&&M0(d,x,y,m,!0)}}e:{if(f=u?io(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var C=Uj;else if(P0(f))if(wk)C=qj;else{C=Hj;var k=Vj}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=Wj);if(C&&(C=C(e,u))){vk(d,C,n,c);break e}k&&k(e,f,u),e==="focusout"&&(k=f._wrapperState)&&k.controlled&&f.type==="number"&&hp(f,"number",f.value)}switch(k=u?io(u):window,e){case"focusin":(P0(k)||k.contentEditable==="true")&&(no=k,Ep=u,Ja=null);break;case"focusout":Ja=Ep=no=null;break;case"mousedown":Cp=!0;break;case"contextmenu":case"mouseup":case"dragend":Cp=!1,O0(d,n,c);break;case"selectionchange":if(Yj)break;case"keydown":case"keyup":O0(d,n,c)}var _;if(Kg)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else to?gk(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(mk&&n.locale!=="ko"&&(to||R!=="onCompositionStart"?R==="onCompositionEnd"&&to&&(_=pk()):(pi=c,Hg="value"in pi?pi.value:pi.textContent,to=!0)),k=Wc(u,R),0<k.length&&(R=new E0(R,e,null,n,c),d.push({event:R,listeners:k}),_?R.data=_:(_=yk(n),_!==null&&(R.data=_)))),(_=Dj?Fj(e,n):$j(e,n))&&(u=Wc(u,"onBeforeInput"),0<u.length&&(c=new E0("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=_))}Ak(d,t)})}function kl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=gl(e,n),s!=null&&r.unshift(kl(e,s,i)),s=gl(e,t),s!=null&&r.push(kl(e,s,i))),e=e.return}return r}function Is(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function M0(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=gl(n,s),l!=null&&o.unshift(kl(n,l,a))):i||(l=gl(n,s),l!=null&&o.push(kl(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Zj=/\r\n?/g,eN=/\u0000|\uFFFD/g;function D0(e){return(typeof e=="string"?e:""+e).replace(Zj,`
39`).replace(eN,"")}function Pu(e,t,n){if(t=D0(t),D0(e)!==t&&n)throw Error(F(425))}function qc(){}var Tp=null,_p=null;function Pp(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 Ap=typeof setTimeout=="function"?setTimeout:void 0,tN=typeof clearTimeout=="function"?clearTimeout:void 0,F0=typeof Promise=="function"?Promise:void 0,nN=typeof queueMicrotask=="function"?queueMicrotask:typeof F0<"u"?function(e){return F0.resolve(null).then(e).catch(rN)}:Ap;function rN(e){setTimeout(function(){throw e})}function Gh(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),wl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);wl(t)}function xi(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 $0(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 na=Math.random().toString(36).slice(2),cr="__reactFiber$"+na,El="__reactProps$"+na,Ir="__reactContainer$"+na,Rp="__reactEvents$"+na,iN="__reactListeners$"+na,sN="__reactHandles$"+na;function Xi(e){var t=e[cr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ir]||n[cr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$0(e);e!==null;){if(n=e[cr])return n;e=$0(e)}return t}e=n,n=e.parentNode}return null}function nu(e){return e=e[cr]||e[Ir],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function io(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Bd(e){return e[El]||null}var jp=[],so=-1;function Ii(e){return{current:e}}function Le(e){0>so||(e.current=jp[so],jp[so]=null,so--)}function Re(e,t){so++,jp[so]=e.current,e.current=t}var Ai={},bt=Ii(Ai),Ft=Ii(!1),xs=Ai;function Vo(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $t(e){return e=e.childContextTypes,e!=null}function Kc(){Le(Ft),Le(bt)}
vendor: 4,191 bytes, line 39
39function z0(e,t,n){if(bt.current!==Ai)throw Error(F(168));Re(bt,t),Re(Ft,n)}function jk(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,VR(e)||"Unknown",i));return Ve({},n,r)}function Gc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,xs=bt.current,Re(bt,e),Re(Ft,Ft.current),!0}function B0(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=jk(e,t,xs),r.__reactInternalMemoizedMergedChildContext=e,Le(Ft),Le(bt),Re(bt,e)):Le(Ft),Re(Ft,n)}var Pr=null,Ud=!1,Yh=!1;function Nk(e){Pr===null?Pr=[e]:Pr.push(e)}function oN(e){Ud=!0,Nk(e)}function Li(){if(!Yh&&Pr!==null){Yh=!0;var e=0,t=ke;try{var n=Pr;for(ke=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pr=null,Ud=!1}catch(i){throw Pr!==null&&(Pr=Pr.slice(e+1)),rk(zg,Li),i}finally{ke=t,Yh=!1}}return null}var oo=[],ao=0,Yc=null,Qc=0,hn=[],fn=0,Ss=null,Rr=1,jr="";function Hi(e,t){oo[ao++]=Qc,oo[ao++]=Yc,Yc=e,Qc=t}function Ok(e,t,n){hn[fn++]=Rr,hn[fn++]=jr,hn[fn++]=Ss,Ss=e;var r=Rr;e=jr;var i=32-Un(r)-1;r&=~(1<<i),n+=1;var s=32-Un(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Rr=1<<32-Un(t)+i|n<<i|r,jr=s+e}else Rr=1<<s|n<<i|r,jr=e}function Yg(e){e.return!==null&&(Hi(e,1),Ok(e,1,0))}function Qg(e){for(;e===Yc;)Yc=oo[--ao],oo[ao]=null,Qc=oo[--ao],oo[ao]=null;for(;e===Ss;)Ss=hn[--fn],hn[fn]=null,jr=hn[--fn],hn[fn]=null,Rr=hn[--fn],hn[fn]=null}var Zt=null,Jt=null,De=!1,Fn=null;function Ik(e,t){var n=mn(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 U0(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Zt=e,Jt=xi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Zt=e,Jt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ss!==null?{id:Rr,overflow:jr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Zt=e,Jt=null,!0):!1;default:return!1}}function Np(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Op(e){if(De){var t=Jt;if(t){var n=t;if(!U0(e,t)){if(Np(e))throw Error(F(418));t=xi(n.nextSibling);var r=Zt;t&&U0(e,t)?Ik(r,n):(e.flags=e.flags&-4097|2,De=!1,Zt=e)}}else{if(Np(e))throw Error(F(418));e.flags=e.flags&-4097|2,De=!1,Zt=e}}}function V0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Zt=e}function Au(e){if(e!==Zt)return!1;if(!De)return V0(e),De=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Pp(e.type,e.memoizedProps)),t&&(t=Jt)){if(Np(e))throw Lk(),Error(F(418));for(;t;)Ik(e,t),t=xi(t.nextSibling)}if(V0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Jt=xi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Jt=null}}else Jt=Zt?xi(e.stateNode.nextSibling):null;return!0}function Lk(){for(var e=Jt;e;)e=xi(e.nextSibling)}function Ho(){Jt=Zt=null,De=!1}function Jg(e){Fn===null?Fn=[e]:Fn.push(e)}var aN=Dr.ReactCurrentBatchConfig;function Ea(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(F(309));var r=n.stateNode}if(!r)throw Error(F(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function Ru(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function H0(e){var t=e._init;return t(e._payload)}function Mk(e){function t(g,b){if(e){var w=g.deletions;w===null?(g.deletions=[b],g.flags|=16):w.push(b)}}function n(g,b){if(!e)return null;for(;b!==null;)t(g,b),b=b.sibling;return null}function r(g,b){for(g=new Map;b!==null;
vendor: 4,292 bytes, line 39
39)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function i(g,b){return g=Ci(g,b),g.index=0,g.sibling=null,g}function s(g,b,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<b?(g.flags|=2,b):w):(g.flags|=2,b)):(g.flags|=1048576,b)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,b,w,S){return b===null||b.tag!==6?(b=nf(w,g.mode,S),b.return=g,b):(b=i(b,w),b.return=g,b)}function l(g,b,w,S){var C=w.type;return C===eo?c(g,b,w.props.children,S,w.key):b!==null&&(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ei&&H0(C)===b.type)?(S=i(b,w.props),S.ref=Ea(g,b,w),S.return=g,S):(S=wc(w.type,w.key,w.props,null,g.mode,S),S.ref=Ea(g,b,w),S.return=g,S)}function u(g,b,w,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=rf(w,g.mode,S),b.return=g,b):(b=i(b,w.children||[]),b.return=g,b)}function c(g,b,w,S,C){return b===null||b.tag!==7?(b=ms(w,g.mode,S,C),b.return=g,b):(b=i(b,w),b.return=g,b)}function d(g,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return b=nf(""+b,g.mode,w),b.return=g,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case wu:return w=wc(b.type,b.key,b.props,null,g.mode,w),w.ref=Ea(g,null,b),w.return=g,w;case Zs:return b=rf(b,g.mode,w),b.return=g,b;case ei:var S=b._init;return d(g,S(b._payload),w)}if(Fa(b)||wa(b))return b=ms(b,g.mode,w,null),b.return=g,b;Ru(g,b)}return null}function f(g,b,w,S){var C=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:a(g,b,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case wu:return w.key===C?l(g,b,w,S):null;case Zs:return w.key===C?u(g,b,w,S):null;case ei:return C=w._init,f(g,b,C(w._payload),S)}if(Fa(w)||wa(w))return C!==null?null:c(g,b,w,S,null);Ru(g,w)}return null}function h(g,b,w,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(w)||null,a(b,g,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case wu:return g=g.get(S.key===null?w:S.key)||null,l(b,g,S,C);case Zs:return g=g.get(S.key===null?w:S.key)||null,u(b,g,S,C);case ei:var k=S._init;return h(g,b,w,k(S._payload),C)}if(Fa(S)||wa(S))return g=g.get(w)||null,c(b,g,S,C,null);Ru(b,S)}return null}function y(g,b,w,S){for(var C=null,k=null,_=b,R=b=0,A=null;_!==null&&R<w.length;R++){_.index>R?(A=_,_=null):A=_.sibling;var j=f(g,_,w[R],S);if(j===null){_===null&&(_=A);break}e&&_&&j.alternate===null&&t(g,_),b=s(j,b,R),k===null?C=j:k.sibling=j,k=j,_=A}if(R===w.length)return n(g,_),De&&Hi(g,R),C;if(_===null){for(;R<w.length;R++)_=d(g,w[R],S),_!==null&&(b=s(_,b,R),k===null?C=_:k.sibling=_,k=_);return De&&Hi(g,R),C}for(_=r(g,_);R<w.length;R++)A=h(_,g,R,w[R],S),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?R:A.key),b=s(A,b,R),k===null?C=A:k.sibling=A,k=A);return e&&_.forEach(function(I){return t(g,I)}),De&&Hi(g,R),C}function m(g,b,w,S){var C=wa(w);if(typeof C!="function")throw Error(F(150));if(w=C.call(w),w==null)throw Error(F(151));for(var k=C=null,_=b,R=b=0,A=null,j=w.next();_!==null&&!j.done;R++,j=w.next()){_.index>R?(A=_,_=null):A=_.sibling;var I=f(g,_,j.value,S);if(I===null){_===null&&(_=A);break}e&&_&&I.alternate===null&&t(g,_),b=s(I,b,R),k===null?C=I:k.sibling=I,k=I,_=A}if(j.done)return n(g,_),De&&Hi(g,R),C;if(_===null){for(;!j.done;R++,j=w.next())j=d(g,j.value,S),j!==null&&(b=s(j,b,R),k===null?C=j:k.sibling=j,k=j);return De&&Hi(g,R),C}for(_=r(g,_);!j.done;R++,j=w.next())j=h(_,g,R,j.value,S),j!==null&&(e&&j.alternate!==null&&_.delete(j.key===null?R:j.key),b=s(j,b,R),k===null?C=j:k.sibling=j,k=j);return e&&_.forEach(function(O){return t(g,O)}),De&&Hi(g,R),C}function x(g,b,w,S){if(typeof w=="object"&&w!==null&&w.type===eo&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case wu:e:{for(var C=w.key,k=b;k!==null;){if(k.key===C){if(C=w.type,C===eo){if(k.tag===7){n(g,k.sibling),b=i(k,w.props.children),b.return=g,g=b;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ei&&H0(C)===k.type){n(g,k.sibling),b=i(k,w.props),b.ref=Ea(g,k,w),b.return=g,g=b;break e}n(g,k);break}else t(g,k);k=k.sibling}w.type===eo?(b=ms(w.props.children,g.mode,S,w.key),b.return=g,g=b):(S=wc(w.type,w.key,w.props,null,g.mode,S),S.ref=Ea(g,b,w),S.return=g,g=S)}return o(g);
vendor: 8,688 bytes, line 39
39case Zs:e:{for(k=w.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(g,b.sibling),b=i(b,w.children||[]),b.return=g,g=b;break e}else{n(g,b);break}else t(g,b);b=b.sibling}b=rf(w,g.mode,S),b.return=g,g=b}return o(g);case ei:return k=w._init,x(g,b,k(w._payload),S)}if(Fa(w))return y(g,b,w,S);if(wa(w))return m(g,b,w,S);Ru(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(n(g,b.sibling),b=i(b,w),b.return=g,g=b):(n(g,b),b=nf(w,g.mode,S),b.return=g,g=b),o(g)):n(g,b)}return x}var Wo=Mk(!0),Dk=Mk(!1),Jc=Ii(null),Xc=null,lo=null,Xg=null;function Zg(){Xg=lo=Xc=null}function ey(e){var t=Jc.current;Le(Jc),e._currentValue=t}function Ip(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 bo(e,t){Xc=e,Xg=lo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Dt=!0),e.firstContext=null)}function vn(e){var t=e._currentValue;if(Xg!==e)if(e={context:e,memoizedValue:t,next:null},lo===null){if(Xc===null)throw Error(F(308));lo=e,Xc.dependencies={lanes:0,firstContext:e}}else lo=lo.next=e;return t}var Zi=null;function ty(e){Zi===null?Zi=[e]:Zi.push(e)}function Fk(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ty(t)):(n.next=i.next,i.next=n),t.interleaved=n,Lr(e,r)}function Lr(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 ti=!1;function ny(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $k(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 Nr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Si(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Lr(e,n)}return i=r.interleaved,i===null?(t.next=t,ty(r)):(t.next=i.next,i.next=t),r.interleaved=t,Lr(e,n)}function fc(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,Bg(e,n)}}function W0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=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};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 Zc(e,t,n,r){var i=e.updateQueue;ti=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,m=a;switch(f=t,h=n,m.tag){case 1:if(y=m.payload,typeof y=="function"){d=y.call(h,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,f=typeof y=="function"?y.call(h,d,f):y,f==null)break e;d=Ve({},d,f);break e;case 2:ti=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Es|=o,e.lanes=o,e.memoizedState=d}}function q0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(F(191,i));i.call(r)}}}var ru={},pr=Ii(ru),Cl=Ii(ru),Tl=Ii(ru);function es(e){if(e===ru)throw Error(F(174));return e}function ry(e,t){switch(Re(Tl,t),Re(Cl,e),Re(pr,ru),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pp(t,e)}Le(pr),Re(pr,t)}function qo(){Le(pr),Le(Cl),Le(Tl)}function zk(e){es(Tl.current);var t=es(pr.current),n=pp(t,e.type);t!==n&&(Re(Cl,e),Re(pr,n))}function iy(e){Cl.current===e&&(Le(pr),Le(Cl))}var ze=Ii(0);function ed(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 Qh=[];function sy(){for(var e=0;e<Qh.length;e++)Qh[e]._workInProgressVersionPrimary=null;Qh.length=0}var pc=Dr.ReactCurrentDispatcher,Jh=Dr.ReactCurrentBatchConfig,ks=0,Be=null,tt=null,ot=null,td=!1,Xa=!1,_l=0,lN=0;function mt(){throw Error(F(321))}function oy(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wn(e[n],t[n]))return!1;return!0}function ay(e,t,n,r,i,s){if(ks=s,Be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pc.current=e===null||e.memoizedState===null?hN:fN,e=n(r,i),Xa){s=0;do{if(Xa=!1,_l=0,25<=s)throw Error(F(301));s+=1,ot=tt=null,t.updateQueue=null,pc.current=pN,e=n(r,i)}while(Xa)}if(pc.current=nd,t=tt!==null&&tt.next!==null,ks=0,ot=tt=Be=null,td=!1,t)throw Error(F(300));return e}function ly(){var e=_l!==0;return _l=0,e}function er(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?Be.memoizedState=ot=e:ot=ot.next=e,ot}function wn(){if(tt===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=tt.next;var t=ot===null?Be.memoizedState:ot.next;if(t!==null)ot=t,tt=e;else{if(e===null)throw Error(F(310));tt=e,e={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},ot===null?Be.memoizedState=ot=e:ot=ot.next=e}return ot}function Pl(e,t){return typeof t=="function"?t(e):t}function Xh(e){var t=wn(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=tt,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var c=u.lane;if((ks&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,Be.lanes|=c,Es|=c}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,Wn(r,t.memoizedState)||(Dt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,Be.lanes|=s,Es|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zh(e){var t=wn(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Wn(s,t.memoizedState)||(Dt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Bk(){}function Uk(e,t){var n=Be,r=wn(),i=t(),s=!Wn(r.memoizedState,i);if(s&&(r.memoizedState=i,Dt=!0),r=r.queue,uy(Wk.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ot!==null&&ot.memoizedState.tag&1){if(n.flags|=2048,Al(9,Hk.bind(null,n,r,i,t),void 0,null),at===null)throw Error(F(349));ks&30||Vk(n,t,i)}return i}function Vk(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hk(e,t,n,r){t.value=n,t.getSnapshot=r,qk(t)&&Kk(e)}
vendor: 4,969 bytes, line 39
39function Wk(e,t,n){return n(function(){qk(t)&&Kk(e)})}function qk(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wn(e,n)}catch{return!0}}function Kk(e){var t=Lr(e,1);t!==null&&Vn(t,e,1,-1)}function K0(e){var t=er();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pl,lastRenderedState:e},t.queue=e,e=e.dispatch=dN.bind(null,Be,e),[t.memoizedState,e]}function Al(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.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 Gk(){return wn().memoizedState}function mc(e,t,n,r){var i=er();Be.flags|=e,i.memoizedState=Al(1|t,n,void 0,r===void 0?null:r)}function Vd(e,t,n,r){var i=wn();r=r===void 0?null:r;var s=void 0;if(tt!==null){var o=tt.memoizedState;if(s=o.destroy,r!==null&&oy(r,o.deps)){i.memoizedState=Al(t,n,s,r);return}}Be.flags|=e,i.memoizedState=Al(1|t,n,s,r)}function G0(e,t){return mc(8390656,8,e,t)}function uy(e,t){return Vd(2048,8,e,t)}function Yk(e,t){return Vd(4,2,e,t)}function Qk(e,t){return Vd(4,4,e,t)}function Jk(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 Xk(e,t,n){return n=n!=null?n.concat([e]):null,Vd(4,4,Jk.bind(null,t,e),n)}function cy(){}function Zk(e,t){var n=wn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oy(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function eE(e,t){var n=wn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oy(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function tE(e,t,n){return ks&21?(Wn(n,t)||(n=ok(),Be.lanes|=n,Es|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Dt=!0),e.memoizedState=n)}function uN(e,t){var n=ke;ke=n!==0&&4>n?n:4,e(!0);var r=Jh.transition;Jh.transition={};try{e(!1),t()}finally{ke=n,Jh.transition=r}}function nE(){return wn().memoizedState}function cN(e,t,n){var r=Ei(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rE(e))iE(t,n);else if(n=Fk(e,t,n,r),n!==null){var i=_t();Vn(n,e,r,i),sE(n,t,r)}}function dN(e,t,n){var r=Ei(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rE(e))iE(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Wn(a,o)){var l=t.interleaved;l===null?(i.next=i,ty(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Fk(e,t,i,r),n!==null&&(i=_t(),Vn(n,e,r,i),sE(n,t,r))}}function rE(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function iE(e,t){Xa=td=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bg(e,n)}}var nd={readContext:vn,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useInsertionEffect:mt,useLayoutEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useMutableSource:mt,useSyncExternalStore:mt,useId:mt,unstable_isNewReconciler:!1},hN={readContext:vn,useCallback:function(e,t){return er().memoizedState=[e,t===void 0?null:t],e},useContext:vn,useEffect:G0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,mc(4194308,4,Jk.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mc(4194308,4,e,t)},useInsertionEffect:function(e,t){return mc(4,2,e,t)},useMemo:function(e,t){var n=er();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=er();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=cN.bind(null,Be,e),[r.memoizedState,e]},useRef:function(e){var t=er();return e={current:e},t.memoizedState=e},useState:K0,useDebugValue:cy,useDeferredValue:function(e){return er().memoizedState=e},useTransition:function(){var e=K0(!1),t=e[0];return e=uN.bind(null,e[1]),er().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Be,i=er();if(De){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),at===null)throw Error(F(349));ks&30||Vk(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,G0(Wk.bind(null,r,s,e),[e]),r.flags|=2048,Al(9,Hk.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=er(),t=at.identifierPrefix;if(De){var n=jr,r=Rr;n=(r&~(1<<32-Un(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_l++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=lN++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fN={readContext:vn,useCallback:Zk,useContext:vn,useEffect:uy,useImperativeHandle:Xk,useInsertionEffect:Yk,useLayoutEffect:Qk,useMemo:eE,useReducer:Xh,useRef
vendor: 5,058 bytes, lines 39-41
39:Gk,useState:function(){return Xh(Pl)},useDebugValue:cy,useDeferredValue:function(e){var t=wn();return tE(t,tt.memoizedState,e)},useTransition:function(){var e=Xh(Pl)[0],t=wn().memoizedState;return[e,t]},useMutableSource:Bk,useSyncExternalStore:Uk,useId:nE,unstable_isNewReconciler:!1},pN={readContext:vn,useCallback:Zk,useContext:vn,useEffect:uy,useImperativeHandle:Xk,useInsertionEffect:Yk,useLayoutEffect:Qk,useMemo:eE,useReducer:Zh,useRef:Gk,useState:function(){return Zh(Pl)},useDebugValue:cy,useDeferredValue:function(e){var t=wn();return tt===null?t.memoizedState=e:tE(t,tt.memoizedState,e)},useTransition:function(){var e=Zh(Pl)[0],t=wn().memoizedState;return[e,t]},useMutableSource:Bk,useSyncExternalStore:Uk,useId:nE,unstable_isNewReconciler:!1};function On(e,t){if(e&&e.defaultProps){t=Ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Lp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Hd={isMounted:function(e){return(e=e._reactInternals)?js(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_t(),i=Ei(e),s=Nr(r,i);s.payload=t,n!=null&&(s.callback=n),t=Si(e,s,i),t!==null&&(Vn(t,e,i,r),fc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_t(),i=Ei(e),s=Nr(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Si(e,s,i),t!==null&&(Vn(t,e,i,r),fc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_t(),r=Ei(e),i=Nr(n,r);i.tag=2,t!=null&&(i.callback=t),t=Si(e,i,r),t!==null&&(Vn(t,e,r,n),fc(t,e,r))}};function Y0(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!xl(n,r)||!xl(i,s):!0}function oE(e,t,n){var r=!1,i=Ai,s=t.contextType;return typeof s=="object"&&s!==null?s=vn(s):(i=$t(t)?xs:bt.current,r=t.contextTypes,s=(r=r!=null)?Vo(e,i):Ai),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Hd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Q0(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&&Hd.enqueueReplaceState(t,t.state,null)}function Mp(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ny(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=vn(s):(s=$t(t)?xs:bt.current,i.context=Vo(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Lp(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Hd.enqueueReplaceState(i,i.state,null),Zc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ko(e,t){try{var n="",r=t;do n+=UR(r),r=r.return;while(r);var i=n}catch(s){i=`
40Error generating stack: `+s.message+`
41`+s.stack}return{value:e,source:t,stack:i,digest:null}}function ef(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Dp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var mN=typeof WeakMap=="function"?WeakMap:Map;function aE(e,t,n){n=Nr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){id||(id=!0,Kp=r),Dp(e,t)},n}function lE(e,t,n){n=Nr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Dp(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Dp(e,t),typeof r!="function"&&(ki===null?ki=new Set([this]):ki.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function J0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new mN;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=AN.bind(null,e,t,n),t.then(e,e))}function X0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Z0(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=Nr(-1,1),t.tag=2,Si(n,t,1))),n.lanes|=1),e)}var gN=Dr.ReactCurrentOwner,Dt=!1;function Et(e,t,n,r){t.child=e===null?Dk(t,null,n,r):Wo(t,e.child,n,r)}function ew(e,t,n,r,i){n=n.render;var s=t.ref;return bo(t,i),r=ay(e,t,n,r,s,i),n=ly(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mr(e,t,i)):(De&&n&&Yg(t),t.flags|=1,Et(e,t,r,i
vendor: 9,712 bytes, line 41
41),t.child)}function tw(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!vy(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,uE(e,t,s,r,i)):(e=wc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:xl,n(o,r)&&e.ref===t.ref)return Mr(e,t,i)}return t.flags|=1,e=Ci(s,r),e.ref=t.ref,e.return=t,t.child=e}function uE(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(xl(s,r)&&e.ref===t.ref)if(Dt=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Dt=!0);else return t.lanes=e.lanes,Mr(e,t,i)}return Fp(e,t,n,r,i)}function cE(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Re(co,Yt),Yt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Re(co,Yt),Yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Re(co,Yt),Yt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Re(co,Yt),Yt|=r;return Et(e,t,i,n),t.child}function dE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Fp(e,t,n,r,i){var s=$t(n)?xs:bt.current;return s=Vo(t,s),bo(t,i),n=ay(e,t,n,r,s,i),r=ly(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mr(e,t,i)):(De&&r&&Yg(t),t.flags|=1,Et(e,t,n,i),t.child)}function nw(e,t,n,r,i){if($t(n)){var s=!0;Gc(t)}else s=!1;if(bo(t,i),t.stateNode===null)gc(e,t),oE(t,n,r),Mp(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=vn(u):(u=$t(n)?xs:bt.current,u=Vo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Q0(t,o,r,u),ti=!1;var f=t.memoizedState;o.state=f,Zc(t,r,o,i),l=t.memoizedState,a!==r||f!==l||Ft.current||ti?(typeof c=="function"&&(Lp(t,n,c,r),l=t.memoizedState),(a=ti||Y0(t,n,a,r,f,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,$k(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:On(t.type,a),o.props=u,d=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=vn(l):(l=$t(n)?xs:bt.current,l=Vo(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==l)&&Q0(t,o,r,l),ti=!1,f=t.memoizedState,o.state=f,Zc(t,r,o,i);var y=t.memoizedState;a!==d||f!==y||Ft.current||ti?(typeof h=="function"&&(Lp(t,n,h,r),y=t.memoizedState),(u=ti||Y0(t,n,u,r,f,y,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return $p(e,t,n,r,s,i)}function $p(e,t,n,r,i,s){dE(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&B0(t,n,!1),Mr(e,t,s);r=t.stateNode,gN.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Wo(t,e.child,null,s),t.child=Wo(t,null,a,s)):Et(e,t,a,s),t.memoizedState=r.state,i&&B0(t,n,!0),t.child}function hE(e){var t=e.stateNode;t.pendingContext?z0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&z0(e,t.context,!1),ry(e,t.containerInfo)}function rw(e,t,n,r,i){return Ho(),Jg(i),t.flags|=256,Et(e,t,n,r),t.child}var zp={dehydrated:null,treeContext:null,retryLane:0};function Bp(e){return{baseLanes:e,cachePool:null,transitions:null}}function fE(e,t,n){var r=t.pendingProps,i=ze.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Re(ze,i&1),e===null)return Op(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,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Kd(o,r,0,null),e=ms(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Bp(n),t.memoizedState=zp,e):dy(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return yN(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Ci(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Ci(a,s):(s=ms(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Bp(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=zp,r}return s=e.child,e=s.sibling,r=Ci(s,{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 dy(e,t){return t=Kd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ju(e,t,n,r){return r!==null&&Jg(r),Wo(t,e.child,null,n),e=dy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yN(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=ef(Error(F(422))),ju(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Kd({mode:"visible",children:r.children},i,0,null),s=ms(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Wo(t,e.child,null,o),t.child.memoizedState=Bp(o),t.memoizedState=zp,s);if(!(t.mode&1))return ju(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(F(419)),r=ef(s,r,void 0),ju(e,t,o,r)}if(a=(o&e.childLanes)!==0,Dt||a){if(r=at,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Lr(e,i),Vn(r,e,i,-1))}return yy(),r=ef(Error(F(421))),ju(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=RN.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Jt=xi(i.nextSibling),Zt=t,De=!0,Fn=null,e!==null&&(hn[fn++]=Rr,hn[fn++]=jr,hn[fn++]=Ss,Rr=e.id,jr=e.overflow,Ss=t),t=dy(t,r.children),t.flags|=4096,t)}function iw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ip(e.return,t,n)}function tf(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function pE(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Et(e,t,r.children,n),r=ze.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&&iw(e,n,t);else if(e.tag===19)iw(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(Re(ze,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ed(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),tf(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ed(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}tf(t,!0,n,null,s);break;case"together":tf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Es|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=Ci(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ci(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}
vendor: 4,565 bytes, line 41
41function vN(e,t,n){switch(t.tag){case 3:hE(t),Ho();break;case 5:zk(t);break;case 1:$t(t.type)&&Gc(t);break;case 4:ry(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Re(Jc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Re(ze,ze.current&1),t.flags|=128,null):n&t.child.childLanes?fE(e,t,n):(Re(ze,ze.current&1),e=Mr(e,t,n),e!==null?e.sibling:null);Re(ze,ze.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pE(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Re(ze,ze.current),r)break;return null;case 22:case 23:return t.lanes=0,cE(e,t,n)}return Mr(e,t,n)}var mE,Up,gE,yE;mE=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}};Up=function(){};gE=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,es(pr.current);var s=null;switch(n){case"input":i=cp(e,i),r=cp(e,r),s=[];break;case"select":i=Ve({},i,{value:void 0}),r=Ve({},r,{value:void 0}),s=[];break;case"textarea":i=fp(e,i),r=fp(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=qc)}mp(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(pl.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(pl.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Oe("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};yE=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ca(e,t){if(!De)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 gt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function wN(e,t,n){var r=t.pendingProps;switch(Qg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(t),null;case 1:return $t(t.type)&&Kc(),gt(t),null;case 3:return r=t.stateNode,qo(),Le(Ft),Le(bt),sy(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Au(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fn!==null&&(Qp(Fn),Fn=null))),Up(e,t),gt(t),null;case 5:iy(t);var i=es(Tl.current);if(n=t.type,e!==null&&t.stateNode!=null)gE(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return gt(t),null}if(e=es(pr.current),Au(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[cr]=t,r[El]=s,e=(t.mode&1)!==0,n){case"dialog":Oe("cancel",r),Oe("close",r);break;case"iframe":case"object":case"embed":Oe("load",r);break;case"video":case"audio":for(i=0;i<za.length;i++)Oe(za[i],r);break;case"source":Oe("error",r);break;case"img":case"image":case"link":Oe("error",r),Oe("load",r);break;case"details":Oe("toggle",r);break;case"input":f0(r,s),Oe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Oe("invalid",r);break;case"textarea":m0(r,s),Oe("invalid",r)}mp(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];
vendor: 32,436 bytes, line 41
41o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Pu(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Pu(r.textContent,a,e),i=["children",""+a]):pl.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Oe("scroll",r)}switch(n){case"input":bu(r),p0(r,s,!0);break;case"textarea":bu(r),g0(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=qc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=WS(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[cr]=t,e[El]=r,mE(e,t,!1,!1),t.stateNode=e;e:{switch(o=gp(n,r),n){case"dialog":Oe("cancel",e),Oe("close",e),i=r;break;case"iframe":case"object":case"embed":Oe("load",e),i=r;break;case"video":case"audio":for(i=0;i<za.length;i++)Oe(za[i],e);i=r;break;case"source":Oe("error",e),i=r;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),i=r;break;case"details":Oe("toggle",e),i=r;break;case"input":f0(e,r),i=cp(e,r),Oe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ve({},r,{value:void 0}),Oe("invalid",e);break;case"textarea":m0(e,r),i=fp(e,r),Oe("invalid",e);break;default:i=r}mp(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?GS(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&qS(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ml(e,l):typeof l=="number"&&ml(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(pl.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Oe("scroll",e):l!=null&&Lg(e,s,l,o))}switch(n){case"input":bu(e),p0(e,r,!1);break;case"textarea":bu(e),g0(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Pi(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?go(e,!!r.multiple,s,!1):r.defaultValue!=null&&go(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=qc)}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 gt(t),null;case 6:if(e&&t.stateNode!=null)yE(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=es(Tl.current),es(pr.current),Au(t)){if(r=t.stateNode,n=t.memoizedProps,r[cr]=t,(s=r.nodeValue!==n)&&(e=Zt,e!==null))switch(e.tag){case 3:Pu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Pu(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[cr]=t,t.stateNode=r}return gt(t),null;case 13:if(Le(ze),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(De&&Jt!==null&&t.mode&1&&!(t.flags&128))Lk(),Ho(),t.flags|=98560,s=!1;else if(s=Au(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(F(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(F(317));s[cr]=t}else Ho(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gt(t),s=!1}else Fn!==null&&(Qp(Fn),Fn=null),s=!0;if(!s)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||ze.current&1?it===0&&(it=3):yy())),t.updateQueue!==null&&(t.flags|=4),gt(t),null);case 4:return qo(),Up(e,t),e===null&&Sl(t.stateNode.containerInfo),gt(t),null;case 10:return ey(t.type._context),gt(t),null;case 17:return $t(t.type)&&Kc(),gt(t),null;case 19:if(Le(ze),s=t.memoizedState,s===null)return gt(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Ca(s,!1);else{if(it!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ed(e),o!==null){for(t.flags|=128,Ca(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Re(ze,ze.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ge()>Go&&(t.flags|=128,r=!0,Ca(s,!1),t.lanes=4194304)}else{if(!r)if(e=ed(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ca(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!De)return gt(t),null}else 2*Ge()-s.renderingStartTime>Go&&n!==1073741824&&(t.flags|=128,r=!0,Ca(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ge(),t.sibling=null,n=ze.current,Re(ze,r?n&1|2:n&1),t):(gt(t),null);case 22:case 23:return gy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Yt&1073741824&&(gt(t),t.subtreeFlags&6&&(t.flags|=8192)):gt(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function bN(e,t){switch(Qg(t),t.tag){case 1:return $t(t.type)&&Kc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qo(),Le(Ft),Le(bt),sy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iy(t),null;case 13:if(Le(ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(ze),null;case 4:return qo(),null;case 10:return ey(t.type._context),null;case 22:case 23:return gy(),null;case 24:return null;default:return null}}var Nu=!1,vt=!1,xN=typeof WeakSet=="function"?WeakSet:Set,B=null;function uo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){qe(e,t,r)}else n.current=null}function Vp(e,t,n){try{n()}catch(r){qe(e,t,r)}}var sw=!1;function SN(e,t){if(Tp=Vc,e=Sk(),Gg(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(_p={focusedElem:e,selectionRange:n},Vc=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,x=y.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:On(t.type,m),x);g.__reactInternalSnapshotBeforeUpdate=b}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(F(163))}}catch(S){qe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return y=sw,sw=!1,y}function Za(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Vp(t,n,s)}i=i.next}while(i!==r)}}function Wd(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 Hp(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 vE(e){var t=e.alternate;t!==null&&(e.alternate=null,vE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cr],delete t[El],delete t[Rp],delete t[iN],delete t[sN])),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 wE(e){return e.tag===5||e.tag===3||e.tag===4}function ow(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wE(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 Wp(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=qc));else if(r!==4&&(e=e.child,e!==null))for(Wp(e,t,n),e=e.sibling;e!==null;)Wp(e,t,n),e=e.sibling}function qp(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(qp(e,t,n),e=e.sibling;e!==null;)qp(e,t,n),e=e.sibling}var ct=null,Dn=!1;function Wr(e,t,n){for(n=n.child;n!==null;)bE(e,t,n),n=n.sibling}function bE(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Dd,n)}catch{}switch(n.tag){case 5:vt||uo(n,t);case 6:var r=ct,i=Dn;ct=null,Wr(e,t,n),ct=r,Dn=i,ct!==null&&(Dn?(e=ct,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ct.removeChild(n.stateNode));break;case 18:ct!==null&&(Dn?(e=ct,n=n.stateNode,e.nodeType===8?Gh(e.parentNode,n):e.nodeType===1&&Gh(e,n),wl(e)):Gh(ct,n.stateNode));break;case 4:r=ct,i=Dn,ct=n.stateNode.containerInfo,Dn=!0,Wr(e,t,n),ct=r,Dn=i;break;case 0:case 11:case 14:case 15:if(!vt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Vp(n,t,o),i=i.next}while(i!==r)}Wr(e,t,n);break;case 1:if(!vt&&(uo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){qe(n,t,a)}Wr(e,t,n);break;case 21:Wr(e,t,n);break;case 22:n.mode&1?(vt=(r=vt)||n.memoizedState!==null,Wr(e,t,n),vt=r):Wr(e,t,n);break;default:Wr(e,t,n)}}function aw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xN),t.forEach(function(r){var i=jN.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:ct=a.stateNode,Dn=!1;break e;case 3:ct=a.stateNode.containerInfo,Dn=!0;break e;case 4:ct=a.stateNode.containerInfo,Dn=!0;break e}a=a.return}if(ct===null)throw Error(F(160));bE(s,o,i),ct=null,Dn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){qe(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xE(t,e),t=t.sibling}function xE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pn(t,e),Xn(e),r&4){try{Za(3,e,e.return),Wd(3,e)}catch(m){qe(e,e.return,m)}try{Za(5,e,e.return)}catch(m){qe(e,e.return,m)}}break;case 1:Pn(t,e),Xn(e),r&512&&n!==null&&uo(n,n.return);break;case 5:if(Pn(t,e),Xn(e),r&512&&n!==null&&uo(n,n.return),e.flags&32){var i=e.stateNode;try{ml(i,"")}catch(m){qe(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&VS(i,s),gp(a,o);var u=gp(a,s);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?GS(i,d):c==="dangerouslySetInnerHTML"?qS(i,d):c==="children"?ml(i,d):Lg(i,c,d,u)}switch(a){case"input":dp(i,s);break;case"textarea":HS(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?go(i,!!s.multiple,h,!1):f!==!!s.multiple&&(s.defaultValue!=null?go(i,!!s.multiple,s.defaultValue,!0):go(i,!!s.multiple,s.multiple?[]:"",!1))}i[El]=s}catch(m){qe(e,e.return,m)}}break;case 6:if(Pn(t,e),Xn(e),r&4){if(e.stateNode===null)throw Error(F(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(m){qe(e,e.return,m)}}break;case 3:if(Pn(t,e),Xn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{wl(t.containerInfo)}catch(m){qe(e,e.return,m)}break;case 4:Pn(t,e),Xn(e);break;case 13:Pn(t,e),Xn(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(py=Ge())),r&4&&aw(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(vt=(u=vt)||c,Pn(t,e),vt=u):Pn(t,e),Xn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(B=e,c=e.child;c!==null;){for(d=B=c;B!==null;){switch(f=B,h=f.child,f.tag){case 0:case 11:case 14:case 15:Za(4,f,f.return);break;case 1:uo(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){qe(r,n,m)}}break;case 5:uo(f,f.return);break;case 22:if(f.memoizedState!==null){uw(d);continue}}h!==null?(h.return=f,B=h):uw(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=KS("display",o))}catch(m){qe(e,e.return,m)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){qe(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Pn(t,e),Xn(e),r&4&&aw(e);break;case 21:break;default:Pn(t,e),Xn(e)}}function Xn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wE(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ml(i,""),r.flags&=-33);var s=ow(e);qp(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=ow(e);Wp(e,a,o);break;default:throw Error(F(161))}}catch(l){qe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kN(e,t,n){B=e,SE(e)}function SE(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var i=B,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Nu;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||vt;a=Nu;var u=vt;if(Nu=o,(vt=l)&&!u)for(B=i;B!==null;)o=B,l=o.child,o.tag===22&&o.memoizedState!==null?cw(i):l!==null?(l.return=o,B=l):cw(i);for(;s!==null;)B=s,SE(s),s=s.sibling;B=i,Nu=a,vt=u}lw(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,B=s):lw(e)}}function lw(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:vt||Wd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!vt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:On(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&q0(t,s,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}q0(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&wl(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}vt||t.flags&512&&Hp(t)}catch(f){qe(t,t.return,f)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function uw(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function cw(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Wd(4,t)}catch(l){qe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){qe(t,i,l)}}var s=t.return;try{Hp(t)}catch(l){qe(t,s,l)}break;case 5:var o=t.return;try{Hp(t)}catch(l){qe(t,o,l)}}}catch(l){qe(t,t.return,l)}if(t===e){B=null;break}var a=t.sibling;if(a!==null){a.return=t.return,B=a;break}B=t.return}}var EN=Math.ceil,rd=Dr.ReactCurrentDispatcher,hy=Dr.ReactCurrentOwner,yn=Dr.ReactCurrentBatchConfig,pe=0,at=null,Ze=null,ft=0,Yt=0,co=Ii(0),it=0,Rl=null,Es=0,qd=0,fy=0,el=null,Mt=null,py=0,Go=1/0,Cr=null,id=!1,Kp=null,ki=null,Ou=!1,mi=null,sd=0,tl=0,Gp=null,yc=-1,vc=0;function _t(){return pe&6?Ge():yc!==-1?yc:yc=Ge()}function Ei(e){return e.mode&1?pe&2&&ft!==0?ft&-ft:aN.transition!==null?(vc===0&&(vc=ok()),vc):(e=ke,e!==0||(e=window.event,e=e===void 0?16:fk(e.type)),e):1}function Vn(e,t,n,r){if(50<tl)throw tl=0,Gp=null,Error(F(185));eu(e,n,r),(!(pe&2)||e!==at)&&(e===at&&(!(pe&2)&&(qd|=n),it===4&&ri(e,ft)),zt(e,r),n===1&&pe===0&&!(t.mode&1)&&(Go=Ge()+500,Ud&&Li()))}function zt(e,t){var n=e.callbackNode;aj(e,t);var r=Uc(e,e===at?ft:0);if(r===0)n!==null&&w0(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&w0(n),t===1)e.tag===0?oN(dw.bind(null,e)):Nk(dw.bind(null,e)),nN(function(){!(pe&6)&&Li()}),n=null;else{switch(ak(r)){case 1:n=zg;break;case 4:n=ik;break;case 16:n=Bc;break;case 536870912:n=sk;break;default:n=Bc}n=RE(n,kE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kE(e,t){if(yc=-1,vc=0,pe&6)throw Error(F(327));var n=e.callbackNode;if(xo()&&e.callbackNode!==n)return null;var r=Uc(e,e===at?ft:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=od(e,r);else{t=r;var i=pe;pe|=2;var s=CE();(at!==e||ft!==t)&&(Cr=null,Go=Ge()+500,ps(e,t));do try{_N();break}catch(a){EE(e,a)}while(!0);Zg(),rd.current=s,pe=i,Ze!==null?t=0:(at=null,ft=0,t=it)}if(t!==0){if(t===2&&(i=xp(e),i!==0&&(r=i,t=Yp(e,i))),t===1)throw n=Rl,ps(e,0),ri(e,r),zt(e,Ge()),n;if(t===6)ri(e,r);else{if(i=e.current.alternate,!(r&30)&&!CN(i)&&(t=od(e,r),t===2&&(s=xp(e),s!==0&&(r=s,t=Yp(e,s))),t===1))throw n=Rl,ps(e,0),ri(e,r),zt(e,Ge()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:Wi(e,Mt,Cr);break;case 3:if(ri(e,r),(r&130023424)===r&&(t=py+500-Ge(),10<t)){if(Uc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){_t(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ap(Wi.bind(null,e,Mt,Cr),t);break}Wi(e,Mt,Cr);break;case 4:if(ri(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Un(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Ge()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*EN(r/1960))-r,10<r){e.timeoutHandle=Ap(Wi.bind(null,e,Mt,Cr),r);break}Wi(e,Mt,Cr);break;case 5:Wi(e,Mt,Cr);break;default:throw Error(F(329))}}}return zt(e,Ge()),e.callbackNode===n?kE.bind(null,e):null}function Yp(e,t){var n=el;return e.current.memoizedState.isDehydrated&&(ps(e,t).flags|=256),e=od(e,t),e!==2&&(t=Mt,Mt=n,t!==null&&Qp(t)),e}function Qp(e){Mt===null?Mt=e:Mt.push.apply(Mt,e)}function CN(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 i=n[r],s=i.getSnapshot;i=i.value;try{if(!Wn(s(),i))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 ri(e,t){for(t&=~fy,t&=~qd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Un(t),r=1<<n;e[n]=-1,t&=~r}}function dw(e){if(pe&6)throw Error(F(327));xo();var t=Uc(e,0);if(!(t&1))return zt(e,Ge()),null;var n=od(e,t);if(e.tag!==0&&n===2){var r=xp(e);r!==0&&(t=r,n=Yp(e,r))}if(n===1)throw n=Rl,ps(e,0),ri(e,t),zt(e,Ge()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wi(e,Mt,Cr),zt(e,Ge()),null}function my(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(Go=Ge()+500,Ud&&Li())}}function Cs(e){mi!==null&&mi.tag===0&&!(pe&6)&&xo();var t=pe;pe|=1;var n=yn.transition,r=ke;try{if(yn.transition=null,ke=1,e)return e()}finally{ke=r,yn.transition=n,pe=t,!(pe&6)&&Li()}}function gy(){Yt=co.current,Le(co)}function ps(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,tN(n)),Ze!==null)for(n=Ze.return;n!==null;){var r=n;switch(Qg(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Kc();break;case 3:qo(),Le(Ft),Le(bt),sy();break;case 5:iy(r);break;case 4:qo();break;case 13:Le(ze);break;case 19:Le(ze);break;case 10:ey(r.type._context);break;case 22:case 23:gy()}n=n.return}if(at=e,Ze=e=Ci(e.current,null),ft=Yt=t,it=0,Rl=null,fy=qd=Es=0,Mt=el=null,Zi!==null){for(t=0;t<Zi.length;t++)if(n=Zi[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Zi=null}return e}function EE(e,t){do{var n=Ze;try{if(Zg(),pc.current=nd,td){for(var r=Be.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}td=!1}if(ks=0,ot=tt=Be=null,Xa=!1,_l=0,hy.current=null,n===null||n.return===null){it=1,Rl=t,Ze=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=ft,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=X0(o);if(h!==null){h.flags&=-257,Z0(h,o,a,s,t),h.mode&1&&J0(s,u,t),t=h,l=u;var y=t.updateQueue;if(y===null){var m=new Set;m.add(l),t.updateQueue=m}else y.add(l);break e}else{if(!(t&1)){J0(s,u,t),yy();break e}l=Error(F(426))}}else if(De&&a.mode&1){var x=X0(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Z0(x,o,a,s,t),Jg(Ko(l,a));break e}}s=l=Ko(l,a),it!==4&&(it=2),el===null?el=[s]:el.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=aE(s,l,t);W0(s,g);break e;case 1:a=l;var b=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof b.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(ki===null||!ki.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=lE(s,a,t);W0(s,S);break e}}s=s.return}while(s!==null)}_E(n)}catch(C){t=C,Ze===n&&n!==null&&(Ze=n=n.return);continue}break}while(!0)}function CE(){var e=rd.current;return rd.current=nd,e===null?nd:e}function yy(){(it===0||it===3||it===2)&&(it=4),at===null||!(Es&268435455)&&!(qd&268435455)||ri(at,ft)}function od(e,t){var n=pe;pe|=2;var r=CE();(at!==e||ft!==t)&&(Cr=null,ps(e,t));do try{TN();break}catch(i){EE(e,i)}while(!0);if(Zg(),pe=n,rd.current=r,Ze!==null)throw Error(F(261));return at=null,ft=0,it}function TN(){for(;Ze!==null;)TE(Ze)}function _N(){for(;Ze!==null&&!XR();)TE(Ze)}function TE(e){var t=AE(e.alternate,e,Yt);e.memoizedProps=e.pendingProps,t===null?_E(e):Ze=t,hy.current=null}function _E(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=bN(n,t),n!==null){n.flags&=32767,Ze=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{it=6,Ze=null;return}}else if(n=wN(n,t,Yt),n!==null){Ze=n;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);it===0&&(it=5)}function Wi(e,t,n){var r=ke,i=yn.transition;try{yn.transition=null,ke=1,PN(e,t,n,r)}finally{yn.transition=i,ke=r}return null}function PN(e,t,n,r){do xo();while(mi!==null);if(pe&6)throw Error(F(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(lj(e,s),e===at&&(Ze=at=null,ft=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ou||(Ou=!0,RE(Bc,function(){return xo(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=yn.transition,yn.transition=null;var o=ke;ke=1;var a=pe;pe|=4,hy.current=null,SN(e,n),xE(n,e),Gj(_p),Vc=!!Tp,_p=Tp=null,e.current=n,kN(n),ZR(),pe=a,ke=o,yn.transition=s}else e.current=n;if(Ou&&(Ou=!1,mi=e,sd=i),s=e.pendingLanes,s===0&&(ki=null),nj(n.stateNode),zt(e,Ge()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(id)throw id=!1,e=Kp,Kp=null,e;return sd&1&&e.tag!==0&&xo(),s=e.pendingLanes,s&1?e===Gp?tl++:(tl=0,Gp=e):tl=0,Li(),null}function xo(){if(mi!==null){var e=ak(sd),t=yn.transition,n=ke;try{if(yn.transition=null,ke=16>e?16:e,mi===null)var r=!1;else{if(e=mi,mi=null,sd=0,pe&6)throw Error(F(331));var i=pe;for(pe|=4,B=e.current;B!==null;){var s=B,o=s.child;if(B.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(B=u;B!==null;){var c=B;switch(c.tag){case 0:case 11:case 15:Za(8,c,s)}var d=c.child;if(d!==null)d.return=c,B=d;else for(;B!==null;){c=B;var f=c.sibling,h=c.return;if(vE(c),c===u){B=null;break}if(f!==null){f.return=h,B=f;break}B=h}}}var y=s.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var x=m.sibling;m.sibling=null,m=x}while(m!==null)}}B=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,B=o;else e:for(;B!==null;){if(s=B,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Za(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,B=g;break e}B=s.return}}var b=e.current;for(B=b;B!==null;){o=B;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,B=w;else e:for(o=b;B!==null;){if(a=B,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Wd(9,a)}}catch(C){qe(a,a.return,C)}if(a===o){B=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,B=S;break e}B=a.return}}if(pe=i,Li(),fr&&typeof fr.onPostCommitFiberRoot=="function")try{fr.onPostCommitFiberRoot(Dd,e)}catch{}r=!0}return r}finally{ke=n,yn.transition=t}}return!1}function hw(e,t,n){t=Ko(n,t),t=aE(e,t,1),e=Si(e,t,1),t=_t(),e!==null&&(eu(e,1,t),zt(e,t))}function qe(e,t,n){if(e.tag===3)hw(e,e,n);else for(;t!==null;){if(t.tag===3){hw(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ki===null||!ki.has(r))){e=Ko(n,e),e=lE(t,e,1),t=Si(t,e,1),e=_t(),t!==null&&(eu(t,1,e),zt(t,e));break}}t=t.return}}function AN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=_t(),e.pingedLanes|=e.suspendedLanes&n,at===e&&(ft&n)===n&&(it===4||it===3&&(ft&130023424)===ft&&500>Ge()-py?ps(e,0):fy|=n),zt(e,t)}function PE(e,t){t===0&&(e.mode&1?(t=ku,ku<<=1,!(ku&130023424)&&(ku=4194304)):t=1);var n=_t();e=Lr(e,t),e!==null&&(eu(e,t,n),zt(e,n))}function RN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),PE(e,n)}function jN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),PE(e,n)}var AE;AE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ft.current)Dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Dt=!1,vN(e,t,n);Dt=!!(e.flags&131072)}else Dt=!1,De&&t.flags&1048576&&Ok(t,Qc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gc(e,t),e=t.pendingProps;var i=Vo(t,bt.current);bo(t,n),i=ay(null,t,r,e,i,n);var s=ly();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(r)?(s=!0,Gc(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ny(t),i.updater=Hd,t.stateNode=i,i._reactInternals=t,Mp(t,r,e,n),t=$p(null,t,r,!0,s,n)):(t.tag=0,De&&s&&Yg(t),Et(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ON(r),e=On(r,e),i){case 0:t=Fp(null,t,r,e,n);break e;case 1:t=nw(null,t,r,e,n);break e;case 11:t=ew(null,t,r,e,n);break e;case 14:t=tw(null,t,r,On(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),Fp(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),nw(e,t,r,i,n);case 3:e:{if(hE(t),e===null)throw Error(F(387));r=t.pendingProps,s=t.memoizedState,i=s.element,$k(e,t),Zc(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Ko(Error(F(423)),t),t=rw(e,t,r,n,i);break e}else if(r!==i){i=Ko(Error(F(424)),t),t=rw(e,t,r,n,i);break e}else for(Jt=xi(t.stateNode.containerInfo.firstChild),Zt=t,De=!0,Fn=null,n=Dk(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ho(),r===i){t=Mr(e,t,n);break e}Et(e,t,r,n)}t=t.child}return t;case 5:return zk(t),e===null&&Op(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Pp(r,i)?o=null:s!==null&&Pp(r,s)&&(t.flags|=32),dE(e,t),Et(e,t,o,n),t.child;case 6:return e===null&&Op(t),null;case 13:return fE(e,t,n);case 4:return ry(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wo(t,null,r,n):Et(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),ew(e,t,r,i,n);case 7:return Et(e,t,t.pendingProps,n),t.child;case 8:return Et(e,t,t.pendingProps.children,n),t.child;case 12:return Et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,Re(Jc,r._currentValue),r._currentValue=o,s!==null)if(Wn(s.value,o)){if(s.children===i.children&&!Ft.current){t=Mr(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Nr(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ip(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(F(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ip(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Et(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bo(t,n),i=vn(i),r=r(i),t.flags|=1,Et(e,t,r,n),t.child;case 14:return r=t.type,i=On(r,t.pendingProps),i=On(r.type,i),tw(e,t,r,i,n);case 15:return uE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),gc(e,t),t.tag=1,$t(r)?(e=!0,Gc(t)):e=!1,bo(t,n),oE(t,r,i),Mp(t,r,i,n),$p(null,t,r,!0,e,n);case 19:return pE(e,t,n);case 22:return cE(e,t,n)}throw Error(F(156,t.tag))};function RE(e,t){return rk(e,t)}function NN(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 mn(e,t,n,r){return new NN(e,t,n,r)}function vy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ON(e){if(typeof e=="function")return vy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dg)return 11;if(e===Fg)return 14}return 2}function Ci(e,t){var n=e.alternate;return n===null?(n=mn(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: 11,199 bytes, line 41
41ons=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 wc(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")vy(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case eo:return ms(n.children,i,s,t);case Mg:o=8,i|=8;break;case op:return e=mn(12,n,t,i|2),e.elementType=op,e.lanes=s,e;case ap:return e=mn(13,n,t,i),e.elementType=ap,e.lanes=s,e;case lp:return e=mn(19,n,t,i),e.elementType=lp,e.lanes=s,e;case zS:return Kd(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case FS:o=10;break e;case $S:o=9;break e;case Dg:o=11;break e;case Fg:o=14;break e;case ei:o=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=mn(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function ms(e,t,n,r){return e=mn(7,e,r,t),e.lanes=n,e}function Kd(e,t,n,r){return e=mn(22,e,r,t),e.elementType=zS,e.lanes=n,e.stateNode={isHidden:!1},e}function nf(e,t,n){return e=mn(6,e,null,t),e.lanes=n,e}function rf(e,t,n){return t=mn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function IN(e,t,n,r,i){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=Dh(0),this.expirationTimes=Dh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function wy(e,t,n,r,i,s,o,a,l){return e=new IN(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=mn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ny(s),e}function LN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Zs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function jE(e){if(!e)return Ai;e=e._reactInternals;e:{if(js(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if($t(n))return jk(e,n,t)}return t}function NE(e,t,n,r,i,s,o,a,l){return e=wy(n,r,!0,e,i,s,o,a,l),e.context=jE(null),n=e.current,r=_t(),i=Ei(n),s=Nr(r,i),s.callback=t??null,Si(n,s,i),e.current.lanes=i,eu(e,i,r),zt(e,r),e}function Gd(e,t,n,r){var i=t.current,s=_t(),o=Ei(i);return n=jE(n),t.context===null?t.context=n:t.pendingContext=n,t=Nr(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Si(i,t,o),e!==null&&(Vn(e,i,o,s),fc(e,i,o)),o}function ad(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 fw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function by(e,t){fw(e,t),(e=e.alternate)&&fw(e,t)}function MN(){return null}var OE=typeof reportError=="function"?reportError:function(e){console.error(e)};function xy(e){this._internalRoot=e}Yd.prototype.render=xy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));Gd(e,t,null,null)};Yd.prototype.unmount=xy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cs(function(){Gd(null,e,null,null)}),t[Ir]=null}};function Yd(e){this._internalRoot=e}Yd.prototype.unstable_scheduleHydration=function(e){if(e){var t=ck();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ni.length&&t!==0&&t<ni[n].priority;n++);ni.splice(n,0,e),n===0&&hk(e)}};function Sy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pw(){}function DN(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=ad(o);s.call(u)}}var o=NE(t,r,e,0,null,!1,!1,"",pw);return e._reactRootContainer=o,e[Ir]=o.current,Sl(e.nodeType===8?e.parentNode:e),Cs(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=ad(l);a.call(u)}}var l=wy(e,0,!1,null,null,!1,!1,"",pw);return e._reactRootContainer=l,e[Ir]=l.current,Sl(e.nodeType===8?e.parentNode:e),Cs(function(){Gd(t,l,n,r)}),l}function Jd(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=ad(o);a.call(l)}}Gd(t,o,e,i)}else o=DN(n,t,e,i,r);return ad(o)}lk=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=$a(t.pendingLanes);n!==0&&(Bg(t,n|1),zt(t,Ge()),!(pe&6)&&(Go=Ge()+500,Li()))}break;case 13:Cs(function(){var r=Lr(e,1);if(r!==null){var i=_t();Vn(r,e,1,i)}}),by(e,1)}};Ug=function(e){if(e.tag===13){var t=Lr(e,134217728);if(t!==null){var n=_t();Vn(t,e,134217728,n)}by(e,134217728)}};uk=function(e){if(e.tag===13){var t=Ei(e),n=Lr(e,t);if(n!==null){var r=_t();Vn(n,e,t,r)}by(e,t)}};ck=function(){return ke};dk=function(e,t){var n=ke;try{return ke=e,t()}finally{ke=n}};vp=function(e,t,n){switch(t){case"input":if(dp(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 i=Bd(r);if(!i)throw Error(F(90));US(r),dp(r,i)}}}break;case"textarea":HS(e,n);break;case"select":t=n.value,t!=null&&go(e,!!n.multiple,t,!1)}};JS=my;XS=Cs;var FN={usingClientEntryPoint:!1,Events:[nu,io,Bd,YS,QS,my]},Ta={findFiberByHostInstance:Xi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},$N={bundleType:Ta.bundleType,version:Ta.version,rendererPackageName:Ta.rendererPackageName,rendererConfig:Ta.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=tk(e),e===null?null:e.stateNode},findFiberByHostInstance:Ta.findFiberByHostInstance||MN,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 Iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Iu.isDisabled&&Iu.supportsFiber)try{Dd=Iu.inject($N),fr=Iu}catch{}}tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=FN;tn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sy(t))throw Error(F(200));return LN(e,t,null,n)};tn.createRoot=function(e,t){if(!Sy(e))throw Error(F(299));var n=!1,r="",i=OE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=wy(e,1,!1,null,null,n,!1,r,i),e[Ir]=t.current,Sl(e.nodeType===8?e.parentNode:e),new xy(t)};tn.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(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=tk(t),e=e===null?null:e.stateNode,e};tn.flushSync=function(e){return Cs(e)};tn.hydrate=function(e,t,n){if(!Qd(t))throw Error(F(200));return Jd(null,e,t,!0,n)};tn.hydrateRoot=function(e,t,n){if(!Sy(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=OE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=NE(t,null,e,1,n??null,i,!1,s,o),e[Ir]=t.current,Sl(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yd(t)};tn.render=function(e,t,n){if(!Qd(t))throw Error(F(200));return Jd(null,e,t,!1,n)};tn.unmountComponentAtNode=function(e){if(!Qd(e))throw Error(F(40));return e._reactRootContainer?(Cs(function(){Jd(null,null,e,!1,function(){e._reactRootContainer=null,e[Ir]=null})}),!0):!1};tn.unstable_batchedUpdates=my;tn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qd(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return Jd(e,t,n,!1,r)};tn.version="18.3.1-next-f1338f8080-20240426";function IE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IE)}catch(e){console.error(e)}}IE(),IS.exports=tn;var ky=IS.exports;const Ey=As(ky);var LE,mw=ky;LE=mw.createRoot,mw.hydrateRoot;const zN="modulepreload",BN=function(e){return"/"+e},gw={},Fe=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=BN(l),l in gw)return;gw[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":zN,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};var yw=["light","dark"],UN="(prefers-color-scheme: dark)",VN=v.createContext(void 0),HN={setTheme:e=>{},themes:[]},WN=()=>{var e;return(e=v.useContext(VN))!=null?e:HN};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let u=s==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?yw.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(y,m=!1,x=!0)=>{let g=o?o[y]:y,b=m?y+"|| ''":`'${g}'`,w="";return i&&x&&!m&&yw.includes(y)&&(w+=`d.style.colorScheme = '${y}';`),n==="class"?m||g?w+=`c.add(${b})`:w+="null":g&&(w+=`d[s](n,${b})`),w},h=e?`!function(){${c}${f(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${UN}
41',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${u?"":"else{"+f(s,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(s,!1,!1)};}${d}}catch(t){}}();`;return v.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var qN=e=>{switch(e){case"success":return YN;case"info":return JN;case"warning":return QN;case"error":return XN;default:return null}},KN=Array(12).fill(0),GN=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},KN.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),YN=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),QN=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),JN=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),XN=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ZN=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},L.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),eO=()=>{let[e,t]=L.useState(document.hidden);return L.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Jp=1,tO=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,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Jp++,s=this.toasts.find(a=>a.id===i),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...e,id:i,title:n}),{...a,...e,id:i,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:i}),i},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)=>
41this.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(),i=n!==void 0,s,o=r.then(async l=>{if(s=["resolve",l],L.isValidElement(l))i=!1,this.create({id:n,type:"default",message:l});else if(rO(l)&&!l.ok){i=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){i=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){i=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;i&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>o.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Jp++;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}},It=new tO,nO=(e,t)=>{let n=(t==null?void 0:t.id)||Jp++;return It.addToast({title:e,...t,id:n}),n},rO=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",iO=nO,sO=()=>It.toasts,oO=()=>It.getActiveToasts(),tr=Object.assign(iO,{success:It.success,info:It.info,warning:It.warning,error:It.error,custom:It.custom,message:It.message,promise:It.promise,dismiss:It.dismiss,loading:It.loading},{getHistory:sO,getToasts:oO});function aO(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))}aO(`: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;
41left: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}
41: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%);
41--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%)}
42`);function Lu(e){return e.label!==void 0}var lO=3,uO="32px",cO="16px",vw=4e3,dO=356,hO=14,fO=20,pO=200;function An(...e){return e.filter(Boolean).join(" ")}function mO(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var gO=e=>{var t,n,r,i,s,o,a,l,u,c,d;let{invert:f,toast:h,unstyled:y,interacting:m,setHeights:x,visibleToasts:g,heights:b,index:w,toasts:S,expanded:C,removeToast:k,defaultRichColors:_,closeButton:R,style:A,cancelButtonStyle:j,actionButtonStyle:I,className:O="",descriptionClassName:W="",duration:Q,position:K,gap:Z,loadingIcon:se,expandByDefault:D,classNames:M,icons:E,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:q}=e,[T,ne]=L.useState(null),[_e,ge]=L.useState(null),[fe,sn]=L.useState(!1),[on,kn]=L.useState(!1),[Qn,ma]=L.useState(!1),[hu,_h]=L.useState(!1),[fu,ga]=L.useState(!1),[pu,ya]=L.useState(0),[mu,va]=L.useState(0),Fi=L.useRef(h.duration||Q||vw),gu=L.useRef(null),xr=L.useRef(null),Ph=w===0,Ah=w+1<=g,N=h.type,z=h.dismissible!==!1,te=h.className||"",le=h.descriptionClassName||"",ye=L.useMemo(()=>b.findIndex(re=>re.toastId===h.id)||0,[b,h.id]),Wt=L.useMemo(()=>{var re;return(re=h.closeButton)!=null?re:R},[h.closeButton,R]),Jn=L.useMemo(()=>h.duration||Q||vw,[h.duration,Q]),qt=L.useRef(0),an=L.useRef(0),zr=L.useRef(0),Ye=L.useRef(null),[Br,En]=K.split("-"),i0=L.useMemo(()=>b.reduce((re,Ee,Me)=>Me>=ye?re:re+Ee.height,0),[b,ye]),s0=eO(),cR=h.invert||f,Rh=N==="loading";
42an.current=L.useMemo(()=>ye*Z+i0,[ye,i0]),L.useEffect(()=>{Fi.current=Jn},[Jn]),L.useEffect(()=>{sn(!0)},[]),L.useEffect(()=>{let re=xr.current;if(re){let Ee=re.getBoundingClientRect().height;return va(Ee),x(Me=>[{toastId:h.id,height:Ee,position:h.position},...Me]),()=>x(Me=>Me.filter(Cn=>Cn.toastId!==h.id))}},[x,h.id]),L.useLayoutEffect(()=>{if(!fe)return;let re=xr.current,Ee=re.style.height;re.style.height="auto";let Me=re.getBoundingClientRect().height;re.style.height=Ee,va(Me),x(Cn=>Cn.find(Tn=>Tn.toastId===h.id)?Cn.map(Tn=>Tn.toastId===h.id?{...Tn,height:Me}:Tn):[{toastId:h.id,height:Me,position:h.position},...Cn])},[fe,h.title,h.description,x,h.id]);let Ur=L.useCallback(()=>{kn(!0),ya(an.current),x(re=>re.filter(Ee=>Ee.toastId!==h.id)),setTimeout(()=>{k(h)},pO)},[h,k,x,an]);L.useEffect(()=>{if(h.promise&&N==="loading"||h.duration===1/0||h.type==="loading")return;let re;return C||m||q&&s0?(()=>{if(zr.current<qt.current){let Ee=new Date().getTime()-qt.current;Fi.current=Fi.current-Ee}zr.current=new Date().getTime()})():Fi.current!==1/0&&(qt.current=new Date().getTime(),re=setTimeout(()=>{var Ee;(Ee=h.onAutoClose)==null||Ee.call(h,h),Ur()},Fi.current)),()=>clearTimeout(re)},[C,m,h,N,q,s0,Ur]),L.useEffect(()=>{h.delete&&Ur()},[Ur,h.delete]);function dR(){var re,Ee,Me;return E!=null&&E.loading?L.createElement("div",{className:An(M==null?void 0:M.loader,(re=h==null?void 0:h.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":N==="loading"},E.loading):se?L.createElement("div",{className:An(M==null?void 0:M.loader,(Ee=h==null?void 0:h.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":N==="loading"},se):L.createElement(GN,{className:An(M==null?void 0:M.loader,(Me=h==null?void 0:h.classNames)==null?void 0:Me.loader),visible:N==="loading"})}return L.createElement("li",{tabIndex:0,ref:xr,className:An(O,te,M==null?void 0:M.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[N],(n=h==null?void 0:h.classNames)==null?void 0:n[N]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:_,"data-styled":!(h.jsx||h.unstyled||y),"data-mounted":fe,"data-promise":!!h.promise,"data-swiped":fu,"data-removed":on,"data-visible":Ah,"data-y-position":Br,"data-x-position":En,"data-index":w,"data-front":Ph,"data-swiping":Qn,"data-dismissible":z,"data-type":N,"data-invert":cR,"data-swipe-out":hu,"data-swipe-direction":_e,"data-expanded":!!(C||D&&fe),style:{"--index":w,"--toasts-before":w,"--z-index":S.length-w,"--offset":`${on?pu:an.current}px`,"--initial-height":D?"auto":`${mu}px`,...A,...h.style},onDragEnd:()=>{ma(!1),ne(null),Ye.current=null},onPointerDown:re=>{Rh||!z||(gu.current=new Date,ya(an.current),re.target.setPointerCapture(re.pointerId),re.target.tagName!=="BUTTON"&&(ma(!0),Ye.current={x:re.clientX,y:re.clientY}))},onPointerUp:()=>{var re,Ee,Me,Cn;if(hu||!z)return;Ye.current=null;let Tn=Number(((re=xr.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Vr=Number(((Ee=xr.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),$i=new Date().getTime()-((Me=gu.current)==null?void 0:Me.getTime()),_n=T==="x"?Tn:Vr,Hr=Math.abs(_n)/$i;if(Math.abs(_n)>=fO||Hr>.11){ya(an.current),(Cn=h.onDismiss)==null||Cn.call(h,h),ge(T==="x"?Tn>0?"right":"left":Vr>0?"down":"up"),Ur(),_h(!0),ga(!1);return}ma(!1),ne(null)},onPointerMove:re=>{var Ee,Me,Cn,Tn;if(!Ye.current||!z||((Ee=window.getSelection())==null?void 0:Ee.toString().length)>0)return;let Vr=re.clientY-Ye.current.y,$i=re.clientX-Ye.current.x,_n=(Me=e.swipeDirections)!=null?Me:mO(K);!T&&(Math.abs($i)>1||Math.abs(Vr)>1)&&ne(Math.abs($i)>Math.abs(Vr)?"x":"y");let Hr={x:0,y:0};T==="y"?(_n.includes("top")||_n.includes("bottom"))&&(_n.includes("top")&&Vr<0||_n.includes("bottom")&&Vr>0)&&(Hr.y=Vr):T==="x"&&(_n.includes("left")||_n.includes("right"))&&(_n.includes("left")&&$i<0||_n.includes("right")&&$i>0)&&(Hr.x=$i),(Math.abs(Hr.x)>0||Math.abs(Hr.y)>0)&&ga(!0),(Cn=xr.current)==null||Cn.style.setProperty("--swipe-amount-x",`${Hr.x}px`),(Tn=xr.current)==null||Tn.style.setProperty("--swipe-amount-y",`${Hr.y}px`)}},Wt&&!h.jsx?L.createElement("button",{"aria-label":Y,"data-disabled":Rh,"data-close-button":!0,onClick:Rh||!z?()=>{}:()=>{var re;Ur(),(re=h.onDismiss)==null||re.call(h,h)},className:An(M==null?void 0:M.closeButton,(i=h==null?void 0:h.classNames)==null?void 0:i.closeButton)}
vendor: 4,074 bytes, line 42
42,(s=E==null?void 0:E.close)!=null?s:ZN):null,h.jsx||v.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:L.createElement(L.Fragment,null,N||h.icon||h.promise?L.createElement("div",{"data-icon":"",className:An(M==null?void 0:M.icon,(o=h==null?void 0:h.classNames)==null?void 0:o.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||dR():null,h.type!=="loading"?h.icon||(E==null?void 0:E[N])||qN(N):null):null,L.createElement("div",{"data-content":"",className:An(M==null?void 0:M.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},L.createElement("div",{"data-title":"",className:An(M==null?void 0:M.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?L.createElement("div",{"data-description":"",className:An(W,le,M==null?void 0:M.description,(u=h==null?void 0:h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),v.isValidElement(h.cancel)?h.cancel:h.cancel&&Lu(h.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||j,onClick:re=>{var Ee,Me;Lu(h.cancel)&&z&&((Me=(Ee=h.cancel).onClick)==null||Me.call(Ee,re),Ur())},className:An(M==null?void 0:M.cancelButton,(c=h==null?void 0:h.classNames)==null?void 0:c.cancelButton)},h.cancel.label):null,v.isValidElement(h.action)?h.action:h.action&&Lu(h.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||I,onClick:re=>{var Ee,Me;Lu(h.action)&&((Me=(Ee=h.action).onClick)==null||Me.call(Ee,re),!re.defaultPrevented&&Ur())},className:An(M==null?void 0:M.actionButton,(d=h==null?void 0:h.classNames)==null?void 0:d.actionButton)},h.action.label):null))};function ww(){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 yO(e,t){let n={};return[e,t].forEach((r,i)=>{let s=i===1,o=s?"--mobile-offset":"--offset",a=s?cO:uO;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${o}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var vO=v.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:o,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:f,style:h,visibleToasts:y=lO,toastOptions:m,dir:x=ww(),gap:g=hO,loadingIcon:b,icons:w,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:C}=e,[k,_]=L.useState([]),R=L.useMemo(()=>Array.from(new Set([r].concat(k.filter(q=>q.position).map(q=>q.position)))),[k,r]),[A,j]=L.useState([]),[I,O]=L.useState(!1),[W,Q]=L.useState(!1),[K,Z]=L.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),se=L.useRef(null),D=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=L.useRef(null),E=L.useRef(!1),Y=L.useCallback(q=>{_(T=>{var ne;return(ne=T.find(_e=>_e.id===q.id))!=null&&ne.delete||It.dismiss(q.id),T.filter(({id:_e})=>_e!==q.id)})},[]);return L.useEffect(()=>It.subscribe(q=>{if(q.dismiss){_(T=>T.map(ne=>ne.id===q.id?{...ne,delete:!0}:ne));return}setTimeout(()=>{Ey.flushSync(()=>{_(T=>{let ne=T.findIndex(_e=>_e.id===q.id);return ne!==-1?[...T.slice(0,ne),{...T[ne],...q},...T.slice(ne+1)]:[q,...T]})})})}),[]),L.useEffect(()=>{if(c!=="system"){Z(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window>"u")return;let q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:T})=>{Z(T?"dark":"light")})}catch{q.addListener(({matches:ne})=>{try{Z(ne?"dark":"light")}catch(_e){console.error(_e)}})}},[c]),L.useEffect(()=>{k.length<=1&&O(!1)},[k]),L.useEffect(()=>{let q=T=>{var ne,_e;i.every(ge=>
42T[ge]||T.code===ge)&&(O(!0),(ne=se.current)==null||ne.focus()),T.code==="Escape"&&(document.activeElement===se.current||(_e=se.current)!=null&&_e.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[i]),L.useEffect(()=>{if(se.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,E.current=!1)}},[se.current]),L.createElement("section",{ref:t,"aria-label":`${S} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((q,T)=>{var ne;let[_e,ge]=q.split("-");return k.length?L.createElement("ol",{key:q,dir:x==="auto"?ww():x,tabIndex:-1,ref:se,className:a,"data-sonner-toaster":!0,"data-theme":K,"data-y-position":_e,"data-lifted":I&&k.length>1&&!s,"data-x-position":ge,style:{"--front-toast-height":`${((ne=A[0])==null?void 0:ne.height)||0}px`,"--width":`${dO}px`,"--gap":`${g}px`,...h,...yO(l,u)},onBlur:fe=>{E.current&&!fe.currentTarget.contains(fe.relatedTarget)&&(E.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||E.current||(E.current=!0,M.current=fe.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{W||O(!1)},onDragEnd:()=>O(!1),onPointerDown:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||Q(!0)},onPointerUp:()=>Q(!1)},k.filter(fe=>!fe.position&&T===0||fe.position===q).map((fe,sn)=>{var on,kn;return L.createElement(gO,{key:fe.id,icons:w,index:sn,toast:fe,defaultRichColors:d,duration:(on=m==null?void 0:m.duration)!=null?on:f,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:y,closeButton:(kn=m==null?void 0:m.closeButton)!=null?kn:o,interacting:W,position:q,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:Y,toasts:k.filter(Qn=>Qn.position==fe.position),heights:A.filter(Qn=>Qn.position==fe.position),setHeights:j,expandByDefault:s,gap:g,loadingIcon:b,expanded:I,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const wO=({...e})=>{const{theme:t="system"}=WN();return p.jsx(vO,{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})};/**
43 * @remix-run/router v1.23.0
44 *
45 * Copyright (c) Remix Software Inc.
46 *
47 * This source code is licensed under the MIT license found in the
48 * LICENSE.md file in the root directory of this source tree.
49 *
50 * @license MIT
51 */function jl(){return jl=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},jl.apply(this,arguments)}var gi;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(gi||(gi={}));const bw="popstate";function bO(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return Xp("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:ld(i)}return SO(t,n,null,e)}function Ue(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ME(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xO(){return Math.random().toString(36).substr(2,8)}function xw(e,t){return{usr:e.state,key:e.key,idx:t}}function Xp(e,t,n,r){return n===void 0&&(n=null),jl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ra(t):t,{state:n,key:t&&t.key||r||xO()})}function ld(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 ra(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 SO(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=gi.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(jl({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=gi.Pop;let x=c(),g=x==null?null:x-u;u=x,l&&l({action:a,location:m.location,delta:g})}function f(x,g){a=gi.Push;let b=Xp(m.location,x,g);u=c()+1;let w=xw(b,u),S=m.createHref(b);try{o.pushState(w,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}s&&l&&l({action:a,location:m.location,delta:1})}function h(x,g){a=gi.Replace;let b=Xp(m.location,x,g);u=c();let w=xw(b,u),S=m.createHref(b);o.replaceState(w,"",S),s&&l&&l({action:a,location:m.location,delta:0})}function y(x){let g=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof x=="str
51ing"?x:ld(x);return b=b.replace(/ $/,"%20"),Ue(g,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,g)}let m={get action(){return a},get location(){return e(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(bw,d),l=x,()=>{i.removeEventListener(bw,d),l=null}},createHref(x){return t(i,x)},createURL:y,encodeLocation(x){let g=y(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:h,go(x){return o.go(x)}};return m}var Sw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Sw||(Sw={}));function kO(e,t,n){return n===void 0&&(n="/"),EO(e,t,n,!1)}function EO(e,t,n,r){let i=typeof t=="string"?ra(t):t,s=Yo(i.pathname||"/",n);if(s==null)return null;let o=DE(e);CO(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=MO(s);a=IO(o[l],u,r)}return a}function DE(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Ue(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ti([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(Ue(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),DE(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:NO(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of FE(s.path))i(s,o,l)}),t}function FE(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=FE(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function CO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:OO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const TO=/^:[\w-]+$/,_O=3,PO=2,AO=1,RO=10,jO=-2,kw=e=>e==="*";function NO(e,t){let n=e.split("/"),r=n.length;return n.some(kw)&&(r+=jO),t&&(r+=PO),n.filter(i=>!kw(i)).reduce((i,s)=>i+(TO.test(s)?_O:s===""?AO:RO),r)}function OO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function IO(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=s==="/"?t:t.slice(s.length)||"/",d=ud({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=ud({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
vendor: 9,390 bytes, lines 51-60
51Object.assign(i,d.params),o.push({params:i,pathname:Ti([s,d.pathname]),pathnameBase:zO(Ti([s,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(s=Ti([s,d.pathnameBase]))}return o}function ud(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=LO(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:h}=c;if(f==="*"){let m=a[d]||"";o=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const y=a[d];return h&&!y?u[f]=void 0:u[f]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function LO(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ME(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=[],i="^"+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:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function MO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ME(!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 Yo(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 DO(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ra(e):e;return{pathname:n?n.startsWith("/")?n:FO(n,t):t,search:BO(r),hash:UO(i)}}function FO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function sf(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 $O(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Cy(e,t){let n=$O(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ty(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ra(e):(i=jl({},e),Ue(!i.pathname||!i.pathname.includes("?"),sf("?","pathname","search",i)),Ue(!i.pathname||!i.pathname.includes("#"),sf("#","pathname","hash",i)),Ue(!i.search||!i.search.includes("#"),sf("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=DO(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Ti=e=>e.join("/").replace(/\/\/+/g,"/"),zO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),BO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,UO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function VO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $E=["post","put","patch","delete"];new Set($E);const HO=["get",...$E];new Set(HO);/**
52 * React Router v6.30.1
53 *
54 * Copyright (c) Remix Software Inc.
55 *
56 * This source code is licensed under the MIT license found in the
57 * LICENSE.md file in the root directory of this source tree.
58 *
59 * @license MIT
60 */function Nl(){return Nl=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},Nl.apply(this,arguments)}const Xd=v.createContext(null),zE=v.createContext(null),Fr=v.createContext(null),Zd=v.createContext(null),vr=v.createContext({outlet:null,matches:[],isDataRoute:!1}),BE=v.createContext(null);function WO(e,t){let{relative:n}=t===void 0?{}:t;ia()||Ue(!1);let{basename:r,navigator:i}=v.useContext(Fr),{hash:s,pathname:o,search:a}=eh(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Ti([r,o])),i.createHref({pathname:l,search:a,hash:s})}function ia(){return v.useContext(Zd)!=null}function wr(){return ia()||Ue(!1),v.useContext(Zd).location}function UE(e){v.useContext(Fr).static||v.useLayoutEffect(e)}function _y(){let{isDataRoute:e}=v.useContext(vr);return e?oI():qO()}function qO(){ia()||Ue(!1);let e=v.useContext(Xd),{basename:t,future:n,navigator:r}=v.useContext(Fr),{matches:i}=v.useContext(vr),{pathname:s}=wr(),o=JSON.stringify(Cy(i,n.v7_relativeSplatPath)),a=v.useRef(!1);return UE(()=>{a.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=Ty(u,JSON.parse(o),s,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ti([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,s,e])}const KO=v.createContext(null);function GO(e){let t=v.useContext(vr).outlet;return t&&v.createElement(KO.Provider,{value:e},t)}function BK(){let{matches:e}=v.useContext(vr),t=e[e.length-1];return t?t.params:{}}function eh(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(Fr),{matches:i}=v.useContext(vr),{pathname:s}=wr(),o=JSON.stringify(Cy(i,r.v7_relativeSplatPath));return v.useMemo(()=>Ty(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function YO(e,t){return QO(e,t)}function QO(e,t,n,r){ia()||Ue(!1);let{navigator:i}=v.useContext(Fr),{matches:s}=v.useContext(vr),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=wr(),c;if(t){var d;let x=typeof t=="string"?ra(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Ue(!1),c=x}else c=u;let f=c.pathname||"/",h=f;if(l!=="/"){let x=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=kO(e,{pathname:h}),m=tI(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Ti([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ti([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&m?v.createElement(Zd.Provider,{value:{location:Nl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:gi.Pop}},m):m}function JO(){let e=sI(),t=VO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:i},n):null,null)}const XO=v.createElement(JO,null);class ZO extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(vr.Provider,{value:this.props.routeContext},v.createElement(BE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function eI(e){let{routeContext:t,match:n,children:r}=e,i=v.useContext(Xd);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(vr.Provider,{value:t},r)}function tI(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||Ue(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<o.length;c++){let d=o[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:h}=n,y=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||y){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,f)=>{let h,y=!1,m=null,x=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||XO,l&&(u<0&&f===0?(y=!0,x=null):u===f&&(y=!0,x=d.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,f+1)),b=()=>{let w;return h?w=m:y?w=x:d.route.Component?w=v.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=c,v.createElement(eI,{match:d,routeC
60ontext:{outlet:c,matches:g,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?v.createElement(ZO,{location:n.location,revalidation:n.revalidation,component:m,error:h,children:b(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):b()},null)}var VE=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(VE||{}),cd=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}(cd||{});function nI(e){let t=v.useContext(Xd);return t||Ue(!1),t}function rI(e){let t=v.useContext(zE);return t||Ue(!1),t}function iI(e){let t=v.useContext(vr);return t||Ue(!1),t}function HE(e){let t=iI(),n=t.matches[t.matches.length-1];return n.route.id||Ue(!1),n.route.id}function sI(){var e;let t=v.useContext(BE),n=rI(cd.UseRouteError),r=HE(cd.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function oI(){let{router:e}=nI(VE.UseNavigateStable),t=HE(cd.UseNavigateStable),n=v.useRef(!1);return UE(()=>{n.current=!0}),v.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Nl({fromRouteId:t},s)))},[e,t])}function aI(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function lI(e){let{to:t,replace:n,state:r,relative:i}=e;ia()||Ue(!1);let{future:s,static:o}=v.useContext(Fr),{matches:a}=v.useContext(vr),{pathname:l}=wr(),u=_y(),c=Ty(t,Cy(a,s.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return v.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function UK(e){return GO(e.context)}function Ce(e){Ue(!1)}function uI(e){let{basename:t="/",children:n=null,location:r,navigationType:i=gi.Pop,navigator:s,static:o=!1,future:a}=e;ia()&&Ue(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:s,static:o,future:Nl({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=ra(r));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:y="default"}=r,m=v.useMemo(()=>{let x=Yo(c,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:h,key:y},navigationType:i}},[l,c,d,f,h,y,i]);return m==null?null:v.createElement(Fr.Provider,{value:u},v.createElement(Zd.Provider,{children:n,value:m}))}function cI(e){let{children:t,location:n}=e;return YO(Zp(t),n)}new Promise(()=>{});function Zp(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,i)=>{if(!v.isValidElement(r))return;let s=[...t,i];if(r.type===v.Fragment){n.push.apply(n,Zp(r.props.children,s));return}r.type!==Ce&&Ue(!1),!r.props.index||!r.props.children||Ue(!1);let o={id:r.props.id||s.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=Zp(r.props.children,s)),n.push(o)}),n}/**
61 * React Router DOM v6.30.1
62 *
63 * Copyright (c) Remix Software Inc.
64 *
65 * This source code is licensed under the MIT license found in the
66 * LICENSE.md file in the root directory of this source tree.
67 *
68 * @license MIT
69 */function dd(){return dd=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},dd.apply(this,arguments)}function WE(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function dI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hI(e,t){return e.button===0&&(!t||t==="_self")&&!dI(e)}const fI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],pI=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],mI="6";try{window.__reactRouterVersion=mI}catch{}const gI=v.createContext({isTransitioning:!1}),yI="startTransition",Ew=Ng[yI];function vI(e){let{basename:t,children:n,future:r,window:i}=e,s=v.useRef();s.current==null&&(s.current=bO({window:i,v5Compat:!0}));let o=s.current,[a,l]=v.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&Ew?Ew(()=>l(d)):l(d)},[l,u]);return v.useLayoutEffect(()=>o.listen(c),[o,c]),v.useEffect(()=>aI(r),[r]),v.createElement(uI,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}
69const wI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$n=v.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,f=WE(t,fI),{basename:h}=v.useContext(Fr),y,m=!1;if(typeof u=="string"&&bI.test(u)&&(y=u,wI))try{let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),C=Yo(S.pathname,h);S.origin===w.origin&&C!=null?u=C+S.search+S.hash:m=!0}catch{}let x=WO(u,{relative:i}),g=SI(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:i,viewTransition:d});function b(w){r&&r(w),w.defaultPrevented||g(w)}return v.createElement("a",dd({},f,{href:y||x,onClick:m||s?r:b,ref:n,target:l}))}),VK=v.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:o=!1,style:a,to:l,viewTransition:u,children:c}=t,d=WE(t,pI),f=eh(l,{relative:d.relative}),h=wr(),y=v.useContext(zE),{navigator:m,basename:x}=v.useContext(Fr),g=y!=null&&kI(f)&&u===!0,b=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,w=h.pathname,S=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(w=w.toLowerCase(),S=S?S.toLowerCase():null,b=b.toLowerCase()),S&&x&&(S=Yo(S,x)||S);const C=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let k=w===b||!o&&w.startsWith(b)&&w.charAt(C)==="/",_=S!=null&&(S===b||!o&&S.startsWith(b)&&S.charAt(b.length)==="/"),R={isActive:k,isPending:_,isTransitioning:g},A=k?r:void 0,j;typeof s=="function"?j=s(R):j=[s,k?"active":null,_?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let I=typeof a=="function"?a(R):a;return v.createElement($n,dd({},d,{"aria-current":A,className:j,ref:n,style:I,to:l,viewTransition:u}),typeof c=="function"?c(R):c)});var em;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(em||(em={}));var Cw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Cw||(Cw={}));function xI(e){let t=v.useContext(Xd);return t||Ue(!1),t}function SI(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:a}=t===void 0?{}:t,l=_y(),u=wr(),c=eh(e,{relative:o});return v.useCallback(d=>{if(hI(d,n)){d.preventDefault();let f=r!==void 0?r:ld(u)===ld(c);l(e,{replace:f,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[u,l,c,r,i,n,e,s,o,a])}function kI(e,t){t===void 0&&(t={});let n=v.useContext(gI);n==null&&Ue(!1);let{basename:r}=xI(em.useViewTransitionState),i=eh(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Yo(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Yo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ud(i.pathname,o)!=null||ud(i.pathname,s)!=null}const Py=v.createContext({});function Ri(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const EI=typeof window<"u",th=EI?v.useLayoutEffect:v.useEffect,nh=v.createContext(null);function Ay(e,t){e.indexOf(t)===-1&&e.push(t)}function hd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const qn=(e,t,n)=>n>t?t:n<e?e:n;let rh=()=>{},ji=()=>{};const Ni={},qE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function KE(e){return typeof e=="object"&&e!==null}const GE=e=>/^0[^.\s]+$/u.test(e);function YE(e){let t;return()=>(t===void 0&&(t=e()),t)}const Bt=e=>e,CI=(e,t)=>n=>t(e(n)),iu=(...e)=>e.reduce(CI),Qo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ry{constructor(){this.subscriptions=[]}add(t){return Ay(this.subscriptions,t),()=>hd(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ut=e=>e*1e3,gn=e=>e/1e3;function jy(e,t){return t?e*(1e3/t):0}const QE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,TI=1e-7,_I=12;function PI(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=QE(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>TI&&++a<_I);return o}function su(e,t,n,r){if(e===t&&n===r)return Bt;const i=s=>PI(s,0,1,e,n);return s=>s===0||s===1?s:QE(i(s),t,r)}const JE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,XE=e=>t=>1-e(1-t),ZE=su(.33,1.53,.69,.99),Ny=XE(ZE),eC=JE(Ny),tC=e=>e>=1?1:(e*=2)<1?.5*Ny(e):.5*(2-Math.pow(2,-10*(e-1))),Oy=e=>1-Math.sin(Math.acos(e)),nC=XE(Oy),rC=JE(Oy),AI=su(.42,0,1,1),RI=su(0,0,.58,1),iC=su(.42,0,.58,1),jI=e=>Array.isArray(e)&&typeof e[0]!="number",sC=e=>Array.isArray(e)&&typeof e[0]=="number",Tw={linear:Bt,easeIn:AI,easeInOut:iC,easeOut:RI,circIn:Oy,circInOut:rC,circOut:nC,backIn:Ny,backInOut:eC,backOut:ZE,anticipate:tC},NI=e=>typeof e=="string",_w=e=>{if(sC(e)){ji(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return su(t,n,r,i)}else if(NI(e))return ji(Tw[e]!==void 0,`Invalid easing type '${e}
69'`,"invalid-easing-type"),Tw[e];return e},Mu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Pw={value:null,addProjectionMetrics:null};function OI(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){o.has(d)&&(c.schedule(d),e()),l++,d(a)}const c={schedule:(d,f=!1,h=!1)=>{const m=h&&i?n:r;return f&&o.add(d),m.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,i){s=!0;return}i=!0;const f=n;n=r,r=f,n.forEach(u),t&&Pw.value&&Pw.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,c.process(d))}};return c}const II=40;function oC(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Mu.reduce((w,S)=>(w[S]=OI(s,t?S:void 0),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:h,postRender:y}=o,m=()=>{const w=Ni.useManualTiming,S=w?i.timestamp:performance.now();n=!1,w||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,II),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),y.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},x=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:Mu.reduce((w,S)=>{const C=o[S];return w[S]=(k,_=!1,R=!1)=>(n||x(),C.schedule(k,_,R)),w},{}),cancel:w=>{for(let S=0;S<Mu.length;S++)o[Mu[S]].cancel(w)},state:i,steps:o}}const{schedule:me,cancel:bn,state:st,steps:of}=oC(typeof requestAnimationFrame<"u"?requestAnimationFrame:Bt,!0);let bc;function LI(){bc=void 0}const Ct={now:()=>(bc===void 0&&Ct.set(st.isProcessing||Ni.useManualTiming?st.timestamp:performance.now()),bc),set:e=>{bc=e,queueMicrotask(LI)}},aC=e=>t=>typeof t=="string"&&t.startsWith(e),lC=aC("--"),MI=aC("var(--"),Iy=e=>MI(e)?DI.test(e.split("/*")[0].trim()):!1,DI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Aw(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const sa={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ol={...sa,transform:e=>qn(0,1,e)},Du={...sa,default:1},nl=e=>Math.round(e*1e5)/1e5,Ly=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function FI(e){return e==null}const $I=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,My=(e,t)=>n=>!!(typeof n=="string"&&$I.test(n)&&n.startsWith(e)||t&&!FI(n)&&Object.prototype.hasOwnProperty.call(n,t)),uC=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Ly);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},zI=e=>qn(0,255,e),af={...sa,transform:e=>Math.round(zI(e))},ts={test:My("rgb","red"),parse:uC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+af.transform(e)+", "+af.transform(t)+", "+af.transform(n)+", "+nl(Ol.transform(r))+")"};function BI(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const tm={test:My("#"),parse:BI,transform:ts.transform},ou=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qr=ou("deg"),mr=ou("%"),V=ou("px"),UI=ou("vh"),VI=ou("vw"),Rw={...mr,parse:e=>mr.parse(e)/100,transform:e=>mr.transform(e*100)},ho={test:My("hsl","hue"),parse:uC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+mr.transform(nl(t))+", "+mr.transform(nl(n))+", "+nl(Ol.transform(r))+")"},Xe={test:e=>ts.test(e)||tm.test(e)||ho.test(e),parse:e=>ts.test(e)?ts.parse(e):ho.test(e)?ho.parse(e):tm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ts.transform(e):ho.transform(e),getAnimatableNone:e=>{const t=Xe.parse(e);return t.alpha=0,Xe.transform(t)}},HI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function WI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ly))==null?void 0:t.length)||0)+(((n=e.match(HI))==null?void 0:n.length)||0)>0}const cC="number",dC="color",qI="var",KI="var(",jw="${}",GI=/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 Jo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(GI,l=>(Xe.test(l)?(r.color.push(s),i.push(dC),n.push(Xe.parse(l))):l.startsWith(KI)?(r.var.push(s),i.push(qI),n.push(l)):(r.number.push(s),i.push(cC),n.push(parseFloat(l))),++s,jw)).split(jw);return{values:n,split:a,indexes:r,types:i}}function YI(e){return Jo(e).values}function hC({split:e,types:t}){const n=e.length;return r=>{let i="";for(let s=0;s<n;s++)if(i+=e[s],r[s]!==void 0){const o=t[s];o===cC?i+=nl(r[s]):o===dC?i+=Xe.transform(r[s]):i+=r[s]}return i}}function QI(e){return hC(Jo(e))}const JI=e=>typeof e=="number"?0:Xe.test(e)?Xe.getAnimatableNone(e):e,XI=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:JI(e);function ZI(e){const t=Jo(e);return hC(t)(t.values.map((r,i)=>XI(r,t.split[i])))}const Hn={test:WI,parse:YI,createTransformer:QI,getAnimatableNone:ZI};function lf(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 eL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=lf(l,a,e+1/3),s=lf(l,a,e),o=lf(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function fd(e,t){return n=>n>0?t:e}const Ie=(e,t,n)=>e+(t-e)*n,uf=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},tL=[tm,ts,ho],nL=e=>tL.find(t=>t.test(e));function Nw(e){const t=nL(e);if(rh(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);
vendor: 21,813 bytes, line 69
69return t===ho&&(n=eL(n)),n}const Ow=(e,t)=>{const n=Nw(e),r=Nw(t);if(!n||!r)return fd(e,t);const i={...n};return s=>(i.red=uf(n.red,r.red,s),i.green=uf(n.green,r.green,s),i.blue=uf(n.blue,r.blue,s),i.alpha=Ie(n.alpha,r.alpha,s),ts.transform(i))},nm=new Set(["none","hidden"]);function rL(e,t){return nm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function iL(e,t){return n=>Ie(e,t,n)}function Dy(e){return typeof e=="number"?iL:typeof e=="string"?Iy(e)?fd:Xe.test(e)?Ow:aL:Array.isArray(e)?fC:typeof e=="object"?Xe.test(e)?Ow:sL:fd}function fC(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Dy(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function sL(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Dy(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function oL(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const aL=(e,t)=>{const n=Hn.createTransformer(t),r=Jo(e),i=Jo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?nm.has(e)&&!i.values.length||nm.has(t)&&!r.values.length?rL(e,t):iu(fC(oL(r,i),i.values),n):(rh(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),fd(e,t))};function pC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ie(e,t,n):Dy(e)(e,t)}const lL=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>me.update(t,n),stop:()=>bn(t),now:()=>st.isProcessing?st.timestamp:Ct.now()}},mC=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},pd=2e4;function Fy(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<pd;)t+=n,r=e.next(t);return t>=pd?1/0:t}function uL(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Fy(r),pd);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:gn(i)}}const $e={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 rm(e,t){return e*Math.sqrt(1-t*t)}const cL=12;function dL(e,t,n){let r=n;for(let i=1;i<cL;i++)r=r-e(r)/t(r);return r}const cf=.001;function hL({duration:e=$e.duration,bounce:t=$e.bounce,velocity:n=$e.velocity,mass:r=$e.mass}){let i,s;rh(e<=Ut($e.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=qn($e.minDamping,$e.maxDamping,o),e=qn($e.minDuration,$e.maxDuration,gn(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,h=rm(u,o),y=Math.exp(-d);return cf-f/h*y},s=u=>{const d=u*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-d),m=rm(Math.pow(u,2),o);return(-i(u)+cf>0?-1:1)*((f-h)*y)/m}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-cf+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=dL(i,s,a);if(e=Ut(e),isNaN(l))return{stiffness:$e.stiffness,damping:$e.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const fL=["duration","bounce"],pL=["stiffness","damping","mass"];function Iw(e,t){return t.some(n=>e[n]!==void 0)}function mL(e){let t={velocity:$e.velocity,stiffness:$e.stiffness,damping:$e.damping,mass:$e.mass,isResolvedFromDuration:!1,...e};if(!Iw(e,pL)&&Iw(e,fL))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:$e.mass,stiffness:i,damping:s}}else{const n=hL({...e,velocity:0});t={...t,...n,mass:$e.mass},t.isResolvedFromDuration=!0}return t}function md(e=$e.visualDuration,t=$e.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=mL({...n,velocity:-gn(n.velocity||0)}),y=f||0,m=u/(2*Math.sqrt(l*c)),x=o-s,g=gn(Math.sqrt(l/c)),b=Math.abs(x)<5;r||(r=b?$e.restSpeed.granular:$e.restSpeed.default),i||(i=b?$e.restDelta.granular:$e.restDelta.default);let w,S,C,k,_,R;if(m<1)C=rm(g,m),k=(y+m*g*x)/C,w=j=>{const I=Math.exp(-m*g*j);return o-I*(k*Math.sin(C*j)+x*Math.cos(C*j))},_=m*g*k+x*C,R=m*g*x-k*C,S=j=>Math.exp(-m*g*j)*(_*Math.sin(C*j)+R*Math.cos(C*j));else if(m===1){w=I=>o-Math.exp(-g*I)*(x+(y+g*x)*I);const j=y+g*x;S=I=>Math.exp(-g*I)*(g*j*I-y)}else{const j=g*Math.sqrt(m*m-1);w=Q=>{const K=Math.exp(-m*g*Q),Z=Math.min(j*Q,300);return o-K*((y+m*g*x)*Math.sinh(Z)+j*x*Math.cosh(Z))/j};const I=(y+m*g*x)/j,O=m*g*I-x*j,W=m*g*x-I*j;S=Q=>{const K=Math.exp(-m*g*Q),Z=Math.min(j*Q,300);return K*(O*Math.sinh(Z)+W*Math.cosh(Z))}}const A={calculatedDuration:h&&d||null,velocity:j=>Ut(S(j)),next:j=>{if(!h&&m<1){const O=Math.exp(-m*g*j),W=Math.sin(C*j),Q=Math.cos(C*j),K=o-O*(k*W+x*Q),Z=Ut(O*(_*W+R*Q));return a.done=Math.abs(Z)<=r&&Math.abs(o-K)<=i,a.value=a.done?o:K,a}const I=w(j);if(h)a.done=j>=d;else{const O=Ut(S(j));a.done=Math.abs(O)<=r&&Math.abs(o-I)<=i}return a.value=a.done?o:I,a},toString:()=>{const j=Math.min(Fy(A),pd),I=mC(O=>A.next(j*O).value,j,30);return j+"ms "+I},toTransition:()=>{}};return A}md.applyToOptions=e=>{const t=uL(e,100,md);return e.ease=t.ease,e.duration=Ut(t.duration),e.type="keyframes",e};const gL=5;function gC(e,t,n){const r=Math.max(t-gL,0);return jy(n-e(r),t-r)}function im({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=R=>a!==void 0&&R<a||l!==void 0&&R>l,y=R=>a===void 0?l:l===void 0||Math.abs(a-R)<Math.abs(l-R)?a:l;let m=n*t;const x=d+m,g=o===void 0?x:o(x);g!==x&&(m=g-d);const b=R=>-m*Math.exp(-R/r),w=R=>g+b(R),S=R=>{const A=b(R),j=w(R);f.done=Math.abs(A)<=u,f.value=f.done?g:j};let C,k;const _=R=>{h(f.value)&&(C=R,k=md({keyframes:[f.value,y(f.value)],velocity:gC(w,R,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return _(0),{calculatedDuration:null,next:R=>{let A=!1;return!k&&C===void 0&&(A=!0,S(R),_(R)),C!==void 0&&R>=C?k.next(R-C):(!A&&S(R),f)}}}function yL(e,t,n){const r=[],i=n||Ni.mix||pC,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Bt:t;a=iu(l,a)}r.push(a)}return r}function $y(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(ji(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=yL(t,r,i),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Qo(e[d],e[d+1],c);return a[d](f)};return n?c=>u(qn(e[0],e[s-1],c)):u}function vL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Qo(0,t,r);e.push(Ie(n,1,i))}}function yC(e){const t=[0];return vL(t,e.length-1),t}function wL(e,t){return e.map(n=>n*t)}function bL(e,t){return e.map(()=>t||iC).splice(0,e.length-1)}function rl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=jI(r)?r.map(_w):_w(r),s={done:!1,value:t[0]},o=wL(n&&n.length===t.length?n:yC(t),e),a=$y(o,t,{ease:Array.isArray(i)?i:bL(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const xL=e=>e!==null;function ih(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(xL),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const SL={decay:im,inertia:im,tween:rl,keyframes:rl,spring:md};function vC(e){typeof e.type=="string"&&(e.type=SL[e.type])}class zy{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 kL=e=>e/100;class gd extends zy{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,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Ct.now()&&this.tick(Ct.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;vC(t);const{type:n=rl,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||rl;l!==rl&&typeof a[0]!="number"&&(this.mixKeyframes=iu(kL,pC(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Fy(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:h,type:y,onUpdate:m,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,S=r;if(d){const R=Math.min(this.currentTime,i)/a;let A=Math.floor(R),j=R%1;!j&&R>=1&&(j=1),j===1&&A--,A=Math.min(A,d+1),!!(A%2)&&(f==="reverse"?(j=1-j,h&&(j-=h/a)):f==="mirror"&&(S=o)),w=qn(0,1,j)*a}let C;b?(this.delayState.value=c[0],C=this.delayState):C=S.next(w),s&&!b&&(C.value=s(C.value));let{done:k}=C;!b&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return _&&y!==im&&(C.value=ih(c,this.options,x,this.speed)),m&&m(C.value),_&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return gn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+gn(t)}get time(){return gn(this.currentTime)}set time(t){t=Ut(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 gC(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(Ct.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=gn(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=lL,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);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(Ct.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 EL(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ns=e=>e*180/Math.PI,sm=e=>{const t=ns(Math.atan2(e[1],e[0]));return om(t)},CL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:sm,rotateZ:sm,skewX:e=>ns(Math.atan(e[1])),skewY:e=>ns(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},om=e=>(e=e%360,e<0&&(e+=360),e),Lw=sm,Mw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Dw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),TL={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Mw,scaleY:Dw,scale:e=>(Mw(e)+Dw(e))/2,rotateX:e=>om(ns(Math.atan2(e[6],e[5]))),rotateY:e=>om(ns(Math.atan2(-e[2],e[0]))),rotateZ:Lw,rotate:Lw,skewX:e=>ns(Math.atan(e[4])),skewY:e=>ns(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function am(e){return e.includes("scale")?1:0}function lm(e,t){if(!e||e==="none")return am(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=TL,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=CL,i=a}if(!i)return am(t);const s=r[t],o=i[1].split(",").map(PL);return typeof s=="function"?s(o):o[s]}const _L=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return lm(n,t)};function PL(e){return parseFloat(e.trim())}const oa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],aa=new Set(oa),Fw=e=>e===sa||e===V,AL=new Set(["x","y","z"]),RL=oa.filter(e=>!AL.has(e));function jL(e){const t=[];return RL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const yi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-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})=>lm(t,"x"),y:(e,{transform:t})=>lm(t,"y")};yi.translateX=yi.x;yi.translateY=yi.y;const gs=new Set;let um=!1,cm=!1,dm=!1;function wC(){if(cm){const e=Array.from(gs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=jL(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}cm=!1,um=!1,gs.forEach(e=>e.complete(dm)),gs.clear()}function bC(){gs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cm=!0)})}function NL(){dm=!0,bC(),wC(),dm=!1}class By{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(gs.add(this),um||(um=!0,me.read(bC),me.resolveKeyframes(wC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}EL(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 OL=e=>e.startsWith("--");function xC(e,t,n){OL(t)?e.style.setProperty(t,n):e.style[t]=n}const IL={};function Uy(e,t){const n=YE(e);return()=>IL[t]??n()}const Vy=Uy(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),SC=Uy(()=>window.ViewTimeline!==void 0,"viewTimeline"),kC=Uy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ba=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$w={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ba([0,.65,.55,1]),circOut:Ba([.55,0,1,.45]),backIn:Ba([.31,.01,.66,-.59]),backOut:Ba([.33,1.53,.69,.99])};function EC(e,t){if(e)return typeof e=="function"?kC()?mC(e,t):"ease-out":sC(e)?Ba(e):Array.isArray(e)?e.map(n=>EC(n,t)||$w.easeOut):$w[e]}function LL(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=EC(a,i);Array.isArray(d)&&(c.easing=d);const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function CC(e){return typeof e=="function"&&"applyToOptions"in e}function ML({type:e,...t}){return CC(e)&&kC()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class TC extends zy{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,ji(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=ML(t);this.animation=LL(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=ih(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),xC(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.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 gn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+gn(t)}get time(){return gn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ut(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:i}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Vy()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Bt):i(this)}}const _C={anticipate:tC,backInOut:eC,circInOut:rC};function DL(e){return e in _C}function FL(e){typeof e.ease=="string"&&DL(e.ease)&&(e.ease=_C[e.ease])}const df=10;class $L extends TC{constructor(t){FL(t),vC(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:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new gd({...o,autoplay:!1}),l=Math.max(df,Ct.now()-this.startTime),u=qn(0,df,l-df),c=a.sample(l).value,{name:d}=this.options;s&&d&&xC(s,d,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const zw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Hn.test(e)||e==="0")&&!e.startsWith("url("));function zL(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 BL(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=zw(i,t),a=zw(s,t);return rh(o===a,`You are trying to animate ${t} from "${i}" to "${s}". "${o?s:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:zL(e)||(n==="spring"||CC(n))&&r}function hm(e){e.duration=0,e.type="keyframes"}const PC=new Set(["opacity","clipPath","filter","transform"]),UL=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function VL(e){for(let t=0;t<e.length;
69t++)if(typeof e[t]=="string"&&UL.test(e[t]))return!0;return!1}const HL=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),WL=YE(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function qL(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return WL()&&n&&(PC.has(n)||HL.has(n)&&VL(a))&&(n!=="transform"||!c)&&!u&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const KL=40;class GL extends zy{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var y;super(),this.stop=()=>{var m,x;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=Ct.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...d},h=(c==null?void 0:c.KeyframeResolver)||By;this.keyframeResolver=new h(a,(m,x,g)=>this.onKeyframesResolved(m,x,f,!g),l,u,c),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,i){var g,b;this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Ct.now();let d=!0;BL(t,s,o,a)||(d=!1,(Ni.instantAnimations||!l)&&(c==null||c(ih(t,r,n))),t[0]=t[t.length-1],hm(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>KL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=d&&!u&&qL(h),m=(b=(g=h.motionValue)==null?void 0:g.owner)==null?void 0:b.current;let x;if(y)try{x=new $L({...h,element:m})}catch{x=new gd(h)}else x=new gd(h);x.finished.then(()=>{this.notifyFinished()}).catch(Bt),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(),NL()),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 AC(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}const YL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function QL(e){const t=YL.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const JL=4;function RC(e,t,n=1){ji(n<=JL,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=QL(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return qE(o)?parseFloat(o):o}return Iy(i)?RC(i,t,n+1):i}const XL={type:"spring",stiffness:500,damping:25,restSpeed:10},ZL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),eM={type:"keyframes",duration:.8},tM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nM=(e,{keyframes:t})=>t.length>2?eM:aa.has(e)?e.startsWith("scale")?ZL(t[1]):XL:tM;function jC(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Hy(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?jC(n,e):n}const rM=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function iM(e){for(const t in e)if(!rM.has(t))return!0;return!1}const Wy=(e,t,n,r={},i,s)=>o=>{const a=Hy(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Ut(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};iM(a)||Object.assign(c,nM(e,c)),c.duration&&(c.duration=Ut(c.duration)),c.repeatDelay&&(c.repeatDelay=Ut(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(hm(c),c.delay===0&&(
vendor: 35,901 bytes, line 69
69d=!0)),(Ni.instantAnimations||Ni.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(d=!0,hm(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!s&&t.get()!==void 0){const f=ih(c.keyframes,a);if(f!==void 0){me.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new gd(c):new GL(c)};function Bw(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function qy(e,t,n,r){if(typeof t=="function"){const[i,s]=Bw(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Bw(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function ys(e,t,n){const r=e.getProps();return qy(r,t,n!==void 0?n:r.custom,e)}const NC=new Set(["width","height","top","left","right","bottom",...oa]),Uw=30,sM=e=>!isNaN(parseFloat(e)),il={current:void 0};class oM{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=Ct.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.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=Ct.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=sM(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 Ry);const r=this.events[t].add(n);return t==="change"?()=>{r(),me.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 il.current&&il.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Uw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Uw);return jy(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 zn(e,t){return new oM(e,t)}const fm=e=>Array.isArray(e);function aM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zn(n))}function lM(e){return fm(e)?e[e.length-1]||0:e}function uM(e,t){const n=ys(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=lM(s[o]);aM(e,o,a)}}const ht=e=>!!(e&&e.getVelocity);function cM(e){return!!(ht(e)&&e.add)}function pm(e,t){const n=e.getValue("willChange");if(cM(n))return n.add(t);if(!n&&Ni.WillChange){const r=new Ni.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ky(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const dM="framerAppearId",OC="data-"+Ky(dM);function IC(e){return e.props[OC]}function hM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function LC(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();s=s?jC(s,l):l;const u=s==null?void 0:s.reduceMotion;r&&(s=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const h=e.getValue(f,e.latestValues[f]??null),y=a[f];if(y===void 0||d&&hM(d,f))continue;const m={delay:n,...Hy(s||{},f)},x=h.get();if(x!==void 0&&!h.isAnimating()&&!Array.isArray(y)&&y===x&&!m.velocity){me.update(()=>h.set(y));continue}let g=!1;if(window.MotionHandoffAnimation){const S=IC(e);if(S){const C=window.MotionHandoffAnimation(S,f,me);C!==null&&(m.startTime=C,g=!0)}}pm(e,f);const b=u??e.shouldReduceMotion;h.start(Wy(f,h,y,b&&NC.has(f)?{type:!1}:m,e,g));const w=h.animation;w&&c.push(w)}if(o){const f=()=>me.update(()=>{o&&uM(e,o)});c.length?Promise.all(c).then(f):f()}return c}function mm(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:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(LC(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return fM(e,t,u,c,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function fM(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(mm(l,t,{...o,delay:n+(typeof r=="function"?0:r)+AC(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function pM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>mm(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=mm(e,t,n);else{const i=typeof t=="function"?ys(e,t,n.custom):t;r=Promise.all(LC(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const mM={test:e=>e==="auto",parse:e=>e},MC=e=>t=>t.test(e),DC=[sa,V,mr,Qr,VI,UI,mM],Vw=e=>DC.find(MC(e));function gM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||GE(e):!0}const yM=new Set(["brightness","contrast","saturate","opacity"]);function vM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ly)||[];if(!r)return e;const i=n.replace(r,"");let s=yM.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const wM=/\b([a-z-]*)\(.*?\)/gu,gm={...Hn,getAnimatableNone:e=>{const t=e.match(wM);return t?t.map(vM).join(" "):e}},ym={...Hn,getAnimatableNone:e=>{const t=Hn.parse(e);return Hn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Hw={...sa,transform:Math.round},bM={rotate:Qr,rotateX:Qr,rotateY:Qr,rotateZ:Qr,scale:Du,scaleX:Du,scaleY:Du,scaleZ:Du,skew:Qr,skewX:Qr,skewY:Qr,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Ol,originX:Rw,originY:Rw,originZ:V},Gy={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...bM,zIndex:Hw,fillOpacity:Ol,strokeOpacity:Ol,numOctaves:Hw},xM={...Gy,color:Xe,backgroundColor:Xe,outlineColor:Xe,fill:Xe,stroke:Xe,borderColor:Xe,borderTopColor:Xe,borderRightColor:Xe,borderBottomColor:Xe,borderLeftColor:Xe,filter:gm,WebkitFilter:gm,mask:ym,WebkitMask:ym},FC=e=>xM[e],SM=new Set([gm,ym]);function $C(e,t){let n=FC(e);return SM.has(n)||(n=Hn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const kM=new Set(["auto","none","0"]);function EM(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!kM.has(s)&&Jo(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=$C(n,i)}class CM extends By{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Iy(d))){const f=RC(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!NC.has(r)||t.length!==2)return;const[i,s]=t,o=Vw(i),a=Vw(s),l=Aw(i),u=Aw(s);if(l!==u&&yi[r]){this.needsMeasurement=!0;return}if(o!==a)if(Fw(o)&&Fw(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else yi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||gM(t[i]))&&r.push(i);r.length&&EM(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=yi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=yi[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Yy(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const zC=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function sl(e){return KE(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Qy,cancel:HK}=oC(queueMicrotask,!1),Nn={x:!1,y:!1};function BC(){return Nn.x||Nn.y}function TM(e){return e==="x"||e==="y"?Nn[e]?null:(Nn[e]=!0,()=>{Nn[e]=!1}):Nn.x||Nn.y?null:(Nn.x=Nn.y=!0,()=>{Nn.x=Nn.y=!1})}function UC(e,t){const n=Yy(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _M(e){return!(e.pointerType==="touch"||BC())}function PM(e,t,n={}){const[r,i,s]=UC(e,n);return r.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",y)},d=x=>{u&&(u(x),u=void 0),c()},f=x=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(x))},h=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},y=x=>{if(x.pointerType!=="touch"){if(a){l=!0;return}d(x)}},m=x=>{if(!_M(x))return;l=!1;const g=t(o,x);typeof g=="function"&&(u=g,o.addEventListener("pointerleave",y,i))};o.addEventListener("pointerenter",m,i),o.addEventListener("pointerdown",h,i)}),s}const VC=(e,t)=>t?e===t?!0:VC(e,t.parentElement):!1,Jy=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,AM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function RM(e){return AM.has(e.tagName)||e.isContentEditable===!0}const jM=new Set(["INPUT","SELECT","TEXTAREA"]);function NM(e){return jM.has(e.tagName)||e.isContentEditable===!0}const xc=new WeakSet;function Ww(e){return t=>{t.key==="Enter"&&e(t)}}function hf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const OM=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Ww(()=>{if(xc.has(n))return;hf(n,"down");const i=Ww(()=>{hf(n,"up")}),s=()=>hf(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function qw(e){return Jy(e)&&!BC()}const Kw=new WeakSet;function IM(e,t,n={}){const[r,i,s]=UC(e,n),o=a=>{const l=a.currentTarget;if(!qw(a)||Kw.has(a))return;xc.add(l),n.stopPropagation&&Kw.add(a);const u=t(l,a),c=(h,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),xc.has(l)&&xc.delete(l),qw(h)&&typeof u=="function"&&u(h,{success:y})},d=h=>{c(h,l===window||l===document||n.useGlobalTarget||VC(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),sl(a)&&(a.addEventListener("focus",u=>OM(u,i)),!RM(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Xy(e){return KE(e)&&"ownerSVGElement"in e}const Sc=new WeakMap;let Jr;const HC=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:Xy(r)&&"getBBox"in r?r.getBBox()[t]:r[n],LM=HC("inline","width","offsetWidth"),MM=HC("block","height","offsetHeight");function DM({target:e,borderBoxSize:t}){var n;(n=Sc.get(e))==null||n.forEach(r=>{r(e,{get width(){return LM(e,t)},get height(){return MM(e,t)}})})}function FM(e){e.forEach(DM)}function $M(){typeof ResizeObserver>"u"||(Jr=new ResizeObserver(FM))}function zM(e,t){Jr||$M();const n=Yy(e);return n.forEach(r=>{let i=Sc.get(r);i||(i=new Set,Sc.set(r,i)),i.add(t),Jr==null||Jr.observe(r)}),()=>{n.forEach(r=>{const i=Sc.get(r);i==null||i.delete(t),i!=null&&i.size||Jr==null||Jr.unobserve(r)})}}const kc=new Set;let fo;function BM(){fo=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};kc.forEach(t=>t(e))},window.addEventListener("resize",fo)}function UM(e){return kc.add(e),fo||BM(),()=>{kc.delete(e),!kc.size&&typeof fo=="function"&&(window.removeEventListener("resize",fo),fo=void 0)}}function vm(e,t){return typeof e=="function"?UM(e):zM(e,t)}function WC(e,t){let n;const r=()=>{const{currentTime:i}=t,o=(i===null?0:i.value)/100;n!==o&&e(o),n=o};return me.preUpdate(r,!0),()=>bn(r)}function VM(e){return Xy(e)&&e.tagName==="svg"}function HM(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],o=e[3+n],a=$y(i,s,o);return t?a(r):a}const WM=[...DC,Xe,Hn],qM=e=>WM.find(MC(e)),Gw=()=>({translate:0,scale:1,origin:0,originPoint:0}),po=()=>({x:Gw(),y:Gw()}),Yw=()=>({min:0,max:0}),et=()=>({x:Yw(),y:Yw()}),KM=new WeakMap;function sh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Il(e){return typeof e=="string"||Array.isArray(e)}const Zy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ev=["initial",...Zy];function oh(e){return sh(e.animate)||ev.some(t=>Il(e[t]))}function qC(e){return!!(oh(e)||e.variants)}function GM(e,t,n){for(const r in t){const i=t[r],s=n[r];if(ht(i))e.addValue(r,i);else if(ht(s))e.addValue(r,zn(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,zn(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wm={current:null},KC={current:!1},YM=typeof window<"u";function QM(){if(KC.current=!0,!!YM)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wm.current=e.matches;e.addEventListener("change",t),t()}else wm.current=!1}const Qw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let yd={};function GC(e){yd=e}function JM(){return yd}class XM{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:s,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=By,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 h=Ct.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,me.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=s,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=oh(n),this.isVariantNode=qC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const y=f[h];u[h]!==void 0&&ht(y)&&y.set(u[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,KM.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((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(KC.current||QM(),this.shouldReduceMotion=wm.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(),bn(this.notifyUpdate),bn(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&&PC.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,d=new TC({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:Ut(c)}),f=o(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=aa.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&me.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),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 yd){const n=yd[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}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<Qw.length;r++){const i=Qw[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=GM(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=zn(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"&&(qE(r)||GE(r))?r=parseFloat(r):!qM(r)&&Hn.test(n)&&(r=$C(t,n)),this.setBaseTarget(t,ht(r)?r.get():r)),ht(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=qy(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ht(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ry),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Qy.render(this.render)}}class YC extends XM{constructor(){super(...arguments),this.KeyframeResolver=CM}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;ht(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}let Mi=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function QC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ZM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function eD(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 ff(e){return e===void 0||e===1}function bm({scale:e,scaleX:t,scaleY:n}){return!ff(e)||!ff(t)||!ff(n)}function qi(e){return bm(e)||JC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function JC(e){return Jw(e.x)||Jw(e.y)}function Jw(e){return e&&e!=="0%"}function vd(e,t,n){const r=e-n,i=t*r;return n+i}function Xw(e,t,n,r,i){return i!==void 0&&(e=vd(e,i,r)),vd(e,n,r)+t}function xm(e,t=0,n=1,r,i){e.min=Xw(e.min,t,n,r,i),e.max=Xw(e.max,t,n,r,i)}function XC(e,{x:t,y:n}){xm(e.x,t.translate,t.scale,t.originPoint),xm(e.y,n.translate,n.scale,n.originPoint)}const Zw=.999999999999,eb=1.0000000000001;function tD(e,t,n,r=!1){var a;const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const{visualElement:u}=s.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(lr(e.x,-s.scroll.offset.x),lr(e.y,-s.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,XC(e,o)),r&&qi(s.latestValues)&&Ec(e,s.latestValues,(a=s.layout)==null?void 0:a.layoutBox))}t.x<eb&&t.x>Zw&&(t.x=1),t.y<eb&&t.y>Zw&&(t.y=1)}function lr(e,t){e.min+=t,e.max+=t}function tb(e,t,n,r,i=.5){const s=Ie(e.min,e.max,i);xm(e,t,n,s,r)}function nb(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Ec(e,t,n){const r=n??e;tb(e.x,nb(t.x,r.x),t.scaleX,t.scale,t.originX),tb(e.y,nb(t.y,r.y),t.scaleY,t.scale,t.originY)}function ZC(e,t){return QC(eD(e.getBoundingClientRect(),t))}function nD(e,t,n){const r=ZC(e,n),{scroll:i}=t;return i&&(lr(r.x,i.offset.x),lr(r.y,i.offset.y)),r}const rD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iD=oa.length;function sD(e,t,n){let r="",i=!0;for(let s=0;s<iD;s++){const o=oa[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const u=parseFloat(a);l=o.startsWith("scale")?u===1:u===0}if(!l||n){const u=zC(a,Gy[o]);if(!l){i=!1;const c=rD[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function tv(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(aa.has(l)){o=!0;continue}else if(lC(l)){i[l]=u;continue}else{const c=zC(u,Gy[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=sD(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}function eT(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function rb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _a={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=rb(e,t.target.x),r=rb(e,t.target.y);return`${n}% ${r}%`}},oD={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Hn.parse(e);if(i.length>5)return r;const s=Hn.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Ie(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}},Sm={borderRadius:{..._a,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_a,borderTopRightRadius:_a,borderBottomLeftRadius:_a,borderBottomRightRadius:_a,boxShadow:oD};function tT(e,{layout:t,layoutId:n}){return aa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Sm[e]||e==="opacity")}function nv(e,t,n){var o;const r=e.style,i=t==null?void 0:t.style,s={};if(!r)return s;for(const a in r)(ht(r[a])||i&&ht(i[a])||tT(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}function aD(e){return window.getComputedStyle(e)}class lD extends YC{constructor(){super(...arguments),this.type="html",this.renderInstance=eT}readValueFromInstance(t,n){var r;if(aa.has(n))return(r=this.projection)!=null&&r.isProjecting?am(n):_L(t,n);{const i=aD(t),s=(lC(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ZC(t,n)}build(t,n,r){tv(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return nv(t,n,r)}}const uD={offset:"stroke-dashoffset",array:"stroke-dasharray"},cD={offset:"strokeDashoffset",array:"strokeDasharray"};function dD(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?uD:cD;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const hD=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function nT(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(tv(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox);for(const h of hD)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&dD(d,i,s,o,!1)}const rT=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"]),iT=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fD(e,t,n,r){eT(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(rT.has(i)?i:Ky(i),t.attrs[i])}function sT(e,t,n){const r=nv(e,t,n);for(const i in e)if(ht(e[i])||ht(t[i])){const s=oa.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class pD extends YC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(aa.has(n)){const r=FC(n);return r&&r.default||0}return n=rT.has(n)?n:Ky(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return sT(t,n,r)}build(t,n,r){nT(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){fD(t,n,r,i)}mount(t){this.isSVGTag=iT(t.tagName),super.mount(t)}}const mD=ev.length;function oT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?oT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<mD;n++){const r=ev[n],i=e.props[r];(Il(i)||i===!1)&&(t[r]=i)}return t}function aT(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 gD=[...Zy].reverse(),yD=Zy.length;function vD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>pM(e,n,r)))}function wD(e){let t=vD(e),n=ib(),r=!0,i=!1;const s=u=>(c,d)=>{var h;const f=ys(e,d,u==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(f){const{transition:y,transitionEnd:m,...x}=f;c={...c,...x,...m}}return c};function o(u){t=u(e)}function a(u){const{props:c}=e,d=oT(e.parent)||{},f=[],h=new Set;let y={},m=1/0;for(let g=0;g<yD;g++){const b=gD[g],w=n[b],S=c[b]!==void 0?c[b]:d[b],C=Il(S),k=b===u?w.isActive:null;k===!1&&(m=g);let _=S===d[b]&&S!==c[b]&&C;if(_&&(r||i)&&e.manuallyAnimateOnMount&&(_=!1),w.protectedKeys={...y},!w.isActive&&k===null||!S&&!w.prevProp||sh(S)||typeof S=="boolean")continue;if(b==="exit"&&w.isActive&&k!==!0){w.prevResolvedValues&&(y={...y,...w.prevResolvedValues});continue}const R=bD(w.prevProp,S);let A=R||b===u&&w.isActive&&!_&&C||g>m&&C,j=!1;const I=Array.isArray(S)?S:[S];let O=I.reduce(s(b),{});k===!1&&(O={});const{prevResolvedValues:W={}}=w,Q={...W,...O},K=D=>{A=!0,h.has(D)&&(j=!0,h.delete(D)),w.needsAnimating[D]=!0;const M=e.getValue(D);M&&(M.liveStyle=!1)};for(const D in Q){const M=O[D],E=W[D];if(y.hasOwnProperty(D))continue;let Y=!1;fm(M)&&fm(E)?Y=!aT(M,E):Y=M!==E,Y?M!=null?K(D):h.add(D):M!==void 0&&h.has(D)?K(D):w.protectedKeys[D]=!0}w.prevProp=S,w.prevResolvedValues=O,w.isActive&&(y={...y,...O}),(r||i)&&e.blockInitialAnimation&&(A=!1);const Z=_&&R;A&&(!Z||j)&&f.push(...I.map(D=>{const M={type:b};if(typeof D=="string"&&(r||i)&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:E}=e,Y=ys(E,D);if(E.enteringChildren&&Y){const{delayChildren:q}=Y.transition||{};M.delay=AC(E.enteringChildren,e,q)}}return{animation:D,options:M}}))}if(h.size){const g={};if(typeof c.initial!="boolean"){const b=ys(e,Array.isArray(c.initial)?c.initial[0]:c.initial);b&&b.transition&&(g.transition=b.transition)}h.forEach(b=>{const w=e.getBaseTarget(b),S=e.getValue(b);S&&(S.liveStyle=!0),g[b]=w??null}),f.push({animation:g})}let x=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,i=!1,x?t(f):Promise.resolve()}function l(u,c){var f;if(n[u].isActive===c)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(h=>{var y;return(y=h.animationState)==null?void 0:y.setActive(u,c)}),n[u].isActive=c;const d=a(u);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ib(),i=!0}}}function bD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!aT(t,e):!1}function zi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ib(){return{animate:zi(!0),whileInView:zi(),whileHover:zi(),whileTap:zi(),whileDrag:zi(),whileFocus:zi(),exit:zi()}}function km(e,t){e.min=t.min,e.max=t.max}function Rn(e,t){km(e.x,t.x),km(e.y,t.y)}function sb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const lT=1e-4,xD=1-lT,SD=1+lT,uT=.01,kD=0-uT,ED=0+uT;function Tt(e){return e.max-e.min}function CD(e,t,n){return Math.abs(e-t)<=n}function ob(e,t,n,r=.5){e.origin=r,e.originPoint=Ie(t.min,t.max,e.origin),e.scale=Tt(n)/Tt(t),e.translate=Ie(n.min,n.max,e.origin)-e.originPoint,(e.scale>=xD&&e.scale<=SD||isNaN(e.scale))&&(e.scale=1),(e.translate>=kD&&e.translate<=ED||isNaN(e.translate))&&(e.translate=0)}function ol(e,t,n,r){ob(e.x,t.x,n.x,r?r.originX:void 0),ob(e.y,t.y,n.y,r?r.originY:void 0)}function ab(e,t,n,r=0){const i=r?Ie(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+Tt(t)}function TD(e,t,n,r){ab(e.x,t.x,n.x,r==null?void 0:r.x),ab(e.y,t.y,n.y,r==null?void 0:r.y)}function lb(e,t,n,r=0){const i=r?Ie(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Tt(t)}function wd(e,t,n,r){lb(e.x,t.x,n.x,r==null?void 0:r.x),lb(e.y,t.y,n.y,r==null?void 0:r.y)}function ub(e,t,n,r,i){return e-=t,e=vd(e,1/n,r),i!==void 0&&(e=vd(e,1/i,r)),e}function _D(e,t=0,n=1,r=.5,i,s=e,o=e){if(mr.test(t)&&(t=parseFloat(t),t=Ie(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ie(s.min,s.max,r);e===s&&(a-=t),e.min=ub(e.min,t,n,a,i),e.max=ub(e.max,t,n,a,i)}function cb(e,t,[n,r,i],s,o){_D(e,t[n],t[r],t[i],t.scale,s,o)}const PD=["x","scaleX","originX"],AD=["y","scaleY","originY"];function db(e,t,n,r){cb(e.x,t,PD,n?n.x:void 0,r?r.x:void 0),cb(e.y,t,AD,n?n.y:void 0,r?r.y:void 0)}function hb(e){return e.translate===0&&e.scale===1}function cT(e){return hb(e.x)&&hb(e.y)}function fb(e,t){return e.min===t.min&&e.max===t.max}function RD(e,t){return fb(e.x,t.x)&&fb(e.y,t.y)}function pb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function dT(e,t){return pb(e.x,t.x)&&pb(e.y,t.y)}function mb(e){return Tt(e.x)/Tt(e.y)}function gb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function nr(e){return[e("x"),e("y")]}function jD(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l}
69)`),r||"none"}const hT=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],ND=hT.length,yb=e=>typeof e=="string"?parseFloat(e):e,vb=e=>typeof e=="number"||V.test(e);function OD(e,t,n,r,i,s){i?(e.opacity=Ie(0,n.opacity??1,ID(r)),e.opacityExit=Ie(t.opacity??1,0,LD(r))):s&&(e.opacity=Ie(t.opacity??1,n.opacity??1,r));for(let o=0;o<ND;o++){const a=hT[o];let l=wb(t,a),u=wb(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||vb(l)===vb(u)?(e[a]=Math.max(Ie(yb(l),yb(u),r),0),(mr.test(u)||mr.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Ie(t.rotate||0,n.rotate||0,r))}function wb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const ID=fT(0,.5,nC),LD=fT(.5,.95,Bt);function fT(e,t,n){return r=>r<e?0:r>t?1:n(Qo(e,t,r))}function MD(e,t,n){const r=ht(e)?e:zn(e);return r.start(Wy("",r,t,n)),r.animation}function Ll(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const DD=(e,t)=>e.depth-t.depth;class FD{constructor(){this.children=[],this.isDirty=!1}add(t){Ay(this.children,t),this.isDirty=!0}remove(t){hd(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(DD),this.isDirty=!1,this.children.forEach(t)}}function $D(e,t){const n=Ct.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(bn(r),e(s-t))};return me.setup(r,!0),()=>bn(r)}function Cc(e){return ht(e)?e.get():e}class zD{constructor(){this.members=[]}add(t){Ay(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 i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(hd(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(hd(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 i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:o}=t.options;(s===void 0||s!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,s,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(i=t.resumingFrom)==null?void 0:(s=i.options).onExitComplete)==null||o.call(s)})}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 Tc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},pf=["","X","Y","Z"],BD=1e3;let UD=0;function mf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function pT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=IC(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",me,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&pT(r)}function mT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=UD++,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=()=>
vendor: 11,030 bytes, line 69
69{this.projectionUpdateScheduled=!1,this.nodes.forEach(WD),this.nodes.forEach(JD),this.nodes.forEach(XD),this.nodes.forEach(qD)},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 FD)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Ry),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=Xy(o)&&!VM(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const f=()=>this.root.updateBlockedByResize=!1;me.read(()=>{d=window.innerWidth}),e(o,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,c&&c(),c=$D(f,250),Tc.hasAnimatedSinceResize&&(Tc.hasAnimatedSinceResize=!1,this.nodes.forEach(Sb)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||r2,{onLayoutAnimationStart:m,onLayoutAnimationComplete:x}=u.getProps(),g=!this.targetLayout||!dT(this.targetLayout,h),b=!d&&f;if(this.options.layoutRoot||this.resumeFrom||b||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Hy(y,"layout"),onPlay:m,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,b)}else d||Sb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(),bn(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(ZD),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&&pT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,(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 u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(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(GD),this.nodes.forEach(bb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(xb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(YD),this.nodes.forEach(QD),this.nodes.forEach(VD),this.nodes.forEach(HD)):this.nodes.forEach(xb),this.clearAllSnapshots();const a=Ct.now();st.delta=qn(0,1e3/60,a-st.timestamp),st.timestamp=a,st.isProcessing=!0,of.update.process(st),of.preRender.process(st),of.render.process(st),st.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(KD),this.sharedNodes.forEach(e2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,me.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Tt(this.snapshot.measuredBox.x)&&!Tt(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=et()),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(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!cT(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||qi(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),i2(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return et();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(s2))){const{scroll:c}=this.root;c&&(lr(a.x,c.offset.x),lr(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=et();if(Rn(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Rn(a,o),lr(a.x,d.offset.x),lr(a.y,d.offset.y))}return a}applyTransform(o,a=!1,l){var c,d;const u=l||et();Rn(u,o);for(let f=0;f<this.path.length;f++){const h=this.path[f];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(lr(u.x,-h.scroll.offset.x),lr(u.y,-h.scroll.offset.y)),qi(h.latestValues)&&Ec(u,h.latestValues,(c=h.layout)==null?void 0:c.layoutBox)}return qi(this.latestValues)&&Ec(u,this.latestValues,(d=this.layout)==null?void 0:d.layoutBox),u}removeTransform(o){var l;const a=et();Rn(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!qi(c.latestValues))continue;let d;c.instance&&(bm(c.latestValues)&&c.updateSnapshot(),d=et(),Rn(d,c.measurePageBox())),db(a,c.latestValues,(l=c.snapshot)==null?void 0:l.layoutBox,d)}return qi(this.latestValues)&&db(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!==st.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var h;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||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=st.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=et(),this.targetWithTransforms=et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),TD(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Rn(this.target,this.layout.layoutBox),XC(this.target,this.targetDelta)):Rn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||bm(this.parent.latestValues)||JC(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=et(),this.relativeTargetOrigin=et(),wd(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Rn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var y;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&
vendor: 5,333 bytes, line 69
69(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===st.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Rn(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;tD(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=et());const{target:h}=o;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(sb(this.prevProjectionDelta.x,this.projectionDelta.x),sb(this.prevProjectionDelta.y,this.projectionDelta.y)),ol(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!gb(this.projectionDelta.x,this.prevProjectionDelta.x)||!gb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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=po(),this.projectionDelta=po(),this.projectionDeltaWithTransform=po()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=po();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=et(),h=l?l.source:void 0,y=this.layout?this.layout.source:void 0,m=h!==y,x=this.getStack(),g=!x||x.members.length<=1,b=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(n2));this.animationProgress=0;let w;this.mixTargetDelta=S=>{const C=S/1e3;kb(d.x,o.x,C),kb(d.y,o.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wd(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),t2(this.relativeTarget,this.relativeTargetOrigin,f,C),w&&RD(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=et()),Rn(w,this.relativeTarget)),m&&(this.animationValues=c,OD(c,u,this.latestValues,C,b,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(bn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=me.update(()=>{Tc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zn(0)),this.motionValue.jump(0,!1),this.currentAnimation=MD(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(BD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&gT(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||et();const d=Tt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=Tt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}Rn(a,l),Ec(a,c),ol(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new zD),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 4,506 bytes, line 69
69resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&mf("z",o,u,this.animationValues);for(let c=0;c<pf.length;c++)mf(`rotate${pf[c]}`,o,u,this.animationValues),mf(`skew${pf[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Cc(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Cc(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!qi(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=jD(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),o.transform=d;const{x:f,y:h}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const y in Sm){if(c[y]===void 0)continue;const{correct:m,applyTo:x,isCSSVariable:g}=Sm[y],b=d==="none"?c[y]:m(c[y],u);if(x){const w=x.length;for(let S=0;S<w;S++)o[x[S]]=b}else g?this.options.visualElement.renderState.vars[y]=b:o[y]=b}this.options.layoutId&&(o.pointerEvents=u===this?Cc(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(bb),this.root.sharedNodes.clear()}}}function VD(e){e.updateLayout()}function HD(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:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;if(s==="size")nr(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],h=Tt(f);f.min=r[d].min,f.max=f.min+h});else if(s==="x"||s==="y"){const d=s==="x"?"y":"x";km(o?t.measuredBox[d]:t.layoutBox[d],r[d])}else gT(s,t.layoutBox,r)&&nr(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],h=Tt(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=po();ol(a,r,t.layoutBox);const l=po();o?ol(l,e.applyTransform(i,!0),t.measuredBox):ol(l,r,t.layoutBox);const u=!cT(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const y=e.options.layoutAnchor||void 0,m=et();wd(m,t.layoutBox,f.layoutBox,y);const x=et();wd(x,r,h.layoutBox,y),dT(m,x)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function WD(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 qD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function KD(e){e.clearSnapshot()}function bb(e){e.clearMeasurements()}function GD(e){e.isLayoutDirty=!0,e.updateLayout()}function xb(e){e.isLayoutDirty=!1}function YD(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function QD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function JD(e){e.resolveTargetDelta()}function XD(e){e.calcProjection()}
69function ZD(e){e.resetSkewAndRotation()}function e2(e){e.removeLeadSnapshot()}function kb(e,t,n){e.translate=Ie(t.translate,0,n),e.scale=Ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Eb(e,t,n,r){e.min=Ie(t.min,n.min,r),e.max=Ie(t.max,n.max,r)}function t2(e,t,n,r){Eb(e.x,t.x,n.x,r),Eb(e.y,t.y,n.y,r)}function n2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const r2={duration:.45,ease:[.4,0,.1,1]},Cb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Tb=Cb("applewebkit/")&&!Cb("chrome/")?Math.round:Bt;function _b(e){e.min=Tb(e.min),e.max=Tb(e.max)}function i2(e){_b(e.x),_b(e.y)}function gT(e,t,n){return e==="position"||e==="preserve-aspect"&&!CD(mb(t),mb(n),.2)}function s2(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const o2=mT({attachResizeListener:(e,t)=>Ll(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}),gf={current:void 0},yT=mT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gf.current){const e=new o2({});e.mount(window),e.setOptions({layoutScroll:!0}),gf.current=e}return gf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ah=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Pb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function a2(...e){return t=>{let n=!1;const r=e.map(i=>{const s=Pb(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():Pb(e[i],null)}}}}function l2(...e){return v.useCallback(a2(...e),e)}class u2 extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(sl(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=sl(r)&&r.offsetWidth||0,s=sl(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=i-a.width-a.left,a.bottom=s-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function c2({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:s}){var f;const o=v.useId(),a=v.useRef(null),l=v.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=v.useContext(ah),c=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=l2(a,c);return v.useInsertionEffect(()=>{const{width:h,height:y,top:m,left:x,right:g,bottom:b}=l.current;if(t||s===!1||!a.current||!h||!y)return;const w=n==="left"?`left: ${x}`:`right: ${g}`,S=r==="bottom"?`bottom: ${b}`:`top: ${m}`;a.current.dataset.motionPopId=o;const C=document.createElement("style");u&&(C.nonce=u);const k=i??document.head;return k.appendChild(C),C.sheet&&C.sheet.insertRule(`
70          [data-motion-pop-id="${o}"] {
71            position: absolute !important;
72            width: ${h}px !important;
73            height: ${y}px !important;
74            ${w}px !important;
75            ${S}px !important;
76          }
77        `),()=>{var _;(_=a.current)==null||_.removeAttribute("data-motion-pop-id"),k.contains(C)&&k.removeChild(C)}},[t]),p.jsx(u2,{isPresent:t,childRef:a,sizeRef:l,pop:s,children:s===!1?e:v.cloneElement(e,{ref:d})})}const d2=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,anchorY:l,root:u})=>{const c=Ri(h2),d=v.useId();let f=!0,h=v.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:y=>{c.set(y,!0);for(const m of c.values())if(!m)return;r&&r()},register:y=>(c.set(y,!1),()=>c.delete(y))}),[n,c,r]);return s&&f&&(h={...h}),v.useMemo(()=>{c.forEach((y,m)=>c.set(m,!1))},[n]),v.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),e=p.jsx(c2,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:u,children:e}),p.jsx(nh.Provider,{value:h,children:e})};function h2(){return new Map}function vT(e=!0){const t=v.useContext(nh);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=v.useId();v.useEffect(()=>{if(e)return i(s)},[e]);const o=v.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Fu=e=>e.key||"";function Ab(e){const t=[];
vendor: 5,454 bytes, line 77
77return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const f2=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,d]=vT(o),f=v.useMemo(()=>Ab(e),[e]),h=o&&!c?[]:f.map(Fu),y=v.useRef(!0),m=v.useRef(f),x=Ri(()=>new Map),g=v.useRef(new Set),[b,w]=v.useState(f),[S,C]=v.useState(f);th(()=>{y.current=!1,m.current=f;for(let R=0;R<S.length;R++){const A=Fu(S[R]);h.includes(A)?(x.delete(A),g.current.delete(A)):x.get(A)!==!0&&x.set(A,!1)}},[S,h.length,h.join("-")]);const k=[];if(f!==b){let R=[...f];for(let A=0;A<S.length;A++){const j=S[A],I=Fu(j);h.includes(I)||(R.splice(A,0,j),k.push(j))}return s==="wait"&&k.length&&(R=k),C(Ab(R)),w(f),null}const{forceRender:_}=v.useContext(Py);return p.jsx(p.Fragment,{children:S.map(R=>{const A=Fu(R),j=o&&!c?!1:f===S||h.includes(A),I=()=>{if(g.current.has(A))return;if(x.has(A))g.current.add(A),x.set(A,!0);else return;let O=!0;x.forEach(W=>{W||(O=!1)}),O&&(_==null||_(),C(m.current),o&&(d==null||d()),r&&r())};return p.jsx(d2,{isPresent:j,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:u,onExitComplete:j?void 0:I,anchorX:a,anchorY:l,children:R},A)})})},wT=v.createContext({strict:!1}),Rb={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 jb=!1;function p2(){if(jb)return;const e={};for(const t in Rb)e[t]={isEnabled:n=>Rb[t].some(r=>!!n[r])};GC(e),jb=!0}function bT(){return p2(),JM()}function m2(e){const t=bT();for(const n in e)t[n]={...t[n],...e[n]};GC(t)}const g2=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 bd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||g2.has(e)}let xT=e=>!bd(e);function y2(e){typeof e=="function"&&(xT=t=>t.startsWith("on")?!bd(t):e(t))}try{y2(require("@emotion/is-prop-valid").default)}catch{}function v2(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||ht(e[i])||(xT(i)||n===!0&&bd(i)||!t&&!bd(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const lh=v.createContext({});function w2(e,t){if(oh(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Il(n)?n:void 0,animate:Il(r)?r:void 0}}return e.inherit!==!1?t:{}}function b2(e){const{initial:t,animate:n}=w2(e,v.useContext(lh));return v.useMemo(()=>({initial:t,animate:n}),[Nb(t),Nb(n)])}function Nb(e){return Array.isArray(e)?e.join(" "):e}const rv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ST(e,t,n){for(const r in t)!ht(t[r])&&!tT(r,n)&&(e[r]=t[r])}function x2({transformTemplate:e},t){return v.useMemo(()=>{const n=rv();return tv(n,t,e),Object.assign({},n.vars,n.style)},[t])}function S2(e,t){const n=e.style||{},r={};return ST(r,n,e),Object.assign(r,x2(e,t)),r}function k2(e,t){const n={},r=S2(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 kT=()=>({...rv(),attrs:{}});function E2(e,t,n,r){const i=v.useMemo(()=>{const s=kT();return nT(s,t,iT(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};ST(s,e.style,e),i.style={...s,...i.style}}return i}const C2=["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 iv(e){return typeof e!="string"||e.includes("-")?!1:!!(C2.indexOf(e)>-1||/[A-Z]/u.test(e))}function T2(e,t,n,{latestValues:r},i,s=!1,o){const l=(o??iv(e)?E2:k2)(t,r,i,e),u=v2(t,typeof e=="string",s),c=e!==v.Fragment?{...u,...l,ref:n}:{},{children:d}=t,f=v.useMemo(()=>ht(d)?d.get():d,[d]);return v.createElement(e,{...c,children:f})}function _2({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:P2(n,r,i,e),renderState:t()}}function P2(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Cc(s[f]);let{initial:o,animate:a}=e;const l=oh(e),u=qC(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!sh(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const y=qy(e,f[h]);if(y){const{transitionEnd:m,transition:x,...g}=y;for(const b in g){let w=g[b];if(Array.isArray(w)){const S=c?w.length-1:0;w=w[S]}w!==null&&(i[b]=w)}for(const b in m)i[b]=m[b]}}}return i}const ET=e=>(t,n)=>{const r=v.useContext(lh),i=v.useContext(nh),s=()=>
vendor: 21,884 bytes, line 77
77_2(e,t,r,i);return n?s():Ri(s)},A2=ET({scrapeMotionValuesFromProps:nv,createRenderState:rv}),R2=ET({scrapeMotionValuesFromProps:sT,createRenderState:kT}),j2=Symbol.for("motionComponentSymbol");function N2(e,t,n){const r=v.useRef(n);v.useInsertionEffect(()=>{r.current=n});const i=v.useRef(null);return v.useCallback(s=>{var a;s&&((a=e.onMount)==null||a.call(e,s));const o=r.current;if(typeof o=="function")if(s){const l=o(s);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(s);else o&&(o.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const CT=v.createContext({});function Gs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function O2(e,t,n,r,i,s){var w,S;const{visualElement:o}=v.useContext(lh),a=v.useContext(wT),l=v.useContext(nh),u=v.useContext(ah),c=u.reducedMotion,d=u.skipAnimations,f=v.useRef(null),h=v.useRef(!1);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:s}),h.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const y=f.current,m=v.useContext(CT);y&&!y.projection&&i&&(y.type==="html"||y.type==="svg")&&I2(f.current,n,i,m);const x=v.useRef(!1);v.useInsertionEffect(()=>{y&&x.current&&y.update(n,l)});const g=n[OC],b=v.useRef(!!g&&typeof window<"u"&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,g))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,g)));return th(()=>{h.current=!0,y&&(x.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),b.current&&y.animationState&&y.animationState.animateChanges())}),v.useEffect(()=>{y&&(!b.current&&y.animationState&&y.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,g)}),b.current=!1),y.enteringChildren=void 0)}),y}function I2(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:TT(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Gs(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function TT(e){if(e)return e.options.allowProjection!==!1?e.projection:TT(e.parent)}function yf(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&m2(r);const s=n?n==="svg":iv(e),o=s?R2:A2;function a(u,c){let d;const f={...v.useContext(ah),...u,layoutId:L2(u)},{isStatic:h}=f,y=b2(u),m=o(u,h);if(!h&&typeof window<"u"){M2();const x=D2(f);d=x.MeasureLayout,y.visualElement=O2(e,m,f,i,x.ProjectionNode,s)}return p.jsxs(lh.Provider,{value:y,children:[d&&y.visualElement?p.jsx(d,{visualElement:y.visualElement,...f}):null,T2(e,u,N2(m,y.visualElement,c),m,h,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=v.forwardRef(a);return l[j2]=e,l}function L2({layoutId:e}){const t=v.useContext(Py).id;return t&&e!==void 0?t+"-"+e:e}function M2(e,t){v.useContext(wT).strict}function D2(e){const t=bT(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function F2(e,t){if(typeof Proxy>"u")return yf;const n=new Map,r=(s,o)=>yf(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,yf(o,void 0,e,t)),n.get(o))})}const $2=(e,t)=>t.isSVG??iv(e)?new pD(t):new lD(t,{allowProjection:e!==v.Fragment});class z2 extends Mi{constructor(t){super(t),t.animationState||(t.animationState=wD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();sh(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 B2=0;class U2 extends Mi{constructor(){super(...arguments),this.id=B2++,this.isExitComplete=!1}update(){var s;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:u,transitionEnd:c,...d}=l;for(const f in d)(s=this.node.getValue(f))==null||s.jump(d[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.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 V2={animation:{Feature:z2},exit:{Feature:U2}};function au(e){return{point:{x:e.pageX,y:e.pageY}}}const H2=e=>t=>Jy(t)&&e(t,au(t));function al(e,t,n,r){return Ll(e,t,H2(n),r)}const _T=({current:e})=>e?e.ownerDocument.defaultView:null,Ob=(e,t)=>Math.abs(e-t);function W2(e,t){const n=Ob(e.x,t.x),r=Ob(e.y,t.y);return Math.sqrt(n**2+r**2)}const Ib=new Set(["auto","scroll"]);class PT{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!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=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=$u(this.lastRawMoveEventInfo,this.transformPagePoint));const h=vf(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,m=W2(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!m)return;const{point:x}=h,{timestamp:g}=st;this.history.push({...x,timestamp:g});const{onStart:b,onMove:w}=this.handlers;y||(b&&b(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,h)},this.handlePointerMove=(h,y)=>{this.lastMoveEvent=h,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=$u(y,this.transformPagePoint),me.update(this.updatePoint,!0)},this.handlePointerUp=(h,y)=>{this.end();const{onEnd:m,onSessionEnd:x,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=vf(h.type==="pointercancel"?this.lastMoveEventInfo:$u(y,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,b),x&&x(h,b)},!Jy(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const l=au(t),u=$u(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=st;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,vf(u,this.history)),this.removeListeners=iu(al(this.contextWindow,"pointermove",this.handlePointerMove),al(this.contextWindow,"pointerup",this.handlePointerUp),al(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Ib.has(r.overflowX)||Ib.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,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-n.x,y:i.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),me.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),bn(this.updatePoint)}}function $u(e,t){return t?{point:t(e.point)}:e}function Lb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vf({point:e},t){return{point:e,delta:Lb(e,AT(t)),offset:Lb(e,q2(t)),velocity:K2(t,.1)}}function q2(e){return e[0]}function AT(e){return e[e.length-1]}function K2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=AT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ut(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Ut(t)*2&&(r=e[1]);const s=gn(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function G2(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ie(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ie(n,e,r.max):Math.min(e,n)),e}function Mb(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 Y2(e,{top:t,left:n,bottom:r,right:i}){return{x:Mb(e.x,n,i),y:Mb(e.y,t,r)}}function Db(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 Q2(e,t){return{x:Db(e.x,t.x),y:Db(e.y,t.y)}}function J2(e,t){let n=.5;const r=Tt(e),i=Tt(t);return i>r?n=Qo(t.min,t.max-r,e.min):r>i&&(n=Qo(e.min,e.max-i,t.min)),qn(0,1,n)}function X2(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 Em=.35;function Z2(e=Em){return e===!1?e=0:e===!0&&(e=Em),{x:Fb(e,"left","right"),y:Fb(e,"top","bottom")}}function Fb(e,t,n){return{min:$b(e,t),max:$b(e,n)}}function $b(e,t){return typeof e=="number"?e:e[t]||0}const eF=new WeakMap;class tF{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=et(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=d=>{n&&this.snapToCursor(au(d).point),this.stopAnimation()},o=(d,f)=>{const{drag:h,dragPropagation:y,onDragStart:m}=this.getProps();if(h&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=TM(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nr(g=>{let b=this.getAxisMotionValue(g).get()||0;if(mr.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[g];S&&(b=Tt(S)*(parseFloat(b)/100))}}this.originPoint[g]=b}),m&&me.update(()=>m(d,f),!1,!0),pm(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:y,onDirectionLock:m,onDrag:x}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:g}=f;if(y&&this.currentDirection===null){this.currentDirection=rF(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),x&&me.update(()=>x(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new PT(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:_T(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&me.postRender(()=>a(r,i))}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:i}=this.getProps();if(!r||!zu(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=G2(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&Gs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Y2(r.layoutBox,t):this.constraints=!1,this.elastic=Z2(n),i!==this.constraints&&!Gs(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&nr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=X2(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gs(t))return!1;const r=t.current;ji(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:i}=this.visualElement;if(!i||!i.layout)return!1;const s=nD(r,i.root,this.visualElement.getTransformPagePoint());let o=Q2(i.layout.layoutBox,s);if(n){const a=n(ZM(o));this.hasMutatedConstraints=!!a,a&&(o=QC(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=nr(c=>{if(!zu(c,n,this.currentDirection))return;let d=l&&l[c]||{};(o===!0||o===c)&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return pm(this.visualElement,t),r.start(Wy(t,r,0,n,this.visualElement,!1))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nr(n=>{const{drag:r}=this.getProps();if(!zu(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=s.get()||0;s.set(t[n]-Ie(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gs(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};nr(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=J2({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),nr(o=>{if(!zu(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Ie(l,u,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;eF.set(this.visualElement,this);const t=this.visualElement.current,n=al(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps(),f=u.target,h=f!==t&&NM(f);c&&d&&!h&&this.start(u)});let r;const i=()=>{const{dragConstraints:u}=this.getProps();Gs(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=nF(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),me.read(i);const a=Ll(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(nr(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Em,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function zb(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function nF(e,t,n){const r=vm(e,zb(n)),i=vm(t,zb(n));return()=>{r(),i()}}function zu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function rF(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class iF extends Mi{constructor(t){super(t),this.removeGroupControls=Bt,this.removeListeners=Bt,this.controls=new tF(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bt}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 wf=e=>(t,n)=>{e&&me.update(()=>e(t,n),!1,!0)};class sF extends Mi{constructor(){super(...arguments),this.removePointerDownListener=Bt}onPointerDown(t){this.session=new PT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_T(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:wf(t),onStart:wf(n),onMove:wf(r),onEnd:(s,o)=>{delete this.session,i&&me.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=al(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 bf=!1;class oF extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),bf&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Tc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),bf=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||me.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(),Qy.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;bf=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function RT(e){const[t,n]=vT(),r=v.useContext(Py);return p.jsx(oF,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(CT),isPresent:t,safeToRemove:n})}const aF={pan:{Feature:sF},drag:{Feature:iF,ProjectionNode:yT,MeasureLayout:RT}};function Bb(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&me.postRender(()=>s(t,au(t)))}class lF extends Mi{mount(){const{current:t}=this.node;t&&(this.unmount=PM(t,(n,r)=>(Bb(this.node,r,"Start"),i=>Bb(this.node,i,"End"))))}unmount(){}}class uF extends Mi{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=iu(Ll(this.node.current,"focus",()=>this.onFocus()),Ll(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ub(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 i="onTap"+(n==="End"?"":n),s=r[i];s&&me.postRender(()=>s(t,au(t)))}class cF extends Mi{mount(){const{current:t}=this.node;if(!t)return;
77const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=IM(t,(i,s)=>(Ub(this.node,s,"Start"),(o,{success:a})=>Ub(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Cm=new WeakMap,xf=new WeakMap,dF=e=>{const t=Cm.get(e.target);t&&t(e)},hF=e=>{e.forEach(dF)};function fF({root:e,...t}){const n=e||document;xf.has(n)||xf.set(n,{});const r=xf.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(hF,{root:e,...t})),r[i]}function pF(e,t,n){const r=fF(t);return Cm.set(e,n),r.observe(e),()=>{Cm.delete(e),r.unobserve(e)}}const mF={some:0,all:1};class gF extends Mi{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:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:mF[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=c?d:f;h&&h(u)};this.stopObserver=pF(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(yF(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function yF({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const vF={inView:{Feature:gF},tap:{Feature:cF},focus:{Feature:uF},hover:{Feature:lF}},wF={layout:{ProjectionNode:yT,MeasureLayout:RT}},bF={...V2,...vF,...aF,...wF},ie=F2(bF,$2);function xF(e,t,n){v.useInsertionEffect(()=>e.on(t,n),[e,t,n])}function xd(e){return typeof window>"u"?!1:e?SC():Vy()}const SF=50,Vb=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),kF=()=>({time:0,x:Vb(),y:Vb()}),EF={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Hb(e,t,n,r){const i=n[t],{length:s,position:o}=EF[t],a=i.current,l=n.time;i.current=Math.abs(e[`scroll${o}`]),i.scrollLength=e[`scroll${s}`]-e[`client${s}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Qo(0,i.scrollLength,i.current);const u=r-l;i.velocity=u>SF?0:jy(i.current-a,u)}function CF(e,t,n){Hb(e,"x",t,n),Hb(e,"y",t,n),t.time=n}function TF(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(sl(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=i.left-s.left,n.y+=i.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:s}=r.getBBox();n.x+=i,n.y+=s;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const Tm={start:0,center:.5,end:1};function Wb(e,t,n=0){let r=0;if(e in Tm&&(e=Tm[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const _F=[0,0];function PF(e,t,n,r){let i=Array.isArray(e)?e:_F,s=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,Tm[e]?e:"0"]),s=Wb(i[0],n,r),o=Wb(i[1],t),s-o}const Ua={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},AF={x:0,y:0};function RF(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function jF(e,t,n){const{offset:r=Ua.All}=n,{target:i=e,axis:s="y"}=n,o=s==="y"?"height":"width",a=i!==e?TF(i,e):AF,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:RF(i),u={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let c=!t[s].interpolate;const d=r.length;for(let f=0;f<d;f++){const h=PF(r[f],u[o],l[o],a[s]);
77!c&&h!==t[s].interpolatorOffsets[f]&&(c=!0),t[s].offset[f]=h}c&&(t[s].interpolate=$y(t[s].offset,yC(r),{clamp:!1}),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=qn(0,1,t[s].interpolate(t[s].current))}function NF(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function OF(e,t,n,r={}){return{measure:i=>{NF(e,r.target,n),CF(e,n,i),(r.offset||r.target)&&jF(e,n,r)},notify:()=>t(n)}}const Ls=new WeakMap,qb=new WeakMap,Sf=new WeakMap,Kb=new WeakMap,Bu=new WeakMap,Gb=e=>e===document.scrollingElement?window:e;function jT(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return Bt;let i=Sf.get(t);i||(i=new Set,Sf.set(t,i));const s=kF(),o=OF(t,e,s,r);if(i.add(o),!Ls.has(t)){const l=()=>{for(const f of i)f.measure(st.timestamp);me.preUpdate(u)},u=()=>{for(const f of i)f.notify()},c=()=>me.read(l);Ls.set(t,c);const d=Gb(t);window.addEventListener("resize",c),t!==document.documentElement&&qb.set(t,vm(t,c)),d.addEventListener("scroll",c),c()}if(n&&!Bu.has(t)){const l=Ls.get(t),u={width:t.scrollWidth,height:t.scrollHeight};Kb.set(t,u);const c=()=>{const f=t.scrollWidth,h=t.scrollHeight;(u.width!==f||u.height!==h)&&(l(),u.width=f,u.height=h)},d=me.read(c,!0);Bu.set(t,d)}const a=Ls.get(t);return me.read(a,!1,!0),()=>{var d;bn(a);const l=Sf.get(t);if(!l||(l.delete(o),l.size))return;const u=Ls.get(t);Ls.delete(t),u&&(Gb(t).removeEventListener("scroll",u),(d=qb.get(t))==null||d(),window.removeEventListener("resize",u));const c=Bu.get(t);c&&(bn(c),Bu.delete(t)),Kb.delete(t)}}const IF=[[Ua.Enter,"entry"],[Ua.Exit,"exit"],[Ua.Any,"cover"],[Ua.All,"contain"]],Yb={start:0,end:1};function LF(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=Yb[t[0]],r=Yb[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function MF(e){if(e.length!==2)return;const t=[];for(const n of e)if(Array.isArray(n))t.push(n);else if(typeof n=="string"){const r=LF(n);if(!r)return;t.push(r)}else return;return t}function DF(e,t){const n=MF(e);if(!n)return!1;for(let r=0;r<2;r++){const i=n[r],s=t[r];if(i[0]!==s[0]||i[1]!==s[1])return!1}return!0}function sv(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of IF)if(DF(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const Qb=new Map;function Jb(e){const t={value:0},n=jT(r=>
77{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function NT({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let i=Qb.get(t);i||(i=new Map,Qb.set(t,i));const s=n.target??"self";let o=i.get(s);o||(o={},i.set(s,o));const a=r+(n.offset??[]).join(",");return o[a]||(n.target&&xd(n.target)?sv(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:r}):o[a]=Jb({container:t,...n}):xd()?o[a]=new ScrollTimeline({source:t,axis:r}):o[a]=Jb({container:t,...n})),o[a]}function FF(e,t){const n=NT(t),r=t.target?sv(t.offset):void 0,i=t.target?xd(t.target)&&!!r:xd();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:s=>(s.pause(),WC(o=>{s.time=s.iterationDuration*o},n))})}function $F(e){return e.length===2}function zF(e,t){return $F(e)?jT(n=>{e(n[t.axis].progress,n)},t):WC(e,NT(t))}function OT(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return Bt;const i={axis:t,container:n,...r};return typeof e=="function"?zF(e,i):FF(e,i)}const BF=()=>({scrollX:zn(0),scrollY:zn(0),scrollXProgress:zn(0),scrollYProgress:zn(0)}),Uu=e=>e?!e.current:!1;function Xb(e,t,n,r){return{factory:i=>OT(i,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0}),times:[0,1],keyframes:[0,1],ease:i=>i,duration:1}}function UF(e,t){return typeof window>"u"?!1:e?SC()&&!!sv(t):Vy()}function IT({container:e,target:t,...n}={}){const r=Ri(BF);UF(t,n.offset)&&(r.scrollXProgress.accelerate=Xb("x",n,e,t),r.scrollYProgress.accelerate=Xb("y",n,e,t));const i=v.useRef(null),s=v.useRef(!1),o=v.useCallback(()=>(i.current=OT((a,{x:l,y:u})=>{r.scrollX.set(l.current),r.scrollXProgress.set(l.progress),r.scrollY.set(u.current),r.scrollYProgress.set(u.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var a;(a=i.current)==null||a.call(i)}),[e,t,JSON.stringify(n.offset)]);return th(()=>{if(s.current=!1,Uu(e)||Uu(t)){s.current=!0;return}else return o()},[o]),v.useEffect(()=>{if(s.current)return ji(!Uu(e),"Container ref is defined but not hydrated","use-scroll-ref"),ji(!Uu(t),"Target ref is defined but not hydrated","use-scroll-ref"),o()},[o]),r}function VF(e){const t=Ri(()=>zn(e)),{isStatic:n}=v.useContext(ah);if(n){const[,r]=v.useState(e);v.useEffect(()=>t.on("change",r),[])}return t}function LT(e,t){const n=VF(t()),r=()=>n.set(t());return r(),th(()=>{const i=()=>me.preRender(r,!1,!0),s=e.map(o=>o.on("change",i));return()=>{s.forEach(o=>o()),bn(r)}}),n}function HF(e){il.current=[],e();const t=LT(il.current,e);return il.current=void 0,t}function _c(e,t,n,r){if(typeof e=="function")return HF(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return WF(e,t,n,r);const o=typeof t=="function"?t:HM(t,n,r),a=Array.isArray(e)?Zb(e,o):Zb([e],([u])=>o(u)),l=Array.isArray(e)?void 0:e.accelerate;return l&&!l.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(r==null?void 0:r.clamp)!==!1&&(a.accelerate={...l,times:t,keyframes:n,isTransformed:!0}),a}function Zb(e,t){const n=Ri(()=>[]);return LT(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function WF(e,t,n,r){const i=Ri(()=>Object.keys(n)),s=Ri(()=>({}));for(const o of i)s[o]=_c(e,t,n[o],r);return s}const qF={some:0,all:1};function KF(e,t,{root:n,margin:r,amount:i="some"}={}){const s=Yy(e),o=new WeakMap,a=u=>{u.forEach(c=>{const d=o.get(c.target);if(c.isIntersecting!==!!d)if(c.isIntersecting){const f=t(c.target,c);typeof f=="function"?o.set(c.target,f):l.unobserve(c.target)}else typeof d=="function"&&(d(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof i=="number"?i:qF[i]});return s.forEach(u=>l.observe(u)),()=>l.disconnect()}function uh(e,{root:t,margin:n,amount:r,once:i=!1,initial:s=!1}={}){const[o,a]=v.useState(s);return v.useEffect(()=>{if(!e.current||i&&o)return;const l=()=>(a(!0),i?void 0:()=>a(!1)),u={root:t&&t.current||void 0,margin:n,amount:r};return KF(e.current,l,u)},[t,e,n,i,r]),o}const Rt=({children:e})=>p.jsx(ie.div,{initial:{opacity:0,y:12}
vendor: 33,273 bytes, line 77
77,animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.4,ease:[.25,.1,.25,1]},children:e});var lu=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(){}},Ts=typeof window>"u"||"Deno"in globalThis;function Lt(){}function GF(e,t){return typeof e=="function"?e(t):e}function _m(e){return typeof e=="number"&&e>=0&&e!==1/0}function MT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _i(e,t){return typeof e=="function"?e(t):e}function cn(e,t){return typeof e=="function"?e(t):e}function ex(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==ov(o,t.options))return!1}else if(!Dl(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||i&&i!==t.state.fetchStatus||s&&!s(t))}function tx(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Ml(t.options.mutationKey)!==Ml(s))return!1}else if(!Dl(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ov(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ml)(e)}function Ml(e){return JSON.stringify(e,(t,n)=>Am(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Dl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Dl(e[n],t[n])):!1}function DT(e,t){if(e===t)return e;const n=nx(e)&&nx(t);if(n||Am(e)&&Am(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<o;c++){const d=n?c:s[c];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,u++):(a[d]=DT(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return i===o&&u===i?e:a}return t}function Pm(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function nx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Am(e){if(!rx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!rx(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function rx(e){return Object.prototype.toString.call(e)==="[object Object]"}function YF(e){return new Promise(t=>{setTimeout(t,e)})}function Rm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?DT(e,t):t}function QF(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function JF(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var av=Symbol();function FT(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===av?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function XF(e,t){return typeof e=="function"?e(...t):!!e}var is,oi,Ro,pS,ZF=(pS=class extends lu{constructor(){super();X(this,is);X(this,oi);X(this,Ro);U(this,Ro,t=>{if(!Ts&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,oi)||this.setEventListener(P(this,Ro))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,oi))==null||t.call(this),U(this,oi,void 0))}setEventListener(t){var n;U(this,Ro,t),(n=P(this,oi))==null||n.call(this),U(this,oi,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,is)!==t&&(U(this,is,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,is)=="boolean"?P(this,is):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},is=new WeakMap,oi=new WeakMap,Ro=new WeakMap,pS),lv=new ZF,jo,ai,No,mS,e$=(mS=class extends lu{constructor(){super();X(this,jo,!0);X(this,ai);X(this,No);U(this,No,t=>{if(!Ts&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,ai)||this.setEventListener(P(this,No))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,ai))==null||t.call(this),U(this,ai,void 0))}setEventListener(t){var n;U(this,No,t),(n=P(this,ai))==null||n.call(this),U(this,ai,t(this.setOnline.bind(this)))}setOnline(t){P(this,jo)!==t&&(U(this,jo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,jo)}},jo=new WeakMap,ai=new WeakMap,No=new WeakMap,mS),Sd=new e$;function jm(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function t$(e){return Math.min(1e3*2**e,3e4)}function $T(e){return(e??"online")==="online"?Sd.isOnline():!0}var zT=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function kf(e){return e instanceof zT}function BT(e){let t=!1,n=0,r=!1,i;const s=jm(),o=m=>{var x;r||(f(new zT(m)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>lv.isFocused()&&(e.networkMode==="always"||Sd.isOnline())&&e.canRun(),c=()=>$T(e.networkMode)&&e.canRun(),d=m=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,m),i==null||i(),s.resolve(m))},f=m=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,m),i==null||i(),s.reject(m))},h=()=>new Promise(m=>{var x;i=g=>{(r||u())&&m(g)},(x=e.onPause)==null||x.call(e)}).then(()=>{var m;i=void 0,r||(m=e.onContinue)==null||m.call(e)}),y=()=>{if(r)return;let m;const x=n===0?e.initialPromise:void 0;try{m=x??e.fn()}catch(g){m=Promise.reject(g)}Promise.resolve(m).then(d).catch(g=>{var k;if(r)return;const b=e.retry??(Ts?0:3),w=e.retryDelay??t$,S=typeof w=="function"?w(n,g):w,C=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,g);if(t||!C){f(g);return}n++,(k=e.onFail)==null||k.call(e,n,g),YF(S).then(()=>u()?void 0:h()).then(()=>{t?f(g):y()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?y():h().then(y),s)}}var n$=e=>setTimeout(e,0);function r$(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=n$;const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var dt=r$(),ss,gS,UT=(gS=class{constructor(){X(this,ss)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_m(this.gcTime)&&U(this,ss,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ts?1/0:5*60*1e3))}clearGcTimeout(){P(this,ss)&&(clearTimeout(P(this,ss)),U(this,ss,void 0))}},ss=new WeakMap,gS),Oo,os,un,as,yt,Yl,ls,Ln,Er,yS,i$=(yS=class extends UT{constructor(t){super();X(this,Ln);X(this,Oo);X(this,os);X(this,un);X(this,as);X(this,yt);X(this,Yl);X(this,ls);U(this,ls,!1),U(this,Yl,t.defaultOptions),this.setOptions(t.options),this.observers=[],U(this,as,t.client),U(this,un,P(this,as).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,U(this,Oo,s$(this.options)),this.state=t.state??P(this,Oo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,yt))==null?void 0:t.promise}setOptions(t){this.options={...P(this,Yl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,un).remove(this)}setData(t,n){const r=Rm(this.state.data,t,this.options);return ce(this,Ln,Er).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ce(this,Ln,Er).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=P(this,yt))==null?void 0:r.promise;return(i=P(this,yt))==null||i.cancel(t),n?n.then(Lt).catch(Lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Oo))}isActive(){return this.observers.some(t=>cn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===av||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>_i(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:!MT(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,yt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,yt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,un).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,yt)&&(P(this,ls)?P(this,yt).cancel({revert:!0}):P(this,yt).cancelRetry()),this.scheduleGc()),P(this,un).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,Ln,Er).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,yt))return P(this,yt).continueRetry(),P(this,yt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(U(this,ls,!0),r.signal)})},s=()=>{const f=FT(this.options,n),y=(()=>{const m={client:P(this,as),queryKey:this.queryKey,meta:this.meta};return i(m),m})();return U(this,ls,!1),this.options.persister?this.options.persister(f,y,this):f(y)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,as),state:this.state,fetchFn:s};return i(f),f})();(u=this.options.behavior)==null||u.onFetch(a,this),U(this,os,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&ce(this,Ln,Er).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var h,y,m,x;kf(f)&&f.silent||ce(this,Ln,Er).call(this,{type:"error",error:f}),kf(f)||((y=(h=P(this,un).config).onError)==null||y.call(h,f,this),(x=(m=P(this,un).config).onSettled)==null||x.call(m,this.state.data,f,this)),this.scheduleGc()};return U(this,yt,BT({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,y,m,x;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(g){l(g);return}(y=(h=P(this,un).config).onSuccess)==null||y.call(h,f,this),(x=(m=P(this,un).config).onSettled)==null||x.call(m,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,h)=>{ce(this,Ln,Er).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{ce(this,Ln,Er).call(this,{type:"pause"})},onContinue:()=>{ce(this,Ln,Er).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),P(this,yt).start()}},Oo=new WeakMap,os=new WeakMap,un=new WeakMap,as=new WeakMap,yt=new WeakMap,Yl=new WeakMap,ls=new WeakMap,Ln=new WeakSet,Er=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,...VT(r.data,this.options),fetchMeta:t.meta??null};case"success":return U(this,os,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 i=t.error;return kf(i)&&i.revert&&P(this,os)?{...P(this,os),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),dt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,un).notify({query:this,type:"updated",action:t})})},yS);function VT(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$T(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function s$(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 sr,vS,o$=(vS=class extends lu{constructor(t={}){super();X(this,sr);this.config=t,U(this,sr,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??ov(i,n);let o=this.get(s);return o||(o=new i$({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){P(this,sr).has(t.queryHash)||(P(this,sr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,sr).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,sr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){dt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,sr).get(t)}getAll(){return[...P(this,sr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ex(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ex(t,r)):n}notify(t){dt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){dt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){dt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},sr=new WeakMap,vS),or,St,us,ar,Xr,wS,a$=(wS=class extends UT{constructor(t){super();X(this,ar);X(this,or);X(this,St);X(this,us);this.mutationId=t.mutationId,U(this,St,t.mutationCache),U(this,or,[]),this.state=t.state||l$(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,or).includes(t)||(P(this,or).push(t),this.clearGcTimeout(),P(this,St).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){U(this,or,P(this,or).filter(n=>n!==t)),this.scheduleGc(),P(this,St).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,or).length||(this.state.status==="pending"?this.scheduleGc():P(this,St).remove(this))}continue(){var t;return((t=P(this,us))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,a,l,u,c,d,f,h,y,m,x,g,b,w,S,C,k,_,R;const n=()=>{ce(this,ar,Xr).call(this,{type:"continue"})};U(this,us,BT({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,j)=>{ce(this,ar,Xr).call(this,{type:"failed",failureCount:A,error:j})},onPause:()=>{ce(this,ar,Xr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,St).canRun(this)}));const r=this.state.status==="pending",i=!P(this,us).canStart();try{if(r)n();else{ce(this,ar,Xr).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(s=P(this,St).config).onMutate)==null?void 0:o.call(s,t,this));const j=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));j!==this.state.context&&ce(this,ar,Xr).call(this,{type:"pending",context:j,variables:t,isPaused:i})}const A=await P(this,us).start();return await((c=(u=P(this,St).config).onSuccess)==null?void 0:c.call(u,A,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,A,t,this.state.context)),await((y=(h=P(this,St).config).onSettled)==null?void 0:y.call(h,A,null,this.state.variables,this.state.context,this)),await((x=(m=this.options).onSettled)==null?void 0:x.call(m,A,null,t,this.state.context)),ce(this,ar,Xr).call(this,{type:"success",data:A}),A}catch(A){try{throw await((b=(g=P(this,St).config).onError)==null?void 0:b.call(g,A,t,this.state.context,this)),await((S=(w=this.options).onError)==null?void 0:S.call(w,A,t,this.state.context)),await((k=(C=P(this,St).config).onSettled)==null?void 0:k.call(C,void 0,A,this.state.variables,this.state.context,this)),await((R=(_=this.options).onSettled)==null?void 0:R.call(_,void 0,A,t,this.state.context)),A}finally{ce(this,ar,Xr).call(this,{type:"error",error:A})}}finally{P(this,St).runNext(this)}}},or=new WeakMap,St=new WeakMap,us=new WeakMap,ar=new WeakSet,Xr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),dt.batch(()=>{P(this,or).forEach(r=>{r.onMutationUpdate(t)}),P(this,St).notify({mutation:this,type:"updated",action:t})})},wS);function l$(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ar,Mn,Ql,bS,u$=(bS=class extends lu{constructor(t={}){super();X(this,Ar);X(this,Mn);X(this,Ql);this.config=t,U(this,Ar,new Set),U(this,Mn,new Map),U(this,Ql,0)}build(t,n,r){const i=new a$({mutationCache:this,mutationId:++yu(this,Ql)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){P(this,Ar).add(t);const n=Vu(t);if(typeof n=="string"){const r=P(this,Mn).get(n);r?r.push(t):P(this,Mn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,Ar).delete(t)){const n=Vu(t);if(typeof n=="string"){const r=P(this,Mn).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&P(this,Mn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Vu(t);if(typeof n=="string"){const r=P(this,Mn).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Vu(t);if(typeof n=="string"){const i=(r=P(this,Mn).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){dt.batch(()=>{P(this,Ar).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,Ar).clear(),P(this,Mn).clear()})}getAll(){return Array.from(P(this,Ar))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tx(n,r))}findAll(t={}){return this.getAll().filter(n=>tx(t,n))}notify(t){dt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return dt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Lt))))}},Ar=new WeakMap,Mn=new WeakMap,Ql=new WeakMap,bS);function Vu(e){var t;return(t=e.options.scope)==null?void 0:t.id}function ix(e){return{onFetch:(t,n)=>{var c,d,f,h,y;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const x=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},g=FT(t.options,t.fetchOptions),b=async(w,S,C)=>{if(m)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const _=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return x(I),I})(),R=await g(_),{maxPages:A}=t.options,j=C?JF:QF;return{pages:j(w.pages,R,A),pageParams:j(w.pageParams,S,A)}};if(i&&s.length){const w=i==="backward",S=w?c$:sx,C={pages:s,pageParams:o},k=S(r,C);a=await b(C,k,w)}else{const w=e??s.length;do{const S=l===0?o[0]??r.initialPageParam:sx(r,a);if(l>0&&S==null)break;a=await b(a,S),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var m,x;return(x=(m=t.options).persister)==null?void 0:x.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function sx(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 c$(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 He,li,ui,Io,Lo,ci,Mo,Do,xS,d$=(xS=class{constructor(e={}){X(this,He);X(this,li);X(this,ui);X(this,Io);X(this,Lo);X(this,ci);X(this,Mo);X(this,Do);U(this,He,e.queryCache||new o$),U(this,li,e.mutationCache||new u$),U(this,ui,e.defaultOptions||{}),U(this,Io,new Map),U(this,Lo,new Map),U(this,ci,0)}mount(){yu(this,ci)._++,P(this,ci)===1&&(U(this,Mo,lv.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,He).onFocus())})),U(this,Do,Sd.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,He).onOnline())})))}unmount(){var e,t;yu(this,ci)._--,P(this,ci)===0&&((e=P(this,Mo))==null||e.call(this),U(this,Mo,void 0),(t=P(this,Do))==null||t.call(this),U(this,Do,void 0))}isFetching(e){return P(this,He).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,li).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,He).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,He).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(_i(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,He).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=P(this,He).get(r.queryHash),s=i==null?void 0:i.state.data,o=GF(t,s);if(o!==void 0)return P(this,He).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return dt.batch(()=>P(this,He).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,He).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,He);dt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,He);return dt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=dt.batch(()=>P(this,He).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Lt).catch(Lt)}invalidateQueries(e,t={}){return dt.batch(()=>(P(this,He).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=dt.batch(()=>P(this,He).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Lt)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Lt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,He).build(this,t);return n.isStaleByTime(_i(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Lt).catch(Lt)}fetchInfiniteQuery(e){return e.behavior=ix(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Lt).catch(Lt)}ensureInfiniteQueryData(e){return e.behavior=ix(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Sd.isOnline()?P(this,li).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,He)}getMutationCache(){return P(this,li)}getDefaultOptions(){return P(this,ui)}setDefaultOptions(e){U(this,ui,e)}setQueryDefaults(e,t){P(this,Io).set(Ml(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Io).values()],n={};return t.forEach(r=>{Dl(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,Lo).set(Ml(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Lo).values()],n={};return t.forEach(r=>{Dl(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,ui).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ov(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===av&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,ui).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,He).clear(),P(this,li).clear()}},He=new WeakMap,li=new WeakMap,ui=new WeakMap,Io=new WeakMap,Lo=new WeakMap,ci=new WeakMap,Mo=new WeakMap,Do=new WeakMap,xS),Ot,de,Jl,kt,cs,Fo,di,hi,Xl,$o,zo,ds,hs,fi,Bo,xe,Va,Nm,Om,Im,Lm,Mm,Dm,Fm,HT,SS,h$=(SS=class extends lu{constructor(t,n){super();X(this,xe);X(this,Ot);X(this,de);X(this,Jl);X(this,kt);X(this,cs);X(this,Fo);X(this,di);X(this,hi);X(this,Xl);X(this,$o);X(this,zo);X(this,ds);X(this,hs);X(this,fi);X(this,Bo,new Set);this.options=n,U(this,Ot,t),U(this,hi,null),U(this,di,jm()),this.options.experimental_prefetchInRender||P(this,di).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(P(this,de).addObserver(this),ox(P(this,de),this.options)?ce(this,xe,Va).call(this):this.updateResult(),ce(this,xe,Lm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $m(P(this,de),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $m(P(this,de),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,xe,Mm).call(this),ce(this,xe,Dm).call(this),P(this,de).removeObserver(this)}setOptions(t){const n=this.options,r=P(this,de);if(this.options=P(this,Ot).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof cn(this.options.enabled,P(this,de))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,xe,Fm).call(this),P(this,de).setOptions(this.options),n._defaulted&&!Pm(this.options,n)&&P(this,Ot).getQueryCache().notify({type:"observerOptionsUpdated",query:P(this,de),observer:this});const i=this.hasListeners();i&&ax(P(this,de),r,this.options,n)&&ce(this,xe,Va).call(this),this.updateResult(),i&&(P(this,de)!==r||cn(this.options.enabled,P(this,de))!==cn(n.enabled,P(this,de))||_i(this.options.staleTime,P(this,de))!==_i(n.staleTime,P(this,de)))&&ce(this,xe,Nm).call(this);const s=ce(this,xe,Om).call(this);i&&(P(this,de)!==r||cn(this.options.enabled,P(this,de))!==cn(n.enabled,P(this,de))||s!==P(this,fi))&&ce(this,xe,Im).call(this,s)}getOptimisticResult(t){const n=P(this,Ot).getQueryCache().build(P(this,Ot),t),r=this.createResult(n,t);return p$(this,r)&&(U(this,kt,r),U(this,Fo,this.options),U(this,cs,P(this,de).state)),r}getCurrentResult(){return P(this,kt)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),Reflect.get(r,i))})}trackProp(t){P(this,Bo).add(t)}getCurrentQuery(){return P(this,de)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=P(this,Ot).defaultQueryOptions(t),r=P(this,Ot).getQueryCache().build(P(this,Ot),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ce(this,xe,Va).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),P(this,kt)))}createResult(t,n){var A;const r=P(this,de),i=this.options,s=P(this,kt),o=P(this,cs),a=P(this,Fo),u=t!==r?t.state:P(this,Jl),{state:c}=t;let d={...c},f=!1,h;if(n._optimisticResults){const j=this.hasListeners(),I=!j&&ox(t,n),O=j&&ax(t,r,n,i);(I||O)&&(d={...d,...VT(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:y,errorUpdatedAt:m,status:x}=d;h=d.data;let g=!1;if(n.placeholderData!==void 0&&h===void 0&&x==="pending"){let j;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(j=s.data,g=!0):j=typeof n.placeholderData=="function"?n.placeholderData((A=P(this,zo))==null?void 0:A.state.data,P(this,zo)):n.placeholderData,j!==void 0&&(x="success",h=Rm(s==null?void 0:s.data,j,n),f=!0)}if(n.select&&h!==void 0&&!g)if(s&&h===(o==null?void 0:o.data)&&n.select===P(this,Xl))h=P(this,$o);else try{U(this,Xl,n.select),h=n.select(h),h=Rm(s==null?void 0:s.data,h,n),U(this,$o,h),U(this,hi,null)}catch(j){U(this,hi,j)}P(this,hi)&&(y=P(this,hi),h=P(this,$o),m=Date.now(),x="error");const b=d.fetchStatus==="fetching",w=x==="pending",S=x==="error",C=w&&b,k=h!==void 0,R={status:x,fetchStatus:d.fetchStatus,isPending:w,isSuccess:x==="success",isError:S,isInitialLoading:C,isLoading:C,data:h,dataUpdatedAt:d.dataUpdatedAt,error:y,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!w,isLoadingError:S&&!k,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:S&&k,isStale:uv(t,n),refetch:this.refetch,promise:P(this,di),isEnabled:cn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const j=W=>{R.status==="error"?W.reject(R.error):R.data!==void 0&&W.resolve(R.data)},I=()=>{const W=U(this,di,R.promise=jm());j(W)},O=P(this,di);switch(O.status){case"pending":t.queryHash===r.queryHash&&j(O);break;case"fulfilled":(R.status==="error"||R.data!==O.value)&&I();break;case"rejected":(R.status!=="error"||R.error!==O.reason)&&I();break}}return R}updateResult(){const t=P(this,kt),n=this.createResult(P(this,de),this.options);if(U(this,cs,P(this,de).state),U(this,Fo,this.options),P(this,cs).data!==void 0&&U(this,zo,P(this,de)),Pm(n,t))return;U(this,kt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!P(this,Bo).size)return!0;const o=new Set(s??P(this,Bo));return this.options.throwOnError&&o.add("error"),Object.keys(P(this,kt)).some(a=>{const l=a;return P(this,kt)[l]!==t[l]&&o.has(l)})};ce(this,xe,HT).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,xe,Lm).call(this)}},Ot=new WeakMap,de=new WeakMap,Jl=new WeakMap,kt=new WeakMap,cs=new WeakMap,Fo=new WeakMap,di=new WeakMap,hi=new WeakMap,Xl=new WeakMap,$o=new WeakMap,zo=new WeakMap,ds=new WeakMap,hs=new WeakMap,fi=new WeakMap,Bo=new WeakMap,xe=new WeakSet,Va=function(t){ce(this,xe,Fm).call(this);let n=P(this,de).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Lt)),n},Nm=function(){ce(this,xe,Mm).call(this);const t=_i(this.options.staleTime,P(this,de));if(Ts||P(this,kt).isStale||!_m(t))return;const r=MT(P(this,kt).dataUpdatedAt,t)+1;U(this,ds,setTimeout(()=>{P(this,kt).isStale||this.updateResult()},r))},Om=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(P(this,de)):this.options.refetchInterval)??!1},Im=function(t){ce(this,xe,Dm).call(this),U(this,fi,t),!(Ts||cn(this.options.enabled,P(this,de))===!1||!_m(P(this,fi))||P(this,fi)===0)&&U(this,hs,setInterval(()=>{(this.options.refetchIntervalInBackground||lv.isFocused())&&ce(this,xe,Va).call(this)},P(this,fi)))},Lm=function(){ce(this,xe,Nm).call(this),ce(this,xe,Im).call(this,ce(this,xe,Om).call(this))},Mm=function(){P(this,ds)&&(clearTimeout(P(this,ds)),U(this,ds,void 0))}
77,Dm=function(){P(this,hs)&&(clearInterval(P(this,hs)),U(this,hs,void 0))},Fm=function(){const t=P(this,Ot).getQueryCache().build(P(this,Ot),this.options);if(t===P(this,de))return;const n=P(this,de);U(this,de,t),U(this,Jl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},HT=function(t){dt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(P(this,kt))}),P(this,Ot).getQueryCache().notify({query:P(this,de),type:"observerResultsUpdated"})})},SS);function f$(e,t){return cn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ox(e,t){return f$(e,t)||e.state.data!==void 0&&$m(e,t,t.refetchOnMount)}function $m(e,t,n){if(cn(t.enabled,e)!==!1&&_i(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&uv(e,t)}return!1}function ax(e,t,n,r){return(e!==t||cn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&uv(e,n)}function uv(e,t){return cn(t.enabled,e)!==!1&&e.isStaleByTime(_i(t.staleTime,e))}function p$(e,t){return!Pm(e.getCurrentResult(),t)}var WT=v.createContext(void 0),m$=e=>{const t=v.useContext(WT);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},g$=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(WT.Provider,{value:e,children:t})),qT=v.createContext(!1),y$=()=>v.useContext(qT);qT.Provider;function v$(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var w$=v.createContext(v$()),b$=()=>v.useContext(w$),x$=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},S$=e=>{v.useEffect(()=>{e.clearReset()},[e])},k$=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||XF(n,[e.error,r])),E$=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},C$=(e,t)=>e.isLoading&&e.isFetching&&!t,T$=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,lx=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _$(e,t,n){var d,f,h,y,m;const r=y$(),i=b$(),s=m$(),o=s.defaultQueryOptions(e);(f=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||f.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",E$(o),x$(o,i),S$(i);const a=!s.getQueryCache().get(o.queryHash),[l]=v.useState(()=>new t(s,o)),u=l.getOptimisticResult(o),c=!r&&e.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(x=>{const g=c?l.subscribe(dt.batchCalls(x)):Lt;return l.updateResult(),g},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),v.useEffect(()=>{l.setOptions(o)},[o,l]),T$(o,u))throw lx(o,l,i);if(k$({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw u.error;if((y=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||y.call(h,o,u),o.experimental_prefetchInRender&&!Ts&&C$(u,r)){const x=a?lx(o,l,i):(m=s.getQueryCache().get(o.queryHash))==null?void 0:m.promise;x==null||x.catch(Lt).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?u:l.trackResult(u)}function la(e,t){return _$(e,h$)}function P$(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}const A$=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class cv extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class R$ extends cv{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class ux extends cv{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class cx extends cv{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var zm;(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"})(zm||(zm={}));
77class j${constructor(t,{headers:n={},customFetch:r,region:i=zm.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=A$(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return P$(this,arguments,void 0,function*(n,r={}){var i;let s,o;try{const{headers:a,method:l,body:u,signal:c,timeout:d}=r;let f={},{region:h}=r;h||(h=this.region);const y=new URL(`${this.url}/${n}`);h&&h!=="any"&&(f["x-region"]=h,y.searchParams.set("forceFunctionRegion",h));let m;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",m=u):typeof u=="string"?(f["Content-Type"]="text/plain",m=u):typeof FormData<"u"&&u instanceof FormData?m=u:(f["Content-Type"]="application/json",m=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?m=JSON.stringify(u):m=u;let x=c;d&&(o=new AbortController,s=setTimeout(()=>o.abort(),d),c?(x=o.signal,c.addEventListener("abort",()=>o.abort())):x=o.signal);const g=yield this.fetch(y.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),a),body:m,signal:x}).catch(C=>{throw new R$(C)}),b=g.headers.get("x-relay-error");if(b&&b==="true")throw new ux(g);if(!g.ok)throw new cx(g);let w=((i=g.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),S;return w==="application/json"?S=yield g.json():w==="application/octet-stream"||w==="application/pdf"?S=yield g.blob():w==="text/event-stream"?S=g:w==="multipart/form-data"?S=yield g.formData():S=yield g.text(),{data:S,error:null,response:g}}catch(a){return{data:null,error:a,response:a instanceof cx||a instanceof ux?a.context:void 0}}finally{s&&clearTimeout(s)}})}}var N$=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
77de=e.code}},O$=class{constructor(e){var t,n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(r=e.urlLengthLimit)!==null&&r!==void 0?r:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{let o=null,a=null,l=null,u=s.status,c=s.statusText;if(s.ok){var d,f;if(n.method!=="HEAD"){var h;const x=await s.text();x===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((h=n.headers.get("Accept"))===null||h===void 0)&&h.includes("application/vnd.pgrst.plan+text"))?a=x:a=JSON.parse(x))}const y=(d=n.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),m=(f=s.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");y&&m&&m.length>1&&(l=parseInt(m[1])),n.isMaybeSingle&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,u=406,c="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{const y=await s.text();try{o=JSON.parse(y),Array.isArray(o)&&s.status===404&&(a=[],o=null,u=200,c="OK")}catch{s.status===404&&y===""?(u=204,c="No Content"):o={message:y}}if(o&&n.shouldThrowOnError)throw new N$(o)}return{error:o,data:a,count:l,status:u,statusText:c}});return this.shouldThrowOnError||(i=i.catch(s=>{var o;let a="",l="",u="";const c=s==null?void 0:s.cause;if(c){var d,f,h,y;const g=(d=c==null?void 0:c.message)!==null&&d!==void 0?d:"",b=(f=c==null?void 0:c.code)!==null&&f!==void 0?f:"";a=`${(h=s==null?void 0:s.name)!==null&&h!==void 0?h:"FetchError"}: ${s==null?void 0:s.message}`,a+=`
78
79Caused by: ${(y=c==null?void 0:c.name)!==null&&y!==void 0?y:"Error"}: ${g}`,b&&(a+=` (${b})`),c!=null&&c.stack&&(a+=`
80${c.stack}`)}else{var m;a=(m=s==null?void 0:s.stack)!==null&&m!==void 0?m:""}const x=this.url.toString().length;return(s==null?void 0:s.name)==="AbortError"||(s==null?void 0:s.code)==="ABORT_ERR"?(u="",l="Request was aborted (timeout or manual cancellation)",x>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${x} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((c==null?void 0:c.name)==="HeadersOverflowError"||(c==null?void 0:c.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",l="HTTP headers exceeded server limits (typically 16KB)",x>this.urlLengthLimit&&(l+=`. Your request URL is ${x} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(o=s==null?void 0:s.name)!==null&&o!==void 0?o:"FetchError"}: ${s==null?void 0:s.message}`,details:a,hint:l,code:u},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}returns(){return this}overrideTypes(){return this}},I$=class extends O${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:i=r}={}){const s=i?`${i}.order`:"order",o=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${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 i=typeof r>"u"?"offset":`${r}.offset`,s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(s,`${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}
80explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:s="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"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+${s}; for="${l}"; options=${a};`),s==="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 dx=new RegExp("[,()]");var Ys=class extends I${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"&&dx.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"&&dx.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 i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${s}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},L$=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:i=8e3}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},i=n?"HEAD":"GET";let s=!1;const o=(e??"*").split("").map(u=>/\s/.test(u)&&!s?"":(u==='"'&&(s=!s),u)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new Ys({method:i,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const i="POST",{url:s,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
800){const l=[...new Set(a)].map(u=>`"${u}"`);s.searchParams.set("columns",l.join(","))}}return new Ys({method:i,url:s,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var s;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}`),i||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(u.length>0){const c=[...new Set(u)].map(d=>`"${d}"`);a.searchParams.set("columns",c.join(","))}}return new Ys({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var n;const r="PATCH",{url:i,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new Ys({method:r,url:i,headers:s,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new Ys({method:n,url:r,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function Fl(e){"@babel/helpers - typeof";return Fl=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},Fl(e)}function M$(e,t){if(Fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D$(e){var t=M$(e,"string");return Fl(t)=="symbol"?t:t+""}function F$(e,t,n){return(t=D$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hx(Object(n),!0).forEach(function(r){F$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $$=class KT{constructor(t,{headers:n={},schema:r,fetch:i,timeout:s,urlLengthLimit:o=8e3}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const a=i??globalThis.fetch;s!==void 0&&s>0?this.fetch=(l,u)=>{const c=new AbortController,d=setTimeout(()=>c.abort(),s),f=u==null?void 0:u.signal;if(f){if(f.aborted)return clearTimeout(d),a(l,u);const h=()=>{clearTimeout(d),c.abort()};return f.addEventListener("abort",h,{once:!0}),a(l,Hu(Hu({},u),{},{signal:c.signal})).finally(()=>{clearTimeout(d),f.removeEventListener("abort",h)})}return a(l,Hu(Hu({},u),{},{signal:c.signal})).finally(()=>clearTimeout(d))}:this.fetch=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new L$(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new KT(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,n={},{head:r=!1,get:i=!1,count:s}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;const c=h=>h!==null&&typeof h=="object"&&(!Array.isArray(h)||h.some(c)),d=r&&Object.values(n).some(c);d?(a="POST",u=n):r||i?(a=r?"HEAD":"GET",Object.entries(n).filter(([h,y])=>y!==void 0).map(([h,y])=>[h,Array.isArray(y)?`{${y.join(",")}}`:`${y}
80`]).forEach(([h,y])=>{l.searchParams.append(h,y)})):(a="POST",u=n);const f=new Headers(this.headers);return d?f.set("Prefer",s?`count=${s},return=minimal`:"return=minimal"):s&&f.set("Prefer",`count=${s}`),new Ys({method:a,url:l,headers:f,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}};class z${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 i=r.node,s=parseInt(i.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
81import ws from "ws"
82new 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+=`
83
84Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const B$="2.101.1",U$=`realtime-js/${B$}`,V$="1.0.0",GT="2.0.0",H$=GT,W$=1e4,q$=100,ii={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},YT={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Bm={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class K${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 i=(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,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var i,s;const o=t.topic,a=(i=t.ref)!==null&&i!==void 0?i:"",l=(s=t.join_ref)!==null&&s!==void 0?s:"",u=t.payload.event,c=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(c).length===0?"":JSON.stringify(c);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+u.length+d.length,h=new ArrayBuffer(this.HEADER_LENGTH+f);
84let y=new DataView(h),m=0;y.setUint8(m++,this.KINDS.userBroadcastPush),y.setUint8(m++,l.length),y.setUint8(m++,a.length),y.setUint8(m++,o.length),y.setUint8(m++,u.length),y.setUint8(m++,d.length),y.setUint8(m++,n),Array.from(l,g=>y.setUint8(m++,g.charCodeAt(0))),Array.from(a,g=>y.setUint8(m++,g.charCodeAt(0))),Array.from(o,g=>y.setUint8(m++,g.charCodeAt(0))),Array.from(u,g=>y.setUint8(m++,g.charCodeAt(0))),Array.from(d,g=>y.setUint8(m++,g.charCodeAt(0)));var x=new Uint8Array(h.byteLength+r.byteLength);return x.set(new Uint8Array(h),0),x.set(new Uint8Array(r),h.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),[i,s,o,a,l]=r;return n({join_ref:i,ref:s,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),s=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+i));l=l+i;const c=r.decode(t.slice(l,l+s));l=l+s;const d=r.decode(t.slice(l,l+o));l=l+o;const f=t.slice(l,t.byteLength),h=a===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,y={type:this.BROADCAST_EVENT,event:c,payload:h};return o>0&&(y.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:y}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}var Pe;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Pe||(Pe={}));const fx=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((s,o)=>(s[o]=G$(o,e,t,i),s),{}):{}},G$=(e,t,n,r)=>{const i=t.find(a=>a.name===e),s=i==null?void 0:i.type,o=n[e];return s&&!r.includes(s)?QT(s,o):Um(o)},QT=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return X$(t,n)}switch(e){case Pe.bool:return Y$(t);case Pe.float4:case Pe.float8:case Pe.int2:case Pe.int4:case Pe.int8:case Pe.numeric:case Pe.oid:return Q$(t);case Pe.json:case Pe.jsonb:return J$(t);case Pe.timestamp:return Z$(t);case Pe.abstime:case Pe.date:case Pe.daterange:case Pe.int4range:case Pe.int8range:case Pe.money:case Pe.reltime:case Pe.text:case Pe.time:case Pe.timestamptz:case Pe.timetz:case Pe.tsrange:case Pe.tstzrange:return Um(t);default:return Um(t)}},Um=e=>e,Y$=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},Q$=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},J$=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},X$=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const o=e.slice(1,n);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(a=>QT(t,a))}return e},Z$=e=>typeof e=="string"?e.replace(" ","T"):e,JT=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 ll=e=>typeof e=="function"?e:function(){return e},e4=typeof self<"u"?self:null,Qs=typeof window<"u"?window:null,ir=e4||Qs||globalThis,t4="2.0.0",n4=1e4,r4=1e3,ur={connecting:0,open:1,closing:2,closed:3},jt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Tr={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Vm={longpoll:"longpoll",websocket:"websocket"},i4={complete:4},Hm="base64url.bearer.phx.",Wu=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 84
84oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},XT=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))}},s4=class{constructor(e,t,n){this.state=jt.closed,this.topic=e,this.params=ll(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Wu(this,Tr.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new XT(()=>{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=jt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=jt.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=jt.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=jt.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 Wu(this,Tr.leave,ll({}),this.timeout).send(),this.state=jt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Tr.reply,(r,i)=>{this.trigger(this.replyEventName(i),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=jt.closed,this.bindings=[]}onClose(e){this.on(Tr.close,e)}onError(e){return this.on(Tr.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 Wu(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=jt.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Tr.close,"leave")},n=new Wu(this,Tr.leave,ll({}),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=jt.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let s=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,n));for(let o=0;o<s.length;o++)s[o].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===jt.closed}isErrored(){return this.state===jt.errored}isJoined(){return this.state===jt.joined}isJoining(){return this.state===jt.joining}isLeaving(){return this.state===jt.leaving}},kd=class{static request(e,t,n,r,i,s,o){if(ir.XDomainRequest){let a=new ir.XDomainRequest;return this.xdomainRequest(a,e,t,r,i,s,o)}else if(ir.XMLHttpRequest){let a=new ir.XMLHttpRequest;return this.xhrRequest(a,e,t,n,r,i,s,o)}else{if(ir.fetch&&ir.AbortController)return this.fetchRequest(e,t,n,r,i,s,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,i,s,o){let a={method:e,headers:n,body:r},l=null;return i&&(l=new AbortController,setTimeout(()=>l.abort(),i),a.signal=l.signal),ir.fetch(t,a).then(u=>u.text()).then(u=>this.parseJSON(u)).then(u=>o&&o(u)).catch(u=>{u.name==="AbortError"&&s?s():o&&o(null)}),l}static xdomainRequest(e,t,n,r,i,s,o){return e.timeout=i,e.open(t,n),e.onload=()=>{let a=this.parseJSON(e.responseText);o&&o(a)},s&&(e.ontimeout=s),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,s,o,a){e.open(t,n,!0),e.timeout=s;for(let[l,u]of Object.entries(r))e.setRequestHeader(l,u);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===i4.complete&&a){let l=this.parseJSON(e.responseText);a(l)}},o&&(e.ontimeout=o),e.send(i),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 i=t?`${t}[${r}]`:r,s=e[r];typeof s=="object"?n.push(this.serialize(s,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(s))}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)}`}},o4=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let i=0;i<r;i++)t+=String.fromCharCode(n[i]);return btoa(t)},Ms=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Hm)&&(this.authToken=atob(t[1].slice(Hm.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=ur.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Vm.websocket),"$1/"+Vm.longpoll)}endpointURL(){return kd.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=ur.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===ur.open||this.readyState===ur.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:i}=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:i.forEach(s=>{setTimeout(()=>this.onmessage({data:s}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=ur.open,this.onopen({}),this.poll();break;
84case 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=o4(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(`
85`),()=>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 i of this.reqs)i.abort();this.readyState=ur.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,i){let s,o=()=>{this.reqs.delete(s),r()};s=kd.request(e,this.endpointURL(),t,n,this.timeout,o,a=>{this.reqs.delete(s),this.isActive()&&i(a)}),this.reqs.add(s)}},a4=class Ha{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,i=>{let{onJoin:s,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Ha.syncState(this.state,i,s,o),this.pendingDiffs.forEach(l=>{this.state=Ha.syncDiff(this.state,l,s,o)}),this.pendingDiffs=[],a()}),this.channel.on(r.diff,i=>{let{onJoin:s,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Ha.syncDiff(this.state,i,s,o),a())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return Ha.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,i){let s=this.clone(t),o={},a={};return this.map(s,(l,u)=>{n[l]||(a[l]=u)}),this.map(n,(l,u)=>{let c=s[l];if(c){let d=u.metas.map(m=>m.phx_ref),f=c.metas.map(m=>m.phx_ref),h=u.metas.filter(m=>f.indexOf(m.phx_ref)<0),y=c.metas.filter(m=>d.indexOf(m.phx_ref)<0);h.length>0&&(o[l]=u,o[l].metas=h),y.length>0&&(a[l]=this.clone(c),a[l].metas=y)}else o[l]=u}),this.syncDiff(s,{joins:o,leaves:a},r,i)}static syncDiff(t,n,r,i){let{joins:s,leaves:o}=this.clone(n);return r||(r=function(){}),i||(i=function(){}),this.map(s,(a,l)=>{let u=t[a];if(t[a]=this.clone(l),u){let c=t[a].metas.map(f=>f.phx_ref),d=u.metas.filter(f=>c.indexOf(f.phx_ref)<0);t[a].metas.unshift(...d)}r(a,u,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;let c=l.metas.map(d=>d.phx_ref);u.metas=u.metas.filter(d=>c.indexOf(d.phx_ref)<0),i(a,u,l),u.metas.length===0&&delete t[a]}),t}static list(t,n){return n||(n=function(r,i){return i}),this.map(t,(r,i)=>n(r,i))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},qu={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,i,s,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:s,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:s}=e,o=this.META_LENGTH+t.length+n.length+i.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(a),u=0;l.setUint8(u++,this.KINDS.push),l.setUint8(u++,t.length),l.setUint8(u++,n.length),l.setUint8(u++,i.length),l.setUint8(u++,r.length),Array.from(t,d=>l.setUint8(u++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(u++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(u++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(u++,d.charCodeAt(0)));var c=new Uint8Array(a.byteLength+s.byteLength);return c.set(new Uint8Array(a),0),c.set(new Uint8Array(s),a.byteLength),c.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 85
85,decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=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+i));o=o+i;let u=n.decode(e.slice(o,o+s));o=o+s;let c=e.slice(o,e.byteLength);return{join_ref:a,ref:null,topic:l,event:u,payload:c}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=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 u=n.decode(e.slice(a,a+i));a=a+i;let c=n.decode(e.slice(a,a+s));a=a+s;let d=n.decode(e.slice(a,a+o));a=a+o;let f=e.slice(a,e.byteLength),h={status:d,response:f};return{join_ref:l,ref:u,topic:c,event:Tr.reply,payload:h}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=this.HEADER_LENGTH+2,o=n.decode(e.slice(s,s+r));s=s+r;let a=n.decode(e.slice(s,s+i));s=s+i;let l=e.slice(s,e.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},l4=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||n4,this.transport=t.transport||ir.WebSocket||Ms,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||ir&&ir.sessionStorage,this.establishedConnections=0,this.defaultEncoder=qu.encode.bind(qu),this.defaultDecoder=qu.decode.bind(qu),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!==Ms?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;Qs&&Qs.addEventListener&&(Qs.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),n=this.connectClock)}),Qs.addEventListener("pageshow",r=>{n===this.connectClock&&(n=null,this.connect())}),Qs.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,i,s)=>{console.log(`${r}: ${i}`,s)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=ll(t.params||{}),this.endPoint=`${e}/${Vm.websocket}`,this.vsn=t.vsn||t4,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new XT(()=>{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 Ms}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=kd.appendParams(kd.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=ll(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Ms?this.connectWithFallback(Ms,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(i=>{i.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case Ms:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Hm}${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,i,s,o=this.transportName(e),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([i,s]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),s=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(),r4,"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===ur.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()}
85triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(Tr.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case ur.connecting:return"connecting";case ur.open:return"open";case ur.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 s4(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:i,join_ref:s}=e;this.log("push",`${t} ${n} (${s}, ${i})`,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:i,ref:s,join_ref:o}=t;if(s&&s===this.pendingHeartbeatRef){const a=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(i.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",`${i.status||""} ${n} ${r} ${s&&"("+s+")"||""}`.trim(),i);for(let a=0;a<this.channels.length;a++){const l=this.channels[a];l.isMember(n,r,i,o)&&l.trigger(r,i,s,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(i){this.log("error",`error in ${e} callback`,i)}})}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 ul{constructor(t,n){const r=c4(n);this.presence=new a4(t.getChannel(),r),this.presence.onJoin((i,s,o)=>{const a=ul.onJoinPayload(i,s,o);t.getChannel().trigger("presence",a)}),this.presence.onLeave((i,s,o)=>{const a=ul.onLeavePayload(i,s,o);t.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return ul.transformState(this.presence.state)}static transformState(t){return t=u4(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return n[r]=Pc(i),n},{})}static onJoinPayload(t,n,r){const i=px(n),s=Pc(r);return{event:"join",key:t,currentPresences:i,newPresences:s}}static onLeavePayload(t,n,r){const i=px(n),s=Pc(r);return{event:"leave",key:t,currentPresences:i,leftPresences:s}}}function Pc(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function u4(e){return JSON.parse(JSON.stringify(e))}function c4(e){return(e==null?void 0:e.events)&&{events:e.events}}function px(e){return e!=null&&e.metas?Pc(e):[]}var mx;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(mx||(mx={}));class d4{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new ul(this.channel.channelAdapter,n)}}class h4{constructor(t,n,r){const i=f4(r);this.channel=t.getSocket().channel(n,i),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 i;try{i=this.channel.push(t,n,r)}catch{throw`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`}if(this.channel.pushBuffer.length>q$){const s=this.channel.pushBuffer.shift();s.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${s.event}`,s.payload())}return i}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===ii.joined}isJoined(){return this.state===ii.joined}isJoining(){return this.state===ii.joining}isClosed(){return this.state===ii.closed}isLeaving(){return this.state===ii.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function f4(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var gx;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(gx||(gx={}));var mo;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(mo||(mo={}));var _r;
85(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(_r||(_r={}));class cl{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 i,s;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 h4(this.socket.socketAdapter,t,this.params),this.presence=new d4(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=JT(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,i,s;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(h=>h.filter))!==null&&i!==void 0?i:[],c=!!this.bindings[mo.PRESENCE]&&this.bindings[mo.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,d={},f={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(h=>{t==null||t(_r.CHANNEL_ERROR,h)}),this._onClose(()=>t==null?void 0:t(_r.CLOSED)),this.updateJoinPayload(Object.assign({config:f},d)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:h})=>{if(this.socket._isManualToken()||this.socket.setAuth(),h===void 0){t==null||t(_r.SUBSCRIBED);return}this._updatePostgresBindings(h,t)}).receive("error",h=>{this.state=ii.errored,t==null||t(_r.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(_r.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const i=this.bindings.postgres_changes,s=(r=i==null?void 0:i.length)!==null&&r!==void 0?r:0,o=[];for(let a=0;a<s;a++){const l=i[a],{filter:{event:u,schema:c,table:d,filter:f}}=l,h=t&&t[a];if(h&&h.event===u&&cl.isFilterValueEqual(h.schema,c)&&cl.isFilterValueEqual(h.table,d)&&cl.isFilterValueEqual(h.filter,f))o.push(Object.assign(Object.assign({},l),{id:h.id}));else{this.unsubscribe(),this.state=ii.errored,n==null||n(_r.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=ii.errored&&n&&n(_r.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 i=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),s=t===mo.PRESENCE||t===mo.POSTGRES_CHANGES;if(i&&s)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 i;if(n==null)return Promise.reject("Payload is required for httpSend()");const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
85try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,i;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:s,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:s,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,a,l;const u=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)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("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 i=new AbortController,s=setTimeout(()=>i.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),o}_on(t,n,r){const i=t.toLocaleLowerCase(),s=this.channelAdapter.on(t,r),o={type:i,filter:n,callback:r,ref:s};return this.bindings[i]?this.bindings[i].push(o):this.bindings[i]=[o],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var i,s,o,a,l,u,c;const d=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(d,r))return!1;const f=(i=this.bindings[d])===null||i===void 0?void 0:i.find(h=>h.ref===t.ref);if(!f)return!0;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in f){const h=f.id,y=(s=f.filter)===null||s===void 0?void 0:s.event;return h&&((o=n.ids)===null||o===void 0?void 0:o.includes(h))&&(y==="*"||(y==null?void 0:y.toLocaleLowerCase())===((a=n.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const h=(u=(l=f==null?void 0:f.filter)===null||l===void 0?void 0:l.event)===null||u===void 0?void 0:u.toLocaleLowerCase();return h==="*"||h===((c=n==null?void 0:n.event)===null||c===void 0?void 0:c.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===d})}_notThisChannelEvent(t,n){const{close:r,error:i,leave:s,join:o}=YT;return n&&[r,i,s,o].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const i=n.data,{schema:s,table:o,commit_timestamp:a,type:l,errors:u}=i;return Object.assign(Object.assign({},{schema:s,table:o,commit_timestamp:a,eventType:l,new:{},old:{},errors:u}),this._getPayloadRecords(i))}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=fx(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=fx(t.columns,t.old_record)),n}}class p4{constructor(t,n){this.socket=new l4(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,i=1e4){return new Promise(s=>{setTimeout(()=>s("timeout"),i),this.socket.disconnect(()=>{t(),s("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()==Bm.connecting}isDisconnecting(){return this.socket.connectionState()==Bm.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const m4={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},g4=[1e3,2e3,5e3,1e4],y4=1e4,v4=`
86  addEventListener("message", (e) => {
87    if (e.data.event === "start") {
88      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
89    }
90  });`;class w4{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={}
90,this.ref=0,this.serializer=new K$,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._resolveFetch=s=>s?(...o)=>s(...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 i=this._initializeOptions(n);this.socketAdapter=new p4(t,i),this.httpEndpoint=JT(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}
91
92To use Realtime in Node.js, you need to provide a WebSocket implementation:
93
94Option 1: Use Node.js 22+ which has native WebSocket support
95Option 2: Install and provide the "ws" package:
96
97  npm install ws
98
99  import ws from "ws"
100  const client = new RealtimeClient(url, {
101    ...options,
102    transport: ws
103  })`):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 i=await r.unsubscribe();return r.teardown(),i}),n=await Promise.all(t);return this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||Bm.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new cl(`realtime:${t}`,n,this);return this.channels.push(s),s}}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(i){this.log("error","Error fetching access token from callback",i),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(i=>{const s={access_token:n,version:U$};n&&i.updateJoinPayload(s),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(YT.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([v4],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,i,s,o,a,l,u,c;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={};
103d.timeout=(i=t==null?void 0:t.timeout)!==null&&i!==void 0?i:W$,d.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:m4.HEARTBEAT_INTERVAL,d.transport=(o=t==null?void 0:t.transport)!==null&&o!==void 0?o:z$.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:m=>g4[m-1]||y4;let f,h;const y=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:H$;switch(y){case V$:f=(m,x)=>x(JSON.stringify(m)),h=(m,x)=>x(JSON.parse(m));break;case GT:f=this.serializer.encode.bind(this.serializer),h=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${d.vsn}`)}if(d.vsn=y,d.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:f,d.decode=(c=t==null?void 0:t.decode)!==null&&c!==void 0?c:h,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 $l=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 b4(e,t,n){const r=new URL(t,e);if(n)for(const[i,s]of Object.entries(n))s!==void 0&&r.searchParams.set(i,s);return r.toString()}async function x4(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 S4(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:s,headers:o}){const a=b4(e.baseUrl,r,i),l=await x4(e.auth),u=await t(a,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...l,...o},body:s?JSON.stringify(s):void 0}),c=await u.text(),d=(u.headers.get("content-type")||"").includes("application/json"),f=d&&c?JSON.parse(c):c;if(!u.ok){const h=d?f:void 0,y=h==null?void 0:h.error;throw new $l((y==null?void 0:y.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:y==null?void 0:y.type,icebergCode:y==null?void 0:y.code,details:h})}return{status:u.status,headers:u.headers,data:f}}}}function Ku(e){return e.join("�")}var k4=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Ku(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/${Ku(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ku(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ku(e.namespace)}`}),!0}catch(t){if(t instanceof $l&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof $l&&n.status===409)return;throw n}}};function Ds(e){return e.join("�")}var E4=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/${Ds(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/${Ds(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/${Ds(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/${Ds(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/${Ds(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/${Ds(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof $l&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof $l&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},C4=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=S4({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new k4(this.client,t),this.tableOps=new E4(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)}
103async 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)}},ch=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function dh(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Wm=class extends ch{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},ZT=class extends ch{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const T4=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),_4=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)},qm=e=>{if(Array.isArray(e))return e.map(n=>qm(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=qm(r)}),t},P4=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function zl(e){"@babel/helpers - typeof";return zl=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},zl(e)}function A4(e,t){if(zl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R4(e){var t=A4(e,"string");return zl(t)=="symbol"?t:t+""}function j4(e,t,n){return(t=R4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yx(Object(n),!0).forEach(function(r){j4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const vx=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)},N4=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&typeof e.json=="function"){const i=e;let s=parseInt(i.status,10);Number.isFinite(s)||(s=500),i.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||s+"";t(new Wm(vx(o),s,a,r))}).catch(()=>{const o=s+"";t(new Wm(i.statusText||`HTTP ${s} error`,s,o,r))})}else t(new ZT(vx(e),e,r))},O4=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?J(J({},i),n):(_4(r)?(i.headers=J({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,t!=null&&t.duplex&&(i.duplex=t.duplex),J(J({},i),n))};async function Pa(e,t,n,r,i,s,o){return new Promise((a,l)=>{e(n,O4(t,r,i,s)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(o==="vectors"){const c=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!c||!c.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>N4(u,l,r,o))})}function e_(e="storage"){return{get:async(t,n,r,i)=>Pa(t,"GET",n,r,i,void 0,e),post:async(t,n,r,i,s)=>Pa(t,"POST",n,i,s,r,e),put:async(t,n,r,i,s)=>Pa(t,"PUT",n,i,s,r,e),head:async(t,n,r,i)=>Pa(t,"HEAD",n,J(J({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,s)=>Pa(t,"DELETE",n,i,s,r,e)}}const I4=e_("storage"),{get:Bl,post:In,put:Km,head:L4,remove:dv}=I4,Qt=e_("vectors");var ua=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=T4(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=J(J({},this.headers),{},{[e]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(dh(n))return{data:null,error:n};throw n}}},M4=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(dh(t))return{data:null,error:t};throw t}}};let t_;t_=Symbol.toStringTag;var D4=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[t_]="BlobDownloadBuilder",this.promise=null}asStream(){return new M4(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(dh(t))return{data:null,error:t};throw t}}};const F4={limit:100,offset:0,sortBy:{column:"name",order:"asc"}}
103,wx={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var $4=class extends ua{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let s;const o=J(J({},wx),r);let a=J(J({},i.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),l&&s.append("metadata",i.encodeMetadata(l)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",o.cacheControl),l&&!s.has("metadata")&&s.append("metadata",i.encodeMetadata(l))):(s=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=i.toBase64(i.encodeMetadata(l))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(a=J(J({},a),r.headers));const u=i._removeEmptyFolders(t),c=i._getFinalPath(u),d=await(e=="PUT"?Km:In)(i.fetch,`${i.url}/object/${c}`,s,J({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:u,id:d.Id,fullPath:d.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;const s=i._removeEmptyFolders(e),o=i._getFinalPath(s),a=new URL(i.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),i.handleOperation(async()=>{let l;const u=J(J({},wx),r),c=J(J({},i.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",u.cacheControl)):(l=n,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType),{path:s,fullPath:(await Km(i.fetch,a.toString(),l,{headers:c})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const i=J({},n.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const s=await In(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(n.url+s.url),a=o.searchParams.get("token");if(!a)throw new ch("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 In(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
103stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await In(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 i=r._getFinalPath(e);const s=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await In(r.fetch,`${r.url}/object/sign/${i}`,J({expiresIn:t},s?{transform:n.transform}:{}),{headers:r.headers});const a=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"",l=s&&o.signedURL.includes("/object/sign/")?o.signedURL.replace("/object/sign/","/render/image/sign/"):o.signedURL;return{signedUrl:encodeURI(`${r.url}${l}${a}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const i=await In(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i.map(o=>J(J({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${s}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=i?`?${i}`:"",o=this._getFinalPath(e),a=()=>Bl(this.fetch,`${this.url}/${r}/${o}${s}`,{headers:this.headers,noResolveJson:!0},n);return new D4(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>qm(await Bl(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await L4(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(dh(i)){var r;const s=i instanceof Wm?i.status:i instanceof ZT?(r=i.originalError)===null||r===void 0?void 0:r.status:void 0;if(s!==void 0&&[400,404].includes(s))return{data:!1,error:i}}throw i}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],i=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&r.push(i);const s=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&r.push(o);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await dv(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 i=J(J(J({},F4),t),{},{prefix:e||""});return await In(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=J({},e);return await In(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const z4="2.101.1",uu={"X-Client-Info":`storage-js/${z4}`};var B4=class extends ua{constructor(e,t={},n,r){const i=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const s=i.href.replace(/\/$/,""),o=J(J({},uu),t);super(s,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Bl(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Bl(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await In(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 Km(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 In(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await dv(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():""}},U4=class extends ua{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=J(J({},uu),t);super(r,i,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await In(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(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Bl(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await dv(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!P4(e))throw new ch("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 C4({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
103),r=this.shouldThrowOnError;return new Proxy(n,{get(i,s){const o=i[s];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(i,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},V4=class extends ua{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=J(J({},uu),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Qt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Qt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},H4=class extends ua{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=J(J({},uu),{},{"Content-Type":"application/json"},t);super(r,i,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 Qt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Qt.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 Qt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Qt.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 Qt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},W4=class extends ua{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=J(J({},uu),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},q4=class extends W4{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new K4(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)}},K4=class extends V4{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,J(J({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,J(J({},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 G4(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},G4=class extends H4{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},Y4=class extends B4{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new $4(this.url,this.headers,e,this.fetch)}get vectors(){return new q4(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new U4(this.url+"/iceberg",this.headers,this.fetch)}};function hh(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}const n_="2.101.1",Js=30*1e3,Gm=3,Ef=Gm*Js,Q4="http://localhost:9999",J4="supabase.auth.token",X4={"X-Client-Info":`gotrue-js/${n_}`},Ym="X-Supabase-Api-Version",r_={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Z4=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,ez=10*60*1e3;
103class Ul extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function H(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class tz extends Ul{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function nz(e){return H(e)&&e.name==="AuthApiError"}class Yi extends Ul{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class $r extends Ul{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class Kt extends $r{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Cf(e){return H(e)&&e.name==="AuthSessionMissingError"}class Fs extends $r{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Gu extends $r{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Yu extends $r{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function rz(e){return H(e)&&e.name==="AuthImplicitGrantRedirectError"}class bx extends $r{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class iz extends $r{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 Qm extends $r{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Tf(e){return H(e)&&e.name==="AuthRetryableFetchError"}class xx extends $r{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Jm extends $r{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ed="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Sx=` 	
104\r=`.split(""),sz=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Sx.length;t+=1)e[Sx[t].charCodeAt(0)]=-2;for(let t=0;t<Ed.length;t+=1)e[Ed[t].charCodeAt(0)]=t;return e})();function kx(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(Ed[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(Ed[r]),t.queuedBits-=6}}function i_(e,t,n){const r=sz[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 Ex(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{lz(o,r,n)};for(let o=0;o<e.length;o+=1)i_(e.charCodeAt(o),i,s);return t.join("")}function oz(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 az(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}
104oz(r,t)}}function lz(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 So(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)i_(e.charCodeAt(i),n,r);return new Uint8Array(t)}function uz(e){const t=[];return az(e,n=>t.push(n)),new Uint8Array(t)}function rs(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>kx(i,n,r)),kx(null,n,r),t.join("")}function cz(e){return Math.round(Date.now()/1e3)+e}function dz(){return Symbol("auth-callback")}const ut=()=>typeof window<"u"&&typeof document<"u",Bi={tested:!1,writable:!1},s_=()=>{if(!ut())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Bi.tested)return Bi.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Bi.tested=!0,Bi.writable=!0}catch{Bi.tested=!0,Bi.writable=!1}return Bi.writable};function hz(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,s)=>{t[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const o_=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),fz=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Xs=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Ui=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},lt=async(e,t)=>{await e.removeItem(t)};class fh{constructor(){this.promise=new fh.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}fh.promiseConstructor=Promise;function Qu(e){const t=e.split(".");if(t.length!==3)throw new Jm("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!Z4.test(t[r]))throw new Jm("JWT not in base64url format");return{header:JSON.parse(Ex(t[0])),payload:JSON.parse(Ex(t[1])),signature:So(t[2]),raw:{header:t[0],payload:t[1]}}}async function pz(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function mz(e,t){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await e(s);if(!t(s,null,o)){r(o);return}}catch(o){if(!t(s,o)){i(o);return}}})()})}function gz(e){return("0"+e.toString(16)).substr(-2)}function yz(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,gz).join("")}async function vz(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function wz(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 vz(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function $s(e,t,n=!1){const r=yz();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await Xs(e,`${t}-code-verifier`,i);const s=await wz(r);return[s,r===s?"plain":"s256"]}const bz=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function xz(e){const t=e.headers.get(Ym);if(!t||!t.match(bz))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Sz(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 kz(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 Ez=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function zs(e){if(!Ez.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function _f(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;
104if(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 Cz(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}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,i)}})}function Cx(e){return JSON.parse(JSON.stringify(e))}const Ki=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Tz=[502,503,504];async function Tx(e){var t;if(!fz(e))throw new Qm(Ki(e),0);if(Tz.includes(e.status))throw new Qm(Ki(e),e.status);let n;try{n=await e.json()}catch(s){throw new Yi(Ki(s),s)}let r;const i=xz(e);if(i&&i.getTime()>=r_["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 xx(Ki(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Kt}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((s,o)=>s&&typeof o=="string",!0))throw new xx(Ki(n),e.status,n.weak_password.reasons);throw new tz(Ki(n),e.status||500,r)}const _z=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function G(e,t,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[Ym]||(s[Ym]=r_["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const o=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await Pz(e,t,n+a,{headers:s,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 Pz(e,t,n,r,i,s){const o=_z(t,r,i,s);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new Qm(Ki(l),0)}if(a.ok||await Tx(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Tx(l)}}function jn(e){var t;let n=null;jz(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=cz(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function _x(e){const t=jn(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 si(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function Az(e){return{data:e,error:null}}function Rz(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=e,o=hh(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function Px(e){return e}function jz(e){return e.access_token&&e.refresh_token&&e.expires_in}const Pf=["global","local","others"];class Nz{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=o_(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)}}async signOut(t,n=Pf[0]){if(Pf.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Pf.join(", ")}`);try{return await G(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(H(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await G(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:si})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=hh(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await G(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:Rz,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(H(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await G(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:si})}catch(n){if(H(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,s,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await G(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:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Px});if(c.error)throw c.error;const d=await c.json(),f=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>
1040&&(h.forEach(y=>{const m=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(y.split(";")[1].split("=")[1]);u[`${x}Page`]=m}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(H(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){zs(t);try{return await G(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:si})}catch(n){if(H(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){zs(t);try{return await G(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:si})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){zs(t);try{return await G(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:si})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){zs(t.userId);try{const{data:n,error:r}=await G(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(H(n))return{data:null,error:n};throw n}}async _deleteFactor(t){zs(t.userId),zs(t.id);try{return{data:await G(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(H(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,i,s,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await G(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:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Px});if(c.error)throw c.error;const d=await c.json(),f=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(y=>{const m=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(y.split(";")[1].split("=")[1]);u[`${x}Page`]=m}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(H(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await G(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await G(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await G(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(H(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await G(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(H(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await G(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await G(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var i;return{data:{providers:(i=r==null?void 0:r.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(n){if(H(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await G(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await G(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await G(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(H(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await G(this.fetch,"DELET
104E",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(H(n))return{data:null,error:n};throw n}}}function Ax(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Zn={debug:!!(globalThis&&s_()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class a_ extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class Rx extends a_{}async function Oz(e,t,n){Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let i;t>0&&(i=setTimeout(()=>{r.abort(),Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){clearTimeout(i),Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Rx(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Zn.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(i),await n()}})}catch(s){if(t>0&&clearTimeout(i),(s==null?void 0:s.name)==="AbortError"&&t>0){if(r.signal.aborted)return Zn.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){Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await n()}finally{Zn.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 Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new Rx(`Lock "${e}" was released because another request stole it`)}throw s}}function Iz(){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 l_(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function Lz(e){return parseInt(e,16)}function Mz(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function Dz(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:s=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:c,uri:d,version:f}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
105`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=l_(e.address),y=c?`${c}://${r}`:r,m=e.statement?`${e.statement}
106`:"",x=`${y} wants you to sign in with your Ethereum account:
107${h}
108
109${m}`;let g=`URI: ${d}
110Version: ${f}
111Chain ID: ${n}${o?`
112Nonce: ${o}`:""}
113Issued At: ${s.toISOString()}`;if(i&&(g+=`
114Expiration Time: ${i.toISOString()}`),a&&(g+=`
115Not Before: ${a.toISOString()}`),l&&(g+=`
116Request ID: ${l}`),u){let b=`
117Resources:`;
117for(const w of u){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}`);b+=`
118- ${w}`}g+=b}return`${x}
119${g}`}class Je extends Error{constructor({message:t,code:n,cause:r,name:i}){var s;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=i??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}}class Cd extends Je{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function Fz({error:e,options:t}){var n,r,i;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Je({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Je({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=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Je({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Je({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 Je({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Je({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Je({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Je({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(u_(o)){if(s.rp.id!==o)return new Je({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Je({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Je({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 Je({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 Je({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function $z({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 Je({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Je({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(u_(r)){if(n.rpId!==r)return new Je({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Je({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Je({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ER
119ROR",cause:e})}return new Je({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class zz{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 Bz=new zz;function Uz(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,i=hh(e,["challenge","user","excludeCredentials"]),s=So(t).buffer,o=Object.assign(Object.assign({},n),{id:So(n.id).buffer}),a=Object.assign(Object.assign({},i),{challenge:s,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:So(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function Vz(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=hh(e,["challenge","allowCredentials"]),i=So(t).buffer,s=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];s.allowCredentials[o]=Object.assign(Object.assign({},a),{id:So(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return s}function Hz(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:rs(new Uint8Array(e.response.attestationObject)),clientDataJSON:rs(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Wz(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:rs(new Uint8Array(i.authenticatorData)),clientDataJSON:rs(new Uint8Array(i.clientDataJSON)),signature:rs(new Uint8Array(i.signature)),userHandle:i.userHandle?rs(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function u_(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function jx(){var e,t;return!!(ut()&&"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 qz(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Cd("Browser returned unexpected credential type",t)}:{data:null,error:new Cd("Empty credential response",t)}}catch(t){return{data:null,error:Fz({error:t,options:e})}}}async function Kz(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Cd("Browser returned unexpected credential type",t)}:{data:null,error:new Cd("Empty credential response",t)}}catch(t){return{data:null,error:$z({error:t,options:e})}}}const Gz={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},Yz={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Td(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const s in i){const o=i[s];if(o!==void 0)if(Array.isArray(o))r[s]=o;else if(n(o))r[s]=o;else if(t(o)){const a=r[s];t(a)?r[s]=Td(a,o):r[s]=Td(o)}else r[s]=o}return r}function Qz(e,t){return Td(Gz,e,t||{})}function Jz(e,t){return Td(Yz,e,t||{})}class Xz{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:i},s){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const u=i??Bz.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:c}=a.webauthn.credential_options.publicKey;if(!c.name){const d=r;if(d)c.name=`${c.id}:${d}`;else{const h=(await this.client.getUser()).data.user,y=((o=h==null?void 0:h.user_metadata)===null||o===void 0?void 0:o.name)||(h==null?void 0:h.email)||(h==null?void 0:h.id)||"User";c.name=`${c.id}:${y}`}}c.displayName||(c.displayName=c.name)}switch(a.webauthn.type){case"create":{const c=Qz(a.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:d,error:f}=await qz({publicKey:c,signal:u});return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}case"request":{const c=Jz(a.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:d,error:f}=await Kz(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:c,signal:u}));return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}}}catch(a){return H(a)?{data:null,error:a}:{data:null,error:new Yi("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:i}={}},s){if(!n)return{data:null,error:new Ul("rpId is required for WebAuthn authentication")};try{if(!jx())return{data:null,error:new Yi("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:s});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 H(o)?{data:null,error:o}:{data:null,error:new Yi("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:i}={}},s){if(!n)return{data:null,error:new Ul("rpId is required for WebAuthn registration")};try{if(!jx())return{data:null,error:new Yi("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(c=>{var d;return(d=c.data)===null||d===void 0?void 0:d.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(c=>c?this.client.mfa.unenroll({factorId:c==null?void 0:c.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:s});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(o){return H(o)?{data:null,error:o}:{data:null,error:new Yi("Unexpected error in register",o)}}}}
119Iz();const Zz={url:Q4,storageKey:J4,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:X4,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function Nx(e,t,n){return await n()}const Bs={};class Vl{get jwks(){var t,n;return(n=(t=Bs[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Bs[this.storageKey]=Object.assign(Object.assign({},Bs[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Bs[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Bs[this.storageKey]=Object.assign(Object.assign({},Bs[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const s=Object.assign(Object.assign({},Zz),t);if(this.storageKey=s.storageKey,this.instanceID=(n=Vl.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Vl.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&ut()){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=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new Nz({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=o_(s.fetch),this.lock=s.lock||Nx,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,this.lockAcquireTimeout=s.lockAcquireTimeout,s.lock?this.lock=s.lock:this.persistSession&&ut()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=Oz:this.lock=Nx,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 Xz(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:s_()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Ax(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Ax(this.memoryStorage)),ut()&&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)}(i=this.broadcastChannel)===null||i===void 0||i.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)}})}s.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} (${n_}) ${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(ut()&&(n=hz(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),ut()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),rz(s)){const l=(t=s.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:s}}return{error:s}}const{session:o,redirectType:a}=i;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 H(n)?this._returnResult({error:n}):this._returnResult({error:new Yi("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const s=await G(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:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:jn}),{data:o,error:a}=s;
119if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(H(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var n,r,i;try{let s;if("email"in t){const{email:c,password:d,options:f}=t;let h=null,y=null;this.flowType==="pkce"&&([h,y]=await $s(this.storage,this.storageKey)),s=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:c,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:h,code_challenge_method:y},xform:jn})}else if("phone"in t){const{phone:c,password:d,options:f}=t;s=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(i=f==null?void 0:f.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:jn})}else throw new Gu("You must provide either an email or phone number and a password");const{data:o,error:a}=s;
119if(a||!o)return await lt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(await lt(this.storage,`${this.storageKey}-code-verifier`),H(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:o,options:a}=t;n=await G(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:_x})}else if("phone"in t){const{phone:s,password:o,options:a}=t;n=await G(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:_x})}else throw new Gu("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const s=new Fs;return this._returnResult({data:{user:null,session:null},error:s})}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:i})}catch(n){if(H(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,s;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:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.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,i,s,o,a,l,u,c,d,f;let h,y;if("message"in t)h=t.message,y=t.signature;else{const{chain:m,wallet:x,statement:g,options:b}=t;let w;if(ut())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"||!(b!=null&&b.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=b==null?void 0:b.url)!==null&&n!==void 0?n:window.location.href),C=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(!C||C.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const k=l_(C[0]);let _=(r=b==null?void 0:b.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!_){const A=await w.request({method:"eth_chainId"});_=Lz(A)}const R={domain:S.host,address:k,statement:g,uri:S.href,version:"1",chainId:_,nonce:(i=b==null?void 0:b.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(s=b==null?void 0:b.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=b==null?void 0:b.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=b==null?void 0:b.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=b==null?void 0:b.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=b==null?void 0:b.signInWithEthereum)===null||c===void 0?void 0:c.resources};h=Dz(R),y=await w.request({method:"personal_sign",params:[Mz(h),k]})}try{const{data:m,error:x}=await G(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:y},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:jn});if(x)throw x;if(!m||!m.session||!m.user){const g=new Fs;return this._returnResult({data:{user:null,session:null},error:g})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:x})}catch(m){if(H(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var n,r,i,s,o,a,l,u,c,d,f,h;let y,m;if("message"in t)y=t.message,m=t.signature;else{const{chain:x,wallet:g,statement:b,options:w}=t;let S;if(ut())if(typeof g=="object")S=g;
119else{const k=window;if("solana"in k&&typeof k.solana=="object"&&("signIn"in k.solana&&typeof k.solana.signIn=="function"||"signMessage"in k.solana&&typeof k.solana.signMessage=="function"))S=k.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=g}const C=new URL((n=w==null?void 0:w.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const k=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:C.host,uri:C.href}),b?{statement:b}:null));let _;if(Array.isArray(k)&&k[0]&&typeof k[0]=="object")_=k[0];else if(k&&typeof k=="object"&&"signedMessage"in k&&"signature"in k)_=k;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)y=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),m=_.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");y=[`${C.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...b?["",b,""]:[""],"Version: 1",`URI: ${C.href}`,`Issued At: ${(i=(r=w==null?void 0:w.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=w==null?void 0:w.signInWithSolana)===null||s===void 0)&&s.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}`]:[],...!((u=w==null?void 0:w.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((d=(c=w==null?void 0:w.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||d===void 0)&&d.length?["Resources",...w.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(`
120`);const k=await S.signMessage(new TextEncoder().encode(y),"utf8");if(!k||!(k instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=k}}try{const{data:x,error:g}=await G(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:rs(m)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:jn});if(g)throw g;if(!x||!x.session||!x.user){const b=new Fs;return this._returnResult({data:{user:null,session:null},error:b})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:g})}catch(x){if(H(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await Ui(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new iz;const{data:s,error:o}=await G(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:jn});if(await lt(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!s||!s.session||!s.user){const a=new Fs;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(await lt(this.storage,`${this.storageKey}-code-verifier`),H(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:s,nonce:o}=t,a=await G(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:jn}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const c=new Fs;return this._returnResult({data:{user:null,session:null},error:c})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if(H(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,i,s,o;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await $s(this.storage,this.storageKey));const{error:d}=await G(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await G(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c})}throw new Gu("You must provide either an email or phone number.")}catch(a){if(await lt(this.storage,`${this.storageKey}-code-verifier`),H(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let i,s;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await G(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:jn});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(H(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,s,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await $s(this.storage,this.storageKey));const u=await G(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}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.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:Az});return!((s=u.data)===null||s===void 0)&&s.url&&ut()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await lt(this.storage,`${this.storageKey}-code-verifier`),H(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 Kt;const{error:i}=await G(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(H(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:i,options:s}=t,{error:o}=await G(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:i,options:s}=t,{data:o,error:a}=await G(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new Gu("You must provide either an email or phone number and a type")}catch(n){if(H(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(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}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 i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.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 Ui(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
120id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Ef:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Ui(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=_f()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=Cz(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},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 G(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:si}):await this._useSession(async n=>{var r,i,s;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 Kt}:await G(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:si})})}catch(n){if(H(n))return Cf(n)&&(await this._removeSession(),await lt(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:i,error:s}=r;if(s)throw s;if(!i.session)throw new Kt;const o=i.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await $s(this.storage,this.storageKey));const{data:u,error:c}=await G(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:si});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await lt(this.storage,`${this.storageKey}-code-verifier`),H(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 Kt;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:o}=Qu(t.access_token);if(o.exp&&(r=o.exp,i=r<=n),i){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};s=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});s={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(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(H(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 Kt;const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(H(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!ut())throw new Yu("No browser detected.");
120if(t.error||t.error_description||t.error_code)throw new Yu(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 bx("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Yu("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 bx("No code detected.");const{data:b,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:b.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=t;if(!s||!a||!o||!u)throw new Yu("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(a);let f=c+d;l&&(f=parseInt(l));const h=f-c;h*1e3<=Js&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${d}s`);const y=f-d;c-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,f,c):c-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,f,c);const{data:m,error:x}=await this._getUser(s);if(x)throw x;const g={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:d,expires_at:f,refresh_token:o,token_type:u,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:t.type},error:null})}catch(r){if(H(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 Ui(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:i,error:s}=n;if(s&&!Cf(s))return this._returnResult({error:s});const o=(r=i.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(nz(a)&&(a.status===404||a.status===401||a.status===403)||Cf(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await lt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=dz(),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,i;try{const{data:{session:s},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await $s(this.storage,this.storageKey,!0));try{return await G(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(await lt(this.storage,`${this.storageKey}-code-verifier`),H(s))return this._returnResult({data:null,error:s});throw s}}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(H(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:i}=await this._useSession(async s=>{var o,a,l,u,c;const{data:d,error:f}=s;if(f)throw f;const h=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 G(this.fetch,"GET",h,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(i)throw i;return ut()&&!(!((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(H(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:i,data:{session:s}}=n;
120if(i)throw i;const{options:o,provider:a,token:l,access_token:u,nonce:c}=t,d=await G(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s==null?void 0:s.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:jn}),{data:f,error:h}=d;return h?this._returnResult({data:{user:null,session:null},error:h}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new Fs}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:h}))}catch(i){if(await lt(this.storage,`${this.storageKey}-code-verifier`),H(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)throw o;return await G(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(H(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 mz(async i=>(i>0&&await pz(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await G(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:jn})),(i,s)=>{const o=200*Math.pow(2,i);return s&&Tf(s)&&Date.now()+o-r<Js})}catch(r){if(this._debug(n,"error",r),H(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),ut()&&!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 i=await Ui(this.storage,this.storageKey);if(i&&this.userStorage){let o=await Ui(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await Xs(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:_f()}else if(i&&!i.user&&!i.user){const o=await Ui(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await lt(this.storage,this.storageKey+"-user"),await Xs(this.storage,this.storageKey,i)):i.user=_f()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Ef;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${Ef}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),Tf(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(i.access_token);!a&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):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",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Kt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new fh;const{data:s,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!s.session)throw new Kt;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={data:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(i,"error",s),H(s)){const o={data:null,error:s};return Tf(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(o),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await lt(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 Xs(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=Cx(i);await Xs(this.storage,this.storageKey,s)}else{const i=Cx(n);await Xs(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await lt(this.storage,this.storageKey),await lt(this.storage,this.storageKey+"-code-verifier"),await lt(this.storage,this.storageKey+"-user"),this.userStorage&&await lt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&ut()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
120catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Js);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 i=Math.floor((r.expires_at*1e3-t)/Js);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Js}ms, refresh threshold is ${Gm} ticks`),i<=Gm&&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 a_)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!ut()||!(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 i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,o]=await $s(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?this._returnResult({data:null,error:s}):await G(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await G(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.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(H(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:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?Hz(t.webauthn.credential_response):Wz(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await G(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=i==null?void 0:i.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(H(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:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=await G(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.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:Uz(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:Vz(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(H(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 i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,i,s;if(t)try{const{payload:h}=Qu(t);let y=null;h.aal&&(y=h.aal);let m=y;const{data:{user:x},error:g}=await this.getUser(t);if(g)return this._returnResult({data:null,error:g});((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&&(m="aal2");const w=h.amr||[];return{data:{currentLevel:y,nextLevel:m,currentAuthenticationMethods:w},error:null}}catch(h){if(H(h))return this._returnResult({data:null,error:h});throw h}const{data:{session:o},error:a}
120=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}=Qu(o.access_token);let u=null;l.aal&&(u=l.aal);let c=u;((s=(i=o.user.factors)===null||i===void 0?void 0:i.filter(h=>h.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(c="aal2");const f=l.amr||[];return{data:{currentLevel:u,nextLevel:c,currentAuthenticationMethods:f},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await G(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Kt})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new Kt});const o=await G(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&ut()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(H(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new Kt});const o=await G(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&ut()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(H(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 G(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Kt})})}catch(t){if(H(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:i}=n;return i?this._returnResult({data:null,error:i}):r?(await G(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 Kt})})}catch(n){if(H(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 i=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+ez>i)return r;const{data:s,error:o}=await G(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:h,error:y}
120=await this.getSession();if(y||!h.session)return this._returnResult({data:null,error:y});r=h.session.access_token}const{header:i,payload:s,signature:o,raw:{header:a,payload:l}}=Qu(r);n!=null&&n.allowExpired||Sz(s.exp);const u=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:h}=await this.getUser(r);if(h)throw h;return{data:{claims:s,header:i,signature:o},error:null}}const c=kz(i.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,o,uz(`${a}.${l}`)))throw new Jm("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(r){if(H(r))return this._returnResult({data:null,error:r});throw r}}}Vl.nextInstanceID={};const e5=Vl,t5="2.101.1";let Wa="";typeof Deno<"u"?Wa="deno":typeof document<"u"?Wa="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Wa="react-native":Wa="node";const n5={"X-Client-Info":`supabase-js-${Wa}/${t5}`},r5={headers:n5},i5={schema:"public"},s5={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},o5={};function Hl(e){"@babel/helpers - typeof";return Hl=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},Hl(e)}function a5(e,t){if(Hl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l5(e){var t=a5(e,"string");return Hl(t)=="symbol"?t:t+""}function u5(e,t,n){return(t=l5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ox(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ox(Object(n),!0).forEach(function(r){u5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ox(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const c5=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),d5=()=>Headers,h5=(e,t,n)=>{const r=c5(n),i=d5();return async(s,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new i(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(s,We(We({},o),{},{headers:u}))}};function f5(e){return e.endsWith("/")?e:e+"/"}function p5(e,t){var n,r;const{db:i,auth:s,realtime:o,global:a}=e,{db:l,auth:u,realtime:c,global:d}=t,f={db:We(We({},l),i),auth:We(We({},u),s),realtime:We(We({},c),o),storage:{},global:We(We(We({},d),a),{},{headers:We(We({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function m5(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(f5(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var g5=class extends e5{constructor(e){super(e)}},y5=class{constructor(e,t,n){var r,i;this.supabaseUrl=e,this.supabaseKey=t;const s=m5(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const o=`sb-${s.hostname.split(".")[0]}-auth-token`,a={db:i5,realtime:o5,auth:We(We({},s5),{},{storageKey:o}),global:r5},l=p5(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(c,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=h5(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(We({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(c=>this.realtime.setAuth(c)).catch(c=>console.warn("Failed to set initial Realtime auth token:",c)),this.rest=new $$(new URL("rest/v1",s).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new Y4(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new j$(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)}
120channel(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:i,storageKey:s,flowType:o,lock:a,debug:l,throwOnError:u},c,d){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new g5({url:this.authUrl.href,headers:We(We({},f),c),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:o,lock:a,debug:l,throwOnError:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(h=>h.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new w4(this.realtimeUrl.href,We(We({},e),{},{params:We(We({},{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 v5=(e,t,n)=>new y5(e,t,n);function w5(){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}w5()&&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 b5="https://sjmolrmzilkhyilngjur.supabase.co",x5="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNqbW9scm16aWxraHlpbG5nanVyIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzUwNjE1NTMsImV4cCI6MjA5MDYzNzU1M30.uxXBsrwA9YLJ9k3OlqKBwUe4I5-NRFp2y92MCpTUbfQ",wt=v5(b5,x5,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),c_=v.createContext(void 0),S5=({children:e})=>{const[t,n]=v.useState(null),[r,i]=v.useState(null),[s,o]=v.useState(!0),a=_y();v.useEffect(()=>{const{data:{subscription:f}}=wt.auth.onAuthStateChange((h,y)=>{i(y),n((y==null?void 0:y.user)??null),o(!1)});return wt.auth.getSession().then(({data:{session:h}})=>{i(h),n((h==null?void 0:h.user)??null),o(!1)}),()=>f.unsubscribe()},[]);const l=async(f,h)=>{const{error:y}=await wt.auth.signInWithPassword({email:f,password:h});return y?(tr.error(y.message),{error:y}):(tr.success("Signed in successfully"),a("/admin"),{error:null})},u=async(f,h)=>{const y=`${window.location.origin}/admin`,{error:m}=await wt.auth.signUp({email:f,password:h,options:{emailRedirectTo:y}});return m?(tr.error(m.message),{error:m}):(tr.success("Account created successfully"),{error:null})},c=async()=>{const{error:f}=await wt.auth.signOut();if(f){tr.error(f.message);return}tr.success("Signed out successfully"),a("/")},d=async f=>{const{error:h}=await wt.auth.resetPasswordForEmail(f,{redirectTo:`${window.location.origin}/reset-password`});return h?(tr.error(h.message),{error:h}):(tr.success("Password reset email sent"),{error:null})};return p.jsx(c_.Provider,{value:{user:t,session:r,loading:s,signIn:l,signUp:u,signOut:c,resetPassword:d},children:e})},k5=()=>{const e=v.useContext(c_);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},E5=({children:e})=>{const{user:t,loading:n}=k5(),[r,i]=v.useState(null),[s,o]=v.useState(!0);return v.useEffect(()=>{(async()=>{if(!t){o(!1);return}try{const{data:l,error:u}=await wt.from("user_roles").select("role").eq("user_id",t.id).eq("role","admin").maybeSingle();u?(console.error("Error checking admin role:",u),i(!1)):i(!!l)}catch(l){console.error("Error checking admin role:",l),i(!1)}finally{o(!1)}})()},[t]),n||s?p.jsx("div",{className:"min-h-screen flex items-center justify-center",children:p.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"})}):t?r?p.jsx(p.Fragment,{children:e}):p.jsx("div",{className:"min-h-screen flex items-center justify-center",children:p.jsxs("div",{className:"text-center",children:[p.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Access Denied"}),p.jsx("p",{className:"text-muted-foreground",children:"You don't have permission to access this page."})]})}):p.jsx(lI,{to:"/login",replace:!0})};
120var C5=typeof Element<"u",T5=typeof Map=="function",_5=typeof Set=="function",P5=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ac(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ac(e[r],t[r]))return!1;return!0}var s;if(T5&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Ac(r.value[1],t.get(r.value[0])))return!1;return!0}if(_5&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(P5&&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(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(C5&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Ac(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var A5=function(t,n){try{return Ac(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 R5=As(A5);var j5=function(e,t,n,r,i,s,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 u=[n,r,i,s,o,a],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},N5=j5;const Ix=As(N5);var O5=function(t,n,r,i){var s=r?r.call(i,t,n):void 0;if(s!==void 0)return!!s;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),u=0;u<o.length;u++){var c=o[u];if(!l(c))return!1;var d=t[c],f=n[c];if(s=r?r.call(i,d,f,c):void 0,s===!1||s===void 0&&d!==f)return!1}return!0};const I5=As(O5);var d_=(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))(d_||{}),Af={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"]}},Lx=Object.values(d_),ph={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},h_=Object.entries(ph).reduce((e,[t,n])=>(e[n]=t,e),{}),Bn="data-rh",ko={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Eo=(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},L5=e=>{let t=Eo(e,"title");const n=Eo(e,ko.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Eo(e,ko.DEFAULT_TITLE);return t||r||void 0},M5=e=>Eo(e,ko.ON_CHANGE_CLIENT_STATE)||(()=>{}),Rf=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),D5=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let s=0;s<i.length;s+=1){const a=i[s].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),F5=e=>console&&typeof console.warn=="function"&&console.warn(e),Aa=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&F5(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,s)=>{const o={};s.filter(l=>{let u;const c=Object.keys(l);for(let f=0;f<c.length;f+=1){const h=c[f],y=h.toLowerCase();t.indexOf(y)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(y==="rel"&&l[y].toLowerCase()==="stylesheet")&&(u=y),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(u=h)}if(!u||!l[u])return!1;const d=l[u].toLowerCase();return r[u]||(r[u]={}),o[u]||(o[u]={}),r[u][d]?!1:(o[u][d]=!0,!0)}
120).reverse().forEach(l=>i.push(l));const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const u=a[l],c={...r[u],...o[u]};r[u]=c}return i},[]).reverse()},$5=(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},z5=e=>({baseTag:D5(["href"],e),bodyAttributes:Rf("bodyAttributes",e),defer:Eo(e,ko.DEFER),encode:Eo(e,ko.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Rf("htmlAttributes",e),linkTags:Aa("link",["rel","href"],e),metaTags:Aa("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Aa("noscript",["innerHTML"],e),onChangeClientState:M5(e),scriptTags:Aa("script",["src","innerHTML"],e),styleTags:Aa("style",["cssText"],e),title:L5(e),titleAttributes:Rf("titleAttributes",e),prioritizeSeoTags:$5(e,ko.PRIORITIZE_SEO_TAGS)}),f_=e=>Array.isArray(e)?e.join(""):e,B5=(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},jf=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(B5(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Mx=(e,t)=>({...e,[t]:void 0}),U5=["noscript","script","style"],Xm=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),p_=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),V5=(e,t,n,r)=>{const i=p_(n),s=f_(t);return i?`<${e} ${Bn}="true" ${i}>${Xm(s,r)}</${e}>`:`<${e} ${Bn}="true">${Xm(s,r)}</${e}>`},H5=(e,t,n=!0)=>t.reduce((r,i)=>{const s=i,o=Object.keys(s).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,c)=>{const d=typeof s[c]>"u"?c:`${c}="${Xm(s[c],n)}"`;return u?`${u} ${d}`:d},""),a=s.innerHTML||s.cssText||"",l=U5.indexOf(e)===-1;return`${r}<${e} ${Bn}="true" ${o}${l?"/>":`>${a}</${e}>`}`},""),m_=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=ph[r];return n[i||r]=e[r],n},t),W5=(e,t,n)=>{const r={key:t,[Bn]:!0},i=m_(n,r);return[L.createElement("title",i,t)]},Rc=(e,t)=>t.map((n,r)=>{const i={key:r,[Bn]:!0};return Object.keys(n).forEach(s=>{const a=ph[s]||s;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[a]=n[s]}),L.createElement(e,i)}),ln=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>W5(e,t.title,t.titleAttributes),toString:()=>V5(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>m_(t),toString:()=>p_(t)};default:return{toComponent:()=>Rc(e,t),toString:()=>H5(e,t,n)}}},q5=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=jf(e,Af.meta),s=jf(t,Af.link),o=jf(n,Af.script);return{priorityMethods:{toComponent:()=>[...Rc("meta",i.priority),...Rc("link",s.priority),...Rc("script",o.priority)],toString:()=>`${ln("meta",i.priority,r)} ${ln("link",s.priority,r)} ${ln("script",o.priority,r)}`},metaTags:i.default,linkTags:s.default,scriptTags:o.default}},K5=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:s,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:c,metaTags:d,scriptTags:f}=e,h={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:h,linkTags:c,metaTags:d,scriptTags:f}=q5(e)),{priority:h,base:ln("base",t,r),bodyAttributes:ln("bodyAttributes",n,r),htmlAttributes:ln("htmlAttributes",i,r),link:ln("link",c,r),meta:ln("meta",d,r),noscript:ln("noscript",s,r),script:ln("script",f,r),style:ln("style",o,r),title:ln("title",{title:a,titleAttributes:l},r)}},Zm=K5,Ju=[],hv=!!(typeof window<"u"&&window.document&&window.document.createElement),eg=class{constructor(e,t){Sr(this,"instances",[]);Sr(this,"canUseDOM",hv);Sr(this,"context");Sr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Ju:this.instances,add:e=>{(this.canUseDOM?Ju:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Ju:this.instances).indexOf(e);(this.canUseDOM?Ju:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Zm({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},G5=parseInt(L.version.split(".")[0],10),tg=G5>=19,Y5={},g_=L.createContext(Y5),fs,y_=(fs=class extends v.Component{constructor(n){super(n);Sr(this,"helmetData");tg?this.helmetData=null:this.helmetData=new eg(this.props.context||{},fs.canUseDOM)}render(){return tg?L.createElement(L.Fragment,null,this.props.children):L.createElement(g_.Provider,{value:this.helmetData.value},this.props.children)}},Sr(fs,"canUseDOM",hv),fs),Us=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Bn}]`),i=[].slice.call(r),s=[];let o;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText"){const c=a.cssText;l.appendChild(document.createTextNode(c))}else{const c=u,d=typeof a[c]>"u"?"":a[c];l.setAttribute(u,d)}l.setAttribute(Bn,"true"),i.some((u,c)=>(o=c,l.isEqualNode(u)))?i.splice(o,1):s.push(l)}
120),i.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),s.forEach(a=>n.appendChild(a)),{oldTags:i,newTags:s}},ng=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Bn),i=r?r.split(","):[],s=[...i],o=Object.keys(t);for(const a of o){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),i.indexOf(a)===-1&&i.push(a);const u=s.indexOf(a);u!==-1&&s.splice(u,1)}for(let a=s.length-1;a>=0;a-=1)n.removeAttribute(s[a]);i.length===s.length?n.removeAttribute(Bn):n.getAttribute(Bn)!==o.join(",")&&n.setAttribute(Bn,o.join(","))},Q5=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=f_(e)),ng("title",t)},Dx=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:s,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:c,title:d,titleAttributes:f}=e;ng("body",r),ng("html",i),Q5(d,f);const h={baseTag:Us("base",n),linkTags:Us("link",s),metaTags:Us("meta",o),noscriptTags:Us("noscript",a),scriptTags:Us("script",u),styleTags:Us("style",c)},y={},m={};Object.keys(h).forEach(x=>{const{newTags:g,oldTags:b}=h[x];g.length&&(y[x]=g),b.length&&(m[x]=h[x].oldTags)}),t&&t(),l(e,y,m)},Ra=null,J5=e=>{Ra&&cancelAnimationFrame(Ra),e.defer?Ra=requestAnimationFrame(()=>{Dx(e,()=>{Ra=null})}):(Dx(e),Ra=null)},X5=J5,Fx=class extends v.Component{constructor(){super(...arguments);Sr(this,"rendered",!1)}shouldComponentUpdate(t){return!I5(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 i=z5(t.get().map(s=>{const{context:o,...a}=s.props;return a}));y_.canUseDOM?X5(i):Zm&&(r=Zm(i)),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}},jc=[],$x=e=>{const t={};for(const n of Object.keys(e))t[h_[n]||n]=e[n];return t},Vi=e=>{const t={};for(const n of Object.keys(e)){const r=ph[n];t[r||n]=e[n]}return t},zx=(e,t)=>{if(!hv)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",i=n.getAttribute(r),s=i?i.split(","):[],o=Object.keys(t);for(const a of s)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)},Nf=()=>{const e={},t={};for(const n of jc){const{htmlAttributes:r,bodyAttributes:i}=n.props;r&&Object.assign(e,$x(r)),i&&Object.assign(t,$x(i))}zx("html",e),zx("body",t)},Z5=class extends v.Component{componentDidMount(){jc.push(this),Nf()}componentDidUpdate(){Nf()}componentWillUnmount(){const e=jc.indexOf(this);e!==-1&&jc.splice(e,1),Nf()}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 L.createElement("title",Vi(t),e)}renderBase(){const{base:e}=this.props;return e?L.createElement("base",Vi(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>L.createElement("meta",{key:n,...Vi(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>L.createElement("link",{key:n,...Vi(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,s=Vi(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),L.createElement("script",{key:n,...s})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...i}=t,s=Vi(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),L.createElement("style",{key:n,...s})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,s=Vi(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),L.createElement("noscript",{key:n,...s})})}render(){return L.createElement(L.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},ip,eB=(ip=class extends v.Component{shouldComponentUpdate(e){return!R5(Mx(this.props,"helmetData"),Mx(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}
120warnOnInvalidChildren(e,t){return Ix(Lx.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 ${Lx.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Ix(!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 L.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...s}=r.props,o=Object.keys(s).reduce((l,u)=>(l[h_[u]||u]=s[u],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,i),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);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 eg)){const i=r;r=new eg(i.context,!0),delete n.helmetData}return tg?L.createElement(Z5,{...n}):r?L.createElement(Fx,{...n,context:r.value}):L.createElement(g_.Consumer,null,i=>L.createElement(Fx,{...n,context:i}))}},Sr(ip,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),ip);function v_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=v_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function w_(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=v_(e))&&(r&&(r+=" "),r+=t);return r}const fv="-",tB=e=>{const t=rB(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(fv);return a[0]===""&&a.length!==1&&a.shift(),b_(a,t)||nB(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},b_=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?b_(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(fv);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Bx=/^\[(.+)\]$/,nB=e=>{if(Bx.test(e)){const t=Bx.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},rB=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return sB(Object.entries(e.classGroups),n).forEach(([s,o])=>{rg(o,r,s,t)}),r},rg=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Ux(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(iB(i)){rg(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{rg(o,Ux(t,s),n,r)})})},Ux=(e,t)=>{let n=e;return t.split(fv).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},iB=e=>e.isThemeGetter,sB=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e,oB=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},x_="!",aB=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let u=0,c=0,d;for(let x=0;x<a.length;x++){let g=a[x];if(u===0){if(g===i&&(r||a.slice(x,x+s)===t)){l.push(a.slice(c,x)),c=x+s;continue}if(g==="/"){d=x;continue}}g==="["?u++:g==="]"&&u--}const f=l.length===0?a:a.substring(c),h=f.startsWith(x_),y=h?f.substring(1):f,m=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:m}};return n?a=>n({className:a,parseClassName:o}):o},lB=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},uB=e=>({cache:oB(e.cacheSize),parseClassName:aB(e),...tB(e)}),cB=/\s+/,dB=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(cB);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let y=!!h,m=r(y?f.substring(0,h):f);if(!m){if(!y){a=u+(a.length>0?" "+a:a);continue}if(m=r(f),!m){a=u+(a.length>0?" "+a:a);continue}y=!1}const x=lB(c).join(":"),g=d?x+x_:x,b=g+m;if(s.includes(b))continue;s.push(b);const w=i(m,y);for(let S=0;S<w.length;++S){const C=w[S];s.push(g+C)}a=u+(a.length>0?" "+a:a)}return a};
vendor: 4,426 bytes, line 120
120function hB(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=S_(t))&&(r&&(r+=" "),r+=n);return r}const S_=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=S_(e[r]))&&(n&&(n+=" "),n+=t);return n};function fB(e,...t){let n,r,i,s=o;function o(l){const u=t.reduce((c,d)=>d(c),e());return n=uB(u),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=dB(l,n);return i(l,c),c}return function(){return s(hB.apply(null,arguments))}}const Ne=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},k_=/^\[(?:([a-z-]+):)?(.+)\]$/i,pB=/^\d+\/\d+$/,mB=new Set(["px","full","screen"]),gB=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yB=/\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$/,vB=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wB=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bB=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kr=e=>Co(e)||mB.has(e)||pB.test(e),qr=e=>ca(e,"length",PB),Co=e=>!!e&&!Number.isNaN(Number(e)),Of=e=>ca(e,"number",Co),ja=e=>!!e&&Number.isInteger(Number(e)),xB=e=>e.endsWith("%")&&Co(e.slice(0,-1)),oe=e=>k_.test(e),Kr=e=>gB.test(e),SB=new Set(["length","size","percentage"]),kB=e=>ca(e,SB,E_),EB=e=>ca(e,"position",E_),CB=new Set(["image","url"]),TB=e=>ca(e,CB,RB),_B=e=>ca(e,"",AB),Na=()=>!0,ca=(e,t,n)=>{const r=k_.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},PB=e=>yB.test(e)&&!vB.test(e),E_=()=>!1,AB=e=>wB.test(e),RB=e=>bB.test(e),jB=()=>{const e=Ne("colors"),t=Ne("spacing"),n=Ne("blur"),r=Ne("brightness"),i=Ne("borderColor"),s=Ne("borderRadius"),o=Ne("borderSpacing"),a=Ne("borderWidth"),l=Ne("contrast"),u=Ne("grayscale"),c=Ne("hueRotate"),d=Ne("invert"),f=Ne("gap"),h=Ne("gradientColorStops"),y=Ne("gradientColorStopPositions"),m=Ne("inset"),x=Ne("margin"),g=Ne("opacity"),b=Ne("padding"),w=Ne("saturate"),S=Ne("scale"),C=Ne("sepia"),k=Ne("skew"),_=Ne("space"),R=Ne("translate"),A=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",oe,t],O=()=>[oe,t],W=()=>["",kr,qr],Q=()=>["auto",Co,oe],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",oe],E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Co,oe];return{cacheSize:500,separator:":",theme:{colors:[Na],spacing:[kr,qr],blur:["none","",Kr,oe],brightness:Y(),borderColor:[e],borderRadius:["none","","full",Kr,oe],borderSpacing:O(),borderWidth:W(),contrast:Y(),grayscale:M(),hueRotate:Y(),invert:M(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[xB,qr],inset:I(),margin:I(),opacity:Y(),padding:O(),saturate:Y(),scale:Y(),sepia:M(),skew:Y(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[Kr]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),oe]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}
vendor: 9,654 bytes, line 120
120],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ja,oe]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",oe]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",ja,oe]}],"grid-cols":[{"grid-cols":[Na]}],"col-start-end":[{col:["auto",{span:["full",ja,oe]},oe]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[Na]}],"row-start-end":[{row:["auto",{span:[ja,oe]},oe]}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",oe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",oe]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oe,t]}],"min-w":[{"min-w":[oe,t,"min","max","fit"]}],"max-w":[{"max-w":[oe,t,"none","full","min","max","fit","prose",{screen:[Kr]},Kr]}],h:[{h:[oe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Kr,qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Of]}],"font-family":[{font:[Na]}],"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",oe]}],"line-clamp":[{"line-clamp":["none",Co,Of]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",kr,oe]}],"list-image":[{"list-image":["none",oe]}],"list-style-type":[{list:["none","disc","decimal",oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",kr,qr]}],"underline-offset":[{"underline-offset":["auto",kr,oe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe]}],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",oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),EB]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",kB]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},TB]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"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":[g]}],"border-style":[{border:[...Z(),"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":[g]}],"divide-style":[{divide:Z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[kr,oe]}],"outline-w":[{outline:[kr,qr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[kr,qr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Kr,_B]}],"shadow-color":[{shadow:[Na]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Kr,oe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"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",oe]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",oe]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ja,oe]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",oe]}],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",oe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}
vendor: 9,020 bytes, lines 120-140
120],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[kr,qr,Of]}],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"]}}},NB=fB(jB);function he(...e){return NB(w_(e))}function Qi({className:e,...t}){return p.jsx("div",{className:he("animate-pulse rounded-md bg-muted",e),...t})}const OB=()=>p.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[100] focus:bg-primary focus:text-primary-foreground focus:px-4 focus:py-2 focus:rounded-md focus:outline-none focus:ring-2 focus:ring-ring",children:"Skip to main content"});function Vx(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pv(...e){return t=>{let n=!1;const r=e.map(i=>{const s=Vx(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():Vx(e[i],null)}}}}function Ke(...e){return v.useCallback(pv(...e),e)}function Wl(e){const t=LB(e),n=v.forwardRef((r,i)=>{const{children:s,...o}=r,a=v.Children.toArray(s),l=a.find(MB);if(l){const u=l.props.children,c=a.map(d=>d===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...o,ref:i,children:v.isValidElement(u)?v.cloneElement(u,void 0,c):null})}return p.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var IB=Wl("Slot");function LB(e){const t=v.forwardRef((n,r)=>{const{children:i,...s}=n;if(v.isValidElement(i)){const o=FB(i),a=DB(s,i.props);return i.type!==v.Fragment&&(a.ref=r?pv(r,o):o),v.cloneElement(i,a)}return v.Children.count(i)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var C_=Symbol("radix.slottable");function KK(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=C_,t}function MB(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===C_}function DB(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function FB(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Hx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Wx=w_,T_=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Wx(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],d=s==null?void 0:s[u];if(c===null)return null;const f=Hx(c)||Hx(d);return i[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(y=>{let[m,x]=y;return Array.isArray(x)?x.includes({...s,...a}[m]):{...s,...a}[m]===x})?[...u,d,f]:u},[]);return Wx(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},$B=T_("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-smooth 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 shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",hero:"bg-gradient-primary text-primary-foreground shadow-glow hover:shadow-elegant hover:scale-105 transform transition-all duration-300",glow:"bg-gradient-primary text-primary-foreground shadow-glow animate-glow hover:animate-none hover:shadow-elegant",premium:"bg-gradient-card text-foreground border border-primary/20 hover:border-primary/40 hover:bg-gradient-primary hover:text-primary-foreground shadow-elegant"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",xl:"h-12 rounded-lg px-12 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),rt=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?IB:"button";return p.jsx(o,{className:he($B({variant:t,size:n,className:e})),ref:s,...i})});rt.displayName="Button";/**
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 zB=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),__=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
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 */var BB={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"};/**
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 UB=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>v.createElement("svg",{ref:l,...BB,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:__("lucide",i),...a},[...o.map(([u,c])=>v.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
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 Te=(e,t)=>
140{const n=v.forwardRef(({className:r,...i},s)=>v.createElement(UB,{ref:s,iconNode:t,className:__(`lucide-${zB(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
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 VB=Te("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
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 qa=Te("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
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 qx=Te("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
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 P_=Te("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"}]]);/**
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 ql=Te("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
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 If=Te("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"}]]);/**
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 mv=Te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 HB=Te("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/**
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 WB=Te("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
185],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
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 ig=Te("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
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 qB=Te("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/**
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 KB=Te("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"}]]);/**
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 A_=Te("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"}]]);/**
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 GB=Te("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
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 YB=Te("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"}]]);/**
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 QB=Te("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"}]]);/**
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 R_=Te("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 JB=Te("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
231 * @license lucide-react v0.462.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const XB=Te("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"}]]);/**
236 * @license lucide-react v0.462.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const ZB=Te("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"}]]);/**
241 * @license lucide-react v0.462.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const eU=Te("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
245y:"oel41y"}]]);/**
246 * @license lucide-react v0.462.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const j_=Te("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"}]]);/**
251 * @license lucide-react v0.462.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const Kx=Te("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"}]]);/**
256 * @license lucide-react v0.462.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const tU=Te("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
261 * @license lucide-react v0.462.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const N_=Te("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"}]]);/**
266 * @license lucide-react v0.462.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const O_=Te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
271 * @license lucide-react v0.462.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const nU=Te("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),rU=()=>{const[e,t]=v.useState(!1);v.useEffect(()=>{if(!localStorage.getItem("cookie-consent")){const s=setTimeout(()=>t(!0),1e3);return()=>clearTimeout(s)}},[]);const n=()=>{localStorage.setItem("cookie-consent","accepted"),t(!1)},r=()=>{localStorage.setItem("cookie-consent","declined"),t(!1)};return e?p.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-[60] p-4 bg-card border-t border-border shadow-lg animate-in slide-in-from-bottom-4 duration-300",children:p.jsxs("div",{className:"max-w-4xl mx-auto flex flex-col sm:flex-row items-center gap-4",children:[p.jsx(HB,{className:"h-5 w-5 text-muted-foreground flex-shrink-0 hidden sm:block"}),p.jsx("p",{className:"text-sm text-muted-foreground flex-1 text-center sm:text-left",children:"We use cookies and analytics to understand how you interact with our site and improve your experience. You can accept or decline tracking."}),p.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[p.jsx(rt,{variant:"outline",size:"sm",onClick:r,children:"Decline"}),p.jsx(rt,{size:"sm",onClick:n,children:"Accept"})]})]})}):null},iU="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imd5bHJmdm16Y3VhdWhobXlhcHBwIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTMxNjgxNDUsImV4cCI6MjA2ODc0NDE0NX0.FuvJGQFtHqwFhgLFTDaieiS3difBLTVq34ZnWbXQZg8";function Gx(e,t,n){try{const r=localStorage.getItem(n);if(r){e.innerHTML=r;return}}catch{}t==="footer"&&(e.innerHTML=`<div style="background:#111;color:#ccc;padding:2rem;text-align:center;font-family:system-ui"><p style="font-size:1.2rem;font-weight:600;margin-bottom:.5rem">CyberGen AI</p><p style="font-size:.85rem;margin-bottom:1rem"><a href="mailto:[email protected]" style="color:#60a5fa">[email protected]</a> | 1-800-561-2713</p><p style="font-size:.75rem;opacity:.6">© ${new Date().getFullYear()} CyberGen AI. All rights reserved.</p></div>`)}let sg=null;
275function gv(){if(!sg)throw new Error("CyberGenHub not initialised.");return sg}function yv(){const e=gv();return{"Content-Type":"application/json","x-api-key":e.apiKey,"x-platform-id":e.platformId}}function vv(e){return`${gv().hubUrl}/functions/v1/${e}`}async function Xu(e,t){const n=await fetch(vv(e),{method:"POST",headers:yv(),body:JSON.stringify(t)}),r=await n.json();return n.ok?{success:!0,data:r}:{success:!1,error:r.error||n.statusText}}async function Yx(e){const t=await fetch(vv(e),{method:"GET",headers:yv()}),n=await t.json();return t.ok?{success:!0,data:n}:{success:!1,error:n.error||t.statusText}}const I_={init(e){sg=e},async submitForm(e){return Xu("central-intake",e)},async subscribe(e){return Xu("central-newsletter",{action:"subscribe",...e})},async unsubscribe(e){return Xu("central-newsletter",{action:"unsubscribe",email:e})},async getConfig(){return Yx("central-config")},async trackEvent(e){return Xu("central-analytics",e)},embedWidget(e,t){const n=gv(),r=document.querySelector(t);if(!r){console.error(`CyberGenHub.embedWidget: "${t}" not found`);return}const i=`cybergen_${e}_cache`;r.id=`cybergen-${e}`;let s=!1;const o=document.createElement("script");o.onload=()=>{s=!0,setTimeout(()=>{if(r.innerHTML)try{localStorage.setItem(i,r.innerHTML)}catch{}},2e3)},o.onerror=()=>{s||Gx(r,e,i)},setTimeout(()=>{!s&&!r.innerHTML&&Gx(r,e,i)},5e3),o.src=`${n.hubUrl}/functions/v1/central-widgets?widget=${e}&platform=${n.platformId}&key=${n.apiKey}&apikey=${iU}`,document.body.appendChild(o)},embedFooter(e){return this.embedWidget("footer",e)},async health(){return Yx("central-health")},async chat(e){return fetch(vv("central-chatbot"),{method:"POST",headers:yv(),body:JSON.stringify(e)})}};function sU(e,t){const n=v.createContext(t),r=s=>{const{children:o,...a}=s,l=v.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function i(s){const o=v.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function da(e,t=[]){let n=[];function r(s,o){const a=v.createContext(o),l=n.length;n=[...n,o];const u=d=>{var g;const{scope:f,children:h,...y}=d,m=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,x=v.useMemo(()=>y,Object.values(y));return p.jsx(m.Provider,{value:x,children:h})};u.displayName=s+"Provider";function c(d,f){var m;const h=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,y=v.useContext(h);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,c]}const i=()=>{const s=n.map(o=>v.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,oU(i,...t)]}function oU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}var aU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],be=aU.reduce((e,t)=>{const n=Wl(`Primitive.${t}`),r=v.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function og(e,t){e&&ky.flushSync(()=>e.dispatchEvent(t))}var gr=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},lU=Ng[" useInsertionEffect ".trim().toString()]||gr;function ha({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,o]=uU({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const c=v.useRef(e!==void 0);v.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=v.useCallback(c=>{var d;if(a){const f=cU(c)?c(e):c;f!==e&&((d=o.current)==null||d.call(o,f))}else s(c)}
vendor: 4,328 bytes, line 275
275,[a,e,s,o]);return[l,u]}function uU({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),i=v.useRef(n),s=v.useRef(t);return lU(()=>{s.current=t},[t]),v.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function cU(e){return typeof e=="function"}var dU=v.createContext(void 0);function wv(e){const t=v.useContext(dU);return e||t||"ltr"}function hU(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var rn=e=>{const{present:t,children:n}=e,r=fU(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),s=Ke(r.ref,pU(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:s}):null};rn.displayName="Presence";function fU(e){const[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),s=v.useRef("none"),o=e?"mounted":"unmounted",[a,l]=hU(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Zu(r.current);s.current=a==="mounted"?u:"none"},[a]),gr(()=>{const u=r.current,c=i.current;if(c!==e){const f=s.current,h=Zu(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),gr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const m=Zu(r.current).includes(h.animationName);if(h.target===t&&m&&(l("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=h=>{h.target===t&&(s.current=Zu(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Zu(e){return(e==null?void 0:e.animationName)||"none"}function pU(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mU=Ng[" useId ".trim().toString()]||(()=>{}),gU=0;function vs(e){const[t,n]=v.useState(mU());return gr(()=>{n(r=>r??String(gU++))},[e]),t?`radix-${t}`:""}function bv(e){const t=e+"CollectionProvider",[n,r]=da(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:x,children:g}=m,b=L.useRef(null),w=L.useRef(new Map).current;return p.jsx(i,{scope:x,itemMap:w,collectionRef:b,children:g})};o.displayName=t;const a=e+"CollectionSlot",l=Wl(a),u=L.forwardRef((m,x)=>{const{scope:g,children:b}=m,w=s(a,g),S=Ke(x,w.collectionRef);return p.jsx(l,{ref:S,children:b})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Wl(c),h=L.forwardRef((m,x)=>{const{scope:g,children:b,...w}=m,S=L.useRef(null),C=Ke(x,S),k=s(c,g);return L.useEffect(()=>(k.itemMap.set(S,{ref:S,...w}),()=>void k.itemMap.delete(S))),p.jsx(f,{[d]:"",ref:C,children:b})});h.displayName=c;function y(m){const x=s(e+"CollectionConsumer",m);return L.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((k,_)=>w.indexOf(k.ref.current)-w.indexOf(_.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},y,r]}function nt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function yU(e,t=globalThis==null?void 0:globalThis.document){const n=nt(e);v.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var vU="DismissableLayer",ag="dismissableLayer.update",wU="dismissableLayer.pointerDownOutside",bU="dismissableLayer.focusOutside",Qx,L_=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xv=v.forwardRef((e,t)=>
275{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,u=v.useContext(L_),[c,d]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=v.useState({}),y=Ke(t,_=>d(_)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(x),b=c?m.indexOf(c):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=g,C=kU(_=>{const R=_.target,A=[...u.branches].some(j=>j.contains(R));!S||A||(i==null||i(_),o==null||o(_),_.defaultPrevented||a==null||a())},f),k=EU(_=>{const R=_.target;[...u.branches].some(j=>j.contains(R))||(s==null||s(_),o==null||o(_),_.defaultPrevented||a==null||a())},f);return yU(_=>{b===u.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},f),v.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Qx=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Jx(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Qx)}},[c,f,n,u]),v.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Jx())},[c,u]),v.useEffect(()=>{const _=()=>h({});return document.addEventListener(ag,_),()=>document.removeEventListener(ag,_)},[]),p.jsx(be.div,{...l,ref:y,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,C.onPointerDownCapture)})});xv.displayName=vU;var xU="DismissableLayerBranch",SU=v.forwardRef((e,t)=>{const n=v.useContext(L_),r=v.useRef(null),i=Ke(t,r);return v.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(be.div,{...e,ref:i})});SU.displayName=xU;function kU(e,t=globalThis==null?void 0:globalThis.document){const n=nt(e),r=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){M_(wU,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function EU(e,t=globalThis==null?void 0:globalThis.document){const n=nt(e),r=v.useRef(!1);return v.useEffect(()=>{const i=s=>{s.target&&!r.current&&M_(bU,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jx(){const e=new CustomEvent(ag);document.dispatchEvent(e)}function M_(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?og(i,s):i.dispatchEvent(s)}function CU(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var TU=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"}),_U="VisuallyHidden",D_=v.forwardRef((e,t)=>p.jsx(be.span,{...e,ref:t,style:{...TU,...e.style}}));D_.displayName=_U;var PU=D_,Ns="NavigationMenu",[Sv,F_,AU]=bv(Ns),[lg,RU,jU]=bv(Ns),[kv,GK]=da(Ns,[AU,jU]),[NU,xn]=kv(Ns),[OU,IU]=kv(Ns),$_=v.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:s,delayDuration:o=200,skipDelayDuration:a=300,orientation:l="horizontal",dir:u,...c}=e,[d,f]=v.useState(null),h=Ke(t,A=>f(A)),y=wv(u),m=v.useRef(0),x=v.useRef(0),g=v.useRef(0),[b,w]=v.useState(!0),[S,C]=ha({prop:r,onChange:A=>{const j=A!=="",I=a>0;j?(window.clearTimeout(g.current),I&&w(!1)):(window.clearTimeout(g.current),g.current=window.setTimeout(()=>w(!0),a)),i==null||i(A)},defaultProp:s??"",caller:Ns}),k=v.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>C(""),150)},[C]),_=v.useCallback(A=>{window.clearTimeout(x.current),C(A)},[C]),R=v.useCallback(A=>{S===A?window.clearTimeout(x.current):m.current=window.setTimeout(()=>{window.clearTimeout(x.current),C(A)},o)},[S,C,o]);return v.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(x.current),window.clearTimeout(g.current)},[]),p.jsx(z_,{scope:n,isRootMenu:!0,value:S,dir:y,orientation:l,rootNavigationMenu:d,onTriggerEnter:A=>{window.clearTimeout(m.current),b?R(A):_(A)},onTriggerLeave:()=>{window.clearTimeout(m.current),k()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:k,onItemSelect:A=>{C(j=>j===A?"":A)},onItemDismiss:()=>C(""),children:p.jsx(be.nav,{"aria-label":"Main","data-orientation":l,dir:y,...c,ref:h})})});$_.displayName=Ns;var ug="NavigationMenuSub",LU=v.forwardRef((e,t)=>
vendor: 4,361 bytes, line 275
275{const{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:s,orientation:o="horizontal",...a}=e,l=xn(ug,n),[u,c]=ha({prop:r,onChange:i,defaultProp:s??"",caller:ug});return p.jsx(z_,{scope:n,isRootMenu:!1,value:u,dir:l.dir,orientation:o,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:d=>c(d),onItemSelect:d=>c(d),onItemDismiss:()=>c(""),children:p.jsx(be.div,{"data-orientation":o,...a,ref:t})})});LU.displayName=ug;var z_=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:i,orientation:s,children:o,value:a,onItemSelect:l,onItemDismiss:u,onTriggerEnter:c,onTriggerLeave:d,onContentEnter:f,onContentLeave:h}=e,[y,m]=v.useState(null),[x,g]=v.useState(new Map),[b,w]=v.useState(null);return p.jsx(NU,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:a,previousValue:CU(a),baseId:vs(),dir:i,orientation:s,viewport:y,onViewportChange:m,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:nt(c),onTriggerLeave:nt(d),onContentEnter:nt(f),onContentLeave:nt(h),onItemSelect:nt(l),onItemDismiss:nt(u),onViewportContentChange:v.useCallback((S,C)=>{g(k=>(k.set(S,C),new Map(k)))},[]),onViewportContentRemove:v.useCallback(S=>{g(C=>C.has(S)?(C.delete(S),new Map(C)):C)},[]),children:p.jsx(Sv.Provider,{scope:t,children:p.jsx(OU,{scope:t,items:x,children:o})})})},B_="NavigationMenuList",U_=v.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,i=xn(B_,n),s=p.jsx(be.ul,{"data-orientation":i.orientation,...r,ref:t});return p.jsx(be.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:p.jsx(Sv.Slot,{scope:n,children:i.isRootMenu?p.jsx(J_,{asChild:!0,children:s}):s})})});U_.displayName=B_;var V_="NavigationMenuItem",[MU,H_]=kv(V_),W_=v.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...i}=e,s=vs(),o=r||s||"LEGACY_REACT_AUTO_VALUE",a=v.useRef(null),l=v.useRef(null),u=v.useRef(null),c=v.useRef(()=>{}),d=v.useRef(!1),f=v.useCallback((y="start")=>{if(a.current){c.current();const m=dg(a.current);m.length&&Tv(y==="start"?m:m.reverse())}},[]),h=v.useCallback(()=>{if(a.current){const y=dg(a.current);y.length&&(c.current=HU(y))}},[]);return p.jsx(MU,{scope:n,value:o,triggerRef:l,contentRef:a,focusProxyRef:u,wasEscapeCloseRef:d,onEntryKeyDown:f,onFocusProxyEnter:f,onRootContentClose:h,onContentFocusOutside:h,children:p.jsx(be.li,{...i,ref:t})})});W_.displayName=V_;var cg="NavigationMenuTrigger",q_=v.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...i}=e,s=xn(cg,e.__scopeNavigationMenu),o=H_(cg,e.__scopeNavigationMenu),a=v.useRef(null),l=Ke(a,o.triggerRef,t),u=Z_(s.baseId,o.value),c=eP(s.baseId,o.value),d=v.useRef(!1),f=v.useRef(!1),h=o.value===s.value;return p.jsxs(p.Fragment,{children:[p.jsx(Sv.ItemSlot,{scope:n,value:o.value,children:p.jsx(X_,{asChild:!0,children:p.jsx(be.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":_v(h),"aria-expanded":h,"aria-controls":c,...i,ref:l,onPointerEnter:ve(e.onPointerEnter,()=>{f.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:ve(e.onPointerMove,_d(()=>{r||f.current||o.wasEscapeCloseRef.current||d.current||(s.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:ve(e.onPointerLeave,_d(()=>{r||(s.onTriggerLeave(),d.current=!1)})),onClick:ve(e.onClick,()=>{s.onItemSelect(o.value),f.current=h}),onKeyDown:ve(e.onKeyDown,y=>{const x={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];h&&y.key===x&&(o.onEntryKeyDown(),y.preventDefault())})})})}),h&&p.jsxs(p.Fragment,{children:[p.jsx(PU,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:y=>{const m=o.contentRef.current,x=y.relatedTarget,g=x===a.current,b=m==null?void 0:m.contains(x);(g||!b)&&o.onFocusProxyEnter(g?"start":"end")}}),s.viewport&&p.jsx("span",{"aria-owns":c})]})]})});q_.displayName=cg;var DU="NavigationMenuLink",Xx="navigationMenu.linkSelect",K_=v.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:i,...s}=e;return p.jsx(X_,{asChild:!0,children:p.jsx(be.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...s,ref:t,onClick:ve(e.onClick,o=>{const a=o.target,l=new CustomEvent(Xx,{bubbles:!0,cancelable:!0});if(a.addEventListener(Xx,u=>i==null?void 0:i(u),{once:!0}),og(a,l),!l.defaultPrevented&&!o.metaKey){const u=new CustomEvent(Nc,{bubbles:!0,cancelable:!0});og(a,u)}},{checkForDefaultPrevented:!1})})})});K_.displayName=DU;var Ev="NavigationMenuIndicator",FU=v.forwardRef((e,t)=>
275{const{forceMount:n,...r}=e,i=xn(Ev,e.__scopeNavigationMenu),s=!!i.value;return i.indicatorTrack?Ey.createPortal(p.jsx(rn,{present:n||s,children:p.jsx($U,{...r,ref:t})}),i.indicatorTrack):null});FU.displayName=Ev;var $U=v.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,i=xn(Ev,n),s=F_(n),[o,a]=v.useState(null),[l,u]=v.useState(null),c=i.orientation==="horizontal",d=!!i.value;v.useEffect(()=>{var m;const y=(m=s().find(x=>x.value===i.value))==null?void 0:m.ref.current;y&&a(y)},[s,i.value]);const f=()=>{o&&u({size:c?o.offsetWidth:o.offsetHeight,offset:c?o.offsetLeft:o.offsetTop})};return hg(o,f),hg(i.indicatorTrack,f),l?p.jsx(be.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation,...r,ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),Xo="NavigationMenuContent",G_=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=xn(Xo,e.__scopeNavigationMenu),s=H_(Xo,e.__scopeNavigationMenu),o=Ke(s.contentRef,t),a=s.value===i.value,l={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...r};return i.viewport?p.jsx(zU,{forceMount:n,...l,ref:o}):p.jsx(rn,{present:n||a,children:p.jsx(Y_,{"data-state":_v(a),...l,ref:o,onPointerEnter:ve(e.onPointerEnter,i.onContentEnter),onPointerLeave:ve(e.onPointerLeave,_d(i.onContentLeave)),style:{pointerEvents:!a&&i.isRootMenu?"none":void 0,...l.style}})})});G_.displayName=Xo;var zU=v.forwardRef((e,t)=>{const n=xn(Xo,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return gr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),gr(()=>()=>i(e.value),[e.value,i]),null}),Nc="navigationMenu.rootContentDismiss",Y_=v.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:s,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:l,...u}=e,c=xn(Xo,n),d=v.useRef(null),f=Ke(d,t),h=Z_(c.baseId,r),y=eP(c.baseId,r),m=F_(n),x=v.useRef(null),{onItemDismiss:g}=c;v.useEffect(()=>{const w=d.current;if(c.isRootMenu&&w){const S=()=>{var C;g(),a(),w.contains(document.activeElement)&&((C=i.current)==null||C.focus())};return w.addEventListener(Nc,S),()=>w.removeEventListener(Nc,S)}},[c.isRootMenu,e.value,i,g,a]);const b=v.useMemo(()=>{const S=m().map(j=>j.value);c.dir==="rtl"&&S.reverse();const C=S.indexOf(c.value),k=S.indexOf(c.previousValue),_=r===c.value,R=k===S.indexOf(r);if(!_&&!R)return x.current;const A=(()=>{if(C!==k){if(_&&k!==-1)return C>k?"from-end":"from-start";if(R&&C!==-1)return C>k?"to-start":"to-end"}return null})();return x.current=A,A},[c.previousValue,c.value,c.dir,m,r]);return p.jsx(J_,{asChild:!0,children:p.jsx(xv,{id:y,"aria-labelledby":h,"data-motion":b,"data-orientation":c.orientation,...u,ref:f,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const w=new Event(Nc,{bubbles:!0,cancelable:!0});(S=d.current)==null||S.dispatchEvent(w)},onFocusOutside:ve(e.onFocusOutside,w=>{var C;l();const S=w.target;(C=c.rootNavigationMenu)!=null&&C.contains(S)&&w.preventDefault()}),onPointerDownOutside:ve(e.onPointerDownOutside,w=>{var _;const S=w.target,C=m().some(R=>{var A;return(A=R.ref.current)==null?void 0:A.contains(S)}),k=c.isRootMenu&&((_=c.viewport)==null?void 0:_.contains(S));(C||k||!c.isRootMenu)&&w.preventDefault()}),onKeyDown:ve(e.onKeyDown,w=>{var k;const S=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!S){const _=dg(w.currentTarget),R=document.activeElement,A=_.findIndex(O=>O===R),I=w.shiftKey?_.slice(0,A).reverse():_.slice(A+1,_.length);Tv(I)?w.preventDefault():(k=s.current)==null||k.focus()}}),onEscapeKeyDown:ve(e.onEscapeKeyDown,w=>{o.current=!0})})})}),Cv="NavigationMenuViewport",Q_=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=!!xn(Cv,e.__scopeNavigationMenu).value;return p.jsx(rn,{present:n||s,children:p.jsx(BU,{...r,ref:t})})});Q_.displayName=Cv;var BU=v.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...i}=e,s=xn(Cv,n),o=Ke(t,s.onViewportChange),a=IU(Xo,e.__scopeNavigationMenu),[l,u]=v.useState(null),[c,d]=v.useState(null),f=l?(l==null?void 0:l.width)+"px":void 0,h=l?(l==null?void 0:l.height)+"px":void 0,y=!!s.value,m=y?s.value:s.previousValue;return hg(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),p.jsx(be.div,{"data-state":_v(y),"data-orientation":s.orientation,...i,ref:o,style:{pointerEvents:!y&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:ve(e.onPointerEnter,s.onContentEnter),onPointerLeave:ve(e.onPointerLeave,_d(s.onContentLeave)),children:Array.from(a.items).map(([g,{ref:b,forceMount:w,...S}])=>{const C=m===g;return p.jsx(rn,{present:w||C,children:p.jsx(Y_,{...S,ref:pv(b,k=>{C&&k&&d(k)})})},g)})})}),UU="FocusGroup",J_=v.forwardRef((e,t)=>
275{const{__scopeNavigationMenu:n,...r}=e,i=xn(UU,n);return p.jsx(lg.Provider,{scope:n,children:p.jsx(lg.Slot,{scope:n,children:p.jsx(be.div,{dir:i.dir,...r,ref:t})})})}),Zx=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],VU="FocusGroupItem",X_=v.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,i=RU(n),s=xn(VU,n);return p.jsx(lg.ItemSlot,{scope:n,children:p.jsx(be.button,{...r,ref:t,onKeyDown:ve(e.onKeyDown,o=>{if(["Home","End",...Zx].includes(o.key)){let l=i().map(d=>d.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&l.reverse(),Zx.includes(o.key)){const d=l.indexOf(o.currentTarget);l=l.slice(d+1)}setTimeout(()=>Tv(l)),o.preventDefault()}})})})});function dg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Tv(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function HU(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function hg(e,t){const n=nt(t);gr(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}function _v(e){return e?"open":"closed"}function Z_(e,t){return`${e}-trigger-${t}`}function eP(e,t){return`${e}-content-${t}`}function _d(e){return t=>t.pointerType==="mouse"?e(t):void 0}var WU=$_,qU=U_,KU=W_,GU=q_,YU=K_,QU=G_,JU=Q_;function XU({className:e,children:t,viewport:n=!0,...r}){return p.jsxs(WU,{"data-slot":"navigation-menu","data-viewport":n,className:he("group/navigation-menu flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,n&&p.jsx(eV,{})]})}function ZU({className:e,...t}){return p.jsx(qU,{"data-slot":"navigation-menu-list",className:he("group flex flex-1 list-none items-center justify-center gap-1",e),...t})}function e1({className:e,...t}){return p.jsx(KU,{"data-slot":"navigation-menu-item",className:he("relative",e),...t})}function t1({className:e,children:t,...n}){return p.jsxs(GU,{"data-slot":"navigation-menu-trigger",className:he("group hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 inline-flex w-max items-center justify-center rounded-md px-4 py-1 text-sm font-medium transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50",e),...n,children:[t," ",p.jsx(mv,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function n1({className:e,...t}){return p.jsx(QU,{"data-slot":"navigation-menu-content",className:he("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full md:absolute md:w-auto",e),...t})}function eV({className:e,...t}){return p.jsx("div",{className:"absolute left-0 top-full flex w-full justify-center",children:p.jsx(JU,{"data-slot":"navigation-menu-viewport",className:he("origin-top bg-background/95 supports-[backdrop-filter]:bg-background/60 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow backdrop-blur-xl md:w-[var(--radix-navigation-menu-viewport-width)]",e),...t})})}function r1({className:e,...t}){return p.jsx(YU,{"data-slot":"navigation-menu-link",className:he("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",e),...t})}function tV({item:e,className:t,href:n,...r}){return p.jsxs($n,{to:n,className:he("hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground group relative flex gap-1 gap-x-2 rounded-sm p-2 text-sm transition-all outline-none",t),children:[p.jsx("div",{className:he("bg-muted/20 flex size-10 items-center justify-center rounded-lg border"),children:e.icon&&p.jsx(e.icon,{})}),p.jsxs("div",{className:he("flex h-10 flex-col justify-center"),children:[p.jsx("p",{className:"text-sm",children:e.title}),p.jsx("span",{className:"text-muted-foreground line-clamp-1 text-xs leading-snug",children:e.description})]})]})}var Lf="focusScope.autoFocusOnMount",Mf="focusScope.autoFocusOnUnmount",i1={bubbles:!1,cancelable:!0},nV="FocusScope",tP=v.forwardRef((e,t)=>
vendor: 5,193 bytes, line 275
275{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=e,[a,l]=v.useState(null),u=nt(i),c=nt(s),d=v.useRef(null),f=Ke(t,m=>l(m)),h=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let m=function(w){if(h.paused||!a)return;const S=w.target;a.contains(S)?d.current=S:Zr(d.current,{select:!0})},x=function(w){if(h.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||Zr(d.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&Zr(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(g);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[r,a,h.paused]),v.useEffect(()=>{if(a){o1.add(h);const m=document.activeElement;if(!a.contains(m)){const g=new CustomEvent(Lf,i1);a.addEventListener(Lf,u),a.dispatchEvent(g),g.defaultPrevented||(rV(lV(nP(a)),{select:!0}),document.activeElement===m&&Zr(a))}return()=>{a.removeEventListener(Lf,u),setTimeout(()=>{const g=new CustomEvent(Mf,i1);a.addEventListener(Mf,c),a.dispatchEvent(g),g.defaultPrevented||Zr(m??document.body,{select:!0}),a.removeEventListener(Mf,c),o1.remove(h)},0)}}},[a,u,c,h]);const y=v.useCallback(m=>{if(!n&&!r||h.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(x&&g){const b=m.currentTarget,[w,S]=iV(b);w&&S?!m.shiftKey&&g===S?(m.preventDefault(),n&&Zr(w,{select:!0})):m.shiftKey&&g===w&&(m.preventDefault(),n&&Zr(S,{select:!0})):g===b&&m.preventDefault()}},[n,r,h.paused]);return p.jsx(be.div,{tabIndex:-1,...o,ref:f,onKeyDown:y})});tP.displayName=nV;function rV(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Zr(r,{select:t}),document.activeElement!==n)return}function iV(e){const t=nP(e),n=s1(t,e),r=s1(t.reverse(),e);return[n,r]}function nP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function s1(e,t){for(const n of e)if(!sV(n,{upTo:t}))return n}function sV(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function oV(e){return e instanceof HTMLInputElement&&"select"in e}function Zr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&oV(e)&&t&&e.select()}}var o1=aV();function aV(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=a1(e,t),e.unshift(t)},remove(t){var n;e=a1(e,t),(n=e[0])==null||n.resume()}}}function a1(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function lV(e){return e.filter(t=>t.tagName!=="A")}var uV="Portal",rP=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,s]=v.useState(!1);gr(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Ey.createPortal(p.jsx(be.div,{...r,ref:t}),o):null});rP.displayName=uV;var Df=0;function cV(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??l1()),document.body.insertAdjacentElement("beforeend",e[1]??l1()),Df++,()=>{Df===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Df--}},[])}function l1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var dr=function(){return dr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},dr.apply(this,arguments)};function iP(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function dV(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Oc="right-scroll-bar-position",Ic="width-before-scroll-bar",hV="with-scroll-bars-hidden",fV="--removed-body-scroll-bar-size";function Ff(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pV(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var mV=typeof window<"u"?v.useLayoutEffect:v.useEffect,u1=new WeakMap;function gV(e,t){var n=pV(null,function(r){return e.forEach(function(i){return Ff(i,r)})});
vendor: 4,281 bytes, lines 275-290
275return mV(function(){var r=u1.get(n);if(r){var i=new Set(r),s=new Set(e),o=n.current;i.forEach(function(a){s.has(a)||Ff(a,null)}),s.forEach(function(a){i.has(a)||Ff(a,o)})}u1.set(n,e)},[e]),n}function yV(e){return e}function vV(e,t){t===void 0&&(t=yV);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var o=t(s,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(s),o=n}var l=function(){var c=o;o=[],c.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){o.push(c),u()},filter:function(c){return o=o.filter(c),n}}}};return i}function wV(e){e===void 0&&(e={});var t=vV(null);return t.options=dr({async:!0,ssr:!1},e),t}var sP=function(e){var t=e.sideCar,n=iP(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,dr({},n))};sP.isSideCarExport=!0;function bV(e,t){return e.useMedium(t),sP}var oP=wV(),$f=function(){},mh=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:$f,onWheelCapture:$f,onTouchMoveCapture:$f}),i=r[0],s=r[1],o=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,y=e.noIsolation,m=e.inert,x=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,w=e.gapMode,S=iP(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,k=gV([n,t]),_=dr(dr({},S),i);return v.createElement(v.Fragment,null,c&&v.createElement(C,{sideCar:oP,removeScrollBar:u,shards:d,noRelative:h,noIsolation:y,inert:m,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:w}),o?v.cloneElement(v.Children.only(a),dr(dr({},_),{ref:k})):v.createElement(b,dr({},_,{className:l,ref:k}),a))});mh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};mh.classNames={fullWidth:Ic,zeroRight:Oc};var xV=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SV(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xV();return t&&e.setAttribute("nonce",t),e}function kV(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function EV(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var CV=function(){var e=0,t=null;return{add:function(n){e==0&&(t=SV())&&(kV(t,n),EV(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},TV=function(){var e=CV();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},aP=function(){var e=TV(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},_V={left:0,top:0,right:0,gap:0},zf=function(e){return parseInt(e||"",10)||0},PV=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[zf(n),zf(r),zf(i)]},AV=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _V;var t=PV(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},RV=aP(),To="data-scroll-locked",jV=function(e,t,n,r){var i=e.left,s=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
276  .`.concat(hV,` {
277   overflow: hidden `).concat(r,`;
278   padding-right: `).concat(a,"px ").concat(r,`;
279  }
280  body[`).concat(To,`] {
281    overflow: hidden `).concat(r,`;
282    overscroll-behavior: contain;
283    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
284    padding-left: `.concat(i,`px;
285    padding-top: `).concat(s,`px;
286    padding-right: `).concat(o,`px;
287    margin-left:0;
288    margin-top:0;
289    margin-right: `).concat(a,"px ").concat(r,`;
290    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
290")].filter(Boolean).join(""),`
291  }
292  
293  .`).concat(Oc,` {
294    right: `).concat(a,"px ").concat(r,`;
295  }
296  
297  .`).concat(Ic,` {
298    margin-right: `).concat(a,"px ").concat(r,`;
299  }
300  
301  .`).concat(Oc," .").concat(Oc,` {
302    right: 0 `).concat(r,`;
303  }
304  
305  .`).concat(Ic," .").concat(Ic,` {
306    margin-right: 0 `).concat(r,`;
307  }
308  
309  body[`).concat(To,`] {
310    `).concat(fV,": ").concat(a,`px;
311  }
312`)},c1=function(){var e=parseInt(document.body.getAttribute(To)||"0",10);return isFinite(e)?e:0},NV=function(){v.useEffect(function(){return document.body.setAttribute(To,(c1()+1).toString()),function(){var e=c1()-1;e<=0?document.body.removeAttribute(To):document.body.setAttribute(To,e.toString())}},[])},OV=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;NV();var s=v.useMemo(function(){return AV(i)},[i]);return v.createElement(RV,{styles:jV(s,!t,i,n?"":"!important")})},fg=!1;if(typeof window<"u")try{var ec=Object.defineProperty({},"passive",{get:function(){return fg=!0,!0}});window.addEventListener("test",ec,ec),window.removeEventListener("test",ec,ec)}catch{fg=!1}var Vs=fg?{passive:!1}:!1,IV=function(e){return e.tagName==="TEXTAREA"},lP=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!IV(e)&&n[t]==="visible")},LV=function(e){return lP(e,"overflowY")},MV=function(e){return lP(e,"overflowX")},d1=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=uP(e,r);if(i){var s=cP(e,r),o=s[1],a=s[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},DV=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},FV=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},uP=function(e,t){return e==="v"?LV(t):MV(t)},cP=function(e,t){return e==="v"?DV(t):FV(t)},$V=function(e,t){return e==="h"&&t==="rtl"?-1:1},zV=function(e,t,n,r,i){var s=$V(e,window.getComputedStyle(t).direction),o=s*r,a=n.target,l=t.contains(a),u=!1,c=o>0,d=0,f=0;do{if(!a)break;var h=cP(e,a),y=h[0],m=h[1],x=h[2],g=m-x-s*y;(y||g)&&uP(e,a)&&(d+=g,f+=y);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(d)<1||!i)||!c&&(Math.abs(f)<1||!i))&&(u=!0),u},tc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},h1=function(e){return[e.deltaX,e.deltaY]},f1=function(e){return e&&"current"in e?e.current:e},BV=function(e,t){return e[0]===t[0]&&e[1]===t[1]},UV=function(e){return`
313  .block-interactivity-`.concat(e,` {pointer-events: none;}
314  .allow-interactivity-`).concat(e,` {pointer-events: all;}
315`)},VV=0,Hs=[];function HV(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(VV++)[0],s=v.useState(aP)[0],o=v.useRef(e);v.useEffect(function(){o.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=dV([e.lockRef.current],(e.shards||[]).map(f1),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var g=tc(m),b=n.current,w="deltaX"in m?m.deltaX:b[0]-g[0],S="deltaY"in m?m.deltaY:b[1]-g[1],C,k=m.target,_=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in m&&_==="h"&&k.type==="range")return!1;var R=d1(_,k);if(!R)return!0;if(R?C=_:(C=_==="v"?"h":"v",R=d1(_,k)),!R)return!1;if(!r.current&&"changedTouches"in m&&(w||S)&&(r.current=C),!C)return!0;var A=r.current||C;return zV(A,x,m,A==="h"?w:S,!0)},[]),l=v.useCallback(function(m){var x=m;if(!(!Hs.length||Hs[Hs.length-1]!==s)){var g="deltaY"in x?h1(x):tc(x),b=t.current.filter(function(C){return C.name===x.type&&(C.target===x.target||x.target===C.shadowParent)&&BV(C.delta,g)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}
vendor: 3,648 bytes, line 315
315if(!b){var w=(o.current.shards||[]).map(f1).filter(Boolean).filter(function(C){return C.contains(x.target)}),S=w.length>0?a(x,w[0]):!o.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=v.useCallback(function(m,x,g,b){var w={name:m,delta:x,target:g,should:b,shadowParent:WV(g)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),c=v.useCallback(function(m){n.current=tc(m),r.current=void 0},[]),d=v.useCallback(function(m){u(m.type,h1(m),m.target,a(m,e.lockRef.current))},[]),f=v.useCallback(function(m){u(m.type,tc(m),m.target,a(m,e.lockRef.current))},[]);v.useEffect(function(){return Hs.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Vs),document.addEventListener("touchmove",l,Vs),document.addEventListener("touchstart",c,Vs),function(){Hs=Hs.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,Vs),document.removeEventListener("touchmove",l,Vs),document.removeEventListener("touchstart",c,Vs)}},[]);var h=e.removeScrollBar,y=e.inert;return v.createElement(v.Fragment,null,y?v.createElement(s,{styles:UV(i)}):null,h?v.createElement(OV,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function WV(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qV=bV(oP,HV);var dP=v.forwardRef(function(e,t){return v.createElement(mh,dr({},e,{ref:t,sideCar:qV}))});dP.classNames=mh.classNames;var KV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ws=new WeakMap,nc=new WeakMap,rc={},Bf=0,hP=function(e){return e&&(e.host||hP(e.parentNode))},GV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hP(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},YV=function(e,t,n,r){var i=GV(t,Array.isArray(e)?e:[e]);rc[n]||(rc[n]=new WeakMap);var s=rc[n],o=[],a=new Set,l=new Set(i),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};i.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))c(f);else try{var h=f.getAttribute(r),y=h!==null&&h!=="false",m=(Ws.get(f)||0)+1,x=(s.get(f)||0)+1;Ws.set(f,m),s.set(f,x),o.push(f),m===1&&y&&nc.set(f,!0),x===1&&f.setAttribute(n,"true"),y||f.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",f,g)}})};return c(t),a.clear(),Bf++,function(){o.forEach(function(d){var f=Ws.get(d)-1,h=s.get(d)-1;Ws.set(d,f),s.set(d,h),f||(nc.has(d)||d.removeAttribute(r),nc.delete(d)),h||d.removeAttribute(n)}),Bf--,Bf||(Ws=new WeakMap,Ws=new WeakMap,nc=new WeakMap,rc={})}},QV=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=KV(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),YV(r,i,n,"aria-hidden")):function(){return null}},gh="Dialog",[fP,YK]=da(gh),[JV,Kn]=fP(gh),pP=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:o=!0}=e,a=v.useRef(null),l=v.useRef(null),[u,c]=ha({prop:r,defaultProp:i??!1,onChange:s,caller:gh});return p.jsx(JV,{scope:t,triggerRef:a,contentRef:l,contentId:vs(),titleId:vs(),descriptionId:vs(),open:u,onOpenChange:c,onOpenToggle:v.useCallback(()=>c(d=>!d),[c]),modal:o,children:n})};pP.displayName=gh;var mP="DialogTrigger",gP=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Kn(mP,n),s=Ke(t,i.triggerRef);return p.jsx(be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Rv(i.open
vendor: 5,690 bytes, lines 315-319
315),...r,ref:s,onClick:ve(e.onClick,i.onOpenToggle)})});gP.displayName=mP;var Pv="DialogPortal",[XV,yP]=fP(Pv,{forceMount:void 0}),vP=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=Kn(Pv,t);return p.jsx(XV,{scope:t,forceMount:n,children:v.Children.map(r,o=>p.jsx(rn,{present:n||s.open,children:p.jsx(rP,{asChild:!0,container:i,children:o})}))})};vP.displayName=Pv;var Pd="DialogOverlay",wP=v.forwardRef((e,t)=>{const n=yP(Pd,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Kn(Pd,e.__scopeDialog);return s.modal?p.jsx(rn,{present:r||s.open,children:p.jsx(e3,{...i,ref:t})}):null});wP.displayName=Pd;var ZV=Wl("DialogOverlay.RemoveScroll"),e3=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Kn(Pd,n);return p.jsx(dP,{as:ZV,allowPinchZoom:!0,shards:[i.contentRef],children:p.jsx(be.div,{"data-state":Rv(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),_s="DialogContent",bP=v.forwardRef((e,t)=>{const n=yP(_s,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Kn(_s,e.__scopeDialog);return p.jsx(rn,{present:r||s.open,children:s.modal?p.jsx(t3,{...i,ref:t}):p.jsx(n3,{...i,ref:t})})});bP.displayName=_s;var t3=v.forwardRef((e,t)=>{const n=Kn(_s,e.__scopeDialog),r=v.useRef(null),i=Ke(t,n.contentRef,r);return v.useEffect(()=>{const s=r.current;if(s)return QV(s)},[]),p.jsx(xP,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:ve(e.onFocusOutside,s=>s.preventDefault())})}),n3=v.forwardRef((e,t)=>{const n=Kn(_s,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return p.jsx(xP,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),xP=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=e,a=Kn(_s,n),l=v.useRef(null),u=Ke(t,l);return cV(),p.jsxs(p.Fragment,{children:[p.jsx(tP,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:p.jsx(xv,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Rv(a.open),...o,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(r3,{titleId:a.titleId}),p.jsx(s3,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Av="DialogTitle",SP=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Kn(Av,n);return p.jsx(be.h2,{id:i.titleId,...r,ref:t})});SP.displayName=Av;var kP="DialogDescription",EP=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Kn(kP,n);return p.jsx(be.p,{id:i.descriptionId,...r,ref:t})});EP.displayName=kP;var CP="DialogClose",TP=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Kn(CP,n);return p.jsx(be.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,()=>i.onOpenChange(!1))})});TP.displayName=CP;function Rv(e){return e?"open":"closed"}var _P="DialogTitleWarning",[QK,PP]=sU(_P,{contentName:_s,titleName:Av,docsSlug:"dialog"}),r3=({titleId:e})=>{const t=PP(_P),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
316
317If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
318
319For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},i3="DialogDescriptionWarning",s3=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${PP(i3).contentName}}.`;return v.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},o3=pP,a3=gP,l3=vP,AP=wP,RP=bP,jP=SP,NP=EP,OP=TP;const IP=o3,LP=a3,Uf=OP,u3=l3,MP=v.forwardRef(({className:e,...t},n)=>p.jsx(AP,{className:he("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));MP.displayName=AP.displayName;const c3=T_("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),jv=v.forwardRef(({side:e="right",className:t,children:n,showClose:r=!0,...i},s)=>p.jsxs(u3,{children:[p.jsx(MP,{}),p.jsxs(RP,{ref:s,className:he(c3({side:e}),t),...i,children:[n,r&&p.jsxs(OP,{className:"absolute right-4 top-4 roun
319ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(O_,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));jv.displayName=RP.displayName;const DP=({className:e,...t})=>p.jsx("div",{className:he("flex flex-col space-y-2 text-center sm:text-left",e),...t});DP.displayName="SheetHeader";const FP=v.forwardRef(({className:e,...t},n)=>p.jsx(jP,{ref:n,className:he("text-lg font-semibold text-foreground",e),...t}));FP.displayName=jP.displayName;const d3=v.forwardRef(({className:e,...t},n)=>p.jsx(NP,{ref:n,className:he("text-sm text-muted-foreground",e),...t}));d3.displayName=NP.displayName;var yh="Collapsible",[h3,$P]=da(yh),[f3,Nv]=h3(yh),zP=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:o,...a}=e,[l,u]=ha({prop:r,defaultProp:i??!1,onChange:o,caller:yh});return p.jsx(f3,{scope:n,disabled:s,contentId:vs(),open:l,onOpenToggle:v.useCallback(()=>u(c=>!c),[u]),children:p.jsx(be.div,{"data-state":Iv(l),"data-disabled":s?"":void 0,...a,ref:t})})});zP.displayName=yh;var BP="CollapsibleTrigger",UP=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=Nv(BP,n);return p.jsx(be.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Iv(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:ve(e.onClick,i.onOpenToggle)})});UP.displayName=BP;var Ov="CollapsibleContent",VP=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Nv(Ov,e.__scopeCollapsible);return p.jsx(rn,{present:n||i.open,children:({present:s})=>p.jsx(p3,{...r,ref:t,present:s})})});VP.displayName=Ov;var p3=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...s}=e,o=Nv(Ov,n),[a,l]=v.useState(r),u=v.useRef(null),c=Ke(t,u),d=v.useRef(0),f=d.current,h=v.useRef(0),y=h.current,m=o.open||a,x=v.useRef(m),g=v.useRef(void 0);return v.useEffect(()=>{const b=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(b)},[]),gr(()=>{const b=u.current;if(b){g.current=g.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const w=b.getBoundingClientRect();d.current=w.height,h.current=w.width,x.current||(b.style.transitionDuration=g.current.transitionDuration,b.style.animationName=g.current.animationName),l(r)}},[o.open,r]),p.jsx(be.div,{"data-state":Iv(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!m,...s,ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:m&&i})});function Iv(e){return e?"open":"closed"}var m3=zP,g3=UP,y3=VP,Gn="Accordion",v3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Lv,w3,b3]=bv(Gn),[vh,JK]=da(Gn,[b3,$P]),Mv=$P(),HP=L.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,s=r;return p.jsx(Lv.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx(E3,{...s,ref:t}):p.jsx(k3,{...i,ref:t})})});HP.displayName=Gn;var[WP,x3]=vh(Gn),[qP,S3]=vh(Gn,{collapsible:!1}),k3=L.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:s=!1,...o}=e,[a,l]=ha({prop:n,defaultProp:r??"",onChange:i,caller:Gn});return p.jsx(WP,{scope:e.__scopeAccordion,value:L.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:L.useCallback(()=>s&&l(""),[s,l]),children:p.jsx(qP,{scope:e.__scopeAccordion,collapsible:s,children:p.jsx(KP,{...o,ref:t})})})}),E3=L.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o,a]=ha({prop:n,defaultProp:r??[],onChange:i,caller:Gn}),l=L.useCallback(c=>a((d=[])=>
319[...d,c]),[a]),u=L.useCallback(c=>a((d=[])=>d.filter(f=>f!==c)),[a]);return p.jsx(WP,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:u,children:p.jsx(qP,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(KP,{...s,ref:t})})})}),[C3,wh]=vh(Gn),KP=L.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:s="vertical",...o}=e,a=L.useRef(null),l=Ke(a,t),u=w3(n),d=wv(i)==="ltr",f=ve(e.onKeyDown,h=>{var R;if(!v3.includes(h.key))return;const y=h.target,m=u().filter(A=>{var j;return!((j=A.ref.current)!=null&&j.disabled)}),x=m.findIndex(A=>A.ref.current===y),g=m.length;if(x===-1)return;h.preventDefault();let b=x;const w=0,S=g-1,C=()=>{b=x+1,b>S&&(b=w)},k=()=>{b=x-1,b<w&&(b=S)};switch(h.key){case"Home":b=w;break;case"End":b=S;break;case"ArrowRight":s==="horizontal"&&(d?C():k());break;case"ArrowDown":s==="vertical"&&C();break;case"ArrowLeft":s==="horizontal"&&(d?k():C());break;case"ArrowUp":s==="vertical"&&k();break}const _=b%g;(R=m[_].ref.current)==null||R.focus()});return p.jsx(C3,{scope:n,disabled:r,direction:i,orientation:s,children:p.jsx(Lv.Slot,{scope:n,children:p.jsx(be.div,{...o,"data-orientation":s,ref:l,onKeyDown:r?void 0:f})})})}),Ad="AccordionItem",[T3,Dv]=vh(Ad),GP=L.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,s=wh(Ad,n),o=x3(Ad,n),a=Mv(n),l=vs(),u=r&&o.value.includes(r)||!1,c=s.disabled||e.disabled;return p.jsx(T3,{scope:n,open:u,disabled:c,triggerId:l,children:p.jsx(m3,{"data-orientation":s.orientation,"data-state":eA(u),...a,...i,ref:t,disabled:c,open:u,onOpenChange:d=>{d?o.onItemOpen(r):o.onItemClose(r)}})})});GP.displayName=Ad;var YP="AccordionHeader",QP=L.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=wh(Gn,n),s=Dv(YP,n);return p.jsx(be.h3,{"data-orientation":i.orientation,"data-state":eA(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});QP.displayName=YP;var pg="AccordionTrigger",JP=L.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=wh(Gn,n),s=Dv(pg,n),o=S3(pg,n),a=Mv(n);return p.jsx(Lv.ItemSlot,{scope:n,children:p.jsx(g3,{"aria-disabled":s.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...a,...r,ref:t})})});JP.displayName=pg;var XP="AccordionContent",ZP=L.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=wh(Gn,n),s=Dv(XP,n),o=Mv(n);return p.jsx(y3,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});ZP.displayName=XP;function eA(e){return e?"open":"closed"}var _3=HP,P3=GP,A3=QP,tA=JP,nA=ZP;const R3=_3,rA=v.forwardRef(({className:e,...t},n)=>p.jsx(P3,{ref:n,className:he("border-b",e),...t}));rA.displayName="AccordionItem";const iA=v.forwardRef(({className:e,children:t,...n},r)=>p.jsx(A3,{className:"flex",children:p.jsxs(tA,{ref:r,className:he("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,p.jsx(mv,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));iA.displayName=tA.displayName;const sA=v.forwardRef(({className:e,children:t,...n},r)=>p.jsx(nA,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:p.jsx("div",{className:he("pb-4 pt-0",e),children:t})}));sA.displayName=nA.displayName;const j3="/assets/zpl-logo-5mezsoiB.png",mg="/assets/cybergen-logo-CsE2NzV6.png",p1=[{title:"Home",href:"/",description:"Return to homepage",icon:A_},{title:"About",href:"/about",description:"Learn about our mission and vision",icon:GB},{title:"Team",href:"/team",description:"Meet our advisory board",icon:N_}],m1=[{title:"Research",href:"/research",description:"Explore our research projects",icon:qB},{title:"Insights",href:"/insights",description:"Publications and white papers",icon:YB},{title:"Blog",href:"/blog",description:"Latest news and updates",icon:P_}],N3=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState(!1),{scrollY:i}=IT(),o=wr().pathname==="/";xF(i,"change",l=>{const u=i.getPrevious()??0;t(l>
31920),l>100&&l>u?r(!0):r(!1)});const a=[{id:"company",name:"Company",list:p1},{id:"research",name:"Research",list:m1}];return p.jsx(ie.nav,{className:`fixed top-0 w-full z-50 transition-all duration-500 ${e?"bg-background/60 backdrop-blur-xl border-b border-primary/10 shadow-[0_4px_30px_rgba(0,0,0,0.3)]":o?"bg-transparent border-b border-transparent":"bg-background/95 backdrop-blur-md border-b border-border"}`,initial:{y:0},animate:{y:n?-80:0},transition:{duration:.3,ease:[.4,0,.2,1]},children:p.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:p.jsxs("div",{className:"flex justify-between items-center h-16",children:[p.jsxs($n,{to:"/",className:"flex items-center space-x-4",children:[p.jsx("img",{src:j3,alt:"Zero Point Labs",className:"h-8 w-8"}),p.jsxs("div",{className:"hidden sm:block",children:[p.jsx("h1",{className:"text-lg font-bold text-foreground",children:"Zero Point Labs"}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"AI Think Tank"})]})]}),p.jsx("div",{className:"hidden lg:flex items-center",children:p.jsx(XU,{children:p.jsxs(ZU,{children:[p.jsxs(e1,{children:[p.jsx(t1,{children:"Company"}),p.jsx(n1,{children:p.jsx("ul",{className:"grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2",children:p1.map(l=>p.jsx("li",{children:p.jsx(r1,{asChild:!0,children:p.jsxs($n,{to:l.href,className:"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent/10 hover:text-foreground focus:bg-accent/10 focus:text-foreground",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[l.icon&&p.jsx(l.icon,{className:"h-4 w-4"}),p.jsx("div",{className:"text-sm font-medium leading-none",children:l.title})]}),p.jsx("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground hover:text-foreground/80",children:l.description})]})})},l.href))})})]}),p.jsxs(e1,{children:[p.jsx(t1,{children:"Research"}),p.jsx(n1,{children:p.jsx("ul",{className:"grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2",children:m1.map(l=>p.jsx("li",{children:p.jsx(r1,{asChild:!0,children:p.jsxs($n,{to:l.href,className:"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent/10 hover:text-foreground focus:bg-accent/10 focus:text-foreground",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[l.icon&&p.jsx(l.icon,{className:"h-4 w-4"}),p.jsx("div",{className:"text-sm font-medium leading-none",children:l.title})]}),p.jsx("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground hover:text-foreground/80",children:l.description})]})})},l.href))})})]})]})})}),p.jsxs("div",{className:"flex items-center space-x-4",children:[p.jsxs("a",{href:"https://cybergen.ai?ref=zeropointlabs",target:"_blank",rel:"noopener noreferrer",className:"hidden sm:flex items-center space-x-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[p.jsx("img",{src:mg,alt:"CyberGen",className:"h-5 w-5"}),p.jsx("span",{children:"CyberGen"}),p.jsx(ig,{className:"h-3 w-3"})]}),p.jsxs(IP,{children:[p.jsx(LP,{asChild:!0,children:p.jsx(rt,{size:"icon",variant:"ghost",className:"rounded-full lg:hidden",children:p.jsx(XB,{className:"h-5 w-5"})})}),p.jsxs(jv,{className:"bg-background/95 supports-[backdrop-filter]:bg-background/80 w-full gap-0 backdrop-blur-lg",showClose:!1,children:[p.jsx("div",{className:"flex h-14 items-center justify-end border-b px-4",children:p.jsx(Uf,{asChild:!0,children:p.jsxs(rt,{size:"icon",variant:"ghost",className:"rounded-full",children:[p.jsx(O_,{className:"h-5 w-5"}),p.jsx("span",{className:"sr-only",children:"Close"})]})})}),p.jsxs("div",{className:"container grid gap-y-2 overflow-y-auto px-4 pt-5 pb-12",children:[p.jsx(R3,{type:"single",collapsible:!0,children:a.map(l=>p.jsxs(rA,{value:l.id,children:[p.jsx(iA,{className:"capitalize hover:no-underline",children:l.name}),p.jsx(sA,{className:"space-y-1",children:p.jsx("ul",{className:"grid gap-1",children:l.list.map(u=>p.jsx("li",{children:p.jsx(Uf,{asChild:!0,children:p.jsx(tV,{item:u,href:u.href})})},u.href))})})]},l.id))}),p.jsx("div",{className:"border-t border-border pt-4 mt-4",children:p.jsx(Uf,{asChild:!0,children:p.jsxs("a",{href:"https://cybergen.ai?ref=zeropointlabs",target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-2 px-3 py-2 text-sm text-muted-foreground hover:text-foreground rounded-md transition-colors",children:[p.jsx("img",{src:mg,alt:"CyberGen",className:"h-5 w-5"}),p.jsx("span",{children:"Visit CyberGen"}),p.jsx(ig,{className:"h-3 w-3"})]})})})]})]})]})]})]})})})},O3=({delay:e,x:t,size:n})=>p.jsx(ie.div,{className:"absolute rounded-full bg-primary/20",style:{width:n,height:n,left:`${t}%`},initial:{y:"110vh",opacity:0}
319,animate:{y:"-10vh",opacity:[0,.6,.6,0]},transition:{duration:8+Math.random()*6,delay:e,repeat:1/0,ease:"linear"}}),Vf=({className:e,delay:t})=>p.jsx(ie.div,{className:`absolute rounded-full blur-3xl pointer-events-none ${e}`,animate:{scale:[1,1.2,1],opacity:[.15,.3,.15]},transition:{duration:6,delay:t,repeat:1/0,ease:"easeInOut"}});function I3(){const[e,t]=v.useState(!1),n=v.useRef(null),{scrollYProgress:r}=IT({target:n,offset:["start start","end start"]}),i=_c(r,[0,.5],[1,0]),s=_c(r,[0,.5],[1,.95]),o=_c(r,[0,.5],[0,80]),[a]=v.useState(()=>Array.from({length:20},(l,u)=>({id:u,delay:Math.random()*8,x:Math.random()*100,size:2+Math.random()*4})));return p.jsxs("div",{ref:n,className:"min-h-screen bg-background text-foreground overflow-x-hidden relative",children:[p.jsx(Vf,{className:"w-[600px] h-[600px] bg-primary/20 -top-40 -left-40",delay:0}),p.jsx(Vf,{className:"w-[400px] h-[400px] bg-accent/15 top-1/3 right-0",delay:2}),p.jsx(Vf,{className:"w-[500px] h-[500px] bg-primary/10 bottom-0 left-1/3",delay:4}),p.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:a.map(l=>p.jsx(O3,{...l},l.id))}),p.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.03]",style:{backgroundImage:"linear-gradient(hsl(var(--primary)) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--primary)) 1px, transparent 1px)",backgroundSize:"60px 60px"}}),p.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[p.jsx("div",{className:"absolute inset-0 bg-background/40"}),p.jsx(ie.div,{className:"absolute inset-0 bg-gradient-to-r from-primary/15 via-transparent to-transparent",initial:{opacity:0}
319,animate:{opacity:1},transition:{duration:1.5,delay:.2}}),p.jsx(ie.div,{className:"absolute inset-0 bg-gradient-to-bl from-accent/10 via-transparent to-transparent",initial:{opacity:0},animate:{opacity:1},transition:{duration:1.5,delay:.4}})]}),p.jsxs(ie.main,{className:"main min-h-screen pt-[200px] md:pt-[280px] pb-20 relative","aria-label":"Hero section",style:{opacity:i,scale:s,y:o},children:[!e&&p.jsx("div",{className:"absolute -top-[20%] left-0 w-full h-[120%] z-0 bg-gradient-hero"}),p.jsx("video",{className:`hero-video absolute -top-[20%] left-0 w-full h-[120%] object-cover z-0 transition-opacity duration-1000 ${e?"opacity-60":"opacity-0"}`,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"aria-hidden":"true",onLoadedData:()=>t(!0),children:p.jsx("source",{src:"https://mybycketvercelprojecttest.s3.sa-east-1.amazonaws.com/animation-bg.mp4",type:"video/mp4"})}),p.jsxs("div",{className:"content-wrapper max-w-[1400px] mx-auto px-6 md:px-[60px] relative z-[2]",children:[p.jsxs("div",{className:"max-w-[900px]",children:[p.jsxs(ie.div,{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-primary/30 bg-primary/5 backdrop-blur-sm mb-8",initial:{opacity:0,y:20,scale:.9},animate:{opacity:1,y:0,scale:1},transition:{duration:.6,ease:[.25,.1,.25,1]},children:[p.jsxs("span",{className:"relative flex h-2 w-2",children:[p.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"}),p.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-primary"})]}),p.jsx("span",{className:"text-sm text-primary font-medium",children:"AI Research Think Tank"})]}),p.jsxs(ie.h1,{className:"text-5xl md:text-7xl lg:text-[88px] font-light leading-[1.05] mb-8 tracking-[-3px] text-foreground",initial:{opacity:0,y:60},animate:{opacity:1,y:0},transition:{duration:.9,delay:.15,ease:[.25,.1,.25,1]},children:[p.jsx("span",{className:"block",children:"Zero Point"}),p.jsx("span",{className:"block bg-gradient-to-r from-primary via-primary-glow to-accent bg-clip-text text-transparent",children:"Labs"})]}),p.jsx(ie.p,{className:"text-lg md:text-xl leading-relaxed text-muted-foreground mb-12 font-normal max-w-[680px]",initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3,ease:[.25,.1,.25,1]},children:"An AI innovation hub specializing in groundbreaking research. Our expertise in large language models, AI security, and robust machine learning drives breakthrough technologies that transform science and improve lives."}),p.jsxs(ie.div,{className:"flex flex-col sm:flex-row gap-4 items-start sm:items-center",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.45,ease:[.25,.1,.25,1]},children:[p.jsxs(ie.a,{href:"https://cybergen.ai/contact?ref=zeropointlabs",target:"_blank",rel:"noopener noreferrer",className:"group flex items-center gap-3 bg-primary text-primary-foreground py-4 px-8 rounded-lg text-base font-semibold hover:shadow-glow transition-all duration-300 relative overflow-hidden",whileHover:{scale:1.03},whileTap:{scale:.98},children:[p.jsx("span",{className:"relative z-10",children:"Get Started"}),p.jsx(qa,{className:"w-5 h-5 relative z-10 group-hover:translate-x-1 transition-transform"}),p.jsx(ie.div,{className:"absolute inset-0 bg-gradient-to-r from-primary-glow to-primary",initial:{x:"100%"},whileHover:{x:0},transition:{duration:.3}})]}),p.jsx(ie.button,{onClick:()=>{const l=document.getElementById("about");l?l.scrollIntoView({behavior:"smooth"}):window.location.href="/about"},className:"flex items-center gap-2 text-foreground py-4 px-8 text-base font-medium rounded-lg border border-border/50 hover:border-primary/50 hover:bg-primary/5 transition-all duration-300 backdrop-blur-sm",whileHover:{scale:1.03},whileTap:{scale:.98},children:"Learn more"})]})]}),p.jsx(ie.div,{className:"mt-20 grid grid-cols-2 md:grid-cols-4 gap-6 max-w-[700px]",initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.8,delay:.7,ease:[.25,.1,.25,1]},children:[{value:"5+",label:"Research Areas"},{value:"20+",label:"Publications"},{value:"AI",label:"Security Focus"},{value:"LLM",label:"Expertise"}].map((l,u)=>p.jsxs(ie.div,{className:"text-center md:text-left",initial:{opacity:0,y:20}
319,animate:{opacity:1,y:0},transition:{duration:.5,delay:.8+u*.1},children:[p.jsx("div",{className:"text-2xl md:text-3xl font-bold text-foreground",children:l.value}),p.jsx("div",{className:"text-xs text-muted-foreground mt-1 uppercase tracking-wider",children:l.label})]},l.label))})]}),p.jsxs(ie.div,{className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2",initial:{opacity:0},animate:{opacity:1},transition:{delay:1.5,duration:.8},children:[p.jsx("span",{className:"text-xs text-muted-foreground uppercase tracking-widest",children:"Scroll"}),p.jsx(ie.div,{animate:{y:[0,8,0]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut"},children:p.jsx(mv,{className:"h-5 w-5 text-muted-foreground"})})]})]})]})}const L3=()=>p.jsx(I3,{}),ws=v.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:he("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));ws.displayName="Card";const M3=v.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:he("flex flex-col space-y-1.5 p-6",e),...t}));M3.displayName="CardHeader";const D3=v.forwardRef(({className:e,...t},n)=>p.jsx("h3",{ref:n,className:he("text-2xl font-semibold leading-none tracking-tight",e),...t}));D3.displayName="CardTitle";const F3=v.forwardRef(({className:e,...t},n)=>p.jsx("p",{ref:n,className:he("text-sm text-muted-foreground",e),...t}));F3.displayName="CardDescription";const bs=v.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:he("p-6 pt-0",e),...t}));bs.displayName="CardContent";const $3=v.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:he("flex items-center p-6 pt-0",e),...t}));$3.displayName="CardFooter";function z3(){const e=v.useRef(null),t=uh(e,{once:!0,margin:"-50px"}),n=[{title:"Innovate",description:"Groundbreaking AI research pushing the boundaries of what's possible.",icon:p.jsx(ql,{className:"w-6 h-6"})},{title:"Advance",description:"Cutting-edge AI technology developed by world-class researchers.",icon:p.jsx(nU,{className:"w-6 h-6"})},{title:"Explore",description:"AI security and robust machine learning for enterprise applications.",icon:p.jsx(eU,{className:"w-6 h-6"})},{title:"Global Impact",description:"Creating solutions that transform industries worldwide.",icon:p.jsx(KB,{className:"w-6 h-6"})},{title:"Multi-Agent Systems",description:"Advanced coordination and collaboration between AI agents.",icon:p.jsx(N_,{className:"w-6 h-6"})},{title:"Large Language Models",description:"State-of-the-art LLMs and action models for real-world applications.",icon:p.jsx(WB,{className:"w-6 h-6"})},{title:"AI Security",description:"Robust security frameworks ensuring safe and reliable AI systems.",icon:p.jsx(JB,{className:"w-6 h-6"})},{title:"Carbon-Aware AI",description:"Sustainable computing solutions for environmentally conscious AI.",icon:p.jsx(j_,{className:"w-6 h-6"})}];return p.jsx("div",{ref:e,className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 relative z-10 py-10 max-w-7xl mx-auto",children:n.map((r,i)=>p.jsx(B3,{...r,index:i,isInView:t},r.title))})}const B3=({title:e,description:t,icon:n,index:r,isInView:i})=>p.jsxs(ie.div,{className:he("flex flex-col lg:border-r py-10 relative group/feature border-border/50",(r===0||r===4)&&"lg:border-l border-border/50",r<4&&"lg:border-b border-border/50"),initial:{opacity:0,y:20},animate:i?{opacity:1,y:0}:{},transition:{duration:.5,delay:r*.08},children:[r<4&&p.jsx("div",{className:"opacity-0 group-hover/feature:opacity-100 transition duration-300 absolute inset-0 h-full w-full bg-gradient-to-t from-primary/5 to-transparent pointer-events-none"}),r>=4&&p.jsx("div",{className:"opacity-0 group-hover/feature:opacity-100 transition duration-300 absolute inset-0 h-full w-full bg-gradient-to-b from-primary/5 to-transparent pointer-events-none"}),p.jsx(ie.div,{className:"mb-4 relative z-10 px-10 text-primary",whileHover:{scale:1.2,rotate:5},transition:{type:"spring",stiffness:400},children:n}),p.jsxs("div",{className:"text-lg font-bold mb-2 relative z-10 px-10",children:[p.jsx("div",{className:"absolute left-0 inset-y-0 h-6 group-hover/feature:h-8 w-1 rounded-tr-full rounded-br-full bg-border/50 group-hover/feature:bg-primary transition-all duration-300 origin-center"}),p.jsx("span",{className:"group-hover/feature:translate-x-2 transition duration-300 inline-block text-foreground",children:e})]}),p.jsx("p",{className:"text-sm text-muted-foreground max-w-xs relative z-10 px-10",children:t})]}),U3=e=>{const t={up:{hidden:{opacity:0,y:40},visible:{opacity:1,y:0}},down:{hidden:{opacity:0,y:-40},visible:{opacity:1,y:0}},left:{hidden:{opacity:0,x:40},visible:{opacity:1,x:0}},right:{hidden:{opacity:0,x:-40},visible:{opacity:1,x:0}},none:{hidden:{opacity:0}
319,visible:{opacity:1}}};return t[e]||t.up},dn=({children:e,className:t="",delay:n=0,direction:r="up"})=>{const i=v.useRef(null),s=uh(i,{once:!0,margin:"-100px"}),o=U3(r);return p.jsx(ie.div,{ref:i,initial:"hidden",animate:s?"visible":"hidden",variants:o,transition:{duration:.6,delay:n,ease:[.25,.1,.25,1]},className:t,children:e})},Fv=({children:e,className:t="",staggerDelay:n=.1})=>{const r=v.useRef(null),i=uh(r,{once:!0,margin:"-50px"}),s={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:n,delayChildren:.1}}};return p.jsx(ie.div,{ref:r,initial:"hidden",animate:i?"visible":"hidden",variants:s,className:t,children:e})},Rd=({children:e,className:t=""})=>{const n={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.5,ease:[.25,.1,.25,1]}}};return p.jsx(ie.div,{variants:n,className:t,children:e})},_o=({children:e,className:t=""})=>p.jsx(ie.div,{className:t,whileHover:{y:-8,transition:{duration:.3,ease:"easeOut"}},children:e}),V3=()=>p.jsx("div",{className:"flex items-center justify-center py-8",children:p.jsx(ie.div,{className:"h-px w-24 bg-gradient-to-r from-transparent via-primary/50 to-transparent",initial:{scaleX:0},whileInView:{scaleX:1},viewport:{once:!0},transition:{duration:.8}})}),H3=()=>{const e=v.useRef(null),t=uh(e,{once:!0,margin:"-100px"});return p.jsxs("section",{id:"about",className:"py-24 bg-gradient-card relative overflow-hidden",children:[p.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.02]",style:{backgroundImage:"radial-gradient(circle at 1px 1px, hsl(var(--primary)) 1px, transparent 0)",backgroundSize:"40px 40px"}}),p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative",children:[p.jsxs(dn,{className:"text-center mb-20",children:[p.jsx(ie.span,{className:"inline-block text-primary text-sm font-semibold uppercase tracking-[0.2em] mb-4",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:"Our Mission"}),p.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-foreground mb-6 tracking-tight",children:"What We Do"}),p.jsx("p",{className:"max-w-3xl mx-auto text-lg text-muted-foreground leading-relaxed",children:"At Zero Point Labs, we bring together leading AI experts and innovators to spearhead groundbreaking research, pushing the boundaries of technology and shaping the future of Artificial Intelligence."})]}),p.jsx(dn,{className:"mb-20",delay:.2,children:p.jsx(z3,{})}),p.jsx(V3,{}),p.jsxs("div",{ref:e,className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center mt-8",children:[p.jsxs(dn,{direction:"right",children:[p.jsx(ie.span,{className:"inline-block text-primary text-sm font-semibold uppercase tracking-[0.2em] mb-4",initial:{opacity:0}
319,animate:t?{opacity:1}:{},transition:{duration:.5,delay:.2},children:"Looking Forward"}),p.jsx("h3",{className:"text-3xl sm:text-4xl font-bold text-foreground mb-8 tracking-tight",children:"Our Vision"}),p.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6 text-base",children:"At Zero Point Labs, our vision is to revolutionize the world through cutting-edge AI technology, underpinned by robust security and governance. We strive to push the boundaries of innovation, creating intelligent solutions that empower businesses to operate more efficiently and securely."}),p.jsx("p",{className:"text-muted-foreground leading-relaxed text-base",children:"Our team, made up of specialists in various AI fields, leads the way in AI innovation. As we strive to tackle some of the most significant scientific and engineering challenges of our time, we aim to create breakthrough technologies that can advance science, transform work, serve diverse communities, and ultimately improve many lives."})]}),p.jsxs(Fv,{className:"space-y-6",staggerDelay:.15,children:[p.jsx(Rd,{children:p.jsx(_o,{children:p.jsxs(ws,{className:"bg-gradient-card border-primary/20 shadow-elegant overflow-hidden relative group",children:[p.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),p.jsxs(bs,{className:"p-6 relative",children:[p.jsxs("div",{className:"flex items-center space-x-4 mb-4",children:[p.jsx(ie.div,{whileHover:{rotate:10},transition:{type:"spring",stiffness:300},children:p.jsx("img",{src:mg,alt:"CyberGen",className:"h-12 w-12"})}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-lg font-semibold text-foreground",children:"Founded by CyberGen"}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"Enterprise AI Solutions"})]})]}),p.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"Zero Point Labs was established by CyberGen, a leading enterprise AI solutions provider. This partnership ensures our research has direct pathways to real-world implementation and enterprise-scale impact."})]})]})})}),p.jsx(Rd,{children:p.jsx(_o,{children:p.jsxs(ws,{className:"bg-gradient-card border-border/50 overflow-hidden relative group",children:[p.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-accent/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),p.jsxs(bs,{className:"p-6 relative",children:[p.jsx("h4",{className:"text-lg font-semibold text-foreground mb-4",children:"Research Focus Areas"}),p.jsx("ul",{className:"space-y-3 text-sm text-muted-foreground",children:["Large Language Models & Action Models","AI Security & Robust Machine Learning","Carbon-aware AI & Sustainable Computing","Multi-Agent Systems & Coordination"].map((n,r)=>p.jsxs(ie.li,{className:"flex items-center gap-3",initial:{opacity:0,x:-10},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:.4+r*.1},children:[p.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-primary flex-shrink-0"}),n]},n))})]})]})})})]})]})]})]})},W3=e=>la({queryKey:["team-members",e],queryFn:async()=>{let t=wt.from("team_members").select("*").order("display_order",{ascending:!0});const{data:n,error:r}=await t;if(r)throw r;return n}}),XK=e=>la({queryKey:["team-member",e],queryFn:async()=>{const{data:t,error:n}=await wt.from("team_members").select("*").eq("slug",e).single();if(n)throw n;return t},enabled:!!e}),g1={site_title:"Zero Point Labs",site_description:"AI Research Think Tank",contact_email:"[email protected]",social_linkedin:"https://linkedin.com/company/zeropointlabs",social_twitter:"https://twitter.com/zeropointlabs",social_github:"https://github.com/zeropointlabs"};function q3(){return la({queryKey:["site-settings"],queryFn:async()=>{const{data:e,error:t}=await wt.from("site_settings").select("*").limit(1).maybeSingle();return t||!e?g1:{...g1,...e}},staleTime:1e3*60*30})}const K3=()=>{const{data:e,isLoading:t}=W3(),{data:n}=q3();if(t)return p.jsx("section",{id:"team",className:"py-24 bg-background",children:p.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:p.jsx(ie.div,{className:"animate-pulse text-muted-foreground",initial:{opacity:0}
319,animate:{opacity:1},children:"Loading team members..."})})});e!=null&&e.filter(i=>i.role!=="Advisory Board");const r=(e==null?void 0:e.filter(i=>i.role==="Advisory Board"))||[];return p.jsxs("section",{id:"team",className:"py-24 bg-background relative overflow-hidden",children:[p.jsx(ie.div,{className:"absolute top-0 right-0 w-[500px] h-[500px] rounded-full bg-primary/5 blur-3xl pointer-events-none",animate:{scale:[1,1.1,1],opacity:[.3,.5,.3]},transition:{duration:8,repeat:1/0,ease:"easeInOut"}}),p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative",children:[r.length>0&&p.jsxs("div",{children:[p.jsxs(dn,{className:"text-center mb-16",children:[p.jsx(ie.span,{className:"inline-block text-primary text-sm font-semibold uppercase tracking-[0.2em] mb-4",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},children:"Leadership"}),p.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-foreground tracking-tight",children:"Our Advisors"})]}),p.jsx(Fv,{className:"flex justify-center flex-wrap gap-8",children:r.map(i=>p.jsx(Rd,{children:p.jsx(_o,{children:p.jsxs(ws,{className:"max-w-md bg-gradient-card border-border/50 shadow-elegant overflow-hidden relative group",children:[p.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),p.jsxs(bs,{className:"p-8 text-center relative",children:[p.jsx(ie.div,{className:"w-20 h-20 bg-gradient-primary rounded-2xl flex items-center justify-center text-2xl font-bold text-primary-foreground mx-auto mb-5 shadow-glow",whileHover:{scale:1.1,rotate:5},transition:{type:"spring",stiffness:300},children:i.full_name.split(" ").map(s=>s[0]).join("")}),p.jsx("h4",{className:"text-xl font-semibold text-foreground mb-2",children:i.full_name}),p.jsx("p",{className:"text-primary font-medium mb-3 text-sm",children:i.title}),p.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:i.bio})]})]})})},i.id))})]}),p.jsxs(dn,{delay:.3,className:"text-center mt-20 pt-16 border-t border-border/30",children:[p.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Join Our Team"}),p.jsx("p",{className:"text-muted-foreground mb-8 max-w-md mx-auto",children:"We're always looking for talented researchers and engineers to join our mission."}),p.jsxs("div",{className:"flex justify-center gap-4",children:[p.jsx(ie.div,{whileHover:{scale:1.05,y:-2},whileTap:{scale:.95},children:p.jsx(rt,{variant:"outline",size:"sm",className:"group gap-2",asChild:!0,children:p.jsxs("a",{href:(n==null?void 0:n.social_linkedin)||"https://linkedin.com/company/zeropointlabz",target:"_blank",rel:"noopener noreferrer",children:[p.jsx(QB,{className:"h-4 w-4"}),"LinkedIn",p.jsx(qx,{className:"h-3 w-3 opacity-0 group-hover:opacity-100 transition-opacity"})]})})}),p.jsx(ie.div,{whileHover:{scale:1.05,y:-2},whileTap:{scale:.95},children:p.jsx(rt,{variant:"outline",size:"sm",className:"group gap-2",asChild:!0,children:p.jsxs("a",{href:(n==null?void 0:n.social_twitter)||"https://twitter.com/zeropointlabz",target:"_blank",rel:"noopener noreferrer",children:[p.jsx(tU,{className:"h-4 w-4"}),"Twitter",p.jsx(qx,{className:"h-3 w-3 opacity-0 group-hover:opacity-100 transition-opacity"})]})})})]})]})]})]})},G3=e=>la({queryKey:["blog-posts",e],queryFn:async()=>{let t=wt.from("blog_posts").select("*").eq("is_published",!0).order("published_at",{ascending:!1});(e==null?void 0:e.featured)!==void 0&&(t=t.eq("is_featured",e.featured)),e!=null&&e.category&&(t=t.eq("category",e.category)),e!=null&&e.limit&&(t=t.limit(e.limit));const{data:n,error:r}=await t;if(r)throw r;return n}}),ZK=e=>la({queryKey:["blog-post",e],queryFn:async()=>{const{data:t,error:n}=await wt.from("blog_posts").select("*").eq("slug",e).eq("is_published",!0).single();if(n)throw n;return t},enabled:!!e});function Yn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Ps(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const oA=6048e5,Y3=864e5;let Q3={};function bh(){return Q3}function Kl(e,t){var a,l,u,c;const n=bh(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=Yn(e),s=i.getDay(),o=(s<r?7:0)+s-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}
vendor: 19,163 bytes, line 319
319function jd(e){return Kl(e,{weekStartsOn:1})}function aA(e){const t=Yn(e),n=t.getFullYear(),r=Ps(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=jd(r),s=Ps(e,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const o=jd(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function y1(e){const t=Yn(e);return t.setHours(0,0,0,0),t}function v1(e){const t=Yn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function J3(e,t){const n=y1(e),r=y1(t),i=+n-v1(n),s=+r-v1(r);return Math.round((i-s)/Y3)}function X3(e){const t=aA(e),n=Ps(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),jd(n)}function Z3(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function e6(e){if(!Z3(e)&&typeof e!="number")return!1;const t=Yn(e);return!isNaN(Number(t))}function t6(e){const t=Yn(e),n=Ps(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const n6={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r6=(e,t,n)=>{let r;const i=n6[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Hf(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const i6={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},s6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a6={date:Hf({formats:i6,defaultWidth:"full"}),time:Hf({formats:s6,defaultWidth:"full"}),dateTime:Hf({formats:o6,defaultWidth:"full"})},l6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u6=(e,t,n,r)=>l6[e];function Oa(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{const o=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[a]||e.values[o]}const s=e.argumentCallback?e.argumentCallback(t):t;return i[s]}}const c6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},d6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},h6={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},f6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},p6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},m6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},g6=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},y6={ordinalNumber:g6,era:Oa({values:c6,defaultWidth:"wide"}),quarter:Oa({values:d6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Oa({values:h6,defaultWidth:"wide"}),day:Oa({values:f6,defaultWidth:"wide"}),dayPeriod:Oa({values:p6,defaultWidth:"wide",formattingValues:m6,defaultFormattingWidth:"wide"})};function Ia(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;const o=s[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?w6(a,d=>d.test(o)):v6(a,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(o.length);return{value:u,rest:c}}}function v6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function w6(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function b6(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],s=t.match(e.parsePattern);if(!s)return null;let o=e.valueCallback?e.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const a=t.slice(i.length);return{value:o,rest:a}}}const x6=/^(\d+)(th|st|nd|rd)?/i,S6=/\d+/i,k6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},E6={any:[/^b/i,/^(a|c)/i]},C6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},T6={any:[/1/i,/2/i,/3/i,/4/i]},_6={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},P6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},A6={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},R6={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},j6={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},N6={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},O6={ordinalNumber:b6({matchPattern:x6,parsePattern:S6,valueCallback:e=>parseInt(e,10)}),era:Ia({matchPatterns:k6,defaultMatchWidth:"wide",parsePatterns:E6,defaultParseWidth:"any"}),quarter:Ia({matchPatterns:C6,defaultMatchWidth:"wide",parsePatterns:T6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ia({matchPatterns:_6,defaultMatchWidth:"wide",parsePatterns:P6,defaultParseWidth:"any"}),day:Ia({matchPatterns:A6,defaultMatchWidth:"wide",parsePatterns:R6,defaultParseWidth:"any"}),dayPeriod:Ia({matchPatterns:j6,defaultMatchWidth:"any",parsePatterns:N6,defaultParseWidth:"any"})},I6={code:"en-US",formatDistance:r6,formatLong:a6,formatRelative:u6,localize:y6,match:O6,options:{weekStartsOn:0,firstWeekContainsDate:1}};function L6(e){const t=Yn(e);return J3(t,t6(t))+1}function M6(e){const t=Yn(e),n=+jd(t)-+X3(t);return Math.round(n/oA)+1}function lA(e,t){var c,d,f,h;const n=Yn(e),r=n.getFullYear(),i=bh(),s=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=Ps(e,0);o.setFullYear(r+1,0,s),o.setHours(0,0,0,0);const a=Kl(o,t),l=Ps(e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=Kl(l,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function D6(e,t){var a,l,u,c;const n=bh(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=lA(e,t),s=Ps(e,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Kl(s,t)}function F6(e,t){const n=Yn(e),r=+Kl(n,t)-+D6(n,t);return Math.round(r/oA)+1}function Se(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Gr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Se(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Se(n+1,2)},d(e,t){return Se(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Se(e.getHours()%12||12,t.length)},H(e,t){return Se(e.getHours(),t.length)},m(e,t){return Se(e.getMinutes(),t.length)},s(e,t){return Se(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Se(i,t.length)}},qs={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},w1={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Gr.y(e,t)},Y:function(e,t,n,r){const i=lA(e,r),s=i>0?i:1-i;if(t==="YY"){const o=s%100;return Se(o,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):Se(s,t.length)},R:function(e,t){const n=aA(e);return Se(n,t.length)},u:function(e,t){const n=e.getFullYear();return Se(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Se(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Se(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Gr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Se(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=F6(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Se(i,t.length)},I:function(e,t,n){const r=M6(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Se(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Gr.d(e,t)},D:function(e,t,n){const r=L6(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Se(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return Se(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return Se(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Se(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=qs.noon:r===0?i=qs.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=qs.evening:r>=12?i=qs.afternoon:r>=4?i=qs.morning:i=qs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Gr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Gr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Se(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Se(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Gr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Gr.s(e,t)},S:function(e,t){return Gr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return x1(r);case"XXXX":case"XX":return Gi(r);case"XXXXX":case"XXX":default:return Gi(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return x1(r);case"xxxx":case"xx":return Gi(r);case"xxxxx":case"xxx":default:return Gi(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b1(r,":");case"OOOO":default:return"GMT"+Gi(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b1(r,":");case"zzzz":default:return"GMT"+Gi(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Se(r,t.length)},T:function(e,t,n){const r=e.getTime();return Se(r,t.length)}};function b1(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+t+Se(s,2)}function x1(e,t){return e%60===0?(e>0?"-":"+")+Se(Math.abs(e)/60,2):Gi(e,t)}function Gi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Se(Math.trunc(r/60),2),s=Se(r%60,2);return n+i+t+s}const S1=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},uA=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},$6=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return S1(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",S1(r,t)).replace("{{time}}",uA(i,t))},z6={p:uA,P:$6},B6=/^D+$/,U6=/^Y+$/,V6=["D","DD","YY","YYYY"];function H6(e){return B6.test(e)}function W6(e){return U6.test(e)}function q6(e,t,n){const r=K6(e,t,n);if(console.warn(r),V6.includes(e))throw new RangeError(r)}function K6(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const G6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Y6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Q6=/^'([^]*?)'?$/,J6=/''/g,X6=/[a-zA-Z]/;function Z6(e,t,n){var c,d,f,h;const r=bh(),i=r.locale??I6,s=r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,o=r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,a=Yn(e);if(!e6(a))throw new RangeError("Invalid time value");let l=t.match(Y6).map(y=>{const m=y[0];if(m==="p"||m==="P"){const x=z6[m];return x(y,i.formatLong)}return y}).join("").match(G6).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const m=y[0];if(m==="'")return{isToken:!1,value:eH(y)};if(w1[m])return{isToken:!0,value:y};
319if(m.match(X6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:y}});i.localize.preprocessor&&(l=i.localize.preprocessor(a,l));const u={firstWeekContainsDate:s,weekStartsOn:o,locale:i};return l.map(y=>{if(!y.isToken)return y.value;const m=y.value;(W6(m)||H6(m))&&q6(m,t,String(e));const x=w1[m[0]];return x(a,m,i.localize,u)}).join("")}function eH(e){const t=e.match(Q6);return t?t[1].replace(J6,"'"):e}const tH=()=>p.jsxs("div",{className:"space-y-6",children:[p.jsx(Qi,{className:"h-64 w-full rounded-lg"}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[1,2,3].map(e=>p.jsx(Qi,{className:"h-72 rounded-lg"},e))})]}),Wf=e=>{if(!e)return"";try{return Z6(new Date(e),"MMMM d, yyyy")}catch{return""}},nH=()=>{const{data:e,isLoading:t}=G3({limit:6});if(t)return p.jsx("section",{id:"insights",className:"py-24 bg-gradient-card",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[p.jsx(dn,{className:"text-center mb-16",children:p.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-foreground mb-6 tracking-tight",children:"Our Insights"})}),p.jsx(tH,{})]})});if(!e||e.length===0)return p.jsxs("section",{id:"insights",className:"py-24 bg-gradient-card relative overflow-hidden",children:[p.jsx(ie.div,{className:"absolute bottom-0 left-1/4 w-[400px] h-[400px] rounded-full bg-primary/5 blur-3xl pointer-events-none",animate:{scale:[1,1.15,1]},transition:{duration:6,repeat:1/0,ease:"easeInOut"}}),p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative",children:[p.jsxs(dn,{className:"text-center mb-16",children:[p.jsx(ie.span,{className:"inline-block text-primary text-sm font-semibold uppercase tracking-[0.2em] mb-4",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},children:"Blog & Research"}),p.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-foreground mb-6 tracking-tight",children:"Our Insights"}),p.jsx("p",{className:"max-w-2xl mx-auto text-lg text-muted-foreground",children:"Let's unravel AI's wonders in our blogs—your quick read for the freshest insights in artificial intelligence."})]}),p.jsxs(dn,{delay:.2,className:"text-center py-16",children:[p.jsx(ie.div,{whileHover:{scale:1.05,rotate:3},transition:{type:"spring",stiffness:300},children:p.jsx(P_,{className:"h-20 w-20 text-primary/30 mx-auto mb-6"})}),p.jsx("p",{className:"text-muted-foreground mb-8 text-lg",children:"Blog posts coming soon!"}),p.jsx(ie.div,{whileHover:{scale:1.03},whileTap:{scale:.98},children:p.jsx(rt,{variant:"premium",size:"lg",asChild:!0,className:"group",children:p.jsxs($n,{to:"/blog",children:["Visit Blog",p.jsx(qa,{className:"ml-2 h-4 w-4 group-hover:translate-x-1 transition-transform"})]})})})]})]})]});const n=e[0],r=e.slice(1,4),i=e.slice(4);return p.jsxs("section",{id:"insights",className:"py-24 bg-gradient-card relative overflow-hidden",children:[p.jsx(ie.div,{className:"absolute bottom-0 left-1/4 w-[400px] h-[400px] rounded-full bg-primary/5 blur-3xl pointer-events-none",animate:{scale:[1,1.15,1]},transition:{duration:6,repeat:1/0,ease:"easeInOut"}}),p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative",children:[p.jsxs(dn,{className:"text-center mb-16",children:[p.jsx(ie.span,{className:"inline-block text-primary text-sm font-semibold uppercase tracking-[0.2em] mb-4",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},children:"Blog & Research"}),p.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-foreground mb-6 tracking-tight",children:"Our Insights"}),p.jsx("p",{className:"max-w-2xl mx-auto text-lg text-muted-foreground",children:"Let's unravel AI's wonders in our blogs—your quick read for the freshest insights in artificial intelligence."})]}),p.jsx(dn,{delay:.1,children:p.jsx(_o,{children:p.jsxs(ws,{className:"mb-12 bg-gradient-card border-primary/20 shadow-elegant hover:shadow-glow transition-all duration-500 overflow-hidden relative group",children:[p.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),p.jsx(bs,{className:"p-8 relative",children:p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-center",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center space-x-4 mb-4",children:[p.jsx("span",{className:"px-3 py-1 bg-primary/10 text-primary text-xs font-medium rounded-full",children:n.category}),p.jsxs("div",{className:"flex items-center text-muted-foreground text-sm",children:[p.jsx(If,{className:"h-4 w-4 mr-1"}),Wf(n.published_at||n.created_at)]})]}),p.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4 group-hover:text-primary transition-colors duration-300",children:n.title}),p.jsx("p",{className:"text-muted-foreground mb-6 leading-relaxed",children:n.excerpt}),p.jsxs("div",{className:"flex items-center justify-between",children:[n.read_time&&p.jsx("span",{className:"text-sm text-muted-foreground",children:n.read_time}),p.jsx(rt,{variant:"hero",className:"group/btn",asChild:!0,children:p.jsxs($n,{to:`/blog/${n.slug}`,children:["Read More",p.jsx(qa,{className:"ml-2 h-4 w-4 group-hover/btn:translate-x-1 transition-transform"})]})})]})]}),p.jsx("div",{className:"relative overflow-hidden rounded-lg",children:n.featured_image_url?p.jsx(ie.img,{src:n.featured_image_url,alt:n.title,className:"aspect-video rounded-lg object-cover w-full",whileHover:{scale:1.05},transition:{duration:.5}}):p.jsxs("div",{className:"aspect-video bg-gradient-primary rounded-lg flex items-center justify-center overflow-hidden relative",children:[p.jsx("div",{className:"text-primary-foreground text-6xl font-bold opacity-20",children:"AI"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-primary/20 to-transparent"})]})})]})})]})})}),r.length>0&&p.jsx(Fv,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-12",children:r.map(s=>p.jsx(Rd,{children:p.jsx(_o,{className:"h-full",children:p.jsxs(ws,{className:"h-full bg-gradient-card border-border/50 hover:border-primary/50 transition-all duration-500 hover:shadow-glow group overflow-hidden relative",children:[p.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),p.jsxs(bs,{className:"p-6 flex flex-col h-full relative",children:[p.jsx("div",{className:"aspect-video rounded-lg mb-4 overflow-hidden relative",children:s.featured_image_url?p.jsx("img",{src:s.featured_image_url,alt:s.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):p.jsx("div",{className:"w-full h-full bg-gradient-primary/10 flex items-center justify-center",children:p.jsx("div",{className:"text-primary text-2xl font-bold opacity-30",children:s.category.split(" ").map(o=>o[0]).join("")})})}),p.jsxs("div",{className:"flex items-center space-x-4 mb-3",children:[p.jsx("span",{className:"px-2 py-1 bg-primary/10 text-primary text-xs font-medium rounded",children:s.category}),p.jsxs("div",{className:"flex items-center text-muted-foreground text-xs",children:[p.jsx(If,{className:"h-3 w-3 mr-1"}),Wf(s.published_at||s.created_at)]})]}),p.jsx("h4",{className:"text-lg font-semibold text-foreground mb-3 line-clamp-2 group-hover:text-primary transition-colors duration-300",children:s.title}),p.jsx("p",{className:"text-muted-foreground text-sm mb-4 line-clamp-3 flex-grow",children:s.excerpt}),p.jsxs("div",{className:"flex items-center justify-between mt-auto",children:[s.read_time&&p.jsx("span",{className:"text-xs text-muted-foreground",children:s.read_time}),p.jsx(rt,{variant:"ghost",size:"sm",className:"group/btn",asChild:!0,children:p.jsxs($n,{to:`/blog/${s.slug}`,children:["Read More",p.jsx(qa,{className:"ml-1 h-3 w-3 group-hover/btn:translate-x-1 transition-transform"})]})})]})]})]})})},s.id))}),i.length>0&&p.jsxs(dn,{delay:.2,className:"mb-12",children:[p.jsx("h3",{className:"text-xl font-semibold text-foreground mb-6",children:"More Insights"}),p.jsx("div",{className:"space-y-4",children:i.map(s=>p.jsx(_o,{children:p.jsx(ws,{className:"bg-gradient-card border-border/50 hover:border-primary/50 transition-all duration-300",children:p.jsx(bs,{className:"p-4",children:p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex-1",children:[p.jsxs("div",{className:"flex items-center space-x-4 mb-2",children:[p.jsx("span",{className:"px-2 py-1 bg-primary/10 text-primary text-xs font-medium rounded",children:s.category}),p.jsxs("div",{className:"flex items-center text-muted-foreground text-xs",children:[p.jsx(If,{className:"h-3 w-3 mr-1"}),Wf(s.published_at||s.created_at)]})]}),p.jsx("h4",{className:"text-base font-medium text-foreground hover:text-primary transition-colors",children:s.title})]}),p.jsx(rt,{variant:"ghost",size:"sm",asChild:!0,children:p.jsx($n,{to:`/blog/${s.slug}`,children:p.jsx(ig,{className:"h-4 w-4"})})})]})})})},s.id))})]}),p.jsx(dn,{delay:.3,className:"text-center",children:p.jsx(ie.div,{whileHover:{scale:1.03},whileTap:{scale:.98},children:p.jsx(rt,{variant:"premium",size:"lg",asChild:!0,className:"group",children:p.jsxs($n,{to:"/blog",children:["View All Articles",p.jsx(qa,{className:"ml-2 h-4 w-4 group-hover:translate-x-1 transition-transform"})]})})})})]})]})},rH=()=>(v.useEffect(()=>{I_.embedFooter("#cybergen-footer")},[]),p.jsx("div",{id:"cybergen-footer"})),cA="https://zeropointlabs.ai",ic={title:"Zero Point Labs - AI Think Tank & Research Hub",description:"An AI innovation hub specializing in groundbreaking research in large language models, AI security, and robust machine learning. Founded by CyberGen.",keywords:"AI research, artificial intelligence, machine learning, large language models, AI security, think tank, CyberGen, deep learning, neural networks",image:`${cA}/og-image.png`},dA=({title:e,description:t=ic.description,keywords:n=ic.keywords,image:r=ic.image,url:i,type:s="website",author:o,publishedTime:a,modifiedTime:l,noindex:u=!1,jsonLd:c})=>{const d=e?`${e} | Zero Point Labs`:ic.title,f=i||cA;return p.jsxs(eB,{children:[p.jsx("title",{children:d}),p.jsx("meta",{name:"title",content:d}),p.jsx("meta",{name:"description",content:t}),p.jsx("meta",{name:"keywords",content:n}),o&&p.jsx("meta",{name:"author",content:o}),p.jsx("meta",{name:"robots",content:u?"noindex, nofollow":"index, follow"}),p.jsx("meta",{property:"og:type",content:s}),p.jsx("meta",{property:"og:url",content:f}),p.jsx("meta",{property:"og:title",content:d}),p.jsx("meta",{property:"og:description",content:t}),p.jsx("meta",{property:"og:image",content:r}),p.jsx("meta",{property:"og:site_name",content:"Zero Point Labs"}),p.jsx("meta",{property:"og:locale",content:"en_US"}),p.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),p.jsx("meta",{name:"twitter:url",content:f}),p.jsx("meta",{name:"twitter:title",content:d}),p.jsx("meta",{name:"twitter:description",content:t}),p.jsx("meta",{name:"twitter:image",content:r}),s==="article"&&a&&p.jsx("meta",{property:"article:published_time",content:a}),s==="article"&&l&&p.jsx("meta",{property:"article:modified_time",content:l}),s==="article"&&o&&p.jsx("meta",{property:"article:author",content:o}),p.jsx("link",{rel:"canonical",href:f}),c&&p.jsx("script",{type:"application/ld+json",children:JSON.stringify(c)})]})},iH=()=>p.jsxs(p.Fragment,{children:[p.jsx(dA,{title:"AI Think Tank & Research Hub",description:"Zero Point Labs is an AI innovation hub specializing in groundbreaking research in large language models, AI security, and robust machine learning.",keywords:"AI research, artificial intelligence, machine learning, large language models, AI security, deep learning, neural networks",url:"https://zeropointlabs.ai/"}),p.jsxs("div",{className:"min-h-screen",children:[p.jsx(N3,{}),p.jsxs("main",{children:[p.jsx(L3,{}),p.jsx(H3,{}),p.jsx(K3,{}),p.jsx(nH,{})]}),p.jsx(rH,{})]})]}),sH=()=>{const e=wr();return v.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),p.jsxs(p.Fragment,{children:[p.jsx(dA,{title:"Page Not Found",noindex:!0}),p.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:p.jsxs("div",{className:"text-center max-w-md px-4",children:[p.jsx("h1",{className:"text-8xl font-bold text-primary mb-4",children:"404"}),p.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"Page Not Found"}),p.jsx("p",{className:"text-muted-foreground mb-8",children:"The page you're looking for doesn't exist or has been moved."}),p.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[p.jsx(rt,{asChild:!0,children:p.jsxs($n,{to:"/",children:[p.jsx(A_,{className:"h-4 w-4 mr-2"}),"Back to Home"]})}),p.jsxs(rt,{variant:"outline",onClick:()=>window.history.back(),children:[p.jsx(VB,{className:"h-4 w-4 mr-2"}),"Go Back"]})]})]})})]})},gg=v.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:he("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}));gg.displayName="Input";function oH(e,[t,n]){return Math.min(n,Math.max(t,e))}function aH(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var $v="ScrollArea",[hA,e7]=da($v),[lH,Sn]=hA($v),fA=v.forwardRef((e,t)=>
vendor: 9,458 bytes, line 319
319{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:s=600,...o}=e,[a,l]=v.useState(null),[u,c]=v.useState(null),[d,f]=v.useState(null),[h,y]=v.useState(null),[m,x]=v.useState(null),[g,b]=v.useState(0),[w,S]=v.useState(0),[C,k]=v.useState(!1),[_,R]=v.useState(!1),A=Ke(t,I=>l(I)),j=wv(i);return p.jsx(lH,{scope:n,type:r,dir:j,scrollHideDelay:s,scrollArea:a,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:y,scrollbarXEnabled:C,onScrollbarXEnabledChange:k,scrollbarY:m,onScrollbarYChange:x,scrollbarYEnabled:_,onScrollbarYEnabledChange:R,onCornerWidthChange:b,onCornerHeightChange:S,children:p.jsx(be.div,{dir:j,...o,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});fA.displayName=$v;var pA="ScrollAreaViewport",mA=v.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:i,...s}=e,o=Sn(pA,n),a=v.useRef(null),l=Ke(t,a,o.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),p.jsx(be.div,{"data-radix-scroll-area-viewport":"",...s,ref:l,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:p.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});mA.displayName=pA;var br="ScrollAreaScrollbar",zv=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Sn(br,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:o}=i,a=e.orientation==="horizontal";return v.useEffect(()=>(a?s(!0):o(!0),()=>{a?s(!1):o(!1)}),[a,s,o]),i.type==="hover"?p.jsx(uH,{...r,ref:t,forceMount:n}):i.type==="scroll"?p.jsx(cH,{...r,ref:t,forceMount:n}):i.type==="auto"?p.jsx(gA,{...r,ref:t,forceMount:n}):i.type==="always"?p.jsx(Bv,{...r,ref:t}):null});zv.displayName=br;var uH=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Sn(br,e.__scopeScrollArea),[s,o]=v.useState(!1);return v.useEffect(()=>{const a=i.scrollArea;let l=0;if(a){const u=()=>{window.clearTimeout(l),o(!0)},c=()=>{l=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(l),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[i.scrollArea,i.scrollHideDelay]),p.jsx(rn,{present:n||s,children:p.jsx(gA,{"data-state":s?"visible":"hidden",...r,ref:t})})}),cH=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Sn(br,e.__scopeScrollArea),s=e.orientation==="horizontal",o=Sh(()=>l("SCROLL_END"),100),[a,l]=aH("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,i.scrollHideDelay,l]),v.useEffect(()=>{const u=i.viewport,c=s?"scrollLeft":"scrollTop";if(u){let d=u[c];const f=()=>{const h=u[c];d!==h&&(l("SCROLL"),o()),d=h};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[i.viewport,s,l,o]),p.jsx(rn,{present:n||a!=="hidden",children:p.jsx(Bv,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ve(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:ve(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),gA=v.forwardRef((e,t)=>{const n=Sn(br,e.__scopeScrollArea),{forceMount:r,...i}=e,[s,o]=v.useState(!1),a=e.orientation==="horizontal",l=Sh(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,c=n.viewport.offsetHeight<n.viewport.scrollHeight;o(a?u:c)}},10);return Zo(n.viewport,l),Zo(n.content,l),p.jsx(rn,{present:r||s,children:p.jsx(Bv,{"data-state":s?"visible":"hidden",...i,ref:t})})}),Bv=v.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,i=Sn(br,e.__scopeScrollArea),s=v.useRef(null),o=v.useRef(0),[a,l]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=xA(a.viewport,a.content),c={...r,sizes:a,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:f=>s.current=f,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:f=>o.current=f};function d(f,h){return gH(f,o.current,a,h)}return n==="horizontal"?p.jsx(dH,{...c,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const f=i.viewport.scrollLeft,h=k1(f,a,i.dir);s.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollLeft=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollLeft=d(f,i.dir))}}):n==="vertical"?p.jsx(hH,{...c,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const f=i.viewport.scrollTop,h=k1(f,a);s.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollTop=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollTop=d(f))}}):null}),dH=v.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,s=Sn(br,e.__scopeScrollArea),[o,a]=v.useState(),l=v.useRef(null),u=Ke(t,l,s.onScrollbarXChange);return v.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),p.jsx(vA,{"data-orientation":"horizontal",...i,ref:u,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":xh(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(s.viewport){const f=s.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),kA(f,d)&&c.preventDefault()}},onResize:()=>{l.current&&s.viewport&&o&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Od(o.paddingLeft),paddingEnd:Od(o.paddingRight)}})}})}),hH=v.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,s=Sn(br,e.__scopeScrollArea),[o,a]=v.useState(),l=v.useRef(null),u=Ke(t,l,s.onScrollbarYChange);return v.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),p.jsx(vA,{"data-orientation":"vertical",...i,ref:u,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":xh(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(s.viewport){const f=s.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),kA(f,d)&&c.preventDefault()}},onResize:()=>{l.current&&s.viewport&&o&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Od(o.paddingTop),paddingEnd:Od(o.paddingBottom)}})}})}),[fH,yA]=hA(br),vA=v.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:s,onThumbPointerUp:o,onThumbPointerDown:a,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=Sn(br,n),[y,m]=v.useState(null),x=Ke(t,A=>m(A)),g=v.useRef(null),b=v.useRef(""),w=h.viewport,S=r.content-r.viewport,C=nt(c),k=nt(l),_=Sh(d,10);function R(A){if(g.current){const j=A.clientX-g.current.left,I=A.clientY-g.current.top;u({x:j,y:I})}}return v.useEffect(()=>{const A=j=>{const I=j.target;(y==null?void 0:y.contains(I))&&C(j,S)};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})},[w,y,S,C]),v.useEffect(k,[r,k]),Zo(y,_),Zo(h.content,_),p.jsx(fH,{scope:n,scrollbar:y,hasThumb:i,onThumbChange:nt(s),onThumbPointerUp:nt(o),onThumbPositionChange:k,onThumbPointerDown:nt(a),children:p.jsx(be.div,{...f,ref:x,style:{position:"absolute",...f.style},onPointerDown:ve(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),g.current=y.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),R(A))}),onPointerMove:ve(e.onPointerMove,R),onPointerUp:ve(e.onPointerUp,A=>{const j=A.target;j.hasPointerCapture(A.pointerId)&&j.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=b.current,h.viewport&&(h.viewport.style.scrollBehavior=""),g.current=null})})})}),Nd="ScrollAreaThumb",wA=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=yA(Nd,e.__scopeScrollArea);return p.jsx(rn,{present:n||i.hasThumb,children:p.jsx(pH,{ref:t,...r})})}),pH=v.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,s=Sn(Nd,n),o=yA(Nd,n),{onThumbPositionChange:a}=o,l=Ke(t,d=>o.onThumbChange(d)),u=v.useRef(void 0),c=Sh(()=>{u.current&&(u.current(),u.current=void 0)},100);return v.useEffect(()=>{const d=s.viewport;if(d){const f=()=>{if(c(),!u.current){const h=yH(d,a);u.current=h,a()}};return a(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[s.viewport,c,a]),p.jsx(be.div,{"data-state":o.hasThumb?"visible":"hidden",...i,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ve(e.onPointerDownCapture,d=>{const h=d.target.getBoundingClientRect(),y=d.clientX-h.left,m=d.clientY-h.top;o.onThumbPointerDown({x:y,y:m})}),onPointerUp:ve(e.onPointerUp,o.onThumbPointerUp)})});wA.displayName=Nd;var Uv="ScrollAreaCorner",bA=v.forwardRef((e,t)=>
319{const n=Sn(Uv,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?p.jsx(mH,{...e,ref:t}):null});bA.displayName=Uv;var mH=v.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=Sn(Uv,n),[s,o]=v.useState(0),[a,l]=v.useState(0),u=!!(s&&a);return Zo(i.scrollbarX,()=>{var d;const c=((d=i.scrollbarX)==null?void 0:d.offsetHeight)||0;i.onCornerHeightChange(c),l(c)}),Zo(i.scrollbarY,()=>{var d;const c=((d=i.scrollbarY)==null?void 0:d.offsetWidth)||0;i.onCornerWidthChange(c),o(c)}),u?p.jsx(be.div,{...r,ref:t,style:{width:s,height:a,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Od(e){return e?parseInt(e,10):0}function xA(e,t){const n=e/t;return isNaN(n)?0:n}function xh(e){const t=xA(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function gH(e,t,n,r="ltr"){const i=xh(n),s=i/2,o=t||s,a=i-o,l=n.scrollbar.paddingStart+o,u=n.scrollbar.size-n.scrollbar.paddingEnd-a,c=n.content-n.viewport,d=r==="ltr"?[0,c]:[c*-1,0];return SA([l,u],d)(e)}function k1(e,t,n="ltr"){const r=xh(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-i,o=t.content-t.viewport,a=s-r,l=n==="ltr"?[0,o]:[o*-1,0],u=oH(e,l);return SA([0,o],[0,a])(u)}function SA(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function kA(e,t){return e>0&&e<t}var yH=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const s={left:e.scrollLeft,top:e.scrollTop},o=n.left!==s.left,a=n.top!==s.top;(o||a)&&t(),n=s,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function Sh(e,t){const n=nt(e),r=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),v.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Zo(e,t){const n=nt(t);gr(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}var EA=fA,vH=mA,wH=bA;const CA=v.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(EA,{ref:r,className:he("relative overflow-hidden",e),...n,children:[p.jsx(vH,{className:"h-full w-full rounded-[inherit]",children:t}),p.jsx(TA,{}),p.jsx(wH,{})]}));CA.displayName=EA.displayName;const TA=v.forwardRef(({className:e,orientation:t="vertical",...n},r)=>p.jsx(zv,{ref:r,orientation:t,className:he("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:p.jsx(wA,{className:"relative flex-1 rounded-full bg-border"})}));TA.displayName=zv.displayName;const bH=()=>{const[e,t]=v.useState([]),[n,r]=v.useState(!1),[i]=v.useState(()=>`session_${Date.now()}_${Math.random()}`),[s,o]=v.useState(null),a=v.useRef(null),l=v.useCallback(async(c,d,f)=>{var y,m,x,g,b;const h={role:"user",content:c};t(w=>[...w,h]),r(!0);try{a.current=new AbortController;const S=await fetch("https://sjmolrmzilkhyilngjur.supabase.co/functions/v1/ai-wizard",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNqbW9scm16aWxraHlpbG5nanVyIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzUwNjE1NTMsImV4cCI6MjA5MDYzNzU1M30.uxXBsrwA9YLJ9k3OlqKBwUe4I5-NRFp2y92MCpTUbfQ"},body:JSON.stringify({messages:[...e,h],sessionId:i,userName:d,currentPage:f}),signal:a.current.signal});if(!S.ok)throw S.status===429?new Error("429"):S.status===402?new Error("402"):new Error(`HTTP ${S.status}`);if(!S.body)throw new Error("No response body");const C=S.body.getReader(),k=new TextDecoder;let _="",R="";for(;;){const{done:j,value:I}=await C.read();if(j)break;R+=k.decode(I,{stream:!0});const O=R.split(`
320`);R=O.pop()||"";for(const W of O){if(!W.trim()||W.startsWith(":")||!W.startsWith("data: "))continue;const Q=W.slice(6).trim();if(Q!=="[DONE]")try{const Z=(x=(m=(y=JSON.parse(Q).choices)==null?void 0:y[0])==null?void 0:m.delta)==null?void 0:x.content;Z&&(_+=Z,t(se=>{const D=se[se.length-1];return(D==null?void 0:D.role)==="assistant"?se.map((M,E)=>E===se.length-1?{...M,content:_}:M):[...se,{role:"assistant",content:_}]}))}catch{}}}const{data:A}=await wt.from("wizard_conversations").select("id").eq("session_id",i).single();if(A){o(A.id);const{data:j}=await wt.from("wizard_messages").select("id").eq("conversation_id",A.id).eq("role","assistant").order("created_at",{ascending:!1}).limit(1).single();j&&t(I=>{var Q;const O=[...I],W=O.length-1;return((Q=O[W])==null?void 0:Q.role)==="assistant"&&(O[W]={...O[W],id:j.id,conversationId:A.id}),O})}}catch(w){console.error("Chat error:",w),(g=w.message)!=null&&g.includes("429")?t(S=>[...S,{role:"assistant",content:"I'm receiving too many requests right now. Please wait a moment and try again."}]):(b=w.message)!=null&&b.includes("402")?t(S=>[...S,{role:"assistant",content:"The AI service is temporarily unavailable. Please contact our team for assistance."}]):t(S=>[...S,{role:"assistant",content:"I encountered an issue processing your request. Please try again."}])}finally{r(!1)}},[e,i]),u=v.useCallback(()=>{t([])},[]);return{messages:e,isLoading:n,sessionId:i,conversationId:s,sendMessage:l,reset:u}},qf=({mood:e="neutral",size:t="md"})=>{const n={sm:"h-8 w-8",md:"h-10 w-10",lg:"h-16 w-16"},r={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-8 w-8"},i=()=>{switch(e){case"thinking":return p.jsx(R_,{className:he(r[t],"animate-spin")});case"excited":return p.jsx(j_,{className:he(r[t])});case"stumped":return p.jsx(ql,{className:he(r[t])});default:return p.jsx(ql,{className:r[t]})}};return p.jsx("div",{className:he("rounded-full bg-gradient-to-br from-primary to-primary/70 flex items-center justify-center text-primary-foreground shadow-lg relative",n[t]),children:i()})},_A=v.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:he("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
320ing-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}));_A.displayName="Textarea";const xH=({messageId:e,conversationId:t,sessionId:n})=>{const[r,i]=v.useState(null),[s,o]=v.useState(null),[a,l]=v.useState(""),[u,c]=v.useState(!1),[d,f]=v.useState(!1),[h,y]=v.useState(!1),m=g=>{i(g),c(!0)},x=async()=>{if(r){f(!0);try{const{error:g}=await wt.from("wizard_ratings").insert({message_id:e,conversation_id:t,session_id:n,rating:r,feedback:a.trim()||null});if(g)throw g;y(!0),tr.success("Thank you!",{description:"Your feedback helps us improve."})}catch(g){console.error("Failed to submit rating:",g),tr.error("Failed to submit",{description:"Please try again later."})}finally{f(!1)}}};return h?p.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[p.jsx(Kx,{className:"h-4 w-4 fill-primary text-primary"}),p.jsx("span",{children:"Thanks for your feedback!"})]}):p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"text-sm text-muted-foreground",children:"Rate this answer:"}),p.jsx("div",{className:"flex gap-1",children:[1,2,3,4,5].map(g=>p.jsx("button",{onClick:()=>m(g),onMouseEnter:()=>o(g),onMouseLeave:()=>o(null),className:"transition-transform hover:scale-110",disabled:d,children:p.jsx(Kx,{className:`h-5 w-5 ${(s!==null?g<=s:g<=(r||0))?"fill-primary text-primary":"text-muted-foreground"}`})},g))})]}),u&&p.jsxs("div",{className:"space-y-2 animate-in fade-in slide-in-from-top-2",children:[p.jsx(_A,{placeholder:"Optional: Share your thoughts to help us improve...",value:a,onChange:g=>l(g.target.value),className:"min-h-[80px] resize-none",disabled:d}),p.jsxs("div",{className:"flex gap-2",children:[p.jsx(rt,{onClick:x,disabled:!r||d,size:"sm",children:d?"Submitting...":"Submit Feedback"}),p.jsx(rt,{onClick:()=>{c(!1),l("")},variant:"ghost",size:"sm",disabled:d,children:"Cancel"})]})]})]})};function SH(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const kH=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,EH=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,CH={};function E1(e,t){return(CH.jsx?EH:kH).test(e)}const TH=/[ \t\n\f\r]/g;function _H(e){return typeof e=="object"?e.type==="text"?C1(e.value):!1:C1(e)}function C1(e){return e.replace(TH,"")===""}class cu{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}cu.prototype.normal={};cu.prototype.property={};cu.prototype.space=void 0;function PA(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new cu(n,r,t)}function yg(e){return e.toLowerCase()}class Ht{constructor(t,n){this.attribute=n,this.property=t}}Ht.prototype.attribute="";Ht.prototype.booleanish=!1;Ht.prototype.boolean=!1;Ht.prototype.commaOrSpaceSeparated=!1;Ht.prototype.commaSeparated=!1;Ht.prototype.defined=!1;Ht.prototype.mustUseProperty=!1;Ht.prototype.number=!1;Ht.prototype.overloadedBoolean=!1;Ht.prototype.property="";Ht.prototype.spaceSeparated=!1;Ht.prototype.space=void 0;let PH=0;const ae=Os(),Qe=Os(),vg=Os(),$=Os(),Ae=Os(),Po=Os(),Gt=Os();function Os(){return 2**++PH}const wg=Object.freeze(Object.defineProperty({__proto__:null,boolean:ae,booleanish:Qe,commaOrSpaceSeparated:Gt,commaSeparated:Po,number:$,overloadedBoolean:vg,spaceSeparated:Ae},Symbol.toStringTag,{value:"Module"})),Kf=Object.keys(wg);class Vv extends Ht{constructor(t,n,r,i){let s=-1;if(super(t,n),T1(this,"space",i),typeof r=="number")for(;++s<Kf.length;){const o=Kf[s];T1(this,Kf[s],(r&wg[o])===wg[o])}}}Vv.prototype.defined=!0;function T1(e,t,n){n&&(e[t]=n)}function fa(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Vv(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[yg(r)]=r,n[yg(s.attribute)]=r}return new cu(t,n,e.space)}const AA=fa({properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControl
vendor: 4,592 bytes, line 320
320s:Ae,ariaCurrent:null,ariaDescribedBy:Ae,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:Ae,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:Ae,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ae,ariaLevel:$,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:Ae,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:Ae,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:Qe,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function RA(e,t){return t in e?e[t]:t}function jA(e,t){return RA(e,t.toLowerCase())}const AH=fa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Po,acceptCharset:Ae,accessKey:Ae,action:null,allow:null,allowFullScreen:ae,allowPaymentRequest:ae,allowUserMedia:ae,alt:null,as:null,async:ae,autoCapitalize:null,autoComplete:Ae,autoFocus:ae,autoPlay:ae,blocking:Ae,capture:null,charSet:null,checked:ae,cite:null,className:Ae,cols:$,colSpan:null,content:null,contentEditable:Qe,controls:ae,controlsList:Ae,coords:$|Po,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ae,defer:ae,dir:null,dirName:null,disabled:ae,download:vg,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ae,formTarget:null,headers:Ae,height:$,hidden:vg,high:$,href:null,hrefLang:null,htmlFor:Ae,httpEquiv:Ae,id:null,imageSizes:null,imageSrcSet:null,inert:ae,inputMode:null,integrity:null,is:null,isMap:ae,itemId:null,itemProp:Ae,itemRef:Ae,itemScope:ae,itemType:Ae,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ae,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:ae,muted:ae,name:null,nonce:null,noModule:ae,noValidate:ae,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ae,optimum:$,pattern:null,ping:Ae,placeholder:null,playsInline:ae,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ae,referrerPolicy:null,rel:Ae,required:ae,reversed:ae,rows:$,rowSpan:$,sandbox:Ae,scope:null,scoped:ae,seamless:ae,selected:ae,shadowRootClonable:ae,shadowRootDelegatesFocus:ae,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:ae,useMap:null,value:Qe,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ae,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ae,declare:ae,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,no
320Resize:ae,noHref:ae,noShade:ae,noWrap:ae,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ae,disableRemotePlayback:ae,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:jA}),RH=fa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
320-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Gt,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:Ae,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:ae,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Po,g2:Po,glyphName:Po,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:Gt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,275 bytes, lines 320-321
320Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ae,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gt,rev:Gt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gt,requiredFeatures:Gt,requiredFonts:Gt,requiredFormats:Gt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:Gt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gt,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:RA}),NA=fa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),OA=fa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jA}),IA=fa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),jH={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},NH=/[A-Z]/g,_1=/-[a-z]/g,OH=/^data[-\w.:]+$/i;function IH(e,t){const n=yg(t);let r=t,i=Ht;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&OH.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(_1,MH);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!_1.test(s)){let o=s.replace(NH,LH);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Vv}return new i(r,t)}function LH(e){return"-"+e.toLowerCase()}function MH(e){return e.charAt(1).toUpperCase()}const DH=PA([AA,AH,NA,OA,IA],"html"),Hv=PA([AA,RH,NA,OA,IA],"svg");function FH(e){return e.join(" ").trim()}var Wv={},P1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,$H=/\n/g,zH=/^\s*/,BH=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,UH=/^:\s*/,VH=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,HH=/^[;\s]*/,WH=/^\s+|\s+$/g,qH=`
321`,A1="/",R1="*",Ji="",KH="comment",GH="declaration";function YH(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var m=y.match($H);m&&(n+=m.length);var x=y.lastIndexOf(qH);r=~x?y.length-x:r+y.length}function s(){var y={line:n,column:r};return function(m){return m.position=new o(y),u(),m}}function o(y){this.start=y,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(y){var m=new Error(t.source+":"+n+":"+r+": "+y);if(m.reason=y,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function l(y){var m=y.exec(e);if(m){var x=m[0];return i(x),e=e.slice(x.length),m}}function u(){l(zH)}function c(y){var m;for(y=y||[];m=d();)m!==!1&&y.push(m);return y}function d(){var y=s();if(!(A1!=e.charAt(0)||R1!=e.charAt(1))){for(var m=2;Ji!=e.charAt(m)&&(R1!=e.charAt(m)||A1!=e.charAt(m+1));)++m;if(m+=2,Ji===e.charAt(m-1))return a("End of comment missing");var x=e.slice(2,m-2);return r+=2,i(x),e=e.slice(m),r+=2,y({type:KH,comment:x})}}function f(){var y=s(),m=l(BH);if(m){if(d(),!l(UH))return a("property missing ':'");var x=l(VH),g=y({type:GH,property:j1(m[0].replace(P1,Ji)),value:x?j1(x[0].replace(P1,Ji)):Ji});return l(HH),g}}function h(){var y=[];c(y);for(var m;m=f();)m!==!1&&(y.push(m),c(y));return y}return u(),h()}function j1(e){return e?e.replace(WH,Ji):Ji}var QH=YH,JH=Dc&&Dc.__importDefault||function(e){return e&&e.__esMo
vendor: 3,641 bytes, line 321
321dule?e:{default:e}};Object.defineProperty(Wv,"__esModule",{value:!0});Wv.default=ZH;const XH=JH(QH);function ZH(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,XH.default)(e),i=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:o,value:a}=s;i?t(o,a,s):a&&(n=n||{},n[o]=a)}),n}var kh={};Object.defineProperty(kh,"__esModule",{value:!0});kh.camelCase=void 0;var eW=/^--[a-zA-Z0-9_-]+$/,tW=/-([a-z])/g,nW=/^[^-]+$/,rW=/^-(webkit|moz|ms|o|khtml)-/,iW=/^-(ms)-/,sW=function(e){return!e||nW.test(e)||eW.test(e)},oW=function(e,t){return t.toUpperCase()},N1=function(e,t){return"".concat(t,"-")},aW=function(e,t){return t===void 0&&(t={}),sW(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(iW,N1):e=e.replace(rW,N1),e.replace(tW,oW))};kh.camelCase=aW;var lW=Dc&&Dc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},uW=lW(Wv),cW=kh;function bg(e,t){var n={};return!e||typeof e!="string"||(0,uW.default)(e,function(r,i){r&&i&&(n[(0,cW.camelCase)(r,t)]=i)}),n}bg.default=bg;var dW=bg;const hW=As(dW),LA=MA("end"),qv=MA("start");function MA(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function fW(e){const t=qv(e),n=LA(e);if(t&&n)return{start:t,end:n}}function dl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?O1(e.position):"start"in e||"end"in e?O1(e):"line"in e||"column"in e?xg(e):""}function xg(e){return I1(e&&e.line)+":"+I1(e&&e.column)}function O1(e){return xg(e&&e.start)+"-"+xg(e&&e.end)}function I1(e){return e&&typeof e=="number"?e:1}class xt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=dl(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}xt.prototype.file="";xt.prototype.name="";xt.prototype.reason="";xt.prototype.message="";xt.prototype.stack="";xt.prototype.column=void 0;xt.prototype.line=void 0;xt.prototype.ancestors=void 0;xt.prototype.cause=void 0;xt.prototype.fatal=void 0;xt.prototype.place=void 0;xt.prototype.ruleId=void 0;xt.prototype.source=void 0;const Kv={}.hasOwnProperty,pW=new Map,mW=/[A-Z]/g,gW=new Set(["table","tbody","thead","tfoot","tr"]),yW=new Set(["td","th"]),DA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function vW(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=TW(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,302 bytes, line 321
321if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=CW(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Hv:DH,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=FA(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function FA(e,t,n){if(t.type==="element")return wW(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return bW(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return SW(e,t,n);if(t.type==="mdxjsEsm")return xW(e,t);if(t.type==="root")return kW(e,t,n);if(t.type==="text")return EW(e,t)}function wW(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Hv,e.schema=i),e.ancestors.push(t);const s=zA(e,t.tagName,!1),o=_W(e,t);let a=Yv(e,t);return gW.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!_H(l):!0})),$A(e,o,s,t),Gv(o,a),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function bW(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Gl(e,t.position)}function xW(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Gl(e,t.position)}function SW(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Hv,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:zA(e,t.name,!0),o=PW(e,t),a=Yv(e,t);return $A(e,o,s,t),Gv(o,a),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function kW(e,t,n){const r={};return Gv(r,Yv(e,t)),e.create(t,e.Fragment,r,n)}function EW(e,t){return t.value}function $A(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Gv(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function CW(e,t,n){return r;function r(i,s,o,a){const u=Array.isArray(o.children)?n:t;return a?u(s,o,a):u(s,o)}}function TW(e,t){return n;function n(r,i,s,o){const a=Array.isArray(s.children),l=qv(r);return t(i,s,o,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function _W(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Kv.call(t.properties,i)){const s=AW(e,i,t.properties[i]);if(s){const[o,a]=s;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&yW.has(t.tagName)?r=a:n[o]=a}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function PW(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const o=s.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Gl(e,t.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,s=e.evaluater.evaluateExpression(a.expression)}else Gl(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function Yv(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:pW;for(;++r<t.children.length;){const s=t.children[r];let o;if(e.passKeys){const l=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(l){const u=i.get(l)||0;o=l+"-"+u,i.set(l,u+1)}}const a=FA(e,s,o);a!==void 0&&n.push(a)}return n}function AW(e,t,n){const r=IH(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?SH(n):FH(n)),r.property==="style"){let i=typeof n=="object"?n:RW(e,String(n));return e.stylePropertyNameCase==="css"&&(i=jW(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?jH[r.property]||r.property:r.attribute,n]}}function RW(e,t){try{return hW(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new xt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=DA+"#cannot-parse-style-attribute",i}}function zA(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,o;for(;++s<i.length;){const a=E1(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(s&&a.type==="Literal"),optional:!1}:a}r=o}else r=E1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Kv.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Gl(e)}function Gl(e,t){const n=new xt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=DA+"#cannot-handle-mdx-estrees-without-createevaluater",n}function jW(e){const t={};let n;for(n in e)Kv.call(e,n)&&(t[NW(n)]=e[n]);return t}function NW(e){let t=e.replace(mW,OW);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function OW(e){return"-"+e.toLowerCase()}const Gf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},IW={};function LW(e,t){const n=IW,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return BA(e,r,i)}function BA(e,t,n){if(MW(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return L1(e.children,t,n)}return Array.isArray(e)?L1(e,t,n):""}function L1(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=BA(e[i],t,n);return r.join("")}function MW(e){return!!(e&&typeof e=="object")}const M1=document.createElement("i");function Qv(e){const t="&"+e+";";M1.innerHTML=t;const n=M1.textContent;
vendor: 10,880 bytes, line 321
321return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function yr(e,t,n,r){const i=e.length;let s=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function pn(e,t){return e.length>0?(yr(e,e.length,0,t),e):t}const D1={}.hasOwnProperty;function DW(e){const t={};let n=-1;for(;++n<e.length;)FW(t,e[n]);return t}function FW(e,t){let n;for(n in t){const i=(D1.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){D1.call(i,o)||(i[o]=[]);const a=s[o];$W(i[o],Array.isArray(a)?a:a?[a]:[])}}}function $W(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);yr(e,0,0,r)}function UA(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ao(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hr=Di(/[A-Za-z]/),Xt=Di(/[\dA-Za-z]/),zW=Di(/[#-'*+\--9=?A-Z^-~]/);function Sg(e){return e!==null&&(e<32||e===127)}const kg=Di(/\d/),BW=Di(/[\dA-Fa-f]/),UW=Di(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function Vt(e){return e!==null&&(e<0||e===32)}function we(e){return e===-2||e===-1||e===32}const VW=Di(new RegExp("\\p{P}|\\p{S}","u")),HW=Di(/\s/);function Di(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function pa(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let o="";if(s===37&&Xt(e.charCodeAt(n+1))&&Xt(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const a=e.charCodeAt(n+1);s<56320&&a>56319&&a<57344?(o=String.fromCharCode(s,a),i=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function je(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(l){return we(l)?(e.enter(n),a(l)):t(l)}function a(l){return we(l)&&s++<i?(e.consume(l),a):(e.exit(n),t(l))}}const WW={tokenize:qW};function qW(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),je(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),s(a)}function s(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return ee(a)?(e.consume(a),e.exit("chunkText"),s):(e.consume(a),o)}}const KW={tokenize:GW},F1={tokenize:YW};function GW(e){const t=this,n=[];let r=0,i,s,o;return a;function a(w){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(w)}return u(w)}function l(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const S=t.events.length;let C=S,k;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){k=t.events[C][1].end;break}g(r);let _=S;for(;_<t.events.length;)t.events[_][1].end={...k},_++;return yr(t.events,C+1,0,t.events.slice(S)),t.events.length=_,u(w)}return a(w)}function u(w){if(r===n.length){if(!i)return f(w);if(i.currentConstruct&&i.currentConstruct.concrete)return y(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(F1,c,d)(w)}function c(w){return i&&b(),g(r),f(w)}function d(w){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,y(w)}function f(w){return t.containerState={},e.attempt(F1,h,y)(w)}function h(w){return r++,n.push([t.currentConstruct,t.containerState]),f(w)}function y(w){if(w===null){i&&b(),g(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),m(w)}function m(w){if(w===null){x(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return ee(w)?(e.consume(w),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(w),m)}function x(w,S){const C=t.sliceStream(w);if(S&&C.push(null),w.previous=s,s&&(s.next=w),s=w,i.defineSkip(w.start),i.write(C),t.parser.lazy[w.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<o&&(!i.events[k][1].end||i.events[k][1].end.offset>o))return;const _=t.events.length;let R=_,A,j;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(A){j=t.events[R][1].end;break}A=!0}for(g(r),k=_;k<t.events.length;)t.events[k][1].end={...j},k++;yr(t.events,R+1,0,t.events.slice(_)),t.events.length=k}}function g(w){let S=n.length;for(;S-- >w;){const C=n[S];t.containerState=C[1],C[0].exit.call(t,e)}n.length=w}function b(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function YW(e,t,n){return je(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $1(e){if(e===null||Vt(e)||HW(e))return 1;if(VW(e))return 2}function Jv(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const Eg={name:"attention",resolveAll:QW,tokenize:JW};function QW(e,t){let n=-1,r,i,s,o,a,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[n][1].start};z1(d,-l),z1(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},s={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=pn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=pn(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",s,t]]),u=pn(u,Jv(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=pn(u,[["exit",s,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=pn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,yr(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function JW(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=$1(r);let s;return o;function o(l){return s=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===s)return e.consume(l),a;const u=e.exit("attentionSequence"),c=$1(l),d=!c||c===2&&i||n.includes(l),f=!i||i===2&&c||n.includes(r);return u._open=!!(s===42?d:d&&(i||!f)),u._close=!!(s===42?f:f&&(c||!d)),t(l)}}function z1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const XW={name:"autolink",tokenize:ZW};function ZW(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(h){return hr(h)?(e.consume(h),o):h===64?n(h):u(h)}function o(h){return h===43||h===45||h===46||Xt(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||Xt(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Sg(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):zW(h)?(e.consume(h),u):n(h)}function c(h){return Xt(h)?d(h):n(h)}function d(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):f(h)}function f(h){if((h===45||Xt(h))&&r++<63){const y=h===45?f:d;return e.consume(h),y}return n(h)}}const Eh={partial:!0,tokenize:e8};function e8(e,t,n){return r;function r(s){return we(s)?je(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||ee(s)?t(s):n(s)}}const VA={continuation:{tokenize:n8},exit:r8,name:"blockQuote",tokenize:t8};function t8(e,t,n){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return we(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function n8(e,t,n){const r=this;return i;function i(o){return we(o)?je(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(VA,t,n)(o)}}function r8(e){e.exit("blockQuote")}const HA={name:"characterEscape",tokenize:i8};function i8(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return UW(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const WA={name:"characterReference",tokenize:s8};function s8(e,t,n){const r=this;let i=0,s,o;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),s=31,o=Xt,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=BW,c):(e.enter("characterReferenceValue"),s=7,o=kg,c(d))}function c(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return o===Xt&&!Qv(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&i++<s?(e.consume(d),c):n(d)}}const B1={partial:!0,tokenize:a8},U1={concrete:!0,name:"codeFenced",tokenize:o8};function o8(e,t,n){const r=this,i={partial:!0,tokenize:C};let s=0,o=0,a;return l;function l(k){return u(k)}function u(k){const _=r.events[r.events.length-1];return s=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,a=k,e.enter("co
321deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(k)}function c(k){return k===a?(o++,e.consume(k),c):o<3?n(k):(e.exit("codeFencedFenceSequence"),we(k)?je(e,d,"whitespace")(k):d(k))}function d(k){return k===null||ee(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(B1,m,S)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(k)):we(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),je(e,h,"whitespace")(k)):k===96&&k===a?n(k):(e.consume(k),f)}function h(k){return k===null||ee(k)?d(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===null||ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(k)):k===96&&k===a?n(k):(e.consume(k),y)}function m(k){return e.attempt(i,S,x)(k)}function x(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),g}function g(k){return s>0&&we(k)?je(e,b,"linePrefix",s+1)(k):b(k)}function b(k){return k===null||ee(k)?e.check(B1,m,S)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||ee(k)?(e.exit("codeFlowValue"),b(k)):(e.consume(k),w)}function S(k){return e.exit("codeFenced"),t(k)}function C(k,_,R){let A=0;return j;function j(K){return k.enter("lineEnding"),k.consume(K),k.exit("lineEnding"),I}function I(K){return k.enter("codeFencedFence"),we(K)?je(k,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):O(K)}function O(K){return K===a?(k.enter("codeFencedFenceSequence"),W(K)):R(K)}function W(K){return K===a?(A++,k.consume(K),W):A>=o?(k.exit("codeFencedFenceSequence"),we(K)?je(k,Q,"whitespace")(K):Q(K)):R(K)}function Q(K){return K===null||ee(K)?(k.exit("codeFencedFence"),_(K)):R(K)}}}function a8(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Yf={name:"codeIndented",tokenize:u8},l8={partial:!0,tokenize:c8};function u8(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),je(e,s,"linePrefix",5)(u)}function s(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):ee(u)?e.attempt(l8,o,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||ee(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function c8(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):je(e,s,"linePrefix",5)(o)}function s(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):ee(o)?i(o):n(o)}}const d8={name:"codeText",previous:f8,resolve:h8,tokenize:p8};function h8(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function f8(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function p8(e,t,n){let r=0,i,s;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),a(d)}function a(d){return d===96?(e.consume(d),r++,a):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(s=e.enter("codeTextSequence"),i=0,c(d)):ee(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||ee(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(s.type="codeTextData",u(
vendor: 4,246 bytes, line 321
321d))}}class m8{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&La(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),La(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),La(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);La(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);La(this.left,n.reverse())}}}function La(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function qA(e){const t={};let n=-1,r,i,s,o,a,l,u;const c=new m8(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,g8(c,n)),n=t[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(o=c.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return yr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function g8(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,l=[],u={};let c,d,f=-1,h=n,y=0,m=0;const x=[m];for(;h;){for(;e.get(++i)[1]!==h;);s.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),d&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(m=f+1,x.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):x.pop(),f=x.length;f--;){const g=a.slice(x[f],x[f+1]),b=s.pop();l.push([b,b+g.length-1]),e.splice(b,2,g)}for(l.reverse(),f=-1;++f<l.length;)u[y+l[f][0]]=y+l[f][1],y+=l[f][1]-l[f][0]-1;return u}const y8={resolve:w8,tokenize:b8},v8={partial:!0,tokenize:x8};function w8(e){return qA(e),e}function b8(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?s(a):ee(a)?e.check(v8,o,s)(a):(e.consume(a),i)}function s(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function x8(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),je(e,s,"linePrefix")}
vendor: 17,279 bytes, line 321
321function s(o){if(o===null||ee(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function KA(e,t,n,r,i,s,o,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(g){return g===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(g),e.exit(s),f):g===null||g===32||g===41||Sg(g)?n(g):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(g))}function f(g){return g===62?(e.enter(s),e.consume(g),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===62?(e.exit("chunkString"),e.exit(a),f(g)):g===null||g===60||ee(g)?n(g):(e.consume(g),g===92?y:h)}function y(g){return g===60||g===62||g===92?(e.consume(g),h):h(g)}function m(g){return!c&&(g===null||g===41||Vt(g))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(g)):c<u&&g===40?(e.consume(g),c++,m):g===41?(e.consume(g),c--,m):g===null||g===32||g===40||Sg(g)?n(g):(e.consume(g),g===92?x:m)}function x(g){return g===40||g===41||g===92?(e.consume(g),m):m(g)}}function GA(e,t,n,r,i,s){const o=this;let a=0,l;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(s),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(s),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):ee(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||ee(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!we(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),a++,d):d(h)}}function YA(e,t,n,r,i,s){let o;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(s),u(f))}function u(f){return f===o?(e.exit(s),l(o)):f===null?n(f):ee(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),je(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||ee(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function hl(e,t){let n;return r;function r(i){return ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):we(i)?je(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const S8={name:"definition",tokenize:E8},k8={partial:!0,tokenize:C8};function E8(e,t,n){const r=this;let i;return s;function s(h){return e.enter("definition"),o(h)}function o(h){return GA.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=Ao(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Vt(h)?hl(e,u)(h):u(h)}function u(h){return KA(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(k8,d,d)(h)}function d(h){return we(h)?je(e,f,"whitespace")(h):f(h)}function f(h){return h===null||ee(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function C8(e,t,n){return r;function r(a){return Vt(a)?hl(e,i)(a):n(a)}function i(a){return YA(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function s(a){return we(a)?je(e,o,"whitespace")(a):o(a)}function o(a){return a===null||ee(a)?t(a):n(a)}}const T8={name:"hardBreakEscape",tokenize:_8};function _8(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return ee(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const P8={name:"headingAtx",resolve:A8,tokenize:R8};function A8(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},yr(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function R8(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Vt(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||ee(c)?(e.exit("atxHeading"),t(c)):we(c)?je(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Vt(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const j8=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],V1=["pre","script","style","textarea"],N8={concrete:!0,name:"htmlFlow",resolveTo:L8,tokenize:M8},O8={partial:!0,tokenize:F8},I8={partial:!0,tokenize:D8};function L8(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function M8(e,t,n){const r=this;let i,s,o,a,l;return u;function u(T){return c(T)}function c(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),d}function d(T){return T===33?(e.consume(T),f):T===47?(e.consume(T),s=!0,m):T===63?(e.consume(T),i=3,r.interrupt?t:E):hr(T)?(e.consume(T),o=String.fromCharCode(T),x):n(T)}function f(T){return T===45?(e.consume(T),i=2,h):T===91?(e.consume(T),i=5,a=0,y):hr(T)?(e.consume(T),i=4,r.interrupt?t:E):n(T)}function h(T){return T===45?(e.consume(T),r.interrupt?t:E):n(T)}function y(T){const ne="CDATA[";return T===ne.charCodeAt(a++)?(e.consume(T),a===ne.length?r.interrupt?t:O:y):n(T)}function m(T){return hr(T)?(e.consume(T),o=String.fromCharCode(T),x):n(T)}function x(T){if(T===null||T===47||T===62||Vt(T)){const ne=T===47,_e=o.toLowerCase();return!ne&&!s&&V1.includes(_e)?(i=1,r.interrupt?t(T):O(T)):j8.includes(o.toLowerCase())?(i=6,ne?(e.consume(T),g):r.interrupt?t(T):O(T)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(T):s?b(T):w(T))}return T===45||Xt(T)?(e.consume(T),o+=String.fromCharCode(T),x):n(T)}function g(T){return T===62?(e.consume(T),r.interrupt?t:O):n(T)}function b(T){return we(T)?(e.consume(T),b):j(T)}function w(T){return T===47?(e.consume(T),j):T===58||T===95||hr(T)?(e.consume(T),S):we(T)?(e.consume(T),w):j(T)}function S(T){return T===45||T===46||T===58||T===95||Xt(T)?(e.consume(T),S):C(T)}function C(T){return T===61?(e.consume(T),k):we(T)?(e.consume(T),C):w(T)}function k(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),l=T,_):we(T)?(e.consume(T),k):R(T)}function _(T){return T===l?(e.consume(T),l=null,A):T===null||ee(T)?n(T):(e.consume(T),_)}function R(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Vt(T)?C(T):(e.consume(T),R)}function A(T){return T===47||T===62||we(T)?w(T):n(T)}function j(T){return T===62?(e.consume(T),I):n(T)}function I(T){return T===null||ee(T)?O(T):we(T)?(e.consume(T),I):n(T)}function O(T){return T===45&&i===2?(e.consume(T),Z):T===60&&i===1?(e.consume(T),se):T===62&&i===4?(e.consume(T),Y):T===63&&i===3?(e.consume(T),E):T===93&&i===5?(e.consume(T),M):ee(T)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(O8,q,W)(T)):T===null||ee(T)?(e.exit("htmlFlowData"),W(T)):(e.consume(T),O)}function W(T){return e.check(I8,Q,q)(T)}function Q(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),K}function K(T){return T===null||ee(T)?W(T):(e.enter("htmlFlowData"),O(T))}function Z(T){return T===45?(e.consume(T),E):O(T)}function se(T){return T===47?(e.consume(T),o="",D):O(T)}function D(T){if(T===62){const ne=o.toLowerCase();return V1.includes(ne)?(e.consume(T),Y):O(T)}return hr(T)&&o.length<8?(e.consume(T),o+=String.fromCharCode(T),D):O(T)}function M(T){return T===93?(e.consume(T),E):O(T)}function E(T){return T===62?(e.consume(T),Y):T===45&&i===2?(e.consume(T),E):O(T)}function Y(T){return T===null||ee(T)?(e.exit("htmlFlowData"),q(T)):(e.consume(T),Y)}function q(T){return e.exit("htmlFlow"),t(T)}}function D8(e,t,n){const r=this;return i;function i(o){return ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function F8(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Eh,t,n)}}const $8={name:"htmlText",tokenize:z8};function z8(e,t,n){const r=this;let i,s,o;return a;function a(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),l}function l(E){return E===33?(e.consume(E),u):E===47?(e.consume(E),C):E===63?(e.consume(E),w):hr(E)?(e.consume(E),R):n(E)}function u(E){return E===45?(e.consume(E),c):E===91?(e.consume(E),s=0,y):hr(E)?(e.consume(E),b):n(E)}function c(E){return E===45?(e.consume(E),h):n(E)}function d(E){return E===null?n(E):E===45?(e.consume(E),f):ee(E)?(o=d,se(E)):(e.consume(E),d)}function f(E){return E===45?(e.consume(E),h):d(E)}function h(E){return E===62?Z(E):E===45?f(E):d(E)}function y(E){const Y="CDATA[";return E===Y.charCodeAt(s++)?(e.consume(E),s===Y.length?m:y):n(E)}function m(E){return E===null?n(E):E===93?(e.consume(E),x):ee(E)?(o=m,se(E)):(e.consume(E),m)}function x(E){return E===93?(e.consume(E),g):m(E)}function g(E){return E===62?Z(E):E===93?(e.consume(E),g):m(E)}function b(E){return E===null||E===62?Z(E):ee(E)?(o=b,se(E)):(e.consume(E),b)}function w(E){return E===null?n(E):E===63?(e.consume(E),S):ee(E)?(o=w,se(E)):(e.consume(E),w)}function S(E){return E===62?Z(E):w(E)}function C(E){return hr(E)?(e.consume(E),k):n(E)}function k(E){return E===45||Xt(E)?(e.consume(E),k):_(E)}function _(E){return ee(E)?(o=_,se(E)):we(E)?(e.consume(E),_):Z(E)}function R(E){return E===45||Xt(E)?(e.consume(E),R):E===47||E===62||Vt(E)?A(E):n(E)}function A(E){return E===47?(e.consume(E),Z):E===58||E===95||hr(E)?(e.consume(E),j):ee(E)?(o=A,se(E)):we(E)?(e.consume(E),A):Z(E)}function j(E){return E===45||E===46||E===58||E===95||Xt(E)?(e.consume(E),j):I(E)}function I(E){return E===61?(e.consume(E),O):ee(E)?(o=I,se(E)):we(E)?(e.consume(E),I):A(E)}function O(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),i=E,W):ee(E)?(o=O,se(E)):we(E)?(e.consume(E),O):(e.consume(E),Q)}function W(E){return E===i?(e.consume(E),i=void 0,K):E===null?n(E):ee(E)?(o=W,se(E)):(e.consume(E),W)}function Q(E){return E===null||E===34||E===39||E===60||E===61||E===96?n(E):E===47||E===62||Vt(E)?A(E):(e.consume(E),Q)}function K(E){return E===47||E===62||Vt(E)?A(E):n(E)}function Z(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):n(E)}function se(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),D}function D(E){return we(E)?je(e,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):M(E)}function M(E){return e.enter("htmlTextData"),o(E)}}const Xv={name:"labelEnd",resolveAll:H8,resolveTo:W8,tokenize:q8},B8={tokenize:K8},U8={tokenize:G8},V8={tokenize:Y8};function H8(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&yr(e,0,e.length,n),e}function W8(e,t){let n=e.length,r=0,i,s,o,a;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const l={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=pn(a,e.slice(s+1,s+r+3)),a=pn(a,[["enter",c,t]]),a=pn(a,Jv(t.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),t)),a=pn(a,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),a=pn(a,e.slice(o+1)),a=pn(a,[["exit",l,t]]),yr(e,s,e.length,a),e}function q8(e,t,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return a;function a(f){return s?s._inactive?d(f):(o=r.parser.defined.includes(Ao(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(B8,c,o?c:d)(f):f===91?e.attempt(U8,c,o?u:d)(f):o?c(f):d(f)}function u(f){return e.attempt(V8,c,d)(f)}function c(f){return t(f)}function d(f){return s._balanced=!0,n(f)}}function K8(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Vt(d)?hl(e,s)(d):s(d)}function s(d){return d===41?c(d):KA(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return Vt(d)?hl(e,l)(d):c(d)}function a(d){return n(d)}function l(d){return d===34||d===39||d===40?YA(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Vt(d)?hl(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function G8(e,t,n){const r=this;return i;function i(a){return GA.call(r,e,s,o,"reference","referenceMarker","referenceString")(a)}function s(a){return r.parser.defined.includes(Ao(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function Y8(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Q8={name:"labelStartImage",resolveAll:Xv.resolveAll,tokenize:J8};function J8(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),s}function s(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const X8={name:"labelStartLink",resolveAll:Xv.resolveAll,tokenize:Z8};function Z8(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Qf={name:"lineEnding",tokenize:e9};function e9(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),je(e,t,"linePrefix")}}const Lc={name:"thematicBreak",tokenize:t9};function t9(e,t,n){let r=0,i;return s;function s(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ee(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),we(u)?je(e,a,"whitespace")(u):a(u))}}const Nt={continuation:{tokenize:s9},exit:a9,name:"list",tokenize:i9},n9={partial:!0,tokenize:l9},r9={partial:!0,tokenize:o9};function i9(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(h){const y=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:kg(h)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Lc,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return kg(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Eh,r.interrupt?n:c,e.attempt(n9,f,d))}
vendor: 5,359 bytes, line 321
321function c(h){return r.containerState.initialBlankLine=!0,s++,f(h)}function d(h){return we(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function s9(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Eh,i,s);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,je(e,t,"listItemIndent",r.containerState.size+1)(a)}function s(a){return r.containerState.furtherBlankLines||!we(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(r9,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,je(e,e.attempt(Nt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function o9(e,t,n){const r=this;return je(e,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(s):n(s)}}function a9(e){e.exit(this.containerState.type)}function l9(e,t,n){const r=this;return je(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!we(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const H1={name:"setextUnderline",resolveTo:u9,tokenize:c9};function u9(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",o,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function c9(e,t,n){const r=this;let i;return s;function s(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),we(u)?je(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ee(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const d9={tokenize:h9};function h9(e){const t=this,n=e.attempt(Eh,r,e.attempt(this.parser.constructs.flowInitial,i,je(e,e.attempt(this.parser.constructs.flow,i,e.attempt(y8,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const f9={resolveAll:JA()},p9=QA("string"),m9=QA("text");function QA(e){return{resolveAll:JA(e==="text"?g9:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,o,a);return o;function o(c){return u(c)?s(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let f=-1;if(d)for(;++f<d.length;){const h=d[f];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function JA(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function g9(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let s=i.length,o=-1,a=0,l;for(;s--;){const u=i[s];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)l=!0,a++;else if(u!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const y9={42:Nt,43:Nt,45:Nt,48:Nt,49:Nt,50:Nt,51:Nt,52:Nt,53:Nt,54:Nt,55:Nt,56:Nt,57:Nt,62:VA},v9={91:S8},w9={[-2]:Yf,[-1]:Yf,32:Yf},b9={35:P8,42:Lc,45:[H1,Lc],60:N8,61:H1,95:Lc,96:U1,126:U1},x9={38:WA,92:HA},S9={[-5]:Qf,[-4]:Qf,[-3]:Qf,33:Q8,38:WA,42:Eg,60:[XW,$8],91:X8,92:[T8,HA],93:Xv,95:Eg,96:d8},k9={null:[Eg,f9]},E9={null:[42,95]},C9={null:[]},T9=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:E9,contentInitial:v9,disable:C9,document:y9,flow:b9,flowInitial:w9,insideSpan:k9,string:x9,text:S9},Symbol.toStringTag,{value:"Module"}));function _9(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 14,621 bytes, lines 321-323
321olumn:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let o=[],a=[];const l={attempt:_(C),check:_(k),consume:b,enter:w,exit:S,interrupt:_(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:y,parser:e,previous:null,sliceSerialize:f,sliceStream:h,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&s.push(t),u;function d(I){return o=pn(o,I),x(),o[o.length-1]!==null?[]:(R(t,0),u.events=Jv(s,u.events,u),u.events)}function f(I,O){return A9(h(I),O)}function h(I){return P9(o,I)}function y(){const{_bufferIndex:I,_index:O,line:W,column:Q,offset:K}=r;return{_bufferIndex:I,_index:O,line:W,column:Q,offset:K}}function m(I){i[I.line]=I.column,j()}function x(){let I;for(;r._index<o.length;){const O=o[r._index];if(typeof O=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<O.length;)g(O.charCodeAt(r._bufferIndex));else g(O)}}function g(I){c=c(I)}function b(I){ee(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,j()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=I}function w(I,O){const W=O||{};return W.type=I,W.start=y(),u.events.push(["enter",W,u]),a.push(W),W}function S(I){const O=a.pop();return O.end=y(),u.events.push(["exit",O,u]),O}function C(I,O){R(I,O.from)}function k(I,O){O.restore()}function _(I,O){return W;function W(Q,K,Z){let se,D,M,E;return Array.isArray(Q)?q(Q):"tokenize"in Q?q([Q]):Y(Q);function Y(ge){return fe;function fe(sn){const on=sn!==null&&ge[sn],kn=sn!==null&&ge.null,Qn=[...Array.isArray(on)?on:on?[on]:[],...Array.isArray(kn)?kn:kn?[kn]:[]];return q(Qn)(sn)}}function q(ge){return se=ge,D=0,ge.length===0?Z:T(ge[D])}function T(ge){return fe;function fe(sn){return E=A(),M=ge,ge.partial||(u.currentConstruct=ge),ge.name&&u.parser.constructs.disable.null.includes(ge.name)?_e():ge.tokenize.call(O?Object.assign(Object.create(u),O):u,l,ne,_e)(sn)}}function ne(ge){return I(M,E),K}function _e(ge){return E.restore(),++D<se.length?T(se[D]):Z}}}function R(I,O){I.resolveAll&&!s.includes(I)&&s.push(I),I.resolve&&yr(u.events,O,u.events.length-O,I.resolve(u.events.slice(O),u)),I.resolveTo&&(u.events=I.resolveTo(u.events,u))}function A(){const I=y(),O=u.previous,W=u.currentConstruct,Q=u.events.length,K=Array.from(a);return{from:Q,restore:Z};function Z(){r=I,u.previous=O,u.currentConstruct=W,u.events.length=Q,a=K,j()}}function j(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function P9(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,s)];else{if(o=e.slice(n,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}s>0&&o.push(e[i].slice(0,s))}return o}function A9(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
322`;break}case-3:{o=`\r
323`;break}case-2:{o=t?" ":"	";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function R9(e){const r={constructs:DW([T9,...(e||{}).extensions||[]]),content:i(WW),defined:[],document:i(KW),flow:i(d9),lazy:{},string:i(p9),text:i(m9)};return r;function i(s){return o;function o(a){return _9(r,s,a)}}}function j9(e){for(;!qA(e););return e}const W1=/[\0\t\n\r]/g;function N9(){let e=1,t="",n=!0,r;return i;function i(s,o,a){const l=[];let u,c,d,f,h;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),d=0,t="",n&&(s.charCodeAt(0)===65279&&d++,n=void 0);d<s.length;){if(W1.lastIndex=d,u=W1.exec(s),f=u&&u.index!==void 0?u.index:s.length,h=s.charCodeAt(f),!u){t=s.slice(d);break}if(h===10&&d===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<f&&(l.push(s.slice(d,f)),e+=f-d),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const O9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function I9(e){return e.replace(O9,L9)}function L9(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return UA(n.slice(s?2:1),s?16:10)}return Qv(n)||e}const XA={}.hasOwnProperty;function M9(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),D9(n)(j9(R9(n).document().write(N9()(e,t,!0))))}function D9(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(mu),autolinkProtocol:A,autolinkEmail:A,atxHeading:s(fu),blockQuote:s(kn),characterEscape:A,characterReference:A,codeFenced:s(Qn),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(Qn,o),codeText:s(ma,o),codeTextData:A,data:A,codeFlowValue:A,definition:s(hu),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(_h),hardBreakEscape:s(ga),hardBreakTrailing:s(ga),htmlFlow:s(pu,o),htmlFlowData:A,htmlText:s(pu,o),htmlTextData:A,image:s(ya),label:o,link:s(mu),listItem:s(Fi),listItemValue:f,listOrdered:s(va,d),listUnordered:s(va),paragraph:s(gu),reference:T,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(fu),strong:s(xr),thematicBreak:s(Ah)},exit:{atxHeading:l(),atxHeadingSequence:C,autolink:l(),autolinkEmail:on,autolinkProtocol:sn,blockQuote:l(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:ge,characterReference:fe,codeFenced:l(x),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:y,codeFlowValue:j,codeIndented:l(g),codeText:l(K),codeTextData:j,data:j,definition:l(),definitionDestinationString:S,definitionLabelString:b,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(W),htmlFlowData:j,htmlText:l(Q),htmlTextData:j,image:l(se),label:M,labelText:D,lineEnding:I,link:l(Z),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ne,resourceDestinationString:E,resourceTitleString:Y,resource:q,setextHeading:l(R),setextHeadingLineSequence:_,setextHeadingText:k,strong:l(),thematicBreak:l()}};ZA(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(N){let z={type:"root",children:[]};const te={stack:[z],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:c,data:n},le=[];let ye=-1;for(;++ye<N.length;)if(N[ye][1].type==="listOrdered"||N[ye][1].type==="listUnordered")if(N[ye][0]==="enter")le.push(ye);else{const Wt=le.pop();ye=i(N,Wt,ye)}for(ye=-1;++ye<N.length;){const Wt=t[N[ye][0]];XA.call(Wt,N[ye][1].type)&&Wt[N[ye][1].type].call(Object.assign({sliceSerialize:N[ye][2].sliceSerialize},te),N[ye][1])}if(te.tokenStack.length>0){const Wt=te.tokenStack[te.tokenStack.length-1];(Wt[1]||q1).call(te,void 0,Wt[0])}for(z.position={start:Yr(N.length>0?N[0][1].start:{line:1,column:1,offset:0}),end:Yr(N.length>0?N[N.length-2][1].end:{line:1,column:1,offset:0})},ye=-1;++ye<t.transforms.length;)z=t.transforms[ye](z)||z;return z}function i(N,z,te){let le=z-1,ye=-1,Wt=!1,Jn,qt,an,zr;for(;++le<=te;){const Ye=N[le];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?ye++:ye--,zr=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(Jn&&!zr&&!ye&&!an&&(an=le),zr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:zr=void 0}if(!ye&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||ye===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(Jn){let Br=le;for(qt=void 0;Br--;){const En=N[Br];if(En[1].type==="lineEnding"||En[1].type==="lineEndingBlank"){if(En[0]==="exit")continue;qt&&(N[qt][1].type="lineEndingBlank",Wt=!0),En[1].type="lineEnding",qt=Br}else if(!(En[1].type==="linePrefix"||En[1].type==="blockQuotePrefix"||En[1].type==="blockQuotePrefixWhitespace"||En[1].type==="blockQuoteMarker"||En[1].type==="listItemIndent"))break}an&&(!qt||an<qt)&&(Jn._spread=!0),Jn.end=Object.assign({},qt?N[qt][1].start:Ye[1].end),N.splice(qt||le,0,["exit",Jn,Ye[2]]),le++,te++}if(Ye[1].type==="listItemPrefix"){const Br={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};Jn=Br,N.splice(le,0,["enter",Br,Ye[2]]),le++,te++,an=void 0,zr=!0}}}return N[z][1]._spread=Wt,te}function s(N,z){return te;function te(le){a.call(this,N(le),le),z&&z.call(this,le)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(N,z,te){this.stack[this.stack.length-1].children.push(N),this.stack.push(N),this.tokenStack.push([z,te||void 0]),N.position={start:Yr(z.start),end:void 0}}function l(N){return z;function z(te){N&&N.call(this,te),u.call(this,te)}}function u(N,z){const te=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==N.type&&(z?z.call(this,N,le[0]):(le[1]||q1).call(this,N,le[0]));else throw new Error("Cannot close `"+N.type+"` ("+dl({start:N.start,end:N.end})+"): it’s not open");te.position.end=Yr(N.end)}function c(){return LW(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(N){if(this.data.expectingFirstListItemValue){const z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(N),10),this.data.expectingFirstListItemValue=void 0}}function h(){const N=this.resume(),z=this.stack[this.stack.length-1];z.lang=N}function y(){const N=this.resume(),z=this.stack[this.stack.length-1];z.meta=N}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const N=this.resume(),z=this.stack[this.stack.length-1];z.value=N.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const N=this.resume(),z=this.stack[this.stack.length-1];z.value=N.replace(/(\r?\n|\r)$/g,"")}function b(N){const z=this.resume(),te=this.stack[this.stack.length-1];te.label=z,te.identifier=Ao(this.sliceSerialize(N)).toLowerCase()}function w(){const N=this.resume(),z=this.stack[this.stack.length-1];z.title=N}function S(){const N=this.resume(),z=this.stack[this.stack.length-1];z.url=N}function C(N){const z=this.stack[this.stack.length-1];if(!z.depth){const te=this.sliceSerialize(N).length;z.depth=te}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function _(N){const z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(N).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function A(N){const te=this.stack[this.stack.length-1].children;let le=te[te.length-1];(!le||le.type!=="text")&&(le=Ph(),le.position={start:Yr(N.start),end:void 0},te.push(le)),this.stack.push(le)}function j(N){const z=this.stack.pop();z.value+=this.sliceSerialize(N),z.position.end=Yr(N.end)}function I(N){const z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=z.children[z.children.length-1];te.position.end=Yr(N.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(A.call(this,N),j.call(this,N))}function O(){this.data.atHardBreak=!0}function W(){const N=this.resume(),z=this.stack[this.stack.length-1];z.value=N}function Q(){const N=this.resume(),z=this.stack[this.stack.length-1];z.value=N}function K(){const N=this.resume(),z=this.stack[this.stack.length-1];z.value=N}function Z(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=z,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function se(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=z,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function D(N){const z=this.sliceSerialize(N),te=this.stack[this.stack.length-2];te.label=I9(z),te.identifier=Ao(z).toLowerCase()}function M(){const N=this.stack[this.stack.length-1],z=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const le=N.children;te.children=le}else te.alt=z}function E(){const N=this.resume(),z=this.stack[this.stack.length-1];z.url=N}function Y(){const N=this.resume(),z=this.stack[this.stack.length-1];z.title=N}function q(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function ne(N){const z=this.resume(),te=this.stack[this.stack.length-1];te.label=z,te.identifier=Ao(this.sliceSerialize(N)).toLowerCase(),this.data.referenceType="full"}function _e(N){this.data.characterReferenceType=N.type}function ge(N){const z=this.sliceSerialize(N),te=this.data.characterReferenceType;let le;te?(le=UA(z,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=Qv(z);const ye=this.stack[this.stack.length-1];ye.value+=le}function fe(N){const z=this.stack.pop();z.position.end=Yr(N.end)}function sn(N){j.call(this,N);const z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(N)}function on(N){j.call(this,N);const z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(N)}function kn(){return{type:"blockquote",children:[]}}function Qn(){return{type:"code",lang:null,meta:null,value:""}}function ma(){return{type:"inlineCode",value:""}}function hu(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _h(){return{type:"emphasis",children:[]}}function fu(){return{type:"heading",depth:0,children:[]}}function ga(){return{type:"break"}}function pu(){return{type:"html",value:""}}function ya(){return{type:"image",title:null,url:"",alt:null}}function mu(){return{type:"link",title:null,url:"",children:[]}}function va(N){return{type:"list",ordered:N.type==="listOrdered",start:null,spread:N._spread,children:[]}}function Fi(N){return{type:"listItem",spread:N._spread,checked:null,children:[]}}function gu(){return{type:"paragraph",children:[]}}function xr(){return{type:"strong",children:[]}}function Ph(){return{type:"text",value:""}}function Ah(){return{type:"thematicBreak"}}}function Yr(e){return{line:e.line,column:e.column,offset:e.offset}}function ZA(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ZA(e,r):F9(e,r)}}function F9(e,t){let n;for(n in t)if(XA.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function q1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+dl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+dl({start:t.start,end:t.end}
vendor: 12,156 bytes, lines 323-328
323)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+dl({start:t.start,end:t.end})+") is still open")}function $9(e){const t=this;t.parser=n;function n(r){return M9(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function z9(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function B9(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
324`}]}function U9(e,t){const n=t.value?t.value+`
325`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function V9(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function H9(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function W9(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=pa(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=s+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function q9(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function K9(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function eR(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function G9(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return eR(e,t);const i={src:pa(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function Y9(e,t){const n={src:pa(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Q9(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function J9(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return eR(e,t);const i={href:pa(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function X9(e,t){const n={href:pa(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Z9(e,t,n){const r=e.all(t),i=n?eq(n):tR(t),s={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
326`}),c.type==="element"&&c.tagName==="p"&&!i?o.push(...c.children):o.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
327`});const u={type:"element",tagName:"li",properties:s,children:o};return e.patch(t,u),e.applyData(t,u)}function eq(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=tR(n[r])}return t}function tR(e){const t=e.spread;return t??e.children.length>1}function tq(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function nq(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function rq(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function iq(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sq(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=qv(t.children[1]),l=LA(t.children[t.children.length-1]);a&&l&&(o.position={start:a,end:l}),i.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function oq(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const d=t.children[l],f={},h=o?o[l]:void 0;h&&(f.align=h);let y={type:"element",tagName:s,properties:f,children:[]};d&&(y.children=e.all(d),e.patch(d,y),y=e.applyData(d,y)),u.push(y)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function aq(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const K1=9,G1=32;function lq(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(Y1(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(Y1(t.slice(i),i>0,!1)),s.join("")}function Y1(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===K1||s===G1;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===K1||s===G1;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function uq(e,t){const n={type:"text",value:lq(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function cq(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const dq={blockquote:z9,break:B9,code:U9,delete:V9,emphasis:H9,footnoteReference:W9,heading:q9,html:K9,imageReference:G9,image:Y9,inlineCode:Q9,linkReference:J9,link:X9,listItem:Z9,list:tq,paragraph:nq,root:rq,strong:iq,table:sq,tableCell:aq,tableRow:oq,text:uq,thematicBreak:cq,toml:sc,yaml:sc,definition:sc,footnoteDefinition:sc};function sc(){}const nR=-1,Ch=0,fl=1,Id=2,Zv=3,e0=4,t0=5,n0=6,rR=7,iR=8,Q1=typeof self=="object"?self:globalThis,hq=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,o]=t[i];switch(s){case Ch:case nR:return n(o,i);case fl:{const a=n([],i);for(const l of o)a.push(r(l));return a}case Id:{const a=n({},i);for(const[l,u]of o)a[r(l)]=r(u);return a}case Zv:return n(new Date(o),i);case e0:{const{source:a,flags:l}=o;return n(new RegExp(a,l),i)}case t0:{const a=n(new Map,i);for(const[l,u]of o)a.set(r(l),r(u));return a}case n0:{const a=n(new Set,i);for(const l of o)a.add(r(l));return a}case rR:{const{name:a,message:l}=o;return n(new Q1[a](l),i)}case iR:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(new Q1[s](o),i)};return r},J1=e=>hq(new Map,e)(0),Ks="",{toString:fq}={},{keys:pq}=Object,Ma=e=>{const t=typeof e;if(t!=="object"||!e)return[Ch,t];const n=fq.call(e).slice(8,-1);switch(n){case"Array":return[fl,Ks];case"Object":return[Id,Ks];case"Date":return[Zv,Ks];case"RegExp":return[e0,Ks];case"Map":return[t0,Ks];case"Set":return[n0,Ks];case"DataView":return[fl,n]}return n.includes("Array")?[fl,n]:n.includes("Error")?[rR,n]:[Id,n]},oc=([e,t])=>e===Ch&&(t==="function"||t==="symbol"),mq=(e,t,n,r)=>{const i=(o,a)=>{const l=r.push(o)-1;return n.set(a,l),l},s=o=>{if(n.has(o))return n.get(o);let[a,l]=Ma(o);switch(a){case Ch:{let c=o;switch(l){case"bigint":a=iR,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([nR],o)}return i([a,c],o)}case fl:{if(l){let f=o;return l==="DataView"?f=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(o)),i([l,[...f]],o)}const c=[],d=i([a,c],o);for(const f of o)c.push(s(f));return d}case Id:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return s(o.toJSON());const c=[],d=i([a,c],o);for(const f of pq(o))(e||!oc(Ma(o[f])))&&c.push([s(f),s(o[f])]);return d}case Zv:return i([a,o.toISOString()],o);case e0:{const{source:c,flags:d}=o;return i([a,{source:c,flags:d}],o)}case t0:{const c=[],d=i([a,c],o);for(const[f,h]of o)(e||!(oc(Ma(f))||oc(Ma(h))))&&c.push([s(f),s(h)]);return d}case n0:{const c=[],d=i([a,c],o);for(const f of o)(e||!oc(Ma(f)))&&c.push(s(f));return d}}const{message:u}=o;return i([a,{name:l,message:u}],o)};return s},X1=(e,{json:t,lossy:n}={})=>{const r=[];return mq(!(t||n),!!t,new Map,r)(e),r},Ld=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?J1(X1(e,t)):structuredClone(e):(e,t)=>J1(X1(e,t));function gq(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function yq(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function vq(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||gq,r=e.options.footnoteBackLabel||yq,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),f=pa(d.toLowerCase());let h=0;const y=[],m=e.footnoteCounts.get(d);for(;m!==void 0&&++h<=m;){y.length>0&&y.push({type:"text",value:" "});let b=typeof n=="string"?n:n(l,h);typeof b=="string"&&(b={type:"text",value:b}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const x=c[c.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const b=x.children[x.children.length-1];b&&b.type==="text"?b.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...y)}else c.push(...y);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,g),a.push(g)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Ld(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
328`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)}
vendor: 18,128 bytes, lines 328-333
328,{type:"text",value:`
329`}]}}const sR=function(e){if(e==null)return Sq;if(typeof e=="function")return Th(e);if(typeof e=="object")return Array.isArray(e)?wq(e):bq(e);if(typeof e=="string")return xq(e);throw new Error("Expected function, string, or object as test")};function wq(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=sR(e[n]);return Th(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function bq(e){const t=e;return Th(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function xq(e){return Th(t);function t(n){return n&&n.type===e}}function Th(e){return t;function t(n,r,i){return!!(kq(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Sq(){return!0}function kq(e){return e!==null&&typeof e=="object"&&"type"in e}const oR=[],Eq=!0,Z1=!1,Cq="skip";function Tq(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=sR(i),o=r?-1:1;a(e,void 0,[])();function a(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const h=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return f;function f(){let h=oR,y,m,x;if((!t||s(l,u,c[c.length-1]||void 0))&&(h=_q(n(l,c)),h[0]===Z1))return h;if("children"in l&&l.children){const g=l;if(g.children&&h[0]!==Cq)for(m=(r?g.children.length:-1)+o,x=c.concat(g);m>-1&&m<g.children.length;){const b=g.children[m];if(y=a(b,m,x)(),y[0]===Z1)return y;m=typeof y[1]=="number"?y[1]:m+o}}return h}}}function _q(e){return Array.isArray(e)?e:typeof e=="number"?[Eq,e]:e==null?oR:[e]}function aR(e,t,n,r){let i,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,i=n):(s=t,o=n,i=r),Tq(e,s,a,i);function a(l,u){const c=u[u.length-1],d=c?c.children.indexOf(l):void 0;return o(l,d,c)}}const Cg={}.hasOwnProperty,Pq={};function Aq(e,t){const n=t||Pq,r=new Map,i=new Map,s=new Map,o={...dq,...n.handlers},a={all:u,applyData:jq,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:o,one:l,options:n,patch:Rq,wrap:Oq};return aR(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:i,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),a;function l(c,d){const f=c.type,h=a.handlers[f];if(Cg.call(a.handlers,f)&&h)return h(a,c,d);if(a.options.passThrough&&a.options.passThrough.includes(f)){if("children"in c){const{children:m,...x}=c,g=Ld(x);return g.children=a.all(c),g}return Ld(c)}return(a.options.unknownHandler||Nq)(a,c,d)}function u(c){const d=[];if("children"in c){const f=c.children;let h=-1;for(;++h<f.length;){const y=a.one(f[h],c);if(y){if(h&&f[h-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=eS(y.value)),!Array.isArray(y)&&y.type==="element")){const m=y.children[0];m&&m.type==="text"&&(m.value=eS(m.value))}Array.isArray(y)?d.push(...y):d.push(y)}}}return d}}function Rq(e,t){e.position&&(t.position=fW(e))}function jq(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,Ld(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Nq(e,t){const n=t.data||{},r="value"in t&&!(Cg.call(n,"hProperties")||Cg.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Oq(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
330`});++r<e.length;)r&&n.push({type:"text",value:`
331`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
332`}),n}function eS(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function tS(e,t){const n=Aq(e,t),r=n.one(e,void 0),i=vq(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
333`},i),s}function Iq(e,t){return e&&"run"in e?async function(n,r){const i=tS(n,{file:r,...t});await e.run(i,r)}:function(n,r){return tS(n,{file:r,...e||t})}}function nS(e){if(e)throw e}var Mc=Object.prototype.hasOwnProperty,lR=Object.prototype.toString,rS=Object.defineProperty,iS=Object.getOwnPropertyDescriptor,sS=function(t){return typeof Array.isArray=="function"?Array.isArray(t):lR.call(t)==="[object Array]"},oS=function(t){if(!t||lR.call(t)!=="[object Object]")return!1;var n=Mc.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Mc.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Mc.call(t,i)},aS=function(t,n){rS&&n.name==="__proto__"?rS(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},lS=function(t,n){if(n==="__proto__")if(Mc.call(t,n)){if(iS)return iS(t,n).value}else return;return t[n]},Lq=function e(){var t,n,r,i,s,o,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=lS(a,n),i=lS(t,n),a!==i&&(c&&i&&(oS(i)||(s=sS(i)))?(s?(s=!1,o=r&&sS(r)?r:[]):o=r&&oS(r)?r:{},aS(a,{name:n,newValue:e(c,o,i)})):typeof i<"u"&&aS(a,{name:n,newValue:i}));return a};const Jf=As(Lq);function Tg(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)}function Mq(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(l,...u){const c=e[++s];let d=-1;if(l){o(l);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,c?Dq(c,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Dq(e,t){let n;return r;function r(...o){const a=e.length>o.length;let l;a&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(o,...a){n||(n=!0,t(o,...a))}function s(o){i(null,o)}}const rr={basename:Fq,dirname:$q,extname:zq,join:Bq,sep:"/"};function Fq(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');du(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function $q(e){if(du(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function zq(e){du(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Bq(...e){let t=-1,n;for(;++t<e.length;)du(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Uq(n)}function Uq(e){du(e);const t=e.codePointAt(0)===47;let n=Vq(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Vq(e,t){let n="",r=0,i=-1,s=0,o=-1,a,l;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s>-1?s++:s=-1}return n}function du(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Hq={cwd:Wq};function Wq(){return"/"}function _g(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function qq(e){if(typeof e=="string")e=new URL(e);else if(!_g(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Kq(e)}function Kq(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Xf=["history","path","basename","stem","extname","dirname"];class uR{constructor(t){let n;t?_g(t)?n={path:t}:typeof t=="string"||Gq(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Hq.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Xf.length;){const s=Xf[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Xf.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?rr.basename(this.path):void 0}set basename(t){ep(t,"basename"),Zf(t,"basename"),this.path=rr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?rr.dirname(this.path):void 0}set dirname(t){uS(this.basename,"dirname"),this.path=rr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?rr.extname(this.path):void 0}set extname(t){if(Zf(t,"extname"),uS(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){_g(t)&&(t=qq(t)),ep(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?rr.basename(this.path,this.extname):void 0}set stem(t){ep(t,"stem"),Zf(t,"stem"),this.path=rr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new xt(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Zf(e,t){if(e&&e.includes(rr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rr.sep+"`")}function ep(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function uS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Gq(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Yq=function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s},Qq={}.hasOwnProperty;class r0 extends Yq{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Mq()}copy(){const t=new r0;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Jf(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(rp("data",this.frozen),this.namespace[t]=n,this):Qq.call(this.namespace,t)&&this.namespace[t]||void 0:t?(rp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ac(t),r=this.parser||this.Parser;return tp("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),tp("process",this.parser||this.Parser),np("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const a=ac(t),l=r.parse(a);r.run(l,a,function(c,d,f){if(c||!d||!f)return u(c);const h=d,y=r.stringify(h,f);Zq(y)?f.value=y:f.result=y,u(c,f)});function u(c,d){c||!d?o(c):s?s(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),tp("processSync",this.parser||this.Parser),np("processSync",this.compiler||this.Compiler),this.process(t,i),dS("processSync","process",n),r;function i(s,o){n=!0,nS(s),r=o}}run(t,n,r){cS(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,a){const l=ac(n);i.run(t,l,u);function u(c,d,f){const h=d||t;c?a(c):o?o(h):r(void 0,h,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),dS("runSync","run",r),i;function s(o,a){nS(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=ac(n),i=this.compiler||this.Compiler;return np("stringify",i),cS(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(rp("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=Jf(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];s(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===u){f=d;break}if(f===-1)r.push([u,...c]);else if(c.length>0){let[h,...y]=c;const m=r[f][1];Tg(m)&&Tg(h)&&(h=Jf(!0,m,h)),r[f]=[u,h,...y]}}}}const Jq=new r0().freeze();function tp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function np(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function rp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function cS(e){if(!Tg(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function dS(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ac(e){return Xq(e)?e:new uR(e)}function Xq(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Zq(e){return typeof e=="string"||eK(e)}function eK(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const tK="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",hS=[],fS={allowDangerousHtml:!0},nK=/^(https?|ircs?|mailto|xmpp)$/i,rK=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function iK(e){const t=sK(e),n=oK(e);return aK(t.runSync(t.parse(n),n),e)}function sK(e){const t=e.rehypePlugins||hS,n=e.remarkPlugins||hS,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...fS}:fS;return Jq().use($9).use(n).use(Iq,r).use(t)}function oK(e){const t=e.children||"",n=new uR;return typeof t=="string"&&(n.value=t),n}function aK(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,s=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,l=t.urlTransform||lK;for(const c of rK)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+tK+c.id,void 0);return aR(e,u),vW(e,{Fragment:p.Fragment,components:i,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0});function u(c,d,f){if(c.type==="raw"&&f&&typeof d=="number")return o?f.children.splice(d,1):f.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let h;for(h in Gf)if(Object.hasOwn(Gf,h)&&Object.hasOwn(c.properties,h)){const y=c.properties[h],m=Gf[h];(m===null||m.includes(c.tagName))&&(c.properties[h]=l(String(y||""),h,c))}}
333if(c.type==="element"){let h=n?!n.includes(c.tagName):s?s.includes(c.tagName):!1;if(!h&&r&&typeof d=="number"&&(h=!r(c,d,f)),h&&f&&typeof d=="number")return a&&c.children?f.children.splice(d,1,...c.children):f.children.splice(d,1),d}}}function lK(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||nK.test(e.slice(0,t))?e:""}const uK=({currentPage:e})=>{const[t,n]=v.useState(""),[r,i]=v.useState(""),[s,o]=v.useState(!0),a=v.useRef(null),{messages:l,isLoading:u,sessionId:c,conversationId:d,sendMessage:f}=bH(),{data:h}=la({queryKey:["wizard-config"],queryFn:async()=>{const{data:g}=await wt.from("ai_wizard_config").select("*").single();return g}});v.useEffect(()=>{a.current&&a.current.scrollIntoView({behavior:"smooth"})},[l]);const y=v.useMemo(()=>{const g={"/publications":[{label:"Search Papers",message:"Help me find papers on a specific topic"},{label:"Recent Publications",message:"What are your most recent publications?"},{label:"Research Areas",message:"What research areas do you focus on?"}],"/research":[{label:"Active Projects",message:"What research projects are currently active?"},{label:"Funding",message:"Tell me about your grants and funding"},{label:"Collaborate",message:"How can I collaborate on research?"}],"/team":[{label:"Team Members",message:"Who are your team members?"},{label:"Expertise",message:"What expertise does your team have?"},{label:"Join Team",message:"Are there any open positions?"}],"/blog":[{label:"Latest Articles",message:"What are your latest blog posts?"},{label:"AI Topics",message:"What AI topics do you cover?"},{label:"Subscribe",message:"How can I subscribe to updates?"}]},b=[{label:"Latest Research",message:"What's your latest research about?"},{label:"Team Info",message:"Who are your team members?"},{label:"Publications",message:"Tell me about your publications"}];if(e){const w=Object.keys(g).find(S=>e.startsWith(S));if(w)return g[w]}return b},[e]),m=async()=>{t.trim()&&(s&&!r.trim()&&o(!1),await f(t,r||"Anonymous",e),n(""))},x=g=>{g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),m())};return p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs(CA,{className:"flex-1 p-6",children:[l.length===0&&h&&p.jsxs("div",{className:"text-center space-y-4 py-8",children:[p.jsx(qf,{mood:"neutral",size:"lg"}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("h3",{className:"text-lg font-semibold",children:"Welcome to Zero Point Labs"}),p.jsx("p",{className:"text-sm text-muted-foreground max-w-md mx-auto",children:h.greeting_message})]}),p.jsx("div",{className:"flex flex-wrap gap-2 justify-center pt-4",children:y.map((g,b)=>p.jsx(rt,{variant:"outline",size:"sm",onClick:()=>n(g.message),children:g.label},b))})]}),l.map((g,b)=>p.jsxs("div",{className:"mb-6",children:[p.jsxs("div",{className:`flex gap-3 ${g.role==="user"?"flex-row-reverse":"flex-row"}`,children:[g.role==="assistant"&&p.jsx(qf,{mood:u&&b===l.length-1?"thinking":"neutral"}),p.jsx("div",{className:`rounded-lg px-4 py-3 max-w-[80%] ${g.role==="user"?"bg-primary text-primary-foreground ml-auto":"bg-muted"}`,children:g.role==="assistant"?p.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none prose-p:my-1 prose-headings:my-2 prose-ul:my-1 prose-ol:my-1 prose-li:my-0.5 prose-pre:my-2 prose-code:text-xs prose-a:text-primary",children:p.jsx(iK,{children:g.content})}):p.jsx("p",{className:"text-sm whitespace-pre-wrap",children:g.content})})]}),g.role==="assistant"&&g.id&&g.conversationId&&p.jsx("div",{className:"ml-14 mt-2",children:p.jsx(xH,{messageId:g.id,conversationId:g.conversationId,sessionId:c})})]},b)),u&&p.jsxs("div",{className:"flex gap-3 mb-4",children:[p.jsx(qf,{mood:"thinking"}),p.jsxs("div",{className:"bg-muted rounded-lg px-4 py-3 flex items-center gap-2",children:[p.jsx(R_,{className:"h-4 w-4 animate-spin"}),p.jsx("span",{className:"text-sm text-muted-foreground",children:"Thinking..."})]})]}),p.jsx("div",{ref:a})]}),p.jsxs("div",{className:"p-4 border-t space-y-3",children:[s&&p.jsx(gg,{placeholder:"Your name (optional)",value:r,onChange:g=>i(g.target.value),className:"w-full"}),p.jsxs("div",{className:"flex gap-2",children:[p.jsx(gg,{placeholder:"Ask about our research, team, or AI to
333pics...",value:t,onChange:g=>n(g.target.value),onKeyPress:x,disabled:u,className:"flex-1"}),p.jsx(rt,{onClick:m,disabled:u||!t.trim(),size:"icon",children:p.jsx(ZB,{className:"h-4 w-4"})})]})]})]})},cK=({currentPage:e})=>{const[t,n]=v.useState(!1);return p.jsxs(IP,{open:t,onOpenChange:n,children:[p.jsx(LP,{asChild:!0,children:p.jsx(rt,{size:"lg",className:"fixed bottom-6 right-6 h-16 w-16 rounded-full shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-110 z-50 bg-gradient-to-br from-primary to-primary/80","aria-label":"Open AI Research Assistant",children:p.jsxs("div",{className:"relative",children:[p.jsx(ql,{className:"h-7 w-7"}),p.jsx("div",{className:"absolute -top-1 -right-1 h-3 w-3 bg-green-500 rounded-full"})]})})}),p.jsxs(jv,{side:"right",className:"w-full sm:w-[500px] p-0 flex flex-col",children:[p.jsxs(DP,{className:"p-6 pb-4 border-b",children:[p.jsxs(FP,{className:"flex items-center gap-2 text-xl",children:[p.jsx(ql,{className:"h-6 w-6 text-primary"}),"ZPL Research Assistant"]}),p.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Ask about our research, team, publications, or anything AI-related."})]}),p.jsx(uK,{currentPage:e})]})]})},dK=()=>{const e=wr();return e.pathname.startsWith("/admin")||e.pathname==="/login"?null:p.jsx(cK,{currentPage:e.pathname})};I_.init({platformId:"Zeropointlabs",apiKey:"b6a54d8c00af725405423a933377e6c00556d77d5f6e9d230cf52fd26ba87726",hubUrl:"https://gylrfvmzcuauhhmyappp.supabase.co"});const hK=v.lazy(()=>Fe(()=>import("./About-C2j6SfnZ.js"),__vite__mapDeps([0,1]))),fK=v.lazy(()=>Fe(()=>import("./Research-BG9oHxND.js"),__vite__mapDeps([2,1,3,4,5,6,7]))),pK=v.lazy(()=>Fe(()=>import("./Team-DW2T8Q48.js"),__vite__mapDeps([8,1,9,10,11,12]))),mK=v.lazy(()=>Fe(()=>import("./TeamMember-GgJSOGsV.js"),__vite__mapDeps([13,1,14,9,10,11,12,3,4,5,15]))),gK=v.lazy(()=>Fe(()=>import("./Insights-DU7yuYeR.js"),__vite__mapDeps([16,1,3,4,5,17,12]))),yK=v.lazy(()=>Fe(()=>import("./Blog-DvgGQoFA.js"),__vite__mapDeps([18,1,15,12,19,7]))),vK=v.lazy(()=>Fe(()=>import("./BlogPost-DgE29edd.js"),__vite__mapDeps([20,1,21,19,7]))),wK=v.lazy(()=>Fe(()=>import("./Publications-B2lkU11m.js"),__vite__mapDeps([22,1,3,4,5,6,14,15,17]))),bK=v.lazy(()=>Fe(()=>import("./FAQ-Bvcl6HoX.js"),__vite__mapDeps([23,1,15,10]))),xK=v.lazy(()=>Fe(()=>import("./Login-Dvz-368h.js"),__vite__mapDeps([24,25]))),SK=v.lazy(()=>Fe(()=>import("./ResetPassword-fB88ApCl.js"),__vite__mapDeps([26,25]))),kK=v.lazy(()=>Fe(()=>import("./Contact-DO-nnpMD.js"),__vite__mapDeps([27,25,3,4,5,28,11,10,19]))),EK=v.lazy(()=>Fe(()=>import("./AdminLayout-ClAmdIQY.js"),__vite__mapDeps([29,30,4,5,12,31,10]))),CK=v.lazy(()=>Fe(()=>import("./Dashboard-CZSAy0j_.js"),__vite__mapDeps([32,1,33,12,31,34,10]))),TK=v.lazy(()=>Fe(()=>import("./TeamManagement-xPNaNo08.js"),__vite__mapDeps([35,36,28,37,25,1,38,39,40,41,42,5,3,4,43,33]))),_K=v.lazy(()=>Fe(()=>import("./PublicationsManagement-VwqpOWoT.js"),__vite__mapDeps([44,36,28,37,25,1,38,39,40,41,42,5,3,4,45,33]))),PK=v.lazy(()=>Fe(()=>import("./BlogManagement-BuVZp2j3.js"),__vite__mapDeps([46,1,28,36,37,25,38,39,40,21,41,42,5,3,4,43,33,34,47,48]))),AK=v.lazy(()=>Fe(()=>import("./ResearchManagement-3JCdraJY.js"),__vite__mapDeps([49,1,28,36,37,25,38,41,42,5,3,4,33,34,47,48]))),RK=v.lazy(()=>Fe(()=>import("./WhitePapersManagement-Coizpz_H.js"),__vite__mapDeps([50,1,28,36,37,25,38,39,40,41,42,5,3,4,45,43,33,34,12,17,47,48]))),jK=v.lazy(()=>Fe(()=>import("./ContactsManagement-2tzDkgZI.js"),__vite__mapDeps([51,36,1,33,41,3,4,5,25,10]))),NK=v.lazy(()=>Fe(()=>import("./NewsletterManagement-Dzi8ivJr.js"),__vite__mapDeps([52,36,1,33,3,4,5,38,15,17,10,48]))),OK=v.lazy(()=>Fe(()=>import("./AnalyticsPage-enBKY0FU.js"),__vite__mapDeps([53,3,4,5,33,40]))),IK=v.lazy(()=>Fe(()=>import("./SettingsPage-QJUQP6TU.js"),__vite__mapDeps([54,36,25,55]))),LK=v.lazy(()=>Fe(()=>import("./WizardConfig-Coaronwq.js"),__vite__mapDeps([56,36,25,5,42,30,55]))),MK=()=>p.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:p.jsxs("div",{className:"space-y-4 w-full max-w-md px-4",children:[p.jsx(Qi,{className:"h-8 w-3/4 mx-auto"}),p.jsx(Qi,{className:"h-4 w-full"}),p.jsx(Qi,{className:"h-4 w-5/6"}),p.jsxs("div",{className:"flex justify-center gap-4 pt-4",children:[p.jsx(Qi,{className:"h-10 w-24"}),p.jsx(Qi,{className:"h-10 w-24"})]})]})}),DK=new d$({defaultOptions:{queries:{staleTime:1e3*60*5,gcTime:1e3*60*30,refetchOnWindowFocus:!1}}});function FK(){const e=wr();return p.jsx(f2,{mode:"wait",children:p.jsxs(cI,{location:e,children:[p.jsx(Ce,{path:"/",element:p.jsx(Rt,{children:p.jsx(iH,{})})}),p.jsx(Ce,{path:"/about",element:p.jsx(Rt,{children:p.jsx(hK,{})})}),p.jsx(Ce,{path:"/research",element:p.jsx(Rt,{children:p.jsx(fK,{})})}),p.jsx(Ce,{path:"/team",element:p.jsx(Rt,{children:p.jsx(pK,{})})}),p.jsx(Ce,{path:"/team/:memberSlug",element:p.jsx(Rt,{children:p.jsx(mK,{})})}),p.jsx(Ce,{path:"/insights",element:p.jsx(Rt,{children:p.jsx(gK,{})})}),p.jsx(Ce,{path:"/blog",element:p.jsx(Rt,{children:p.jsx(yK,{})})}),p.jsx(Ce,{path:"/blog/:slug",element:p.jsx(Rt,{children:p.jsx(vK,{})})}),p.jsx(Ce,{path:"/publications",element:p.jsx(Rt,{children:p.jsx(wK,{})})}),p.jsx(Ce,{path:"/contact",element:p.jsx(Rt,{children:p.jsx(kK,{})})}),p.jsx(Ce,{path:"/faq",element:p.jsx(Rt,{children:p.jsx(bK,{})})}),p.jsx(Ce,{path:"/login",element:p.jsx(Rt,{children:p.jsx(xK,{})})}),p.jsx(Ce,{path:"/reset-password",element:p.jsx(Rt,{children:p.jsx(SK,{})})}),p.jsxs(Ce,{path:"/admin",element:p.jsx(E5,{children:p.jsx(EK,{})}),children:[p.jsx(Ce,{index:!0,element:p.jsx(CK,{})}),p.jsx(Ce,{path:"team",element:p.jsx(TK,{})}),p.jsx(Ce,{path:"publications",element:p.jsx(_K,{})}),p.jsx(Ce,{path:"blog",element:p.jsx(PK,{})}),p.jsx(Ce,{path:"research",element:p.jsx(AK,{})}),p.jsx(Ce,{path:"white-papers",element:p.jsx(RK,{})}),p.jsx(Ce,{path:"contacts",element:p.jsx(jK,{})}),p.jsx(Ce,{path:"newsletter",element:p.jsx(NK,{})}),p.jsx(Ce,{path:"analytics",element:p.jsx(OK,{})}),p.jsx(Ce,{path:"settings",element:p.jsx(IK,{})}),p.jsx(Ce,{path:"wizard-config",element:p.jsx(LK,{})})]}),p.jsx(Ce,{path:"*",element:p.jsx(Rt,{children:p.jsx(sH,{})})})]},e.pathname)})}
333function $K(){return p.jsx(y_,{children:p.jsxs(g$,{client:DK,children:[p.jsx(wO,{}),p.jsx(vI,{children:p.jsxs(S5,{children:[p.jsx(OB,{}),p.jsx(rU,{}),p.jsx(dK,{}),p.jsx(v.Suspense,{fallback:p.jsx(MK,{}),children:p.jsx("main",{id:"main-content",children:p.jsx(FK,{})})})]})})]})})}LE(document.getElementById("root")).render(p.jsx($K,{}));export{F3 as $,dn as A,ql as B,ws as C,R_ as D,ig as E,rH as F,KB as G,_o as H,gg as I,da as J,nt as K,YB as L,gr as M,N3 as N,he as O,be as P,ZK as Q,R3 as R,dA as S,tU as T,N_ as U,rA as V,iA as W,sA as X,k5 as Y,nU as Z,_y as _,bs as a,$3 as a0,_A as a1,ZB as a2,Ke as a3,ve as a4,rn as a5,xv as a6,PU as a7,vs as a8,ha as a9,Yn as aA,Ps as aB,Dc as aC,As as aD,w_ as aE,y1 as aF,bv as aG,ky as aH,QV as aI,cV as aJ,dP as aK,tP as aL,CU as aM,TU as aN,wv as aO,rP as aP,Wl as aQ,oH as aR,mv as aS,lu as aT,Pm as aU,Ml as aV,l$ as aW,dt as aX,Lt as aY,XF as aZ,KK as aa,IP as ab,jv as ac,IB as ad,T_ as ae,wr as af,VK as ag,qB as ah,j_ as ai,UK as aj,m$ as ak,L as al,Ey as am,Kx as an,O_ as ao,AP as ap,RP as aq,OP as ar,jP as as,NP as at,o3 as au,l3 as av,YK as aw,a3 as ax,QK as ay,$B as az,Fv as b,Te as c,Rd as d,M3 as e,D3 as f,rt as g,$n as h,qa as i,p as j,eU as k,P_ as l,ie as m,Qi as n,W3 as o,BK as p,XK as q,v as r,wt as s,VB as t,la as u,If as v,tr as w,QB as x,Z6 as y,G3 as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.