vendor: 5,857 bytes, lines 1-9
1var a_=Object.defineProperty;var hp=e=>{throw TypeError(e)};var l_=(e,t,r)=>t in e?a_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var kr=(e,t,r)=>l_(e,typeof t!="symbol"?t+"":t,r),Kc=(e,t,r)=>t.has(e)||hp("Cannot "+r);var T=(e,t,r)=>(Kc(e,t,"read from private field"),r?r.call(e):t.get(e)),se=(e,t,r)=>t.has(e)?hp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),K=(e,t,r,n)=>(Kc(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Je=(e,t,r)=>(Kc(e,t,"access private method"),r);var _a=(e,t,r,n)=>({set _(s){K(e,t,s,r)},get _(){return T(e,t,n)}});function c_(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(n,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function ia(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sy={exports:{}},nc={},Ey={exports:{}},ee={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var aa=Symbol.for("react.element"),u_=Symbol.for("react.portal"),d_=Symbol.for("react.fragment"),h_=Symbol.for("react.strict_mode"),f_=Symbol.for("react.profiler"),p_=Symbol.for("react.provider"),m_=Symbol.for("react.context"),g_=Symbol.for("react.forward_ref"),y_=Symbol.for("react.suspense"),v_=Symbol.for("react.memo"),w_=Symbol.for("react.lazy"),fp=Symbol.iterator;function x_(e){return e===null||typeof e!="object"?null:(e=fp&&e[fp]||e["@@iterator"],typeof e=="function"?e:null)}var jy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ty=Object.assign,Ny={};function Io(e,t,r){this.props=e,this.context=t,this.refs=Ny,this.updater=r||jy}Io.prototype.isReactComponent={};Io.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")};Io.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cy(){}Cy.prototype=Io.prototype;function Nh(e,t,r){this.props=e,this.context=t,this.refs=Ny,this.updater=r||jy}var Ch=Nh.prototype=new Cy;Ch.constructor=Nh;Ty(Ch,Io.prototype);Ch.isPureReactComponent=!0;var pp=Array.isArray,Ay=Object.prototype.hasOwnProperty,Ah={current:null},Py={key:!0,ref:!0,__self:!0,__source:!0};function Ry(e,t,r){var n,s={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Ay.call(t,n)&&!Py.hasOwnProperty(n)&&(s[n]=t[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)s[n]===void 0&&(s[n]=a[n]);return{$$typeof:aa,type:e,key:o,ref:i,props:s,_owner:Ah.current}}function b_(e,t){return{$$typeof:aa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ph(e){return typeof e=="object"&&e!==null&&e.$$typeof===aa}function __(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var mp=/\/+/g;function Zc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?__(""+e.key):t.toString(36)}function Xa(e,t,r,n,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case aa:case u_:i=!0}}if(i)return i=e,s=s(i),e=n===""?"."+Zc(i,0):n,pp(s)?(r="",e!=null&&(r=e.replace(mp,"$&/")+"/"),Xa(s,t,r,"",function(u){return u})):s!=null&&(Ph(s)&&(s=b_(s,r+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(mp,"$&/")+"/")+e)),t.push(s)),1;if(i=0,n=n===""?".":n+":",pp(e))for(var a=0;a<e.length;a++){o=e[a];var l=n+Zc(o,a);i+=Xa(o,t,r,l,s)}else if(l=x_(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=n+Zc(o,a++),i+=Xa(o,t,r,l,s);else if(o==="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 i}function ka(e,t,r){if(e==null)return e;var n=[],s=0;return Xa(e,n,"","",function(o){return t.call(r,o,s++)}),n}function k_(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var at={current:null},el={transition:null},S_={ReactCurrentDispatcher:at,ReactCurrentBatchConfig:el,ReactCurrentOwner:Ah};function Oy(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 4,241 bytes, lines 9-25
9ee.Children={map:ka,forEach:function(e,t,r){ka(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ka(e,function(){t++}),t},toArray:function(e){return ka(e,function(t){return t})||[]},only:function(e){if(!Ph(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=Io;ee.Fragment=d_;ee.Profiler=f_;ee.PureComponent=Nh;ee.StrictMode=h_;ee.Suspense=y_;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S_;ee.act=Oy;ee.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Ty({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Ah.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Ay.call(t,l)&&!Py.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:aa,type:e.type,key:s,ref:o,props:n,_owner:i}};ee.createContext=function(e){return e={$$typeof:m_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:p_,_context:e},e.Consumer=e};ee.createElement=Ry;ee.createFactory=function(e){var t=Ry.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:g_,render:e}};ee.isValidElement=Ph;ee.lazy=function(e){return{$$typeof:w_,_payload:{_status:-1,_result:e},_init:k_}};ee.memo=function(e,t){return{$$typeof:v_,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=el.transition;el.transition={};try{e()}finally{el.transition=t}};ee.unstable_act=Oy;ee.useCallback=function(e,t){return at.current.useCallback(e,t)};ee.useContext=function(e){return at.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return at.current.useDeferredValue(e)};ee.useEffect=function(e,t){return at.current.useEffect(e,t)};ee.useId=function(){return at.current.useId()};ee.useImperativeHandle=function(e,t,r){return at.current.useImperativeHandle(e,t,r)};ee.useInsertionEffect=function(e,t){return at.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return at.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return at.current.useMemo(e,t)};ee.useReducer=function(e,t,r){return at.current.useReducer(e,t,r)};ee.useRef=function(e){return at.current.useRef(e)};ee.useState=function(e){return at.current.useState(e)};ee.useSyncExternalStore=function(e,t,r){return at.current.useSyncExternalStore(e,t,r)};ee.useTransition=function(){return at.current.useTransition()};ee.version="18.3.1";Ey.exports=ee;var b=Ey.exports;const A=ia(b),Rh=c_({__proto__:null,default:A},[b]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var E_=b,j_=Symbol.for("react.element"),T_=Symbol.for("react.fragment"),N_=Object.prototype.hasOwnProperty,C_=E_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A_={key:!0,ref:!0,__self:!0,__source:!0};function Iy(e,t,r){var n,s={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)N_.call(t,n)&&!A_.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:j_,type:e,key:o,ref:i,props:s,_owner:C_.current}}nc.Fragment=T_;nc.jsx=Iy;nc.jsxs=Iy;Sy.exports=nc;var c=Sy.exports,$y={exports:{}},jt={},Dy={exports:{}},My={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(N,P){var D=N.length;N.push(P);e:for(;0<D;){var G=D-1>>>1,F=N[G];if(0<s(F,P))N[G]=P,N[D]=F,D=G;else break e}}function r(N){return N.length===0?null:N[0]}function n(N){if(N.length===0)return null;var P=N[0],D=N.pop();
vendor: 10,404 bytes, lines 25-34
25if(D!==P){N[0]=D;e:for(var G=0,F=N.length,X=F>>>1;G<X;){var te=2*(G+1)-1,Re=N[te],Ge=te+1,oe=N[Ge];if(0>s(Re,D))Ge<F&&0>s(oe,Re)?(N[G]=oe,N[Ge]=D,G=Ge):(N[G]=Re,N[te]=D,G=te);else if(Ge<F&&0>s(oe,D))N[G]=oe,N[Ge]=D,G=Ge;else break e}}return P}function s(N,P){var D=N.sortIndex-P.sortIndex;return D!==0?D:N.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],d=1,h=null,p=3,f=!1,y=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(N){for(var P=r(u);P!==null;){if(P.callback===null)n(u);else if(P.startTime<=N)n(u),P.sortIndex=P.expirationTime,t(l,P);else break;P=r(u)}}function _(N){if(m=!1,w(N),!y)if(r(l)!==null)y=!0,U(k);else{var P=r(u);P!==null&&Z(_,P.startTime-N)}}function k(N,P){y=!1,m&&(m=!1,v(j),j=-1),f=!0;var D=p;try{for(w(P),h=r(l);h!==null&&(!(h.expirationTime>P)||N&&!B());){var G=h.callback;if(typeof G=="function"){h.callback=null,p=h.priorityLevel;var F=G(h.expirationTime<=P);P=e.unstable_now(),typeof F=="function"?h.callback=F:h===r(l)&&n(l),w(P)}else n(l);h=r(l)}if(h!==null)var X=!0;else{var te=r(u);te!==null&&Z(_,te.startTime-P),X=!1}return X}finally{h=null,p=D,f=!1}}var S=!1,E=null,j=-1,O=5,I=-1;function B(){return!(e.unstable_now()-I<O)}function M(){if(E!==null){var N=e.unstable_now();I=N;var P=!0;try{P=E(!0,N)}finally{P?Y():(S=!1,E=null)}}else S=!1}var Y;if(typeof g=="function")Y=function(){g(M)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,Q=$.port2;$.port1.onmessage=M,Y=function(){Q.postMessage(null)}}else Y=function(){x(M,0)};function U(N){E=N,S||(S=!0,Y())}function Z(N,P){j=x(function(){N(e.unstable_now())},P)}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(N){N.callback=null},e.unstable_continueExecution=function(){y||f||(y=!0,U(k))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(N){switch(p){case 1:case 2:case 3:var P=3;break;default:P=p}var D=p;p=P;try{return N()}finally{p=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,P){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var D=p;p=N;try{return P()}finally{p=D}},e.unstable_scheduleCallback=function(N,P,D){var G=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?G+D:G):D=G,N){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=D+F,N={id:d++,callback:P,priorityLevel:N,startTime:D,expirationTime:F,sortIndex:-1},D>G?(N.sortIndex=D,t(u,N),r(l)===null&&N===r(u)&&(m?(v(j),j=-1):m=!0,Z(_,D-G))):(N.sortIndex=F,t(l,N),y||f||(y=!0,U(k))),N},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(N){var P=p;return function(){var D=p;p=P;try{return N.apply(this,arguments)}finally{p=D}}}})(My);Dy.exports=My;var P_=Dy.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var R_=b,Et=P_;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 Ly=new Set,Ei={};function ws(e,t){Eo(e,t),Eo(e+"Capture",t)}function Eo(e,t){for(Ei[e]=t,e=0;e<t.length;e++)Ly.add(t[e])}var $r=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=Object.prototype.hasOwnProperty,O_=/^[: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]*$/,gp={},yp={};function I_(e){return qu.call(yp,e)?!0:qu.call(gp,e)?!1:O_.test(e)?yp[e]=!0:(gp[e]=!0,!1)}function $_(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D_(e,t,r,n){if(t===null||typeof t>"u"||$_(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lt(e,t,r,n,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ke[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oh=/[\-:]([a-z])/g;function Ih(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Oh,Ih);Ke[t]=new lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Oh,Ih);Ke[t]=new lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Oh,Ih);Ke[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function $h(e,t,r,n){var s=Ke.hasOwnProperty(t)?Ke[t]:null;(s!==null?s.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(D_(t,r,s,n)&&(r=null),n||s===null?I_(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,n=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Wr=R_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sa=Symbol.for("react.element"),Hs=Symbol.for("react.portal"),Vs=Symbol.for("react.fragment"),Dh=Symbol.for("react.strict_mode"),Ku=Symbol.for("react.profiler"),zy=Symbol.for("react.provider"),Uy=Symbol.for("react.context"),Mh=Symbol.for("react.forward_ref"),Zu=Symbol.for("react.suspense"),Gu=Symbol.for("react.suspense_list"),Lh=Symbol.for("react.memo"),rn=Symbol.for("react.lazy"),Fy=Symbol.for("react.offscreen"),vp=Symbol.iterator;function qo(e){return e===null||typeof e!="object"?null:(e=vp&&e[vp]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Object.assign,Gc;function ai(e){if(Gc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Gc=t&&t[1]||""}return` 34`+Gc+e}var Jc=!1;function Yc(e,t){if(!e||Jc)return"";Jc=!0;var r=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 n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}
vendor: 14,090 bytes, lines 34-37
34catch(u){if(u&&n&&typeof u.stack=="string"){for(var s=u.stack.split(` 35`),o=n.stack.split(` 36`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=` 37`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Jc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ai(e):""}function M_(e){switch(e.tag){case 5:return ai(e.type);case 16:return ai("Lazy");case 13:return ai("Suspense");case 19:return ai("SuspenseList");case 0:case 2:case 15:return e=Yc(e.type,!1),e;case 11:return e=Yc(e.type.render,!1),e;case 1:return e=Yc(e.type,!0),e;default:return""}}function Ju(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 Vs:return"Fragment";case Hs:return"Portal";case Ku:return"Profiler";case Dh:return"StrictMode";case Zu:return"Suspense";case Gu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Uy:return(e.displayName||"Context")+".Consumer";case zy:return(e._context.displayName||"Context")+".Provider";case Mh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lh:return t=e.displayName||null,t!==null?t:Ju(e.type)||"Memo";case rn:t=e._payload,e=e._init;try{return Ju(e(t))}catch{}}return null}function L_(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 Ju(t);case 8:return t===Dh?"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 Nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function By(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function z_(e){var t=By(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ea(e){e._valueTracker||(e._valueTracker=z_(e))}function Wy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=By(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function yl(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 Yu(e,t){var r=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function wp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Nn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hy(e,t){t=t.checked,t!=null&&$h(e,"checked",t,!1)}function Qu(e,t){Hy(e,t);var r=Nn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xu(e,t.type,r):t.hasOwnProperty("defaultValue")&&Xu(e,t.type,Nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xp(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Xu(e,t,r){(t!=="number"||yl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var li=Array.isArray;function so(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Nn(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ed(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return ke({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bp(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(R(92));if(li(r)){if(1<r.length)throw Error(R(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Nn(r)}}function Vy(e,t){var r=Nn(t.value),n=Nn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function _p(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function qy(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 td(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?qy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ja,Ky=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ja=ja||document.createElement("div"),ja.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ja.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ji(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var fi={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},U_=["Webkit","ms","Moz","O"];Object.keys(fi).forEach(function(e){U_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fi[t]=fi[e]})});function Zy(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||fi.hasOwnProperty(e)&&fi[e]?(""+t).trim():t+"px"}function Gy(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=Zy(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var F_=ke({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 rd(e,t){if(t){if(F_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function nd(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 sd=null;function zh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var od=null,oo=null,io=null;function kp(e){if(e=ua(e)){if(typeof od!="function")throw Error(R(280));var t=e.stateNode;t&&(t=lc(t),od(e.stateNode,e.type,t))}}function Jy(e){oo?io?io.push(e):io=[e]:oo=e}function Yy(){if(oo){var e=oo,t=io;if(io=oo=null,kp(e),t)for(e=0;e<t.length;e++)kp(t[e])}}function Qy(e,t){return e(t)}function Xy(){}var Qc=!1;function ev(e,t,r){if(Qc)return e(t,r);Qc=!0;try{return Qy(e,t,r)}finally{Qc=!1,(oo!==null||io!==null)&&(Xy(),Yy())}}function Ti(e,t){var r=e.stateNode;if(r===null)return null;var n=lc(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(R(231,t,typeof r));return r}var id=!1;if($r)try{var Ko={};Object.defineProperty(Ko,"passive",{get:function(){id=!0}}),window.addEventListener("test",Ko,Ko),window.removeEventListener("test",Ko,Ko)}catch{id=!1}function B_(e,t,r,n,s,o,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var pi=!1,vl=null,wl=!1,ad=null,W_={onError:function(e){pi=!0,vl=e}};function H_(e,t,r,n,s,o,i,a,l){pi=!1,vl=null,B_.apply(W_,arguments)}function V_(e,t,r,n,s,o,i,a,l){if(H_.apply(this,arguments),pi){if(pi){var u=vl;pi=!1,vl=null}else throw Error(R(198));wl||(wl=!0,ad=u)}}function xs(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function tv(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 Sp(e){if(xs(e)!==e)throw Error(R(188))}function q_(e){var t=e.alternate;if(!t){if(t=xs(e),t===null)throw Error(R(188));return t!==e?null:e}for(var r=e,n=t;;){var s=r.return;if(s===null)break;var o=s.alternate;if(o===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===r)return Sp(s),e;if(o===n)return Sp(s),t;o=o.sibling}throw Error(R(188))}if(r.return!==n.return)r=s,n=o;else{for(var i=!1,a=s.child;a;){if(a===r){i=!0,r=s,n=o;break}if(a===n){i=!0,n=s,r=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===r){i=!0,r=o,n=s;break}if(a===n){i=!0,n=o,r=s;break}a=a.sibling}if(!i)throw Error(R(189))}}if(r.alternate!==n)throw Error(R(190))}if(r.tag!==3)throw Error(R(188));return r.stateNode.current===r?e:t}function rv(e){return e=q_(e),e!==null?nv(e):null}function nv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=nv(e);if(t!==null)return t;e=e.sibling}return null}var sv=Et.unstable_scheduleCallback,Ep=Et.unstable_cancelCallback,K_=Et.unstable_shouldYield,Z_=Et.unstable_requestPaint,Ce=Et.unstable_now,G_=Et.unstable_getCurrentPriorityLevel,Uh=Et.unstable_ImmediatePriority,ov=Et.unstable_UserBlockingPriority,xl=Et.unstable_NormalPriority,J_=Et.unstable_LowPriority,iv=Et.unstable_IdlePriority,sc=null,yr=null;function Y_(e){if(yr&&typeof yr.onCommitFiberRoot=="function")try{yr.onCommitFiberRoot(sc,e,void 0,(e.current.flags&128)===128)}catch{}}var sr=Math.clz32?Math.clz32:e1,Q_=Math.log,X_=Math.LN2;function e1(e){return e>>>=0,e===0?32:31-(Q_(e)/X_|0)|0}var Ta=64,Na=4194304;function ci(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 bl(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var a=i&~s;a!==0?n=ci(a):(o&=i,o!==0&&(n=ci(o)))}else i=r&~s,i!==0?n=ci(i):o!==0&&(n=ci(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-sr(t),s=1<<r,n|=e[r],t&=~s;return n}function t1(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 r1(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-sr(o),a=1<<i,l=s[i];l===-1?(!(a&r)||a&n)&&(s[i]=t1(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function ld(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function av(){var e=Ta;return Ta<<=1,!(Ta&4194240)&&(Ta=64),e}function Xc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function la(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-sr(t),e[t]=r}function n1(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var s=31-sr(r),o=1<<s;t[s]=0,n[s]=-1,e[s]=-1,r&=~o}}function Fh(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-sr(r),s=1<<n;s&t|e[n]&t&&(e[n]|=t),r&=~s}}var ae=0;function lv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var cv,Bh,uv,dv,hv,cd=!1,Ca=[],yn=null,vn=null,wn=null,Ni=new Map,Ci=new Map,on=[],s1="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 jp(e,t){switch(e){case"focusin":case"focusout":yn=null;break;case"dragenter":case"dragleave":vn=null;break;case"mouseover":case"mouseout":wn=null;break;case"pointerover":case"pointerout":Ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ci.delete(t.pointerId)}}function Zo(e,t,r,n,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[s]},t!==null&&(t=ua(t),t!==null&&Bh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function o1(e,t,r,n,s){switch(t){case"focusin":return yn=Zo(yn,e,t,r,n,s),!0;case"dragenter":return vn=Zo(vn,e,t,r,n,s),!0;case"mouseover":return wn=Zo(wn,e,t,r,n,s),!0;case"pointerover":var o=s.pointerId;return Ni.set(o,Zo(Ni.get(o)||null,e,t,r,n,s)),!0;case"gotpointercapture":return o=s.pointerId,Ci.set(o,Zo(Ci.get(o)||null,e,t,r,n,s)),!0}return!1}function fv(e){var t=Gn(e.target);if(t!==null){var r=xs(t);if(r!==null){if(t=r.tag,t===13){if(t=tv(r),t!==null){e.blockedOn=t,hv(e.priority,function(){uv(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=ud(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);sd=n,r.target.dispatchEvent(n),sd=null}else return t=ua(r),t!==null&&Bh(t),e.blockedOn=r,!1;t.shift()}return!0}function Tp(e,t,r){tl(e)&&r.delete(t)}function i1(){cd=!1,yn!==null&&tl(yn)&&(yn=null),vn!==null&&tl(vn)&&(vn=null),wn!==null&&tl(wn)&&(wn=null),Ni.forEach(Tp),Ci.forEach(Tp)}function Go(e,t){e.blockedOn===t&&(e.blockedOn=null,cd||(cd=!0,Et.unstable_scheduleCallback(Et.unstable_NormalPriority,i1)))}function Ai(e){function t(s){return Go(s,e)}if(0<Ca.length){Go(Ca[0],e);for(var r=1;r<Ca.length;r++){var n=Ca[r];n.blockedOn===e&&(n.blockedOn=null)}}for(yn!==null&&Go(yn,e),vn!==null&&Go(vn,e),wn!==null&&Go(wn,e),Ni.forEach(t),Ci.forEach(t),r=0;r<on.length;r++)n=on[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<on.length&&(r=on[0],r.blockedOn===null);)fv(r),r.blockedOn===null&&on.shift()}var ao=Wr.ReactCurrentBatchConfig,_l=!0;function a1(e,t,r,n){var s=ae,o=ao.transition;ao.transition=null;try{ae=1,Wh(e,t,r,n)}finally{ae=s,ao.transition=o}}function l1(e,t,r,n){var s=ae,o=ao.transition;ao.transition=null;try{ae=4,Wh(e,t,r,n)}finally{ae=s,ao.transition=o}}function Wh(e,t,r,n){if(_l){var s=ud(e,t,r,n);if(s===null)cu(e,t,n,kl,r),jp(e,n);else if(o1(s,e,t,r,n))n.stopPropagation();else if(jp(e,n),t&4&&-1<s1.indexOf(e)){for(;s!==null;){var o=ua(s);if(o!==null&&cv(o),o=ud(e,t,r,n),o===null&&cu(e,t,n,kl,r),o===s)break;s=o}s!==null&&n.stopPropagation()}else cu(e,t,n,null,r)}}var kl=null;function ud(e,t,r,n){if(kl=null,e=zh(n),e=Gn(e),e!==null)if(t=xs(e),t===null)e=null;else if(r=t.tag,r===13){if(e=tv(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return kl=e,null}
vendor: 10,401 bytes, line 37
37function pv(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(G_()){case Uh:return 1;case ov:return 4;case xl:case J_:return 16;case iv:return 536870912;default:return 16}default:return 16}}var pn=null,Hh=null,rl=null;function mv(){if(rl)return rl;var e,t=Hh,r=t.length,n,s="value"in pn?pn.value:pn.textContent,o=s.length;for(e=0;e<r&&t[e]===s[e];e++);var i=r-e;for(n=1;n<=i&&t[r-n]===s[o-n];n++);return rl=s.slice(e,1<n?1-n:void 0)}function nl(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 Aa(){return!0}function Np(){return!1}function Tt(e){function t(r,n,s,o,i){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Aa:Np,this.isPropagationStopped=Np,this}return ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Aa)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Aa)},persist:function(){},isPersistent:Aa}),t}var $o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vh=Tt($o),ca=ke({},$o,{view:0,detail:0}),c1=Tt(ca),eu,tu,Jo,oc=ke({},ca,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qh,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!==Jo&&(Jo&&e.type==="mousemove"?(eu=e.screenX-Jo.screenX,tu=e.screenY-Jo.screenY):tu=eu=0,Jo=e),eu)},movementY:function(e){return"movementY"in e?e.movementY:tu}}),Cp=Tt(oc),u1=ke({},oc,{dataTransfer:0}),d1=Tt(u1),h1=ke({},ca,{relatedTarget:0}),ru=Tt(h1),f1=ke({},$o,{animationName:0,elapsedTime:0,pseudoElement:0}),p1=Tt(f1),m1=ke({},$o,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),g1=Tt(m1),y1=ke({},$o,{data:0}),Ap=Tt(y1),v1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w1={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"},x1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function b1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=x1[e])?!!t[e]:!1}function qh(){return b1}var _1=ke({},ca,{key:function(e){if(e.key){var t=v1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?w1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qh,charCode:function(e){return e.type==="keypress"?nl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),k1=Tt(_1),S1=ke({},oc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pp=Tt(S1),E1=ke({},ca,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qh}),j1=Tt(E1),T1=ke({},$o,{propertyName:0,elapsedTime:0,pseudoElement:0}),N1=Tt(T1),C1=ke({},oc,{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}),A1=Tt(C1),P1=[9,13,27,32],Kh=$r&&"CompositionEvent"in window,mi=null;$r&&"documentMode"in document&&(mi=document.documentMode);var R1=$r&&"TextEvent"in window&&!mi,gv=$r&&(!Kh||mi&&8<mi&&11>=mi),Rp=" ",Op=!1;function yv(e,t){switch(e){case"keyup":return P1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qs=!1;function O1(e,t){switch(e){case"compositionend":return vv(t);case"keypress":return t.which!==32?null:(Op=!0,Rp);case"textInput":return e=t.data,e===Rp&&Op?null:e;default:return null}}function I1(e,t){if(qs)return e==="compositionend"||!Kh&&yv(e,t)?(e=mv(),rl=Hh=pn=null,qs=!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 gv&&t.locale!=="ko"?null:t.data;default:return null}}var $1={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 Ip(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$1[e.type]:t==="textarea"}function wv(e,t,r,n){Jy(n),t=Sl(t,"onChange"),0<t.length&&(r=new Vh("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var gi=null,Pi=null;function D1(e){Av(e,0)}function ic(e){var t=Gs(e);if(Wy(t))return e}function M1(e,t){if(e==="change")return t}var xv=!1;if($r){var nu;if($r){var su="oninput"in document;if(!su){var $p=document.createElement("div");$p.setAttribute("oninput","return;"),su=typeof $p.oninput=="function"}nu=su}else nu=!1;xv=nu&&(!document.documentMode||9<document.documentMode)}function Dp(){gi&&(gi.detachEvent("onpropertychange",bv),Pi=gi=null)}function bv(e){if(e.propertyName==="value"&&ic(Pi)){var t=[];wv(t,Pi,e,zh(e)),ev(D1,t)}}function L1(e,t,r){e==="focusin"?(Dp(),gi=t,Pi=r,gi.attachEvent("onpropertychange",bv)):e==="focusout"&&Dp()}function z1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ic(Pi)}function U1(e,t){if(e==="click")return ic(t)}function F1(e,t){if(e==="input"||e==="change")return ic(t)}function B1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ir=typeof Object.is=="function"?Object.is:B1;function Ri(e,t){if(ir(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!qu.call(t,s)||!ir(e[s],t[s]))return!1}return!0}function Mp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lp(e,t){var r=Mp(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Mp(r)}}function _v(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_v(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kv(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=yl(e.document)}return t}function Zh(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 W1(e){var t=kv(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&_v(r.ownerDocument.documentElement,r)){if(n!==null&&Zh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,o=Math.min(n.start,s);n=n.end===void 0?o:Math.min(n.end,s),!e.extend&&o>n&&(s=n,n=o,o=s),s=Lp(r,o);var i=Lp(r,n);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var H1=$r&&"documentMode"in document&&11>=document.documentMode,Ks=null,dd=null,yi=null,hd=!1;function zp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;hd||Ks==null||Ks!==yl(n)||(n=Ks,"selectionStart"in n&&Zh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),yi&&Ri(yi,n)||(yi=n,n=Sl(dd,"onSelect"),0<n.length&&(t=new Vh("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ks)))}function Pa(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Zs={animationend:Pa("Animation","AnimationEnd"),animationiteration:Pa("Animation","AnimationIteration"),animationstart:Pa("Animation","AnimationStart"),transitionend:Pa("Transition","TransitionEnd")},ou={},Sv={};$r&&(Sv=document.createElement("div").style,"AnimationEvent"in window||(delete Zs.animationend.animation,delete Zs.animationiteration.animation,delete Zs.animationstart.animation),"TransitionEvent"in window||delete Zs.transitionend.transition);function ac(e){if(ou[e])return ou[e];if(!Zs[e])return e;var t=Zs[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Sv)return ou[e]=t[r];return e}var Ev=ac("animationend"),jv=ac("animationiteration"),Tv=ac("animationstart"),Nv=ac("transitionend"),Cv=new Map,Up="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 Rn(e,t){Cv.set(e,t),ws(t,[e])}for(var iu=0;iu<Up.length;iu++){var au=Up[iu],V1=au.toLowerCase(),q1=au[0].toUpperCase()+au.slice(1);Rn(V1,"on"+q1)}Rn(Ev,"onAnimationEnd");Rn(jv,"onAnimationIteration");Rn(Tv,"onAnimationStart");Rn("dblclick","onDoubleClick");Rn("focusin","onFocus");Rn("focusout","onBlur");Rn(Nv,"onTransitionEnd");Eo("onMouseEnter",["mouseout","mouseover"]);Eo("onMouseLeave",["mouseout","mouseover"]);Eo("onPointerEnter",["pointerout","pointerover"]);Eo("onPointerLeave",["pointerout","pointerover"]);ws("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ws("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ws("onBeforeInput",["compositionend","keypress","textInput","paste"]);ws("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ws("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ws("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ui="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(" "),K1=new Set("cancel close invalid load scroll toggle".split(" ").concat(ui));function Fp(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,V_(n,t,void 0,e),e.currentTarget=null}function Av(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],s=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var i=n.length-1;0<=i;i--){var a=n[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;Fp(s,a,u),o=l}else for(i=0;i<n.length;i++){if(a=n[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;Fp(s,a,u),o=l}}}if(wl)throw e=ad,wl=!1,ad=null,e}function me(e,t){var r=t[yd];r===void 0&&(r=t[yd]=new Set);var n=e+"__bubble";r.has(n)||(Pv(t,e,2,!1),r.add(n))}function lu(e,t,r){var n=0;t&&(n|=4),Pv(r,e,n,t)}var Ra="_reactListening"+Math.random().toString(36).slice(2);function Oi(e){if(!e[Ra]){e[Ra]=!0,Ly.forEach(function(r){r!=="selectionchange"&&(K1.has(r)||lu(r,!1,e),lu(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ra]||(t[Ra]=!0,lu("selectionchange",!1,t))}}function Pv(e,t,r,n){switch(pv(t)){case 1:var s=a1;break;case 4:s=l1;break;default:s=Wh}r=s.bind(null,t,r,e),s=void 0,!id||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function cu(e,t,r,n,s){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var a=n.stateNode.containerInfo;
vendor: 21,713 bytes, lines 37-38
37if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=n.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=Gn(a),i===null)return;if(l=i.tag,l===5||l===6){n=o=i;continue e}a=a.parentNode}}n=n.return}ev(function(){var u=o,d=zh(r),h=[];e:{var p=Cv.get(e);if(p!==void 0){var f=Vh,y=e;switch(e){case"keypress":if(nl(r)===0)break e;case"keydown":case"keyup":f=k1;break;case"focusin":y="focus",f=ru;break;case"focusout":y="blur",f=ru;break;case"beforeblur":case"afterblur":f=ru;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Cp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=d1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=j1;break;case Ev:case jv:case Tv:f=p1;break;case Nv:f=N1;break;case"scroll":f=c1;break;case"wheel":f=A1;break;case"copy":case"cut":case"paste":f=g1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Pp}var m=(t&4)!==0,x=!m&&e==="scroll",v=m?p!==null?p+"Capture":null:p;m=[];for(var g=u,w;g!==null;){w=g;var _=w.stateNode;if(w.tag===5&&_!==null&&(w=_,v!==null&&(_=Ti(g,v),_!=null&&m.push(Ii(g,_,w)))),x)break;g=g.return}0<m.length&&(p=new f(p,y,null,r,d),h.push({event:p,listeners:m}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&r!==sd&&(y=r.relatedTarget||r.fromElement)&&(Gn(y)||y[Dr]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(y=r.relatedTarget||r.toElement,f=u,y=y?Gn(y):null,y!==null&&(x=xs(y),y!==x||y.tag!==5&&y.tag!==6)&&(y=null)):(f=null,y=u),f!==y)){if(m=Cp,_="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=Pp,_="onPointerLeave",v="onPointerEnter",g="pointer"),x=f==null?p:Gs(f),w=y==null?p:Gs(y),p=new m(_,g+"leave",f,r,d),p.target=x,p.relatedTarget=w,_=null,Gn(d)===u&&(m=new m(v,g+"enter",y,r,d),m.target=w,m.relatedTarget=x,_=m),x=_,f&&y)t:{for(m=f,v=y,g=0,w=m;w;w=Rs(w))g++;for(w=0,_=v;_;_=Rs(_))w++;for(;0<g-w;)m=Rs(m),g--;for(;0<w-g;)v=Rs(v),w--;for(;g--;){if(m===v||v!==null&&m===v.alternate)break t;m=Rs(m),v=Rs(v)}m=null}else m=null;f!==null&&Bp(h,p,f,m,!1),y!==null&&x!==null&&Bp(h,x,y,m,!0)}}e:{if(p=u?Gs(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var k=M1;else if(Ip(p))if(xv)k=F1;else{k=z1;var S=L1}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(k=U1);if(k&&(k=k(e,u))){wv(h,k,r,d);break e}S&&S(e,p,u),e==="focusout"&&(S=p._wrapperState)&&S.controlled&&p.type==="number"&&Xu(p,"number",p.value)}switch(S=u?Gs(u):window,e){case"focusin":(Ip(S)||S.contentEditable==="true")&&(Ks=S,dd=u,yi=null);break;case"focusout":yi=dd=Ks=null;break;case"mousedown":hd=!0;break;case"contextmenu":case"mouseup":case"dragend":hd=!1,zp(h,r,d);break;case"selectionchange":if(H1)break;case"keydown":case"keyup":zp(h,r,d)}var E;if(Kh)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else qs?yv(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(gv&&r.locale!=="ko"&&(qs||j!=="onCompositionStart"?j==="onCompositionEnd"&&qs&&(E=mv()):(pn=d,Hh="value"in pn?pn.value:pn.textContent,qs=!0)),S=Sl(u,j),0<S.length&&(j=new Ap(j,e,null,r,d),h.push({event:j,listeners:S}),E?j.data=E:(E=vv(r),E!==null&&(j.data=E)))),(E=R1?O1(e,r):I1(e,r))&&(u=Sl(u,"onBeforeInput"),0<u.length&&(d=new Ap("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:u}),d.data=E))}Av(h,t)})}function Ii(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Sl(e,t){for(var r=t+"Capture",n=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Ti(e,r),o!=null&&n.unshift(Ii(e,o,s)),o=Ti(e,t),o!=null&&n.push(Ii(e,o,s))),e=e.return}return n}function Rs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Bp(e,t,r,n,s){for(var o=t._reactName,i=[];r!==null&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&u!==null&&(a=u,s?(l=Ti(r,o),l!=null&&i.unshift(Ii(r,l,a))):s||(l=Ti(r,o),l!=null&&i.push(Ii(r,l,a)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var Z1=/\r\n?/g,G1=/\u0000|\uFFFD/g;function Wp(e){return(typeof e=="string"?e:""+e).replace(Z1,` 38`).replace(G1,"")}function Oa(e,t,r){if(t=Wp(t),Wp(e)!==t&&r)throw Error(R(425))}function El(){}var fd=null,pd=null;function md(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 gd=typeof setTimeout=="function"?setTimeout:void 0,J1=typeof clearTimeout=="function"?clearTimeout:void 0,Hp=typeof Promise=="function"?Promise:void 0,Y1=typeof queueMicrotask=="function"?queueMicrotask:typeof Hp<"u"?function(e){return Hp.resolve(null).then(e).catch(Q1)}:gd;function Q1(e){setTimeout(function(){throw e})}function uu(e,t){var r=t,n=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){e.removeChild(s),Ai(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);Ai(t)}function xn(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 Vp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Do=Math.random().toString(36).slice(2),mr="__reactFiber$"+Do,$i="__reactProps$"+Do,Dr="__reactContainer$"+Do,yd="__reactEvents$"+Do,X1="__reactListeners$"+Do,ek="__reactHandles$"+Do;function Gn(e){var t=e[mr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Dr]||r[mr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Vp(e);e!==null;){if(r=e[mr])return r;e=Vp(e)}return t}e=r,r=e.parentNode}return null}function ua(e){return e=e[mr]||e[Dr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function lc(e){return e[$i]||null}var vd=[],Js=-1;function On(e){return{current:e}}function ge(e){0>Js||(e.current=vd[Js],vd[Js]=null,Js--)}function fe(e,t){Js++,vd[Js]=e.current,e.current=t}var Cn={},tt=On(Cn),pt=On(!1),us=Cn;function jo(e,t){var r=e.type.contextTypes;if(!r)return Cn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in r)s[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function mt(e){return e=e.childContextTypes,e!=null}function jl(){ge(pt),ge(tt)}function qp(e,t,r){if(tt.current!==Cn)throw Error(R(168));fe(tt,t),fe(pt,r)}function Rv(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(R(108,L_(e)||"Unknown",s));return ke({},r,n)}function Tl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cn,us=tt.current,fe(tt,e),fe(pt,pt.current),!0}function Kp(e,t,r){var n=e.stateNode;if(!n)throw Error(R(169));r?(e=Rv(e,t,us),n.__reactInternalMemoizedMergedChildContext=e,ge(pt),ge(tt),fe(tt,e)):ge(pt),fe(pt,r)}var Nr=null,cc=!1,du=!1;function Ov(e){Nr===null?Nr=[e]:Nr.push(e)}function tk(e){cc=!0,Ov(e)}function In(){if(!du&&Nr!==null){du=!0;var e=0,t=ae;try{var r=Nr;for(ae=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Nr=null,cc=!1}catch(s){throw Nr!==null&&(Nr=Nr.slice(e+1)),sv(Uh,In),s}finally{ae=t,du=!1}}return null}var Ys=[],Qs=0,Nl=null,Cl=0,Rt=[],Ot=0,ds=null,Rr=1,Or="";function Wn(e,t){Ys[Qs++]=Cl,Ys[Qs++]=Nl,Nl=e,Cl=t}function Iv(e,t,r){Rt[Ot++]=Rr,Rt[Ot++]=Or,Rt[Ot++]=ds,ds=e;var n=Rr;e=Or;var s=32-sr(n)-1;n&=~(1<<s),r+=1;var o=32-sr(t)+s;if(30<o){var i=s-s%5;o=(n&(1<<i)-1).toString(32),n>>=i,s-=i,Rr=1<<32-sr(t)+s|r<<s|n,Or=o+e}else Rr=1<<o|r<<s|n,Or=e}function Gh(e){e.return!==null&&(Wn(e,1),Iv(e,1,0))}function Jh(e){for(;e===Nl;)Nl=Ys[--Qs],Ys[Qs]=null,Cl=Ys[--Qs],Ys[Qs]=null;for(;e===ds;)ds=Rt[--Ot],Rt[Ot]=null,Or=Rt[--Ot],Rt[Ot]=null,Rr=Rt[--Ot],Rt[Ot]=null}var kt=null,_t=null,ve=!1,rr=null;function $v(e,t){var r=Dt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Zp(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,kt=e,_t=xn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,kt=e,_t=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=ds!==null?{id:Rr,overflow:Or}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Dt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,kt=e,_t=null,!0):!1;default:return!1}}function wd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xd(e){if(ve){var t=_t;if(t){var r=t;if(!Zp(e,t)){if(wd(e))throw Error(R(418));t=xn(r.nextSibling);var n=kt;t&&Zp(e,t)?$v(n,r):(e.flags=e.flags&-4097|2,ve=!1,kt=e)}}else{if(wd(e))throw Error(R(418));e.flags=e.flags&-4097|2,ve=!1,kt=e}}}function Gp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;kt=e}function Ia(e){if(e!==kt)return!1;if(!ve)return Gp(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!md(e.type,e.memoizedProps)),t&&(t=_t)){if(wd(e))throw Dv(),Error(R(418));for(;t;)$v(e,t),t=xn(t.nextSibling)}if(Gp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){_t=xn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}_t=null}}else _t=kt?xn(e.stateNode.nextSibling):null;return!0}function Dv(){for(var e=_t;e;)e=xn(e.nextSibling)}function To(){_t=kt=null,ve=!1}function Yh(e){rr===null?rr=[e]:rr.push(e)}var rk=Wr.ReactCurrentBatchConfig;function Yo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(R(309));var n=r.stateNode}if(!n)throw Error(R(147,e));var s=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(R(284));if(!r._owner)throw Error(R(290,e))}return e}function $a(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jp(e){var t=e._init;return t(e._payload)}function Mv(e){function t(v,g){if(e){var w=v.deletions;w===null?(v.deletions=[g],v.flags|=16):w.push(g)}}function r(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function n(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function s(v,g){return v=Sn(v,g),v.index=0,v.sibling=null,v}function o(v,g,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<g?(v.flags|=2,g):w):(v.flags|=2,g)):(v.flags|=1048576,g)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,g,w,_){return g===null||g.tag!==6?(g=vu(w,v.mode,_),g.return=v,g):(g=s(g,w),g.return=v,g)}function l(v,g,w,_){var k=w.type;return k===Vs?d(v,g,w.props.children,_,w.key):g!==null&&(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===rn&&Jp(k)===g.type)?(_=s(g,w.props),_.ref=Yo(v,g,w),_.return=v,_):(_=ul(w.type,w.key,w.props,null,v.mode,_),_.ref=Yo(v,g,w),_.return=v,_)}function u(v,g,w,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=wu(w,v.mode,_),g.return=v,g):(g=s(g,w.children||[]),g.return=v,g)}function d(v,g,w,_,k){return g===null||g.tag!==7?(g=as(w,v.mode,_,k),g.return=v,g):(g=s(g,w),g.return=v,g)}function h(v,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=vu(""+g,v.mode,w),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Sa:return w=ul(g.type,g.key,g.props,null,v.mode,w),w.ref=Yo(v,null,g),w.return=v,w;case Hs:return g=wu(g,v.mode,w),g.return=v,g;case rn:var _=g._init;return h(v,_(g._payload),w)}if(li(g)||qo(g))return g=as(g,v.mode,w,null),g.return=v,g;$a(v,g)}return null}function p(v,g,w,_){var k=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:a(v,g,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Sa:return w.key===k?l(v,g,w,_):null;case Hs:return w.key===k?u(v,g,w,_):null;case rn:return k=w._init,p(v,g,k(w._payload),_)}if(li(w)||qo(w))return k!==null?null:d(v,g,w,_,null);$a(v,w)}return null}function f(v,g,w,_,k){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(w)||null,a(g,v,""+_,k);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Sa:return v=v.get(_.key===null?w:_.key)||null,l(g,v,_,k);case Hs:return v=v.get(_.key===null?w:_.key)||null,u(g,v,_,k);case rn:var S=_._init;return f(v,g,w,S(_._payload),k)}if(li(_)||qo(_))return v=v.get(w)||null,d(g,v,_,k,null);$a(g,_)}return null}function y(v,g,w,_){for(var k=null,S=null,E=g,j=g=0,O=null;E!==null&&j<w.length;j++){E.index>j?(O=E,E=null):O=E.sibling;var I=p(v,E,w[j],_);if(I===null){E===null&&(E=O);break}e&&E&&I.alternate===null&&t(v,E),g=o(I,g,j),S===null?k=I:S.sibling=I,S=I,E=O}if(j===w.length)return r(v,E),ve&&Wn(v,j),k;if(E===null){for(;j<w.length;j++)E=h(v,w[j],_),E!==null&&(g=o(E,g,j),S===null?k=E:S.sibling=E,S=E);return ve&&Wn(v,j),k}for(E=n(v,E);j<w.length;j++)O=f(E,v,j,w[j],_),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?j:O.key),g=o(O,g,j),S===null?k=O:S.sibling=O,S=O);return e&&E.forEach(function(B){return t(v,B)}),ve&&Wn(v,j),k}function m(v,g,w,_){var k=qo(w);if(typeof k!="function")throw Error(R(150));if(w=k.call(w),w==null)throw Error(R(151));for(var S=k=null,E=g,j=g=0,O=null,I=w.next();E!==null&&!I.done;j++,I=w.next()){E.index>j?(O=E,E=null):O=E.sibling;var B=p(v,E,I.value,_);if(B===null){E===null&&(E=O);break}e&&E&&B.alternate===null&&t(v,E),g=o(B,g,j),S===null?k=B:S.sibling=B,S=B,E=O}if(I.done)return r(v,E),ve&&Wn(v,j),k;if(E===null){for(;!I.done;j++,I=w.next())I=h(v,I.value,_),I!==null&&(g=o(I,g,j),S===null?k=I:S.sibling=I,S=I);return ve&&Wn(v,j),k}for(E=n(v,E);!I.done;j++,I=w.next())I=f(E,v,j,I.value,_),I!==null&&(e&&I.alternate!==null&&E.delete(I.key===null?j:I.key),g=o(I,g,j),S===null?k=I:S.sibling=I,S=I);return e&&E.forEach(function(M){return t(v,M)}),ve&&Wn(v,j),k}function x(v,g,w,_){if(typeof w=="object"&&w!==null&&w.type===Vs&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Sa:e:{for(var k=w.key,S=g;S!==null;){if(S.key===k){if(k=w.type,k===Vs){if(S.tag===7){r(v,S.sibling),g=s(S,w.props.children),g.return=v,v=g;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===rn&&Jp(k)===S.type){r(v,S.sibling),g=s(S,w.props),g.ref=Yo(v,S,w),g.return=v,v=g;break e}r(v,S);break}else t(v,S);S=S.sibling}w.type===Vs?(g=as(w.props.children,v.mode,_,w.key),g.return=v,v=g):(_=ul(w.type,w.key,w.props,null,v.mode,_),_.ref=Yo(v,g,w),_.return=v,v=_)}return i(v);case Hs:e:{for(S=w.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){r(v,g.sibling),g=s(g,w.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else t(v,g);g=g.sibling}g=wu(w,v.mode,_),g.return=v,v=g}return i(v);case rn:return S=w._init,x(v,g,S(w._payload),_)}if(li(w))return y(v,g,w,_);if(qo(w))return m(v,g,w,_);$a(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(r(v,g.sibling),g=s(g,w),g.return=v,v=g):(r(v,g),g=vu(w,v.mode,_),g.return=v,v=g),i(v)):r(v,g)}return x}var No=Mv(!0),Lv=Mv(!1),Al=On(null),Pl=null,Xs=null,Qh=null;function Xh(){Qh=Xs=Pl=null}function ef(e){var t=Al.current;ge(Al),e._currentValue=t}function bd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function lo(e,t){Pl=e,Qh=Xs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ft=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(Qh!==e)if(e={context:e,memoizedValue:t,next:null},Xs===null){if(Pl===null)throw Error(R(308));Xs=e,Pl.dependencies={lanes:0,firstContext:e}}else Xs=Xs.next=e;return t}var Jn=null;function tf(e){Jn===null?Jn=[e]:Jn.push(e)}function zv(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,tf(t)):(r.next=s.next,s.next=r),t.interleaved=r,Mr(e,n)}function Mr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var nn=!1;function rf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uv(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 Ir(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ne&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,Mr(e,r)}return s=n.interleaved,s===null?(t.next=t,tf(n)):(t.next=s.next,s.next=t),n.interleaved=t,Mr(e,r)}function sl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Fh(e,r)}}function Yp(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?s=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?s=o=t:o=o.next=t}else s=o=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Rl(e,t,r,n){var s=e.updateQueue;nn=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?o=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(o!==null){var h=s.baseState;i=0,d=u=l=null,a=o;do{var p=a.lane,f=a.eventTime;if((n&p)===p){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,m=a;switch(p=t,f=r,m.tag){case 1:if(y=m.payload,typeof y=="function"){h=y.call(f,h,p);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,p=typeof y=="function"?y.call(f,h,p):y,p==null)break e;h=ke({},h,p);break e;case 2:nn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[a]:p.push(a))}else f={eventTime:f,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=f,l=h):d=d.next=f,i|=p;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;p=a,a=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(d===null&&(l=h),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);fs|=i,e.lanes=i,e.memoizedState=h}}function Qp(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(R(191,s));s.call(n)}}}var da={},vr=On(da),Di=On(da),Mi=On(da);function Yn(e){if(e===da)throw Error(R(174));return e}function nf(e,t){switch(fe(Mi,t),fe(Di,e),fe(vr,da),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:td(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=td(t,e)}ge(vr),fe(vr,t)}function Co(){ge(vr),ge(Di),ge(Mi)}function Fv(e){Yn(Mi.current);var t=Yn(vr.current),r=td(t,e.type);t!==r&&(fe(Di,e),fe(vr,r))}function sf(e){Di.current===e&&(ge(vr),ge(Di))}var be=On(0);function Ol(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 hu=[];function of(){for(var e=0;e<hu.length;e++)hu[e]._workInProgressVersionPrimary=null;hu.length=0}var ol=Wr.ReactCurrentDispatcher,fu=Wr.ReactCurrentBatchConfig,hs=0,_e=null,Me=null,Fe=null,Il=!1,vi=!1,Li=0,nk=0;function Ye(){throw Error(R(321))}function af(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ir(e[r],t[r]))return!1;return!0}function lf(e,t,r,n,s,o){if(hs=o,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ol.current=e===null||e.memoizedState===null?ak:lk,e=r(n,s),vi){o=0;
vendor: 6,592 bytes, line 38
38do{if(vi=!1,Li=0,25<=o)throw Error(R(301));o+=1,Fe=Me=null,t.updateQueue=null,ol.current=ck,e=r(n,s)}while(vi)}if(ol.current=$l,t=Me!==null&&Me.next!==null,hs=0,Fe=Me=_e=null,Il=!1,t)throw Error(R(300));return e}function cf(){var e=Li!==0;return Li=0,e}function dr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?_e.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function zt(){if(Me===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Fe===null?_e.memoizedState:Fe.next;if(t!==null)Fe=t,Me=e;else{if(e===null)throw Error(R(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Fe===null?_e.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function zi(e,t){return typeof t=="function"?t(e):t}function pu(e){var t=zt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var n=Me,s=n.baseQueue,o=r.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}n.baseQueue=s=o,r.pending=null}if(s!==null){o=s.next,n=n.baseState;var a=i=null,l=null,u=o;do{var d=u.lane;if((hs&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=h,i=n):l=l.next=h,_e.lanes|=d,fs|=d}u=u.next}while(u!==null&&u!==o);l===null?i=n:l.next=a,ir(n,t.memoizedState)||(ft=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){s=e;do o=s.lane,_e.lanes|=o,fs|=o,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function mu(e){var t=zt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var n=r.dispatch,s=r.pending,o=t.memoizedState;if(s!==null){r.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);ir(o,t.memoizedState)||(ft=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function Bv(){}function Wv(e,t){var r=_e,n=zt(),s=t(),o=!ir(n.memoizedState,s);if(o&&(n.memoizedState=s,ft=!0),n=n.queue,uf(qv.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Fe!==null&&Fe.memoizedState.tag&1){if(r.flags|=2048,Ui(9,Vv.bind(null,r,n,s,t),void 0,null),Be===null)throw Error(R(349));hs&30||Hv(r,t,s)}return s}function Hv(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Vv(e,t,r,n){t.value=r,t.getSnapshot=n,Kv(t)&&Zv(e)}function qv(e,t,r){return r(function(){Kv(t)&&Zv(e)})}function Kv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ir(e,r)}catch{return!0}}function Zv(e){var t=Mr(e,1);t!==null&&or(t,e,1,-1)}function Xp(e){var t=dr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:e},t.queue=e,e=e.dispatch=ik.bind(null,_e,e),[t.memoizedState,e]}function Ui(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function Gv(){return zt().memoizedState}function il(e,t,r,n){var s=dr();_e.flags|=e,s.memoizedState=Ui(1|t,r,void 0,n===void 0?null:n)}function uc(e,t,r,n){var s=zt();n=n===void 0?null:n;var o=void 0;if(Me!==null){var i=Me.memoizedState;if(o=i.destroy,n!==null&&af(n,i.deps)){s.memoizedState=Ui(t,r,o,n);return}}_e.flags|=e,s.memoizedState=Ui(1|t,r,o,n)}function em(e,t){return il(8390656,8,e,t)}function uf(e,t){return uc(2048,8,e,t)}function Jv(e,t){return uc(4,2,e,t)}function Yv(e,t){return uc(4,4,e,t)}function Qv(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 Xv(e,t,r){return r=r!=null?r.concat([e]):null,uc(4,4,Qv.bind(null,t,e),r)}function df(){}function ew(e,t){var r=zt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&af(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function tw(e,t){var r=zt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&af(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function rw(e,t,r){return hs&21?(ir(r,t)||(r=av(),_e.lanes|=r,fs|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ft=!0),e.memoizedState=r)}function sk(e,t){var r=ae;ae=r!==0&&4>r?r:4,e(!0);var n=fu.transition;fu.transition={};try{e(!1),t()}finally{ae=r,fu.transition=n}}function nw(){return zt().memoizedState}function ok(e,t,r){var n=kn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},sw(e))ow(t,r);else if(r=zv(e,t,r,n),r!==null){var s=it();or(r,e,n,s),iw(r,t,n)}}function ik(e,t,r){var n=kn(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(sw(e))ow(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,r);if(s.hasEagerState=!0,s.eagerState=a,ir(a,i)){var l=t.interleaved;l===null?(s.next=s,tf(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}r=zv(e,t,s,n),r!==null&&(s=it(),or(r,e,n,s),iw(r,t,n))}}function sw(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function ow(e,t){vi=Il=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function iw(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Fh(e,r)}}var $l={readContext:Lt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},ak={readContext:Lt,useCallback:function(e,t){return dr().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:em,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,il(4194308,4,Qv.bind(null,t,e),r)},useLayoutEffect:function(e,t){return il(4194308,4,e,t)},useInsertionEffect:function(e,t){return il(4,2,e,t)},useMemo:function(e,t){var r=dr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=dr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ok.bind(null,_e,e),[n.memoizedState,e]}
vendor: 7,431 bytes, lines 38-40
38,useRef:function(e){var t=dr();return e={current:e},t.memoizedState=e},useState:Xp,useDebugValue:df,useDeferredValue:function(e){return dr().memoizedState=e},useTransition:function(){var e=Xp(!1),t=e[0];return e=sk.bind(null,e[1]),dr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=_e,s=dr();if(ve){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Be===null)throw Error(R(349));hs&30||Hv(n,t,r)}s.memoizedState=r;var o={value:r,getSnapshot:t};return s.queue=o,em(qv.bind(null,n,o,e),[e]),n.flags|=2048,Ui(9,Vv.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=dr(),t=Be.identifierPrefix;if(ve){var r=Or,n=Rr;r=(n&~(1<<32-sr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Li++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=nk++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lk={readContext:Lt,useCallback:ew,useContext:Lt,useEffect:uf,useImperativeHandle:Xv,useInsertionEffect:Jv,useLayoutEffect:Yv,useMemo:tw,useReducer:pu,useRef:Gv,useState:function(){return pu(zi)},useDebugValue:df,useDeferredValue:function(e){var t=zt();return rw(t,Me.memoizedState,e)},useTransition:function(){var e=pu(zi)[0],t=zt().memoizedState;return[e,t]},useMutableSource:Bv,useSyncExternalStore:Wv,useId:nw,unstable_isNewReconciler:!1},ck={readContext:Lt,useCallback:ew,useContext:Lt,useEffect:uf,useImperativeHandle:Xv,useInsertionEffect:Jv,useLayoutEffect:Yv,useMemo:tw,useReducer:mu,useRef:Gv,useState:function(){return mu(zi)},useDebugValue:df,useDeferredValue:function(e){var t=zt();return Me===null?t.memoizedState=e:rw(t,Me.memoizedState,e)},useTransition:function(){var e=mu(zi)[0],t=zt().memoizedState;return[e,t]},useMutableSource:Bv,useSyncExternalStore:Wv,useId:nw,unstable_isNewReconciler:!1};function Gt(e,t){if(e&&e.defaultProps){t=ke({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function _d(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:ke({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var dc={isMounted:function(e){return(e=e._reactInternals)?xs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=it(),s=kn(e),o=Ir(n,s);o.payload=t,r!=null&&(o.callback=r),t=bn(e,o,s),t!==null&&(or(t,e,s,n),sl(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=it(),s=kn(e),o=Ir(n,s);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=bn(e,o,s),t!==null&&(or(t,e,s,n),sl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=it(),n=kn(e),s=Ir(r,n);s.tag=2,t!=null&&(s.callback=t),t=bn(e,s,n),t!==null&&(or(t,e,n,r),sl(t,e,n))}};function tm(e,t,r,n,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,i):t.prototype&&t.prototype.isPureReactComponent?!Ri(r,n)||!Ri(s,o):!0}function aw(e,t,r){var n=!1,s=Cn,o=t.contextType;return typeof o=="object"&&o!==null?o=Lt(o):(s=mt(t)?us:tt.current,n=t.contextTypes,o=(n=n!=null)?jo(e,s):Cn),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=dc,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function rm(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&dc.enqueueReplaceState(t,t.state,null)}function kd(e,t,r,n){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs={},rf(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Lt(o):(o=mt(t)?us:tt.current,s.context=jo(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(_d(e,t,o,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&dc.enqueueReplaceState(s,s.state,null),Rl(e,r,s,n),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ao(e,t){try{var r="",n=t;do r+=M_(n),n=n.return;while(n);var s=r}catch(o){s=` 39Error generating stack: `+o.message+` 40`+o.stack}return{value:e,source:t,stack:s,digest:null}}function gu(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Sd(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var uk=typeof WeakMap=="function"?WeakMap:Map;function lw(e,t,r){r=Ir(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ml||(Ml=!0,Id=n),Sd(e,t)},r}function cw(e,t,r){r=Ir(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var s=t.value;r.payload=function(){return n(s)},r.callback=function(){Sd(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Sd(e,t),typeof n!="function"&&(_n===null?_n=new Set([this]):_n.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function nm(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new uk;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(r)||(s.add(r),e=Sk.bind(null,e,t,r),t.then(e,e))}function sm(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 om(e,t,r,n,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Ir(-1,1),t.tag=2,bn(r,t,1))),r.lanes|=1),e)}var dk=Wr.ReactCurrentOwner,ft=!1;function st(e,t,r,n){t.child=e===null?Lv(t,null,r,n):No(t,e.child,r,n)}function im(e,t,r,n,s){r=r.render;var o=t.ref;return lo(t,s),n=lf(e,t,r,n,o,s),r=cf(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Lr(e,t,s)):(ve&&r&&Gh(t),t.flags|=1,st(e,t,n,s),t.child)}function am(e,t,r,n,s){if(e===null){var o=r.type;return typeof o=="function"&&!wf(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,uw(e,t,o,n,s)):(e=ul(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:Ri,r(i,n)&&e.ref===t.ref)return Lr(e,t,s)}return t.flags|=1,e=Sn(o,n),e.ref=t.ref,e.return=t,t.child=e}function uw(e,t,r,n,s){if(e!==null){var o=e.memoizedProps;if(Ri(o,n)&&e.ref===t.ref)if(ft=!1,t.pendingProps=n=o,(e.lanes&s)!==0)e.flags&131072&&(ft=!0);else return t.lanes=e.lanes,Lr(e,t,s)}return Ed(e,t,r,n,s)}function dw(e,t,r){var n=t.pendingProps,s=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fe(to,vt),vt|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fe(to,vt),vt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,fe(to,vt),vt|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,fe(to,vt),vt|=n;return st(e,t,s,r),t.child}function hw(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,711 bytes, line 40
40function Ed(e,t,r,n,s){var o=mt(r)?us:tt.current;return o=jo(t,o),lo(t,s),r=lf(e,t,r,n,o,s),n=cf(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Lr(e,t,s)):(ve&&n&&Gh(t),t.flags|=1,st(e,t,r,s),t.child)}function lm(e,t,r,n,s){if(mt(r)){var o=!0;Tl(t)}else o=!1;if(lo(t,s),t.stateNode===null)al(e,t),aw(t,r,n),kd(t,r,n,s),n=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=r.contextType;typeof u=="object"&&u!==null?u=Lt(u):(u=mt(r)?us:tt.current,u=jo(t,u));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==n||l!==u)&&rm(t,i,n,u),nn=!1;var p=t.memoizedState;i.state=p,Rl(t,n,i,s),l=t.memoizedState,a!==n||p!==l||pt.current||nn?(typeof d=="function"&&(_d(t,r,d,n),l=t.memoizedState),(a=nn||tm(t,r,a,n,p,l,u))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=u,n=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Uv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Gt(t.type,a),i.props=u,h=t.pendingProps,p=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=Lt(l):(l=mt(r)?us:tt.current,l=jo(t,l));var f=r.getDerivedStateFromProps;(d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==h||p!==l)&&rm(t,i,n,l),nn=!1,p=t.memoizedState,i.state=p,Rl(t,n,i,s);var y=t.memoizedState;a!==h||p!==y||pt.current||nn?(typeof f=="function"&&(_d(t,r,f,n),y=t.memoizedState),(u=nn||tm(t,r,u,n,p,y,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,y,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,y,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=y),i.props=n,i.state=y,i.context=l,n=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return jd(e,t,r,n,o,s)}function jd(e,t,r,n,s,o){hw(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return s&&Kp(t,r,!1),Lr(e,t,o);n=t.stateNode,dk.current=t;var a=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=No(t,e.child,null,o),t.child=No(t,null,a,o)):st(e,t,a,o),t.memoizedState=n.state,s&&Kp(t,r,!0),t.child}function fw(e){var t=e.stateNode;t.pendingContext?qp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qp(e,t.context,!1),nf(e,t.containerInfo)}function cm(e,t,r,n,s){return To(),Yh(s),t.flags|=256,st(e,t,r,n),t.child}var Td={dehydrated:null,treeContext:null,retryLane:0};function Nd(e){return{baseLanes:e,cachePool:null,transitions:null}}function pw(e,t,r){var n=t.pendingProps,s=be.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),fe(be,s&1),e===null)return xd(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):(i=n.children,e=n.fallback,o?(n=t.mode,o=t.child,i={mode:"hidden",children:i},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=pc(i,n,0,null),e=as(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Nd(r),t.memoizedState=Td,e):hf(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return hk(e,t,i,n,a,s,r);if(o){o=n.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:n.children};return!(i&1)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Sn(s,l),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=Sn(a,o):(o=as(o,i,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,i=e.child.memoizedState,i=i===null?Nd(r):{base
vendor: 7,075 bytes, line 40
40Lanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=Td,n}return o=e.child,e=o.sibling,n=Sn(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function hf(e,t){return t=pc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Da(e,t,r,n){return n!==null&&Yh(n),No(t,e.child,null,r),e=hf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hk(e,t,r,n,s,o,i){if(r)return t.flags&256?(t.flags&=-257,n=gu(Error(R(422))),Da(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,s=t.mode,n=pc({mode:"visible",children:n.children},s,0,null),o=as(o,s,i,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&No(t,e.child,null,i),t.child.memoizedState=Nd(i),t.memoizedState=Td,o);if(!(t.mode&1))return Da(e,t,i,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(R(419)),n=gu(o,n,void 0),Da(e,t,i,n)}if(a=(i&e.childLanes)!==0,ft||a){if(n=Be,n!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,Mr(e,s),or(n,e,s,-1))}return vf(),n=gu(Error(R(421))),Da(e,t,i,n)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Ek.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,_t=xn(s.nextSibling),kt=t,ve=!0,rr=null,e!==null&&(Rt[Ot++]=Rr,Rt[Ot++]=Or,Rt[Ot++]=ds,Rr=e.id,Or=e.overflow,ds=t),t=hf(t,n.children),t.flags|=4096,t)}function um(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),bd(e.return,t,r)}function yu(e,t,r,n,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=s)}function mw(e,t,r){var n=t.pendingProps,s=n.revealOrder,o=n.tail;if(st(e,t,n.children,r),n=be.current,n&2)n=n&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&&um(e,r,t);else if(e.tag===19)um(e,r,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}n&=1}if(fe(be,n),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&Ol(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),yu(t,!1,s,r,o);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ol(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}yu(t,!0,r,null,o);break;case"together":yu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function al(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),fs|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,r=Sn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Sn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function fk(e,t,r){switch(t.tag){case 3:fw(t),To();break;case 5:Fv(t);break;case 1:mt(t.type)&&Tl(t);break;case 4:nf(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,s=t.memoizedProps.value;fe(Al,n._currentValue),n._currentValue=s;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(fe(be,be.current&1),t.flags|=128,null):r&t.child.childLanes?pw(e,t,r):(fe(be,be.current&1),e=Lr(e,t,r),e!==null?e.sibling:null);fe(be,be.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return mw(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),fe(be,be.current),n)break;return null;case 22:case 23:return t.lanes=0,dw(e,t,r)}return Lr(e,t,r)}var gw,Cd,yw,vw;gw=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Cd=function(){};yw=function(e,t,r,n){var s=e.memoizedProps;if(s!==n){e=t.stateNode,Yn(vr.current);var o=null;switch(r){case"input":s=Yu(e,s),n=Yu(e,n),o=[];break;case"select":s=ke({},s,{value:void 0}),n=ke({},n,{value:void 0}),o=[];break;case"textarea":s=ed(e,s),n=ed(e,n),o=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=El)}rd(r,n);var i;r=null;for(u in s)if(!n.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(i in a)a.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ei.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(a=s!=null?s[u]:void 0,n.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(o||(o=[]),o.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ei.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&me("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};vw=function(e,t,r,n){r!==n&&(t.flags|=4)};function Qo(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function pk(e,t,r){var n=t.pendingProps;switch(Jh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return mt(t.type)&&jl(),Qe(t),null;
vendor: 31,338 bytes, line 40
40case 3:return n=t.stateNode,Co(),ge(pt),ge(tt),of(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ia(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,rr!==null&&(Md(rr),rr=null))),Cd(e,t),Qe(t),null;case 5:sf(t);var s=Yn(Mi.current);if(r=t.type,e!==null&&t.stateNode!=null)yw(e,t,r,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(R(166));return Qe(t),null}if(e=Yn(vr.current),Ia(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[mr]=t,n[$i]=o,e=(t.mode&1)!==0,r){case"dialog":me("cancel",n),me("close",n);break;case"iframe":case"object":case"embed":me("load",n);break;case"video":case"audio":for(s=0;s<ui.length;s++)me(ui[s],n);break;case"source":me("error",n);break;case"img":case"image":case"link":me("error",n),me("load",n);break;case"details":me("toggle",n);break;case"input":wp(n,o),me("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},me("invalid",n);break;case"textarea":bp(n,o),me("invalid",n)}rd(r,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&Oa(n.textContent,a,e),s=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Oa(n.textContent,a,e),s=["children",""+a]):Ei.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&me("scroll",n)}switch(r){case"input":Ea(n),xp(n,o,!0);break;case"textarea":Ea(n),_p(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=El)}n=s,t.updateQueue=n,n!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=qy(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[mr]=t,e[$i]=n,gw(e,t,!1,!1),t.stateNode=e;e:{switch(i=nd(r,n),r){case"dialog":me("cancel",e),me("close",e),s=n;break;case"iframe":case"object":case"embed":me("load",e),s=n;break;case"video":case"audio":for(s=0;s<ui.length;s++)me(ui[s],e);s=n;break;case"source":me("error",e),s=n;break;case"img":case"image":case"link":me("error",e),me("load",e),s=n;break;case"details":me("toggle",e),s=n;break;case"input":wp(e,n),s=Yu(e,n),me("invalid",e);break;case"option":s=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=ke({},n,{value:void 0}),me("invalid",e);break;case"textarea":bp(e,n),s=ed(e,n),me("invalid",e);break;default:s=n}rd(r,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Gy(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ky(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&ji(e,l):typeof l=="number"&&ji(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ei.hasOwnProperty(o)?l!=null&&o==="onScroll"&&me("scroll",e):l!=null&&$h(e,o,l,i))}switch(r){case"input":Ea(e),xp(e,n,!1);break;case"textarea":Ea(e),_p(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Nn(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?so(e,!!n.multiple,o,!1):n.defaultValue!=null&&so(e,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=El)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Qe(t),null;case 6:if(e&&t.stateNode!=null)vw(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(R(166));if(r=Yn(Mi.current),Yn(vr.current),Ia(t)){if(n=t.stateNode,r=t.memoizedProps,n[mr]=t,(o=n.nodeValue!==r)&&(e=kt,e!==null))switch(e.tag){case 3:Oa(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Oa(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[mr]=t,t.stateNode=n}return Qe(t),null;case 13:if(ge(be),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&_t!==null&&t.mode&1&&!(t.flags&128))Dv(),To(),t.flags|=98560,o=!1;else if(o=Ia(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(R(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(R(317));o[mr]=t}else To(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qe(t),o=!1}else rr!==null&&(Md(rr),rr=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||be.current&1?Le===0&&(Le=3):vf())),t.updateQueue!==null&&(t.flags|=4),Qe(t),null);case 4:return Co(),Cd(e,t),e===null&&Oi(t.stateNode.containerInfo),Qe(t),null;case 10:return ef(t.type._context),Qe(t),null;case 17:return mt(t.type)&&jl(),Qe(t),null;case 19:if(ge(be),o=t.memoizedState,o===null)return Qe(t),null;if(n=(t.flags&128)!==0,i=o.rendering,i===null)if(n)Qo(o,!1);else{if(Le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Ol(e),i!==null){for(t.flags|=128,Qo(o,!1),n=i.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return fe(be,be.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ce()>Po&&(t.flags|=128,n=!0,Qo(o,!1),t.lanes=4194304)}else{if(!n)if(e=Ol(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Qo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!ve)return Qe(t),null}else 2*Ce()-o.renderingStartTime>Po&&r!==1073741824&&(t.flags|=128,n=!0,Qo(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ce(),t.sibling=null,r=be.current,fe(be,n?r&1|2:r&1),t):(Qe(t),null);case 22:case 23:return yf(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?vt&1073741824&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function mk(e,t){switch(Jh(t),t.tag){case 1:return mt(t.type)&&jl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Co(),ge(pt),ge(tt),of(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sf(t),null;case 13:if(ge(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));To()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(be),null;case 4:return Co(),null;case 10:return ef(t.type._context),null;case 22:case 23:return yf(),null;case 24:return null;default:return null}}var Ma=!1,et=!1,gk=typeof WeakSet=="function"?WeakSet:Set,L=null;function eo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Te(e,t,n)}else r.current=null}function Ad(e,t,r){try{r()}catch(n){Te(e,t,n)}}var dm=!1;function yk(e,t){if(fd=_l,e=kv(),Zh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,a=-1,l=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==r||s!==0&&h.nodeType!==3||(a=i+s),h!==o||n!==0&&h.nodeType!==3||(l=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(f=h.firstChild)!==null;)p=h,h=f;for(;;){if(h===e)break t;if(p===r&&++u===s&&(a=i),p===o&&++d===n&&(l=i),(f=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=f}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(pd={focusedElem:e,selectionRange:r},_l=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;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,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Gt(t.type,m),x);v.__reactInternalSnapshotBeforeUpdate=g}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(R(163))}}catch(_){Te(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return y=dm,dm=!1,y}function wi(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&Ad(t,r,o)}s=s.next}while(s!==n)}}function hc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Pd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function ww(e){var t=e.alternate;t!==null&&(e.alternate=null,ww(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mr],delete t[$i],delete t[yd],delete t[X1],delete t[ek])),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 xw(e){return e.tag===5||e.tag===3||e.tag===4}function hm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xw(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 Rd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=El));else if(n!==4&&(e=e.child,e!==null))for(Rd(e,t,r),e=e.sibling;e!==null;)Rd(e,t,r),e=e.sibling}function Od(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Od(e,t,r),e=e.sibling;e!==null;)Od(e,t,r),e=e.sibling}var Ve=null,er=!1;function Yr(e,t,r){for(r=r.child;r!==null;)bw(e,t,r),r=r.sibling}function bw(e,t,r){if(yr&&typeof yr.onCommitFiberUnmount=="function")try{yr.onCommitFiberUnmount(sc,r)}catch{}switch(r.tag){case 5:et||eo(r,t);case 6:var n=Ve,s=er;Ve=null,Yr(e,t,r),Ve=n,er=s,Ve!==null&&(er?(e=Ve,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ve.removeChild(r.stateNode));break;case 18:Ve!==null&&(er?(e=Ve,r=r.stateNode,e.nodeType===8?uu(e.parentNode,r):e.nodeType===1&&uu(e,r),Ai(e)):uu(Ve,r.stateNode));break;case 4:n=Ve,s=er,Ve=r.stateNode.containerInfo,er=!0,Yr(e,t,r),Ve=n,er=s;break;case 0:case 11:case 14:case 15:if(!et&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Ad(r,t,i),s=s.next}while(s!==n)}Yr(e,t,r);break;case 1:if(!et&&(eo(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Te(r,t,a)}Yr(e,t,r);break;case 21:Yr(e,t,r);break;case 22:r.mode&1?(et=(n=et)||r.memoizedState!==null,Yr(e,t,r),et=n):Yr(e,t,r);break;default:Yr(e,t,r)}}function fm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new gk),t.forEach(function(n){var s=jk.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function qt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Ve=a.stateNode,er=!1;break e;case 3:Ve=a.stateNode.containerInfo,er=!0;break e;case 4:Ve=a.stateNode.containerInfo,er=!0;break e}a=a.return}if(Ve===null)throw Error(R(160));bw(o,i,s),Ve=null,er=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){Te(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)_w(t,e),t=t.sibling}function _w(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qt(t,e),ur(e),n&4){try{wi(3,e,e.return),hc(3,e)}catch(m){Te(e,e.return,m)}try{wi(5,e,e.return)}catch(m){Te(e,e.return,m)}}break;case 1:qt(t,e),ur(e),n&512&&r!==null&&eo(r,r.return);break;case 5:if(qt(t,e),ur(e),n&512&&r!==null&&eo(r,r.return),e.flags&32){var s=e.stateNode;try{ji(s,"")}catch(m){Te(e,e.return,m)}}if(n&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=r!==null?r.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Hy(s,o),nd(a,i);var u=nd(a,o);for(i=0;i<l.length;i+=2){var d=l[i],h=l[i+1];d==="style"?Gy(s,h):d==="dangerouslySetInnerHTML"?Ky(s,h):d==="children"?ji(s,h):$h(s,d,h,u)}switch(a){case"input":Qu(s,o);break;case"textarea":Vy(s,o);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?so(s,!!o.multiple,f,!1):p!==!!o.multiple&&(o.defaultValue!=null?so(s,!!o.multiple,o.defaultValue,!0):so(s,!!o.multiple,o.multiple?[]:"",!1))}s[$i]=o}catch(m){Te(e,e.return,m)}}break;case 6:if(qt(t,e),ur(e),n&4){if(e.stateNode===null)throw Error(R(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(m){Te(e,e.return,m)}}break;case 3:if(qt(t,e),ur(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Ai(t.containerInfo)}catch(m){Te(e,e.return,m)}break;case 4:qt(t,e),ur(e);break;case 13:qt(t,e),ur(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(mf=Ce())),n&4&&fm(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(et=(u=et)||d,qt(t,e),et=u):qt(t,e),ur(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(L=e,d=e.child;d!==null;){for(h=L=d;L!==null;){switch(p=L,f=p.child,p.tag){case 0:case 11:case 14:case 15:wi(4,p,p.return);break;case 1:eo(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Te(n,r,m)}}break;case 5:eo(p,p.return);break;case 22:if(p.memoizedState!==null){mm(h);continue}}f!==null?(f.return=p,L=f):mm(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,u?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Zy("display",i))}catch(m){Te(e,e.return,m)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(m){Te(e,e.return,m)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:qt(t,e),ur(e),n&4&&fm(e);break;case 21:break;default:qt(t,e),ur(e)}}function ur(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(xw(r)){var n=r;break e}r=r.return}throw Error(R(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(ji(s,""),n.flags&=-33);var o=hm(e);Od(e,o,s);break;case 3:case 4:var i=n.stateNode.containerInfo,a=hm(e);Rd(e,a,i);break;default:throw Error(R(161))}}catch(l){Te(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vk(e,t,r){L=e,kw(e)}function kw(e,t,r){for(var n=(e.mode&1)!==0;L!==null;){var s=L,o=s.child;if(s.tag===22&&n){var i=s.memoizedState!==null||Ma;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||et;a=Ma;var u=et;if(Ma=i,(et=l)&&!u)for(L=s;L!==null;)i=L,l=i.child,i.tag===22&&i.memoizedState!==null?gm(s):l!==null?(l.return=i,L=l):gm(s);for(;o!==null;)L=o,kw(o),o=o.sibling;L=s,Ma=a,et=u}pm(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,L=o):pm(e)}}function pm(e){for(;L!==null;){var t=L;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:et||hc(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!et)if(r===null)n.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:Gt(t.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Qp(t,o,n);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Qp(t,i,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.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 d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Ai(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}et||t.flags&512&&Pd(t)}catch(p){Te(t,t.return,p)}}if(t===e){L=null;break}if(r=t.sibling,r!==null){r.return=t.return,L=r;break}L=t.return}}function mm(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var r=t.sibling;if(r!==null){r.return=t.return,L=r;break}L=t.return}}function gm(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{hc(4,t)}catch(l){Te(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var s=t.return;try{n.componentDidMount()}catch(l){Te(t,s,l)}}var o=t.return;try{Pd(t)}catch(l){Te(t,o,l)}break;case 5:var i=t.return;try{Pd(t)}catch(l){Te(t,i,l)}}}catch(l){Te(t,t.return,l)}if(t===e){L=null;break}var a=t.sibling;if(a!==null){a.return=t.return,L=a;break}L=t.return}}var wk=Math.ceil,Dl=Wr.ReactCurrentDispatcher,ff=Wr.ReactCurrentOwner,Mt=Wr.ReactCurrentBatchConfig,ne=0,Be=null,Ie=null,qe=0,vt=0,to=On(0),Le=0,Fi=null,fs=0,fc=0,pf=0,xi=null,ut=null,mf=0,Po=1/0,jr=null,Ml=!1,Id=null,_n=null,La=!1,mn=null,Ll=0,bi=0,$d=null,ll=-1,cl=0;function it(){return ne&6?Ce():ll!==-1?ll:ll=Ce()}function kn(e){return e.mode&1?ne&2&&qe!==0?qe&-qe:rk.transition!==null?(cl===0&&(cl=av()),cl):(e=ae,e!==0||(e=window.event,e=e===void 0?16:pv(e.type)),e):1}function or(e,t,r,n){if(50<bi)throw bi=0,$d=null,Error(R(185));la(e,r,n),(!(ne&2)||e!==Be)&&(e===Be&&(!(ne&2)&&(fc|=r),Le===4&&an(e,qe)),gt(e,n),r===1&&ne===0&&!(t.mode&1)&&(Po=Ce()+500,cc&&In()))}function gt(e,t){var r=e.callbackNode;r1(e,t);var n=bl(e,e===Be?qe:0);if(n===0)r!==null&&Ep(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Ep(r),t===1)e.tag===0?tk(ym.bind(null,e)):Ov(ym.bind(null,e)),Y1(function(){!(ne&6)&&In()}),r=null;else{switch(lv(n)){case 1:r=Uh;break;case 4:r=ov;break;case 16:r=xl;break;case 536870912:r=iv;break;default:r=xl}r=Pw(r,Sw.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Sw(e,t){if(ll=-1,cl=0,ne&6)throw Error(R(327));var r=e.callbackNode;if(co()&&e.callbackNode!==r)return null;var n=bl(e,e===Be?qe:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=zl(e,n);else{t=n;var s=ne;ne|=2;var o=jw();(Be!==e||qe!==t)&&(jr=null,Po=Ce()+500,is(e,t));do try{_k();break}catch(a){Ew(e,a)}while(!0);Xh(),Dl.current=o,ne=s,Ie!==null?t=0:(Be=null,qe=0,t=Le)}if(t!==0){if(t===2&&(s=ld(e),s!==0&&(n=s,t=Dd(e,s))),t===1)throw r=Fi,is(e,0),an(e,n),gt(e,Ce()),r;if(t===6)an(e,n);else{if(s=e.current.alternate,!(n&30)&&!xk(s)&&(t=zl(e,n),t===2&&(o=ld(e),o!==0&&(n=o,t=Dd(e,o))),t===1))throw r=Fi,is(e,0),an(e,n),gt(e,Ce()),r;switch(e.finishedWork=s,e.finishedLanes=n,t){case 0:case 1:throw Error(R(345));case 2:Hn(e,ut,jr);break;case 3:if(an(e,n),(n&130023424)===n&&(t=mf+500-Ce(),10<t)){if(bl(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){it(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=gd(Hn.bind(null,e,ut,jr),t);break}Hn(e,ut,jr);break;case 4:if(an(e,n),(n&4194240)===n)break;for(t=e.eventTimes,s=-1;0<n;){var i=31-sr(n);o=1<<i,i=t[i],i>s&&(s=i),n&=~o}if(n=s,n=Ce()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*wk(n/1960))-n,10<n){e.timeoutHandle=gd(Hn.bind(null,e,ut,jr),n);break}Hn(e,ut,jr);break;case 5:Hn(e,ut,jr);break;default:throw Error(R(329))}}}return gt(e,Ce()),e.callbackNode===r?Sw.bind(null,e):null}function Dd(e,t){var r=xi;return e.current.memoizedState.isDehydrated&&(is(e,t).flags|=256),e=zl(e,t),e!==2&&(t=ut,ut=r,t!==null&&Md(t)),e}function Md(e){ut===null?ut=e:ut.push.apply(ut,e)}function xk(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],o=s.getSnapshot;s=s.value;try{if(!ir(o(),s))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 an(e,t){for(t&=~pf,t&=~fc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-sr(t),n=1<<r;e[r]=-1,t&=~n}}function ym(e){if(ne&6)throw Error(R(327));co();var t=bl(e,0);if(!(t&1))return gt(e,Ce()),null;var r=zl(e,t);if(e.tag!==0&&r===2){var n=ld(e);n!==0&&(t=n,r=Dd(e,n))}if(r===1)throw r=Fi,is(e,0),an(e,t),gt(e,Ce()),r;if(r===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hn(e,ut,jr),gt(e,Ce()),null}function gf(e,t){var r=ne;ne|=1;try{return e(t)}finally{ne=r,ne===0&&(Po=Ce()+500,cc&&In())}}function ps(e){mn!==null&&mn.tag===0&&!(ne&6)&&co();var t=ne;ne|=1;var r=Mt.transition,n=ae;try{if(Mt.transition=null,ae=1,e)return e()}finally{ae=n,Mt.transition=r,ne=t,!(ne&6)&&In()}}function yf(){vt=to.current,ge(to)}function is(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,J1(r)),Ie!==null)for(r=Ie.return;r!==null;){var n=r;switch(Jh(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&jl();break;case 3:Co(),ge(pt),ge(tt),of();break;case 5:sf(n);break;case 4:Co();break;case 13:ge(be);break;case 19:ge(be);break;case 10:ef(n.type._context);break;case 22:case 23:yf()}r=r.return}if(Be=e,Ie=e=Sn(e.current,null),qe=vt=t,Le=0,Fi=null,pf=fc=fs=0,ut=xi=null,Jn!==null){for(t=0;t<Jn.length;t++)if(r=Jn[t],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,o=r.pending;if(o!==null){var i=o.next;o.next=s,n.next=i}r.pending=n}Jn=null}return e}function Ew(e,t){do{var r=Ie;try{if(Xh(),ol.current=$l,Il){for(var n=_e.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}Il=!1}if(hs=0,Fe=Me=_e=null,vi=!1,Li=0,ff.current=null,r===null||r.return===null){Le=1,Fi=t,Ie=null;break}e:{var o=e,i=r.return,a=r,l=t;if(t=qe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=sm(i);if(f!==null){f.flags&=-257,om(f,i,a,o,t),f.mode&1&&nm(o,u,t),t=f,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)){nm(o,u,t),vf();break e}l=Error(R(426))}}else if(ve&&a.mode&1){var x=sm(i);if(x!==null){!(x.flags&65536)&&(x.flags|=256),om(x,i,a,o,t),Yh(Ao(l,a));break e}}o=l=Ao(l,a),Le!==4&&(Le=2),xi===null?xi=[o]:xi.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=lw(o,l,t);Yp(o,v);break e;case 1:a=l;var g=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(_n===null||!_n.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=cw(o,a,t);Yp(o,_);break e}}o=o.return}while(o!==null)}Nw(r)}catch(k){t=k,Ie===r&&r!==null&&(Ie=r=r.return);continue}break}while(!0)}function jw(){var e=Dl.current;return Dl.current=$l,e===null?$l:e}function vf(){(Le===0||Le===3||Le===2)&&(Le=4),Be===null||!(fs&268435455)&&!(fc&268435455)||an(Be,qe)}function zl(e,t){var r=ne;ne|=2;var n=jw();(Be!==e||qe!==t)&&(jr=null,is(e,t));do try{bk();break}catch(s){Ew(e,s)}while(!0);if(Xh(),ne=r,Dl.current=n,Ie!==null)throw Error(R(261));return Be=null,qe=0,Le}function bk(){for(;Ie!==null;)Tw(Ie)}function _k(){for(;Ie!==null&&!K_();)Tw(Ie)}function Tw(e){var t=Aw(e.alternate,e,vt);e.memoizedProps=e.pendingProps,t===null?Nw(e):Ie=t,ff.current=null}function Nw(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=mk(r,t),r!==null){r.flags&=32767,Ie=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Le=6,Ie=null;return}}else if(r=pk(r,t,vt),r!==null){Ie=r;return}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);Le===0&&(Le=5)}function Hn(e,t,r){var n=ae,s=Mt.transition;try{Mt.transition=null,ae=1,kk(e,t,r,n)}finally{Mt.transition=s,ae=n}return null}function kk(e,t,r,n){do co();while(mn!==null);if(ne&6)throw Error(R(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(n1(e,o),e===Be&&(Ie=Be=null,qe=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||La||(La=!0,Pw(xl,function(){return co(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=Mt.transition,Mt.transition=null;var i=ae;ae=1;var a=ne;ne|=4,ff.current=null,yk(e,r),_w(r,e),W1(pd),_l=!!fd,pd=fd=null,e.current=r,vk(r),Z_(),ne=a,ae=i,Mt.transition=o}else e.current=r;if(La&&(La=!1,mn=e,Ll=s),o=e.pendingLanes,o===0&&(_n=null),Y_(r.stateNode),gt(e,Ce()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(Ml)throw Ml=!1,e=Id,Id=null,e;return Ll&1&&e.tag!==0&&co(),o=e.pendingLanes,o&1?e===$d?bi++:(bi=0,$d=e):bi=0,In(),null}function co(){if(mn!==null){var e=lv(Ll),t=Mt.transition,r=ae;try{if(Mt.transition=null,ae=16>e?16:e,mn===null)var n=!1;else{if(e=mn,mn=null,Ll=0,ne&6)throw Error(R(331));var s=ne;for(ne|=4,L=e.current;L!==null;){var o=L,i=o.child;if(L.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(L=u;L!==null;){var d=L;switch(d.tag){case 0:case 11:case 15:wi(8,d,o)}var h=d.child;if(h!==null)h.return=d,L=h;else for(;L!==null;){d=L;var p=d.sibling,f=d.return;if(ww(d),d===u){L=null;break}if(p!==null){p.return=f,L=p;break}L=f}}}var y=o.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)}}L=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,L=i;else e:for(;L!==null;){if(o=L,o.flags&2048)switch(o.tag){case 0:case 11:case 15:wi(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,L=v;break e}L=o.return}}var g=e.current;for(L=g;L!==null;){i=L;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,L=w;else e:for(i=g;L!==null;){if(a=L,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:hc(9,a)}}catch(k){Te(a,a.return,k)}if(a===i){L=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,L=_;break e}L=a.return}}if(ne=s,In(),yr&&typeof yr.onPostCommitFiberRoot=="function")try{yr.onPostCommitFiberRoot(sc,e)}catch{}n=!0}return n}finally{ae=r,Mt.transition=t}}return!1}function vm(e,t,r){t=Ao(r,t),t=lw(e,t,1),e=bn(e,t,1),t=it(),e!==null&&(la(e,1,t),gt(e,t))}function Te(e,t,r){if(e.tag===3)vm(e,e,r);else for(;t!==null;){if(t.tag===3){vm(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(_n===null||!_n.has(n))){e=Ao(r,e),e=cw(t,e,1),t=bn(t,e,1),e=it(),t!==null&&(la(t,1,e),gt(t,e));break}}t=t.return}}function Sk(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&r,Be===e&&(qe&r)===r&&(Le===4||Le===3&&(qe&130023424)===qe&&500>Ce()-mf?is(e,0):pf|=r),gt(e,t)}function Cw(e,t){t===0&&(e.mode&1?(t=Na,Na<<=1,!(Na&130023424)&&(Na=4194304)):t=1);var r=it();e=Mr(e,t),e!==null&&(la(e,t,r),gt(e,r))}function Ek(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Cw(e,r)}function jk(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(R(314))}n!==null&&n.delete(t),Cw(e,r)}var Aw;Aw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)ft=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return ft=!1,fk(e,t,r);ft=!!(e.flags&131072)}else ft=!1,ve&&t.flags&1048576&&Iv(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;al(e,t),e=t.pendingProps;var s=jo(t,tt.current);lo(t,r),s=lf(null,t,n,e,s,r);var o=cf();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mt(n)?(o=!0,Tl(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,rf(t),s.updater=dc,t.stateNode=s,s._reactInternals=t,kd(t,n,e,r),t=jd(null,t,n,!0,o,r)):(t.tag=0,ve&&o&&Gh(t),st(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(al(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=Nk(n),e=Gt(n,e),s){case 0:t=Ed(null,t,n,e,r);break e;case 1:t=lm(null,t,n,e,r);break e;case 11:t=im(null,t,n,e,r);break e;case 14:t=am(null,t,n,Gt(n.type,e),r);break e}throw Error(R(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Gt(n,s),Ed(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Gt(n,s),lm(e,t,n,s,r);case 3:e:{if(fw(t),e===null)throw Error(R(387));n=t.pendingProps,o=t.memoizedState,s=o.element,Uv(e,t),Rl(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=Ao(Error(R(423)),t),t=cm(e,t,n,r,s);break e}else if(n!==s){s=Ao(Error(R(424)),t),t=cm(e,t,n,r,s);break e}else for(_t=xn(t.stateNode.containerInfo.firstChild),kt=t,ve=!0,rr=null,r=Lv(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(To(),n===s){t=Lr(e,t,r);break e}st(e,t,n,r)}t=t.child}return t;case 5:return Fv(t),e===null&&xd(t),n=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,md(n,s)?i=null:o!==null&&md(n,o)&&(t.flags|=32),hw(e,t),st(e,t,i,r),t.child;case 6:return e===null&&xd(t),null;case 13:return pw(e,t,r);case 4:return nf(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=No(t,null,n,r):st(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Gt(n,s),im(e,t,n,s,r);case 7:return st(e,t,t.pendingProps,r),t.child;case 8:return st(e,t,t.pendingProps.children,r),t.child;case 12:return st(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,fe
vendor: 4,470 bytes, line 40
40(Al,n._currentValue),n._currentValue=i,o!==null)if(ir(o.value,i)){if(o.children===s.children&&!pt.current){t=Lr(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Ir(-1,r&-r),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),bd(o.return,r,t),a.lanes|=r;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(R(341));i.lanes|=r,a=i.alternate,a!==null&&(a.lanes|=r),bd(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}st(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,lo(t,r),s=Lt(s),n=n(s),t.flags|=1,st(e,t,n,r),t.child;case 14:return n=t.type,s=Gt(n,t.pendingProps),s=Gt(n.type,s),am(e,t,n,s,r);case 15:return uw(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Gt(n,s),al(e,t),t.tag=1,mt(n)?(e=!0,Tl(t)):e=!1,lo(t,r),aw(t,n,s),kd(t,n,s,r),jd(null,t,n,!0,e,r);case 19:return mw(e,t,r);case 22:return dw(e,t,r)}throw Error(R(156,t.tag))};function Pw(e,t){return sv(e,t)}function Tk(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,r,n){return new Tk(e,t,r,n)}function wf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nk(e){if(typeof e=="function")return wf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mh)return 11;if(e===Lh)return 14}return 2}function Sn(e,t){var r=e.alternate;return r===null?(r=Dt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ul(e,t,r,n,s,o){var i=2;if(n=e,typeof e=="function")wf(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Vs:return as(r.children,s,o,t);case Dh:i=8,s|=8;break;case Ku:return e=Dt(12,r,t,s|2),e.elementType=Ku,e.lanes=o,e;case Zu:return e=Dt(13,r,t,s),e.elementType=Zu,e.lanes=o,e;case Gu:return e=Dt(19,r,t,s),e.elementType=Gu,e.lanes=o,e;case Fy:return pc(r,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zy:i=10;break e;case Uy:i=9;break e;case Mh:i=11;break e;case Lh:i=14;break e;case rn:i=16,n=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Dt(i,r,t,s),t.elementType=e,t.type=n,t.lanes=o,t}function as(e,t,r,n){return e=Dt(7,e,n,t),e.lanes=r,e}function pc(e,t,r,n){return e=Dt(22,e,n,t),e.elementType=Fy,e.lanes=r,e.stateNode={isHidden:!1},e}function vu(e,t,r){return e=Dt(6,e,null,t),e.lanes=r,e}function wu(e,t,r){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ck(e,t,r,n,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xc(0),this.expirationTimes=Xc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xc(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function xf(e,t,r,n,s,o,i,a,l){return e=new Ck(e,t,r,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Dt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},rf(o),e}function Ak(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;
vendor: 4,591 bytes, line 40
40return{$$typeof:Hs,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Rw(e){if(!e)return Cn;e=e._reactInternals;e:{if(xs(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var r=e.type;if(mt(r))return Rv(e,r,t)}return t}function Ow(e,t,r,n,s,o,i,a,l){return e=xf(r,n,!0,e,s,o,i,a,l),e.context=Rw(null),r=e.current,n=it(),s=kn(r),o=Ir(n,s),o.callback=t??null,bn(r,o,s),e.current.lanes=s,la(e,s,n),gt(e,n),e}function mc(e,t,r,n){var s=t.current,o=it(),i=kn(s);return r=Rw(r),t.context===null?t.context=r:t.pendingContext=r,t=Ir(o,i),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=bn(s,t,i),e!==null&&(or(e,s,i,o),sl(e,s,i)),i}function Ul(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 wm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function bf(e,t){wm(e,t),(e=e.alternate)&&wm(e,t)}function Pk(){return null}var Iw=typeof reportError=="function"?reportError:function(e){console.error(e)};function _f(e){this._internalRoot=e}gc.prototype.render=_f.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));mc(e,t,null,null)};gc.prototype.unmount=_f.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ps(function(){mc(null,e,null,null)}),t[Dr]=null}};function gc(e){this._internalRoot=e}gc.prototype.unstable_scheduleHydration=function(e){if(e){var t=dv();e={blockedOn:null,target:e,priority:t};for(var r=0;r<on.length&&t!==0&&t<on[r].priority;r++);on.splice(r,0,e),r===0&&fv(e)}};function kf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function xm(){}function Rk(e,t,r,n,s){if(s){if(typeof n=="function"){var o=n;n=function(){var u=Ul(i);o.call(u)}}var i=Ow(t,n,e,0,null,!1,!1,"",xm);return e._reactRootContainer=i,e[Dr]=i.current,Oi(e.nodeType===8?e.parentNode:e),ps(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof n=="function"){var a=n;n=function(){var u=Ul(l);a.call(u)}}var l=xf(e,0,!1,null,null,!1,!1,"",xm);return e._reactRootContainer=l,e[Dr]=l.current,Oi(e.nodeType===8?e.parentNode:e),ps(function(){mc(t,l,r,n)}),l}function vc(e,t,r,n,s){var o=r._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=Ul(i);a.call(l)}}mc(t,i,e,s)}else i=Rk(r,t,e,s,n);return Ul(i)}cv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ci(t.pendingLanes);r!==0&&(Fh(t,r|1),gt(t,Ce()),!(ne&6)&&(Po=Ce()+500,In()))}break;case 13:ps(function(){var n=Mr(e,1);if(n!==null){var s=it();or(n,e,1,s)}}),bf(e,1)}};Bh=function(e){if(e.tag===13){var t=Mr(e,134217728);if(t!==null){var r=it();or(t,e,134217728,r)}bf(e,134217728)}};uv=function(e){if(e.tag===13){var t=kn(e),r=Mr(e,t);if(r!==null){var n=it();or(r,e,t,n)}bf(e,t)}};dv=function(){return ae};hv=function(e,t){var r=ae;try{return ae=e,t()}finally{ae=r}};od=function(e,t,r){switch(t){case"input":if(Qu(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var s=lc(n);if(!s)throw Error(R(90));Wy(n),Qu(n,s)}}}break;case"textarea":Vy(e,r);break;case"select":t=r.value,t!=null&&so(e,!!r.multiple,t,!1)}};Qy=gf;Xy=ps;var Ok={usingClientEntryPoint:!1,Events:[ua,Gs,lc,Jy,Yy,gf]},Xo={findFiberByHostInstance:Gn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ik={bundleType:Xo.bundleType,version:Xo.version,rendererPackageName:Xo.rendererPackageName,rendererConfig:Xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=rv(e),e===null?null:e.stateNode},findFiberByHostInstance:Xo.findFiberByHostInstance||Pk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var za=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!za.isDisabled&&za.supportsFiber)try{sc=za.inject(Ik),yr=za}catch{}}jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ok;jt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!kf(t))throw Error(R(200));return Ak(e,t,null,r)};jt.createRoot=function(e,t){if(!kf(e))throw Error(R(299));var r=!1,n="",s=Iw;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=xf(e,1,!1,null,null,r,!1,n,s),e[Dr]=t.current,Oi(e.nodeType===8?e.parentNode:e),new _f(t)};jt.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(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=rv(t),e=e===null?null:e.stateNode,e};jt.flushSync=function(e){return ps(e)};jt.hydrate=function(e,t,r){if(!yc(t))throw Error(R(200));return vc(null,e,t,!0,r)};jt.hydrateRoot=function(e,t,r){if(!kf(e))throw Error(R(405));var n=r!=null&&r.hydratedSources||null,s=!1,o="",i=Iw;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=Ow(t,null,e,1,r??null,s,!1,o,i),e[Dr]=t.current,Oi(e),n)for(e=0;e<n.length;e++)r=n[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new gc(t)};jt.render=function(e,t,r){if(!yc(t))throw Error(R(200));return vc(null,e,t,!1,r)};jt.unmountComponentAtNode=function(e){if(!yc(e))throw Error(R(40));return e._reactRootContainer?(ps(function(){vc(null,null,e,!1,function(){e._reactRootContainer=null,e[Dr]=null})}),!0):!1};jt.unstable_batchedUpdates=gf;jt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!yc(r))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return vc(e,t,r,!1,n)};jt.version="18.3.1-next-f1338f8080-20240426";function $w(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($w)}catch(e){console.error(e)}}$w(),$y.exports=jt;var ha=$y.exports;const Dw=ia(ha);var Mw,bm=ha;Mw=bm.createRoot,bm.hydrateRoot;var $k=typeof Element<"u",Dk=typeof Map=="function",Mk=typeof Set=="function",Lk=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function dl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!dl(e[n],t[n]))return!1;return!0}var o;if(Dk&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!dl(n.value[1],t.get(n.value[0])))return!1;return!0}if(Mk&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Lk&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;if($k&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((s[n]==="_owner"||s[n]==="__v"||s[n]==="__o")&&e.$$typeof)&&!dl(e[s[n]],t[s[n]]))return!1;return!0}return e!==e&&t!==t}var zk=function(t,r){try{return dl(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Uk=ia(zk);var Fk=function(e,t,r,n,s,o,i,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=[r,n,s,o,i,a],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},Bk=Fk;const _m=ia(Bk);var Wk=function(t,r,n,s){var o=n?n.call(s,t,r):void 0;if(o!==void 0)return!!o;if(t===r)return!0;
40if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var i=Object.keys(t),a=Object.keys(r);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),u=0;u<i.length;u++){var d=i[u];if(!l(d))return!1;var h=t[d],p=r[d];if(o=n?n.call(s,h,p,d):void 0,o===!1||o===void 0&&h!==p)return!1}return!0};const Hk=ia(Wk);var Lw=(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))(Lw||{}),xu={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"]}},km=Object.values(Lw),wc={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},zw=Object.entries(wc).reduce((e,[t,r])=>(e[r]=t,e),{}),nr="data-rh",uo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ho=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},Vk=e=>{let t=ho(e,"title");const r=ho(e,uo.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=ho(e,uo.DEFAULT_TITLE);return t||n||void 0},qk=e=>ho(e,uo.ON_CHANGE_CLIENT_STATE)||(()=>{}),bu=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),Kk=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const s=Object.keys(n);for(let o=0;o<s.length;o+=1){const a=s[o].toLowerCase();if(e.indexOf(a)!==-1&&n[a])return r.concat(n)}}return r},[]),Zk=e=>console&&typeof console.warn=="function"&&console.warn(e),ei=(e,t,r)=>{const n={};return r.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&Zk(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,o)=>{const i={};o.filter(l=>{let u;const d=Object.keys(l);for(let p=0;p<d.length;p+=1){const f=d[p],y=f.toLowerCase();t.indexOf(y)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(y==="rel"&&l[y].toLowerCase()==="stylesheet")&&(u=y),t.indexOf(f)!==-1&&(f==="innerHTML"||f==="cssText"||f==="itemprop")&&(u=f)}if(!u||!l[u])return!1;const h=l[u].toLowerCase();return n[u]||(n[u]={}),i[u]||(i[u]={}),n[u][h]?!1:(i[u][h]=!0,!0)}).reverse().forEach(l=>s.push(l));const a=Object.keys(i);for(let l=0;l<a.length;l+=1){const u=a[l],d={...n[u],...i[u]};n[u]=d}return s},[]).reverse()},Gk=(e,t)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},Jk=e=>({baseTag:Kk(["href"],e),bodyAttributes:bu("bodyAttributes",e),defer:ho(e,uo.DEFER),encode:ho(e,uo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:bu("htmlAttributes",e),linkTags:ei("link",["rel","href"],e),metaTags:ei("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:ei("noscript",["innerHTML"],e),onChangeClientState:qk(e),scriptTags:ei("script",["src","innerHTML"],e),styleTags:ei("style",["cssText"],e),title:Vk(e),titleAttributes:bu("titleAttributes",e),prioritizeSeoTags:Gk(e,uo.PRIORITIZE_SEO_TAGS)}),Uw=e=>Array.isArray(e)?e.join(""):e,Yk=(e,t)=>{const r=Object.keys(e);for(let n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1},_u=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(Yk(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},Sm=(e,t)=>({...e,[t]:void 0}),Qk=["noscript","script","style"],Ld=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Fw=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),Xk=(e,t,r,n)=>{const s=Fw(r),o=Uw(t);return s?`<${e} ${nr}="true" ${s}>${Ld(o,n)}</${e}>`:`<${e} ${nr}="true">${Ld(o,n)}</${e}>`},eS=(e,t,r=!0)=>t.reduce((n,s)=>{const o=s,i=Object.keys(o).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const h=typeof o[d]>"u"?d:`${d}="${Ld(o[d],r)}"`;return u?`${u} ${h}`:h},""),a=o.innerHTML||o.cssText||"",l=Qk.indexOf(e)===-1;return`${n}<${e} ${nr}="true" ${i}${l?"/>":`>${a}</${e}>`}`},""),Bw=(e,t={})=>Object.keys(e).reduce((r,n)=>{const s=wc[n];return r[s||n]=e[n],r},t),tS=(e,t,r)=>{const n={key:t,[nr]:!0},s=Bw(r,n);return[A.createElement("title",s,t)]},hl=(e,t)=>t.map((r,n)=>{const s={key:n,[nr]:!0};return Object.keys(r).forEach(o=>{const a=wc[o]||o;if(a==="innerHTML"||a==="cssText"){const l=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=r[o]}),A.createElement(e,s)}),At=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>tS(e,t.title,t.titleAttributes),toString:()=>Xk(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Bw(t),toString:()=>Fw(t)};default:return{toComponent:()=>hl(e,t),toString:()=>eS(e,t,r)}}},rS=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const s=_u(e,xu.meta),o=_u(t,xu.link),i=_u(r,xu.script);return{priorityMethods:{toComponent:()=>[...hl("meta",s.priority),...hl("link",o.priority),...hl("script",i.priority)],toString:()=>`${At("meta",s.priority,n)} ${At("link",o.priority,n)} ${At("script",i.priority,n)}`},metaTags:s.default,linkTags:o.default,scriptTags:i.default}},nS=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:o,styleTags:i,title:a="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:h,scriptTags:p}=e,f={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:f,linkTags:d,metaTags:h,scriptTags:p}=rS(e)),{priority:f,base:At("base",t,n),bodyAttributes:At("bodyAttributes",r,n),htmlAttributes:At("htmlAttributes",s,n),link:At("link",d,n),meta:At("meta",h,n),noscript:At("noscript",o,n),script:At("script",p,n),style:At("style",i,n),title:At("title",{title:a,titleAttributes:l},n)}},zd=nS,Ua=[],Sf=!!(typeof window<"u"&&window.document&&window.document.createElement),Ud=class{constructor(e,t){kr(this,"instances",[]);kr(this,"canUseDOM",Sf);kr(this,"context");kr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Ua:this.instances,add:e=>{(this.canUseDOM?Ua:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Ua:this.instances).indexOf(e);(this.canUseDOM?Ua:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=zd({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},sS=parseInt(A.version.split(".")[0],10),Fd=sS>=19,oS={},Ww=A.createContext(oS),Xn,Hw=(Xn=class extends b.Component{constructor(r){super(r);kr(this,"helmetData");Fd?this.helmetData=null:this.helmetData=new Ud(this.props.context||{},Xn.canUseDOM)}render(){return Fd?A.createElement(A.Fragment,null,this.props.children):A.createElement(Ww.Provider,{value:this.helmetData.value},this.props.children)}},kr(Xn,"canUseDOM",Sf),Xn),Os=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${nr}]`),s=[].slice.call(n),o=[];let i;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 d=a.cssText;
40l.appendChild(document.createTextNode(d))}else{const d=u,h=typeof a[d]>"u"?"":a[d];l.setAttribute(u,h)}l.setAttribute(nr,"true"),s.some((u,d)=>(i=d,l.isEqualNode(u)))?s.splice(i,1):o.push(l)}),s.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),o.forEach(a=>r.appendChild(a)),{oldTags:s,newTags:o}},Bd=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(nr),s=n?n.split(","):[],o=[...s],i=Object.keys(t);for(const a of i){const l=t[a]||"";r.getAttribute(a)!==l&&r.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const u=o.indexOf(a);u!==-1&&o.splice(u,1)}for(let a=o.length-1;a>=0;a-=1)r.removeAttribute(o[a]);s.length===o.length?r.removeAttribute(nr):r.getAttribute(nr)!==i.join(",")&&r.setAttribute(nr,i.join(","))},iS=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Uw(e)),Bd("title",t)},Em=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:o,metaTags:i,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:d,title:h,titleAttributes:p}=e;Bd("body",n),Bd("html",s),iS(h,p);const f={baseTag:Os("base",r),linkTags:Os("link",o),metaTags:Os("meta",i),noscriptTags:Os("noscript",a),scriptTags:Os("script",u),styleTags:Os("style",d)},y={},m={};Object.keys(f).forEach(x=>{const{newTags:v,oldTags:g}=f[x];v.length&&(y[x]=v),g.length&&(m[x]=f[x].oldTags)}),t&&t(),l(e,y,m)},ti=null,aS=e=>{ti&&cancelAnimationFrame(ti),e.defer?ti=requestAnimationFrame(()=>{Em(e,()=>{ti=null})}):(Em(e),ti=null)},lS=aS,jm=class extends b.Component{constructor(){super(...arguments);kr(this,"rendered",!1)}shouldComponentUpdate(t){return!Hk(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const s=Jk(t.get().map(o=>{const{context:i,...a}=o.props;return a}));Hw.canUseDOM?lS(s):zd&&(n=zd(s)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},fl=[],Tm=e=>{const t={};for(const r of Object.keys(e))t[zw[r]||r]=e[r];return t},Un=e=>{const t={};for(const r of Object.keys(e)){const n=wc[r];t[n||r]=e[r]}return t},Nm=(e,t)=>{if(!Sf)return;const r=document.getElementsByTagName(e)[0];if(!r)return;const n="data-rh-managed",s=r.getAttribute(n),o=s?s.split(","):[],i=Object.keys(t);for(const a of o)i.includes(a)||r.removeAttribute(a);for(const a of i){const l=t[a];l==null||l===!1?r.removeAttribute(a):l===!0?r.setAttribute(a,""):r.setAttribute(a,String(l))}i.length>0?r.setAttribute(n,i.join(",")):r.removeAttribute(n)},ku=()=>{const e={},t={};for(const r of fl){const{htmlAttributes:n,bodyAttributes:s}=r.props;n&&Object.assign(e,Tm(n)),s&&Object.assign(t,Tm(s))}Nm("html",e),Nm("body",t)},cS=class extends b.Component{componentDidMount(){fl.push(this),ku()}componentDidUpdate(){ku()}componentWillUnmount(){const e=fl.indexOf(this);e!==-1&&fl.splice(e,1),ku()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:r}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||r||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return A.createElement("title",Un(t),e)}renderBase(){const{base:e}=this.props;return e?A.createElement("base",Un(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>A.createElement("meta",{key:r,...Un(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>A.createElement("link",{key:r,...Un(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{innerHTML:n,...s}=t,o=Un(s);return n&&(o.dangerouslySetInnerHTML={__html:n}),A.createElement("script",{key:r,...o})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{cssText:n,...s}=t,o=Un(s);return n&&(o.dangerouslySetInnerHTML={__html:n}),A.createElement("style",{key:r,...o})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{innerHTML:n,...s}=t,o=Un(s);return n&&(o.dangerouslySetInnerHTML={__html:n}),A.createElement("noscript",{key:r,...o}
40)})}render(){return A.createElement(A.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Vu,uS=(Vu=class extends b.Component{shouldComponentUpdate(e){return!Uk(Sm(this.props,"helmetData"),Sm(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,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return _m(km.some(r=>e.type===r),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 ${km.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),_m(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="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 r={};return A.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:s,...o}=n.props,i=Object.keys(o).reduce((l,u)=>(l[zw[u]||u]=o[u],l),{});let{type:a}=n;
40switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(n,s),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,i,s);break;default:t=this.mapObjectTypeChildren(n,t,i,s);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof Ud)){const s=n;n=new Ud(s.context,!0),delete r.helmetData}return Fd?A.createElement(cS,{...r}):n?A.createElement(jm,{...r,context:n.value}):A.createElement(Ww.Consumer,null,s=>A.createElement(jm,{...r,context:s}))}},kr(Vu,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Vu);const dS=1,hS=1e6;let Su=0;function fS(){return Su=(Su+1)%Number.MAX_SAFE_INTEGER,Su.toString()}const Eu=new Map,Cm=e=>{if(Eu.has(e))return;const t=setTimeout(()=>{Eu.delete(e),_i({type:"REMOVE_TOAST",toastId:e})},hS);Eu.set(e,t)},pS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,dS)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?Cm(r):e.toasts.forEach(n=>{Cm(n.id)}),{...e,toasts:e.toasts.map(n=>
vendor: 13,576 bytes, line 40
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},pl=[];let ml={toasts:[]};function _i(e){ml=pS(ml,e),pl.forEach(t=>{t(ml)})}function mS({...e}){const t=fS(),r=s=>_i({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>_i({type:"DISMISS_TOAST",toastId:t});return _i({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function fa(){const[e,t]=b.useState(ml);return b.useEffect(()=>(pl.push(t),()=>{const r=pl.indexOf(t);r>-1&&pl.splice(r,1)}),[e]),{...e,toast:mS,dismiss:r=>_i({type:"DISMISS_TOAST",toastId:r})}}function ue(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Am(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Vw(...e){return t=>{let r=!1;const n=e.map(s=>{const o=Am(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s<n.length;s++){const o=n[s];typeof o=="function"?o():Am(e[s],null)}}}}function Ut(...e){return b.useCallback(Vw(...e),e)}function Mo(e,t=[]){let r=[];function n(o,i){const a=b.createContext(i),l=r.length;r=[...r,i];const u=h=>{var v;const{scope:p,children:f,...y}=h,m=((v=p==null?void 0:p[e])==null?void 0:v[l])||a,x=b.useMemo(()=>y,Object.values(y));return c.jsx(m.Provider,{value:x,children:f})};u.displayName=o+"Provider";function d(h,p){var m;const f=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,y=b.useContext(f);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[u,d]}const s=()=>{const o=r.map(i=>b.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[n,gS(s,...t)]}function gS(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=n.reduce((a,{useScope:l,scopeName:u})=>{const h=l(o)[`__scope${u}`];return{...a,...h}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Fl(e){const t=vS(e),r=b.forwardRef((n,s)=>{const{children:o,...i}=n,a=b.Children.toArray(o),l=a.find(xS);if(l){const u=l.props.children,d=a.map(h=>h===l?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:s,children:b.isValidElement(u)?b.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}var yS=Fl("Slot");function vS(e){const t=b.forwardRef((r,n)=>{const{children:s,...o}=r;if(b.isValidElement(s)){const i=_S(s),a=bS(o,s.props);return s.type!==b.Fragment&&(a.ref=n?Vw(n,i):i),b.cloneElement(s,a)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qw=Symbol("radix.slottable");function wS(e){const t=({children:r})=>c.jsx(c.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=qw,t}function xS(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qw}function bS(e,t){const r={...t};for(const n in t){const s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...a)=>{const l=o(...a);return s(...a),l}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function _S(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Kw(e){const t=e+"CollectionProvider",[r,n]=Mo(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:x,children:v}=m,g=A.useRef(null),w=A.useRef(new Map).current;return c.jsx(s,{scope:x,itemMap:w,collectionRef:g,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=Fl(a),u=A.forwardRef((m,x)=>{const{scope:v,children:g}=m,w=o(a,v),_=Ut(x,w.collectionRef);return c.jsx(l,{ref:_,children:g})});u.displayName=a;const d=e+"CollectionItemSlot",h="data-radix-collection-item",p=Fl(d),f=A.forwardRef((m,x)=>{const{scope:v,children:g,...w}=m,_=A.useRef(null),k=Ut(x,_),S=o(d,v);return A.useEffect(()=>(S.itemMap.set(_,{ref:_,...w}),()=>void S.itemMap.delete(_))),c.jsx(p,{[h]:"",ref:k,children:g})});f.displayName=d;function y(m){const x=o(e+"CollectionConsumer",m);return A.useCallback(()=>{const g=x.collectionRef.current;if(!g)return[];const w=Array.from(g.querySelectorAll(`[${h}]`));return Array.from(x.itemMap.values()).sort((S,E)=>w.indexOf(S.ref.current)-w.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},y,n]}var kS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pe=kS.reduce((e,t)=>{const r=Fl(`Primitive.${t}`),n=b.forwardRef((s,o)=>{const{asChild:i,...a}=s,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Zw(e,t){e&&ha.flushSync(()=>e.dispatchEvent(t))}function zr(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function SS(e,t=globalThis==null?void 0:globalThis.document){const r=zr(e);b.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var ES="DismissableLayer",Wd="dismissableLayer.update",jS="dismissableLayer.pointerDownOutside",TS="dismissableLayer.focusOutside",Pm,Gw=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ef=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=e,u=b.useContext(Gw),[d,h]=b.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=b.useState({}),y=Ut(t,E=>h(E)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(x),g=d?m.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,_=g>=v,k=CS(E=>{const j=E.target,O=[...u.branches].some(I=>I.contains(j));!_||O||(s==null||s(E),i==null||i(E),E.defaultPrevented||a==null||a())},p),S=AS(E=>{const j=E.target;[...u.branches].some(I=>I.contains(j))||(o==null||o(E),i==null||i(E),E.defaultPrevented||a==null||a())},p);return SS(E=>{g===u.layers.size-1&&(n==null||n(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},p),b.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Pm=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Rm(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Pm)}},[d,p,r,u]),b.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Rm())},[d,u]),b.useEffect(()=>{const E=()=>f({});return document.addEventListener(Wd,E),()=>document.removeEventListener(Wd,E)},[]),c.jsx(Pe.div,{...l,ref:y,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:ue(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ue(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ue(e.onPointerDownCapture,k.onPointerDownCapture)})});Ef.displayName=ES;var NS="DismissableLayerBranch",Jw=b.forwardRef((e,t)=>{const r=b.useContext(Gw),n=b.useRef(null),s=Ut(t,n);return b.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),c.jsx(Pe.div,{...e,ref:s})});Jw.displayName=NS;function CS(e,t=globalThis==null?void 0:globalThis.document){const r=zr(e),n=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const o=a=>{if(a.target&&!n.current){let l=function(){Yw(jS,r,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function AS(e,t=globalThis==null?void 0:globalThis.document){const r=zr(e),n=b.useRef(!1);return b.useEffect(()=>{const s=o=>{o.target&&!n.current&&Yw(TS,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Rm(){const e=new CustomEvent(Wd);document.dispatchEvent(e)}function Yw(e,t,r,{discrete:n}){const s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?Zw(s,o):s.dispatchEvent(o)}var PS=Ef,RS=Jw,Ur=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},OS="Portal",Qw=b.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[s,o]=b.useState(!1);Ur(()=>o(!0),[]);const i=r||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Dw.createPortal(c.jsx(Pe.div,{...n,ref:t}),i):null});Qw.displayName=OS;function IS(e,t){return b.useReducer((r,n)=>t[r][n]??r,e)}var xc=e=>{const{present:t,children:r}=e,n=$S(t),s=typeof r=="function"?r({present:n.isPresent}):b.Children.only(r),o=Ut(n.ref,DS(s));return typeof r=="function"||n.isPresent?b.cloneElement(s,{ref:o}):null};xc.displayName="Presence";function $S(e){const[t,r]=b.useState(),n=b.useRef(null),s=b.useRef(e),o=b.useRef("none"),i=e?"mounted":"unmounted",[a,l]=IS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=Fa(n.current);o.current=a==="mounted"?u:"none"},[a]),Ur(()=>{const u=n.current,d=s.current;if(d!==e){const p=o.current,f=Fa(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&p!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Ur(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=f=>{const m=Fa(n.current).includes(f.animationName);if(f.target===t&&m&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=f=>{f.target===t&&(o.current=Fa(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Fa(e){return(e==null?void 0:e.animationName)||"none"}function DS(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var MS=Rh[" useInsertionEffect ".trim().toString()]||Ur;function jf({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,o,i]=LS({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:s;{const d=b.useRef(e!==void 0);b.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${n} is changing from ${h?"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.`),d.current=a},[a,n])}const u=b.useCallback(d=>{var h;if(a){const p=zS(d)?d(e):d;p!==e&&((h=i.current)==null||h.call(i,p))}else o(d)},[a,e,o,i]);return[l,u]}function LS({defaultProp:e,onChange:t}){const[r,n]=b.useState(e),s=b.useRef(r),o=b.useRef(t);return MS(()=>{o.current=t},[t]),b.useEffect(()=>{var i;s.current!==r&&((i=o.current)==null||i.call(o,r),s.current=r)},[r,s]),[r,n,o]}function zS(e){return typeof e=="function"}var US=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"}),FS="VisuallyHidden",bc=b.forwardRef((e,t)=>c.jsx(Pe.span,{...e,ref:t,style:{...US,...e.style}}));bc.displayName=FS;var BS=bc,Tf="ToastProvider",[Nf,WS,HS]=Kw("Toast"),[Xw,zM]=Mo("Toast",[HS]),[VS,_c]=Xw(Tf),e0=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[a,l]=b.useState(null),[u,d]=b.useState(0),h=b.useRef(!1),p=b.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Tf}\`. Expected non-empty \`string\`.`),c.jsx(Nf.Provider,{scope:t,children:c.jsx(VS,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>d(f=>f+1),[]),onToastRemove:b.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:i})})};e0.displayName=Tf;var t0="ToastViewport",qS=["F8"],Hd="toast.viewportPause",Vd="toast.viewportResume",r0=b.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=qS,label:s="Notifications ({hotkey})",...o}=e,i=_c(t0,r),a=WS(r),l=b.useRef(null),u=b.useRef(null),d=b.useRef(null),h=b.useRef(null),p=Ut(t,h,i.onViewportChange),f=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=i.toastCount>0;b.useEffect(()=>{const x=v=>{var w;n.length!==0&&n.every(_=>v[_]||v.code===_)&&((w=h.current)==null||w.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[n]),b.useEffect(()=>{const x=l.current,v=h.current;if(y&&x&&v){const g=()=>{if(!i.isClosePausedRef.current){const S=new CustomEvent(Hd);v.dispatchEvent(S),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const S=new CustomEvent(Vd);v.dispatchEvent(S),i.isClosePausedRef.current=!1}},_=S=>{!x.contains(S.relatedTarget)&&w()},k=()=>{x.contains(document.activeElement)||w()};return x.addEventListener("focusin",g),x.addEventListener("focusout",_),x.addEventListener("pointermove",g),x.addEventListener("pointerleave",k),window.addEventListener("blur",g),window.addEventListener("focus",w),()=>{x.removeEventListener("focusin",g),x.removeEventListener("focusout",_),x.removeEventListener("pointermove",g),x.removeEventListener("pointerleave",k),window.removeEventListener("blur",g),window.removeEventListener("focus",w)}}},[y,i.isClosePausedRef]);const m=b.useCallback(({tabbingDirection:x})=>{const g=a().map(w=>{const _=w.ref.current,k=[_,...oE(_)];return x==="forwards"?k:k.reverse()});return(x==="forwards"?g.reverse():g).flat()},[a]);return b.useEffect(()=>{const x=h.current;if(x){const v=g=>{var k,S,E;const w=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!w){const j=document.activeElement,O=g.shiftKey;if(g.target===x&&O){(k=u.current)==null||k.focus();return}const M=m({tabbingDirection:O?"backwards":"forwards"}),Y=M.findIndex($=>$===j);ju(M.slice(Y+1))?g.preventDefault():O?(S=u.current)==null||S.focus():(E=d.current)==null||E.focus()}};return x.addEventListener("keydown",v),()=>x.removeEventListener("keydown",v)}},[a,m]),c.jsxs(RS,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&c.jsx(qd,{ref:u,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"forwards"});ju(x)}}),c.jsx(Nf.Slot,{scope:r,children:c.jsx(Pe.ol,{tabIndex:-1,...o,ref:p})}),y&&c.jsx(qd,{ref:d,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"backwards"});ju(x)}})]})});r0.displayName=t0;var n0="ToastFocusProxy",qd=b.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,o=_c(n0,r);return c.jsx(bc,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&n()}})});qd.displayName=n0;var pa="Toast",KS="toast.swipeStart",ZS="toast.swipeMove",GS="toast.swipeCancel",JS="toast.swipeEnd",s0=b.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:o,...i}=e,[a,l]=jf({prop:n,defaultProp:s??!0,onChange:o,caller:pa});return c.jsx(xc,{present:r||a,children:c.jsx(XS,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:zr(e.onPause),onResume:zr(e.onResume),onSwipeStart:ue(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ue(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:ue(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ue(e.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});s0.displayName=pa;var[YS,QS]=Xw(pa,{onClose(){}}),XS=b.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:f,...y}=e,m=_c(pa,r),[x,v]=b.useState(null),g=Ut(t,$=>v($)),w=b.useRef(null),_=b.useRef(null),k=s||m.duration,S=b.useRef(0),E=b.useRef(k),j=b.useRef(0),{onToastAdd:O,onToastRemove:I}=m,B=zr(()=>{var Q;(x==null?void 0:x.contains(document.activeElement))&&((Q=m.viewport)==null||Q.focus()),i()}),M=b.useCallback($=>{!$||$===1/0||(window.clearTimeout(j.current),S.current=new Date().getTime(),j.current=window.setTimeout(B,$))},[B]);b.useEffect(()=>{const $=m.viewport;if($){const Q=()=>{M(E.current),u==null||u()},U=()=>{const Z=new Date().getTime()-S.current;E.current=E.current-Z,window.clearTimeout(j.current),l==null||l()};return $.addEventListener(Hd,U),$.addEventListener(Vd,Q),()=>{$.removeEventListener(Hd,U),$.removeEventListener(Vd,Q)}}},[m.viewport,k,l,u,M]),b.useEffect(()=>{o&&!m.isClosePausedRef.current&&M(k)},[o,k,m.isClosePausedRef,M]),b.useEffect(()=>(O(),()=>I()),[O,I]);const Y=b.useMemo(()=>x?d0(x):null,[x]);return m.viewport?c.jsxs(c.Fragment,{children:[Y&&c.jsx(eE,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:Y}),c.jsx(YS,{scope:r,onClose:B,children:ha.createPortal(c.jsx(Nf.ItemSlot,{scope:r,children:c.jsx(PS,{asChild:!0,onEscapeKeyDown:ue(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||B(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(Pe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ue(e.onKeyDown,$=>{$.key==="Escape"&&(a==null||a($.nativeEvent),$.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:ue(e.onPointerDown,$=>{$.button===0&&(w.current={x:$.clientX,y:$.clientY})}),onPointerMove:ue(e.onPointerMove,$=>{if(!w.current)return;const Q=$.clientX-w.current.x,U=$.clientY-w.current.y,Z=!!_.current,N=["left","right"].includes(m.swipeDirection),P=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,D=N?P(0,Q):0,G=N?0:P(0,U),F=$.pointerType==="touch"?10:2,X={x:D,y:G},te={originalEvent:$,delta:X};Z?(_.current=X,Ba(ZS,h,te,{discrete:!1})):Om(X,m.swipeDirection,F)?(_.current=X,Ba(KS,d,te,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(Q)>F||Math.abs(U)>F)&&(w.current=null)}),onPointerUp:ue(e.onPointerUp,$=>{const Q=_.current,U=$.target;if(U.hasPointerCapture($.pointerId)&&U.releasePointerCapture($.pointerId),_.current=null,w.current=null,Q){const Z=$.currentTarget,N={originalEvent:$,delta:Q};Om(Q,m.swipeDirection,m.swipeThreshold)?Ba(JS,f,N,{discrete:!0}):Ba(GS,p,N,{discrete:!0}),Z.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),eE=e=>{const{__scopeToast:t,children:r,...n}=e,s=_c(pa,t),[o,i]=b.useState(!1),[a,l]=b.useState(!1);return nE(()=>i(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Qw,{asChild:!0,children:c.jsx(bc,{...n,children:o&&c.jsxs(c.Fragment,{children:[s.label," ",r]})})})},tE="ToastTitle",o0=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return c.jsx(Pe.div,{...n,ref:t})});o0.displayName=tE;var rE="ToastDescription",i0=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return c.jsx(Pe.div,{...n,ref:t})});i0.displayName=rE;var a0="ToastAction",l0=b.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?c.jsx(u0,{altText:r,asChild:!0,children:c.jsx(Cf,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${a0}\`. Expected non-empty \`string\`.`),null)});l0.displayName=a0;var c0="ToastClose",Cf=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=QS(c0,r);return c.jsx(u0,{asChild:!0,children:c.jsx(Pe.button,{type:"button",...n,ref:t,onClick:ue(e.onClick,s.onClose)})})});Cf.displayName=c0;var u0=b.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return c.jsx(Pe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function d0(e){const t=[];
vendor: 5,122 bytes, lines 40-75
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),sE(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...d0(n))}}),t}function Ba(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?Zw(s,o):s.dispatchEvent(o)}var Om=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),o=n>s;return t==="left"||t==="right"?o&&n>r:!o&&s>r};function nE(e=()=>{}){const t=zr(e);Ur(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function sE(e){return e.nodeType===e.ELEMENT_NODE}function oE(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ju(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var iE=e0,h0=r0,f0=s0,p0=o0,m0=i0,g0=l0,y0=Cf;function v0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=v0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function w0(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=v0(e))&&(n&&(n+=" "),n+=t);return n}const Im=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,$m=w0,kc=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return $m(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(u=>{const d=r==null?void 0:r[u],h=o==null?void 0:o[u];if(d===null)return null;const p=Im(d)||Im(h);return s[u][p]}),a=r&&Object.entries(r).reduce((u,d)=>{let[h,p]=d;return p===void 0||(u[h]=p),u},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:h,className:p,...f}=d;return Object.entries(f).every(y=>{let[m,x]=y;return Array.isArray(x)?x.includes({...o,...a}[m]):{...o,...a}[m]===x})?[...u,h,p]:u},[]);return $m(e,i,l,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const aE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),x0=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var lE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const cE=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:o,iconNode:i,...a},l)=>b.createElement("svg",{ref:l,...lE,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:x0("lucide",s),...a},[...i.map(([u,d])=>b.createElement(u,d)),...Array.isArray(o)?o:[o]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const re=(e,t)=>{const r=b.forwardRef(({className:n,...s},o)=>b.createElement(cE,{ref:o,iconNode:t,className:x0(`lucide-${aE(e)}`,n),...s}));return r.displayName=`${e}`,r};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const Ft=re("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const uE=re("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const dE=re("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
75],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const hE=re("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const bs=re("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const fE=re("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const pE=re("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const $t=re("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"}]]);/** 101 * @license lucide-react v0.462.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const mE=re("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 106 * @license lucide-react v0.462.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const gE=re("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const yE=re("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"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const vE=re("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** 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 wE=re("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const xE=re("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"}]]);/** 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 bE=re("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"}]]);/** 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 En=re("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 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 _E=re("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"}]]);/** 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 Dm=re("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 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 Bi=re("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 156 * @license lucide-react v0.462.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const b0=re("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 161 * @license lucide-react v0.462.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const kE=re("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const Mm=re("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const SE=re("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const EE=re("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 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 Lm=re("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 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 jn=re("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 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 jE=re("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 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 Kd=re("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const TE=re("ShieldAlert",[["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
vendor: 9,759 bytes, lines 205-235
205y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 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 NE=re("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 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 CE=re("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** 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 AE=re("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"}]]);/** 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 Af=re("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const PE=re("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/** 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 _0=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Pf="-",RE=e=>{const t=IE(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const a=i.split(Pf);return a[0]===""&&a.length!==1&&a.shift(),k0(a,t)||OE(i)},getConflictingClassGroupIds:(i,a)=>{const l=r[i]||[];return a&&n[i]?[...l,...n[i]]:l}}},k0=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?k0(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Pf);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},zm=/^\[(.+)\]$/,OE=e=>{if(zm.test(e)){const t=zm.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},IE=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return DE(Object.entries(e.classGroups),r).forEach(([o,i])=>{Zd(i,n,o,t)}),n},Zd=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:Um(t,s);o.classGroupId=r;return}if(typeof s=="function"){if($E(s)){Zd(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,i])=>{Zd(i,Um(t,o),r,n)})})},Um=(e,t)=>{let r=e;return t.split(Pf).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},$E=e=>e.isThemeGetter,DE=(e,t)=>t?e.map(([r,n])=>{const s=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[r,s]}):e,ME=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return s(o,i),i},set(o,i){r.has(o)?r.set(o,i):s(o,i)}}},S0="!",LE=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],o=t.length,i=a=>{const l=[];let u=0,d=0,h;for(let x=0;x<a.length;x++){let v=a[x];if(u===0){if(v===s&&(n||a.slice(x,x+o)===t)){l.push(a.slice(d,x)),d=x+o;continue}if(v==="/"){h=x;continue}}v==="["?u++:v==="]"&&u--}const p=l.length===0?a:a.substring(d),f=p.startsWith(S0),y=f?p.substring(1):p,m=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:m}};return r?a=>r({className:a,parseClassName:i}):i},zE=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},UE=e=>({cache:ME(e.cacheSize),parseClassName:LE(e),...RE(e)}),FE=/\s+/,BE=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(FE);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:d,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:f}=r(u);let y=!!f,m=n(y?p.substring(0,f):p);if(!m){if(!y){a=u+(a.length>0?" "+a:a);continue}if(m=n(p),!m){a=u+(a.length>0?" "+a:a);continue}y=!1}const x=zE(d).join(":"),v=h?x+S0:x,g=v+m;if(o.includes(g))continue;o.push(g);const w=s(m,y);for(let _=0;_<w.length;++_){const k=w[_];o.push(v+k)}a=u+(a.length>0?" "+a:a)}return a};function WE(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=E0(t))&&(n&&(n+=" "),n+=r);return n}const E0=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=E0(e[n]))&&(r&&(r+=" "),r+=t);return r};function HE(e,...t){let r,n,s,o=i;function i(l){const u=t.reduce((d,h)=>h(d),e());return r=UE(u),n=r.cache.get,s=r.cache.set,o=a,a(l)}function a(l){const u=n(l);if(u)return u;const d=BE(l,r);return s(l,d),d}return function(){return o(WE.apply(null,arguments))}}const pe=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},j0=/^\[(?:([a-z-]+):)?(.+)\]$/i,VE=/^\d+\/\d+$/,qE=new Set(["px","full","screen"]),KE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZE=/\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$/,GE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,JE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sr=e=>fo(e)||qE.has(e)||VE.test(e),Qr=e=>Lo(e,"length",oj),fo=e=>!!e&&!Number.isNaN(Number(e)),Tu=e=>Lo(e,"number",fo),ri=e=>!!e&&Number.isInteger(Number(e)),QE=e=>e.endsWith("%")&&fo(e.slice(0,-1)),J=e=>j0.test(e),Xr=e=>KE.test(e),XE=new Set(["length","size","percentage"]),ej=e=>Lo(e,XE,T0),tj=e=>Lo(e,"position",T0),rj=new Set(["image","url"]),nj=e=>Lo(e,rj,aj),sj=e=>Lo(e,"",ij),ni=()=>!0,Lo=(e,t,r)=>{const n=j0.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},oj=e=>ZE.test(e)&&!GE.test(e),T0=()=>!1,ij=e=>JE.test(e),aj=e=>YE.test(e),lj=()=>{const e=pe("colors"),t=pe("spacing"),r=pe("blur"),n=pe("brightness"),s=pe("borderColor"),o=pe("borderRadius"),i=pe("borderSpacing"),a=pe("borderWidth"),l=pe("contrast"),u=pe("grayscale"),d=pe("hueRotate"),h=pe("invert"),p=pe("gap"),f=pe("gradientColorStops"),y=pe("gradientColorStopPositions"),m=pe("inset"),x=pe("margin"),v=pe("opacity"),g=pe("padding"),w=pe("saturate"),_=pe("scale"),k=pe("sepia"),S=pe("skew"),E=pe("space"),j=pe("translate"),O=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",J,t],M=()=>[J,t],Y=()=>["",Sr,Qr],$=()=>["auto",fo,J],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",J],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[fo,J];return{cacheSize:500,separator:":",theme:{colors:[ni],spacing:[Sr,Qr],blur:["none","",Xr,J],brightness:G(),borderColor:[e],borderRadius:["none","","full",Xr,J],borderSpacing:M(),borderWidth:Y(),contrast:G(),grayscale:P(),hueRotate:G(),invert:P(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[QE,Qr],inset:B(),margin:B(),opacity:G(),padding:M(),saturate:G(),scale:G(),sepia:P(),skew:G(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[Xr]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),J]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],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,916 bytes, line 235
235],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ri,J]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",ri,J]}],"grid-cols":[{"grid-cols":[ni]}],"col-start-end":[{col:["auto",{span:["full",ri,J]},J]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[ni]}],"row-start-end":[{row:["auto",{span:[ri,J]},J]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J,t]}],"min-w":[{"min-w":[J,t,"min","max","fit"]}],"max-w":[{"max-w":[J,t,"none","full","min","max","fit","prose",{screen:[Xr]},Xr]}],h:[{h:[J,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xr,Qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Tu]}],"font-family":[{font:[ni]}],"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",J]}],"line-clamp":[{"line-clamp":["none",fo,Tu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sr,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sr,Qr]}],"underline-offset":[{"underline-offset":["auto",Sr,J]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J]}],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",J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),tj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ej]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nj]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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":[v]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:U()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Sr,J]}],"outline-w":[{outline:[Sr,Qr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Sr,Qr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xr,sj]}],"shadow-color":[{shadow:[ni]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Xr,J]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[w]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ri,J]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J]}],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",J]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,646 bytes, line 235
235],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sr,Qr,Tu]}],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"]}}},cj=HE(lj);function le(...e){return cj(w0(e))}const uj=iE,N0=b.forwardRef(({className:e,...t},r)=>c.jsx(h0,{ref:r,className:le("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));N0.displayName=h0.displayName;const dj=kc("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),C0=b.forwardRef(({className:e,variant:t,...r},n)=>c.jsx(f0,{ref:n,className:le(dj({variant:t}),e),...r}));C0.displayName=f0.displayName;const hj=b.forwardRef(({className:e,...t},r)=>c.jsx(g0,{ref:r,className:le("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));hj.displayName=g0.displayName;const A0=b.forwardRef(({className:e,...t},r)=>c.jsx(y0,{ref:r,className:le("absolute right-2 top-2 rounded-md p-1 text-foreground
235/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(_0,{className:"h-4 w-4"})}));A0.displayName=y0.displayName;const P0=b.forwardRef(({className:e,...t},r)=>c.jsx(p0,{ref:r,className:le("text-sm font-semibold",e),...t}));P0.displayName=p0.displayName;const R0=b.forwardRef(({className:e,...t},r)=>c.jsx(m0,{ref:r,className:le("text-sm opacity-90",e),...t}));R0.displayName=m0.displayName;function fj(){const{toasts:e}=fa();return c.jsxs(uj,{children:[e.map(function({id:t,title:r,description:n,action:s,...o}){return c.jsxs(C0,{...o,children:[c.jsxs("div",{className:"grid gap-1",children:[r&&c.jsx(P0,{children:r}),n&&c.jsx(R0,{children:n})]}),s,c.jsx(A0,{})]},t)}),c.jsx(N0,{})]})}var Fm=["light","dark"],pj="(prefers-color-scheme: dark)",mj=b.createContext(void 0),gj={setTheme:e=>{},themes:[]},yj=()=>{var e;return(e=b.useContext(mj))!=null?e:gj};b.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let u=o==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?Fm.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(y,m=!1,x=!0)=>{let v=i?i[y]:y,g=m?y+"|| ''":`'${v}'`,w="";return s&&x&&!m&&Fm.includes(y)&&(w+=`d.style.colorScheme = '${y}';`),r==="class"?m||v?w+=`c.add(${g})`:w+="null":v&&(w+=`d[s](n,${g})`),w},f=e?`!function(){${d}${p(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${pj}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${p(i?"x[e]":"e",!0)}}${u?"":"else{"+p(o,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${p(i?"x[e]":"e",!0)}}else{${p(o,!1,!1)};}${h}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var vj=e=>{switch(e){case"success":return bj;case"info":return kj;case"warning":return _j;case"error":return Sj;default:return null}},wj=Array(12).fill(0),xj=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},wj.map((r,n)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),bj=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),_j=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.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"})),kj=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),Sj=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),Ej=A.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"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),jj=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},Gd=1,Tj=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
vendor: 1,050 bytes, line 235
235{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Gd++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:r}),{...a,...e,id:s,dismissible:i,title:r}):a):this.addToast({title:r,...n,dismissible:i,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
235this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),s=r!==void 0,o,i=n.then(async l=>{if(o=["resolve",l],A.isValidElement(l))s=!1,this.create({id:r,type:"default",message:l});else if(Cj(l)&&!l.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:r,type:"error",message:u,description:d})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async l=>{if(o=["reject",l],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var l;s&&(this.dismiss(r),r=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>o[0]==="reject"?u(o[1]):l(o[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||Gd++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ct=new Tj,Nj=(e,t)=>{let r=(t==null?void 0:t.id)||Gd++;return ct.addToast({title:e,...t,id:r}),r},Cj=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Aj=Nj,Pj=()=>ct.toasts,Rj=()=>ct.getActiveToasts();Object.assign(Aj,{success:ct.success,info:ct.info,warning:ct.warning,error:ct.error,custom:ct.custom,message:ct.message,promise:ct.promise,dismiss:ct.dismiss,loading:ct.loading},{getHistory:Pj,getToasts:Rj});function Oj(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Oj(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
235left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
235:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
235--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 236`);function Wa(e){return e.label!==void 0}var Ij=3,$j="32px",Dj="16px",Bm=4e3,Mj=356,Lj=14,zj=20,Uj=200;function Kt(...e){return e.filter(Boolean).join(" ")}function Fj(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var Bj=e=>{var t,r,n,s,o,i,a,l,u,d,h;let{invert:p,toast:f,unstyled:y,interacting:m,setHeights:x,visibleToasts:v,heights:g,index:w,toasts:_,expanded:k,removeToast:S,defaultRichColors:E,closeButton:j,style:O,cancelButtonStyle:I,actionButtonStyle:B,className:M="",descriptionClassName:Y="",duration:$,position:Q,gap:U,loadingIcon:Z,expandByDefault:N,classNames:P,icons:D,closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:F}=e,[X,te]=A.useState(null),[Re,Ge]=A.useState(null),[oe,js]=A.useState(!1),[Vr,Mn]=A.useState(!1),[qr,Ts]=A.useState(!1),[Kr,wa]=A.useState(!1),[Wc,xa]=A.useState(!1),[Hc,Ho]=A.useState(0),[Ns,ip]=A.useState(0),Vo=A.useRef(f.duration||$||Bm),ap=A.useRef(null),Ln=A.useRef(null),Qb=w===0,Xb=w+1<=v,Nt=f.type,Cs=f.dismissible!==!1,e_=f.className||"",t_=f.descriptionClassName||"",ba=A.useMemo(()=>g.findIndex(q=>q.toastId===f.id)||0,[g,f.id]),r_=A.useMemo(()=>{var q;return(q=f.closeButton)!=null?q:j},[f.closeButton,j]),lp=A.useMemo(()=>f.duration||$||Bm,[f.duration,$]),Vc=A.useRef(0),As=A.useRef(0),cp=A.useRef(0),Ps=A.useRef(null),[n_,s_]=Q.split("-"),up=A.useMemo(()=>g.reduce((q,ce,ye)=>ye>=ba?q:q+ce.height,0),[g,ba]),dp=jj(),o_=f.invert||p,qc=Nt==="loading";As.current=A.useMemo(()=>ba*U+up,[ba,up]),A.useEffect(()=>{Vo.current=lp},[lp]),A.useEffect(()=>{js(!0)},[]),A.useEffect(()=>{let q=Ln.current;if(q){let ce=q.getBoundingClientRect().height;return ip(ce),x(ye=>[{toastId:f.id,height:ce,position:f.position},...ye]),()=>x(ye=>
236ye.filter(Wt=>Wt.toastId!==f.id))}},[x,f.id]),A.useLayoutEffect(()=>{if(!oe)return;let q=Ln.current,ce=q.style.height;q.style.height="auto";let ye=q.getBoundingClientRect().height;q.style.height=ce,ip(ye),x(Wt=>Wt.find(Ht=>Ht.toastId===f.id)?Wt.map(Ht=>Ht.toastId===f.id?{...Ht,height:ye}:Ht):[{toastId:f.id,height:ye,position:f.position},...Wt])},[oe,f.title,f.description,x,f.id]);let Zr=A.useCallback(()=>{Mn(!0),Ho(As.current),x(q=>q.filter(ce=>ce.toastId!==f.id)),setTimeout(()=>{S(f)},Uj)},[f,S,x,As]);A.useEffect(()=>{if(f.promise&&Nt==="loading"||f.duration===1/0||f.type==="loading")return;let q;return k||m||F&&dp?(()=>{if(cp.current<Vc.current){let ce=new Date().getTime()-Vc.current;Vo.current=Vo.current-ce}cp.current=new Date().getTime()})():Vo.current!==1/0&&(Vc.current=new Date().getTime(),q=setTimeout(()=>{var ce;(ce=f.onAutoClose)==null||ce.call(f,f),Zr()},Vo.current)),()=>clearTimeout(q)},[k,m,f,Nt,F,dp,Zr]),A.useEffect(()=>{f.delete&&Zr()},[Zr,f.delete]);function i_(){var q,ce,ye;return D!=null&&D.loading?A.createElement("div",{className:Kt(P==null?void 0:P.loader,(q=f==null?void 0:f.classNames)==null?void 0:q.loader,"sonner-loader"),"data-visible":Nt==="loading"},D.loading):Z?A.createElement("div",{className:Kt(P==null?void 0:P.loader,(ce=f==null?void 0:f.classNames)==null?void 0:ce.loader,"sonner-loader"),"data-visible":Nt==="loading"},Z):A.createElement(xj,{className:Kt(P==null?void 0:P.loader,(ye=f==null?void 0:f.classNames)==null?void 0:ye.loader),visible:Nt==="loading"})}return A.createElement("li",{tabIndex:0,ref:Ln,className:Kt(M,e_,P==null?void 0:P.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[Nt],(r=f==null?void 0:f.classNames)==null?void 0:r[Nt]),"data-sonner-toast":"","data-rich-colors":(n=f.richColors)!=null?n:E,"data-styled":!(f.jsx||f.unstyled||y),"data-mounted":oe,"data-promise":!!f.promise,"data-swiped":Wc,"data-removed":Vr,"data-visible":Xb,"data-y-position":n_,"data-x-position":s_,"data-index":w,"data-front":Qb,"data-swiping":qr,"data-dismissible":Cs,"data-type":Nt,"data-invert":o_,"data-swipe-out":Kr,"data-swipe-direction":Re,"data-expanded":!!(k||N&&oe),style:{"--index":w,"--toasts-before":w,"--z-index":_.length-w,"--offset":`${Vr?Hc:As.current}px`,"--initial-height":N?"auto":`${Ns}px`,...O,...f.style},onDragEnd:()=>{Ts(!1),te(null),Ps.current=null},onPointerDown:q=>{qc||!Cs||(ap.current=new Date,Ho(As.current),q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(Ts(!0),Ps.current={x:q.clientX,y:q.clientY}))},onPointerUp:()=>{var q,ce,ye,Wt;if(Kr||!Cs)return;Ps.current=null;let Ht=Number(((q=Ln.current)==null?void 0:q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Gr=Number(((ce=Ln.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),zn=new Date().getTime()-((ye=ap.current)==null?void 0:ye.getTime()),Vt=X==="x"?Ht:Gr,Jr=Math.abs(Vt)/zn;if(Math.abs(Vt)>=zj||Jr>.11){Ho(As.current),(Wt=f.onDismiss)==null||Wt.call(f,f),Ge(X==="x"?Ht>0?"right":"left":Gr>0?"down":"up"),Zr(),wa(!0),xa(!1);return}Ts(!1),te(null)},onPointerMove:q=>{var ce,ye,Wt,Ht;if(!Ps.current||!Cs||((ce=window.getSelection())==null?void 0:ce.toString().length)>0)return;let Gr=q.clientY-Ps.current.y,zn=q.clientX-Ps.current.x,Vt=(ye=e.swipeDirections)!=null?ye:Fj(Q);!X&&(Math.abs(zn)>1||Math.abs(Gr)>1)&&te(Math.abs(zn)>Math.abs(Gr)?"x":"y");let Jr={x:0,y:0};X==="y"?(Vt.includes("top")||Vt.includes("bottom"))&&(Vt.includes("top")&&Gr<0||Vt.includes("bottom")&&Gr>0)&&(Jr.y=Gr):X==="x"&&(Vt.includes("left")||Vt.includes("right"))&&(Vt.includes("left")&&zn<0||Vt.includes("right")&&zn>0)&&(Jr.x=zn),(Math.abs(Jr.x)>0||Math.abs(Jr.y)>0)&&xa(!0),(Wt=Ln.current)==null||Wt.style.setProperty("--swipe-amount-x",`${Jr.x}px`),(Ht=Ln.current)==null||Ht.style.setProperty("--swipe-amount-y",`${Jr.y}px`)}},r_&&!f.jsx?A.createElement("button",{"aria-label":G,"data-disabled":qc,"data-close-button":!0,onClick:qc||!Cs?()=>{}:()=>{var q;Zr(),(q=f.onDismiss)==null||q.call(f,f)},className:Kt(P==null?void 0:P.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(o=D==null?void 0:D.close)!=null?o:Ej):null,f.jsx||b.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:A.createElement(A.Fragment,null,Nt||f.icon||f.promise?A.createElement("div",{"data-icon":"",className:Kt(P==null?void 0:P.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||i_():null,f.type!=="loading"?f.icon||(D==null?void 0:D[Nt])||vj(Nt):null):null,A.createElement("div",{"data-content":"",className:Kt(P==null?void 0:P.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},A.createElement("div",{"data-title":"",className:Kt(P==null?void 0:P.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?A.createElement("div",{"data-description":"",className:Kt(Y,t_,P==null?void 0:P.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),b.isValidElement(f.cancel)?f.cancel:f.cancel&&Wa(f.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||I,onClick:q=>{var ce,ye;Wa(f.cancel)&&Cs&&((ye=(ce=f.cancel).onClick)==null||ye.call(ce,q),Zr())},className:Kt(P==null?void 0:P.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,b.isValidElement(f.action)?f.action:f.action&&Wa(f.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||B,onClick:q=>{var ce,ye;Wa(f.action)&&((ye=(ce=f.action).onClick)==null||ye.call(ce,q),!q.defaultPrevented&&Zr())},className:Kt(P==null?void 0:P.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function Wm(){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 Wj(e,t){let r={};return[e,t].forEach((n,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",a=o?Dj:$j;function l(u){["top","right","bottom","left"].forEach(d=>{r[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${i}-${u}`]=a:r[`${i}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):l(a)}),r}var Hj=b.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:h,duration:p,style:f,visibleToasts:y=Ij,toastOptions:m,dir:x=Wm(),gap:v=Lj,loadingIcon:g,icons:w,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:k}=e,[S,E]=A.useState([]),j=A.useMemo(()=>Array.from(new Set([n].concat(S.filter(F=>F.position).map(F=>F.position)))),[S,n]),[O,I]=A.useState([]),[B,M]=A.useState(!1),[Y,$]=A.useState(!1),[Q,U]=A.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
236k":"light"),Z=A.useRef(null),N=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=A.useRef(null),D=A.useRef(!1),G=A.useCallback(F=>{E(X=>{var te;return(te=X.find(Re=>Re.id===F.id))!=null&&te.delete||ct.dismiss(F.id),X.filter(({id:Re})=>Re!==F.id)})},[]);return A.useEffect(()=>ct.subscribe(F=>{if(F.dismiss){E(X=>X.map(te=>te.id===F.id?{...te,delete:!0}:te));return}setTimeout(()=>{Dw.flushSync(()=>{E(X=>{let te=X.findIndex(Re=>Re.id===F.id);return te!==-1?[...X.slice(0,te),{...X[te],...F},...X.slice(te+1)]:[F,...X]})})})}),[]),A.useEffect(()=>{if(d!=="system"){U(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:X})=>{U(X?"dark":"light")})}catch{F.addListener(({matches:te})=>{try{U(te?"dark":"light")}catch(Re){console.error(Re)}})}},[d]),A.useEffect(()=>{S.length<=1&&M(!1)},[S]),A.useEffect(()=>{let F=X=>{var te,Re;s.every(Ge=>X[Ge]||X.code===Ge)&&(M(!0),(te=Z.current)==null||te.focus()),X.code==="Escape"&&(document.activeElement===Z.current||(Re=Z.current)!=null&&Re.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[s]),A.useEffect(()=>{if(Z.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,D.current=!1)}},[Z.current]),A.createElement("section",{ref:t,"aria-label":`${_} ${N}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((F,X)=>{var te;let[Re,Ge]=F.split("-");return S.length?A.createElement("ol",{key:F,dir:x==="auto"?Wm():x,tabIndex:-1,ref:Z,className:a,"data-sonner-toaster":!0,"data-theme":Q,"data-y-position":Re,"data-lifted":B&&S.length>1&&!o,"data-x-position":Ge,style:{"--front-toast-height":`${((te=O[0])==null?void 0:te.height)||0}px`,"--width":`${Mj}px`,"--gap":`${v}px`,...f,...Wj(l,u)},onBlur:oe=>{D.current&&!oe.currentTarget.contains(oe.relatedTarget)&&(D.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||D.current||(D.current=!0,P.current=oe.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{Y||M(!1)},onDragEnd:()=>M(!1),onPointerDown:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},S.filter(oe=>!oe.position&&X===0||oe.position===F).map((oe,js)=>{var Vr,Mn;return A.createElement(Bj,{key:oe.id,icons:w,index:js,toast:oe,defaultRichColors:h,duration:(Vr=m==null?void 0:m.duration)!=null?Vr:p,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:r,visibleToasts:y,closeButton:(Mn=m==null?void 0:m.closeButton)!=null?Mn:i,interacting:Y,position:F,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:G,toasts:S.filter(qr=>qr.position==oe.position),heights:O.filter(qr=>qr.position==oe.position),setHeights:I,expandByDefault:o,gap:v,loadingIcon:g,expanded:B,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const Vj=({...e})=>{const{theme:t="system"}=yj();return c.jsx(Hj,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var qj=Rh[" useId ".trim().toString()]||(()=>{}),Kj=0;function O0(e){const[t,r]=b.useState(qj());return Ur(()=>{e||r(n=>n??String(Kj++))},[e]),e||(t?`radix-${t}`:"")}const Zj=["top","right","bottom","left"],An=Math.min,wt=Math.max,Bl=Math.round,Ha=Math.floor,wr=e=>({x:e,y:e}
vendor: 26,191 bytes, line 236
236),Gj={left:"right",right:"left",bottom:"top",top:"bottom"},Jj={start:"end",end:"start"};function Jd(e,t,r){return wt(e,An(t,r))}function Fr(e,t){return typeof e=="function"?e(t):e}function Br(e){return e.split("-")[0]}function zo(e){return e.split("-")[1]}function Rf(e){return e==="x"?"y":"x"}function Of(e){return e==="y"?"height":"width"}const Yj=new Set(["top","bottom"]);function gr(e){return Yj.has(Br(e))?"y":"x"}function If(e){return Rf(gr(e))}function Qj(e,t,r){r===void 0&&(r=!1);const n=zo(e),s=If(e),o=Of(s);let i=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Wl(i)),[i,Wl(i)]}function Xj(e){const t=Wl(e);return[Yd(e),t,Yd(t)]}function Yd(e){return e.replace(/start|end/g,t=>Jj[t])}const Hm=["left","right"],Vm=["right","left"],eT=["top","bottom"],tT=["bottom","top"];function rT(e,t,r){switch(e){case"top":case"bottom":return r?t?Vm:Hm:t?Hm:Vm;case"left":case"right":return t?eT:tT;default:return[]}}function nT(e,t,r,n){const s=zo(e);let o=rT(Br(e),r==="start",n);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Yd)))),o}function Wl(e){return e.replace(/left|right|bottom|top/g,t=>Gj[t])}function sT(e){return{top:0,right:0,bottom:0,left:0,...e}}function I0(e){return typeof e!="number"?sT(e):{top:e,right:e,bottom:e,left:e}}function Hl(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function qm(e,t,r){let{reference:n,floating:s}=e;const o=gr(t),i=If(t),a=Of(i),l=Br(t),u=o==="y",d=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2;let f;switch(l){case"top":f={x:d,y:n.y-s.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-s.width,y:h};break;default:f={x:n.x,y:n.y}}switch(zo(t)){case"start":f[i]-=p*(r&&u?-1:1);break;case"end":f[i]+=p*(r&&u?-1:1);break}return f}const oT=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:o=[],platform:i}=r,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=qm(u,n,l),p=n,f={},y=0;for(let m=0;m<a.length;m++){const{name:x,fn:v}=a[m],{x:g,y:w,data:_,reset:k}=await v({x:d,y:h,initialPlacement:n,placement:p,strategy:s,middlewareData:f,rects:u,platform:i,elements:{reference:e,floating:t}});d=g??d,h=w??h,f={...f,[x]:{...f[x],..._}},k&&y<=50&&(y++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:d,y:h}=qm(u,p,l)),m=-1)}return{x:d,y:h,placement:p,strategy:s,middlewareData:f}};async function Wi(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=Fr(t,e),y=I0(f),x=a[p?h==="floating"?"reference":"floating":h],v=Hl(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),g=h==="floating"?{x:n,y:s,width:i.floating.width,height:i.floating.height}:i.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Hl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:l}):g);return{top:(v.top-k.top+y.top)/_.y,bottom:(k.bottom-v.bottom+y.bottom)/_.y,left:(v.left-k.left+y.left)/_.x,right:(k.right-v.right+y.right)/_.x}}const iT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=Fr(e,t)||{};if(u==null)return{};const h=I0(d),p={x:r,y:n},f=If(s),y=Of(f),m=await i.getDimensions(u),x=f==="y",v=x?"top":"left",g=x?"bottom":"right",w=x?"clientHeight":"clientWidth",_=o.reference[y]+o.reference[f]-p[f]-o.floating[y],k=p[f]-o.reference[f],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=S?S[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(S)))&&(E=a.floating[w]||o.floating[y]);const j=_/2-k/2,O=E/2-m[y]/2-1,I=An(h[v],O),B=An(h[g],O),M=I,Y=E-m[y]-B,$=E/2-m[y]/2+j,Q=Jd(M,$,Y),U=!l.arrow&&zo(s)!=null&&$!==Q&&o.reference[y]/2-($<M?I:B)-m[y]/2<0,Z=U?$<M?$-M:$-Y:0;return{[f]:p[f]+Z,data:{[f]:Q,centerOffset:$-Q-Z,...U&&{alignmentOffset:Z}},reset:U}}}),aT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:m=!0,...x}=Fr(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const v=Br(s),g=gr(a),w=Br(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=p||(w||!m?[Wl(a)]:Xj(a)),S=y!=="none";!p&&S&&k.push(...nT(a,m,y,_));const E=[a,...k],j=await Wi(t,x),O=[];let I=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&O.push(j[v]),h){const $=Qj(s,i,_);O.push(j[$[0]],j[$[1]])}if(I=[...I,{placement:s,overflows:O}],!O.every($=>$<=0)){var B,M;const $=(((B=o.flip)==null?void 0:B.index)||0)+1,Q=E[$];if(Q&&(!(h==="alignment"?g!==gr(Q):!1)||I.every(N=>N.overflows[0]>0&&gr(N.placement)===g)))return{data:{index:$,overflows:I},reset:{placement:Q}};let U=(M=I.filter(Z=>Z.overflows[0]<=0).sort((Z,N)=>Z.overflows[1]-N.overflows[1])[0])==null?void 0:M.placement;if(!U)switch(f){case"bestFit":{var Y;const Z=(Y=I.filter(N=>{if(S){const P=gr(N.placement);return P===g||P==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(P=>P>0).reduce((P,D)=>P+D,0)]).sort((N,P)=>N[1]-P[1])[0])==null?void 0:Y[0];Z&&(U=Z);break}case"initialPlacement":U=a;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function Km(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zm(e){return Zj.some(t=>e[t]>=0)}const lT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=Fr(e,t);switch(n){case"referenceHidden":{const o=await Wi(t,{...s,elementContext:"reference"}),i=Km(o,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Zm(i)}}}case"escaped":{const o=await Wi(t,{...s,altBoundary:!0}),i=Km(o,r.floating);return{data:{escapedOffsets:i,escaped:Zm(i)}}}default:return{}}}}},$0=new Set(["left","top"]);async function cT(e,t){const{placement:r,platform:n,elements:s}=e,o=await(n.isRTL==null?void 0:n.isRTL(s.floating)),i=Br(r),a=zo(r),l=gr(r)==="y",u=$0.has(i)?-1:1,d=o&&l?-1:1,h=Fr(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof y=="number"&&(f=a==="end"?y*-1:y),l?{x:f*d,y:p*u}:{x:p*u,y:f*d}}const uT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await cT(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},dT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:x=>{let{x:v,y:g}=x;return{x:v,y:g}}},...l}=Fr(e,t),u={x:r,y:n},d=await Wi(t,l),h=gr(Br(s)),p=Rf(h);let f=u[p],y=u[h];if(o){const x=p==="y"?"top":"left",v=p==="y"?"bottom":"right",g=f+d[x],w=f-d[v];f=Jd(g,f,w)}if(i){const x=h==="y"?"top":"left",v=h==="y"?"bottom":"right",g=y+d[x],w=y-d[v];y=Jd(g,y,w)}const m=a.fn({...t,[p]:f,[h]:y});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[p]:o,[h]:i}}}}}},hT=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Fr(e,t),d={x:r,y:n},h=gr(s),p=Rf(h);let f=d[p],y=d[h];const m=Fr(a,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=p==="y"?"height":"width",_=o.reference[p]-o.floating[w]+x.mainAxis,k=o.reference[p]+o.reference[w]-x.mainAxis;f<_?f=_:f>k&&(f=k)}if(u){var v,g;const w=p==="y"?"width":"height",_=$0.has(Br(s)),k=o.reference[h]-o.floating[w]+(_&&((v=i.offset)==null?void 0:v[h])||0)+(_?0:x.crossAxis),S=o.reference[h]+o.reference[w]+(_?0:((g=i.offset)==null?void 0:g[h])||0)-(_?x.crossAxis:0);y<k?y=k:y>S&&(y=S)}return{[p]:f,[h]:y}}}},fT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...u}=Fr(e,t),d=await Wi(t,u),h=Br(s),p=zo(s),f=gr(s)==="y",{width:y,height:m}=o.floating;let x,v;h==="top"||h==="bottom"?(x=h,v=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=h,x=p==="end"?"top":"bottom");const g=m-d.top-d.bottom,w=y-d.left-d.right,_=An(m-d[x],g),k=An(y-d[v],w),S=!t.middlewareData.shift;let E=_,j=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=g),S&&!p){const I=wt(d.left,0),B=wt(d.right,0),M=wt(d.top,0),Y=wt(d.bottom,0);f?j=y-2*(I!==0||B!==0?I+B:wt(d.left,d.right)):E=m-2*(M!==0||Y!==0?M+Y:wt(d.top,d.bottom))}await l({...t,availableWidth:j,availableHeight:E});const O=await i.getDimensions(a.floating);return y!==O.width||m!==O.height?{reset:{rects:!0}}:{}}}};function Sc(){return typeof window<"u"}function Uo(e){return D0(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function br(e){var t;return(t=(D0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function D0(e){return Sc()?e instanceof Node||e instanceof St(e).Node:!1}function ar(e){return Sc()?e instanceof Element||e instanceof St(e).Element:!1}function xr(e){return Sc()?e instanceof HTMLElement||e instanceof St(e).HTMLElement:!1}function Gm(e){return!Sc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}const pT=new Set(["inline","contents"]);function ma(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!pT.has(s)}const mT=new Set(["table","td","th"]);function gT(e){return mT.has(Uo(e))}const yT=[":popover-open",":modal"];function Ec(e){return yT.some(t=>{try{return e.matches(t)}catch{return!1}})}const vT=["transform","translate","scale","rotate","perspective"],wT=["transform","translate","scale","rotate","perspective","filter"],xT=["paint","layout","strict","content"];function $f(e){const t=Df(),r=ar(e)?lr(e):e;return vT.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||wT.some(n=>(r.willChange||"").includes(n))||xT.some(n=>(r.contain||"").includes(n))}function bT(e){let t=Pn(e);for(;xr(t)&&!Ro(t);){if($f(t))return t;if(Ec(t))return null;t=Pn(t)}return null}function Df(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const _T=new Set(["html","body","#document"]);function Ro(e){return _T.has(Uo(e))}function lr(e){return St(e).getComputedStyle(e)}function jc(e){return ar(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pn(e){if(Uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gm(e)&&e.host||br(e);return Gm(t)?t.host:t}function M0(e){const t=Pn(e);return Ro(t)?e.ownerDocument?e.ownerDocument.body:e.body:xr(t)&&ma(t)?t:M0(t)}function Hi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=M0(e),o=s===((n=e.ownerDocument)==null?void 0:n.body),i=St(s);if(o){const a=Qd(i);return t.concat(i,i.visualViewport||[],ma(s)?s:[],a&&r?Hi(a):[])}return t.concat(s,Hi(s,[],r))}function Qd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function L0(e){const t=lr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=xr(e),o=s?e.offsetWidth:r,i=s?e.offsetHeight:n,a=Bl(r)!==o||Bl(n)!==i;return a&&(r=o,n=i),{width:r,height:n,$:a}}function Mf(e){return ar(e)?e:e.contextElement}function po(e){const t=Mf(e);if(!xr(t))return wr(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:o}=L0(t);let i=(o?Bl(r.width):r.width)/n,a=(o?Bl(r.height):r.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const kT=wr(0);function z0(e){const t=St(e);return!Df()||!t.visualViewport?kT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ST(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==St(e)?!1:t}function ms(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),o=Mf(e);let i=wr(1);t&&(n?ar(n)&&(i=po(n)):i=po(e));const a=ST(o,r,n)?z0(o):wr(0);let l=(s.left+a.x)/i.x,u=(s.top+a.y)/i.y,d=s.width/i.x,h=s.height/i.y;if(o){const p=St(o),f=n&&ar(n)?St(n):n;let y=p,m=Qd(y);for(;m&&n&&f!==y;){const x=po(m),v=m.getBoundingClientRect(),g=lr(m),w=v.left+(m.clientLeft+parseFloat(g.paddingLeft))*x.x,_=v.top+(m.clientTop+parseFloat(g.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,h*=x.y,l+=w,u+=_,y=St(m),m=Qd(y)}}return Hl({width:d,height:h,x:l,y:u})}function Lf(e,t){const r=jc(e).scrollLeft;return t?t.left+r:ms(br(e)).left+r}function U0(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-(r?0:Lf(e,n)),o=n.top+t.scrollTop;return{x:s,y:o}}function ET(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const o=s==="fixed",i=br(n),a=t?Ec(t.floating):!1;if(n===i||a&&o)return r;let l={scrollLeft:0,scrollTop:0},u=wr(1);const d=wr(0),h=xr(n);if((h||!h&&!o)&&((Uo(n)!=="body"||ma(i))&&(l=jc(n)),xr(n))){const f=ms(n);u=po(n),d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}const p=i&&!h&&!o?U0(i,l,!0):wr(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:r.y*u.y-l.scrollTop*u.y+d.y+p.y}}function jT(e){return Array.from(e.getClientRects())}function TT(e){const t=br(e),r=jc(e),n=e.ownerDocument.body,s=wt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=wt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Lf(e);const a=-r.scrollTop;return lr(n).direction==="rtl"&&(i+=wt(t.clientWidth,n.clientWidth)-s),{width:s,height:o,x:i,y:a}}function NT(e,t){const r=St(e),n=br(e),s=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const u=Df();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}const CT=new Set(["absolute","fixed"]);function AT(e,t){const r=ms(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,o=xr(e)?po(e):wr(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,u=n*o.y;return{width:i,height:a,x:l,y:u}}function Jm(e,t,r){let n;if(t==="viewport")n=NT(e,r);else if(t==="document")n=TT(br(e));else if(ar(t))n=AT(t,r);else{const s=z0(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Hl(n)}function F0(e,t){const r=Pn(e);return r===t||!ar(r)||Ro(r)?!1:lr(r).position==="fixed"||F0(r,t)}function PT(e,t){const r=t.get(e);if(r)return r;let n=Hi(e,[],!1).filter(a=>ar(a)&&Uo(a)!=="body"),s=null;const o=lr(e).position==="fixed";let i=o?Pn(e):e;for(;ar(i)&&!Ro(i);){const a=lr(i),l=$f(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&CT.has(s.position)||ma(i)&&!l&&F0(e,i))?n=n.filter(d=>d!==i):s=a,i=Pn(i)}return t.set(e,n),n}function RT(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?Ec(t)?[]:PT(t,this._c):[].concat(r),n],a=i[0],l=i.reduce((u,d)=>{const h=Jm(t,d,s);return u.top=wt(h.top,u.top),u.right=An(h.right,u.right),u.bottom=An(h.bottom,u.bottom),u.left=wt(h.left,u.left),u},Jm(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function OT(e){const{width:t,height:r}=L0(e);return{width:t,height:r}}function IT(e,t,r){const n=xr(t),s=br(t),o=r==="fixed",i=ms(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=wr(0);function u(){l.x=Lf(s)}if(n||!n&&!o)if((Uo(t)!=="body"||ma(s))&&(a=jc(t)),n){const f=ms(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&u();o&&!n&&s&&u();const d=s&&!n&&!o?U0(s,a):wr(0),h=i.left+a.scrollLeft-l.x-d.x,p=i.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:i.width,height:i.height}}function Nu(e){return lr(e).position==="static"}function Ym(e,t){if(!xr(e)||lr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return br(e)===r&&(r=r.ownerDocument.body),r}function B0(e,t){const r=St(e);if(Ec(e))return r;if(!xr(e)){let s=Pn(e);for(;s&&!Ro(s);){if(ar(s)&&!Nu(s))return s;s=Pn(s)}return r}let n=Ym(e,t);for(;n&&gT(n)&&Nu(n);)n=Ym(n,t);return n&&Ro(n)&&Nu(n)&&!$f(n)?r:n||bT(e)||r}const $T=async function(e){const t=this.getOffsetParent||B0,r=this.getDimensions,n=await r(e.floating);return{reference:IT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function DT(e){return lr(e).direction==="rtl"}const MT={convertOffsetParentRelativeRectToViewportRelativeRect:ET,getDocumentElement:br,getClippingRect:RT,getOffsetParent:B0,getElementRects:$T,getClientRects:jT,getDimensions:OT,getScale:po,isElement:ar,isRTL:DT};function W0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function LT(e,t){let r=null,n;const s=br(e);function o(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:d,top:h,width:p,height:f}=u;if(a||t(),!p||!f)return;const y=Ha(h),m=Ha(s.clientWidth-(d+p)),x=Ha(s.clientHeight-(h+f)),v=Ha(d),w={rootMargin:-y+"px "+-m+"px "+-x+"px "+-v+"px",threshold:wt(0,An(1,l))||1};let _=!0;function k(S){const E=S[0].intersectionRatio;if(E!==l){if(!_)return i();E?i(!1,E):n=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!W0(u,e.getBoundingClientRect())&&i(),_=!1}try{r=new IntersectionObserver(k,{...w,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,w)}r.observe(e)}return i(!0),o}function zT(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Mf(e),d=s||o?[...u?Hi(u):[],...Hi(t)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),o&&v.addEventListener("resize",r)});const h=u&&a?LT(u,r):null;let p=-1,f=null;i&&(f=new ResizeObserver(v=>{let[g]=v;g&&g.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),r()}),u&&!l&&f.observe(u),f.observe(t));let y,m=l?ms(e):null;l&&x();function x(){const v=ms(e);m&&!W0(m,v)&&r(),m=v,y=requestAnimationFrame(x)}return r(),()=>{var v;d.forEach(g=>{s&&g.removeEventListener("scroll",r),o&&g.removeEventListener("resize",r)}),h==null||h(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(y)}}const UT=uT,FT=dT,BT=aT,WT=fT,HT=lT,Qm=iT,VT=hT,qT=(e,t,r)=>{const n=new Map,s={platform:MT,...r},o={...s.platform,_c:n};return oT(e,t,{...s,platform:o})};var KT=typeof document<"u",ZT=function(){},gl=KT?b.useLayoutEffect:ZT;function Vl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Vl(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const o=s[n];if(!(o==="_owner"&&e.$$typeof)&&!Vl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function H0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xm(e,t){const r=H0(e);return Math.round(t*r)/r}function Cu(e){const t=b.useRef(e);return gl(()=>{t.current=e}),t}function GT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,h]=b.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=b.useState(n);Vl(p,n)||f(n);const[y,m]=b.useState(null),[x,v]=b.useState(null),g=b.useCallback(N=>{N!==S.current&&(S.current=N,m(N))},[]),w=b.useCallback(N=>{N!==E.current&&(E.current=N,v(N))},[]),_=o||y,k=i||x,S=b.useRef(null),E=b.useRef(null),j=b.useRef(d),O=l!=null,I=Cu(l),B=Cu(s),M=Cu(u),Y=b.useCallback(()=>{if(!S.current||!E.current)return;const N={placement:t,strategy:r,middleware:p};B.current&&(N.platform=B.current),qT(S.current,E.current,N).then(P=>{const D={...P,isPositioned:M.current!==!1};$.current&&!Vl(j.current,D)&&(j.current=D,ha.flushSync(()=>{h(D)}))})},[p,t,r,B,M]);gl(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,h(N=>({...N,isPositioned:!1})))},[u]);const $=b.useRef(!1);gl(()=>($.current=!0,()=>{$.current=!1}),[]),gl(()=>{if(_&&(S.current=_),k&&(E.current=k),_&&k){if(I.current)return I.current(_,k,Y);Y()}},[_,k,Y,I,O]);const Q=b.useMemo(()=>({reference:S,floating:E,setReference:g,setFloating:w}),[g,w]),U=b.useMemo(()=>({reference:_,floating:k}),[_,k]),Z=b.useMemo(()=>{const N={position:r,left:0,top:0};if(!U.floating)return N;const P=Xm(U.floating,d.x),D=Xm(U.floating,d.y);return a?{...N,transform:"translate("+P+"px, "+D+"px)",...H0(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:P,top:D}},[r,a,U.floating,d.x,d.y]);return b.useMemo(()=>({...d,update:Y,refs:Q,elements:U,floatingStyles:Z}),[d,Y,Q,U,Z])}const JT=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Qm({element:n.current,padding:s}).fn(r):{}:n?Qm({element:n,padding:s}).fn(r):{}}}},YT=(e,t)=>({...UT(e),options:[e,t]}),QT=(e,t)=>({...FT(e),options:[e,t]}),XT=(e,t)=>({...VT(e),options:[e,t]}),eN=(e,t)=>({...BT(e),options:[e,t]}),tN=(e,t)=>({...WT(e),options:[e,t]}),rN=(e,t)=>({...HT(e),options:[e,t]}),nN=(e,t)=>({...JT(e),options:[e,t]});var sN="Arrow",V0=b.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...o}=e;return c.jsx(Pe.svg,{...o,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});V0.displayName=sN;var oN=V0;function iN(e){const[t,r]=b.useState(void 0);return Ur(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;r({width:i,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var q0="Popper",[K0,Z0]=Mo(q0),[UM,G0]=K0(q0),J0="PopperAnchor",Y0=b.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,o=G0(J0,r),i=b.useRef(null),a=Ut(t,i);return b.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:c.jsx(Pe.div,{...s,ref:a})});Y0.displayName=J0;var zf="PopperContent",[aN,lN]=K0(zf),Q0=b.forwardRef((e,t)=>{var oe,js,Vr,Mn,qr,Ts;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:y,...m}=e,x=G0(zf,r),[v,g]=b.useState(null),w=Ut(t,Kr=>g(Kr)),[_,k]=b.useState(null),S=iN(_),E=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,O=n+(o!=="center"?"-"+o:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(u)?u:[u],M=B.length>0,Y={padding:I,boundary:B.filter(uN),altBoundary:M},{refs:$,floatingStyles:Q,placement:U,isPositioned:Z,middlewareData:N}=GT({strategy:"fixed",placement:O,whileElementsMounted:(...Kr)=>zT(...Kr,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[YT({mainAxis:s+j,alignmentAxis:i}),l&&QT({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?XT():void 0,...Y}),l&&eN({...Y}),tN({...Y,apply:({elements:Kr,rects:wa,availableWidth:Wc,availableHeight:xa})=>{const{width:Hc,height:Ho}=wa.reference,Ns=Kr.floating.style;Ns.setProperty("--radix-popper-available-width",`${Wc}px`),Ns.setProperty("--radix-popper-available-height",`${xa}px`),Ns.setProperty("--radix-popper-anchor-width",`${Hc}px`),Ns.setProperty("--radix-popper-anchor-height",`${Ho}px`)}}),_&&nN({element:_,padding:a}),dN({arrowWidth:E,arrowHeight:j}),p&&rN({strategy:"referenceHidden",...Y})]}),[P,D]=tx(U),G=zr(y);Ur(()=>{Z&&(G==null||G())},[Z,G]);const F=(oe=N.arrow)==null?void 0:oe.x,X=(js=N.arrow)==null?void 0:js.y,te=((Vr=N.arrow)==null?void 0:Vr.centerOffset)!==0,[Re,Ge]=b.useState();return Ur(()=>{v&&Ge(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:Z?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[(Mn=N.transformOrigin)==null?void 0:Mn.x,(qr=N.transformOrigin)==null?void 0:qr.y].join(" "),...((Ts=N.hide)==null?void 0:Ts.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(aN,{scope:r,placedSide:P,onArrowChange:k,arrowX:F,arrowY:X,shouldHideArrow:te,children:c.jsx(Pe.div,{"data-side":P,"data-align":D,...m,ref:w,style:{...m.style,animation:Z?void 0:"none"}})})})});Q0.displayName=zf;var X0="PopperArrow",cN={top:"bottom",right:"left",bottom:"top",left:"right"},ex=b.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,o=lN(X0,n),i=cN[o.placedSide];return c.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}
vendor: 5,130 bytes, line 236
236,children:c.jsx(oN,{...s,ref:r,style:{...s.style,display:"block"}})})});ex.displayName=X0;function uN(e){return e!==null}var dN=e=>({name:"transformOrigin",options:e,fn(t){var x,v,g;const{placement:r,rects:n,middlewareData:s}=t,i=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=tx(r),h={start:"0%",center:"50%",end:"100%"}[d],p=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,f=(((g=s.arrow)==null?void 0:g.y)??0)+l/2;let y="",m="";return u==="bottom"?(y=i?h:`${p}px`,m=`${-l}px`):u==="top"?(y=i?h:`${p}px`,m=`${n.floating.height+l}px`):u==="right"?(y=`${-l}px`,m=i?h:`${f}px`):u==="left"&&(y=`${n.floating.width+l}px`,m=i?h:`${f}px`),{data:{x:y,y:m}}}});function tx(e){const[t,r="center"]=e.split("-");return[t,r]}var hN=Y0,fN=Q0,pN=ex,[Tc,FM]=Mo("Tooltip",[Z0]),Uf=Z0(),rx="TooltipProvider",mN=700,eg="tooltip.open",[gN,nx]=Tc(rx),sx=e=>{const{__scopeTooltip:t,delayDuration:r=mN,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:o}=e,i=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(gN,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:o})};sx.displayName=rx;var ox="Tooltip",[BM,Nc]=Tc(ox),Xd="TooltipTrigger",yN=b.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Nc(Xd,r),o=nx(Xd,r),i=Uf(r),a=b.useRef(null),l=Ut(t,a,s.onTriggerChange),u=b.useRef(!1),d=b.useRef(!1),h=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(hN,{asChild:!0,...i,children:c.jsx(Pe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:l,onPointerMove:ue(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:ue(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:ue(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ue(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:ue(e.onBlur,s.onClose),onClick:ue(e.onClick,s.onClose)})})});yN.displayName=Xd;var vN="TooltipPortal",[WM,wN]=Tc(vN,{forceMount:void 0}),Oo="TooltipContent",ix=b.forwardRef((e,t)=>{const r=wN(Oo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...o}=e,i=Nc(Oo,e.__scopeTooltip);return c.jsx(xc,{present:n||i.open,children:i.disableHoverableContent?c.jsx(ax,{side:s,...o,ref:t}):c.jsx(xN,{side:s,...o,ref:t})})}),xN=b.forwardRef((e,t)=>{const r=Nc(Oo,e.__scopeTooltip),n=nx(Oo,e.__scopeTooltip),s=b.useRef(null),o=Ut(t,s),[i,a]=b.useState(null),{trigger:l,onClose:u}=r,d=s.current,{onPointerInTransitChange:h}=n,p=b.useCallback(()=>{a(null),h(!1)},[h]),f=b.useCallback((y,m)=>{const x=y.currentTarget,v={x:y.clientX,y:y.clientY},g=EN(v,x.getBoundingClientRect()),w=jN(v,g),_=TN(m.getBoundingClientRect()),k=CN([...w,..._]);a(k),h(!0)},[h]);return b.useEffect(()=>()=>p(),[p]),b.useEffect(()=>{if(l&&d){const y=x=>f(x,d),m=x=>f(x,l);return l.addEventListener("pointerleave",y),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",m)}}},[l,d,f,p]),b.useEffect(()=>{if(i){const y=m=>{const x=m.target,v={x:m.clientX,y:m.clientY},g=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),w=!NN(v,i);g?p():w&&(p(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,d,i,u,p]),c.jsx(ax,{...e,ref:o})}),[bN,_N]=Tc(ox,{isInside:!1}),kN=wS("TooltipContent"),ax=b.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=e,l=Nc(Oo,r),u=Uf(r),{onClose:d}=l;return b.useEffect(()=>(document.addEventListener(eg,d),()=>document.removeEventListener(eg,d)),[d]),b.useEffect(()=>{if(l.trigger){const h=p=>{const f=p.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),c.jsx(Ef,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:c.jsxs(fN,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(kN,{children:n}),c.jsx(bN,{scope:r,isInside:!0,children:c.jsx(BS,{id:l.contentId,role:"tooltip",children:s||n})})]})})});ix.displayName=Oo;var lx="TooltipArrow",SN=b.forwardRef((e,t)=>
236{const{__scopeTooltip:r,...n}=e,s=Uf(r);return _N(lx,r).isInside?null:c.jsx(pN,{...s,...n,ref:t})});SN.displayName=lx;function EN(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,s,o)){case o:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function jN(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function TN(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function NN(e,t){const{x:r,y:n}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o],l=t[i],u=a.x,d=a.y,h=l.x,p=l.y;d>n!=p>n&&r<(h-u)*(n-d)/(p-d)+u&&(s=!s)}return s}function CN(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),AN(t)}function AN(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var PN=sx,cx=ix;const RN=PN,ON=b.forwardRef(({className:e,sideOffset:t=4,...r},n)=>c.jsx(cx,{ref:n,sideOffset:t,className:le("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));ON.displayName=cx.displayName;var Cc=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(){}},Ac=typeof window>"u"||"Deno"in globalThis;function Jt(){}function IN(e,t){return typeof e=="function"?e(t):e}function $N(e){return typeof e=="number"&&e>=0&&e!==1/0}function DN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function eh(e,t){return typeof e=="function"?e(t):e}function MN(e,t){return typeof e=="function"?e(t):e}function tg(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(n){if(t.queryHash!==Ff(i,t.options))return!1}else if(!qi(t.queryKey,i))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function rg(e,t){const{exact:r,status:n,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Vi(t.options.mutationKey)!==Vi(o))return!1}else if(!qi(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function Ff(e,t){return((t==null?void 0:t.queryKeyHashFn)||Vi)(e)}function Vi(e){return JSON.stringify(e,(t,r)=>th(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function qi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>qi(e[r],t[r])):!1}function ux(e,t){if(e===t)return e;const r=ng(e)&&ng(t);if(r||th(e)&&th(t)){const n=r?e:Object.keys(e),s=n.length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{},l=new Set(n);let u=0;for(let d=0;d<i;d++){const h=r?d:o[d];(!r&&l.has(h)||r)&&e[h]===void 0&&t[h]===void 0?(a[h]=void 0,u++):(a[h]=ux(e[h],t[h]),a[h]===e[h]&&e[h]!==void 0&&u++)}return s===i&&u===s?e:a}return t}function ng(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function th(e){if(!sg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!sg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function sg(e){return Object.prototype.toString.call(e)==="[object Object]"}function LN(e){return new Promise(t=>{setTimeout(t,e)})}function zN(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?ux(e,t):t}function UN(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function FN(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Bf=Symbol();function dx(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Bf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var es,cn,yo,gy,BN=(gy=class extends Cc{constructor(){super();se(this,es);se(this,cn);se(this,yo);K(this,yo,t=>{if(!Ac&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){T(this,cn)||this.setEventListener(T(this,yo))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,cn))==null||t.call(this),K(this,cn,void 0))}setEventListener(t){var r;K(this,yo,t),(r=T(this,cn))==null||r.call(this),K(this,cn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){T(this,es)!==t&&(K(this,es,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,912 bytes, line 236
236this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof T(this,es)=="boolean"?T(this,es):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},es=new WeakMap,cn=new WeakMap,yo=new WeakMap,gy),hx=new BN,vo,un,wo,yy,WN=(yy=class extends Cc{constructor(){super();se(this,vo,!0);se(this,un);se(this,wo);K(this,wo,t=>{if(!Ac&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){T(this,un)||this.setEventListener(T(this,wo))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,un))==null||t.call(this),K(this,un,void 0))}setEventListener(t){var r;K(this,wo,t),(r=T(this,un))==null||r.call(this),K(this,un,t(this.setOnline.bind(this)))}setOnline(t){T(this,vo)!==t&&(K(this,vo,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return T(this,vo)}},vo=new WeakMap,un=new WeakMap,wo=new WeakMap,yy),ql=new WN;function HN(){let e,t;const r=new Promise((s,o)=>{e=s,t=o});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function VN(e){return Math.min(1e3*2**e,3e4)}function fx(e){return(e??"online")==="online"?ql.isOnline():!0}var px=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Au(e){return e instanceof px}function mx(e){let t=!1,r=0,n=!1,s;const o=HN(),i=m=>{var x;n||(p(new px(m)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>hx.isFocused()&&(e.networkMode==="always"||ql.isOnline())&&e.canRun(),d=()=>fx(e.networkMode)&&e.canRun(),h=m=>{var x;n||(n=!0,(x=e.onSuccess)==null||x.call(e,m),s==null||s(),o.resolve(m))},p=m=>{var x;n||(n=!0,(x=e.onError)==null||x.call(e,m),s==null||s(),o.reject(m))},f=()=>new Promise(m=>{var x;s=v=>{(n||u())&&m(v)},(x=e.onPause)==null||x.call(e)}).then(()=>{var m;s=void 0,n||(m=e.onContinue)==null||m.call(e)}),y=()=>{if(n)return;let m;const x=r===0?e.initialPromise:void 0;try{m=x??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(h).catch(v=>{var S;if(n)return;const g=e.retry??(Ac?0:3),w=e.retryDelay??VN,_=typeof w=="function"?w(r,v):w,k=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,v);if(t||!k){p(v);return}r++,(S=e.onFail)==null||S.call(e,r,v),LN(_).then(()=>u()?void 0:f()).then(()=>{t?p(v):y()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?y():f().then(y),o)}}var qN=e=>setTimeout(e,0);function KN(){let e=[],t=0,r=a=>{a()},n=a=>{a()},s=qN;const o=a=>{t?e.push(a):s(()=>{r(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var ot=KN(),ts,vy,gx=(vy=class{constructor(){se(this,ts)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$N(this.gcTime)&&K(this,ts,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ac?1/0:5*60*1e3))}clearGcTimeout(){T(this,ts)&&(clearTimeout(T(this,ts)),K(this,ts,void 0))}},ts=new WeakMap,vy),xo,rs,Pt,ns,Xe,sa,ss,Qt,Er,wy,ZN=(wy=class extends gx{constructor(t){super();se(this,Qt);se(this,xo);se(this,rs);se(this,Pt);se(this,ns);se(this,Xe);se(this,sa);se(this,ss);K(this,ss,!1),K(this,sa,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,ns,t.client),K(this,Pt,T(this,ns).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,xo,JN(this.options)),this.state=t.state??T(this,xo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Xe))==null?void 0:t.promise}setOptions(t){this.options={...T(this,sa),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Pt).remove(this)}setData(t,r){const n=zN(this.state.data,t,this.options);return Je(this,Qt,Er).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Je(this,Qt,Er).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=T(this,Xe))==null?void 0:n.promise;return(s=T(this,Xe))==null||s.cancel(t),r?r.then(Jt).catch(Jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,xo))}isActive(){return this.observers.some(t=>MN(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bf||this.state.dataUpdateCount+this.state.errorUpdate
236Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>eh(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:!DN(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,Xe))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,Xe))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Pt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(T(this,Xe)&&(T(this,ss)?T(this,Xe).cancel({revert:!0}):T(this,Xe).cancelRetry()),this.scheduleGc()),T(this,Pt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Je(this,Qt,Er).call(this,{type:"invalidate"})}fetch(t,r){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(T(this,Xe))return T(this,Xe).continueRetry(),T(this,Xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const n=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(K(this,ss,!0),n.signal)})},o=()=>{const p=dx(this.options,r),y=(()=>{const m={client:T(this,ns),queryKey:this.queryKey,meta:this.meta};return s(m),m})();return K(this,ss,!1),this.options.persister?this.options.persister(p,y,this):p(y)},a=(()=>{const p={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:T(this,ns),state:this.state,fetchFn:o};return s(p),p})();(u=this.options.behavior)==null||u.onFetch(a,this),K(this,rs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Je(this,Qt,Er).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=p=>{var f,y,m,x;Au(p)&&p.silent||Je(this,Qt,Er).call(this,{type:"error",error:p}),Au(p)||((y=(f=T(this,Pt).config).onError)==null||y.call(f,p,this),(x=(m=T(this,Pt).config).onSettled)==null||x.call(m,this.state.data,p,this)),this.scheduleGc()};return K(this,Xe,mx({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:p=>{var f,y,m,x;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(v){l(v);return}(y=(f=T(this,Pt).config).onSuccess)==null||y.call(f,p,this),(x=(m=T(this,Pt).config).onSettled)==null||x.call(m,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,f)=>{Je(this,Qt,Er).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{Je(this,Qt,Er).call(this,{type:"pause"})},onContinue:()=>{Je(this,Qt,Er).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,Xe).start()}},xo=new WeakMap,rs=new WeakMap,Pt=new WeakMap,ns=new WeakMap,Xe=new WeakMap,sa=new WeakMap,ss=new WeakMap,Qt=new WeakSet,Er=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...GN(n.data,this.options),fetchMeta:t.meta??null};case"success":return K(this,rs,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Au(s)&&s.revert&&T(this,rs)?{...T(this,rs),fetchStatus:"idle"}
vendor: 4,309 bytes, line 236
236:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),ot.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),T(this,Pt).notify({query:this,type:"updated",action:t})})},wy);function GN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function JN(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var hr,xy,YN=(xy=class extends Cc{constructor(t={}){super();se(this,hr);this.config=t,K(this,hr,new Map)}build(t,r,n){const s=r.queryKey,o=r.queryHash??Ff(s,r);let i=this.get(o);return i||(i=new ZN({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){T(this,hr).has(t.queryHash)||(T(this,hr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=T(this,hr).get(t.queryHash);r&&(t.destroy(),r===t&&T(this,hr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ot.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,hr).get(t)}getAll(){return[...T(this,hr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>tg(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>tg(t,n)):r}notify(t){ot.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){ot.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ot.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},hr=new WeakMap,xy),fr,nt,os,pr,tn,by,QN=(by=class extends gx{constructor(t){super();se(this,pr);se(this,fr);se(this,nt);se(this,os);this.mutationId=t.mutationId,K(this,nt,t.mutationCache),K(this,fr,[]),this.state=t.state||XN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,fr).includes(t)||(T(this,fr).push(t),this.clearGcTimeout(),T(this,nt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,fr,T(this,fr).filter(r=>r!==t)),this.scheduleGc(),T(this,nt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,fr).length||(this.state.status==="pending"?this.scheduleGc():T(this,nt).remove(this))}continue(){var t;return((t=T(this,os))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,l,u,d,h,p,f,y,m,x,v,g,w,_,k,S,E,j;const r=()=>{Je(this,pr,tn).call(this,{type:"continue"})};K(this,os,mx({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,I)=>{Je(this,pr,tn).call(this,{type:"failed",failureCount:O,error:I})},onPause:()=>{Je(this,pr,tn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,nt).canRun(this)}));const n=this.state.status==="pending",s=!T(this,os).canStart();try{if(n)r();else{Je(this,pr,tn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(o=T(this,nt).config).onMutate)==null?void 0:i.call(o,t,this));const I=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));I!==this.state.context&&Je(this,pr,tn).call(this,{type:"pending",context:I,variables:t,isPaused:s})}const O=await T(this,os).start();return await((d=(u=T(this,nt).config).onSuccess)==null?void 0:d.call(u,O,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,O,t,this.state.context)),await((y=(f=T(this,nt).config).onSettled)==null?void 0:y.call(f,O,null,this.state.variables,this.state.context,this)),await((x=(m=this.options).onSettled)==null?void 0:x.call(m,O,null,t,this.state.context)),Je(this,pr,tn).c
236all(this,{type:"success",data:O}),O}catch(O){try{throw await((g=(v=T(this,nt).config).onError)==null?void 0:g.call(v,O,t,this.state.context,this)),await((_=(w=this.options).onError)==null?void 0:_.call(w,O,t,this.state.context)),await((S=(k=T(this,nt).config).onSettled)==null?void 0:S.call(k,void 0,O,this.state.variables,this.state.context,this)),await((j=(E=this.options).onSettled)==null?void 0:j.call(E,void 0,O,t,this.state.context)),O}finally{Je(this,pr,tn).call(this,{type:"error",error:O})}}finally{T(this,nt).runNext(this)}}},fr=new WeakMap,nt=new WeakMap,os=new WeakMap,pr=new WeakSet,tn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ot.batch(()=>{T(this,fr).forEach(n=>{n.onMutationUpdate(t)}),T(this,nt).notify({mutation:this,type:"updated",action:t})})},by);function XN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Cr,Xt,oa,_y,eC=(_y=class extends Cc{constructor(t={}){super();se(this,Cr);se(this,Xt);se(this,oa);this.config=t,K(this,Cr,new Set),K(this,Xt,new Map),K(this,oa,0)}build(t,r,n){const s=new QN({mutationCache:this,mutationId:++_a(this,oa)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){T(this,Cr).add(t);const r=Va(t);if(typeof r=="string"){const n=T(this,Xt).get(r);n?n.push(t):T(this,Xt).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,Cr).delete(t)){const r=Va(t);if(typeof r=="string"){const n=T(this,Xt).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&T(this,Xt).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Va(t);if(typeof r=="string"){const n=T(this,Xt).get(r),s=n==null?void 0:n.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=Va(t);if(typeof r=="string"){const s=(n=T(this,Xt).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ot.batch(()=>{T(this,Cr).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,Cr).clear(),T(this,Xt).clear()})}getAll(){return Array.from(T(this,Cr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>rg(r,n))}findAll(t={}){return this.getAll().filter(r=>rg(t,r))}notify(t){ot.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 4,721 bytes, line 236
236r.state.isPaused);return ot.batch(()=>Promise.all(t.map(r=>r.continue().catch(Jt))))}},Cr=new WeakMap,Xt=new WeakMap,oa=new WeakMap,_y);function Va(e){var t;return(t=e.options.scope)==null?void 0:t.id}function og(e){return{onFetch:(t,r)=>{var d,h,p,f,y;const n=t.options,s=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,o=((f=t.state.data)==null?void 0:f.pages)||[],i=((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)})},v=dx(t.options,t.fetchOptions),g=async(w,_,k)=>{if(m)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:_,direction:k?"backward":"forward",meta:t.options.meta};return x(B),B})(),j=await v(E),{maxPages:O}=t.options,I=k?FN:UN;return{pages:I(w.pages,j,O),pageParams:I(w.pageParams,_,O)}};if(s&&o.length){const w=s==="backward",_=w?tC:ig,k={pages:o,pageParams:i},S=_(n,k);a=await g(k,S,w)}else{const w=e??o.length;do{const _=l===0?i[0]??n.initialPageParam:ig(n,a);if(l>0&&_==null)break;a=await g(a,_),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},r)}:t.fetchFn=u}}}function ig(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function tC(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Ee,dn,hn,bo,_o,fn,ko,So,ky,rC=(ky=class{constructor(e={}){se(this,Ee);se(this,dn);se(this,hn);se(this,bo);se(this,_o);se(this,fn);se(this,ko);se(this,So);K(this,Ee,e.queryCache||new YN),K(this,dn,e.mutationCache||new eC),K(this,hn,e.defaultOptions||{}),K(this,bo,new Map),K(this,_o,new Map),K(this,fn,0)}mount(){_a(this,fn)._++,T(this,fn)===1&&(K(this,ko,hx.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ee).onFocus())})),K(this,So,ql.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ee).onOnline())})))}unmount(){var e,t;_a(this,fn)._--,T(this,fn)===0&&((e=T(this,ko))==null||e.call(this),K(this,ko,void 0),(t=T(this,So))==null||t.call(this),K(this,So,void 0))}isFetching(e){return T(this,Ee).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,dn).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,Ee).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=T(this,Ee).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(eh(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return T(this,Ee).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=T(this,Ee).get(n.queryHash),o=s==null?void 0:s.state.data,i=IN(t,o);if(i!==void 0)return T(this,Ee).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return ot.batch(()=>T(this,Ee).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,Ee).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=T(this,Ee);ot.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=T(this,Ee);return ot.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=ot.batch(()=>T(this,Ee).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(Jt).catch(Jt)}invalidateQueries(e,t={}){return ot.batch(()=>(T(this,Ee).findAll(e).forEach(r=>{r.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 r={...t,cancelRefetch:t.cancelRefetch??!0},n=ot.batch(()=>T(this,Ee).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,r);return r.throwOnError||(o=o.catch(Jt)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=T(this,Ee).build(this,t);return r.isStaleByTime(eh(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Jt).catch(Jt)}
236fetchInfiniteQuery(e){return e.behavior=og(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Jt).catch(Jt)}ensureInfiniteQueryData(e){return e.behavior=og(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ql.isOnline()?T(this,dn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ee)}getMutationCache(){return T(this,dn)}getDefaultOptions(){return T(this,hn)}setDefaultOptions(e){K(this,hn,e)}setQueryDefaults(e,t){T(this,bo).set(Vi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,bo).values()],r={};return t.forEach(n=>{qi(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){T(this,_o).set(Vi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,_o).values()],r={};return t.forEach(n=>{qi(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,hn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ff(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===Bf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,hn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Ee).clear(),T(this,dn).clear()}},Ee=new WeakMap,dn=new WeakMap,hn=new WeakMap,bo=new WeakMap,_o=new WeakMap,fn=new WeakMap,ko=new WeakMap,So=new WeakMap,ky),nC=b.createContext(void 0),sC=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(nC.Provider,{value:e,children:t}));/** 237 * @remix-run/router v1.23.2 238 * 239 * Copyright (c) Remix Software Inc. 240 * 241 * This source code is licensed under the MIT license found in the 242 * LICENSE.md file in the root directory of this source tree. 243 * 244 * @license MIT 245 */function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ki.apply(this,arguments)}var gn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(gn||(gn={}));const ag="popstate";function oC(e){e===void 0&&(e={});function t(n,s){let{pathname:o,search:i,hash:a}=n.location;return rh("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:Kl(s)}return aC(t,r,null,e)}function $e(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iC(){return Math.random().toString(36).substr(2,8)}function lg(e,t){return{usr:e.state,key:e.key,idx:t}}function rh(e,t,r,n){return r===void 0&&(r=null),Ki({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Fo(t):t,{state:r,key:t&&t.key||n||iC()})}function Kl(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Fo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function aC(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:o=!1}=n,i=s.history,a=gn.Pop,l=null,u=d();u==null&&(u=0,i.replaceState(Ki({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function h(){a=gn.Pop;let x=d(),v=x==null?null:x-u;u=x,l&&l({action:a,location:m.location,delta:v})}function p(x,v){a=gn.Push;let g=rh(m.location,x,v);u=d()+1;let w=lg(g,u),_=m.createHref(g);try{i.pushState(w,"",_)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(_)}o&&l&&l({action:a,location:m.location,delta:1})}function f(x,v){a=gn.Replace;let g=rh(m.location,x,v);u=d();let w=lg(g,u),_=m.createHref(g);i.replaceState(w,"",_),o&&l&&l({action:a,location:m.location,delta:0})}function y(x){let v=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof x=="str
245ing"?x:Kl(x);return g=g.replace(/ $/,"%20"),$e(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let m={get action(){return a},get location(){return e(s,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(ag,h),l=x,()=>{s.removeEventListener(ag,h),l=null}},createHref(x){return t(s,x)},createURL:y,encodeLocation(x){let v=y(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:f,go(x){return i.go(x)}};return m}var cg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cg||(cg={}));function lC(e,t,r){return r===void 0&&(r="/"),cC(e,t,r,!1)}function cC(e,t,r,n){let s=typeof t=="string"?Fo(t):t,o=Hf(s.pathname||"/",r);if(o==null)return null;let i=yx(e);uC(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=bC(o);a=wC(i[l],u,n)}return a}function yx(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&($e(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Tn([n,l.relativePath]),d=r.concat(l);o.children&&o.children.length>0&&($e(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),yx(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:yC(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of vx(o.path))s(o,i,l)}),t}function vx(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return s?[o,""]:[o];let i=vx(n.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function uC(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:vC(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const dC=/^:[\w-]+$/,hC=3,fC=2,pC=1,mC=10,gC=-2,ug=e=>e==="*";function yC(e,t){let r=e.split("/"),n=r.length;return r.some(ug)&&(n+=gC),t&&(n+=fC),r.filter(s=>!ug(s)).reduce((s,o)=>s+(dC.test(o)?hC:o===""?pC:mC),n)}function vC(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function wC(e,t,r){let{routesMeta:n}=e,s={},o="/",i=[];for(let a=0;a<n.length;++a){let l=n[a],u=a===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",h=dg({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),p=l.route;if(!h&&u&&r&&!n[n.length-1].route.index&&(h=dg({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
vendor: 4,333 bytes, lines 245-254
245Object.assign(s,h.params),i.push({params:s,pathname:Tn([o,h.pathname]),pathnameBase:jC(Tn([o,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(o=Tn([o,h.pathnameBase]))}return i}function dg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=xC(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:n.reduce((u,d,h)=>{let{paramName:p,isOptional:f}=d;if(p==="*"){let m=a[h]||"";i=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const y=a[h];return f&&!y?u[p]=void 0:u[p]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function xC(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Wf(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 n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function bC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wf(!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 Hf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const _C=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kC=e=>_C.test(e);function SC(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?Fo(e):e,o;if(r)if(kC(r))o=r;else{if(r.includes("//")){let i=r;r=r.replace(/\/\/+/g,"/"),Wf(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+r))}r.startsWith("/")?o=hg(r.substring(1),"/"):o=hg(r,t)}else o=t;return{pathname:o,search:TC(n),hash:NC(s)}}function hg(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Pu(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function EC(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function wx(e,t){let r=EC(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function xx(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=Fo(e):(s=Ki({},e),$e(!s.pathname||!s.pathname.includes("?"),Pu("?","pathname","search",s)),$e(!s.pathname||!s.pathname.includes("#"),Pu("#","pathname","hash",s)),$e(!s.search||!s.search.includes("#"),Pu("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),h-=1;s.pathname=p.join("/")}a=h>=0?t[h]:"/"}let l=SC(s,a),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Tn=e=>e.join("/").replace(/\/\/+/g,"/"),jC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function CC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const bx=["post","put","patch","delete"];new Set(bx);const AC=["get",...bx];new Set(AC);/** 246 * React Router v6.30.3 247 * 248 * Copyright (c) Remix Software Inc. 249 * 250 * This source code is licensed under the MIT license found in the 251 * LICENSE.md file in the root directory of this source tree. 252 * 253 * @license MIT 254 */function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 5,100 bytes, line 254
254for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zi.apply(this,arguments)}const Vf=b.createContext(null),PC=b.createContext(null),_s=b.createContext(null),Pc=b.createContext(null),ks=b.createContext({outlet:null,matches:[],isDataRoute:!1}),_x=b.createContext(null);function RC(e,t){let{relative:r}=t===void 0?{}:t;ga()||$e(!1);let{basename:n,navigator:s}=b.useContext(_s),{hash:o,pathname:i,search:a}=Sx(e,{relative:r}),l=i;return n!=="/"&&(l=i==="/"?n:Tn([n,i])),s.createHref({pathname:l,search:a,hash:o})}function ga(){return b.useContext(Pc)!=null}function Bo(){return ga()||$e(!1),b.useContext(Pc).location}function kx(e){b.useContext(_s).static||b.useLayoutEffect(e)}function Rc(){let{isDataRoute:e}=b.useContext(ks);return e?VC():OC()}function OC(){ga()||$e(!1);let e=b.useContext(Vf),{basename:t,future:r,navigator:n}=b.useContext(_s),{matches:s}=b.useContext(ks),{pathname:o}=Bo(),i=JSON.stringify(wx(s,r.v7_relativeSplatPath)),a=b.useRef(!1);return kx(()=>{a.current=!0}),b.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){n.go(u);return}let h=xx(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Tn([t,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[t,n,i,o,e])}function Sx(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=b.useContext(_s),{matches:s}=b.useContext(ks),{pathname:o}=Bo(),i=JSON.stringify(wx(s,n.v7_relativeSplatPath));return b.useMemo(()=>xx(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function IC(e,t){return $C(e,t)}function $C(e,t,r,n){ga()||$e(!1);let{navigator:s}=b.useContext(_s),{matches:o}=b.useContext(ks),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=Bo(),d;if(t){var h;let x=typeof t=="string"?Fo(t):t;l==="/"||(h=x.pathname)!=null&&h.startsWith(l)||$e(!1),d=x}else d=u;let p=d.pathname||"/",f=p;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=lC(e,{pathname:f}),m=UC(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Tn([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Tn([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,r,n);return t&&m?b.createElement(Pc.Provider,{value:{location:Zi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:gn.Pop}},m):m}function DC(){let e=HC(),t=CC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),r?b.createElement("pre",{style:s},r):null,null)}const MC=b.createElement(DC,null);class LC extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?b.createElement(ks.Provider,{value:this.props.routeContext},b.createElement(_x.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zC(e){let{routeContext:t,match:r,children:n}=e,s=b.useContext(Vf);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(ks.Provider,{value:t},n)}function UC(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=(s=r)==null?void 0:s.errors;if(a!=null){let d=i.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||$e(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<i.length;d++){let h=i[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:p,errors:f}=r,y=h.route.loader&&p[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||y){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,h,p)=>{let f,y=!1,m=null,x=null;r&&(f=a&&h.route.id?a[h.route.id]:void 0,m=h.route.errorElement||MC,l&&(u<0&&p===0?(y=!0,x=null):u===p&&(y=!0,x=h.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,p+1)),g=()=>{let w;return f?w=m:y?w=x:h.route.Component?w=b.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=d,b.createElement(zC,{match:h,routeC
254ontext:{outlet:d,matches:v,isDataRoute:r!=null},children:w})};return r&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?b.createElement(LC,{location:r.location,revalidation:r.revalidation,component:m,error:f,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var Ex=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ex||{}),Zl=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}(Zl||{});function FC(e){let t=b.useContext(Vf);return t||$e(!1),t}function BC(e){let t=b.useContext(PC);return t||$e(!1),t}function WC(e){let t=b.useContext(ks);return t||$e(!1),t}function jx(e){let t=WC(),r=t.matches[t.matches.length-1];return r.route.id||$e(!1),r.route.id}function HC(){var e;let t=b.useContext(_x),r=BC(Zl.UseRouteError),n=jx(Zl.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function VC(){let{router:e}=FC(Ex.UseNavigateStable),t=jx(Zl.UseNavigateStable),r=b.useRef(!1);return kx(()=>{r.current=!0}),b.useCallback(function(s,o){o===void 0&&(o={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Zi({fromRouteId:t},o)))},[e,t])}function qC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ct(e){$e(!1)}function KC(e){let{basename:t="/",children:r=null,location:n,navigationType:s=gn.Pop,navigator:o,static:i=!1,future:a}=e;ga()&&$e(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:o,static:i,future:Zi({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof n=="string"&&(n=Fo(n));let{pathname:d="/",search:h="",hash:p="",state:f=null,key:y="default"}=n,m=b.useMemo(()=>{let x=Hf(d,l);return x==null?null:{location:{pathname:x,search:h,hash:p,state:f,key:y},navigationType:s}},[l,d,h,p,f,y,s]);return m==null?null:b.createElement(_s.Provider,{value:u},b.createElement(Pc.Provider,{children:r,value:m}))}function ZC(e){let{children:t,location:r}=e;return IC(nh(t),r)}new Promise(()=>{});function nh(e,t){t===void 0&&(t=[]);let r=[];return b.Children.forEach(e,(n,s)=>{if(!b.isValidElement(n))return;let o=[...t,s];if(n.type===b.Fragment){r.push.apply(r,nh(n.props.children,o));return}n.type!==Ct&&$e(!1),!n.props.index||!n.props.children||$e(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=nh(n.props.children,o)),r.push(i)}),r}/** 255 * React Router DOM v6.30.3 256 * 257 * Copyright (c) Remix Software Inc. 258 * 259 * This source code is licensed under the MIT license found in the 260 * LICENSE.md file in the root directory of this source tree. 261 * 262 * @license MIT 263 */function sh(){return sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sh.apply(this,arguments)}function GC(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,o;for(o=0;o<n.length;o++)s=n[o],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function JC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YC(e,t){return e.button===0&&(!t||t==="_self")&&!JC(e)}function oh(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(s=>[r,s]):[[r,n]])},[]))}function QC(e,t){let r=oh(e);return t&&t.forEach((n,s)=>{r.has(s)||t.getAll(s).forEach(o=>{r.append(s,o)})}),r}const XC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],eA="6";try{window.__reactRouterVersion=eA}catch{}const tA="startTransition",fg=Rh[tA];function rA(e){let{basename:t,children:r,future:n,window:s}=e,o=b.useRef();o.current==null&&(o.current=oC({window:s,v5Compat:!0}));let i=o.current,[a,l]=b.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},d=b.useCallback(h=>{u&&fg?fg(()=>l(h)):l(h)},[l,u]);return b.useLayoutEffect(()=>
263i.listen(d),[i,d]),b.useEffect(()=>qC(n),[n]),b.createElement(KC,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:i,future:n})}const nA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ae=b.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:u,preventScrollReset:d,viewTransition:h}=t,p=GC(t,XC),{basename:f}=b.useContext(_s),y,m=!1;if(typeof u=="string"&&sA.test(u)&&(y=u,nA))try{let w=new URL(window.location.href),_=u.startsWith("//")?new URL(w.protocol+u):new URL(u),k=Hf(_.pathname,f);_.origin===w.origin&&k!=null?u=k+_.search+_.hash:m=!0}catch{}let x=RC(u,{relative:s}),v=oA(u,{replace:i,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:h});function g(w){n&&n(w),w.defaultPrevented||v(w)}return b.createElement("a",sh({},p,{href:y||x,onClick:m||o?n:g,ref:r,target:l}))});var pg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(pg||(pg={}));var mg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mg||(mg={}));function oA(e,t){let{target:r,replace:n,state:s,preventScrollReset:o,relative:i,viewTransition:a}=t===void 0?{}:t,l=Rc(),u=Bo(),d=Sx(e,{relative:i});return b.useCallback(h=>{if(YC(h,r)){h.preventDefault();let p=n!==void 0?n:Kl(u)===Kl(d);l(e,{replace:p,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[u,l,d,n,s,r,e,o,i,a])}function iA(e){let t=b.useRef(oh(e)),r=b.useRef(!1),n=Bo(),s=b.useMemo(()=>QC(n.search,r.current?null:t.current),[n.search]),o=Rc(),i=b.useCallback((a,l)=>{const u=oh(typeof a=="function"?a(s):a);r.current=!0,o("?"+u,l)},[o,s]);return[s,i]}function Oc(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function aA(e,t,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{u(n.next(d))}catch(h){i(h)}}function l(d){try{u(n.throw(d))}catch(h){i(h)}}function u(d){d.done?o(d.value):s(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}const lA=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class qf extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class cA extends qf{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class gg extends qf{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class yg extends qf{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var ih;(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"})(ih||(ih={}));class uA{constructor(t,{headers:r={},customFetch:n,region:s=ih.Any}={}){this.url=t,this.headers=r,this.region=s,this.fetch=lA(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return aA(this,arguments,void 0,function*(r,n={}){var s;let o,i;try{const{headers:a,method:l,body:u,signal:d,timeout:h}=n;let p={},{region:f}=n;f||(f=this.region);const y=new URL(`${this.url}/${r}`);f&&f!=="any"&&(p["x-region"]=f,y.searchParams.set("forceFunctionRegion",f));let m;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",m=u):typeof u=="string"?(p["Content-Type"]="text/plain",m=u):typeof FormData<"u"&&u instanceof FormData?m=u:(p["Content-Type"]="application/json",m=JSON.stringify(u)):m=u;let x=d;h&&(i=new AbortController,o=setTimeout(()=>i.abort(),h),d?(x=i.signal,d.addEventListener("abort",()=>i.abort())):x=i.signal);const v=yield this.fetch(y.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),a),body:m,signal:x}).catch(k=>{throw new cA(k)}),g=v.headers.get("x-relay-error");
263if(g&&g==="true")throw new gg(v);if(!v.ok)throw new yg(v);let w=((s=v.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return w==="application/json"?_=yield v.json():w==="application/octet-stream"||w==="application/pdf"?_=yield v.blob():w==="text/event-stream"?_=v:w==="multipart/form-data"?_=yield v.formData():_=yield v.text(),{data:_,error:null,response:v}}catch(a){return{data:null,error:a,response:a instanceof yg||a instanceof gg?a.context:void 0}}finally{o&&clearTimeout(o)}})}}var dA=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},hA=class{constructor(e){var t,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=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,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 r=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 n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{let i=null,a=null,l=null,u=o.status,d=o.statusText;if(o.ok){var h,p;if(r.method!=="HEAD"){var f;const v=await o.text();v===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((f=r.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?a=v:a=JSON.parse(v))}const m=(h=r.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),x=(p=o.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");m&&x&&x.length>1&&(l=parseInt(x[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(a)&&(a.length>1?(i={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,d="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var y;const m=await o.text();try{i=JSON.parse(m),Array.isArray(i)&&o.status===404&&(a=[],i=null,u=200,d="OK")}catch{o.status===404&&m===""?(u=204,d="No Content"):i={message:m}}if(i&&r.isMaybeSingle&&(!(i==null||(y=i.details)===null||y===void 0)&&y.includes("0 rows"))&&(i=null,u=200,d="OK"),i&&r.shouldThrowOnError)throw new dA(i)}return{error:i,data:a,count:l,status:u,statusText:d}});return this.shouldThrowOnError||(s=s.catch(o=>{var i;let a="";const l=o==null?void 0:o.cause;if(l){var u,d,h,p;const y=(u=l==null?void 0:l.message)!==null&&u!==void 0?u:"",m=(d=l==null?void 0:l.code)!==null&&d!==void 0?d:"";a=`${(h=o==null?void 0:o.name)!==null&&h!==void 0?h:"FetchError"}: ${o==null?void 0:o.message}`,a+=` 264 265Caused by: ${(p=l==null?void 0:l.name)!==null&&p!==void 0?p:"Error"}: ${y}`,m&&(a+=` (${m})`),l!=null&&l.stack&&(a+=` 266${l.stack}`)}else{var f;a=(f=o==null?void 0:o.stack)!==null&&f!==void 0?f:""}return{error:{message:`${(i=o==null?void 0:o.name)!==null&&i!==void 0?i:"FetchError"}: ${o==null?void 0:o.message}`,details:a,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},fA=class extends hA{select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:s=n}={}){const o=s?`${s}.order`:"order",i=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${i?`${i},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const s=typeof n>"u"?"offset":`${n}.offset`,o=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(o,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
266explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:s=!1,format:o="text"}={}){var i;const a=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(i=this.headers.get("Accept"))!==null&&i!==void 0?i:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${l}"; options=${a};`),o==="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 vg=new RegExp("[,()]");var Fs=class extends fA{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 r=Array.from(new Set(t)).map(n=>typeof n=="string"&&vg.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&vg.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),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:r,type:n}={}){let s="";n==="plain"?s="pl":n==="phrase"?s="ph":n==="websearch"&&(s="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${s}fts${o}.${t}`),this}match(e){return Object.entries(e).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},pA=class{constructor(e,{headers:t={},schema:r,fetch:n}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n}select(e,t){const{head:r=!1,count:n}=t??{},s=r?"HEAD":"GET";let o=!1;const i=(e??"*").split("").map(a=>/\s/.test(a)&&!o?"":(a==='"'&&(o=!o),a)).join("");return this.url.searchParams.set("select",i),n&&this.headers.append("Prefer",`count=${n}`),new Fs({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const s="POST";if(t&&this.headers.append("Prefer",`count=${t}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const o=e.reduce((i,a)=>i.concat(Object.keys(a)),[]);if(o.length>0){const i=[...new Set(o)].map(a=>`"${a}"`);this.url.searchParams.set("columns",i.join(","))}}return new Fs({method:s,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:s=!0}={}){var o;const i="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&this.url.searchParams.set("on_conflict",t),n&&this.headers.append("Prefer",`count=${n}`),s||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
2660){const l=[...new Set(a)].map(u=>`"${u}"`);this.url.searchParams.set("columns",l.join(","))}}return new Fs({method:i,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(e,{count:t}={}){var r;const n="PATCH";return t&&this.headers.append("Prefer",`count=${t}`),new Fs({method:n,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:e}={}){var t;const r="DELETE";return e&&this.headers.append("Prefer",`count=${e}`),new Fs({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},mA=class Tx{constructor(t,{headers:r={},schema:n,fetch:s}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.fetch=s}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new pA(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Tx(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,r={},{head:n=!1,get:s=!1,count:o}={}){var i;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;n||s?(a=n?"HEAD":"GET",Object.entries(r).filter(([h,p])=>p!==void 0).map(([h,p])=>[h,Array.isArray(p)?`{${p.join(",")}}`:`${p}`]).forEach(([h,p])=>{l.searchParams.append(h,p)})):(a="POST",u=r);const d=new Headers(this.headers);return o&&d.set("Prefer",`count=${o}`),new Fs({method:a,url:l,headers:d,schema:this.schemaName,body:u,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};class gA{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."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const n=r.node,s=parseInt(n.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: 267import ws from "ws" 268new 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 r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 269 270Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const yA="2.89.0",vA=`realtime-js/${yA}`,Nx="1.0.0",wA="2.0.0",wg=Nx,ah=1e4,xA=1e3,bA=100;var sn;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(sn||(sn={}));var De;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(De||(De={}));var tr;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(tr||(tr={}));var lh;(function(e){e.websocket="websocket"})(lh||(lh={}));var Kn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Kn||(Kn={}));class _A{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,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},i=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,i)}_encodeUserBroadcastPush(t,r,n){var s,o;const i=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(o=t.join_ref)!==null&&o!==void 0?o:"",u=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);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(i.length>255)throw new Error(`topic length ${i.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+i.length+u.length+h.length,f=new ArrayBuffer(this.HEADER_LENGTH+p);let y=new DataView(f),m=0;y.setUint8(m++,this.KINDS.userBroadcastPush),y.setUint8(m++,l.length),y.setUint8(m++,a.length),y.setUint8(m++,i.length),y.setUint8(m++,u.length),y.setUint8(m++,h.length),y.setUint8(m++,r),Array.from(l,v=>y.setUint8(m++,v.charCodeAt(0))),Array.from(a,v=>y.setUint8(m++,v.charCodeAt(0))),Array.from(i,v=>y.setUint8(m++,v.charCodeAt(0))),Array.from(u,v=>y.setUint8(m++,v.charCodeAt(0))),Array.from(h,v=>y.setUint8(m++,v.charCodeAt(0)));var x=new Uint8Array(f.byteLength+n.byteLength);return x.set(new Uint8Array(f),0),x.set(new Uint8Array(n),f.byteLength),x.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[s,o,i,a,l]=n;return r({join_ref:s,ref:o,topic:i,event:a,payload:l})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,s)}}_decodeUserBroadcast(t,r,n){const s=r.getUint8(1),o=r.getUint8(2),i=r.getUint8(3),a=r.getUint8(4);let l=this.HEADER_LENGTH+4;const u=n.decode(t.slice(l,l+s));l=l+s;
270const d=n.decode(t.slice(l,l+o));l=l+o;const h=n.decode(t.slice(l,l+i));l=l+i;const p=t.slice(l,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(n.decode(p)):p,y={type:this.BROADCAST_EVENT,event:d,payload:f};return i>0&&(y.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:y}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}class Cx{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var he;(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"})(he||(he={}));const xg=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((o,i)=>(o[i]=kA(i,e,t,s),o),{}):{}},kA=(e,t,r,n)=>{const s=t.find(a=>a.name===e),o=s==null?void 0:s.type,i=r[e];return o&&!n.includes(o)?Ax(o,i):ch(i)},Ax=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return TA(t,r)}switch(e){case he.bool:return SA(t);case he.float4:case he.float8:case he.int2:case he.int4:case he.int8:case he.numeric:case he.oid:return EA(t);case he.json:case he.jsonb:return jA(t);case he.timestamp:return NA(t);case he.abstime:case he.date:case he.daterange:case he.int4range:case he.int8range:case he.money:case he.reltime:case he.text:case he.time:case he.timestamptz:case he.timetz:case he.tsrange:case he.tstzrange:return ch(t);default:return ch(t)}},ch=e=>e,SA=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},EA=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},jA=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},TA=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let o;const i=e.slice(1,r);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>Ax(t,a))}return e},NA=e=>typeof e=="string"?e.replace(" ","T"):e,Px=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class Ru{constructor(t,r,n={},s=ah){this.channel=t,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}
270_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var bg;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(bg||(bg={}));class ki{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ki.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=ki.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=ki.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,s){const o=this.cloneDeep(t),i=this.transformState(r),a={},l={};return this.map(o,(u,d)=>{i[u]||(l[u]=d)}),this.map(i,(u,d)=>{const h=o[u];if(h){const p=d.map(x=>x.presence_ref),f=h.map(x=>x.presence_ref),y=d.filter(x=>f.indexOf(x.presence_ref)<0),m=h.filter(x=>p.indexOf(x.presence_ref)<0);y.length>0&&(a[u]=y),m.length>0&&(l[u]=m)}else a[u]=d}),this.syncDiff(o,{joins:a,leaves:l},n,s)}static syncDiff(t,r,n,s){const{joins:o,leaves:i}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(o,(a,l)=>{var u;const d=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),d.length>0){const h=t[a].map(f=>f.presence_ref),p=d.filter(f=>h.indexOf(f.presence_ref)<0);t[a].unshift(...p)}n(a,d,l)}),this.map(i,(a,l)=>{let u=t[a];if(!u)return;const d=l.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),t[a]=u,s(a,u,l),u.length===0&&delete t[a]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const s=t[n];return"metas"in s?r[n]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):r[n]=s,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var _g;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(_g||(_g={}));var Si;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Si||(Si={}));var Tr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Tr||(Tr={}));class ro{constructor(t,r={config:{}},n){var s,o;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=De.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new Ru(this,tr.join,this.params,this.timeout),this.rejoinTimer=new Cx(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=De.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=De.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=De.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=De.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=De.errored,this.rejoinTimer.scheduleTimeout())}),this._on(tr.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new ki(this),this.broadcastEndpointURL=Px(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((o=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||o===void 0)&&o.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,s,o;if(this.socket.isConnected()||this.socket.connect(),this.state==De.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,u=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(f=>f.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Si.PRESENCE]&&this.bindings[Si.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,h={},p={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(Tr.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(Tr.CLOSED)),this.updateJoinPayload(Object.assign({config:p},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:f})=>{var y;if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(Tr.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,x=(y=m==null?void 0:m.length)!==null&&y!==void 0?y:0,v=[];for(let g=0;g<x;g++){const w=m[g],{filter:{event:_,schema:k,table:S,filter:E}}=w,j=f&&f[g];if(j&&j.event===_&&ro.isFilterValueEqual(j.schema,k)&&ro.isFilterValueEqual(j.table,S)&&ro.isFilterValueEqual(j.filter,E))v.push(Object.assign(Object.assign({},w),{id:j.id}));else{this.unsubscribe(),this.state=De.errored,t==null||t(Tr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(Tr.SUBSCRIBED);return}}).receive("error",f=>{this.state=De.errored,t==null||t(Tr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Tr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===De.joined&&t===Si.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,r,n)}async httpSend(t,r,n={}){var s;if(r==null)return Promise.reject("Payload is required for httpSend()");const o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const i={method:"POST",headers:o,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,i,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
270try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,r={}){var n,s;if(!this._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:o,payload:i}=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:o,payload:i,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,l;const u=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),u.receive("ok",()=>o("ok")),u.receive("error",()=>o("error")),u.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=De.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(tr.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new Ru(this,tr.leave,{},t),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=De.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const s=new AbortController,o=setTimeout(()=>s.abort(),n),i=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(o),i}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Ru(this,t,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>bA){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var s,o;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:d}=tr;if(n&&[a,l,u,d].indexOf(i)>=0&&n!==this._joinRef())return;let p=this._onMessage(i,r,n);if(r&&!p)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(f=>{var y,m,x;return((y=f.filter)===null||y===void 0?void 0:y.event)==="*"||((x=(m=f.filter)===null||m===void 0?void 0:m.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===i}).map(f=>f.callback(p,n)):(o=this.bindings[i])===null||o===void 0||o.filter(f=>{var y,m,x,v,g,w;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in f){const _=f.id,k=(y=f.filter)===null||y===void 0?void 0:y.event;return _&&((m=r.ids)===null||m===void 0?void 0:m.includes(_))&&(k==="*"||(k==null?void 0:k.toLocaleLowerCase())===((x=r.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const _=(g=(v=f==null?void 0:f.filter)===null||v===void 0?void 0:v.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return _==="*"||_===((w=r==null?void 0:r.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===i}).map(f=>{if(typeof p=="object"&&"ids"in p){const y=p.data,{schema:m,table:x,commit_timestamp:v,type:g,errors:w}=y;p=Object.assign(Object.assign({},{schema:m,table:x,commit_timestamp:v,eventType:g,new:{},old:{},errors:w}),this._getPayloadRecords(y))}f.callback(p,n)})}_isClosed(){return this.state===De.closed}_isJoined(){return this.state===De.joined}_isJoining(){return this.state===De.joining}_isLeaving(){return this.state===De.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const s=t.toLocaleLowerCase(),o={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===n&&ro.isEqual(s.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(tr.close,{},t)}_onError(t){this._on(tr.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=De.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=xg(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=xg(t.columns,t.old_record)),r}}const Ou=()=>{},qa={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},CA=[1e3,2e3,5e3,1e4],AA=1e4,PA=` 271 addEventListener("message", (e) => { 272 if (e.data.event === "start") { 273 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 274 } 275 });`;class RA{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=ah,this.transport=null,this.heartbeatIntervalMs=qa.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Ou,this.ref=0,this.reconnectTimer=null,this.vsn=wg,this.logger=Ou,this.conn=null,this.sendBuffer=[],this.serializer
275=new _A,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>s?(...o)=>s(...o):(...o)=>fetch(...o),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${lh.websocket}`,this.httpEndpoint=Px(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=gA.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r} 276 277To use Realtime in Node.js, you need to provide a WebSocket implementation: 278 279Option 1: Use Node.js 22+ which has native WebSocket support 280Option 2: Install and provide the "ws" package: 281 282 npm install ws 283 284 import ws from "ws" 285 const client = new RealtimeClient(url, { 286 ...options, 287 transport: ws 288 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case sn.connecting:return Kn.Connecting;case sn.open:return Kn.Open;case sn.closing:return Kn.Closing;default:return Kn.Closed}}isConnected(){return this.connectionState()===Kn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,s=this.getChannels().find(o=>o.topic===n);if(s)return s;{const o=new ro(`realtime:${t}`,r,this);return this.channels.push(o),o}}push(t){const{topic:r,event:n,payload:s,ref:o}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(xA,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
288heduleTimeout()},qa.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:s,payload:o,ref:i}=r,a=i?`(${i})`:"",l=o.status||"";this.log("receive",`${l} ${n} ${s} ${a}`.trim(),o),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(s,o,i)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===sn.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===sn.open||this.conn.readyState===sn.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
288heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(tr.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([PA],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(s=>{const o={access_token:r,version:vA};r&&s.updateJoinPayload(o),s.joinedOnce&&s._isJoined()&&s._push(tr.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new Cx(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},qa.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,s,o,i,a,l,u,d,h,p,f;switch(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:ah,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:qa.HEARTBEAT_INTERVAL,this.worker=(o=t==null?void 0:t.worker)!==null&&o!==void 0?o:!1,this.accessToken=(i=t==null?void 0:t.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:Ou,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:wg,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:y=>CA[y-1]||AA,this.vsn){case Nx:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(y,m)=>m(JSON.stringify(y)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(y,m)=>m(JSON.parse(y));break;case wA:this.encode=(p=t==null?void 0:t.encode)!==null&&p!==void 0?p:this.serializer.encode.bind(this.serializer),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var Gi=class extends Error{constructor(e,t){var r;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)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function OA(e,t,r){const n=new URL(t,e);if(r)for(const[s,o]of Object.entries(r))o!==void 0&&n.searchParams.set(s,o);return n.toString()}async function IA(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 $A(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:s,body:o,headers:i}){const a=OA(e.baseUrl,n,s),l=await IA(e.auth),u=await t(a,{method:r,headers:{...o?{"Content-Type":"application/json"}:{},...l,...i},body:o?JSON.stringify(o):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),p=h&&d?JSON.parse(d):d;if(!u.ok){const f=h?p:void 0,y=f==null?void 0:f.error;throw new Gi((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:f})}return{status:u.status,headers:u.headers,data:p}}}}function Ka(e){return e.join("�")}var DA=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Ka(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ka(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ka(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ka(e.namespace)}`}),!0}catch(t){if(t instanceof Gi&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof Gi&&r.status===409)return;throw r}}};function Is(e){return e.join("�")}var MA=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Is(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Is(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Is(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Is(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/${Is(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/${Is(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof Gi&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof Gi&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},LA=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=$A({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new DA(this.client,t),this.tableOps=new MA(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)}
288async 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)}},Ic=class extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}};function xe(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var zA=class extends Ic{constructor(e,t,r){super(e),this.name="StorageApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},uh=class extends Ic{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}};const Kf=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),UA=()=>Response,dh=e=>{if(Array.isArray(e))return e.map(r=>dh(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[s]=dh(n)}),t},FA=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)},BA=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Ji(e){"@babel/helpers - typeof";return Ji=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},Ji(e)}function WA(e,t){if(Ji(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ji(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HA(e){var t=WA(e,"string");return Ji(t)=="symbol"?t:t+""}function VA(e,t,r){return(t=HA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kg(Object(r),!0).forEach(function(n){VA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const Iu=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)},qA=async(e,t,r)=>{e instanceof await UA()&&!(r!=null&&r.noResolveJson)?e.json().then(n=>{const s=e.status||500,o=(n==null?void 0:n.statusCode)||s+"";t(new zA(Iu(n),s,o))}).catch(n=>{t(new uh(Iu(n),n))}):t(new uh(Iu(e),e))},KA=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!n?s:(FA(n)?(s.headers=H({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,t!=null&&t.duplex&&(s.duplex=t.duplex),H(H({},s),r))};async function ya(e,t,r,n,s,o){return new Promise((i,a)=>{e(r,KA(t,n,s,o)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>qA(l,a,n))})}async function Yi(e,t,r,n){return ya(e,"GET",t,r,n)}async function Yt(e,t,r,n,s){return ya(e,"POST",t,n,s,r)}async function hh(e,t,r,n,s){return ya(e,"PUT",t,n,s,r)}async function ZA(e,t,r,n){return ya(e,"HEAD",t,H(H({},r),{},{noResolveJson:!0}),n)}async function Zf(e,t,r,n,s){return ya(e,"DELETE",t,n,s,r)}var GA=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(xe(t))return{data:null,error:t};throw t}}};let Rx;Rx=Symbol.toStringTag;var JA=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Rx]="BlobDownloadBuilder",this.promise=null}asStream(){return new GA(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(xe(t))return{data:null,error:t};throw t}}};const YA={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Sg={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var QA=class{constructor(e,t={},r,n){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.bucketId=r,this.fetch=Kf(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(e,t,r,n){var s=this;try{let o;const i=H(H({},Sg),n);let a=H(H({},s.headers),e==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&r instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",s.encodeMetadata(l)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.has("cacheControl")||o.append("cacheControl",i.cacheControl),l&&!o.has("metadata")&&o.append("metadata",s.encodeMetadata(l))):(o=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&o instanceof ReadableStream||o&&typeof o=="object"&&"pipe"in o&&typeof o.pipe=="function")&&!i.duplex&&(i.duplex="half")),n!=null&&n.headers&&(a=H(H({},a),n.headers));const u=s._removeEmptyFolders(t),d=s._getFinalPath(u),h=await(e=="PUT"?hh:Yt)(s.fetch,`${s.url}/object/${d}`,o,H({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:u,id:h.Id,fullPath:h.Key},error:null}}catch(o){if(s.shouldThrowOnError)throw o;if(xe(o))return{data:null,error:o};throw o}}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var s=this;const o=s._removeEmptyFolders(e),i=s._getFinalPath(o),a=new URL(s.url+`/object/upload/sign/${i}`);a.searchParams.set("token",t);try{let l;const u=H({upsert:Sg.upsert},n),d=H(H({},s.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType),{data:{path:o,fullPath:(await hh(s.fetch,a.toString(),l,{headers:d})).Key},error:null}}catch(l){if(s.shouldThrowOnError)throw l;if(xe(l))return{data:null,error:l};throw l}}async createSignedUploadUrl(e,t){var r=this;try{let n=r._getFinalPath(e);const s=H({},r.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const o=await Yt(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:s}),i=new URL(r.url+o.url),a=i.searchParams.get("token");if(!a)throw new Ic("No token returned by API");return{data:{signedUrl:i.toString(),path:e,token:a},error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(xe(n))return{data:null,error:n};throw n}}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;try{return{data:await Yt(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
288stinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(xe(s))return{data:null,error:s};throw s}}async copy(e,t,r){var n=this;try{return{data:{path:(await Yt(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key},error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(xe(s))return{data:null,error:s};throw s}}async createSignedUrl(e,t,r){var n=this;try{let s=n._getFinalPath(e),o=await Yt(n.fetch,`${n.url}/object/sign/${s}`,H({expiresIn:t},r!=null&&r.transform?{transform:r.transform}:{}),{headers:n.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return o={signedUrl:encodeURI(`${n.url}${o.signedURL}${i}`)},{data:o,error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(xe(s))return{data:null,error:s};throw s}}async createSignedUrls(e,t,r){var n=this;try{const s=await Yt(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(i=>H(H({},i),{},{signedUrl:i.signedURL?encodeURI(`${n.url}${i.signedURL}${o}`):null})),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(xe(s))return{data:null,error:s};throw s}}download(e,t){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",n=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=n?`?${n}`:"",o=this._getFinalPath(e),i=()=>Yi(this.fetch,`${this.url}/${r}/${o}${s}`,{headers:this.headers,noResolveJson:!0});return new JA(i,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);try{return{data:dh(await Yi(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(xe(n))return{data:null,error:n};throw n}}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await ZA(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(xe(n)&&n instanceof uh){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&n.push(s);const o=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});i!==""&&n.push(i);let a=n.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${r}${a}`)}}}async remove(e){var t=this;try{return{data:await Zf(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xe(r))return{data:null,error:r};throw r}}async list(e,t,r){var n=this;try{const s=H(H(H({},YA),t),{},{prefix:e||""});return{data:await Yt(n.fetch,`${n.url}/object/list/${n.bucketId}`,s,{headers:n.headers},r),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(xe(s))return{data:null,error:s};throw s}}async listV2(e,t){var r=this;try{const n=H({},e);return{data:await Yt(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(xe(n))return{data:null,error:n};throw n}}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 Ox="2.89.0",Ix={"X-Client-Info":`storage-js/${Ox}`};var XA=class{constructor(e,t={},r,n){this.shouldThrowOnError=!1;const s=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href.replace(/\/$/,""),this.headers=H(H({},Ix),t),this.fetch=Kf(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(e){var t=this;try{const r=t.listBucketOptionsToQueryString(e);return{data:await Yi(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xe(r))return{data:null,error:r};throw r}}async getBucket(e){var t=this;try{return{data:await Yi(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xe(r))return{data:null,error:r};throw r}}async createBucket(e,t={public:!1}){var r=this;try{return{data:await Yt(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(xe(n))return{data:null,error:n};throw n}}async updateBucket(e,t){var r=this;try{return{data:await hh(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(xe(n))return{data:null,error:n};throw n}}async emptyBucket(e){var t=this;try{return{data:await Yt(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xe(r))return{data:null,error:r};throw r}}async deleteBucket(e){var t=this;try{return{data:await Zf(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xe(r))return{data:null,error:r};throw r}}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():""}},e2=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=H(H({},Ix),t),this.fetch=Kf(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await Yt(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xe(r))return{data:null,error:r};throw r}}async listBuckets(e){var t=this;
288try{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),s=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return{data:await Yi(t.fetch,s,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xe(r))return{data:null,error:r};throw r}}async deleteBucket(e){var t=this;try{return{data:await Zf(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xe(r))return{data:null,error:r};throw r}}from(e){var t=this;if(!BA(e))throw new Ic("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 r=new LA({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(s,o){const i=s[o];return typeof i!="function"?i:async(...a)=>{try{return{data:await i.apply(s,a),error:null}}catch(l){if(n)throw l;return{data:null,error:l}}}}})}};const Gf={"X-Client-Info":`storage-js/${Ox}`,"Content-Type":"application/json"};var $x=class extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function xt(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}var $u=class extends $x{constructor(e,t,r){super(e),this.name="StorageVectorsApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},t2=class extends $x{constructor(e,t){super(e),this.name="StorageVectorsUnknownError",this.originalError=t}};const Jf=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),r2=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)},Eg=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),n2=async(e,t,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(r!=null&&r.noResolveJson)){const n=e.status||500,s=e;if(typeof s.json=="function")s.json().then(o=>{const i=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||n+"";t(new $u(Eg(o),n,i))}).catch(()=>{const o=n+"";t(new $u(s.statusText||`HTTP ${n} error`,n,o))});else{const o=n+"";t(new $u(s.statusText||`HTTP ${n} error`,n,o))}}else t(new t2(Eg(e),e))},s2=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return n?(r2(n)?(s.headers=H({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,H(H({},s),r)):s};async function o2(e,t,r,n,s,o){return new Promise((i,a)=>{e(r,s2(t,n,s,o)).then(l=>{if(!l.ok)throw l;if(n!=null&&n.noResolveJson)return l;const u=l.headers.get("content-type");return!u||!u.includes("application/json")?{}:l.json()}).then(l=>i(l)).catch(l=>n2(l,a,n))})}async function bt(e,t,r,n,s){return o2(e,"POST",t,n,s,r)}var i2=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=H(H({},Gf),t),this.fetch=Jf(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(e){var t=this;try{return{data:await bt(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xt(r))return{data:null,error:r};throw r}}async getIndex(e,t){var r=this;try{return{data:await bt(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(xt(n))return{data:null,error:n};throw n}}async listIndexes(e){var t=this;try{return{data:await bt(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xt(r))return{data:null,error:r};throw r}}async deleteIndex(e,t){var r=this;try{return{data:await bt(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{},error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(xt(n))return{data:null,error:n};throw n}}},a2=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=H(H({},Gf),t),this.fetch=Jf(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(e){var t=this;try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await bt(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xt(r))return{data:null,error:r};throw r}}async getVectors(e){var t=this;try{return{data:await bt(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xt(r))return{data:null,error:r};throw r}}async listVectors(e){var t=this;try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
288if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:await bt(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xt(r))return{data:null,error:r};throw r}}async queryVectors(e){var t=this;try{return{data:await bt(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xt(r))return{data:null,error:r};throw r}}async deleteVectors(e){var t=this;try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await bt(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xt(r))return{data:null,error:r};throw r}}},l2=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=H(H({},Gf),t),this.fetch=Jf(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await bt(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xt(r))return{data:null,error:r};throw r}}async getBucket(e){var t=this;try{return{data:await bt(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xt(r))return{data:null,error:r};throw r}}async listBuckets(e={}){var t=this;try{return{data:await bt(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xt(r))return{data:null,error:r};throw r}}async deleteBucket(e){var t=this;try{return{data:await bt(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xt(r))return{data:null,error:r};throw r}}},c2=class extends l2{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new u2(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},u2=class extends i2{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new d2(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},d2=class extends a2{constructor(e,t,r,n,s){super(e,t,s),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},h2=class extends XA{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new QA(this.url,this.headers,e,this.fetch)}get vectors(){return new c2(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new e2(this.url+"/iceberg",this.headers,this.fetch)}};const Dx="2.89.0",Bs=30*1e3,fh=3,Du=fh*Bs,f2="http://localhost:9999",p2="supabase.auth.token",m2={"X-Client-Info":`gotrue-js/${Dx}`},ph="X-Supabase-Api-Version",Mx={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},g2=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,y2=10*60*1e3;
288class Qi extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function z(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class v2 extends Qi{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function w2(e){return z(e)&&e.name==="AuthApiError"}class Zn extends Qi{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class Hr extends Qi{constructor(t,r,n,s){super(t,n,s),this.name=r,this.status=n}}class yt extends Hr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function x2(e){return z(e)&&e.name==="AuthSessionMissingError"}class $s extends Hr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Za extends Hr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Ga extends Hr{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function b2(e){return z(e)&&e.name==="AuthImplicitGrantRedirectError"}class jg extends Hr{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class _2 extends Hr{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 mh extends Hr{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function Mu(e){return z(e)&&e.name==="AuthRetryableFetchError"}class Tg extends Hr{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class gh extends Hr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Gl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Ng=` 289\r=`.split(""),k2=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Ng.length;t+=1)e[Ng[t].charCodeAt(0)]=-2;for(let t=0;t<Gl.length;t+=1)e[Gl[t].charCodeAt(0)]=t;return e})();function Cg(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(Gl[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(Gl[n]),t.queuedBits-=6}}function Lx(e,t,r){const n=k2[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Ag(e){const t=[],r=i=>{t.push(String.fromCodePoint(i))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{j2(i,n,r)};for(let i=0;i<e.length;i+=1)Lx(e.charCodeAt(i),s,o);return t.join("")}function S2(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 E2(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}S2(n,t)}}function j2(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;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&&r(t.codepoint)}}function mo(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};for(let s=0;s<e.length;
289s+=1)Lx(e.charCodeAt(s),r,n);return new Uint8Array(t)}function T2(e){const t=[];return E2(e,r=>t.push(r)),new Uint8Array(t)}function Qn(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};return e.forEach(s=>Cg(s,r,n)),Cg(null,r,n),t.join("")}function N2(e){return Math.round(Date.now()/1e3)+e}function C2(){return Symbol("auth-callback")}const He=()=>typeof window<"u"&&typeof document<"u",Fn={tested:!1,writable:!1},zx=()=>{if(!He())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Fn.tested)return Fn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Fn.tested=!0,Fn.writable=!0}catch{Fn.tested=!0,Fn.writable=!1}return Fn.writable};function A2(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((s,o)=>{t[o]=s})}catch{}return r.searchParams.forEach((n,s)=>{t[s]=n}),t}const Ux=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),P2=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Ws=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},Bn=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},We=async(e,t)=>{await e.removeItem(t)};class $c{constructor(){this.promise=new $c.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}$c.promiseConstructor=Promise;function Lu(e){const t=e.split(".");if(t.length!==3)throw new gh("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!g2.test(t[n]))throw new gh("JWT not in base64url format");return{header:JSON.parse(Ag(t[0])),payload:JSON.parse(Ag(t[1])),signature:mo(t[2]),raw:{header:t[0],payload:t[1]}}}async function R2(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function O2(e,t){return new Promise((n,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await e(o);if(!t(o,null,i)){n(i);return}}catch(i){if(!t(o,i)){s(i);return}}})()})}function I2(e){return("0"+e.toString(16)).substr(-2)}function $2(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let o=0;o<56;o++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(t),Array.from(t,I2).join("")}async function D2(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function M2(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 r=await D2(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Ds(e,t,r=!1){const n=$2();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await Ws(e,`${t}-code-verifier`,s);const o=await M2(n);return[o,n===o?"plain":"s256"]}const L2=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function z2(e){const t=e.headers.get(ph);if(!t||!t.match(L2))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function U2(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 F2(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 B2=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Ms(e){if(!B2.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function zu(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="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 "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function W2(e,t){return new Proxy(e,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;
289if(typeof n=="symbol"){const o=n.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!t.value&&typeof n=="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(r,n,s)}})}function Pg(e){return JSON.parse(JSON.stringify(e))}const Vn=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),H2=[502,503,504];async function Rg(e){var t;if(!P2(e))throw new mh(Vn(e),0);if(H2.includes(e.status))throw new mh(Vn(e),e.status);let r;try{r=await e.json()}catch(o){throw new Zn(Vn(o),o)}let n;const s=z2(e);if(s&&s.getTime()>=Mx["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new Tg(Vn(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new yt}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new Tg(Vn(r),e.status,r.weak_password.reasons);throw new v2(Vn(r),e.status||500,n)}const V2=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function W(e,t,r,n){var s;const o=Object.assign({},n==null?void 0:n.headers);o[ph]||(o[ph]=Mx["2024-01-01"].name),n!=null&&n.jwt&&(o.Authorization=`Bearer ${n.jwt}`);const i=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(i.redirect_to=n.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await q2(e,t,r+a,{headers:o,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function q2(e,t,r,n,s,o){const i=V2(t,n,s,o);let a;try{a=await e(r,Object.assign({},i))}catch(l){throw console.error(l),new mh(Vn(l),0)}if(a.ok||await Rg(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await Rg(l)}}function Zt(e){var t;let r=null;G2(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=N2(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function Og(e){const t=Zt(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function ln(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function K2(e){return{data:e,error:null}}function Z2(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:o}=e,i=Oc(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function Ig(e){return e}function G2(e){return e.access_token&&e.refresh_token&&e.expires_in}const Uu=["global","local","others"];class J2{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=Ux(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,r=Uu[0]){if(Uu.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Uu.join(", ")}`);try{return await W(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(z(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await W(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:ln})}catch(n){if(z(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=Oc(t,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await W(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:Z2,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(z(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await W(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:ln})}catch(r){if(z(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,s,o,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await W(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:Ig});if(d.error)throw d.error;const h=await d.json(),p=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.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(p)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(z(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Ms(t);try{return await W(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:ln})}catch(r){if(z(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){Ms(t);try{return await W(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:ln})}catch(n){if(z(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){Ms(t);
289try{return await W(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:ln})}catch(n){if(z(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){Ms(t.userId);try{const{data:r,error:n}=await W(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(z(r))return{data:null,error:r};throw r}}async _deleteFactor(t){Ms(t.userId),Ms(t.id);try{return{data:await W(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(z(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,s,o,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await W(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:Ig});if(d.error)throw d.error;const h=await d.json(),p=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.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(p)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(z(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await W(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(z(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await W(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(z(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await W(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(z(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await W(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(z(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await W(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(z(r))return{data:null,error:r};throw r}}}function $g(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const Ls={debug:!!(globalThis&&zx()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Fx extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class Y2 extends Fx{}async function Q2(e,t,r){Ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),Ls.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){Ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await r()}finally{Ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Y2(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Ls.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"),await r()}}))}function X2(){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 Bx(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
289" is invalid.`);return e.toLowerCase()}function eP(e){return parseInt(e,16)}function tP(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function rP(e){var t;const{chainId:r,domain:n,expirationTime:s,issuedAt:o=new Date,nonce:i,notBefore:a,requestId:l,resources:u,scheme:d,uri:h,version:p}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 290`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=Bx(e.address),y=d?`${d}://${n}`:n,m=e.statement?`${e.statement} 291`:"",x=`${y} wants you to sign in with your Ethereum account: 292${f} 293 294${m}`;let v=`URI: ${h} 295Version: ${p} 296Chain ID: ${r}${i?` 297Nonce: ${i}`:""} 298Issued At: ${o.toISOString()}`;if(s&&(v+=` 299Expiration Time: ${s.toISOString()}`),a&&(v+=` 300Not Before: ${a.toISOString()}`),l&&(v+=` 301Request ID: ${l}`),u){let g=` 302Resources:`;for(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}`);g+=` 303- ${w}`}v+=g}return`${x} 304${v}`}class Oe extends Error{constructor({message:t,code:r,cause:n,name:s}){var o;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(o=s??(n instanceof Error?n.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.code=r}}class Jl extends Oe{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function nP({error:e,options:t}){var r,n,s;const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Oe({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=o.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Oe({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=o.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Oe({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=o.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Oe({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 Oe({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Oe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return o.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Oe({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Oe({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 i=window.location.hostname;if(Wx(i)){if(o.rp.id!==i)return new Oe({message:`The RP ID "${o.rp.id}
304" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Oe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new Oe({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 Oe({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 Oe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function sP({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Oe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Oe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(Wx(n)){if(r.rpId!==n)return new Oe({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Oe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Oe({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Oe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class oP{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}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 iP=new oP;function aP(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:r,excludeCredentials:n}=e,s=Oc(e,["challenge","user","excludeCredentials"]),o=mo(t).buffer,i=Object.assign(Object.assign({},r),{id:mo(r.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:o,user:i});if(n&&n.length>0){a.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const u=n[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:mo(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function lP(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:r}=e,n=Oc(e,["challenge","allowCredentials"]),s=mo(t).buffer,o=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){o.allowCredentials=new Array(r.length);for(let i=0;i<r.length;i++){const a=r[i];o.allowCredentials[i]=Object.assign(Object.assign({},a),{id:mo(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return o}function cP(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:Qn(new Uint8Array(e.response.attestationObject)),clientDataJSON:Qn(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function uP(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Qn(new Uint8Array(s.authenticatorData)),clientDataJSON:Qn(new Uint8Array(s.clientDataJSON)),signature:Qn(new Uint8Array(s.signature)),userHandle:s.userHandle?Qn(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Wx(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Dg(){var e,t;return!!(He()&&"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 dP(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Jl("Browser returned unexpected credential type",t)}:{data:null,error:new Jl("Empty credential response",t)}}
304catch(t){return{data:null,error:nP({error:t,options:e})}}}async function hP(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Jl("Browser returned unexpected credential type",t)}:{data:null,error:new Jl("Empty credential response",t)}}catch(t){return{data:null,error:sP({error:t,options:e})}}}const fP={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},pP={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Yl(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of e)if(s)for(const o in s){const i=s[o];if(i!==void 0)if(Array.isArray(i))n[o]=i;else if(r(i))n[o]=i;else if(t(i)){const a=n[o];t(a)?n[o]=Yl(a,i):n[o]=Yl(i)}else n[o]=i}return n}function mP(e,t){return Yl(fP,e,t||{})}function gP(e,t){return Yl(pP,e,t||{})}class yP{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:r,friendlyName:n,signal:s},o){try{const{data:i,error:a}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!i)return{data:null,error:a};const l=s??iP.createNewAbortSignal();if(i.webauthn.type==="create"){const{user:u}=i.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${n}`),u.displayName||(u.displayName=u.name)}switch(i.webauthn.type){case"create":{const u=mP(i.webauthn.credential_options.publicKey,o==null?void 0:o.create),{data:d,error:h}=await dP({publicKey:u,signal:l});return d?{data:{factorId:t,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const u=gP(i.webauthn.credential_options.publicKey,o==null?void 0:o.request),{data:d,error:h}=await hP(Object.assign(Object.assign({},i.webauthn.credential_options),{publicKey:u,signal:l}));return d?{data:{factorId:t,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(i){return z(i)?{data:null,error:i}:{data:null,error:new Zn("Unexpected error in challenge",i)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},o){if(!r)return{data:null,error:new Qi("rpId is required for WebAuthn authentication")};try{if(!Dg())return{data:null,error:new Zn("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:o});if(!i)return{data:null,error:a};const{webauthn:l}=i;return this._verify({factorId:t,challengeId:i.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(i){return z(i)?{data:null,error:i}:{data:null,error:new Zn("Unexpected error in authenticate",i)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},o){if(!r)return{data:null,error:new Qi("rpId is required for WebAuthn registration")};try{if(!Dg())return{data:null,error:new Zn("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this._enroll({friendlyName:t});if(!i)return await this.client.mfa.listFactors().then(d=>{var h;return(h=d.data)===null||h===void 0?void 0:h.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:i.id,friendlyName:i.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:o});return l?this._verify({factorId:i.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(i){return z(i)?{data:null,error:i}:{data:null,error:new Zn("Unexpected error in register",i)}}}}X2();const vP={url:f2,storageKey:p2,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:m2,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function Mg(e,t,r){return await r()}const zs={};class Xi{get jwks(){var t,r;return(r=(t=zs[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){zs[this.storageKey]=Object.assign(Object.assign({},zs[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=zs[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){zs[this.storageKey]=Object.assign(Object.assign({},zs[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const o=Object.assign(Object.assign({},vP),t);if(this.storageKey=o.storageKey,this.instanceID=(r=Xi.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,Xi.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&He()){const i=`${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(i),this.logDebugMessages&&console.trace(i)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.admin=new J2({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=Ux(o.fetch),this.lock=o.lock||Mg,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,o.lock?this.lock=o.lock:this.persistSession&&He()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=Q2:this.lock=Mg,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 yP(this)}
304,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?(o.storage?this.storage=o.storage:zx()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=$g(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=$g(this.memoryStorage)),He()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Dx}) ${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(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(He()&&(r=A2(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),He()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:o}=await this._getSessionFromURL(r,n);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),b2(o)){const l=(t=o.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:o}}return await this._removeSession(),{error:o}}const{session:i,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return z(r)?this._returnResult({error:r}):this._returnResult({error:new Zn("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,s;try{const o=await W(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Zt}),{data:i,error:a}=o;if(a||!i)return this._returnResult({data:{user:null,session:null},error:a});const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(o){if(z(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signUp(t){var r,n,s;try{let o;if("email"in t){const{email:d,password:h,options:p}=t;let f=null,y=null;this.flowType==="pkce"&&([f,y]=await Ds(this.storage,this.storageKey)),o=await W(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:d,password:h,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:f,code_challenge_method:y},xform:Zt})}else if("phone"in t){const{phone:d,password:h,options:p}=t;o=await W(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},channel:(s=p==null?void 0:p.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:Zt})}else throw new Za("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return await We(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(o){if(await We(this.storage,`${this.storageKey}-code-verifier`),z(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithPassword(t){try{let r;if("email"in t){const{email:o,password:i,options:a}=t;r=await W(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Og})}else if("phone"in t){const{phone:o,password:i,options:a}=t;r=await W(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Og})}else throw new Za("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const o=new $s;return this._returnResult({data:{user:null,session:null},error:o})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(z(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,s,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=t.o
304ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,s,o,i,a,l,u,d,h,p;let f,y;if("message"in t)f=t.message,y=t.signature;else{const{chain:m,wallet:x,statement:v,options:g}=t;let w;if(He())if(typeof x=="object")w=x;else{const O=window;if("ethereum"in O&&typeof O.ethereum=="object"&&"request"in O.ethereum&&typeof O.ethereum.request=="function")w=O.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=x}const _=new URL((r=g==null?void 0:g.url)!==null&&r!==void 0?r:window.location.href),k=await w.request({method:"eth_requestAccounts"}).then(O=>O).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!k||k.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const S=Bx(k[0]);let E=(n=g==null?void 0:g.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!E){const O=await w.request({method:"eth_chainId"});E=eP(O)}const j={domain:_.host,address:S,statement:v,uri:_.href,version:"1",chainId:E,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(i=(o=g==null?void 0:g.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&i!==void 0?i:new Date,expirationTime:(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=g==null?void 0:g.signInWithEthereum)===null||d===void 0?void 0:d.resources};f=rP(j),y=await w.request({method:"personal_sign",params:[tP(f),S]})}try{const{data:m,error:x}=await W(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:y},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Zt});if(x)throw x;if(!m||!m.session||!m.user){const v=new $s;return this._returnResult({data:{user:null,session:null},error:v})}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(z(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var r,n,s,o,i,a,l,u,d,h,p,f;let y,m;if("message"in t)y=t.message,m=t.signature;else{const{chain:x,wallet:v,statement:g,options:w}=t;let _;if(He())if(typeof v=="object")_=v;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))_=S.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=v}const k=new URL((r=w==null?void 0:w.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in _&&_.signIn){const S=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:k.host,uri:k.href}),g?{statement:g}:null));let E;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")E=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)E=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in E&&"signature"in E&&(typeof E.signedMessage=="string"||E.signedMessage instanceof Uint8Array)&&E.signature instanceof Uint8Array)y=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),m=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${k.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${k.href}`,`Issued At: ${(s=(n=w==null?void 0:w.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.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}`]:[],...!((h=(d=w==null?void 0:w.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...w.sign
304InWithSolana.resources.map(E=>`- ${E}`)]:[]].join(` 305`);const S=await _.signMessage(new TextEncoder().encode(y),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=S}}try{const{data:x,error:v}=await W(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:Qn(m)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Zt});if(v)throw v;if(!x||!x.session||!x.user){const g=new $s;return this._returnResult({data:{user:null,session:null},error:g})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:v})}catch(x){if(z(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const r=await Bn(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new _2;const{data:o,error:i}=await W(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Zt});if(await We(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!o||!o.session||!o.user){const a=new $s;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),this._returnResult({data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(await We(this.storage,`${this.storageKey}-code-verifier`),z(o))return this._returnResult({data:{user:null,session:null,redirectType:null},error:o});throw o}}async signInWithIdToken(t){try{const{options:r,provider:n,token:s,access_token:o,nonce:i}=t,a=await W(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Zt}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const d=new $s;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(r){if(z(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,s,o,i;try{if("email"in t){const{email:a,options:l}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Ds(this.storage,this.storageKey));const{error:h}=await W(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:d}=await W(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new Za("You must provide either an email or phone number.")}catch(a){if(await We(this.storage,`${this.storageKey}-code-verifier`),z(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var r,n;try{let s,o;"options"in t&&(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo,o=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:i,error:a}=await W(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:Zt});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,u=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(z(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var r,n,s,o,i;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await Ds(this.storage,this.storageKey));const u=await W(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:K2});return!((o=u.data)===null||o===void 0)&&o.url&&He()&&!(!((i=t.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await We(this.storage,`${this.storageKey}-code-verifier`),z(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new yt;const{error:s}=await W(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(z(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:o}=t,{error:i}=await W(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:i})}else if("phone"in t){const{phone:n,type:s,options:o}=t,{data:i,error:a}=await W(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a})}throw new Za("You must provide either an email or phone number and a type")}catch(r){if(z(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}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 r=await this.__loadSession();return await t(r)}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 r=await Bn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
305id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<Du:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const i=await Bn(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=zu()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const i={value:this.suppressGetSessionWarning};t.user=W2(t.user,i),i.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{session:null},error:o}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(-1,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await W(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:ln}):await this._useSession(async r=>{var n,s,o;const{data:i,error:a}=r;if(a)throw a;return!(!((n=i.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new yt}:await W(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:ln})})}catch(r){if(z(r))return x2(r)&&(await this._removeSession(),await We(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:s,error:o}=n;if(o)throw o;if(!s.session)throw new yt;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Ds(this.storage,this.storageKey));const{data:u,error:d}=await W(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:ln});if(d)throw d;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),this._returnResult({data:{user:i.user},error:null})})}catch(n){if(await We(this.storage,`${this.storageKey}-code-verifier`),z(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new yt;const r=Date.now()/1e3;let n=r,s=!0,o=null;const{payload:i}=Lu(t.access_token);if(i.exp&&(n=i.exp,s=n<=r),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;o={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return this._returnResult({data:{user:o.user,session:o},error:null})}catch(r){if(z(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:i,error:a}=r;if(a)throw a;t=(n=i.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new yt;const{data:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{user:null,session:null},error:o}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(z(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){try{if(!He())throw new Ga("No browser detected.");
305if(t.error||t.error_description||t.error_code)throw new Ga(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new jg("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Ga("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new jg("No code detected.");const{data:g,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:u}=t;if(!o||!a||!i||!u)throw new Ga("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(a);let p=d+h;l&&(p=parseInt(l));const f=p-d;f*1e3<=Bs&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${h}s`);const y=p-h;d-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,p,d):d-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,p,d);const{data:m,error:x}=await this._getUser(o);if(x)throw x;const v={provider_token:n,provider_refresh_token:s,access_token:o,expires_in:h,expires_at:p,refresh_token:i,token_type:u,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(n){if(z(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_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 r=await Bn(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({error:o});const i=(n=s.session)===null||n===void 0?void 0:n.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(w2(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await We(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=C2(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,s;try{const{data:{session:o},error:i}=r;if(i)throw i;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",o),console.error(o)}})}async resetPasswordForEmail(t,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await Ds(this.storage,this.storageKey,!0));try{return await W(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(o){if(await We(this.storage,`${this.storageKey}-code-verifier`),z(o))return this._returnResult({data:null,error:o});throw o}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:s}=await this._useSession(async o=>{var i,a,l,u,d;const{data:h,error:p}=o;if(p)throw p;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await W(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return He()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(z(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:o}}=r;if(s)throw s;const{options:i,provider:a,token:l,access_token:u,nonce:d}=t,h=await W(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=o==null?void 0:o.access_token)!==null&&n!==void 0?n:void 0,body:{provider:a,id_token:l,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:Zt}),{data:p,error:f}=h;return f?this._returnResult({data:{user:null,session:null},error:f}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new $s}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:f}))}catch(s){if(await We(this.storage,`${this.storageKey}-code-verifier`),z(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,s;const{data:o,error:i}=r;if(i)throw i;
305return await W(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(n=o.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await O2(async s=>(s>0&&await R2(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await W(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Zt})),(s,o)=>{const i=200*Math.pow(2,s);return o&&Mu(o)&&Date.now()+i-n<Bs})}catch(n){if(this._debug(r,"error",n),z(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),He()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await Bn(this.storage,this.storageKey);if(s&&this.userStorage){let i=await Bn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:s.user},await Ws(this.userStorage,this.storageKey+"-user",i)),s.user=(t=i==null?void 0:i.user)!==null&&t!==void 0?t:zu()}else if(s&&!s.user&&!s.user){const i=await Bn(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(s.user=i.user,await We(this.storage,this.storageKey+"-user"),await Ws(this.storage,this.storageKey,s)):s.user=zu()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const o=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Du;if(this._debug(n,`session has${o?"":" not"} expired with margin of ${Du}s`),o){if(this.autoRefreshToken&&s.refresh_token){const{error:i}=await this._callRefreshToken(s.refresh_token);i&&(console.error(i),Mu(i)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(s.access_token);!a&&(i!=null&&i.user)?(s.user=i.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(n,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new yt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new $c;const{data:o,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!o.session)throw new yt;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={data:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),z(o)){const i={data:null,error:o};return Mu(o)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(i),i}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,r,n=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,r)}catch(l){o.push(l)}});if(await Promise.all(i),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await We(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Ws(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const o=Pg(s);await Ws(this.storage,this.storageKey,o)}else{const s=Pg(r);await Ws(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await We(this.storage,this.storageKey),await We(this.storage,this.storageKey+"-code-verifier"),await We(this.storage,this.storageKey+"-user"),this.userStorage&&await We(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&He()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
305catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Bs);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}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 r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-t)/Bs);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Bs}ms, refresh threshold is ${fh} ticks`),s<=fh&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof Fx)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!He()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"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,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[o,i]=await Ds(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const o=new URLSearchParams(n.queryParams);s.push(o.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;return o?this._returnResult({data:null,error:o}):await W(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,s;const{data:o,error:i}=r;if(i)return this._returnResult({data:null,error:i});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await W(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=o==null?void 0:o.session)===null||n===void 0?void 0:n.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?cP(t.webauthn.credential_response):uP(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await W(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:i,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.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(r){if(z(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=await W(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});if(i.error)return i;const{data:a}=i;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:aP(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:lP(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const o of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])s.all.push(o),o.status==="verified"&&s[o.factor_type].push(o);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var t,r;const{data:{session:n},error:s}
305=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Lu(n.access_token);let i=null;o.aal&&(i=o.aal);let a=i;((r=(t=n.user.factors)===null||t===void 0?void 0:t.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(a="aal2");const u=o.amr||[];return{data:{currentLevel:i,nextLevel:a,currentAuthenticationMethods:u},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await W(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new yt})})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new yt});const i=await W(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&He()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new yt});const i=await W(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&He()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await W(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new yt})})}catch(t){if(z(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?(await W(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new yt})})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(a=>a.kid===t);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(a=>a.kid===t),n&&this.jwks_cached_at+y2>s)return n;const{data:o,error:i}=await W(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=s,n=o.keys.find(a=>a.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:f,error:y}
305=await this.getSession();if(y||!f.session)return this._returnResult({data:null,error:y});n=f.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:l}}=Lu(n);r!=null&&r.allowExpired||U2(o.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!u){const{error:f}=await this.getUser(n);if(f)throw f;return{data:{claims:o,header:s,signature:i},error:null}}const d=F2(s.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,i,T2(`${a}.${l}`)))throw new gh("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}}Xi.nextInstanceID={};const wP=Xi,xP="2.89.0";let di="";typeof Deno<"u"?di="deno":typeof document<"u"?di="web":typeof navigator<"u"&&navigator.product==="ReactNative"?di="react-native":di="node";const bP={"X-Client-Info":`supabase-js-${di}/${xP}`},_P={headers:bP},kP={schema:"public"},SP={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},EP={};function ea(e){"@babel/helpers - typeof";return ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ea(e)}function jP(e,t){if(ea(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ea(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TP(e){var t=jP(e,"string");return ea(t)=="symbol"?t:t+""}function NP(e,t,r){return(t=TP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){NP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const CP=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),AP=()=>Headers,PP=(e,t,r)=>{const n=CP(r),s=AP();return async(o,i)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new s(i==null?void 0:i.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),n(o,je(je({},i),{},{headers:u}))}};function RP(e){return e.endsWith("/")?e:e+"/"}function OP(e,t){var r,n;const{db:s,auth:o,realtime:i,global:a}=e,{db:l,auth:u,realtime:d,global:h}=t,p={db:je(je({},l),s),auth:je(je({},u),o),realtime:je(je({},d),i),storage:{},global:je(je(je({},h),a),{},{headers:je(je({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=a==null?void 0:a.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return e.accessToken?p.accessToken=e.accessToken:delete p.accessToken,p}function IP(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(RP(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var $P=class extends wP{constructor(e){super(e)}},DP=class{constructor(e,t,r){var n,s;this.supabaseUrl=e,this.supabaseKey=t;const o=IP(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",o),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",o),this.storageUrl=new URL("storage/v1",o),this.functionsUrl=new URL("functions/v1",o);const i=`sb-${o.hostname.split(".")[0]}-auth-token`,a={db:kP,realtime:EP,auth:je(je({},SP),{},{storageKey:i}),global:_P},l=OP(r??{},a);if(this.storageKey=(n=l.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} 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=PP(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(je({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&this.accessToken().then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new mA(new URL("rest/v1",o).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new h2(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new uA(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={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}
305channel(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,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,storageKey:o,flowType:i,lock:a,debug:l,throwOnError:u},d,h){const p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new $P({url:this.authUrl.href,headers:je(je({},p),d),storageKey:o,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,flowType:i,lock:a,debug:l,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new RA(this.realtimeUrl.href,je(je({},e),{},{params:je(je({},{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,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const MP=(e,t,r)=>new DP(e,t,r);function LP(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}LP()&&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 zP="https://bnucbwescojnwbsztmro.supabase.co",UP="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJudWNid2VzY29qbndic3p0bXJvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjY0NzEwMjgsImV4cCI6MjA4MjA0NzAyOH0.LXGTbqRFWfE_zGeitqgrRXQPRNHK59JqZk7GAqdsaAw",It=MP(zP,UP,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),Hx=b.createContext(void 0),FP=({children:e})=>{const[t,r]=b.useState(null),[n,s]=b.useState(null),[o,i]=b.useState(!1),[a,l]=b.useState(!0);b.useEffect(()=>{const{data:{subscription:f}}=It.auth.onAuthStateChange((y,m)=>{s(m),r((m==null?void 0:m.user)??null),m!=null&&m.user?setTimeout(()=>{u(m.user.id)},0):(i(!1),l(!1))});return It.auth.getSession().then(({data:{session:y}})=>{s(y),r((y==null?void 0:y.user)??null),y!=null&&y.user?u(y.user.id):l(!1)}),()=>f.unsubscribe()},[]);const u=async f=>{try{const{data:y,error:m}=await It.from("user_roles").select("role").eq("user_id",f).eq("role","admin").maybeSingle();m?(console.error("Error checking admin role:",m),i(!1)):i(!!y)}catch(y){console.error("Error checking admin role:",y),i(!1)}finally{l(!1)}},d=async(f,y)=>{const{error:m}=await It.auth.signInWithPassword({email:f,password:y});return{error:m}},h=async(f,y)=>{const m=`${window.location.origin}/`,{error:x}=await It.auth.signUp({email:f,password:y,options:{emailRedirectTo:m}});return{error:x}},p=async()=>{await It.auth.signOut(),i(!1)};return c.jsx(Hx.Provider,{value:{user:t,session:n,isAdmin:o,isLoading:a,signIn:d,signUp:h,signOut:p},children:e})},Vx=()=>{const e=b.useContext(Hx);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},BP=kc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ne=b.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},o)=>{const i=n?yS:"button";return c.jsx(i,{className:le(BP({variant:t,size:r,className:e})),ref:o,...s})});Ne.displayName="Button";const WP=()=>{const[e,t]=b.useState(!1),r=[{href:"#about",label:"About"},{href:"#speaking",label:"Speaking"},{href:"#stories",label:"Stories"},{href:"/conferences",label:"Conferences"},{href:"/ask-rita",label:"Ask Rita"},{href:"#speaking",label:"Contact"}],n=(s,o)=>
305{if(o.startsWith("#")){s.preventDefault();const i=document.querySelector(o);i&&i.scrollIntoView({behavior:"smooth"}),t(!1)}};return c.jsxs("section",{className:"relative min-h-screen hero-gradient overflow-hidden",children:[c.jsxs("div",{className:"absolute inset-0 opacity-30",children:[c.jsx("div",{className:"absolute top-20 left-10 w-72 h-72 bg-primary/20 rounded-full blur-3xl"}),c.jsx("div",{className:"absolute bottom-20 right-10 w-96 h-96 bg-primary/10 rounded-full blur-3xl"})]}),c.jsxs("div",{className:"relative container mx-auto px-4 py-12 lg:py-20",children:[c.jsxs("header",{className:"flex items-center justify-between mb-16",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-primary flex items-center justify-center",children:c.jsx("span",{className:"text-primary-foreground font-bold text-lg",children:"R"})}),c.jsx("span",{className:"text-hero-foreground font-semibold text-xl tracking-tight",style:{color:"hsl(var(--hero-foreground))"},children:"Rita Arrigo"})]}),c.jsx("nav",{className:"hidden md:flex items-center gap-8",children:r.map(s=>c.jsx("a",{href:s.href,onClick:o=>n(o,s.href),className:"text-sm font-medium transition-colors hover:text-primary",style:{color:"hsl(var(--hero-foreground) / 0.7)"},children:s.label},s.label))}),c.jsx("button",{className:"md:hidden p-2 rounded-lg hover:bg-primary/10 transition-colors",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?c.jsx(_0,{className:"w-6 h-6",style:{color:"hsl(var(--hero-foreground))"}}):c.jsx(kE,{className:"w-6 h-6",style:{color:"hsl(var(--hero-foreground))"}})})]}),e&&c.jsx("nav",{className:"md:hidden absolute top-24 left-4 right-4 z-50 bg-card/95 backdrop-blur-lg rounded-2xl border border-border/50 shadow-xl p-6 animate-fade-in",children:c.jsx("div",{className:"flex flex-col gap-4",children:r.map(s=>c.jsx("a",{href:s.href,onClick:o=>n(o,s.href),className:"text-lg font-medium text-foreground hover:text-primary transition-colors py-2 border-b border-border/20 last:border-0",children:s.label},s.label))})}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16 items-center min-h-[70vh]",children:[c.jsxs("div",{className:"space-y-8",children:[c.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-primary/30 bg-primary/10",children:[c.jsx("div",{className:"w-2 h-2 rounded-full bg-primary animate-pulse"}),c.jsx("span",{className:"text-sm font-medium text-primary",children:"TEDxMelbourne 2025"})]}),c.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold leading-tight",style:{color:"hsl(var(--hero-foreground))"},children:["Why AI is"," ",c.jsx("span",{className:"text-gradient",children:"Not Your Friend"})]}),c.jsx("p",{className:"text-lg md:text-xl leading-relaxed max-w-xl",style:{color:"hsl(var(--hero-foreground) / 0.7)"},children:"A thought-provoking exploration of responsible AI, digital twins, and why we must treat AI as a powerful tool, not a trusted friend."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[c.jsxs(Ne,{size:"lg",className:"group",onClick:()=>window.open("https://youtu.be/UAHDtXDn56Y","_blank"),children:[c.jsx(jn,{className:"w-5 h-5 mr-2 group-hover:scale-110 transition-transform"}),"Watch Full Talk"]}),c.jsxs(Ne,{variant:"outline",size:"lg",className:"border-border/50 bg-transparent hover:bg-primary/10",style:{color:"hsl(var(--hero-foreground))"},onClick:()=>{const s=document.querySelector("#speaking");s&&s.scrollIntoView({behavior:"smooth"})},children:[c.jsx($t,{className:"w-5 h-5 mr-2"}),"Book Rita"]})]}),c.jsxs("div",{className:"flex gap-8 pt-8 border-t border-border/20",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-3xl font-bold text-primary",children:"14"}),c.jsx("p",{className:"text-sm",style:{color:"hsl(var(--hero-foreground) / 0.6)"},children:"Minutes"})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-3xl font-bold",style:{color:"hsl(var(--hero-foreground))"},children:"2K+"}),c.jsx("p",{className:"text-sm",style:{color:"hsl(var(--hero-foreground) / 0.6)"},children:"Views"})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-3xl font-bold",style:{color:"hsl(var(--hero-foreground))"},children:"30+"}),c.jsx("p",{className:"text-sm",style:{color:"hsl(var(--hero-foreground) / 0.6)"},children:"Years in Tech"})]})]})]}),c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"relative rounded-2xl overflow-hidden shadow-2xl shadow-primary/20 border border-border/20",children:c.jsx("div",{className:"aspect-video",children:c.jsx("iframe",{className:"w-full h-full",src:"https://www.youtube.com/embed/UAHDtXDn56Y?rel=0",title:"Why AI is not your friend | Rita Arrigo | TEDxMelbourne",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})}),c.jsx("div",{className:"absolute -bottom-4 -right-4 w-32 h-32 border-2 border-primary/30 rounded-2xl -z-10"}),c.jsx("div",{className:"absolute -top-4 -left-4 w-24 h-24 border-2 border-primary/20 rounded-2xl -z-10"})]})]})]}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-32 bg-gradient-to-t from-background to-transparent"})]})},HP="/assets/rita-stkilda-Z7olOVDo.jpg",VP=[{icon:dE,title:"National AI Centre",description:"Former Strategic Engagement at the National AI Centre leading Australia's AI transformation strategy"},{icon:Af,title:"AI Strategy Leader",description:"Guiding enterprises through responsible AI adoption and digital transformation"},{icon:xE,title:"Complex Systems",description:"Applying digital twins, AI, and data platforms to complex public systems"},{icon:uE,title:"30+ Years Experience",description:"Decades of leadership in technology, innovation, and corporate strategy"}],qP=()=>c.jsxs("section",{id:"about",className:"relative py-24 lg:py-32 bg-background",children:[c.jsxs("div",{className:"absolute inset-0 opacity-20",children:[c.jsx("div",{className:"absolute top-40 right-20 w-64 h-64 bg-primary/10 rounded-full blur-3xl"}),c.jsx("div",{className:"absolute bottom-20 left-20 w-80 h-80 bg-primary/5 rounded-full blur-3xl"})]}),c.jsxs("div",{className:"relative container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-16",children:[c.jsx("span",{className:"inline-block text-sm font-medium text-primary uppercase tracking-widest mb-4",children:"About"}),c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground font-display",children:"Shaping Australia's AI Future"})]}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[c.jsxs("div",{className:"relative order-2 lg:order-1",children:[c.jsx("div",{className:"relative aspect-[4/5] rounded-2xl overflow-hidden bg-muted border border-border/20",children:c.jsx("img",{src:HP,alt:"Rita Arrigo - AI strategist and thought leader",className:"w-full h-full object-cover object-top"})}),c.jsx("div",{className:"absolute -bottom-6 -left-6 w-48 h-48 border-2 border-primary/20 rounded-2xl -z-10"}),c.jsx("div",{className:"absolute -top-6 -right-6 w-32 h-32 border-2 border-primary/30 rounded-2xl -z-10"})]}),c.jsx("div",{className:"space-y-8 order-1 lg:order-2",children:c.jsxs("div",{className:"space-y-6",children:[c.jsx("p",{className:"text-lg md:text-xl text-foreground leading-relaxed",children:"Rita Arrigo is a globally recognised leader in artificial intelligence, digital transformation, and responsible technology innovation."}),c.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"As former Strategic Engagement at the National AI Centre, Rita led Australia's national strategy to accelerate AI adoption across industries while ensuring ethical and responsible development practices."}),c.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"With over three decades of experience at the intersection of technology and business, Rita has advised Fortune 500 companies, government agencies, and startups on how to harness emerging technologies to drive meaningful change."}),c.jsx("p",{className:"text-muted-foreground leading-relaxed",children:'Her TEDx talk "Why AI is Not Your Friend" challenges conventional thinking about our relationship with artificial intelligence and calls for a more nuanced, thoughtful approach to the technology that is reshaping our world.'})]})})]}),c.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6 mt-20",children:VP.map((e,t)=>c.jsxs("div",{className:"group p-6 rounded-xl bg-card border border-border/20 hover:border-primary/30 transition-all duration-300 hover:shadow-lg hover:shadow-
305primary/5",children:[c.jsx("div",{className:"w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center mb-4 group-hover:bg-primary/20 transition-colors",children:c.jsx(e.icon,{className:"w-6 h-6 text-primary"})}),c.jsx("h3",{className:"font-semibold text-foreground mb-2",children:e.title}),c.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]},t))})]})]}),dt=b.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:le("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));dt.displayName="Card";const Ar=b.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:le("flex flex-col space-y-1.5 p-6",e),...t}));Ar.displayName="CardHeader";const Pr=b.forwardRef(({className:e,...t},r)=>c.jsx("h3",{ref:r,className:le("text-2xl font-semibold leading-none tracking-tight",e),...t}));Pr.displayName="CardTitle";const ls=b.forwardRef(({className:e,...t},r)=>c.jsx("p",{ref:r,className:le("text-sm text-muted-foreground",e),...t}));ls.displayName="CardDescription";const ht=b.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:le("p-6 pt-0",e),...t}));ht.displayName="CardContent";const KP=b.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:le("flex items-center p-6 pt-0",e),...t}));KP.displayName="CardFooter";const ZP=kc("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function zg({className:e,variant:t,...r}){return c.jsx("div",{className:le(ZP({variant:t}),e),...r})}const GP="/assets/ai-innovator-finder-thumbnail-FyPTjSgf.jpg",qx="/assets/digital-news-academy-holohuman-CShIXpYF.png",Kx="/assets/microsoft-future-now-CA6tbO-x.jpg",Zx="/assets/ncm-cyber-cafe-C2q6ZW5p.jpg",Gx="/assets/sxsw-sydney-hello-robot-CP_esGP8.jpg",JP="/assets/abc-big-ideas-brimbank-B5h64WHq.jpg",YP="/assets/innovationaus-vodcast-BM6v8NAa.jpg",Fu=e=>{const t=/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/,r=e.match(t);return r?r[1]:null},Ug=[{type:"TEDx",title:"Why AI is Not Your Friend",description:"A thought-provoking talk challenging conventional thinking about our relationship with artificial intelligence.",source:"TEDx Melbourne",date:"2025",readTime:"Watch",link:"https://youtu.be/UAHDtXDn56Y?si=uMYAYbd98mn8VFvH",featured:!0,isVideo:!0},{type:"Vodcast",title:"The Productivity Levers Vodcast Ep.3: Agentic AI and Human Agency",description:"Live on InnovationAus.com with Shan Moorthy and Corrie McLeod (Alchemy Impact) on how agentic AI shifts productivity from tools to trust. As AI moves from passive tools to systems that reason, act and orchestrate work, the real question is how we preserve human agency, judgement and accountability â through trusted systems, clear governance and humans firmly in the loop.",source:"InnovationAus.com",date:"March 2026",readTime:"Watch",link:"https://www.innovationaus.com/videos/the-productivity-levers-vodcast-episode-3-agentic-ai-and-human-agency/",featured:!1,isVideo:!1,thumbnail:YP},{type:"Media",title:"ABC Big Ideas: AI, Journalism & the Future of News",description:"Live on ABC Big Ideas as part of the Brimbank Writers and Readers Festival, in conversation with host Luke Siddham Dundon, Ian Dunt and Dr Mathew Marques on AI, journalism, politics and the future of news. We cannot outsource trust to an algorithm â we need better digital literacy, stronger responsible AI practices, and a renewed commitment to the public good.",source:"ABC Radio National",date:"March 2026",readTime:"Listen",link:"https://www.abc.net.au/listen/programs/bigideas/journalism-ai-and-the-algorithm/106595254",featured:!1,isVideo:!1,thumbnail:JP},{type:"Keynote",title:"National Perspectives on the Opportunities and Adoption of AI",description:"Over 130 people gathered in Bendigo to better understand AI and its capabilities. Areas of interest included building business productivity, keeping up with AI's maturity, AI resource requirements in Australia and seeking practical applications for AI.",source:"Bendigo",date:"27 May 2025",readTime:"Watch",link:"https://youtu.be/CZpvbtqy1PU?si=YIDn54rsa3Xt2cLH",featured:!1,isVideo:!0},{type:"Talk",title:"Gen A Emerging Leaders Forum 2025",description:"Insights on AI and leadership for the next generation of emerging leaders in the Asia-Pacific region.",source:"Asia Society Australia",date:"2025",readTime:"Watch",link:"https://youtu.be/lGndddMCqCE",featured:!1,isVideo:!0},{type:"Talk",title:"AAMRI Convention: AI and Medical Research",description:"Exploring how artificial intelligence is transforming medical research and healthcare outcomes.",source:"AAMRI",date:"2025",readTime:"Watch",link:"https://youtu.be/gdH37faELxw",featured:!1,isVideo:!0},{type:"Project",title:"Generative AI in Australia",description:"Vibe coding project showcasing Australia's AI ecosystem as an interactive infographic website.",source:"Personal Project",date:"Sep 2025",readTime:"Explore",link:"https://aiaustralia.ritaarrigo.com.au/",featured:!1,isVideo:!1,thumbnail:GP},{type:"AI Assistant",title:"Ask Rita",description:"An AI assistant trained on my public talks, interviews, and writing. Helps explore responsible AI, agentic systems, and the human in the Age of AI. Speaks 90 languages!",source:"AgenticScale.AI",date:"Jul 2025",readTime:"Chat",link:"/ask-rita",featured:!1,isVideo:!1,isInternal:!0,thumbnail:"https://img.youtube.com/vi/h4yCIMlH9eI/hqdefault.jpg"},{type:"Event",title:"Hello Robot â SXSW Sydney",description:"Three years shaping Australia's AI moment: from Responsible AI to embodied intelligence with humanoid robots, quadrupeds, and a lunar rover at SXSW Sydney.",source:"SXSW Sydney",date:"Oct 2025",readTime:"Read",link:"/sxsw-sydney",featured:!1,isVideo:!1,isInternal:!0,thumbnail:Gx},{type:"Event",title:"Beyond 23 & Digital News Academy",description:"AI and Immersive Technology talk at News Corp's Beyond 23, covering Generative AI, Dalle, Nerfs, GANs, Unreal Engine, and Holo
305Human demonstrations.",source:"News Corp",date:"Nov 2022",readTime:"Read",link:"/beyond-23",featured:!1,isVideo:!1,isInternal:!0,thumbnail:qx},{type:"Event",title:"Cyber Café at National Communications Museum",description:"Opening of the recreated Cyber Café at Australia's first new museum in 25 years, celebrating the origins of Australia's first internet café.",source:"National Communications Museum",date:"Oct 2024",readTime:"Read",link:"/cyber-cafe",featured:!1,isVideo:!1,isInternal:!0,thumbnail:Zx},{type:"Role",title:"AI Ambassador at Microsoft",description:"Engaged with Microsoft clients to create data-driven organisations with Azure AI, Cognitive Services, Azure Data Factory, ML Services, Data Bricks and MLOps.",source:"Microsoft",date:"2019-2021",readTime:"Read",link:"/microsoft-ai",featured:!1,isVideo:!1,isInternal:!0,thumbnail:Kx},{type:"Media",title:"Weekend Sunrise: Surgical Wonders",description:"Featured interview with Sally Bowrey discussing HoloLens technology in surgery, improving communication between doctors, specialists and patients.",source:"Channel 7",date:"Oct 2022",readTime:"Watch",link:"https://www.youtube.com/watch?v=Gds87bj_lLU",featured:!1,isVideo:!0},{type:"Speech",title:"Ancora Imparo - Monash Graduation",description:"Graduation speech at Monash University sharing career insights on technology, diversity in tech, and the future of computing.",source:"Monash University",date:"Jun 2021",readTime:"Watch",link:"https://youtu.be/a5Pqk36hNo4",featured:!1,isVideo:!0}],QP=()=>{const e=Ug.find(r=>r.featured),t=Ug.filter(r=>!r.featured);return c.jsxs("section",{id:"stories",className:"relative py-24 lg:py-32 bg-muted/30",children:[c.jsxs("div",{className:"absolute inset-0 opacity-20",children:[c.jsx("div",{className:"absolute top-20 left-1/4 w-72 h-72 bg-primary/10 rounded-full blur-3xl"}),c.jsx("div",{className:"absolute bottom-40 right-1/4 w-64 h-64 bg-primary/5 rounded-full blur-3xl"})]}),c.jsxs("div",{className:"relative container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-16",children:[c.jsx("span",{className:"inline-block text-sm font-medium text-primary uppercase tracking-widest mb-4",children:"Stories & Media"}),c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground font-display mb-4",children:"Insights & Appearances"}),c.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Thought leadership on AI, technology, and the future of work across leading publications and media outlets."})]}),e&&c.jsx(dt,{className:"mb-12 overflow-hidden border-primary/20 hover:border-primary/40 transition-all duration-300 group",children:c.jsx(ht,{className:"p-0",children:c.jsxs("div",{className:"grid md:grid-cols-2 gap-0",children:[c.jsx("div",{className:"aspect-video md:aspect-auto min-h-[300px]",children:e.isVideo&&Fu(e.link)?c.jsx("iframe",{className:"w-full h-full min-h-[300px]",src:`https://www.youtube.com/embed/${Fu(e.link)}`,title:e.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):c.jsx("div",{className:"w-full h-full bg-gradient-to-br from-primary/20 via-muted to-primary/10 flex items-center justify-center",children:c.jsx("div",{className:"text-center p-8",children:c.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-primary/20 flex items-center justify-center",children:c.jsx("span",{className:"text-2xl font-bold text-primary",children:"Featured"})})})})}),c.jsxs("div",{className:"p-8 lg:p-12 flex flex-col justify-center",children:[c.jsx(zg,{variant:"secondary",className:"w-fit mb-4 bg-primary/10 text-primary border-0",children:e.type}),c.jsx("h3",{className:"text-2xl lg:text-3xl font-bold text-foreground mb-4 group-hover:text-primary transition-colors",children:e.title}),c.jsx("p",{className:"text-muted-foreground mb-6 leading-relaxed",children:e.description}),c.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-6",children:[c.jsx("span",{className:"font-medium text-foreground",children:e.source}),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(bs,{className:"w-4 h-4"}),e.date]}),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(pE,{className:"w-4 h-4"}),e.readTime]})]}),c.jsxs("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-primary font-medium hover:gap-3 transition-all",children:[e.isVideo?"Watch on YouTube":"Read Article",e.isVideo?c.jsx(jn,{className:"w-4 h-4"}):c.jsx($t,{className:"w-4 h-4"})]})]})]})})}),c.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map((r,n)=>{const s=r.isVideo?Fu(r.link):null;return c.jsxs(dt,{className:"group overflow-hidden border-border/20 hover:border-primary/30 transition-all duration-300 hover:shadow-lg hover:shadow-
305primary/5 bg-card",children:[(s||r.thumbnail)&&c.jsxs("a",{href:r.link,target:r.isInternal?void 0:"_blank",rel:r.isInternal?void 0:"noopener noreferrer",className:"relative block aspect-video overflow-hidden",children:[c.jsx("img",{src:s?`https://img.youtube.com/vi/${s}/hqdefault.jpg`:r.thumbnail,alt:r.title,className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"}),c.jsx("div",{className:"absolute inset-0 bg-black/30 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:c.jsx("div",{className:"w-14 h-14 rounded-full bg-primary flex items-center justify-center",children:s?c.jsx(jn,{className:"w-6 h-6 text-primary-foreground fill-primary-foreground"}):c.jsx($t,{className:"w-6 h-6 text-primary-foreground"})})})]}),c.jsxs(ht,{className:"p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx(zg,{variant:"secondary",className:`border-0 ${r.type==="Media"?"bg-secondary/50 text-secondary-foreground":"bg-primary/10 text-primary"}`,children:r.type}),c.jsx("span",{className:"text-xs text-muted-foreground",children:r.date})]}),c.jsx("h3",{className:"text-lg font-semibold text-foreground mb-3 group-hover:text-primary transition-colors line-clamp-2",children:r.title}),c.jsx("p",{className:"text-sm text-muted-foreground mb-4 line-clamp-2",children:r.description}),c.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-border/20",children:[c.jsx("span",{className:"text-sm font-medium text-foreground",children:r.source}),r.isInternal?c.jsxs(Ae,{to:r.link,className:"inline-flex items-center gap-1 text-sm text-primary hover:gap-2 transition-all",children:[r.readTime,c.jsx($t,{className:"w-3 h-3"})]}):c.jsxs("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-sm text-primary hover:gap-2 transition-all",children:[r.readTime,r.isVideo?c.jsx(jn,{className:"w-3 h-3"}):c.jsx($t,{className:"w-3 h-3"})]})]})]})]},n)})}),c.jsx("div",{className:"text-center mt-12",children:c.jsxs(Ae,{to:"/conferences",className:"inline-flex items-center gap-2 px-6 py-3 rounded-full border border-border/50 text-foreground hover:border-primary/50 hover:text-primary transition-all",children:["View All Stories",c.jsx($t,{className:"w-4 h-4"})]})})]})]})},cs=b.forwardRef(({className:e,type:t,...r},n)=>c.jsx("input",{type:t,className:le("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:n,...r}));cs.displayName="Input";const Jx=b.forwardRef(({className:e,...t},r)=>c.jsx("textarea",{className:le("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
305ing-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:r,...t}));Jx.displayName="Textarea";const XP=[{icon:EE,title:"Keynote Speaking",description:"Inspiring audiences with insights on AI, digital transformation, and the future of technology."},{icon:Af,title:"Workshops & Training",description:"Interactive sessions on AI strategy, responsible innovation, and digital literacy for teams."},{icon:hE,title:"Corporate Events",description:"Tailored presentations for boards, leadership teams, and company-wide events."}],eR=[{event:"TEDxMelbourne",topic:"Why AI is Not Your Friend",location:"Melbourne, Australia",date:"2024"},{event:"RAIR Symposium",topic:"Next Generation Responsible AI",location:"Adelaide, Australia",date:"December 2025"},{event:"SXSW Sydney",topic:"Hello Robot: Reimagining Life with AI Driven Robots and Agents",location:"Sydney, Australia",date:"October 2025"},{event:"Monash Global Leader's Summit",topic:"The Geopolitics of AI",location:"Prato, Italy",date:"July 2025"}],tR=()=>{const{toast:e}=fa(),[t,r]=b.useState(!1),[n,s]=b.useState({name:"",email:"",organization:"",eventDetails:""}),o=a=>{const{name:l,value:u}=a.target;s(d=>({...d,[l]:u}))},i=async a=>{a.preventDefault(),r(!0);try{const{error:l}=await It.from("booking_inquiries").insert({name:n.name,email:n.email,organization:n.organization,event_details:n.eventDetails});if(l)throw l;e({title:"Inquiry Sent!",description:"Thank you for your interest. We'll be in touch within 48 hours."}),s({name:"",email:"",organization:"",eventDetails:""})}catch(l){console.error("Error submitting inquiry:",l),e({title:"Error",description:"Failed to submit inquiry. Please try again.",variant:"destructive"})}finally{r(!1)}};return c.jsxs("section",{id:"speaking",className:"relative py-24 lg:py-32 bg-background",children:[c.jsxs("div",{className:"absolute inset-0 opacity-20",children:[c.jsx("div",{className:"absolute top-32 right-10 w-80 h-80 bg-primary/10 rounded-full blur-3xl"}),c.jsx("div",{className:"absolute bottom-20 left-20 w-64 h-64 bg-primary/5 rounded-full blur-3xl"})]}),c.jsxs("div",{className:"relative container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-16",children:[c.jsx("span",{className:"inline-block text-sm font-medium text-primary uppercase tracking-widest mb-4",children:"Speaking"}),c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground font-display mb-4",children:"Book Rita for Your Event"}),c.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Engaging keynotes and workshops on AI, technology leadership, and responsible innovation."})]}),c.jsx("div",{className:"grid md:grid-cols-3 gap-6 mb-20",children:XP.map((a,l)=>c.jsx(dt,{className:"group p-6 border-border/20 hover:border-primary/30 transition-all duration-300 hover:shadow-lg hover:shadow-primary/5 bg-card",children:c.jsxs(ht,{className:"p-0",children:[c.jsx("div",{className:"w-14 h-14 rounded-xl bg-primary/10 flex items-center justify-center mb-5 group-hover:bg-primary/20 transition-colors",children:c.jsx(a.icon,{className:"w-7 h-7 text-primary"})}),c.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3",children:a.title}),c.jsx("p",{className:"text-muted-foreground",children:a.description})]})},l))}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-start",children:[c.jsxs("div",{children:[c.jsxs("h3",{className:"text-2xl font-bold text-foreground mb-8 flex items-center gap-3",children:[c.jsx(fE,{className:"w-6 h-6 text-primary"}),"Recent Appearances"]}),c.jsx("div",{className:"space-y-4",children:eR.map((a,l)=>c.jsx("div",{className:"p-5 rounded-xl border border-border/20 hover:border-primary/20 transition-all bg-card/50",children:c.jsx("div",{className:"flex items-start justify-between gap-4",children:c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-foreground mb-1",children:a.event}),c.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:a.topic}),c.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(b0,{className:"w-3 h-3"}),a.location]}),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(bs,{className:"w-3 h-3"}),a.date]})]})]})})},l))})]}),c.jsxs("div",{children:[c.jsxs("h3",{className:"text-2xl font-bold text-foreground mb-8 flex items-center gap-3",children:[c.jsx(Kd,{className:"w-6 h-6 text-primary"}),"Booking Inquiry"]}),c.jsx(dt,{className:"border-border/20 bg-card",children:c.jsx(ht,{className:"p-6",children:c.jsxs("form",{onSubmit:i,className:"space-y-5",children:[c.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-foreground mb-2",children:"Your Name"}),c.jsx(cs,{id:"name",name:"name",value:n.name,onChange:o,placeholder:"John Smith",required:!0,className:"bg-background border-border/50 focus:border-primary"})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-foreground mb-2",children:"Email Address"}),c.jsx(cs,{id:"email",name:"email",type:"email",value:n.email,onChange:o,placeholder:"[email protected]",required:!0,className:"bg-background border-border/50 focus:border-primary"})]})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"organization",className:"block text-sm font-medium text-foreground mb-2",children:"Organization"}),c.jsx(cs,{id:"organization",name:"organization",value:n.organization,onChange:o,placeholder:"Your company or event name",required:!0,className:"bg-background border-border/50 focus:border-primary"})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"eventDetails",className:"block text-sm font-medium text-foreground mb-2",children:"Event Details"}),c.jsx(Jx,{id:"eventDetails",name:"eventDetails",value:n.eventDetails,onChange:o,placeholder:"Tell us about your event, including date, location, audience size, and topic of interest...",rows:4,required:!0,className:"bg-background border-border/50 focus:border-primary resize-none"})]}),c.jsx(Ne,{type:"submit",size:"lg",className:"w-full",disabled:t,children:t?"Sending...":c.jsxs(c.Fragment,{children:[c.jsx(Kd,{className:"w-4 h-4 mr-2"}),"Submit Inquiry"]})}),c.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"We typically respond within 48 hours."})]})})})]})]})]})]})},rR=()=>{const[e,t]=b.useState(""),[r,n]=b.useState(!1),{toast:s}=fa(),o=async a=>{if(a.preventDefault(),!(!e.trim()||r)){n(!0);try{const{error:l}=await It.from("newsletter_subscribers").insert({email:e.trim().toLowerCase()});if(l)if(l.code==="23505")s({title:"Already subscribed",description:"This email is already on the list."});else throw l;else s({title:"Subscribed!",description:"You'll receive updates on AI insights and speaking events."});t("")}catch(l){console.error("Subscription error:",l),s({title:"Something went wrong",description:"Please try again later.",variant:"destructive"})}finally{n(!1)}}},i=[{icon:AE,href:"https://twitter.com/rarrigo",label:"Twitter"},{icon:bE,href:"https://linkedin.com/in/ritaarrigo",label:"LinkedIn"},{icon:wE,href:"https://instagram.com/ritaarrigo",label:"Instagram"},{icon:Bi,href:"mailto:[email protected]",label:"Email"}];return c.jsx("footer",{className:"bg-foreground text-background",children:c.jsxs("div",{className:"container mx-auto px-6 py-16",children:[c.jsxs("div",{className:"grid md:grid-cols-3 gap-12 lg:gap-16",children:[c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"font-display text-2xl font-bold",children:"Rita Arrigo"}),c.jsx("p",{className:"text-background/70 mt-2",children:"AI Strategist ⢠TEDx Speaker ⢠Innovation Leader"})]}),c.jsx("div",{className:"flex gap-4",children:i.map(a=>c.jsx("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full bg-background/10 hover:bg-tedx-red flex items-center justify-center transition-all duration-300 hover:scale-110","aria-label":a.label,children:c.jsx(a.icon,{className:"w-5 h-5"})},a.label))})]}),c.jsxs("div",{className:"space-y-6",children:[c.jsx("h4",{className:"font-display text-lg font-semibold",children:"Get in Touch"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-3 text-background/70 hover:text-tedx-red transition-colors",children:[c.jsx(Bi,{className:"w-5 h-5"}),"[email protected]"]}),c.jsxs("div",{className:"flex items-center gap-3 text-background/70",children:[c.jsx(b0,{className:"w-5 h-5"}),"Melbourne, Australia"]})]})]}),c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{children:[c.jsx("h4",{className:"font-display text-lg font-semibold",children:"Stay Updated"}),c.jsx("p",{className:"text-background/70 mt-2 text-sm",children:"Get insights on AI strategy, leadership, and upcoming events."})]}),c.jsxs("form",{onSubmit:o,className:"flex gap-2",children:[c.jsx(cs,{type:"email",placeholder:"Enter your email",value:e,onCh
305ange:a=>t(a.target.value),className:"bg-background/10 border-background/20 text-background placeholder:text-background/50 focus:border-tedx-red",required:!0}),c.jsx(Ne,{type:"submit",disabled:r,className:"bg-tedx-red hover:bg-tedx-red/90 text-white px-4",children:r?c.jsx(En,{className:"w-4 h-4 animate-spin"}):c.jsx(Kd,{className:"w-4 h-4"})})]})]})]}),c.jsxs("div",{className:"mt-12 pt-8 border-t border-background/10 flex flex-col md:flex-row justify-between items-center gap-4 text-sm text-background/50",children:[c.jsxs("p",{children:["© ",new Date().getFullYear()," Rita Arrigo. All rights reserved."]}),c.jsxs("div",{className:"flex gap-6",children:[c.jsx("a",{href:"#",className:"hover:text-background transition-colors",children:"Privacy Policy"}),c.jsx("a",{href:"#",className:"hover:text-background transition-colors",children:"Terms of Service"})]})]})]})})},yh="https://ritaarrigo.lovable.app",nR=`${yh}/opengraph-image-ra.jpg`,Ss=({title:e,description:t,path:r,ogType:n="website",ogImage:s,jsonLd:o})=>{const i=`${yh}${r}`,a=s?s.startsWith("http")?s:`${yh}${s}`:nR,l=o?Array.isArray(o)?o:[o]:[];return c.jsxs(uS,{children:[c.jsx("title",{children:e}),c.jsx("meta",{name:"description",content:t}),c.jsx("link",{rel:"canonical",href:i}),c.jsx("meta",{property:"og:title",content:e}),c.jsx("meta",{property:"og:description",content:t}),c.jsx("meta",{property:"og:url",content:i}),c.jsx("meta",{property:"og:type",content:n}),c.jsx("meta",{property:"og:image",content:a}),c.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{name:"twitter:title",content:e}),c.jsx("meta",{name:"twitter:description",content:t}),c.jsx("meta",{name:"twitter:image",content:a}),l.map((u,d)=>c.jsx("script",{type:"application/ld+json",children:JSON.stringify(u)},d))]})},sR=()=>c.jsxs("main",{className:"min-h-screen",children:[c.jsx(Ss,{title:"Rita Arrigo | Shaping Australia's AI Future",description:"Globally recognised AI strategist, TEDxMelbourne speaker, and innovation leader on responsible AI, digital twins, and the human in the Age of AI.",path:"/",jsonLd:{"@context":"https://schema.org","@type":"Person",name:"Rita Arrigo",jobTitle:"AI Strategist & TEDx Speaker",url:"https://ritaarrigo.lovable.app/",sameAs:["https://linkedin.com/in/ritaarrigo","https://twitter.com/rarrigo","https://instagram.com/ritaarrigo"],worksFor:{"@type":"Organization",name:"Independent"},description:"Globally recognised leader in artificial intelligence, digital transformation, and responsible technology innovation."}}),c.jsx(WP,{}),c.jsx(qP,{}),c.jsx(QP,{}),c.jsx(tR,{}),c.jsx(rR,{})]}),oR="/assets/ask-rita-rwXD3GhK.jpg",iR=()=>{const e="+61342317236";return c.jsxs("main",{className:"min-h-screen bg-gradient-to-b from-background via-background to-muted/20",children:[c.jsx(Ss,{title:"Ask-Rita â AI Assistant by Rita Arrigo (Rita 2.0)",description:"Call or message Ask-Rita, an AI assistant trained on Rita Arrigo's talks and writing. Explore responsible AI, agentic systems, and the human in the Age of AI in 90+ languages.",path:"/ask-rita"}),c.jsx("header",{className:"container mx-auto px-4 py-6",children:c.jsxs(Ae,{to:"/",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-primary transition-colors",children:[c.jsx(Ft,{className:"w-4 h-4"}),c.jsx("span",{className:"text-sm font-medium",children:"Back to Home"})]})}),c.jsx("section",{className:"container mx-auto px-4 py-12 lg:py-20",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsxs("div",{className:"relative inline-block mb-8",children:[c.jsx("div",{className:"w-40 h-40 md:w-52 md:h-52 rounded-full overflow-hidden border-4 border-primary/20 shadow-2xl shadow-primary/10 mx-auto",children:c.jsx("img",{src:oR,alt:"Ask Rita AI Assistant",className:"w-full h-full object-cover"})}),c.jsx("div",{className:"absolute -bottom-2 -right-2 w-12 h-12 bg-primary rounded-full flex items-center justify-center shadow-lg",children:c.jsx("span",{className:"text-primary-foreground text-xl",children:"ð¤"})})]}),c.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-4",children:"Ask-Rita Arrigo"}),c.jsx("p",{className:"text-lg text-primary font-medium mb-6",children:"AI Assistant ⢠Rita 2.0"}),c.jsxs("div",{className:"flex justify-center gap-4 mb-8",children:[c.jsxs("a",{href:`sms:${e}`,className:"flex flex-col items-center gap-2 p-4 rounded-xl bg-muted/50 hover:bg-muted transition-colors min-w-[80px]",children:[c.jsx(Mm,{className:"w-6 h-6 text-foreground"}),c.jsx("span",{className:"text-xs text-muted-foreground",children:"message"})]}),c.jsxs("a",{href:`tel:${e}`,className:"flex flex-col items-center gap-2 p-4 rounded-xl bg-muted/50 hover:bg-muted transition-colors min-w-[80px]",children:[c.jsx(Lm,{className:"w-6 h-6 text-foreground"}),c.jsx("span",{className:"text-xs text-muted-foreground",children:"call"})]}),c.jsxs("a",{href:"https://youtu.be/h4yCIMlH9eI?si=FpWDsuLaXftWbbsl",target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center gap-2 p-4 rounded-xl bg-muted/50 hover:bg-muted transition-colors min-w-[80px]",children:[c.jsx(PE,{className:"w-6 h-6 text-foreground"}),c.jsx("span",{className:"text-xs text-muted-foreground",children:"video"})]}),c.jsxs("a",{href:"mailto:[email protected]",className:"flex flex-col items-center gap-2 p-4 rounded-xl bg-muted/50 hover:bg-muted transition-colors min-w-[80px]",children:[c.jsx(Bi,{className:"w-6 h-6 text-foreground"}),c.jsx("span",{className:"text-xs text-muted-foreground",children:"mail"})]})]}),c.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-lg border border-border/50 max-w-sm mx-auto mb-12",children:[c.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"mobile"}),c.jsx("a",{href:`tel:${e}`,className:"text-xl md:text-2xl font-semibold text-primary hover:text-primary/80 transition-colors",children:"+61 3 4231 7236"})]})]}),c.jsxs("div",{className:"bg-card rounded-3xl p-8 md:p-12 shadow-xl border border-border/50 mb-12",children:[c.jsx("div",{className:"flex items-start gap-4 mb-6",children:c.jsx(jE,{className:"w-10 h-10 text-primary/40 flex-shrink-0 rotate-180"})}),c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-6",children:"Introducing Ask-Rita"}),c.jsxs("p",{className:"text-lg md:text-xl text-muted-foreground leading-relaxed mb-8",children:["An AI assistant trained on my public talks, interviews, and writing. It helps people explore ",c.jsx("span",{className:"text-foreground font-medium",children:"responsible AI"}),", ",c.jsx("span",{className:"text-foreground font-medium",children:"agentic systems"}),", and how to focus on ",c.jsx("span",{className:"text-foreground font-medium",children:"the human in the Age of AI"}),"."]}),c.jsxs("p",{className:"text-lg text-muted-foreground leading-relaxed",children:["Created in collaboration with Australian AI startup"," ",c.jsx("a",{href:"https://agenticscale.ai",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-medium",children:"AgenticScale.AI"})," ","using their Agentic Mesh Platform."]})]}),c.jsxs("div",{className:"bg-card rounded-3xl p-6 md:p-8 shadow-xl border border-border/50 mb-12",children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-6 text-center",children:"Watch: Meet Ask-Rita"}),c.jsx("div",{className:"aspect-video rounded-2xl overflow-hidden shadow-lg",children:c.jsx("iframe",{src:"https://www.youtube.com/embed/h4yCIMlH9eI",title:"Meet Ask-Rita",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full"})})]}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-12",children:[c.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-lg border border-border/50",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-4",children:c.jsx(CE,{className:"w-6 h-6 text-primary"})}),c.jsx("h3",{className:"text-xl font-bold text-foreground mb-3",children:"Guardrails by De
305sign"}),c.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[c.jsxs("li",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-primary mt-1",children:"â¢"}),c.jsx("span",{children:"Provenance/citations on answers"})]}),c.jsxs("li",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-primary mt-1",children:"â¢"}),c.jsx("span",{children:"Clear labeling (AI assistant, not me)"})]}),c.jsxs("li",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-primary mt-1",children:"â¢"}),c.jsx("span",{children:"No sensitive advice"})]})]})]}),c.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-lg border border-border/50",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-4",children:c.jsx(yE,{className:"w-6 h-6 text-primary"})}),c.jsx("h3",{className:"text-xl font-bold text-foreground mb-3",children:"Truly Accessible"}),c.jsxs("p",{className:"text-muted-foreground mb-4",children:["Ask-Rita speaks ",c.jsx("span",{className:"text-foreground font-bold text-2xl",children:"90"})," languages â making my insights accessible to people around the world!"]})]})]}),c.jsxs("div",{className:"text-center bg-gradient-to-r from-primary/10 via-primary/5 to-primary/10 rounded-3xl p-8 md:p-12 border border-primary/20",children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-4",children:"Give her a call and get chatting with Rita 2.0"}),c.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"I'd love your feedback!"}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[c.jsxs(Ne,{size:"lg",className:"group",onClick:()=>window.location.href=`tel:${e}`,children:[c.jsx(Lm,{className:"w-5 h-5 mr-2 group-hover:scale-110 transition-transform"}),"Call Ask-Rita"]}),c.jsxs(Ne,{variant:"outline",size:"lg",onClick:()=>window.location.href=`sms:${e}`,children:[c.jsx(Mm,{className:"w-5 h-5 mr-2"}),"Send a Message"]})]})]})]})}),c.jsx("footer",{className:"container mx-auto px-4 py-8 text-center",children:c.jsxs("p",{className:"text-sm text-muted-foreground",children:["© ",new Date().getFullYear()," Rita Arrigo. Ask-Rita is an AI assistant and may not always be accurate."]})})]})},aR=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Ss,{title:"Beyond 23 â Digital News Academy | Rita Arrigo",description:"Rita Arrigo at Beyond 23 with the Digital News Academy: a HoloHuman experience exploring the future of journalism, AI, and immersive storytelling.",path:"/beyond-23",ogType:"article",jsonLd:{"@context":"https://schema.org","@type":"Article",headline:"Beyond 23 â Digital News Academy",author:{"@type":"Person",name:"Rita Arrigo"},publisher:{"@type":"Person",name:"Rita Arrigo"}}}),c.jsx("header",{className:"border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50",children:c.jsxs("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:[c.jsxs(Ae,{to:"/",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Ft,{className:"w-4 h-4"}),c.jsx("span",{children:"Back to Home"})]}),c.jsx(Ae,{to:"/",className:"text-xl font-bold text-primary",children:"Rita Arrigo"})]})}),c.jsx("section",{className:"py-16 md:py-24 bg-gradient-to-b from-primary/5 to-background",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[c.jsxs("div",{className:"flex items-center justify-center gap-2 text-muted-foreground mb-4",children:[c.jsx(bs,{className:"w-4 h-4"}),c.jsx("span",{children:"November 14, 2022"})]}),c.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-6",children:"Beyond 23 & Digital News Academy"}),c.jsx("p",{className:"text-xl text-muted-foreground",children:"It was a pleasure to be at Beyond 23 News Corp"})]})})}),c.jsx("section",{className:"py-12 md:py-16",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsxs("div",{className:"mb-12 rounded-2xl overflow-hidden shadow-2xl",children:[c.jsx("img",{src:qx,alt:"Rita Arrigo presenting HoloHuman at Beyond 23",className:"w-full h-auto"}),c.jsx("div",{className:"bg-card p-4 text-center",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Demonstrating HoloHuman with HoloLens 2 at Beyond 23"})})]}),c.jsxs("article",{className:"prose prose-lg max-w-none",children:[c.jsx("p",{className:"text-lg text-foreground leading-relaxed mb-6",children:"Bringing together thought leaders from a cross-section of industries to debate and discuss emerging themes affecting all Australia."}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:"Hosted by Hannah Hollis, discussions included The Voice by Nyunggai Warren Mundine, Dean Parkin, Anthony Dillon. Tom Connell's presentation of the census analysis through the eyes of children and their families, gave us a factual view of what Australia looks like, including the Irish in Moreton Bay Qld, the Chinese Ancestry in Boroondara, and the Indian Ancestry in Wyndham. A very entertaining and must watch to see to learn about our Aussie children ambitions."}),c.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-6",children:["The discussion by Arthur Sinodos Ambassador of Australia to the United States was enlightening due to his deep understanding of the alliances. My talk after lunch ",c.jsx("strong",{children:"AI and Immersive Technology(XR) now and beyond, changing how stories are experienced"}),", was focused on the Digital News Academy. So many enthusiastic journalist keen to learn about Digital, AI and the Immersive Web."]}),c.jsx("div",{className:"bg-primary/5 border-l-4 border-primary p-6 rounded-r-lg my-8",children:c.jsx("p",{className:"text-foreground font-medium mb-0",children:"Sharing details on the latest in Generative AI, including Dalle, Jasper AI, Nerfs, GANs and how AI is transforming our Cities."})}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:"Through to creating immersive content with Unreal Engine, Volumetric Capture and 3D Projection. How the metaverse is being used for example the Health Metaverse being utilised by Gig XR. We demonstrated HoloHuman, I wore a HoloLens 2 and showed the Hologram on the mammoth screen. Followed by a discu
305ssion in Responsible AI and live demo's including the Digital Human."}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8",children:"I enjoyed the Digital News Academy Workshop, learning so many new techniques for creating digital content."})]}),c.jsxs("div",{className:"mt-12 bg-card rounded-2xl p-8 border border-border",children:[c.jsxs("h2",{className:"text-2xl font-bold text-foreground mb-4 flex items-center gap-2",children:[c.jsx(jn,{className:"w-6 h-6 text-primary"}),"Watch the Highlights"]}),c.jsx("p",{className:"text-muted-foreground mb-6",children:"Check out the TikTok video from the event showcasing the Digital News Academy experience."}),c.jsx("a",{href:"https://www.tiktok.com/@ritaarrigo/video/7165831601396501761",target:"_blank",rel:"noopener noreferrer",children:c.jsxs(Ne,{className:"gap-2",children:[c.jsx($t,{className:"w-4 h-4"}),"Watch on TikTok"]})})]}),c.jsx("div",{className:"mt-16 pt-8 border-t border-border flex justify-center",children:c.jsx(Ae,{to:"/",children:c.jsxs(Ne,{variant:"outline",className:"gap-2",children:[c.jsx(Ft,{className:"w-4 h-4"}),"Back to Home"]})})})]})})}),c.jsx("footer",{className:"py-8 border-t border-border bg-muted/30",children:c.jsx("div",{className:"container mx-auto px-4 text-center",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"© 2024 Rita Arrigo. All rights reserved."})})})]}),lR="/assets/netcafe-opening-night-CcHyJtyM.jpeg",cR="/assets/cybercafe-exhibit-1-HxsIcT3B.jpg",uR="/assets/cybercafe-exhibit-2-Dki71oV4.jpg",dR="/assets/rita-netcafe-original-BSxCL7aO.jpg",hR="/assets/museum-gallery-iyrOrXwS.jpg",fR=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Ss,{title:"Cyber Cafe Melbourne â A History | Rita Arrigo",description:"The story of Cyber Cafe Melbourne â Rita Arrigo's pioneering net cafe and its exhibits at the National Centre of Multimedia.",path:"/cyber-cafe",ogType:"article"}),c.jsx("header",{className:"border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50",children:c.jsxs("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:[c.jsxs(Ae,{to:"/",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Ft,{className:"w-4 h-4"}),c.jsx("span",{children:"Back to Home"})]}),c.jsx(Ae,{to:"/",className:"text-xl font-bold text-primary",children:"Rita Arrigo"})]})}),c.jsx("section",{className:"py-16 md:py-24 bg-gradient-to-b from-primary/5 to-background",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[c.jsxs("div",{className:"flex items-center justify-center gap-2 text-muted-foreground mb-4",children:[c.jsx(bs,{className:"w-4 h-4"}),c.jsx("span",{children:"October 2024"})]}),c.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-6",children:"Cyber Café at National Communications Museum"}),c.jsx("p",{className:"text-xl text-muted-foreground",children:"Hawthorn, Victoria - Opening of Australia's first new museum in 25 years"})]})})}),c.jsx("section",{className:"py-12 md:py-16",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsxs("div",{className:"mb-12 rounded-2xl overflow-hidden shadow-2xl",children:[c.jsx("img",{src:Zx,alt:"Rita Arrigo at the National Communications Museum opening",className:"w-full h-auto"}),c.jsx("div",{className:"bg-card p-4 text-center",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Rita Arrigo at the National Communications Museum opening in Hawthorn"})})]}),c.jsxs("article",{className:"prose prose-lg max-w-none",children:[c.jsx("p",{className:"text-lg text-foreground leading-relaxed mb-6",children:"In 1995, on Acland Street in St Kilda, a small café opened its doors to something vast, strange, and world-changing. It was Australia's first internet café â the netcafe â and for many Melburnians, it was their very first encounter with the internet."}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:"On opening night, among the curious crowd was actor Rachel Griffiths, a close friend and part of Melbourne's early internet café scene. In one now-iconic photograph, she's holding a brick-sized mobile phone â the kind that once felt futur
305istic and now feels almost mythic. That very brickphone is featured today in the museum, a reminder of just how far communication technology has travelled in a single generation."}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:"For Rita Arrigo, founder of the original netcafe, that first exposure to the internet was electric. She became completely absorbed by its possibilities â not just the novelty, but the profound shift it represented in how humans connect, create, and share knowledge. That obsession became a lifelong trajectory: from digital pioneer to Microsoft's Chief Digital Advisor, to a national advocate for women in technology, and now a leader working at the intersection of public policy and artificial intelligence."}),c.jsx("div",{className:"bg-primary/5 border-l-4 border-primary p-6 rounded-r-lg my-8",children:c.jsx("p",{className:"text-foreground font-medium mb-0",children:"Nearly three decades later, the story has come full circle."})}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:"In October 2024, the National Communications Museum opened its doors â the first new museum to open in Victoria in 25 years â and at its heart sits the recreated Cyber Café. Rita played an integral role in bringing this space to life, from concept to execution, ensuring it captured not just the technology of the mid-1990s, but the feeling of that moment in time."}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:"With Rita as narrator, the Cyber Café takes visitors on a nostalgic journey through early desktop experiences: MSN Messenger conversations, ego-surfing on Windows 3.11, and the iconic games that defined an era when the internet still felt intimate, experimental, and full of promise."}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:"The Cyber Café is more than a reconstruction. It's a reflective space â one that invites us to look back at where we've been, while quietly asking us to consider where we're going next. From dial-up modems to artificial intelligence, the story of communication technology is still being written. And it turns out, it started for many of us with a coffee, a computer, and a sense that the future had just arrived."})]}),c.jsxs("section",{className:"mt-16",children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-8 text-center",children:"Then & Now: A Visual Journey"}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"1995 â The Original Netcafe"}),c.jsxs("div",{className:"rounded-xl overflow-hidden shadow-lg",children:[c.jsx("img",{src:lR,alt:"Rachel Griffiths and Rita Arrigo at netcafe's opening night, 1995",className:"w-full h-auto object-cover"}),c.jsx("div",{className:"bg-card p-3",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Rachel Griffiths with the iconic brickphone at opening night"})})]}),c.jsxs("div",{className:"rounded-xl overflow-hidden shadow-lg",children:[c.jsx("img",{src:dR,alt:"Rita Arrigo at the original netcafe",className:"w-full h-auto object-cover"}),c.jsx("div",{className:"bg-card p-3",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Rita at the original netcafe in St Kilda"})})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"2024 â The Museum Exhibit"}),c.jsxs("div",{className:"rounded-xl overflow-hidden shadow-lg",children:[c.jsx("img",{src:uR,alt:"Rita Arrigo at the recreated Cyber Café exhibit",className:"w-full h-auto object-cover"}),c.jsx("div",{className:"bg-card p-3",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Rita at the recreated Cyber Café exhibit"})})]}),c.jsxs("div",{className:"rounded-xl overflow-hidden shadow-lg",children:[c.jsx("img",{src:cR,alt:"Visitors exploring the Cyber Café exhibit",className:"w-full h-auto object-cover"}),c.jsx("div",{className:"bg-card p-3",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Visitors experiencing the recreated Cyber Café"})})]})]})]}),c.jsxs("div",{className:"mt-8 rounded-xl overflow-hidden shadow-lg",children:[c.jsx("img",{src:hR,alt:"Communication technology exhibits at the National Communications Museum",className:"w-full h-auto object-cover"}),c.jsx("div",{className:"bg-card p-3",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"The evolution of communication technology on display at the museum"})})]})]}),c.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 my-8 text-center",children:[c.jsx("p",{className:"text-muted-foreground mb-4",children:"Visit the Cyber Café exhibit at the National Communications Museum"}),c.jsxs("a",{href:"https://www.nationalcommunicationsmuseum.com.au/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-primary hover:underline font-medium",children:["National Communications Museum",c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),c.jsx("polyline",{points:"15 3 21 3 21 9"}),c.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})]})]}),c.jsx("div",{className:"mt-16 pt-8 border-t border-border flex justify-center",children:c.jsx(Ae,{to:"/",children:c.jsxs(Ne,{variant:"outline",className:"gap-2",children:[c.jsx(Ft,{className:"w-4 h-4"}),"Back to Home"]})})})]})})}),c.jsx("footer",{className:"py-8 border-t border-border bg-muted/30",children:c.jsx("div",{className:"container mx-auto px-4 text-center",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"© 2024 Rita Arrigo. All rights reserved."})})})]}),pR=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Ss,{title:"Microsoft AI â Future Now | Rita Arrigo",description:"Rita Arrigo's work with Microsoft on AI â leadership, strategy, and the road to responsible enterprise AI.",path:"/microsoft-ai",ogType:"article"}),c.jsx("header",{className:"sticky top-0 z-50 w-full border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:c.jsxs("div",{className:"container flex h-16 items-center justify-between",children:[c.jsxs(Ae,{to:"/",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Ft,{className:"w-4 h-4"}),c.jsx("span",{children:"Back to Home"})]}),c.jsx(Ae,{to:"/",className:"font-display text-xl font-bold text-foreground",children:"Rita Arrigo"})]})}),c.jsx("section",{className:"relative py-16 lg:py-24 bg-gradient-to-b from-primary/5 to-background",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[c.jsx("span",{className:"inline-block text-sm font-medium text-primary uppercase tracking-widest mb-4",children:"Microsoft"}),c.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground font-display mb-6",children:"AI Ambassador at Microsoft"}),c.jsx("p",{className:"text-muted-foreground",children:"Building data-driven organisations with Azure AI"})]})})}),c.jsx("article",{className:"py-12 lg:py-20",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsx("div",{className:"mb-12 rounded-xl overflow-hidden shadow-lg",children:c.jsx("img",{src:Kx,alt:"Microsoft Future Now - Every fish counts initiative with the Northern Territory Government",className:"w-full h-auto"})}),c.jsxs("div",{className:"prose prose-lg max-w-none",children:[c.jsx("p",{className:"text-lg text-foreground leading-relaxed mb-6",children:"As an AI Ambassador at Microsoft, Rita engaged with Microsoft clients to create data driven organisations with Azure AI, Cognitive Services, Azure Data Factory, ML Services, Data Bricks and MLOps."}),c.jsx("p",{className:"text-lg text-foreground leading-relaxed mb-6",children:"Rita lead a program for a Machine Learning Proof of Concept for Australia's largest Data Customer with a focus across key team's members including Data Scientists, Citizen Data Scientists, and Infrastru
305cture Teams, resulting in the plan to build an AI Centre of Excellence."}),c.jsx("p",{className:"text-lg text-foreground leading-relaxed mb-8",children:"A range of 'AI for Good' initiatives, to support Inclusive Cities, Diversity, Sustainability and Humanitarian aspects. One of the projects involved bringing back the Magpie Geese to Kakadu."}),c.jsxs("div",{className:"bg-muted/30 rounded-xl p-8 border border-border/40 mb-8",children:[c.jsx("h2",{className:"text-2xl font-bold text-foreground font-display mb-4",children:"Healthy Country AI"}),c.jsx("p",{className:"text-muted-foreground mb-6",children:"Learn more about the Healthy Country AI initiative - using artificial intelligence to support conservation and traditional land management practices."}),c.jsxs("a",{href:"https://github.com/microsoft/HealthyCountryAI",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors font-medium",children:[c.jsx("span",{children:"View on GitHub"}),c.jsx($t,{className:"w-4 h-4"})]})]})]})]})})}),c.jsx("footer",{className:"py-8 border-t border-border/40",children:c.jsx("div",{className:"container mx-auto px-4 text-center",children:c.jsx(Ae,{to:"/",className:"text-muted-foreground hover:text-primary transition-colors",children:"â Back to Home"})})})]}),mR="/assets/vogue-future-dreaming-DTHX6Ncq.jpg",gR="/assets/csiro-ai-scholarships-OCLWPVxm.jpg",yR="/assets/satya-visit-MnuBD7Bw.jpg",vR="/assets/dawn-of-enlightenment-gyjnRRJm.jpg",wR="/assets/schneider-keynote-B482N5SZ.jpg",xR="/assets/rmit-hackathon-DdAqRJAz.jpg",bR="/assets/mixed-reality-lecture-WotKPycq.jpg",_R="/assets/women-in-software-B3TY0doq.jpg",kR="/assets/pausefest-award-BqVUBDNV.jpg",SR="/assets/microsoft-ignite-DtwlO0Dp.jpg",ER="/assets/monash-ai-bias-podcast-B0hqnK8B.jpg",jR="/assets/mediaweek-ai-debate-ByzfQlmm.jpg",TR="/assets/sxsw-sydney-cyber-ai-DesLFCM-.jpg",NR="/assets/csiro-responsible-ai-BoQlRpcV.png",CR="/assets/csiro-rain-launch-D11hc4ae.jpg",AR="/assets/growth-summit-agentic-D8Ybh_nK.jpg",PR=e=>{const t=/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/,r=e.match(t);return r?r[1]:null},Fg=e=>{const t=e.replace(/(\d+)(st|nd|rd|th)/,"$1"),r=new Date(t);if(!isNaN(r.getTime()))return r.getTime();const n=t.match(/^([A-Za-z]+)\s+(\d{4})$/);if(n){const o=new Date(`${n[1]} 1, ${n[2]}`);if(!isNaN(o.getTime()))return o.getTime()}const s=t.match(/^(\d{4})$/);return s?new Date(`January 1, ${s[1]}`).getTime():0},si=[{title:"MYOB Breakthrough Live: AI is Not Your Friend",link:"https://www.youtube.com/watch?v=YsecaH9acq4",date:"May 2026",type:"video"},{title:"The agentic shift: AI experts on why failing fast is no longer enough",link:"https://www.smartcompany.com.au/partner-content/the-agentic-shift-ai-experts-on-why-failing-fast-is-no-longer-enough/",date:"February 2026",type:"article",thumbnail:AR},{title:"Joe Hildebrand and Rita Arrigo face off on AI and journalism in Mediaweek's first Newsmakers debate",link:"https://www.mediaweek.com.au/joe-hildebrand-and-rita-arrigo-face-off-on-ai-and-journalism-in-mediaweeks-first-newsmakers-debate/",date:"Oct 15 2025",type:"podcast",thumbnail:jR},{title:"Why AI Careers Are Built Faster in Community",link:"https://youtu.be/IeK5HbAoBQI?si=F_DQo_UH_QAKz73Z",date:"Dec 2025",type:"video"},{title:"What Happens Next: How Do We Teach Machines to Think Responsibly?",link:"https://lens.monash.edu/whnpodcast-bias-in-ai-s5-part2/",date:"2021",type:"podcast",thumbnail:ER},{title:"SXSW Sydney Insights: 8 things cyber experts want us to know about AI right now",link:"https://www.commbank.com.au/business/brighter-perspectives/generative-ai-cyber-security.html",date:"Oct 2023",type:"article",thumbnail:TR},{title:"One million 'Introduction to AI' scholarships available to Australians",link:"https://www.csiro.au/en/news/All/News/2024/March/Introduction-to-AI-scholarships-available-to-Australians",date:"1 March 2024",type:"article",thumbnail:gR},{title:"Responsible AI is the business for Australia",link:"https://www.csiro.au/en
305/news/All/Articles/2023/July/business-potential-responsible-AI",date:"July 2023",type:"article",thumbnail:NR},{title:"Launch of Responsible AI Network",link:"https://www.csiro.au/en/news/All/Articles/2023/March/ai-leadership-summit",date:"March 2023",type:"article",thumbnail:CR},{title:"XConf 2023 Keynote: Leading innovation responsibly in the race for AI",link:"https://youtu.be/ReXRrhB_qDQ?si=GCqeTb4oeAD3O7Xc",date:"Nov 2023",type:"video"},{title:"AI: From Imagination to Reality",link:"https://youtu.be/7aa6rOK2D98?si=JDpwFLV6ktkvXRdJ",date:"June 2023",type:"video"},{title:"The Ethics of AI Art",link:"https://youtu.be/tomrjd9IoW0?si=Kl14LSPMx1uPmCTf",date:"31st May 2023",type:"video"},{title:"AI in Infrastructure and how it is going to change our cities with Rita Arrigo",link:"https://youtu.be/P38YTK9r1Nc?si=yvE3R7tH_a0iWlRl",date:"Nov 2022",type:"video"},{title:"Emerging jobs in Data Science and AI | Monash Tech Talks",link:"https://youtu.be/hA30MpJS7QU",date:"31 May 2021",type:"video"},{title:"Future dreaming: meet two women shaping the future of AI",link:"https://www.vogue.com.au/vogue-codes/news/future-dreaming-meet-two-women-shaping-the-future-of-ai/news-story/352136bbc2f28590b76a43a180860f82",date:"29 June 2022",type:"article",thumbnail:mR},{title:"The dawn of tech enlightenment, Human and AI",link:"https://www.nowdigital.com.au/the-dawn-of-tech-enlightenment/",date:"Oct 2020",type:"article",thumbnail:vR},{title:"Satya Nadella's Virtual Tour of Australia",link:"https://news.microsoft.com/2020-au-visit/",date:"March 2020",type:"article",thumbnail:yR},{title:"Keynote, Schneider Electric Innovation Day",link:"https://www.facebook.com/597417140592796/posts/when-iwd2020-welcome-you-to-inspire-an-audience-of-engineers-it-was-an-honour-to/1060517954282710/",date:"March 2020",type:"video",thumbnail:wR},{title:"RMIT University, Mixed Reality Hackathon",link:"https://mixedrealityhack.github.io/",date:"October 2019",type:"article",thumbnail:xR},{title:"Mixed Reality Lecture â A vision for instinctual interaction, Immersive Augmented and Virtual Reality World Conference, Singapore",link:"http://claridenglobal.com/conference/2nd-arvr-sg-2019/global-speakers/",date:"October 2019",type:"article",thumbnail:bR},{title:"Women in Software & Applications, Leadership Summit, Keynote",link:"https://aiia.com.au/event/women-in-software-applications-leadership-summit/",date:"October 2018",type:"article",thumbnail:_R},{title:"Creating a more Human World with Inclusion and Emerging Technology â Pausefest Melbourne",link:"https://youtu.be/Rm8XjS87NhE?si=jisffy3Fp15SF5h6",date:"Feb 2020",type:"video"},{title:"Recipient of PauseFest, Super Connector Award",link:"https://www.instagram.com/p/CDu2B7qj32v/?igshid=1pqyj8jemnehf&hl=en",date:"February 2018",type:"article",thumbnail:kR},{title:"Humanising Innovation Microsoft Ignite",link:"https://www.slideshare.net/slideshow/humanising-innovation-microsoft-ignite-2017/72211396",date:"Feb 2017",type:"article",thumbnail:SR}].sort((e,t)=>Fg(t.date)-Fg(e.date)),RR=()=>{const[e,t]=b.useState("all"),r=si.filter(i=>e==="all"?!0:i.type===e),n=si.filter(i=>i.type==="video").length,s=si.filter(i=>i.type==="article").length,o=si.filter(i=>i.type==="podcast").length;return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Ss,{title:"Conferences, Forums, Broadcasting & Articles | Rita Arrigo",description:"A curated portfolio of Rita Arrigo's keynotes, panels, podcasts, broadcasts, and articles on AI, responsible technology, and digital transformation.",path:"/conferences"}),c.jsx("header",{className:"bg-primary/95 text-primary-foreground py-6",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs(Ae,{to:"/",className:"inline-flex items-center gap-2 text-primary-foreground/80 hover:text-primary-foreground transition-colors mb-4",children:[c.jsx(Ft,{className:"w-4 h-4"}),"Back to Home"]}),c.jsx("h1",{className:"text-3xl md:text-4xl font-display font-bold",children:"Select Conferences, Forums, Broadcasting & Articles"}),c.jsx("p",{className:"text-primary-foreground/80 mt-2 text-lg",children:"A collection of keynotes, talks, and featured content"})]})}),c.jsxs("main",{className:"container mx-auto px-4 py-12",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-8",children:[c.jsx(gE,{className:"w-5 h-5 text-muted-foreground"}),c.jsxs(Ne,{variant:e==="all"?"default":"outline",size:"sm",onClick:()=>t("all"),className:"gap-2",children:["All",c.jsxs("span",{className:"text-xs opacity-70",children:["(",si.length,")"]})]}),c.jsxs(Ne,{variant:e==="video"?"default":"outline",size:"sm",onClick:()=>t("video"),className:"gap-2",children:[c.jsx(jn,{className:"w-4 h-4"}),"Videos",c.jsxs("span",{className:"text-xs opacity-70",children:["(",n,")"]})]}),c.jsxs(Ne,{variant:e==="article"?"default":"outline",size:"sm",onClick:()=>t("article"),className:"gap-2",children:[c.jsx(mE,{className:"w-4 h-4"}),"Articles",c.jsxs("span",{className:"text-xs opacity-70",children:["(",s,")"]})]}),c.jsxs(Ne,{variant:e==="podcast"?"default":"outline",size:"sm",onClick:()=>t("podcast"),className:"gap-2",children:[c.jsx(vE,{className:"w-4 h-4"}),"Podcasts",c.jsxs("span",{className:"text-xs opacity-70",children:["(",o,")"]})]})]}),c.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:r.map((i,a)=>{const l=i.type==="video"?PR(i.link):null;return c.jsxs("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",className:"group bg-card border border-border rounded-xl overflow-hidden hover:shadow-lg hover:border-primary/30 transition-all duration-300",children:[(l||i.thumbnail)&&c.jsxs("div",{className:"relative aspect-video overflow-hidden bg-muted",children:[c.jsx("img",{src:l?`https://img.youtube.com/vi/${l}/hqdefault.jpg`:i.thumbnail,alt:i.title,className:`w-full h-full transition-transform duration-300 group-hover:scale-105 ${i.thumbnail&&!l?"object-contain":"object-cover object-center"}`}),l&&c.jsx("div",{className:"absolute inset-0 bg-black/30 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:c.jsx("div",{className:"w-14 h-14 roun
305ded-full bg-primary flex items-center justify-center",children:c.jsx(jn,{className:"w-6 h-6 text-primary-foreground fill-primary-foreground"})})})]}),c.jsxs("div",{className:"p-6",children:[c.jsxs("div",{className:"flex items-start justify-between gap-4 mb-4",children:[c.jsx("div",{className:"p-2 rounded-lg bg-primary/10 text-primary",children:i.type==="video"?c.jsx(jn,{className:"w-5 h-5"}):c.jsx($t,{className:"w-5 h-5"})}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-sm text-muted-foreground",children:[c.jsx(bs,{className:"w-4 h-4"}),i.date]})]}),c.jsx("h3",{className:"font-semibold text-foreground group-hover:text-primary transition-colors line-clamp-3",children:i.title}),c.jsxs("div",{className:"mt-4 flex items-center gap-2 text-sm text-primary",children:[c.jsx("span",{children:i.type==="video"?"Watch":i.type==="podcast"?"Listen":"Read"}),c.jsx($t,{className:"w-3 h-3"})]})]})]},a)})})]}),c.jsx("footer",{className:"bg-muted py-8 mt-12",children:c.jsx("div",{className:"container mx-auto px-4 text-center text-muted-foreground",children:c.jsx(Ae,{to:"/",className:"text-primary hover:underline",children:"Return to Home"})})})]})},OR="/assets/sxsw-finale-hello-BpSSGeyQ.jpg",IR="/assets/sxsw-hello-robot-minister-h9Xszxjb.jpg",$R="/assets/sxsw-hackathon-t4ounEi3.jpg",DR="/assets/sxsw-chloe-BxmSrxoz.jpg",MR="/assets/sxsw-abi-robot-mc-CDH-Y.jpg",LR=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Ss,{title:"SXSW Sydney â Hello Robot | Rita Arrigo",description:"Rita Arrigo at SXSW Sydney: the Hello Robot showcase, hackathon, and conversations on the human-robot frontier.",path:"/sxsw-sydney",ogType:"article"}),c.jsx("header",{className:"border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50",children:c.jsxs("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:[c.jsxs(Ae,{to:"/",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Ft,{className:"w-4 h-4"}),c.jsx("span",{children:"Back to Home"})]}),c.jsx(Ae,{to:"/",className:"text-xl font-bold text-primary",children:"Rita Arrigo"})]})}),c.jsx("section",{className:"py-16 md:py-24 bg-gradient-to-b from-primary/5 to-background",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[c.jsxs("div",{className:"flex items-center justify-center gap-2 text-muted-foreground mb-4",children:[c.jsx(bs,{className:"w-4 h-4"}),c.jsx("span",{children:"October 2025"})]}),c.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-6",children:"Hello Robot â Three Years Shaping Australia's AI Moment"}),c.jsx("p",{className:"text-xl text-muted-foreground",children:"SXSW Sydney 2023â2025: From Responsible AI to Embodied Intelligence"})]})})}),c.jsx("section",{className:"py-12 md:py-16",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsxs("div",{className:"mb-12 rounded-2xl overflow-hidden shadow-2xl",children:[c.jsx("img",{src:Gx,alt:"Hello Robot panel at SXSW Sydney 2025 with lunar rover on screen",className:"w-full h-auto"}),c.jsx("div",{className:"bg-card p-4 text-center",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Hello Robot! panel at SXSW Sydney 2025 â Discovery Stage"})})]}),c.jsxs("article",{className:"prose prose-lg max-w-none",children:[c.jsxs("p",{className:"text-lg text-foreground leading-relaxed mb-6",children:[c.jsx("strong",{children:"Hello Robot! Reimagining Life with AI-Driven Robots and Agents"}),", presented at SXSW 2025, was not a standalone momentâit was the latest chapter in a three-year arc of deep engagement with SXSW Sydney, helping shape how Australia thinks about artificial intelligence, robotics, creativity, and responsible innovation."]}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:"Hosted by Rita Arrigo, Hello Robot brought together live humanoid and quadruped robot demos, virtual agents, and a lunar roverâblending spectacle with substance. The session explored robots as collaborators rather than tools, spanning concierge and security roles, digital workforces, and space exploration. It closed with a clear provocation: the future of robotics must be ethical, inclusive, and human-centred."}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8",children:"That vision has been building since the launch of SXSW Sydney in 2023."}),c.jsx("h2",{className:"text-2xl font-bold text-foreground mt-12 mb-4",children:"2023: Setting the Responsible AI Agenda"}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8",children:"With the inaugural year of SXSW Sydney, Rita delivered high-level engagement and speaking focused on Responsible AI and its role in advancing Australia's economy, including collaboration with Commonwealth Bank of Australia. The emphasis was clear early on: AI as national capability, not just technologyâgrounded in trust, governance, and long-term value."}),c.jsx("h2",{className:"text-2xl font-bold text-foreground mt-12 mb-4",children:"2024: Expanding the Conversation"}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 my-8",children:[c.jsxs("div",{className:"rounded-xl overflow-hidden shadow-lg",children:[c.jsx("img",{src:MR,alt:"Rita with Abi robot at SXSW Sydney 2024",className:"w-full h-64 object-cover"}),c.jsx("div",{className:"bg-card p-3",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Rita with Abi robot at SXSW Sydney 2024"})})]}),c.jsxs("div",{className:"rounded-xl overflow-hidden shadow-lg",children:[c.jsx("img",{src:$R,alt:"SXSWâNational AI Centre Hackathon 2024",className:"w-full h-64 object-cover"}),c.jsx("div",{className:"bg-card p-3",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"SXSWâNational AI Centre Hackathon 2024"})})]})]}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:"In 2024, four Rita-led or Rita-moderated sessions were selected, reflecting the growing breadth of Australia's AI discourse:"}),c.jsxs("ul",{className:"space-y-4 mb-8",children:[c.jsxs("li",{className:"flex items-start gap-3",children:[c.jsx("span",{className:"w-2 h-2 bg-primary rounded-full mt-2 flex-shrink-0"}),c.jsxs("span",{className:"text-muted-foreground",children:[c.jsx("strong",{className:"text-foreground",children:"AI for Good is Good for Australia"})," â with CSIRO and Google"]})]}),c.jsxs("li",{className:"flex items-start gap-3",children:[c.jsx("span",{className:"w-2 h-2 bg-primary rounded-full mt-2 flex-shrink-0"}),c.jsxs("span",{className:"text-muted-foreground",children:[c.jsx("strong",{className:"text-foreground",children:"Perceptive Robots Are Coming â Look Busy"})," â featuring Grace Brown, CSIRO, and Nicole Robinson from Lyro Robotics"]})]}),c.jsxs("li",{className:"flex items-start gap-3",children:[c.jsx("span",{className:"w-2 h-2 bg-primary rounded-full mt-2 flex-shrink-0"}),c.jsxs("span",{className:"text-muted-foreground",children:[c.jsx("strong",{className:"text-foreground",children:"Are We Entering a Creative Renaissance?"})," â with Adobe, Leonardo.ai, UNSW, and Kopi Su"]})]}),c.jsxs("li",{className:"flex items-start gap-3",children:[c.jsx("span",{className:"w-2 h-2 bg-primary rounded-full mt-2 flex-shrink-0"}),c.jsxs("span",{className:"text-muted-foreground",children:[c.jsx("strong",{className:"text-foreground",children:"Should Australia Be a Leader in AI?"})," â a live debate featuring Ange Lavoipierre from Australian Broadcasting Corporation, University of Technology Sydney, Komply AI, Curious Thing AI, Absolutely AI, and the Tech Council"]})]})]}),c.jsx("div",{className:"bg-primary/5 border-l-4 border-primary p-6 rounded-r-lg my-8",children:c.jsx("p",{className:"text-foreground font-medium mb-0",children:"SXSW Sydney 2024 also extended beyond stages. Rita supported the Expo launch of the AI Adopt Centres and the SXSWâNational AI Centre Hackathonâcementing SXSW Sydney as both a thought-leadership platform and a hands-on innovation engine."})}),c.jsx("h2",{className:"text-2xl font-bold text-foreground mt-12 mb-4",children:"2025: From Ideas to Embodied Intelligence"}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:"By 2025, Hello Robot marked a shift from discussion to embodiment. Humanoid robots walked the stage. Quadrupeds demonstrated industrial readiness. Virtual agents showed how digital labour is already reshaping work. A lunar rover reminded audie
305nces that Australia's AI ambitions extend well beyond Earth."}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 my-8",children:[c.jsxs("div",{className:"rounded-xl overflow-hidden shadow-lg",children:[c.jsx("img",{src:OR,alt:"Hello Robot finale with robots and panelists",className:"w-full h-52 object-cover"}),c.jsx("div",{className:"bg-card p-3",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Hello Robot! finale with the full team and robots"})})]}),c.jsxs("div",{className:"rounded-xl overflow-hidden shadow-lg",children:[c.jsx("img",{src:IR,alt:"Hello Robot panel with Minister watching on screen",className:"w-full h-52 object-cover"}),c.jsx("div",{className:"bg-card p-3",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Hello Robot! with Minister Tim Ayres watching live"})})]}),c.jsxs("div",{className:"rounded-xl overflow-hidden shadow-lg",children:[c.jsx("img",{src:DR,alt:"Rita with Chloe at SXSW Sydney 2025",className:"w-full h-52 object-cover"}),c.jsx("div",{className:"bg-card p-3",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Backstage at SXSW Sydney 2025"})})]})]}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8",children:"Looking ahead, SXSW Sydney 2025 will feature more voted sessions, keynote engagements, and an expanded hackathonâcontinuing the momentum from policy and principle to practice and participation."}),c.jsx("div",{className:"bg-muted/50 rounded-2xl p-8 my-12",children:c.jsx("p",{className:"text-lg text-foreground leading-relaxed mb-0 italic",children:"Across three years, one through-line remains consistent: Australia's AI future will be defined not just by what we build, but by howâand whyâwe build it. SXSW Sydney has become a proving ground for that conversation, and Hello Robot was its most tangible expression yet."})})]}),c.jsxs("div",{className:"mt-12 bg-card rounded-2xl p-8 border border-border",children:[c.jsxs("h2",{className:"text-2xl font-bold text-foreground mb-4 flex items-center gap-2",children:[c.jsx($t,{className:"w-6 h-6 text-primary"}),"Learn More"]}),c.jsx("p",{className:"text-muted-foreground mb-6",children:"Discover more about SXSW Sydney and upcoming events."}),c.jsx("a",{href:"https://www.sxswsydney.com/",target:"_blank",rel:"noopener noreferrer",children:c.jsxs(Ne,{className:"gap-2",children:[c.jsx($t,{className:"w-4 h-4"}),"Visit SXSW Sydney"]})})]}),c.jsx("div",{className:"mt-16 pt-8 border-t border-border flex justify-center",children:c.jsx(Ae,{to:"/",children:c.jsxs(Ne,{variant:"outline",className:"gap-2",children:[c.jsx(Ft,{className:"w-4 h-4"}),"Back to Home"]})})})]})})}),c.jsx("footer",{className:"py-8 border-t border-border bg-muted/30",children:c.jsx("div",{className:"container mx-auto px-4 text-center",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"© 2025 Rita Arrigo. All rights reserved."})})})]});var zR="Label",Yx=b.forwardRef((e,t)=>c.jsx(Pe.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Yx.displayName=zR;var Qx=Yx;const UR=kc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),vh=b.forwardRef(({className:e,...t},r)=>c.jsx(Qx,{ref:r,className:le(UR(),e),...t}));vh.displayName=Qx.displayName;var Bg;function C(e,t,r){function n(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:i,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,l);const u=i.prototype,d=Object.keys(u);for(let h=0;h<d.length;h++){const p=d[h];p in a||(a[p]=u[p].bind(a))}}const s=(r==null?void 0:r.Parent)??Object;class o extends s{}Object.defineProperty(o,"name",{value:e});function i(a){var l;const u=r!=null&&r.Parent?new o:this;n(u,a),(l=u._zod).deferred??(l.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:a=>{var l,u;return r!=null&&r.Parent&&a instanceof r.Parent?!0:(u=(l=a==null?void 0:a._zod)==null?void 0:l.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}
vendor: 10,715 bytes, line 305
305class go extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Xx extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Bg=globalThis).__zod_globalConfig??(Bg.__zod_globalConfig={});const Yf=globalThis.__zod_globalConfig;function gs(e){return Yf}function eb(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,s])=>t.indexOf(+n)===-1).map(([n,s])=>s)}function wh(e,t){return typeof t=="bigint"?t.toString():t}function Qf(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Xf(e){return e==null}function ep(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const Wg=Symbol("evaluating");function de(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==Wg)return n===void 0&&(n=Wg,n=r()),n},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function Es(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function $n(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function Hg(e){return JSON.stringify(e)}function FR(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const tb="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ql(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const BR=Qf(()=>{var e;if(Yf.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function ta(e){if(Ql(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(Ql(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function rb(e){return ta(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const WR=new Set(["string","number","symbol"]);function Dc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Dn(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(n._zod.parent=e),n}function V(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function HR(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function VR(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=$n(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=r.shape[a])}return Es(this,"shape",i),i},checks:[]});return Dn(e,o)}function qR(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=$n(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return Es(this,"shape",i),i},checks:[]});return Dn(e,o)}function KR(e,t){if(!ta(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const o=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=$n(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Es(this,"shape",o),o}});return Dn(e,s)}function ZR(e,t){if(!ta(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=$n(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return Es(this,"shape",n),n}});return Dn(e,r)}function GR(e,t){var n;if((n=e._zod.def.checks)!=null&&n.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const r=$n(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t._zod.def.shape};return Es(this,"shape",s),s},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Dn(e,r)}function JR(e,t,r){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=$n(t._zod.def,{get shape(){const a=t._zod.def.shape,l={...a};if(r)for(const u in r){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(const u in a)l[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return Es(this,"shape",l),l},checks:[]});return Dn(t,i)}function YR(e,t,r){const n=$n(t._zod.def,{get shape(){const s=t._zod.def.shape,o={...s};if(r)for(const i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=new e({type:"nonoptional",innerType:s[i]}))}else for(const i in s)o[i]=new e({type:"nonoptional",innerType:s[i]});return Es(this,"shape",o),o}});return Dn(t,n)}function no(e,t=0){var r;if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(((r=e.issues[n])==null?void 0:r.continue)!==!0)return!0;return!1}function QR(e,t=0){var r;if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(((r=e.issues[n])==null?void 0:r.continue)===!1)return!0;return!1}function nb(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Ja(e){return typeof e=="string"?e:e==null?void 0:e.message}function ys(e,t,r){var l,u,d,h,p,f;const n=e.message?e.message:Ja((d=(u=(l=e.inst)==null?void 0:l._zod.def)==null?void 0:u.error)==null?void 0:d.call(u,e))??Ja((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??Ja((p=r.customError)==null?void 0:p.call(r,e))??Ja((f=r.localeError)==null?void 0:f.call(r,e))??"Invalid input",{inst:s,continue:o,input:i,...a}=e;return a.path??(a.path=[]),a.message=n,t!=null&&t.reportInput&&(a.input=i),a}function tp(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ra(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const sb=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,wh,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ob=C("$ZodError",sb),ib=C("$ZodError",sb,{Parent:Error});function XR(e,t=r=>r.message){const r={},n=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(t(s))):n.push(t(s));return{formErrors:n,fieldErrors:r}}function eO(e,t=r=>r.message){const r={_errors:[]},n=(s,o=[])=>{for(const i of s.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a},[...o,...i.path]));else if(i.code==="invalid_key")n({issues:i.issues},[...o,...i.path]);else if(i.code==="invalid_element")n({issues:i.issues},[...o,...i.path]);else{const a=[...o,...i.path];if(a.length===0)r._errors.push(t(i));else{let l=r,u=0;for(;u<a.length;){const d=a[u];u===a.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(t(i))):l[d]=l[d]||{_errors:[]},l=l[d],u++}}}};return n(e),r}const rp=e=>(t,r,n,s)=>{const o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new go;if(i.issues.length){const a=new((s==null?void 0:s.Err)??e)(i.issues.map(l=>ys(l,o,gs())));throw tb(a,s==null?void 0:s.callee),a}return i.value},np=e=>async(t,r,n,s)=>{const o=n?{...n,async:!0}:{async:!0};let i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){const a=new((s==null?void 0:s.Err)??e)(i.issues.map(l=>ys(l,o,gs())));throw tb(a,s==null?void 0:s.callee),a}return i.value},Mc=e=>(t,r,n)=>{const s=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},s);if(o instanceof Promise)throw new go;return o.issues.length?{success:!1,error:new(e??ob)(o.issues.map(i=>ys(i,s,gs())))}:{success:!0,data:o.value}},tO=Mc(ib),Lc=e=>async(t,r,n)=>{const s=n?{...n,async:!0}:{async:!0};let o=t._zod.run({value:r,issues:[]},s);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>ys(i,s,gs())))}:{success:!0,data:o.value}},rO=Lc(ib),nO=e=>(t,r,n)=>{const s=n?{...n,direction:"backward"}:{direction:"backward"};return rp(e)(t,r,s)},sO=e=>(t,r,n)=>rp(e)(t,r,n),oO=e=>async(t,r,n)=>{const s=n?{...n,direction:"backward"}:{direction:"backward"};return np(e)(t,r,s)},iO=e=>async(t,r,n)=>np(e)(t,r,n),aO=e=>(t,r,n)=>{const s=n?{...n,direction:"backward"}:{direction:"backward"};return Mc(e)(t,r,s)},lO=e=>(t,r,n)=>Mc(e)(t,r,n),cO=e=>async(t,r,n)=>{const s=n?{...n,direction:"backward"}:{direction:"backward"};return Lc(e)(t,r,s)},uO=e=>async(t,r,n)=>Lc(e)(t,r,n),dO=/^[cC][0-9a-z]{6,}$/,hO=/^[0-9a-z]+$/,fO=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,pO=/^[0-9a-vA-V]{20}$/,mO=/^[A-Za-z0-9]{27}$/,gO=/^[a-zA-Z0-9_-]{21}$/,yO=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vO=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Vg=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,wO=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,xO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function bO(){return new RegExp(xO,"u")}const _O=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,kO=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,SO=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,EO=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,jO=/^$|^(?:[0-9a-zA-Z+/]{4}
vendor: 4,160 bytes, line 305
305)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ab=/^[A-Za-z0-9_-]*$/,TO=/^https?$/,NO=/^\+[1-9]\d{6,14}$/,lb="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",CO=new RegExp(`^${lb}$`);function cb(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function AO(e){return new RegExp(`^${cb(e)}$`)}function PO(e){const t=cb({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${lb}T(?:${n})$`)}const RO=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},OO=/^[^A-Z]*$/,IO=/^[^a-z]*$/,_r=C("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),$O=C("$ZodCheckMaxLength",(e,t)=>{var r;_r.init(e,t),(r=e._zod.def).when??(r.when=n=>{const s=n.value;return!Xf(s)&&s.length!==void 0}),e._zod.onattach.push(n=>{const s=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const s=n.value;if(s.length<=t.maximum)return;const i=tp(s);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),DO=C("$ZodCheckMinLength",(e,t)=>{var r;_r.init(e,t),(r=e._zod.def).when??(r.when=n=>{const s=n.value;return!Xf(s)&&s.length!==void 0}),e._zod.onattach.push(n=>{const s=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const s=n.value;if(s.length>=t.minimum)return;const i=tp(s);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),MO=C("$ZodCheckLengthEquals",(e,t)=>{var r;_r.init(e,t),(r=e._zod.def).when??(r.when=n=>{const s=n.value;return!Xf(s)&&s.length!==void 0}),e._zod.onattach.push(n=>{const s=n._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=n=>{const s=n.value,o=s.length;if(o===t.length)return;const i=tp(s),a=o>t.length;n.issues.push({origin:i,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),zc=C("$ZodCheckStringFormat",(e,t)=>{var r,n;_r.init(e,t),e._zod.onattach.push(s=>{const o=s._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),LO=C("$ZodCheckRegex",(e,t)=>{zc.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),zO=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=OO),zc.init(e,t)}),UO=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=IO),zc.init(e,t)}),FO=C("$ZodCheckIncludes",(e,t)=>{_r.init(e,t);const r=Dc(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),BO=C("$ZodCheckStartsWith",(e,t)=>{_r.init(e,t);const r=new RegExp(`^${Dc(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const s=n._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input
vendor: 33,627 bytes, lines 305-368
305:n.value,inst:e,continue:!t.abort})}}),WO=C("$ZodCheckEndsWith",(e,t)=>{_r.init(e,t);const r=new RegExp(`.*${Dc(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const s=n._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),HO=C("$ZodCheckOverwrite",(e,t)=>{_r.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class VO{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(` 306`).filter(i=>i),s=Math.min(...n.map(i=>i.length-i.trimStart().length)),o=n.map(i=>i.slice(s)).map(i=>" ".repeat(this.indent*2)+i);for(const i of o)this.content.push(i)}compile(){const t=Function,r=this==null?void 0:this.args,s=[...((this==null?void 0:this.content)??[""]).map(o=>` ${o}`)];return new t(...r,s.join(` 307`))}}const qO={major:4,minor:4,patch:3},ze=C("$ZodType",(e,t)=>{var s;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=qO;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const i of o._zod.onattach)i(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),(s=e._zod.deferred)==null||s.push(()=>{e._zod.run=e._zod.parse});else{const o=(a,l,u)=>{let d=no(a),h;for(const p of l){if(p._zod.def.when){if(QR(a)||!p._zod.def.when(a))continue}else if(d)continue;const f=a.issues.length,y=p._zod.check(a);if(y instanceof Promise&&(u==null?void 0:u.async)===!1)throw new go;if(h||y instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await y,a.issues.length!==f&&(d||(d=no(a,f)))});else{if(a.issues.length===f)continue;d||(d=no(a,f))}}return h?h.then(()=>a):a},i=(a,l,u)=>{if(no(a))return a.aborted=!0,a;const d=o(l,n,u);if(d instanceof Promise){if(u.async===!1)throw new go;return d.then(h=>e._zod.parse(h,u))}return e._zod.parse(d,u)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){const d=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(h=>i(h,a,l)):i(d,a,l)}const u=e._zod.parse(a,l);if(u instanceof Promise){if(l.async===!1)throw new go;return u.then(d=>o(d,n,l))}return o(u,n,l)}}de(e,"~standard",()=>({validate:o=>{var i;try{const a=tO(e,o);return a.success?{value:a.data}:{issues:(i=a.error)==null?void 0:i.issues}}catch{return rO(e,o).then(l=>{var u;return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),sp=C("$ZodString",(e,t)=>{var r;ze.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??RO(e._zod.bag),e._zod.parse=(n,s)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),we=C("$ZodStringFormat",(e,t)=>{zc.init(e,t),sp.init(e,t)}),KO=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vO),we.init(e,t)}),ZO=C("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Vg(n))}else t.pattern??(t.pattern=Vg());we.init(e,t)}),GO=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=wO),we.init(e,t)}),JO=C("$ZodURL",(e,t)=>{we.init(e,t),e._zod.check=r=>{var n;try{const s=r.value.trim();if(!t.normalize&&((n=t.protocol)==null?void 0:n.source)===TO.source&&!/^https?:\/\//i.test(s)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}const o=new URL(s);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=s;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),YO=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=bO()),we.init(e,t)}),QO=C("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=gO),we.init(e,t)}),XO=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=dO),we.init(e,t)}),eI=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=hO),we.init(e,t)}),tI=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=fO),we.init(e,t)}),rI=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=pO),we.init(e,t)}),nI=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=mO),we.init(e,t)}),sI=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=PO(t)),we.init(e,t)}),oI=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=CO),we.init(e,t)}),iI=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=AO(t)),we.init(e,t)}),aI=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=yO),we.init(e,t)}),lI=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_O),we.init(e,t),e._zod.bag.format="ipv4"}),cI=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=kO),we.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),uI=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=SO),we.init(e,t)}),dI=C("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=EO),we.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[s,o]=n;if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${s}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function ub(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const hI=C("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=jO),we.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{ub(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function fI(e){if(!ab.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return ub(r)}const pI=C("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ab),we.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{fI(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),mI=C("$ZodE164",(e,t)=>{t.pattern??(t.pattern=NO),we.init(e,t)});function gI(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const s=JSON.parse(atob(n));return!("typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const yI=C("$ZodJWT",(e,t)=>{we.init(e,t),e._zod.check=r=>{gI(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),vI=C("$ZodUnknown",(e,t)=>{ze.init(e,t),e._zod.parse=r=>r}),wI=C("$ZodNever",(e,t)=>{ze.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function qg(e,t,r){e.issues.length&&t.issues.push(...nb(r,e.issues)),t.value[r]=e.value}const xI=C("$ZodArray",(e,t)=>{ze.init(e,t),e._zod.parse=(r,n)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),r;r.value=Array(s.length);const o=[];for(let i=0;i<s.length;i++){const a=s[i],l=t.element._zod.run({value:a,issues:[]},n);l instanceof Promise?o.push(l.then(u=>qg(u,r,i))):qg(l,r,i)}return o.length?Promise.all(o).then(()=>r):r}});function Xl(e,t,r,n,s,o){const i=r in n;if(e.issues.length){if(s&&o&&!i)return;t.issues.push(...nb(r,e.issues))}if(!i&&!s){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?i&&(t.value[r]=void 0):t.value[r]=e.value}function db(e){var n,s,o,i;const t=Object.keys(e.shape);for(const a of t)if(!((i=(o=(s=(n=e.shape)==null?void 0:n[a])==null?void 0:s._zod)==null?void 0:o.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const r=HR(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function hb(e,t,r,n,s,o){const i=[],a=s.keySet,l=s.catchall._zod,u=l.def.type,d=l.optin==="optional",h=l.optout==="optional";for(const p in t){if(p==="__proto__"||a.has(p))continue;if(u==="never"){i.push(p);continue}const f=l.run({value:t[p],issues:[]},n);f instanceof Promise?e.push(f.then(y=>Xl(y,r,p,t,d,h))):Xl(f,r,p,t,d,h)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}const bI=C("$ZodObject",(e,t)=>{ze.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape");if(!(r!=null&&r.get)){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}const n=Qf(()=>db(t));de(e._zod,"propValues",()=>{const a=t.shape,l={};for(const u in a){const d=a[u]._zod;if(d.values){l[u]??(l[u]=new Set);for(const h of d.values)l[u].add(h)}}return l});const s=Ql,o=t.catchall;let i;e._zod.parse=(a,l)=>{i??(i=n.value);const u=a.value;if(!s(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};const d=[],h=i.shape;for(const p of i.keys){const f=h[p],y=f._zod.optin==="optional",m=f._zod.optout==="optional",x=f._zod.run({value:u[p],issues:[]},l);x instanceof Promise?d.push(x.then(v=>Xl(v,a,p,u,y,m))):Xl(x,a,p,u,y,m)}return o?hb(d,u,a,l,n.value,e):d.length?Promise.all(d).then(()=>a):a}}),_I=C("$ZodObjectJIT",(e,t)=>{bI.init(e,t);const r=e._zod.parse,n=Qf(()=>db(t)),s=p=>{var w,_;const f=new VO(["shape","payload","ctx"]),y=n.value,m=k=>{const S=Hg(k);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let v=0;for(const k of y.keys)x[k]=`key_${v++}`;f.write("const newResult = {};");for(const k of y.keys){const S=x[k],E=Hg(k),j=p[k],O=((w=j==null?void 0:j._zod)==null?void 0:w.optin)==="optional",I=((_=j==null?void 0:j._zod)==null?void 0:_.optout)==="optional";f.write(`const ${S} = ${m(k)};`),O&&I?f.write(` 308 if (${S}.issues.length) { 309 if (${E} in input) { 310 payload.issues = payload.issues.concat(${S}.issues.map(iss => ({ 311 ...iss, 312 path: iss.path ? [${E}, ...iss.path] : [${E}] 313 }))); 314 } 315 } 316 317 if (${S}.value === undefined) { 318 if (${E} in input) { 319 newResult[${E}] = undefined; 320 } 321 } else { 322 newResult[${E}] = ${S}.value; 323 } 324 325 `):O?f.write(` 326 if (${S}.issues.length) { 327 payload.issues = payload.issues.concat(${S}.issues.map(iss => ({ 328 ...iss, 329 path: iss.path ? [${E}, ...iss.path] : [${E}] 330 }))); 331 } 332 333 if (${S}.value === undefined) { 334 if (${E} in input) { 335 newResult[${E}] = undefined; 336 } 337 } else { 338 newResult[${E}] = ${S}.value; 339 } 340 341 `):f.write(` 342 const ${S}_present = ${E} in input; 343 if (${S}.issues.length) { 344 payload.issues = payload.issues.concat(${S}.issues.map(iss => ({ 345 ...iss, 346 path: iss.path ? [${E}, ...iss.path] : [${E}] 347 }))); 348 } 349 if (!${S}_present && !${S}.issues.length) { 350 payload.issues.push({ 351 code: "invalid_type", 352 expected: "nonoptional", 353 input: undefined, 354 path: [${E}] 355 }); 356 } 357 358 if (${S}_present) { 359 if (${S}.value === undefined) { 360 newResult[${E}] = undefined; 361 } else { 362 newResult[${E}] = ${S}.value; 363 } 364 } 365 366 `)}f.write("payload.value = newResult;"),f.write("return payload;");const g=f.compile();return(k,S)=>g(p,k,S)};let o;const i=Ql,a=!Yf.jitless,u=a&&BR.value,d=t.catchall;let h;e._zod.parse=(p,f)=>{h??(h=n.value);const y=p.value;return i(y)?a&&u&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(o||(o=s(t.shape)),p=o(p,f),d?hb([],y,p,f,h,e):p):r(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),p)}});function Kg(e,t,r,n){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const s=e.filter(o=>!no(o));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>ys(i,n,gs())))}),t)}const kI=C("$ZodUnion",(e,t)=>{ze.init(e,t),de(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),de(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),de(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),de(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${n.map(s=>ep(s.source)).join("|")})$`)}});const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(n,s)=>{if(r)return r(n,s);let o=!1;const i=[];for(const a of t.options){const l=a._zod.run({value:n.value,issues:[]},s);if(l instanceof Promise)i.push(l),o=!0;else{if(l.issues.length===0)return l;i.push(l)}}return o?Promise.all(i).then(a=>Kg(a,n,e,s)):Kg(i,n,e,s)}}),SI=C("$ZodIntersection",(e,t)=>{ze.init(e,t),e._zod.parse=(r,n)=>{const s=r.value,o=t.left._zod.run({value:s,issues:[]},n),i=t.right._zod.run({value:s,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([l,u])=>Zg(r,l,u)):Zg(r,o,i)}});function xh(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ta(e)&&ta(t)){const r=Object.keys(t),n=Object.keys(e).filter(o=>r.indexOf(o)!==-1),s={...e,...t};for(const o of n){const i=xh(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};s[o]=i.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const s=e[n],o=t[n],i=xh(s,o);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Zg(e,t,r){const n=new Map;let s;for(const a of t.issues)if(a.code==="unrecognized_keys"){s??(s=a);for(const l of a.keys)n.has(l)||n.set(l,{}),n.get(l).l=!0}else e.issues.push(a);for(const a of r.issues)if(a.code==="unrecognized_keys")for(const l of a.keys)n.has(l)||n.set(l,{}),n.get(l).r=!0;else e.issues.push(a);const o=[...n].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(o.length&&s&&e.issues.push({...s,keys:o}),no(e))return e;const i=xh(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const EI=C("$ZodEnum",(e,t)=>{ze.init(e,t);const r=eb(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(s=>WR.has(typeof s)).map(s=>typeof s=="string"?Dc(s):s.toString()).join("|")})$`),e._zod.parse=(s,o)=>{const i=s.value;return n.has(i)||s.issues.push({code:"invalid_value",values:r,input:i,inst:e}),s}}),jI=C("$ZodTransform",(e,t)=>{ze.init(e,t),e._zod.optin="optional",e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Xx(e.constructor.name);const s=t.transform(r.value,r);if(n.async)return(s instanceof Promise?s:Promise.resolve(s)).then(i=>(r.value=i,r.fallback=!0,r));if(s instanceof Promise)throw new go;return r.value=s,r.fallback=!0,r}});function Gg(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const fb=C("$ZodOptional",(e,t)=>{ze.init(e,t),e._zod.optin="optional",e._zod.optout="optional",de(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),de(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${ep(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const s=r.value,o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Gg(i,s)):Gg(o,s)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),TI=C("$ZodExactOptional",(e,t)=>{fb.init(e,t),de(e._zod,"values",()=>t.innerType._zod.values),de(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),NI=C("$ZodNullable",(e,t)=>{ze.init(e,t),de(e._zod,"optin",()=>t.innerType._zod.optin),de(e._zod,"optout",()=>t.innerType._zod.optout),de(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${ep(r.source)}|null)$`):void 0}),de(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),CI=C("$ZodDefault",(e,t)=>{ze.init(e,t),e._zod.optin="optional",de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(o=>Jg(o,t)):Jg(s,t)}});function Jg(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const AI=C("$ZodPrefault",(e,t)=>{ze.init(e,t),e._zod.optin="optional",de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),PI=C("$ZodNonOptional",(e,t)=>{ze.init(e,t),de(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(o=>Yg(o,e)):Yg(s,e)}});function Yg(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const RI=C("$ZodCatch",(e,t)=>{ze.init(e,t),e._zod.optin="optional",de(e._zod,"optout",()=>t.innerType._zod.optout),de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>ys(i,n,gs()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(o=>ys(o,n,gs()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),OI=C("$ZodPipe",(e,t)=>{ze.init(e,t),de(e._zod,"values",()=>t.in._zod.values),de(e._zod,"optin",()=>t.in._zod.optin),de(e._zod,"optout",()=>t.out._zod.optout),de(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const o=t.out._zod.run(r,n);return o instanceof Promise?o.then(i=>Ya(i,t.in,n)):Ya(o,t.in,n)}const s=t.in._zod.run(r,n);return s instanceof Promise?s.then(o=>Ya(o,t.out,n)):Ya(s,t.out,n)}});function Ya(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}const II=C("$ZodReadonly",(e,t)=>{ze.init(e,t),de(e._zod,"propValues",()=>t.innerType._zod.propValues),de(e._zod,"values",()=>t.innerType._zod.values),de(e._zod,"optin",()=>{var r,n;return(n=(r=t.innerType)==null?void 0:r._zod)==null?void 0:n.optin}),de(e._zod,"optout",()=>{var r,n;return(n=(r=t.innerType)==null?void 0:r._zod)==null?void 0:n.optout}),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(Qg):Qg(s)}});function Qg(e){return e.value=Object.freeze(e.value),e}const $I=C("$ZodCustom",(e,t)=>{_r.init(e,t),ze.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,s=t.fn(n);if(s instanceof Promise)return s.then(o=>Xg(o,r,n,e));Xg(s,r,n,e)}});function Xg(e,t,r,n){if(!e){const s={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(s.params=n._zod.def.params),t.issues.push(ra(s))}}var ey;class DI{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const s={...n,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function MI(){return new DI}(ey=globalThis).__zod_globalRegistry??(ey.__zod_globalRegistry=MI());const hi=globalThis.__zod_globalRegistry;function LI(e,t){return new e({type:"string",...V(t)})}function zI(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...V(t)})}function ty(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...V(t)})}function UI(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...V(t)})}function FI(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...V(t)})}function BI(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...V(t)})}function WI(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...V(t)})}function HI(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...V(t)})}function VI(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...V(t)})}function qI(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...V(t)})}function KI(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...V(t)})}function ZI(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...V(t)})}function GI(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...V(t)})}function JI(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...V(t)})}function YI(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...V(t)})}function QI(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...V(t)})}function XI(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...V(t)})}function e$(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...V(t)})}function t$(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...V(t)})}function r$(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...V(t)})}function n$(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...V(t)})}function s$(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...V(t)})}function o$(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...V(t)})}function i$(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...V(t)})}function a$(e,t){return new e({type:"string",format:"date",check:"string_format",...V(t)})}function l$(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...V(t)})}function c$(e,t){return new e({type:"string",format:"duration",check:"string_format",...V(t)})}function u$(e){return new e({type:"unknown"})}function d$(e,t){return new e({type:"never",...V(t)})}function pb(e,t){return new $O({check:"max_length",...V(t),maximum:e})}function ec(e,t){return new DO({check:"min_length",...V(t),minimum:e})}function mb(e,t){return new MO({check:"length_equals",...V(t),length:e})}function h$(e,t){return new LO({check:"string_format",format:"regex",...V(t),pattern:e})}function f$(e){return new zO({check:"string_format",format:"lowercase",...V(e)})}function p$(e){return new UO({check:"string_format",format:"uppercase",...V(e)})}function m$(e,t){return new FO({check:"string_format",format:"includes",...V(t),includes:e})}function g$(e,t){return new BO({check:"string_format",format:"starts_with",...V(t),prefix:e})}function y$(e,t){return new WO({check:"string_format",format:"ends_with",...V(t),suffix:e})}function Wo(e){return new HO({check:"overwrite",tx:e})}function v$(e){return Wo(t=>t.normalize(e))}function w$(){return Wo(e=>e.trim())}function x$(){return Wo(e=>e.toLowerCase())}function b$(){return Wo(e=>e.toUpperCase())}function _$(){return Wo(e=>FR(e))}function k$(e,t,r){return new e({type:"array",element:t,...V(r)})}function S$(e,t,r){return new e({type:"custom",check:"custom",fn:t,...V(r)})}function E$(e,t){const r=j$(n=>(n.addIssue=s=>{if(typeof s=="string")n.issues.push(ra(s,n.value,r._zod.def));else{const o=s;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),n.issues.push(ra(o))}},e(n.value,n)),t);return r}function j$(e,t){const r=new _r({check:"custom",...V(t)});return r._zod.check=e,r}function gb(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??hi,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function Ze(e,t,r={path:[],schemaPath:[]}){var d,h;var n;const s=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;const i={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,i);const a=(h=(d=e._zod).toJSONSchema)==null?void 0:h.call(d);if(a)i.schema=a;else{const p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,p);else{const y=i.schema,m=t.processors[s.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);m(e,t,y,p)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),Ze(f,t,p),t.seen.get(f).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(i.schema,l),t.io==="input"&&rt(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((n=i.schema).default??(n.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function yb(e,t){var i,a,l,u;const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const d of e.seen.entries()){const h=(i=e.metadataRegistry.get(d[0]))==null?void 0:i.id;if(h){const p=n.get(h);if(p&&p!==d[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(h,d[0])}}const s=d=>{var m;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(m=e.external.registry.get(d[0]))==null?void 0:m.id,v=e.external.uri??(w=>w);if(x)return{ref:v(x)};const g=d[1].defId??d[1].schema.id??`schema${e.counter++}`;return d[1].defId=g,{defId:g,ref:`${v("__shared")}#/${h}/${g}`}}if(d[1]===r)return{ref:"#"};const f=`#/${h}/`,y=d[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:f+y}},o=d=>{if(d[1].schema.$ref)return;const h=d[1],{ref:p,defId:f}=s(d);h.def={...h.schema},f&&(h.defId=f);const y=h.schema;for(const m in y)delete y[m];y.$ref=p};if(e.cycles==="throw")for(const d of e.seen.entries()){const h=d[1];if(h.cycle)throw new Error(`Cycle detected: #/${(a=h.cycle)==null?void 0:a.join("/")}/<root> 367 368Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const d of e.seen.entries()){const h=d[1];if(t===d[0]){o(d);continue}if(e.external){const f=(l=e.external.registry.get(d[0]))==null?void 0:l.id;if(t!==d[0]&&f){o(d);continue}}if((u=e.metadataRegistry.get(d[0]))==null?void 0:u.id){o(d);continue}if(h.cycle){o(d);continue}if(h.count>1&&e.reused==="ref"){o(d);continue}}}function vb(e,t){var a,l,u,d;const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=h=>{const p=e.seen.get(h);if(p.ref===null)return;const f=p.def??p.schema,y={...f},m=p.ref;if(p.ref=null,m){n(m);const v=e.seen.get(m),g=v.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(g)):Object.assign(f,g),Object.assign(f,y),h._zod.parent===m)for(const _ in f)_==="$ref"||_==="allOf"||_ in y||delete f[_];if(g.$ref&&v.def)for(const _ in f)_==="$ref"||_==="allOf"||_ in v.def&&JSON.stringify(f[_])===JSON.stringify(v.def[_])&&delete f[_]}const x=h._zod.parent;if(x&&x!==m){n(x);const v=e.seen.get(x);if(v!=null&&v.schema.$ref&&(f.$ref=v.schema.$ref,v.def))for(const g in f)g==="$ref"||g==="allOf"||g in v.def&&JSON.stringify(f[g])===JSON.stringify(v.def[g])&&delete f[g]}e.override({zodSchema:h,jsonSchema:f,path:p.path??[]})};for(const h of[...e.seen.entries()].reverse())n(h[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,(a=e.external)!=null&&a.uri){const h=(l=e.external.registry.get(t))==null?void 0:l.id;if(!h)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(h)}Object.assign(s,r.def??r.schema);const o=(u=e.metadataRegistry.get(t))==null?void 0:u.id;o!==void 0&&s.id===o&&delete s.id;const i=((d=e.external)==null?void 0:d.defs)??{};for(const h of e.seen.entries()){const p=h[1];p.def&&p.defId&&(p.def.id===p.defId&&delete p.def.id,i[p.defId]=p.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?s.$defs=i:s.definitions=i);try{const h=JSON.parse(JSON.stringify(s));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:tc(t,"input",e.processors),output:tc(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function rt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return rt(n.element,r);if(n.type==="set")return rt(n.valueType,r);if(n.type==="lazy")return rt(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return rt(n.innerType,r);if(n.type==="intersection")return rt(n.left,r)||rt(n.right,r);if(n.type==="record"||n.type==="map")return rt(n.keyType,r)||rt(n.valueType,r);if(n.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:rt(n.in,r)||rt(n.out,r);if(n.type==="object"){for(const s in n.shape)if(rt(n.shape[s],r))return!0;return!1}if(n.type==="union"){for(const s of n.options)if(rt(s,r))return!0;return!1}if(n.type==="tuple"){for(const s of n.items)if(rt(s,r))return!0;return!!(n.rest&&rt(n.rest,r))}return!1}const T$=(e,t={})=>r=>{const n=gb({...r,processors:t});return Ze(e,n),yb(n,e),vb(n,e)},tc=(e,t,r={})=>n=>{const{libraryOptions:s,target:o}=n??{},i=gb({...s??{},target:o,io:t,processors:r});return Ze(e,i),yb(i,e),vb(i,e)},N$={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},C$=(e,t,r,n)=>{const s=r;s.type="string";const{minimum:o,maximum:i,format:a,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(s.minLength=o),typeof i=="number"&&(s.maxLength=i),a&&(s.format=N$[a]??a,s.format===""&&delete s.format,a==="time"&&delete s.format),u&&(s.contentEncoding=u),l&&l.size>0){const d=[...l];d.length===1?s.pattern=d[0].source:d.length>1&&(s.allOf=[...d.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},A$=(e,t,r,n)=>{r.not={}},P$=(e,t,r,n)=>{},R$=(e,t,r,n)=>{const s=e._zod.def,o=eb(s.entries);o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),r.enum=o},O$=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},I$=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},$$=(e,t,r,n)=>{const s=r,o=e._zod.def,{minimum:i,maximum:a}=e._zod.bag;typeof i=="number"&&(s.minItems=i),typeof a=="number"&&(s.maxItems=a),s.type="array",s.items=Ze(o.element,t,{...n,path:[...n.path,"items"]})},D$=(e,t,r,n)=>{var u;const s=r,o=e._zod.def;s.type="object",s.properties={};const i=o.shape;for(const d in i)s.properties[d]=Ze(i[d],t,{...n,path:[...n.path,"properties",d]});const a=new Set(Object.keys(i)),l=new Set([...a].filter(d=>{const h=o.shape[d]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));l.size>0&&(s.required=Array.from(l)),((u=o.catchall)==null?void 0:u._zod.def.type)==="never"?s.additionalProperties=!1:o.catchall?o.catchall&&(s.additionalProperties=Ze(o.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},M$=(e,t,r,n)=>{const s=e._zod.def,o=s.inclusive===!1,i=s.options.map((a,l)=>Ze(a,t,{...n,path:[...n.path,o?"oneOf":"anyOf",l]}));o?r.oneOf=i:r.anyOf=i}
vendor: 1,171 bytes, line 368
368,L$=(e,t,r,n)=>{const s=e._zod.def,o=Ze(s.left,t,{...n,path:[...n.path,"allOf",0]}),i=Ze(s.right,t,{...n,path:[...n.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(o)?o.allOf:[o],...a(i)?i.allOf:[i]];r.allOf=l},z$=(e,t,r,n)=>{const s=e._zod.def,o=Ze(s.innerType,t,n),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=s.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},U$=(e,t,r,n)=>{const s=e._zod.def;Ze(s.innerType,t,n);const o=t.seen.get(e);o.ref=s.innerType},F$=(e,t,r,n)=>{const s=e._zod.def;Ze(s.innerType,t,n);const o=t.seen.get(e);o.ref=s.innerType,r.default=JSON.parse(JSON.stringify(s.defaultValue))},B$=(e,t,r,n)=>{const s=e._zod.def;Ze(s.innerType,t,n);const o=t.seen.get(e);o.ref=s.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},W$=(e,t,r,n)=>{const s=e._zod.def;Ze(s.innerType,t,n);const o=t.seen.get(e);o.ref=s.innerType;let i;try{i=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},H$=(e,t,r,n)=>{const s=e._zod.def,o=s.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?o?s.out:s.in:s.out;Ze(i,t,n);const a=t.seen.get(e);a.ref=i}
vendor: 7,929 bytes, line 368
368,V$=(e,t,r,n)=>{const s=e._zod.def;Ze(s.innerType,t,n);const o=t.seen.get(e);o.ref=s.innerType,r.readOnly=!0},wb=(e,t,r,n)=>{const s=e._zod.def;Ze(s.innerType,t,n);const o=t.seen.get(e);o.ref=s.innerType},q$=C("ZodISODateTime",(e,t)=>{sI.init(e,t),Se.init(e,t)});function K$(e){return i$(q$,e)}const Z$=C("ZodISODate",(e,t)=>{oI.init(e,t),Se.init(e,t)});function G$(e){return a$(Z$,e)}const J$=C("ZodISOTime",(e,t)=>{iI.init(e,t),Se.init(e,t)});function Y$(e){return l$(J$,e)}const Q$=C("ZodISODuration",(e,t)=>{aI.init(e,t),Se.init(e,t)});function X$(e){return c$(Q$,e)}const xb=(e,t)=>{ob.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>eO(e,r)},flatten:{value:r=>XR(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,wh,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,wh,2)}},isEmpty:{get(){return e.issues.length===0}}})},e4=C("ZodError",xb),Bt=C("ZodError",xb,{Parent:Error}),t4=rp(Bt),r4=np(Bt),n4=Mc(Bt),s4=Lc(Bt),o4=nO(Bt),i4=sO(Bt),a4=oO(Bt),l4=iO(Bt),c4=aO(Bt),u4=lO(Bt),d4=cO(Bt),h4=uO(Bt),ry=new WeakMap;function Uc(e,t,r){const n=Object.getPrototypeOf(e);let s=ry.get(n);if(s||(s=new Set,ry.set(n,s)),!s.has(t)){s.add(t);for(const o in r){const i=r[o];Object.defineProperty(n,o,{configurable:!0,enumerable:!1,get(){const a=i.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:a}),a},set(a){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:a})}})}}}const Ue=C("ZodType",(e,t)=>(ze.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:tc(e,"input"),output:tc(e,"output")}}),e.toJSONSchema=T$(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,n)=>t4(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>n4(e,r,n),e.parseAsync=async(r,n)=>r4(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>s4(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>o4(e,r,n),e.decode=(r,n)=>i4(e,r,n),e.encodeAsync=async(r,n)=>a4(e,r,n),e.decodeAsync=async(r,n)=>l4(e,r,n),e.safeEncode=(r,n)=>c4(e,r,n),e.safeDecode=(r,n)=>u4(e,r,n),e.safeEncodeAsync=async(r,n)=>d4(e,r,n),e.safeDecodeAsync=async(r,n)=>h4(e,r,n),Uc(e,"ZodType",{check(...r){const n=this.def;return this.clone($n(n,{checks:[...n.checks??[],...r.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,n){return Dn(this,r,n)},brand(){return this},register(r,n){return r.add(this,n),this},refine(r,n){return this.check(oD(r,n))},superRefine(r,n){return this.check(iD(r,n))},overwrite(r){return this.check(Wo(r))},optional(){return iy(this)},exactOptional(){return q4(this)},nullable(){return ay(this)},nullish(){return iy(ay(this))},nonoptional(r){return Q4(this,r)},array(){return $4(this)},or(r){return z4([this,r])},and(r){return F4(this,r)},transform(r){return ly(this,H4(r))},default(r){return G4(this,r)},prefault(r){return Y4(this,r)},catch(r){return eD(this,r)},pipe(r){return ly(this,r)},readonly(){return nD(this)},describe(r){const n=this.clone();return hi.add(n,{description:r}),n},meta(...r){if(r.length===0)return hi.get(this);const n=this.clone();return hi.add(n,r[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){var r;return(r=hi.get(e))==null?void 0:r.description},configurable:!0}),e)),bb=C("_ZodString",(e,t)=>{sp.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(n,s,o)=>C$(e,n,s);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Uc(e,"_ZodString",{regex(...n){return this.check(h$(...n))},includes(...n){return this.check(m$(...n))},startsWith(...n){return this.check(g$(...n))},endsWith(...n){return this.check(y$(...n))},min(...n){return this.check(ec(...n))},max(...n){return this.check(pb(...n))},length(...n){return this.check(mb(...n))},nonempty(...n){return this.check(ec(1,...n))},lowercase(n){return this.check(f$(n))},uppercase(n){return this.check(p$(n))},trim(){return this.check(w$())},normalize(...n){return this.check(v$(...n))},toLowerCase(){return this.check(x$())},toUpperCase(){return this.check(b$())},slugify(){return this.check(_$())}})}),f4=C("ZodString",(e,t)=>{sp.init(e,t),bb.init(e,t),e.email=r=>e.check(zI(p4,r)),e.url=r=>e.check(HI(m4,r)),e.jwt=r=>e.check(o$(A4,r)),e.emoji=r=>e.check(VI(g4,r)),e.guid=r=>e.check(ty(sy,r)),e.uuid=r=>e.check(UI(Qa,r)),e.uuidv4=r=>e.check(FI(Qa,r)),e.uuidv6=r=>e.check(BI(Qa,r)),e.uuidv7=r=>e.check(WI(Qa,r)),e.nanoid=r=>e.check(qI(y4,r)),e.guid=r=>e.check(ty(sy,r)),e.cuid=r=>e.check(KI(v4,r)),e.cuid2=r=>e.check(ZI(w4,r)),e.ulid=r=>e.check(GI(x4,r)),e.base64=r=>e.check(r$(T4,r)),e.base64url=r=>e.check(n$(N4,r)),e.xid=r=>e.check(JI(b4,r)),e.ksuid=r=>e.check(YI(_4,r)),e.ipv4=r=>e.check(QI(k4,r)),e.ipv6=r=>e.check(XI(S4,r)),e.cidrv4=r=>e.check(e$(E4,r)),e.cidrv6=r=>e.check(t$(j4,r)),e.e164=r=>e.check(s$(C4,r)),e.datetime=r=>e.check(K$(r)),e.date=r=>e.check(G$(r)),e.time=r=>e.check(Y$(r)),e.duration=r=>e.check(X$(r))});function ny(e){return LI(f4,e)}const Se=C("ZodStringFormat",(e,t)=>{we.init(e,t),bb.init(e,t)}),p4=C("ZodEmail",(e,t)=>{GO.init(e,t),Se.init(e,t)}),sy=C("ZodGUID",(e,t)=>{KO.init(e,t),Se.init(e,t)}),Qa=C("ZodUUID",(e,t)=>{ZO.init(e,t),Se.init(e,t)}),m4=C("ZodURL",(e,t)=>{JO.init(e,t),Se.init(e,t)}),g4=C("ZodEmoji",(e,t)=>{YO.init(e,t),Se.init(e,t)}),y4=C("ZodNanoID",(e,t)=>{QO.init(e,t),Se.init(e,t)}),v4=C("ZodCUID",(e,t)=>{XO.init(e,t),Se.init(e,t)}),w4=C("ZodCUID2",(e,t)=>{eI.init(e,t),Se.init(e,t)}),x4=C("ZodULID",(e,t)=>{tI.init(e,t),Se.init(e,t)}),b4=C("ZodXID",(e,t)=>{rI.init(e,t),Se.init(e,t)}),_4=C("ZodKSUID",(e,t)=>{nI.init(e,t),Se.init(e,t)}),k4=C("ZodIPv4",(e,t)=>{lI.init(e,t),Se.init(e,t)}),S4=C("ZodIPv6",(e,t)=>{cI.init(e,t),Se.init(e,t)}),E4=C("ZodCIDRv4",(e,t)=>{uI.init(e,t),Se.init(e,t)}),j4=C("ZodCIDRv6",(e,t)=>{dI.init(e,t),Se.init(e,t)}),T4=C("ZodBase64",(e,t)=>{hI.init(e,t),Se.init(e,t)}),N4=C("ZodBase64URL",(e,t)=>{pI.init(e,t),Se.init(e,t)}),C4=C("ZodE164",(e,t)=>{mI.init(e,t),Se.init(e,t)}),A4=C("ZodJWT",(e,t)=>{yI.init(e,t),Se.init(e,t)}),P4=C("ZodUnknown",(e,t)=>{vI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>P$()});function oy(){return u$(P4)}const R4=C("ZodNever",(e,t)=>{wI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>A$(e,r,n)});function O4(e){return d$(R4,e)}const I4=C("ZodArray",(e,t)=>{xI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>$$(e,r,n,s),e.element=t.element,Uc(e,"ZodArray",{min(r,n){return this.check(ec(r,n))},nonempty(r){return this.check(ec(1,r))},max(r,n){return this.check(pb(r,n))},length(r,n){return this.check(mb(r,n))},unwrap(){return this.element}})});function $4(e,t){return k$(I4,e,t)}const D4=C("ZodObject",(e,t)=>{_I.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>D$(e,r,n,s),de(e,"shape",()=>t.shape),Uc(e,"ZodObject",{keyof(){return B4(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:oy()})},loose(){return this.clone({...this._zod.def,catchall:oy()})},strict(){return this.clone({...this._zod.def,catchall:O4()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return KR(this,r)},safeExtend(r){return ZR(this,r)},merge(r){return GR(this,r)},pick(r){return VR(this,r)},omit(r){return qR(this,r)},partial(...r){return JR(_b,this,r[0])},required(...r){return YR(kb,this,r[0])}})});function M4(e,t){const r={type:"object",shape:e??{},...V(t)};return new D4(r)}const L4=C("ZodUnion",(e,t)=>{kI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>M$(e,r,n,s),e.options=t.options});function z4(e,t){return new L4({type:"union",options:e,...V(t)})}const U4=C("ZodIntersection",(e,t)=>{SI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>L$(e,r,n,s)});
368function F4(e,t){return new U4({type:"intersection",left:e,right:t})}const bh=C("ZodEnum",(e,t)=>{EI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(n,s,o)=>R$(e,n,s),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,s)=>{const o={};for(const i of n)if(r.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new bh({...t,checks:[],...V(s),entries:o})},e.exclude=(n,s)=>{const o={...t.entries};for(const i of n)if(r.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new bh({...t,checks:[],...V(s),entries:o})}});function B4(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new bh({type:"enum",entries:r,...V(t)})}const W4=C("ZodTransform",(e,t)=>{jI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>I$(e,r),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Xx(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(ra(o,r.value,t));else{const i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(ra(i))}};const s=t.transform(r.value,r);return s instanceof Promise?s.then(o=>(r.value=o,r.fallback=!0,r)):(r.value=s,r.fallback=!0,r)}});function H4(e){return new W4({type:"transform",transform:e})}const _b=C("ZodOptional",(e,t)=>{fb.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>wb(e,r,n,s),e.unwrap=()=>e._zod.def.innerType});function iy(e){return new _b({type:"optional",innerType:e})}const V4=C("ZodExactOptional",(e,t)=>{TI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>wb(e,r,n,s),e.unwrap=()=>e._zod.def.innerType});function q4(e){return new V4({type:"optional",innerType:e})}const K4=C("ZodNullable",(e,t)=>{NI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>z$(e,r,n,s),e.unwrap=()=>e._zod.def.innerType});function ay(e){return new K4({type:"nullable",innerType:e})}const Z4=C("ZodDefault",(e,t)=>{CI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>F$(e,r,n,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function G4(e,t){return new Z4({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():rb(t)}})}const J4=C("ZodPrefault",(e,t)=>{AI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>B$(e,r,n,s),e.unwrap=()=>e._zod.def.innerType});function Y4(e,t){return new J4({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():rb(t)}})}const kb=C("ZodNonOptional",(e,t)=>{PI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>U$(e,r,n,s),e.unwrap=()=>e._zod.def.innerType});function Q4(e,t){return new kb({type:"nonoptional",innerType:e,...V(t)})}const X4=C("ZodCatch",(e,t)=>{RI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>W$(e,r,n,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function eD(e,t){return new X4({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const tD=C("ZodPipe",(e,t)=>{OI.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>H$(e,r,n,s),e.in=t.in,e.out=t.out});function ly(e,t){return new tD({type:"pipe",in:e,out:t})}const rD=C("ZodReadonly",(e,t)=>{II.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>V$(e,r,n,s),e.unwrap=()=>e._zod.def.innerType});function nD(e){return new rD({type:"readonly",innerType:e})}const sD=C("ZodCustom",(e,t)=>{$I.init(e,t),Ue.init(e,t),e._zod.processJSONSchema=(r,n,s)=>O$(e,r)});function oD(e,t={}){return S$(sD,e,t)}function iD(e,t){return E$(e,t)}const aD=M4({email:ny().email("Please enter a valid email address"),password:ny().min(6,"Password must be at least 6 characters")}),lD=()=>{const[e,t]=b.useState(!0),[r,n]=b.useState(""),[s,o]=b.useState(""),[i,a]=b.useState(!1),[l,u]=b.useState({}),{user:d,isLoading:h,signIn:p,signUp:f}=Vx(),y=Rc(),{toast:m}=fa();b.useEffect(()=>{if(d&&!h){const w=new URLSearchParams(window.location.search).get("next"),_=w&&w.startsWith("/")&&!w.startsWith("//")?w:null;y(_??"/admin")}},[d,h,y]);const x=()=>{try{return aD.parse({email:r,password:s}),u({}),!0}catch(g){if(g instanceof e4){const w={};
368g.issues.forEach(_=>{_.path[0]==="email"&&(w.email=_.message),_.path[0]==="password"&&(w.password=_.message)}),u(w)}return!1}},v=async g=>{if(g.preventDefault(),!!x()){a(!0);try{if(e){const{error:w}=await p(r,s);w?w.message.includes("Invalid login credentials")?m({title:"Login failed",description:"Invalid email or password. Please try again.",variant:"destructive"}):m({title:"Login failed",description:w.message,variant:"destructive"}):m({title:"Welcome back!",description:"You have successfully logged in."})}else{const{error:w}=await f(r,s);w?w.message.includes("already registered")?m({title:"Account exists",description:"An account with this email already exists. Please log in instead.",variant:"destructive"}):m({title:"Sign up failed",description:w.message,variant:"destructive"}):m({title:"Account created!",description:"Please check your email to confirm your account."})}}catch{m({title:"Error",description:"An unexpected error occurred. Please try again.",variant:"destructive"})}finally{a(!1)}}};return h?c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:c.jsx(En,{className:"h-8 w-8 animate-spin text-primary"})}):c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:c.jsxs("div",{className:"w-full max-w-md",children:[c.jsxs(Ae,{to:"/",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground mb-8 transition-colors",children:[c.jsx(Ft,{className:"h-4 w-4"}),"Back to site"]}),c.jsxs(dt,{className:"border-border/50 shadow-xl",children:[c.jsxs(Ar,{className:"space-y-1",children:[c.jsx(Pr,{className:"text-2xl font-bold",children:e?"Admin Login":"Create Account"}),c.jsx(ls,{children:e?"Enter your credentials to access the admin dashboard":"Create an account to get started"})]}),c.jsxs(ht,{children:[c.jsxs("form",{onSubmit:v,className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(vh,{htmlFor:"email",children:"Email"}),c.jsxs("div",{className:"relative",children:[c.jsx(Bi,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),c.jsx(cs,{id:"email",type:"email",placeholder:"[email protected]",value:r,onChange:g=>n(g.target.value),className:`pl-10 ${l.email?"border-destructive":""}`,disabled:i})]}),l.email&&c.jsx("p",{className:"text-sm text-destructive",children:l.email})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(vh,{htmlFor:"password",children:"Password"}),c.jsxs("div",{className:"relative",children:[c.jsx(_E,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),c.jsx(cs,{id:"password",type:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:s,onChange:g=>o(g.target.value),className:`pl-10 ${l.password?"border-destructive":""}`,disabled:i})]}),l.password&&c.jsx("p",{className:"text-sm text-destructive",children:l.password})]}),c.jsx(Ne,{type:"submit",className:"w-full",disabled:i,children:i?c.jsxs(c.Fragment,{children:[c.jsx(En,{className:"mr-2 h-4 w-4 animate-spin"}),e?"Signing in...":"Creating account..."]}):e?"Sign In":"Create Account"})]}),c.jsxs("div",{className:"mt-6 text-center text-sm",children:[c.jsx("span",{className:"text-muted-foreground",children:e?"Don't have an account? ":"Already have an account? "}),c.jsx("button",{type:"button",onClick:()=>{t(!e),u({})},className:"text-primary hover:underline font-medium",disabled:i,children:e?"Sign up":"Sign in"})]})]})]})]})})};var cD=b.createContext(void 0);function Sb(e){const t=b.useContext(cD);return e||t||"ltr"}var Bu="rovingFocusGroup.onEntryFocus",uD={bubbles:!1,cancelable:!0},va="RovingFocusGroup",[_h,Eb,dD]=Kw(va),[hD,jb]=Mo(va,[dD]),[fD,pD]=hD(va),Tb=b.forwardRef((e,t)=>c.jsx(_h.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(_h.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(mD,{...e,ref:t})})}));Tb.displayName=va;var mD=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...h}=e,p=b.useRef(null),f=Ut(t,p),y=Sb(o),[m,x]=jf({prop:i,defaultProp:a??null,onChange:l,caller:va}),[v,g]=b.useState(!1),w=zr(u),_=Eb(r),k=b.useRef(!1),[S,E]=b.useState(0);return b.useEffect(()=>{const j=p.current;
vendor: 4,958 bytes, line 368
368if(j)return j.addEventListener(Bu,w),()=>j.removeEventListener(Bu,w)},[w]),c.jsx(fD,{scope:r,orientation:n,dir:y,loop:s,currentTabStopId:m,onItemFocus:b.useCallback(j=>x(j),[x]),onItemShiftTab:b.useCallback(()=>g(!0),[]),onFocusableItemAdd:b.useCallback(()=>E(j=>j+1),[]),onFocusableItemRemove:b.useCallback(()=>E(j=>j-1),[]),children:c.jsx(Pe.div,{tabIndex:v||S===0?-1:0,"data-orientation":n,...h,ref:f,style:{outline:"none",...e.style},onMouseDown:ue(e.onMouseDown,()=>{k.current=!0}),onFocus:ue(e.onFocus,j=>{const O=!k.current;if(j.target===j.currentTarget&&O&&!v){const I=new CustomEvent(Bu,uD);if(j.currentTarget.dispatchEvent(I),!I.defaultPrevented){const B=_().filter(U=>U.focusable),M=B.find(U=>U.active),Y=B.find(U=>U.id===m),Q=[M,Y,...B].filter(Boolean).map(U=>U.ref.current);Ab(Q,d)}}k.current=!1}),onBlur:ue(e.onBlur,()=>g(!1))})})}),Nb="RovingFocusGroupItem",Cb=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:o,children:i,...a}=e,l=O0(),u=o||l,d=pD(Nb,r),h=d.currentTabStopId===u,p=Eb(r),{onFocusableItemAdd:f,onFocusableItemRemove:y,currentTabStopId:m}=d;return b.useEffect(()=>{if(n)return f(),()=>y()},[n,f,y]),c.jsx(_h.ItemSlot,{scope:r,id:u,focusable:n,active:s,children:c.jsx(Pe.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:ue(e.onMouseDown,x=>{n?d.onItemFocus(u):x.preventDefault()}),onFocus:ue(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:ue(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=vD(x,d.orientation,d.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let w=p().filter(_=>_.focusable).map(_=>_.ref.current);if(v==="last")w.reverse();else if(v==="prev"||v==="next"){v==="prev"&&w.reverse();const _=w.indexOf(x.currentTarget);w=d.loop?wD(w,_+1):w.slice(_+1)}setTimeout(()=>Ab(w))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:m!=null}):i})})});Cb.displayName=Nb;var gD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yD(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function vD(e,t,r){const n=yD(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return gD[n]}function Ab(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function wD(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var xD=Tb,bD=Cb,Fc="Tabs",[_D,HM]=Mo(Fc,[jb]),Pb=jb(),[kD,op]=_D(Fc),Rb=b.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:s,defaultValue:o,orientation:i="horizontal",dir:a,activationMode:l="automatic",...u}=e,d=Sb(a),[h,p]=jf({prop:n,onChange:s,defaultProp:o??"",caller:Fc});return c.jsx(kD,{scope:r,baseId:O0(),value:h,onValueChange:p,orientation:i,dir:d,activationMode:l,children:c.jsx(Pe.div,{dir:d,"data-orientation":i,...u,ref:t})})});Rb.displayName=Fc;var Ob="TabsList",Ib=b.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...s}=e,o=op(Ob,r),i=Pb(r);return c.jsx(xD,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:n,children:c.jsx(Pe.div,{role:"tablist","aria-orientation":o.orientation,...s,ref:t})})});Ib.displayName=Ob;var $b="TabsTrigger",Db=b.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:s=!1,...o}=e,i=op($b,r),a=Pb(r),l=zb(i.baseId,n),u=Ub(i.baseId,n),d=n===i.value;return c.jsx(bD,{asChild:!0,...a,focusable:!s,active:d,children:c.jsx(Pe.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:l,...o,ref:t,onMouseDown:ue(e.onMouseDown,h=>{!s&&h.button===0&&h.ctrlKey===!1?i.onValueChange(n):h.preventDefault()}),onKeyDown:ue(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&i.onValueChange(n)}),onFocus:ue(e.onFocus,()=>{const h=i.activationMode!=="manual";!d&&!s&&h&&i.onValueChange(n)})})})});Db.displayName=$b;var Mb="TabsContent",Lb=b.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:s,children:o,...i}=e,a=op(Mb,r),l=zb(a.baseId,n),u=Ub(a.baseId,n),d=n===a.value,h=b.useRef(d);return b.useEffect(()=>{const p=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(p)},[]),c.jsx(xc,{present:s||d,children:({present:p})=>c.jsx(Pe.div,{"data-state":d?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!p,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:p&&o})})});Lb.displayName=Mb;function zb(e,t){return`${e}-trigger-${t}`}function Ub(e,t){return`${e}-content-${t}`}var SD=Rb,Fb=Ib,Bb=Db,Wb=Lb;const ED=SD,Hb=b.forwardRef(({className:e,...t},r)=>c.jsx(Fb,{ref:r,className:le("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Hb.displayName=Fb.displayName;
vendor: 6,870 bytes, line 368
368const kh=b.forwardRef(({className:e,...t},r)=>c.jsx(Bb,{ref:r,className:le("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));kh.displayName=Bb.displayName;const Sh=b.forwardRef(({className:e,...t},r)=>c.jsx(Wb,{ref:r,className:le("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Sh.displayName=Wb.displayName;const Vb=b.forwardRef(({className:e,...t},r)=>c.jsx("div",{className:"relative w-full overflow-auto",children:c.jsx("table",{ref:r,className:le("w-full caption-bottom text-sm",e),...t})}));Vb.displayName="Table";const qb=b.forwardRef(({className:e,...t},r)=>c.jsx("thead",{ref:r,className:le("[&_tr]:border-b",e),...t}));qb.displayName="TableHeader";const Kb=b.forwardRef(({className:e,...t},r)=>c.jsx("tbody",{ref:r,className:le("[&_tr:last-child]:border-0",e),...t}));Kb.displayName="TableBody";const jD=b.forwardRef(({className:e,...t},r)=>c.jsx("tfoot",{ref:r,className:le("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));jD.displayName="TableFooter";const Eh=b.forwardRef(({className:e,...t},r)=>c.jsx("tr",{ref:r,className:le("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Eh.displayName="TableRow";const jh=b.forwardRef(({className:e,...t},r)=>c.jsx("th",{ref:r,className:le("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));jh.displayName="TableHead";const Th=b.forwardRef(({className:e,...t},r)=>c.jsx("td",{ref:r,className:le("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Th.displayName="TableCell";const TD=b.forwardRef(({className:e,...t},r)=>c.jsx("caption",{ref:r,className:le("mt-4 text-sm text-muted-foreground",e),...t}));TD.displayName="TableCaption";function cr(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 vs(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Zb=6048e5,ND=864e5;let CD={};function Bc(){return CD}function na(e,t){var a,l,u,d;const r=Bc(),n=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=cr(e),o=s.getDay(),i=(o<n?7:0)+o-n;return s.setDate(s.getDate()-i),s.setHours(0,0,0,0),s}function rc(e){return na(e,{weekStartsOn:1})}function Gb(e){const t=cr(e),r=t.getFullYear(),n=vs(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const s=rc(n),o=vs(e,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=rc(o);return t.getTime()>=s.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function cy(e){const t=cr(e);return t.setHours(0,0,0,0),t}function uy(e){const t=cr(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function AD(e,t){const r=cy(e),n=cy(t),s=+r-uy(r),o=+n-uy(n);return Math.round((s-o)/ND)}function PD(e){const t=Gb(e),r=vs(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),rc(r)}function RD(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function OD(e){if(!RD(e)&&typeof e!="number")return!1;const t=cr(e);return!isNaN(Number(t))}function ID(e){const t=cr(e),r=vs(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const $D={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"}},DD=(e,t,r)=>{let n;const s=$D[e];return typeof s=="string"?n=s:t===1?n=s.one:n=s.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Wu(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const MD={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LD={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},UD={date:Wu({formats:MD,defaultWidth:"full"}),time:Wu({formats:LD,defaultWidth:"full"}),dateTime:Wu({formats:zD,defaultWidth:"full"})},FD={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},BD=(e,t,r,n)=>FD[e];function oi(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let s;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):i;s=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;s=e.values[a]||e.values[i]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const WD={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},HD={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},VD={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"]},qD={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","Frid
368ay","Saturday"]},KD={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"}},ZD={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"}},GD=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},JD={ordinalNumber:GD,era:oi({values:WD,defaultWidth:"wide"}),quarter:oi({values:HD,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oi({values:VD,defaultWidth:"wide"}),day:oi({values:qD,defaultWidth:"wide"}),dayPeriod:oi({values:KD,defaultWidth:"wide",formattingValues:ZD,defaultFormattingWidth:"wide"})};function ii(e){return(t,r={})=>{const n=r.width,s=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const i=o[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?QD(a,h=>h.test(i)):YD(a,h=>h.test(i));let u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function YD(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function QD(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function XD(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const s=n[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;const a=t.slice(s.length);return{value:i,rest:a}}}const eM=/^(\d+)(th|st|nd|rd)?/i,tM=/\d+/i,rM={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},nM={any:[/^b/i,/^(a|c)/i]},sM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},oM={any:[/1/i,/2/i,/3/i,/4/i]},iM={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},aM={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]},lM={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},cM={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]},uM={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},dM={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}},hM={ordinalNumber:XD({matchPattern:eM,parsePattern:tM,valueCallback:e=>parseInt(e,10)}),era:ii({matchPatterns:rM,defaultMatchWidth:"wide",parsePatterns:nM,defaultParseWidth:"any"}),quarter:ii({matchPatterns:sM,defaultMatchWidth:"wide",parsePatterns:oM,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ii({matchPatterns:iM,defaultMatchWidth:"wide",parsePatterns:aM,defaultParseWidth:"any"}),day:ii({matchPatterns:lM,defaultMatchWidth:"wide",parsePatterns:cM,defaultParseWidth:"any"}),dayPeriod:ii({matchPatterns:uM,defaultMatchWidth:"any",parsePatterns:dM,defaultParseWidth:"any"})},fM={code:"en-US",formatDistance:DD,formatLong:UD,formatRelative:BD,localize:JD,match:hM,options:{weekStartsOn:0,firstWeekContainsDate:1}};function pM(e){const t=cr(e);return AD(t,ID(t))+1}function mM(e){const t=cr(e),r=+rc(t)-+PD(t);return Math.round(r/Zb)+1}function Jb(e,t){var d,h,p,f;const r=cr(e),n=r.getFullYear(),s=Bc(),o=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??s.firstWeekContainsDate??((f=(p=s.locale)==null?void 0:p.options)==null?void 0:f.firstWeekContainsDate)??1,i=vs(e,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);const a=na(i,t),l=vs(e,0);l.setFullYear(n,0,o),l.setHours(0,0,0,0);const u=na(l,t);return r.getTime()>=a.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function gM(e,t){var a,l,u,d;const r=Bc(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,s=Jb(e,t),o=vs(e,0);return o.setFullYear(s,0,n),o.setHours(0,0,0,0),na(o,t)}function yM(e,t){const r=cr(e),n=+na(r,t)-+gM(r,t);return Math.round(n/Zb)+1}function ie(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const en={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ie(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ie(r+1,2)},d(e,t){return ie(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ie(e.getHours()%12||12,t.length)},H(e,t){return ie(e.getHours(),t.length)},m(e,t){return ie(e.getMinutes(),t.length)},s(e,t){return ie(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),s=Math.trunc(n*Math.pow(10,r-3));return ie(s,t.length)}},Us={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dy={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),s=n>0?n:1-n;return r.ordinalNumber(s,{unit:"year"})}return en.y(e,t)},Y:function(e,t,r,n){const s=Jb(e,n),o=s>0?s:1-s;if(t==="YY"){const i=o%100;return ie(i,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):ie(o,t.length)},R:function(e,t){const r=Gb(e);return ie(r,t.length)},u:function(e,t){const r=e.getFullYear();return ie(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ie(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ie(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return en.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ie(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const s=yM(e,n);return t==="wo"?r.ordinalNumber(s,{unit:"week"}):ie(s,t.length)},I:function(e,t,r){const n=mM(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ie(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):en.d(e,t)},D:function(e,t,r){const n=pM(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ie(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const s=e.getDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ie(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const s=e.getDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ie(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),s=n===0?7:n;switch(t){case"i":return String(s);case"ii":return ie(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let s;switch(n===12?s=Us.noon:n===0?s=Us.midnight:s=n/12>
vendor: 4,402 bytes, line 368
368=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let s;switch(n>=17?s=Us.evening:n>=12?s=Us.afternoon:n>=4?s=Us.morning:s=Us.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return en.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):en.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ie(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ie(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):en.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):en.s(e,t)},S:function(e,t){return en.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return fy(n);case"XXXX":case"XX":return qn(n);case"XXXXX":case"XXX":default:return qn(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return fy(n);case"xxxx":case"xx":return qn(n);case"xxxxx":case"xxx":default:return qn(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hy(n,":");case"OOOO":default:return"GMT"+qn(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hy(n,":");case"zzzz":default:return"GMT"+qn(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return ie(n,t.length)},T:function(e,t,r){const n=e.getTime();return ie(n,t.length)}};function hy(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Math.trunc(n/60),o=n%60;return o===0?r+String(s):r+String(s)+t+ie(o,2)}function fy(e,t){return e%60===0?(e>0?"-":"+")+ie(Math.abs(e)/60,2):qn(e,t)}function qn(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=ie(Math.trunc(n/60),2),o=ie(n%60,2);return r+s+t+o}const py=(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"})}},Yb=(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"})}},vM=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],s=r[2];if(!s)return py(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",py(n,t)).replace("{{time}}",Yb(s,t))},wM={p:Yb,P:vM},xM=/^D+$/,bM=/^Y+$/,_M=["D","DD","YY","YYYY"];function kM(e){return xM.test(e)}function SM(e){return bM.test(e)}function EM(e,t,r){const n=jM(e,t,r);if(console.warn(n),_M.includes(e))throw new RangeError(n)}function jM(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const TM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,NM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CM=/^'([^]*?)'?$/,AM=/''/g,PM=/[a-zA-Z]/;function my(e,t,r){var d,h,p,f;const n=Bc(),s=n.locale??fM,o=n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=n.weekStartsOn??((f=(p=n.locale)==null?void 0:p.options)==null?void 0:f.weekStartsOn)??0,a=cr(e);if(!OD(a))throw new RangeError("Invalid time value");let l=t.match(NM).map(y=>{const m=y[0];if(m==="p"||m==="P"){const x=wM[m];return x(y,s.formatLong)}return y}).join("").match(TM).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const m=y[0];if(m==="'")return{isToken:!1,value:RM(y)};if(dy[m])return{isToken:!0,value:y};
368if(m.match(PM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:y}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const u={firstWeekContainsDate:o,weekStartsOn:i,locale:s};return l.map(y=>{if(!y.isToken)return y.value;const m=y.value;(SM(m)||kM(m))&&EM(m,t,String(e));const x=dy[m[0]];return x(a,m,s.localize,u)}).join("")}function RM(e){const t=e.match(CM);return t?t[1].replace(AM,"'"):e}const OM=()=>{const[e,t]=b.useState([]),[r,n]=b.useState([]),[s,o]=b.useState(!0),{user:i,isAdmin:a,isLoading:l,signOut:u}=Vx(),d=Rc(),{toast:h}=fa();b.useEffect(()=>{!l&&!i&&d("/auth")},[i,l,d]),b.useEffect(()=>{i&&a?p():i&&!l&&!a&&o(!1)},[i,a,l]);const p=async()=>{o(!0);try{const[y,m]=await Promise.all([It.from("newsletter_subscribers").select("*").order("subscribed_at",{ascending:!1}),It.from("booking_inquiries").select("*").order("created_at",{ascending:!1})]);if(y.error)throw y.error;if(m.error)throw m.error;t(y.data||[]),n(m.data||[])}catch(y){console.error("Error fetching data:",y),h({title:"Error loading data",description:"Could not load admin data. Please try again.",variant:"destructive"})}finally{o(!1)}},f=async()=>{await u(),d("/"),h({title:"Signed out",description:"You have been successfully signed out."})};return l?c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:c.jsx(En,{className:"h-8 w-8 animate-spin text-primary"})}):i?a?c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx("header",{className:"border-b border-border/50 bg-card/50 backdrop-blur-sm sticky top-0 z-50",children:c.jsxs("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx(Ae,{to:"/",className:"text-muted-foreground hover:text-foreground transition-colors",children:c.jsx(Ft,{className:"h-5 w-5"})}),c.jsx("h1",{className:"text-xl font-semibold",children:"Admin Dashboard"})]}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("span",{className:"text-sm text-muted-foreground hidden sm:block",children:i.email}),c.jsxs(Ne,{variant:"outline",size:"sm",onClick:f,children:[c.jsx(Dm,{className:"h-4 w-4 mr-2"}),"Sign Out"]})]})]})}),c.jsxs("main",{className:"container mx-auto px-4 py-8",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-8",children:[c.jsxs(dt,{children:[c.jsxs(Ar,{className:"flex flex-row items-center justify-between pb-2",children:[c.jsx(Pr,{className:"text-sm font-medium",children:"Newsletter Subscribers"}),c.jsx(Af,{className:"h-4 w-4 text-muted-foreground"})]}),c.jsxs(ht,{children:[c.jsx("div",{className:"text-3xl font-bold",children:e.length}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Total subscribers"})]})]}),c.jsxs(dt,{children:[c.jsxs(Ar,{className:"flex flex-row items-center justify-between pb-2",children:[c.jsx(Pr,{className:"text-sm font-medium",children:"Booking Inquiries"}),c.jsx(SE,{className:"h-4 w-4 text-muted-foreground"})]}),c.jsxs(ht,{children:[c.jsx("div",{className:"text-3xl font-bold",children:r.length}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Total inquiries"})]})]})]}),c.jsxs(ED,{defaultValue:"subscribers",className:"space-y-6",children:[c.jsxs(Hb,{children:[c.jsxs(kh,{value:"subscribers",className:"gap-2",children:[c.jsx(Bi,{className:"h-4 w-4"}),"Subscribers"]}
368),c.jsxs(kh,{value:"inquiries",className:"gap-2",children:[c.jsx(bs,{className:"h-4 w-4"}),"Inquiries"]})]}),c.jsx(Sh,{value:"subscribers",children:c.jsxs(dt,{children:[c.jsxs(Ar,{children:[c.jsx(Pr,{children:"Newsletter Subscribers"}),c.jsx(ls,{children:"All users who have subscribed to your newsletter"})]}),c.jsx(ht,{children:s?c.jsx("div",{className:"flex justify-center py-8",children:c.jsx(En,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):e.length===0?c.jsx("p",{className:"text-center py-8 text-muted-foreground",children:"No subscribers yet"}):c.jsx("div",{className:"overflow-x-auto",children:c.jsxs(Vb,{children:[c.jsx(qb,{children:c.jsxs(Eh,{children:[c.jsx(jh,{children:"Email"}),c.jsx(jh,{children:"Subscribed"})]})}),c.jsx(Kb,{children:e.map(y=>c.jsxs(Eh,{children:[c.jsx(Th,{className:"font-medium",children:y.email}),c.jsx(Th,{children:my(new Date(y.subscribed_at),"PPp")})]},y.id))})]})})})]})}),c.jsx(Sh,{value:"inquiries",children:c.jsxs(dt,{children:[c.jsxs(Ar,{children:[c.jsx(Pr,{children:"Booking Inquiries"}),c.jsx(ls,{children:"Speaking engagement requests and inquiries"})]}),c.jsx(ht,{children:s?c.jsx("div",{className:"flex justify-center py-8",children:c.jsx(En,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):r.length===0?c.jsx("p",{className:"text-center py-8 text-muted-foreground",children:"No inquiries yet"}):c.jsx("div",{className:"space-y-4",children:r.map(y=>c.jsx(dt,{className:"bg-muted/30",children:c.jsxs(ht,{className:"pt-6",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-4",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Name"}),c.jsx("p",{className:"font-medium",children:y.name})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Email"}),c.jsx("p",{className:"font-medium",children:y.email})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Organization"}),c.jsx("p",{className:"font-medium",children:y.organization})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Submitted"}),c.jsx("p",{className:"font-medium",children:my(new Date(y.created_at),"PPp")})]})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Event Details"}),c.jsx("p",{className:"text-sm bg-background/50 p-3 rounded-md",children:y.event_details})]})]})},y.id))})})]})})]})]})]}):c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:c.jsxs(dt,{className:"max-w-md w-full",children:[c.jsxs(Ar,{className:"text-center",children:[c.jsx(TE,{className:"h-12 w-12 text-destructive mx-auto mb-4"}),c.jsx(Pr,{children:"Access Denied"}),c.jsx(ls,{children:"You don't have admin privileges to access this dashboard. Please contact the site administrator if you believe this is an error."})]}),c.jsxs(ht,{className:"flex flex-col gap-4",children:[c.jsxs(Ne,{variant:"outline",onClick:f,className:"w-full",children:[c.jsx(Dm,{className:"mr-2 h-4 w-4"}),"Sign Out"]}),c.jsx(Ae,{to:"/",children:c.jsxs(Ne,{variant:"ghost",className:"w-full",children:[c.jsx(Ft,{className:"mr-2 h-4 w-4"}),"Back to Site"]})})]})]})}):null},Hu=It.auth.oauth;function IM(){var h,p,f;const[e]=iA(),t=e.get("authorization_id")??"",[r,n]=b.useState(null),[s,o]=b.useState(null),[i,a]=b.useState(!1);b.useEffect(()=>{let y=!0;return(async()=>{if(!t){o("Missing authorization_id in the request URL.");return}const{data:m}=await It.auth.getSession();if(!m.session){const x=window.location.pathname+window.location.search;window.location.href="/auth?next="+encodeURIComponent(x);return}try{const{data:x,error:v}=await Hu.getAuthorizationDetails(t);if(!y)return;if(v){o(v.message);return}const g=(x==null?void 0:x.redirect_url)??(x==null?void 0:x.redirect_to);if(g&&!(x!=null&&x.client)){window.location.href=g;return}n(x)}catch(x){o((x==null?void 0:x.message)??"Failed to load authorization details.")}})(),()=>{y=!1}},[t]);async function l(y){a(!0),o(null);try{const{data:m,error:x}=y?await Hu.approveAuthorization(t):await Hu.denyAuthorization(t);
368if(x){a(!1),o(x.message);return}const v=(m==null?void 0:m.redirect_url)??(m==null?void 0:m.redirect_to);if(!v){a(!1),o("The authorization server did not return a redirect URL.");return}window.location.href=v}catch(m){a(!1),o((m==null?void 0:m.message)??"Something went wrong.")}}if(s)return c.jsx("main",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:c.jsxs(dt,{className:"w-full max-w-md",children:[c.jsxs(Ar,{children:[c.jsx(Pr,{children:"Authorization error"}),c.jsx(ls,{children:s})]}),c.jsx(ht,{children:c.jsx(Ae,{to:"/",className:"text-primary hover:underline",children:"Back to site"})})]})});if(!r)return c.jsx("main",{className:"min-h-screen flex items-center justify-center bg-background",children:c.jsx(En,{className:"h-8 w-8 animate-spin text-primary"})});const u=((h=r.client)==null?void 0:h.name)??((p=r.client)==null?void 0:p.client_name)??"an application",d=((f=r.client)==null?void 0:f.redirect_uri)??r.redirect_uri;return c.jsx("main",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:c.jsxs(dt,{className:"w-full max-w-md",children:[c.jsxs(Ar,{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center gap-2 text-primary",children:[c.jsx(NE,{className:"h-5 w-5"}),c.jsx("span",{className:"text-sm font-medium",children:"Authorize access"})]}),c.jsxs(Pr,{children:["Connect ",u," to Rita Arrigo"]}),c.jsxs(ls,{children:["This lets ",u," use this site as you. It does not bypass this app's permissions or backend policies."]})]}),c.jsxs(ht,{className:"space-y-4",children:[d&&c.jsxs("div",{className:"text-xs text-muted-foreground break-all",children:["Redirect URI: ",c.jsx("span",{className:"font-mono",children:d})]}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx(Ne,{className:"flex-1",disabled:i,onClick:()=>l(!0),children:i?c.jsx(En,{className:"h-4 w-4 animate-spin"}):"Approve"}),c.jsx(Ne,{variant:"outline",className:"flex-1",disabled:i,onClick:()=>l(!1),children:"Cancel"})]})]})]})})}const $M=()=>{const e=Bo();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),c.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},DM=new rC,MM=()=>c.jsx(sC,{client:DM,children:c.jsx(FP,{children:c.jsxs(RN,{children:[c.jsx(fj,{}),c.jsx(Vj,{}),c.jsx(rA,{children:c.jsxs(ZC,{children:[c.jsx(Ct,{path:"/",element:c.jsx(sR,{})}),c.jsx(Ct,{path:"/ask-rita",element:c.jsx(iR,{})}),c.jsx(Ct,{path:"/beyond-23",element:c.jsx(aR,{})}),c.jsx(Ct,{path:"/cyber-cafe",element:c.jsx(fR,{})}),c.jsx(Ct,{path:"/microsoft-ai",element:c.jsx(pR,{})}),c.jsx(Ct,{path:"/conferences",element:c.jsx(RR,{})}),c.jsx(Ct,{path:"/sxsw-sydney",element:c.jsx(LR,{})}),c.jsx(Ct,{path:"/auth",element:c.jsx(lD,{})}),c.jsx(Ct,{path:"/admin",element:c.jsx(OM,{})}),c.jsx(Ct,{path:"/.lovable/oauth/consent",element:c.jsx(IM,{})}),c.jsx(Ct,{path:"*",element:c.jsx($M,{})})]})})]})})});Mw(document.getElementById("root")).render(c.jsx(Hw,{children:c.jsx(MM,{})}));
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.