1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_layout.index-Da5wNO4S.js","assets/arrow-left-BL2IAPX1.js","assets/chart-line-DKCgY7aP.js","assets/_layout.about-ClEEf7Yj.js","assets/CalloutCards-CbI6pdfo.js","assets/users-CBMBlJ8h.js","assets/eye-C-lw8C82.js","assets/_layout.ai-visibility-arcade-CB_48vSG.js","assets/useSuspenseQuery-Bj7k8sXb.js","assets/useBaseQuery-CHb0wZz4.js","assets/AiVisibilityArcade-BmMfqQ65.js","assets/useQuery-CBhXThOQ.js","assets/pause-16gwaKsT.js","assets/undo-2-CIb4Zq7Z.js","assets/triangle-alert-BmTLbzvP.js","assets/copy-B-TosuI1.js","assets/smartphone-BKMeQSTS.js","assets/trophy-DdYlxDPQ.js","assets/zap-B0oH0EBP.js","assets/music-2-D8sTqkzK.js","assets/arcadeShare-CksMuQ5V.js","assets/rotate-ccw-VUJk9J6S.js","assets/shield-D8Qx_HJR.js","assets/_layout.ai-visibility-leaderboard-C7k5p07l.js","assets/_layout.portfolio-BhCYNkx_.js","assets/admin.tool-feedback-VArhk4ch.js","assets/useServerFn-afPL8VjA.js","assets/tool-feedback.functions-BHmLoH7I.js","assets/_layout.blog.index-Bp0r_Hfc.js","assets/AiImageDisclaimer-C5D19r4p.js","assets/_layout.blog._slug-CX9JitEq.js","assets/embeds-C8ga9Cln.js","assets/MormonWivesSEOQuiz-DcLeSA6A.js","assets/_layout.games.index-C8PV8jRZ.js","assets/_layout.games.googlebot-crawl-challenge-Cd6qVF1b.js","assets/_layout.games.migration-mayhem-DUJ4-5Xy.js","assets/_layout.games.which-mormon-wife-is-your-seo-strategy-BJwfYDq8.
vendor: 9,724 bytes, lines 1-2
1js","assets/_layout.services.ai-search-geo-Cszk24Cb.js","assets/_layout.tools.why-wont-my-page-index-ByYLwZxR.js","assets/admin.posts.index-DlVjh_Xe.js","assets/admin.posts._id-Dzngmzgu.js","assets/PostForm-BT4r1S23.js","assets/admin.posts.new-DL5o-gq7.js"])))=>i.map(i=>d[i]); 2function aE(e,t){for(var i=0;i<t.length;i++){const r=t[i];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const c=Object.getOwnPropertyDescriptor(r,l);c&&Object.defineProperty(e,l,c.get?c:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function iE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function GL(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var i=function r(){var l=!1;try{l=this instanceof r}catch{}return l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(i,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),i}var Pd={exports:{}},_s={};var Oy;function rE(){if(Oy)return _s;Oy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(r,l,c){var u=null;if(c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:e,type:r,key:u,ref:l!==void 0?l:null,props:c}}return _s.Fragment=t,_s.jsx=i,_s.jsxs=i,_s}var Ay;function sE(){return Ay||(Ay=1,Pd.exports=rE()),Pd.exports}var T=sE(),qd={exports:{}},pe={};var ky;function oE(){if(ky)return pe;ky=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,A={};function k(R,H,K){this.props=R,this.context=H,this.refs=A,this.updater=K||_}k.prototype.isReactComponent={},k.prototype.setState=function(R,H){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,H,"setState")},k.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function j(){}j.prototype=k.prototype;function C(R,H,K){this.props=R,this.context=H,this.refs=A,this.updater=K||_}var B=C.prototype=new j;B.constructor=C,E(B,k.prototype),B.isPureReactComponent=!0;var J=Array.isArray;function P(){}var L={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function Z(R,H,K){var ne=K.ref;return{$$typeof:e,type:R,key:H,ref:ne!==void 0?ne:null,props:K}}function se(R,H){return Z(R.type,H,R.props)}function V(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function F(R){var H={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(K){return H[K]})}var W=/\/+/g;function he(R,H){return typeof R=="object"&&R!==null&&R.key!=null?F(""+R.key):H.toString(36)}function re(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(P,P):(R.status="pending",R.then(function(H){R.status==="pending"&&(R.status="fulfilled",R.value=H)},function(H){R.status==="pending"&&(R.status="rejected",R.reason=H)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function U(R,H,K,ne,fe){var ye=typeof R;(ye==="undefined"||ye==="boolean")&&(R=null);var ce=!1;if(R===null)ce=!0;else switch(ye){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(R.$$typeof){case e:case t:ce=!0;break;case y:return ce=R._init,U(ce(R._payload),H,K,ne,fe)}}if(ce)return fe=fe(R),ce=ne===""?"."+he(R,0):ne,J(fe)?(K="",ce!=null&&(K=ce.replace(W,"$&/")+"/"),U(fe,H,K,"",function(gn){return gn})):fe!=null&&(V(fe)&&(fe=se(fe,K+(fe.key==null||R&&R.key===fe.key?"":(""+fe.key).replace(W,"$&/")+"/")+ce)),H.push(fe)),1;ce=0;var je=ne===""?".":ne+":";if(J(R))for(var qe=0;qe<R.length;qe++)ne=R[qe],ye=je+he(ne,qe),ce+=U(ne,H,K,ye,fe);else if(qe=w(R),typeof qe=="function")for(R=qe.call(R),qe=0;!(ne=R.next()).done;)ne=ne.value,ye=je+he(ne,qe++),ce+=U(ne,H,K,ye,fe);else if(ye==="object"){if(typeof R.then=="function")return U(re(R),H,K,ne,fe);throw H=String(R),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ce}function Q(R,H,K){if(R==null)return R;var ne=[],fe=0;return U(R,ne,"","",function(ye){return H.call(K,ye,fe++)}),ne}function le(R){if(R._status===-1){var H=R._result;H=H(),H.then(function(K){(R._status===0||R._status===-1)&&(R._status=1,R._result=K)},function(K){(R._status===0||R._status===-1)&&(R._status=2,R._result=K)}),R._status===-1&&(R._status=0,R._result=H)}if(R._status===1)return R._result.default;throw R._result}var Ce=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},_e={map:Q,forEach:function(R,H,K){Q(R,function(){H.apply(this,arguments)},K)},count:function(R){var H=0;return Q(R,function(){H++}),H},toArray:function(R){return Q(R,function(H){return H})||[]},only:function(R){if(!V(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return pe.Activity=g,pe.Children=_e,pe.Component=k,pe.Fragment=i,pe.Profiler=l,pe.PureComponent=C,pe.StrictMode=r,pe.Suspense=p,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,pe.__COMPILER_RUNTIME={__proto__:null,c:function(R){return L.H.useMemoCache(R)}},pe.cache=function(R){return function(){return R.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(R,H,K){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var ne=E({},R.props),fe=R.key;if(H!=null)for(ye in H.key!==void 0&&(fe=""+H.key),H)!Y.call(H,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&H.ref===void 0||(ne[ye]=H[ye]);var ye=arguments.length-2;if(ye===1)ne.children=K;else if(1<ye){for(var ce=Array(ye),je=0;je<ye;je++)ce[je]=arguments[je+2];ne.children=ce}return Z(R.type,fe,ne)},pe.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},pe.createElement=function(R,H,K){var ne,fe={},ye=null;if(H!=null)for(ne in H.key!==void 0&&(ye=""+H.key),H)Y.call(H,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(fe[ne]=H[ne]);var ce=arguments.length-2;if(ce===1)fe.children=K;else if(1<ce){for(var je=Array(ce),qe=0;qe<ce;qe++)je[qe]=arguments[qe+2];fe.children=je}if(R&&R.defaultProps)for(ne in ce=R.defaultProps,ce)fe[ne]===void 0&&(fe[ne]=ce[ne]);return Z(R,ye,fe)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(R){return{$$typeof:h,render:R}},pe.isValidElement=V,pe.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:le}},pe.memo=function(R,H){return{$$typeof:m,type:R,compare:H===void 0?null:H}},pe.startTransition=function(R){var H=L.T,K={};L.T=K;try{var ne=R(),fe=L.S;fe!==null&&fe(K,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(P,Ce)}catch(ye){Ce(ye)}finally{H!==null&&K.types!==null&&(H.types=K.types),L.T=H}},pe.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},pe.use=function(R){return L.H.use(R)},pe.useActionState=function(R,H,K){return L.H.useActionState(R,H,K)},pe.useCallback=function(R,H){return L.H.useCallback(R,H)},pe.useContext=function(R){return L.H.useContext(R)},pe.useDebugValue=function(){},pe.useDeferredValue=function(R,H){return L.H.useDeferredValue(R,H)},pe.useEffect=function(R,H){return L.H.useEffect(R,H)},pe.useEffectEvent=function(R){return L.H.useEffectEvent(R)},pe.useId=function(){return L.H.useId()},pe.useImperativeHandle=function(R,H,K){return L.H.useImperativeHandle(R,H,K)},pe.useInsertionEffect=function(R,H){return L.H.useInsertionEffect(R,H)},pe.useLayoutEffect=function(R,H){return L.H.useLayoutEffect(R,H)},pe.useMemo=function(R,H){return L.H.useMemo(R,H)},pe.useOptimistic=function(R,H){return L.H.useOptimistic(R,H)},pe.useReducer=function(R,H,K){return L.H.useReducer(R,H,K)},pe.useRef=function(R){return L.H.useRef(R)},pe.useState=function(R){return L.H.useState(R)},pe.useSyncExternalStore=function(R,H,K){return L.H.useSyncExternalStore(R,H,K)},pe.useTransition=function(){return L.H.useTransition()},pe.version="19.2.5",pe}var xy;function Ws(){return xy||(xy=1,qd.exports=oE()),qd.exports}var ee=Ws();const Zs=iE(ee),VL=aE({__proto__:null,default:Zs},[ee]);var Bd={exports:{}},Es={},$d={exports:{}},Hd={};var Ry;function lE(){return Ry||(Ry=1,(function(e){function t(U,Q){var le=U.length;
vendor: 12,059 bytes, lines 2-4
2U.push(Q);e:for(;0<le;){var Ce=le-1>>>1,_e=U[Ce];if(0<l(_e,Q))U[Ce]=Q,U[le]=_e,le=Ce;else break e}}function i(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var Q=U[0],le=U.pop();if(le!==Q){U[0]=le;e:for(var Ce=0,_e=U.length,R=_e>>>1;Ce<R;){var H=2*(Ce+1)-1,K=U[H],ne=H+1,fe=U[ne];if(0>l(K,le))ne<_e&&0>l(fe,K)?(U[Ce]=fe,U[ne]=le,Ce=ne):(U[Ce]=K,U[H]=le,Ce=H);else if(ne<_e&&0>l(fe,le))U[Ce]=fe,U[ne]=le,Ce=ne;else break e}}return Q}function l(U,Q){var le=U.sortIndex-Q.sortIndex;return le!==0?le:U.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,h=u.now();e.unstable_now=function(){return u.now()-h}}var p=[],m=[],y=1,g=null,b=3,w=!1,_=!1,E=!1,A=!1,k=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function B(U){for(var Q=i(m);Q!==null;){if(Q.callback===null)r(m);else if(Q.startTime<=U)r(m),Q.sortIndex=Q.expirationTime,t(p,Q);else break;Q=i(m)}}function J(U){if(E=!1,B(U),!_)if(i(p)!==null)_=!0,P||(P=!0,F());else{var Q=i(m);Q!==null&&re(J,Q.startTime-U)}}var P=!1,L=-1,Y=5,Z=-1;function se(){return A?!0:!(e.unstable_now()-Z<Y)}function V(){if(A=!1,P){var U=e.unstable_now();Z=U;var Q=!0;try{e:{_=!1,E&&(E=!1,j(L),L=-1),w=!0;var le=b;try{t:{for(B(U),g=i(p);g!==null&&!(g.expirationTime>U&&se());){var Ce=g.callback;if(typeof Ce=="function"){g.callback=null,b=g.priorityLevel;var _e=Ce(g.expirationTime<=U);if(U=e.unstable_now(),typeof _e=="function"){g.callback=_e,B(U),Q=!0;break t}g===i(p)&&r(p),B(U)}else r(p);g=i(p)}if(g!==null)Q=!0;else{var R=i(m);R!==null&&re(J,R.startTime-U),Q=!1}}break e}finally{g=null,b=le,w=!1}Q=void 0}}finally{Q?F():P=!1}}}var F;if(typeof C=="function")F=function(){C(V)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,he=W.port2;W.port1.onmessage=V,F=function(){he.postMessage(null)}}else F=function(){k(V,0)};function re(U,Q){L=k(function(){U(e.unstable_now())},Q)}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(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(U){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var le=b;b=Q;try{return U()}finally{b=le}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(U,Q){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var le=b;b=U;try{return Q()}finally{b=le}},e.unstable_scheduleCallback=function(U,Q,le){var Ce=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?Ce+le:Ce):le=Ce,U){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=le+_e,U={id:y++,callback:Q,priorityLevel:U,startTime:le,expirationTime:_e,sortIndex:-1},le>Ce?(U.sortIndex=le,t(m,U),i(p)===null&&U===i(m)&&(E?(j(L),L=-1):E=!0,re(J,le-Ce))):(U.sortIndex=_e,t(p,U),_||w||(_=!0,P||(P=!0,F()))),U},e.unstable_shouldYield=se,e.unstable_wrapCallback=function(U){var Q=b;return function(){var le=b;b=Q;try{return U.apply(this,arguments)}finally{b=le}}}})(Hd)),Hd}var Cy;function cE(){return Cy||(Cy=1,$d.exports=lE()),$d.exports}var Gd={exports:{}},vt={};var jy;function uE(){if(jy)return vt;jy=1;var e=Ws();function t(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(p,m,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:g==null?null:""+g,children:p,containerInfo:m,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,vt.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return c(p,m,null,y)},vt.flushSync=function(p){var m=u.T,y=r.p;try{if(u.T=null,r.p=2,p)return p()}finally{u.T=m,r.p=y,r.d.f()}},vt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(p,m))},vt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},vt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,g=h(y,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?r.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:w}):y==="script"&&r.d.X(p,{crossOrigin:g,integrity:b,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},vt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=h(m.as,m.crossOrigin);r.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(p)},vt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=h(y,m.crossOrigin);r.d.L(p,y,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},vt.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=h(m.as,m.crossOrigin);r.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(p)},vt.requestFormReset=function(p){r.d.r(p)},vt.unstable_batchedUpdates=function(p,m){return p(m)},vt.useFormState=function(p,m,y){return u.H.useFormState(p,m,y)},vt.useFormStatus=function(){return u.H.useHostTransitionStatus()},vt.version="19.2.5",vt}var Ny;function dE(){if(Ny)return Gd.exports;Ny=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Gd.exports=uE(),Gd.exports}var Ly;function hE(){if(Ly)return Es;Ly=1;var e=cE(),t=Ws(),i=dE();function r(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var a=n,s=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(s=a.return),n=a.return;while(n)}return a.tag===3?s:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function h(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function p(n){if(c(n)!==n)throw Error(r(188))}function m(n){var a=n.alternate;if(!a){if(a=c(n),a===null)throw Error(r(188));return a!==n?null:n}for(var s=n,o=a;;){var d=s.return;if(d===null)break;var f=d.alternate;if(f===null){if(o=d.return,o!==null){s=o;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===s)return p(d),n;if(f===o)return p(d),a;f=f.sibling}throw Error(r(188))}if(s.return!==o.return)s=d,o=f;else{for(var v=!1,S=d.child;S;){if(S===s){v=!0,s=d,o=f;break}if(S===o){v=!0,o=d,s=f;break}S=S.sibling}if(!v){for(S=f.child;S;){if(S===s){v=!0,s=f,o=d;break}if(S===o){v=!0,o=f,s=d;break}S=S.sibling}if(!v)throw Error(r(189))}}if(s.alternate!==o)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:a}function y(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=y(n),a!==null)return a;n=n.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),C=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function F(n){return n===null||typeof n!="object"?null:(n=V&&n[V]||n["@@iterator"],typeof n=="function"?n:null)}var W=Symbol.for("react.client.reference");function he(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===W?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case E:return"Fragment";case k:return"Profiler";case A:return"StrictMode";case J:return"Suspense";case P:return"SuspenseList";case Z:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case _:return"Portal";case C:return n.displayName||"Context";case j:return(n._context.displayName||"Context")+".Consumer";case B:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case L:return a=n.displayName||null,a!==null?a:he(n.type)||"Memo";case Y:a=n._payload,n=n._init;try{return he(n(a))}catch{}}return null}var re=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},Ce=[],_e=-1;function R(n){return{current:n}}function H(n){0>_e||(n.current=Ce[_e],Ce[_e]=null,_e--)}function K(n,a){_e++,Ce[_e]=n.current,n.current=a}var ne=R(null),fe=R(null),ye=R(null),ce=R(null);function je(n,a){switch(K(ye,a),K(fe,n),K(ne,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?Kg(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=Kg(a),n=Qg(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}H(ne),K(ne,n)}function qe(){H(ne),H(fe),H(ye)}function gn(n){n.memoizedState!==null&&K(ce,n);var a=ne.current,s=Qg(a,n.type);a!==s&&(K(fe,n),K(ne,s))}function Va(n){fe.current===n&&(H(ne),H(fe)),ce.current===n&&(H(ce),vs._currentValue=le)}var xn,Tf;function Fa(n){if(xn===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);xn=a&&a[1]||"",Tf=-1<s.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+xn+n+Tf}var _c=!1;function Ec(n,a){if(!n||_c)return"";_c=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(I){var z=I}Reflect.construct(n,[],G)}else{try{G.call()}
vendor: 8,935 bytes, lines 4-9
4catch(I){z=I}n.call(G.prototype)}}else{try{throw Error()}catch(I){z=I}(G=n())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(I){if(I&&z&&typeof I.stack=="string")return[I.stack,z.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),v=f[0],S=f[1];if(v&&S){var O=v.split(` 5`),M=S.split(` 6`);for(d=o=0;o<O.length&&!O[o].includes("DetermineComponentFrameRoot");)o++;for(;d<M.length&&!M[d].includes("DetermineComponentFrameRoot");)d++;if(o===O.length||d===M.length)for(o=O.length-1,d=M.length-1;1<=o&&0<=d&&O[o]!==M[d];)d--;for(;1<=o&&0<=d;o--,d--)if(O[o]!==M[d]){if(o!==1||d!==1)do if(o--,d--,0>d||O[o]!==M[d]){var q=` 7`+O[o].replace(" at new "," at ");return n.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",n.displayName)),q}while(1<=o&&0<=d);break}}}finally{_c=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?Fa(s):""}function Dw(n,a){switch(n.tag){case 26:case 27:case 5:return Fa(n.type);case 16:return Fa("Lazy");case 13:return n.child!==a&&a!==null?Fa("Suspense Fallback"):Fa("Suspense");case 19:return Fa("SuspenseList");case 0:case 15:return Ec(n.type,!1);case 11:return Ec(n.type.render,!1);case 1:return Ec(n.type,!0);case 31:return Fa("Activity");default:return""}}function Of(n){try{var a="",s=null;do a+=Dw(n,s),s=n,n=n.return;while(n);return a}catch(o){return` 8Error generating stack: `+o.message+` 9`+o.stack}}var Tc=Object.prototype.hasOwnProperty,Oc=e.unstable_scheduleCallback,Ac=e.unstable_cancelCallback,Mw=e.unstable_shouldYield,zw=e.unstable_requestPaint,Lt=e.unstable_now,Uw=e.unstable_getCurrentPriorityLevel,Af=e.unstable_ImmediatePriority,kf=e.unstable_UserBlockingPriority,no=e.unstable_NormalPriority,Iw=e.unstable_LowPriority,xf=e.unstable_IdlePriority,Pw=e.log,qw=e.unstable_setDisableYieldValue,Cr=null,Dt=null;function ia(n){if(typeof Pw=="function"&&qw(n),Dt&&typeof Dt.setStrictMode=="function")try{Dt.setStrictMode(Cr,n)}catch{}}var Mt=Math.clz32?Math.clz32:Hw,Bw=Math.log,$w=Math.LN2;function Hw(n){return n>>>=0,n===0?32:31-(Bw(n)/$w|0)|0}var ao=256,io=262144,ro=4194304;function Ya(n){var a=n&42;if(a!==0)return a;switch(n&-n){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function so(n,a,s){var o=n.pendingLanes;if(o===0)return 0;var d=0,f=n.suspendedLanes,v=n.pingedLanes;n=n.warmLanes;var S=o&134217727;return S!==0?(o=S&~f,o!==0?d=Ya(o):(v&=S,v!==0?d=Ya(v):s||(s=S&~n,s!==0&&(d=Ya(s))))):(S=o&~f,S!==0?d=Ya(S):v!==0?d=Ya(v):s||(s=o&~n,s!==0&&(d=Ya(s)))),d===0?0:a!==0&&a!==d&&(a&f)===0&&(f=d&-d,s=a&-a,f>=s||f===32&&(s&4194048)!==0)?a:d}function jr(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Gw(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32: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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Rf(){var n=ro;return ro<<=1,(ro&62914560)===0&&(ro=4194304),n}function kc(n){for(var a=[],s=0;31>s;s++)a.push(n);return a}function Nr(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Vw(n,a,s,o,d,f){var v=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var S=n.entanglements,O=n.expirationTimes,M=n.hiddenUpdates;for(s=v&~s;0<s;){var q=31-Mt(s),G=1<<q;S[q]=0,O[q]=-1;var z=M[q];if(z!==null)for(M[q]=null,q=0;q<z.length;q++){var I=z[q];I!==null&&(I.lane&=-536870913)}s&=~G}o!==0&&Cf(n,o,0),f!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=f&~(v&~a))}function Cf(n,a,s){n.pendingLanes|=a,n.suspendedLanes&=~a;var o=31-Mt(a);n.entangledLanes|=a,n.entanglements[o]=n.entanglements[o]|1073741824|s&261930}function jf(n,a){var s=n.entangledLanes|=a;for(n=n.entanglements;s;){var o=31-Mt(s),d=1<<o;d&a|n[o]&a&&(n[o]|=a),s&=~d}}function Nf(n,a){var s=a&-a;return s=(s&42)!==0?1:xc(s),(s&(n.suspendedLanes|a))!==0?0:s}function xc(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Rc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Lf(){var n=Q.p;return n!==0?n:(n=window.event,n===void 0?32:vy(n.type))}function Df(n,a){var s=Q.p;try{return Q.p=n,a()}finally{Q.p=s}}var ra=Math.random().toString(36).slice(2),dt="__reactFiber$"+ra,Ot="__reactProps$"+ra,Ei="__reactContainer$"+ra,Cc="__reactEvents$"+ra,Fw="__reactListeners$"+ra,Yw="__reactHandles$"+ra,Mf="__reactResources$"+ra,Lr="__reactMarker$"+ra;function jc(n){delete n[dt],delete n[Ot],delete n[Cc],delete n[Fw],delete n[Yw]}function Ti(n){var a=n[dt];if(a)return a;for(var s=n.parentNode;s;){if(a=s[Ei]||s[dt]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(n=ny(n);n!==null;){if(s=n[dt])return s;n=ny(n)}return a}n=s,s=n.parentNode}return null}function Oi(n){if(n=n[dt]||n[Ei]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function Dr(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(r(33))}function Ai(n){var a=n[Mf];return a||(a=n[Mf]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ot(n){n[Lr]=!0}var zf=new Set,Uf={};function Ka(n,a){ki(n,a),ki(n+"Capture",a)}function ki(n,a){for(Uf[n]=a,n=0;n<a.length;n++)zf.add(a[n])}var Kw=RegExp("^[: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]*$"),If={},Pf={};function Qw(n){return Tc.call(Pf,n)?!0:Tc.call(If,n)?!1:Kw.test(n)?Pf[n]=!0:(If[n]=!0,!1)}function oo(n,a,s){if(Qw(a))if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+s)}}function lo(n,a,s){if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+s)}}function Rn(n,a,s,o){if(o===null)n.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(a,s,""+o)}}function Gt(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function qf(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Jw(n,a,s){var o=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,f=o.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return d.call(this)},set:function(v){s=""+v,f.call(this,v)}}),Object.defineProperty(n,a,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(v){s=""+v},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Nc(n){if(!n._valueTracker){var a=qf(n)?"checked":"value";n._valueTracker=Jw(n,a,""+n[a])}}function Bf(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var s=a.getValue(),o="";return n&&(o=qf(n)?n.checked?"true":"false":n.value),n=o,n!==s?(a.setValue(n),!0):!1}function co(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Xw=/[\n"\\]/g;function Vt(n){return n.replace(Xw,function(a){return"\\"+a.charCo
vendor: 4,418 bytes, line 9
9deAt(0).toString(16)+" "})}function Lc(n,a,s,o,d,f,v,S){n.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.type=v:n.removeAttribute("type"),a!=null?v==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Gt(a)):n.value!==""+Gt(a)&&(n.value=""+Gt(a)):v!=="submit"&&v!=="reset"||n.removeAttribute("value"),a!=null?Dc(n,v,Gt(a)):s!=null?Dc(n,v,Gt(s)):o!=null&&n.removeAttribute("value"),d==null&&f!=null&&(n.defaultChecked=!!f),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.name=""+Gt(S):n.removeAttribute("name")}function $f(n,a,s,o,d,f,v,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(n.type=f),a!=null||s!=null){if(!(f!=="submit"&&f!=="reset"||a!=null)){Nc(n);return}s=s!=null?""+Gt(s):"",a=a!=null?""+Gt(a):s,S||a===n.value||(n.value=a),n.defaultValue=a}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=S?n.checked:!!o,n.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.name=v),Nc(n)}function Dc(n,a,s){a==="number"&&co(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function xi(n,a,s,o){if(n=n.options,a){a={};for(var d=0;d<s.length;d++)a["$"+s[d]]=!0;for(s=0;s<n.length;s++)d=a.hasOwnProperty("$"+n[s].value),n[s].selected!==d&&(n[s].selected=d),d&&o&&(n[s].defaultSelected=!0)}else{for(s=""+Gt(s),a=null,d=0;d<n.length;d++){if(n[d].value===s){n[d].selected=!0,o&&(n[d].defaultSelected=!0);return}a!==null||n[d].disabled||(a=n[d])}a!==null&&(a.selected=!0)}}function Hf(n,a,s){if(a!=null&&(a=""+Gt(a),a!==n.value&&(n.value=a),s==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=s!=null?""+Gt(s):""}function Gf(n,a,s,o){if(a==null){if(o!=null){if(s!=null)throw Error(r(92));if(re(o)){if(1<o.length)throw Error(r(93));o=o[0]}s=o}s==null&&(s=""),a=s}s=Gt(a),n.defaultValue=s,o=n.textContent,o===s&&o!==""&&o!==null&&(n.value=o),Nc(n)}function Ri(n,a){if(a){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=a;return}}n.textContent=a}var Ww=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Vf(n,a,s){var o=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?o?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":o?n.setProperty(a,s):typeof s!="number"||s===0||Ww.has(a)?a==="float"?n.cssFloat=s:n[a]=(""+s).trim():n[a]=s+"px"}function Ff(n,a,s){if(a!=null&&typeof a!="object")throw Error(r(62));if(n=n.style,s!=null){for(var o in s)!s.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="");for(var d in a)o=a[d],a.hasOwnProperty(d)&&s[d]!==o&&Vf(n,d,o)}else for(var f in a)a.hasOwnProperty(f)&&Vf(n,f,a[f])}function Mc(n){if(n.indexOf("-")===-1)return!1;switch(n){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 Zw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
9dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),eS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function uo(n){return eS.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Cn(){}var zc=null;function Uc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ci=null,ji=null;function Yf(n){var a=Oi(n);if(a&&(n=a.stateNode)){var s=n[Ot]||null;e:switch(n=a.stateNode,a.type){case"input":if(Lc(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Vt(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var o=s[a];if(o!==n&&o.form===n.form){var d=o[Ot]||null;if(!d)throw Error(r(90));Lc(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(a=0;a<s.length;a++)o=s[a],o.form===n.form&&Bf(o)}break e;case"textarea":Hf(n,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&xi(n,!!s.multiple,a,!1)}}}var Ic=!1;function Kf(n,a,s){if(Ic)return n(a,s);Ic=!0;try{var o=n(a);return o}finally{if(Ic=!1,(Ci!==null||ji!==null)&&(Wo(),Ci&&(a=Ci,n=ji,ji=Ci=null,Yf(a),n)))for(a=0;a<n.length;a++)Yf(n[a])}}function Mr(n,a){var s=n.stateNode;if(s===null)return null;var o=s[Ot]||null;if(o===null)return null;s=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(n=n.type,o=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!o;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,a,typeof s));return s}var jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pc=!1;if(jn)try{var zr={};Object.defineProperty(zr,"passive",{get:function(){Pc=!0}}),window.addEventListener("test",zr,zr),window.removeEventListener("test",zr,zr)}catch{Pc=!1}var sa=null,qc=null,ho=null;function Qf(){if(ho)return ho;var n,a=qc,s=a.length,o,d="value"in sa?sa.value:sa.textContent,f=d.length;for(n=0;n<s&&a[n]===d[n];n++);var v=s-n;for(o=1;o<=v&&a[s-o]===d[f-o];o++);return ho=d.slice(n,1<o?1-o:void 0)}function fo(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function po(){return!0}function Jf(){return!1}function At(n){function a(s,o,d,f,v){this._reactName=s,this._targetInst=d,this.type=o,this.nativeEvent=f,this.target=v,this.currentTarget=null;for(var S in n)n.hasOwnProperty(S)&&(s=n[S],this[S]=s?s(f):f[S]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?po:Jf,this.isPropagationStopped=Jf,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=po)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=po)},persist:function(){},isPersistent:po}),a}var Qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mo=At(Qa),Ur=g({},Qa,{view:0,detail:0}),tS=At(Ur),Bc,$c,Ir,go=g({},Ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ir&&(Ir&&n.type==="mousemove"?(Bc=n.screenX-Ir.screenX,$c=n.screenY-Ir.screenY):$c=Bc=0,Ir=n),Bc)},movementY:function(n){return"movementY"in n?n.movementY:$c}}),Xf=At(go),nS=g({},go,{dataTransfer:0}),aS=At(nS),iS=g({},Ur,{relatedTarget:0}),Hc=At(iS),rS=g({},Qa,{animationName:0,elapsedTime:0,pseudoElement:0}),sS=At(rS),oS=g({},Qa,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),lS=At(oS),cS=g({},Qa,{data:0}),Wf=At(cS),uS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dS={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"},hS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fS(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=hS[n])?!!a[n]:!1}function Gc(){return fS}var pS=g({},Ur,{key:function(n){if(n.key){var a=uS[n.key]||n.key;if(a!=="Unidentified")return a}
vendor: 5,186 bytes, line 9
9return n.type==="keypress"?(n=fo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?dS[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gc,charCode:function(n){return n.type==="keypress"?fo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?fo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),mS=At(pS),gS=g({},go,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zf=At(gS),yS=g({},Ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gc}),vS=At(yS),bS=g({},Qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),wS=At(bS),SS=g({},go,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),_S=At(SS),ES=g({},Qa,{newState:0,oldState:0}),TS=At(ES),OS=[9,13,27,32],Vc=jn&&"CompositionEvent"in window,Pr=null;jn&&"documentMode"in document&&(Pr=document.documentMode);var AS=jn&&"TextEvent"in window&&!Pr,ep=jn&&(!Vc||Pr&&8<Pr&&11>=Pr),tp=" ",np=!1;function ap(n,a){switch(n){case"keyup":return OS.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ip(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ni=!1;function kS(n,a){switch(n){case"compositionend":return ip(a);case"keypress":return a.which!==32?null:(np=!0,tp);case"textInput":return n=a.data,n===tp&&np?null:n;default:return null}}function xS(n,a){if(Ni)return n==="compositionend"||!Vc&&ap(n,a)?(n=Qf(),ho=qc=sa=null,Ni=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return ep&&a.locale!=="ko"?null:a.data;default:return null}}var RS={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 rp(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!RS[n.type]:a==="textarea"}function sp(n,a,s,o){Ci?ji?ji.push(o):ji=[o]:Ci=o,a=rl(a,"onChange"),0<a.length&&(s=new mo("onChange","change",null,s,o),n.push({event:s,listeners:a}))}var qr=null,Br=null;function CS(n){$g(n,0)}function yo(n){var a=Dr(n);if(Bf(a))return n}function op(n,a){if(n==="change")return a}var lp=!1;if(jn){var Fc;if(jn){var Yc="oninput"in document;if(!Yc){var cp=document.createElement("div");cp.setAttribute("oninput","return;"),Yc=typeof cp.oninput=="function"}Fc=Yc}else Fc=!1;lp=Fc&&(!document.documentMode||9<document.documentMode)}function up(){qr&&(qr.detachEvent("onpropertychange",dp),Br=qr=null)}function dp(n){if(n.propertyName==="value"&&yo(Br)){var a=[];sp(a,Br,n,Uc(n)),Kf(CS,a)}}function jS(n,a,s){n==="focusin"?(up(),qr=a,Br=s,qr.attachEvent("onpropertychange",dp)):n==="focusout"&&up()}function NS(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return yo(Br)}function LS(n,a){if(n==="click")return yo(a)}function DS(n,a){if(n==="input"||n==="change")return yo(a)}function MS(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var zt=typeof Object.is=="function"?Object.is:MS;function $r(n,a){if(zt(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var s=Object.keys(n),o=Object.keys(a);if(s.length!==o.length)return!1;for(o=0;o<s.length;o++){var d=s[o];if(!Tc.call(a,d)||!zt(n[d],a[d]))return!1}return!0}function hp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function fp(n,a){var s=hp(n);n=0;for(var o;s;){if(s.nodeType===3){if(o=n+s.textContent.length,n<=a&&o>=a)return{node:s,offset:a-n};n=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=hp(s)}}function pp(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?pp(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function mp(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=co(n.document);a instanceof n.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)n=a.contentWindow;else break;a=co(n.document)}return a}function Kc(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var zS=jn&&"documentMode"in document&&11>=document.documentMode,Li=null,Qc=null,Hr=null,Jc=!1;function gp(n,a,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Jc||Li==null||Li!==co(o)||(o=Li,"selectionStart"in o&&Kc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focu
vendor: 18,995 bytes, line 9
9sNode:o.focusNode,focusOffset:o.focusOffset}),Hr&&$r(Hr,o)||(Hr=o,o=rl(Qc,"onSelect"),0<o.length&&(a=new mo("onSelect","select",null,a,s),n.push({event:a,listeners:o}),a.target=Li)))}function Ja(n,a){var s={};return s[n.toLowerCase()]=a.toLowerCase(),s["Webkit"+n]="webkit"+a,s["Moz"+n]="moz"+a,s}var Di={animationend:Ja("Animation","AnimationEnd"),animationiteration:Ja("Animation","AnimationIteration"),animationstart:Ja("Animation","AnimationStart"),transitionrun:Ja("Transition","TransitionRun"),transitionstart:Ja("Transition","TransitionStart"),transitioncancel:Ja("Transition","TransitionCancel"),transitionend:Ja("Transition","TransitionEnd")},Xc={},yp={};jn&&(yp=document.createElement("div").style,"AnimationEvent"in window||(delete Di.animationend.animation,delete Di.animationiteration.animation,delete Di.animationstart.animation),"TransitionEvent"in window||delete Di.transitionend.transition);function Xa(n){if(Xc[n])return Xc[n];if(!Di[n])return n;var a=Di[n],s;for(s in a)if(a.hasOwnProperty(s)&&s in yp)return Xc[n]=a[s];return n}var vp=Xa("animationend"),bp=Xa("animationiteration"),wp=Xa("animationstart"),US=Xa("transitionrun"),IS=Xa("transitionstart"),PS=Xa("transitioncancel"),Sp=Xa("transitionend"),_p=new Map,Wc="abort auxClick beforeToggle 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(" ");Wc.push("scrollEnd");function an(n,a){_p.set(n,a),Ka(a,[n])}var vo=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Ft=[],Mi=0,Zc=0;function bo(){for(var n=Mi,a=Zc=Mi=0;a<n;){var s=Ft[a];Ft[a++]=null;var o=Ft[a];Ft[a++]=null;var d=Ft[a];Ft[a++]=null;var f=Ft[a];if(Ft[a++]=null,o!==null&&d!==null){var v=o.pending;v===null?d.next=d:(d.next=v.next,v.next=d),o.pending=d}f!==0&&Ep(s,d,f)}}function wo(n,a,s,o){Ft[Mi++]=n,Ft[Mi++]=a,Ft[Mi++]=s,Ft[Mi++]=o,Zc|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function eu(n,a,s,o){return wo(n,a,s,o),So(n)}function Wa(n,a){return wo(n,null,null,a),So(n)}function Ep(n,a,s){n.lanes|=s;var o=n.alternate;o!==null&&(o.lanes|=s);for(var d=!1,f=n.return;f!==null;)f.childLanes|=s,o=f.alternate,o!==null&&(o.childLanes|=s),f.tag===22&&(n=f.stateNode,n===null||n._visibility&1||(d=!0)),n=f,f=f.return;return n.tag===3?(f=n.stateNode,d&&a!==null&&(d=31-Mt(s),n=f.hiddenUpdates,o=n[d],o===null?n[d]=[a]:o.push(a),a.lane=s|536870912),f):null}function So(n){if(50<ds)throw ds=0,cd=null,Error(r(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var zi={};function qS(n,a,s,o){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(n,a,s,o){return new qS(n,a,s,o)}function tu(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Nn(n,a){var s=n.alternate;return s===null?(s=Ut(n.tag,a,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=a,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,a=n.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function Tp(n,a){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,a=s.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function _o(n,a,s,o,d,f){var v=0;if(o=n,typeof n=="function")tu(n)&&(v=1);else if(typeof n=="string")v=V_(n,s,ne.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Z:return n=Ut(31,s,a,d),n.elementType=Z,n.lanes=f,n;case E:return Za(s.children,d,f,a);case A:v=8,d|=24;break;case k:return n=Ut(12,s,a,d|2),n.elementType=k,n.lanes=f,n;case J:return n=Ut(13,s,a,d),n.elementType=J,n.lanes=f,n;case P:return n=Ut(19,s,a,d),n.elementType=P,n.lanes=f,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case C:v=10;break e;case j:v=9;break e;case B:v=11;break e;case L:v=14;break e;case Y:v=16,o=null;break e}v=29,s=Error(r(130,n===null?"null":typeof n,"")),o=null}return a=Ut(v,s,a,d),a.elementType=n,a.type=o,a.lanes=f,a}function Za(n,a,s,o){return n=Ut(7,n,o,a),n.lanes=s,n}function nu(n,a,s){return n=Ut(6,n,null,a),n.lanes=s,n}function Op(n){var a=Ut(18,null,null,0);return a.stateNode=n,a}function au(n,a,s){return a=Ut(4,n.children!==null?n.children:[],n.key,a),a.lanes=s,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Ap=new WeakMap;function Yt(n,a){if(typeof n=="object"&&n!==null){var s=Ap.get(n);return s!==void 0?s:(a={value:n,source:a,stack:Of(a)},Ap.set(n,a),a)}return{value:n,source:a,stack:Of(a)}}var Ui=[],Ii=0,Eo=null,Gr=0,Kt=[],Qt=0,oa=null,yn=1,vn="";function Ln(n,a){Ui[Ii++]=Gr,Ui[Ii++]=Eo,Eo=n,Gr=a}function kp(n,a,s){Kt[Qt++]=yn,Kt[Qt++]=vn,Kt[Qt++]=oa,oa=n;var o=yn;n=vn;var d=32-Mt(o)-1;o&=~(1<<d),s+=1;var f=32-Mt(a)+d;if(30<f){var v=d-d%5;f=(o&(1<<v)-1).toString(32),o>>=v,d-=v,yn=1<<32-Mt(a)+d|s<<d|o,vn=f+n}else yn=1<<f|s<<d|o,vn=n}function iu(n){n.return!==null&&(Ln(n,1),kp(n,1,0))}function ru(n){for(;n===Eo;)Eo=Ui[--Ii],Ui[Ii]=null,Gr=Ui[--Ii],Ui[Ii]=null;for(;n===oa;)oa=Kt[--Qt],Kt[Qt]=null,vn=Kt[--Qt],Kt[Qt]=null,yn=Kt[--Qt],Kt[Qt]=null}function xp(n,a){Kt[Qt++]=yn,Kt[Qt++]=vn,Kt[Qt++]=oa,yn=a.id,vn=a.overflow,oa=n}var ht=null,He=null,Oe=!1,la=null,Jt=!1,su=Error(r(519));function ca(n){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vr(Yt(a,n)),su}function Rp(n){var a=n.stateNode,s=n.type,o=n.memoizedProps;switch(a[dt]=n,a[Ot]=o,s){case"dialog":Se("cancel",a),Se("close",a);break;case"iframe":case"object":case"embed":Se("load",a);break;case"video":case"audio":for(s=0;s<fs.length;s++)Se(fs[s],a);break;case"source":Se("error",a);break;case"img":case"image":case"link":Se("error",a),Se("load",a);break;case"details":Se("toggle",a);break;case"input":Se("invalid",a),$f(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Se("invalid",a);break;case"textarea":Se("invalid",a),Gf(a,o.value,o.defaultValue,o.children)}s=o.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||o.suppressHydrationWarning===!0||Fg(a.textContent,s)?(o.popover!=null&&(Se("beforetoggle",a),Se("toggle",a)),o.onScroll!=null&&Se("scroll",a),o.onScrollEnd!=null&&Se("scrollend",a),o.onClick!=null&&(a.onclick=Cn),a=!0):a=!1,a||ca(n,!0)}function Cp(n){for(ht=n.return;ht;)switch(ht.tag){case 5:case 31:case 13:Jt=!1;return;case 27:case 3:Jt=!0;return;default:ht=ht.return}}function Pi(n){if(n!==ht)return!1;if(!Oe)return Cp(n),Oe=!0,!1;var a=n.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||Td(n.type,n.memoizedProps)),s=!s),s&&He&&ca(n),Cp(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));He=ty(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));He=ty(n)}else a===27?(a=He,Ea(n.type)?(n=Rd,Rd=null,He=n):He=a):He=ht?Wt(n.stateNode.nextSibling):null;return!0}function ei(){He=ht=null,Oe=!1}function ou(){var n=la;return n!==null&&(Ct===null?Ct=n:Ct.push.apply(Ct,n),la=null),n}function Vr(n){la===null?la=[n]:la.push(n)}var lu=R(null),ti=null,Dn=null;function ua(n,a,s){K(lu,a._currentValue),a._currentValue=s}function Mn(n){n._currentValue=lu.current,H(lu)}function cu(n,a,s){for(;n!==null;){var o=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),n===s)break;n=n.return}}function uu(n,a,s,o){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var f=d.dependencies;if(f!==null){var v=d.child;f=f.firstContext;e:for(;f!==null;){var S=f;f=d;for(var O=0;O<a.length;O++)if(S.context===a[O]){f.lanes|=s,S=f.alternate,S!==null&&(S.lanes|=s),cu(f.return,s,n),o||(v=null);break e}f=S.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error(r(341));v.lanes|=s,f=v.alternate,f!==null&&(f.lanes|=s),cu(v,s,n),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===n){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function qi(n,a,s,o){n=null;for(var d=a,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var S=d.type;zt(d.pendingProps.value,v.value)||(n!==null?n.push(S):n=[S])}}else if(d===ce.current){if(v=d.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(vs):n=[vs])}d=d.return}n!==null&&uu(a,n,s,o),a.flags|=262144}function To(n){for(n=n.firstContext;n!==null;){if(!zt(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ni(n){ti=n,Dn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function ft(n){return jp(ti,n)}function Oo(n,a){return ti===null&&ni(n),jp(n,a)}function jp(n,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},Dn===null){if(n===null)throw Error(r(308));Dn=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Dn=Dn.next=a;return s}var BS=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(s,o){n.push(o)}};this.abort=function(){a.aborted=!0,n.forEach(function(s){return s()})}},$S=e.unstable_scheduleCallback,HS=e.unstable_NormalPriority,Ze={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function du(){return{controller:new BS,data:new Map,refCount:0}}function Fr(n){n.refCount--,n.refCount===0&&$S(HS,function(){n.controller.abort()})}var Yr=null,hu=0,Bi=0,$i=null;function GS(n,a){if(Yr===null){var s=Yr=[];hu=0,Bi=md(),$i={status:"pending",value:void 0,then:function(o){s.push(o)}}}return hu++,a.then(Np,Np),a}function Np(){if(--hu===0&&Yr!==null){$i!==null&&($i.status="fulfilled");var n=Yr;Yr=null,Bi=0,$i=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function VS(n,a){var s=[],o={status:"pending",value:null,reason:null,then:function(d){s.push(d)}};return n.then(function(){o.status="fulfilled",o.value=a;for(var d=0;d<s.length;d++)(0,s[d])(a)},function(d){for(o.status="rejected",o.reason=d,d=0;d<s.length;d++)(0,s[d])(void 0)}),o}var Lp=U.S;U.S=function(n,a){gg=Lt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&GS(n,a),Lp!==null&&Lp(n,a)};var ai=R(null);function fu(){var n=ai.current;return n!==null?n:Pe.pooledCache}function Ao(n,a){a===null?K(ai,ai.current):K(ai,a.pool)}function Dp(){var n=fu();return n===null?null:{parent:Ze._currentValue,pool:n}}var Hi=Error(r(460)),pu=Error(r(474)),ko=Error(r(542)),xo={then:function(){}};function Mp(n){return n=n.status,n==="fulfilled"||n==="rejected"}function zp(n,a,s){switch(s=n[s],s===void 0?n.push(a):s!==a&&(a.then(Cn,Cn),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Ip(n),n;default:if(typeof a.status=="string")a.then(Cn,Cn);else{if(n=Pe,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=a,n.status="pending",n.then(function(o){if(a.status==="pending"){var d=a;d.status="fulfilled",d.value=o}},function(o){if(a.status==="pending"){var d=a;d.status="rejected",d.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Ip(n),n}throw ri=a,Hi}}function ii(n){try{var a=n._init;return a(n._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(ri=s,Hi):s}}var ri=null;function Up(){if(ri===null)throw Error(r(459));var n=ri;return ri=null,n}function Ip(n){if(n===Hi||n===ko)throw Error(r(483))}var Gi=null,Kr=0;function Ro(n){var a=Kr;return Kr+=1,Gi===null&&(Gi=[]),zp(Gi,n,a)}function Qr(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Co(n,a){throw a.$$typeof===b?Error(r(525)):(n=Object.prototype.toString.call(a),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function Pp(n){function a(N,x){if(n){var D=N.deletions;D===null?(N.deletions=[x],N.flags|=16):D.push(x)}}function s(N,x){if(!n)return null;for(;x!==null;)a(N,x),x=x.sibling;return null}function o(N){for(var x=new Map;N!==null;)N.key!==null?x.set(N.key,N):x.set(N.index,N),N=N.sibling;return x}function d(N,x){return N=Nn(N,x),N.index=0,N.sibling=null,N}function f(N,x,D){return N.index=D,n?(D=N.alternate,D!==null?(D=D.index,D<x?(N.flags|=67108866,x):D):(N.flags|=67108866,x)):(N.flags|=1048576,x)}function v(N){return n&&N.alternate===null&&(N.flags|=67108866),N}function S(N,x,D,$){return x===null||x.tag!==6?(x=nu(D,N.mode,$),x.return=N,x):(x=d(x,D),x.return=N,x)}function O(N,x,D,$){var oe=D.type;return oe===E?q(N,x,D.props.children,$,D.key):x!==null&&(x.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===Y&&ii(oe)===x.type)?(x=d(x,D.props),Qr(x,D),x.return=N,x):(x=_o(D.type,D.key,D.props,null,N.mode,$),Qr(x,D),x.return=N,x)}function M(N,x,D,$){return x===null||x.tag!==4||x.stateNode.containerInfo!==D.containerInfo||x.stateNode.implementation!==D.implementation?(x=au(D,N.mode,$),x.return=N,x):(x=d(x,D.children||[]),x.return=N,x)}function q(N,x,D,$,oe){return x===null||x.tag!==7?(x=Za(D,N.mode,$,oe),x.return=N,x):(x=d(x,D),x.return=N,x)}function G(N,x,D){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=nu(""+x,N.mode,D),x.return=N,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case w:return D=_o(x.type,x.key,x.props,null,N.mode,D),Qr(D,x),D.return=N,D;case _:return x=au(x,N.mode,D),x.return=N,x;case Y:return x=ii(x),G(N,x,D)}if(re(x)||F(x))return x=Za(x,N.mode,D,null),x.return=N,x;if(typeof x.then=="function")return G(N,Ro(x),D);if(x.$$typeof===C)return G(N,Oo(N,x),D);Co(N,x)}return null}function z(N,x,D,$){var oe=x!==null?x.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return oe!==null?null:S(N,x,""+D,$);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return D.key===oe?O(N,x,D,$):null;case _:return D.key===oe?M(N,x,D,$):null;case Y:return D=ii(D),z(N,x,D,$)}if(re(D)||F(D))return oe!==null?null:q(N,x,D,$,null);if(typeof D.then=="function")return z(N,x,Ro(D),$);if(D.$$typeof===C)return z(N,x,Oo(N,D),$);Co(N,D)}return null}function I(N,x,D,$,oe){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return N=N.get(D)||null,S(x,N,""+$,oe);if(typeof $=="object"&&$!==null){switch($.$$typeof){case w:return N=N.get($.key===null?D:$.key)||null,O(x,N,$,oe);case _:return N=N.get($.key===null?D:$.key)||null,M(x,N,$,oe);case Y:return $=ii($),I(N,x,D,$,oe)}if(re($)||F($))return N=N.get(D)||null,q(x,N,$,oe,null);if(typeof $.then=="function")return I(N,x,D,Ro($),oe);if($.$$typeof===C)return I(N,x,D,Oo(x,$),oe);Co(x,$)}return null}function te(N,x,D,$){for(var oe=null,xe=null,ie=x,ge=x=0,Te=null;ie!==null&&ge<D.length;ge++){ie.index>ge?(Te=ie,ie=null):Te=ie.sibling;var Re=z(N,ie,D[ge],$);if(Re===null){ie===null&&(ie=Te);break}n&&ie&&Re.alternate===null&&a(N,ie),x=f(Re,x,ge),xe===null?oe=Re:xe.sibling=Re,xe=Re,ie=Te}if(ge===D.length)return s(N,ie),Oe&&Ln(N,ge),oe;if(ie===null){for(;ge<D.length;ge++)ie=G(N,D[ge],$),ie!==null&&(x=f(ie,x,ge),xe===null?oe=ie:xe.sibling=ie,xe=ie);return Oe&&Ln(N,ge),oe}for(ie=o(ie);ge<D.length;ge++)Te=I(ie,N,ge,D[ge],$),Te!==null&&(n&&Te.alternate!==null&&ie.delete(Te.key===null?ge:Te.key),x=f(Te,x,ge),xe===null?oe=Te:xe.sibling=Te,xe=Te);return n&&ie.forEach(function(xa){return a(N,xa)}),Oe&&Ln(N,ge),oe}function ue(N,x,D,$){if(D==null)throw Error(r(151));for(var oe=null,xe=null,ie=x,ge=x=0,Te=null,Re=D.next();ie!==null&&!Re.done;ge++,Re=D.next()){ie.index>ge?(Te=ie,ie=null):Te=ie.sibling;var xa=z(N,ie,Re.value,$);if(xa===null){ie===null&&(ie=Te);break}n&&ie&&xa.alternate===null&&a(N,ie),x=f(xa,x,ge),xe===null?oe=xa:xe.sibling=xa,xe=xa,ie=Te}if(Re.done)return s(N,ie),Oe&&Ln(N,ge),oe;if(ie===null){for(;!Re.done;ge++,Re=D.next())Re=G(N,Re.value,$),Re!==null&&(x=f(Re,x,ge),xe===null?oe=Re:xe.sibling=Re,xe=Re);return Oe&&Ln(N,ge),oe}for(ie=o(ie);!Re.done;ge++,Re=D.next())Re=I(ie,N,ge,Re.value,$),Re!==null&&(n&&Re.alternate!==null&&ie.delete(Re.key===null?ge:Re.key),x=f(Re,x,ge),xe===null?oe=Re:xe.sibling=Re,xe=Re);return n&&ie.forEach(function(nE){return a(N,nE)}),Oe&&Ln(N,ge),oe}function Ue(N,x,D,$){if(typeof D=="object"&&D!==null&&D.type===E&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case w:e:{for(var oe=D.key;x!==null;){if(x.key===oe){if(oe=D.type,oe===E){if(x.tag===7){s(N,x.sibling),$=d(x,D.props.children),$.return=N,N=$;break e}}else if(x.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===Y&&ii(oe)===x.type){s(N,x.sibling),$=d(x,D.props),Qr($,D),$.return=N,N=$;break e}s(N,x);break}else a(N,x);x=x.sibling}D.type===E?($=Za(D.props.children,N.mode,$,D.key),$.return=N,N=$):($=_o(D.type,D.key,D.props,null,N.mode,$),Qr($,D),$.return=N,N=$)}return v(N);case _:e:{for(oe=D.key;x!==null;){if(x.key===oe)if(x.tag===4&&x.stateNode.containerInfo===D.containerInfo&&x.stateNode.implementation===D.implementation){s(N,x.sibling),$=d(x,D.children||[]),$.return=N,N=$;break e}else{s(N,x);break}else a(N,x);x=x.sibling}$=au(D,N.mode,$),$.return=N,N=$}return v(N);case Y:return D=ii(D),Ue(N,x,D,$)}if(re(D))return te(N,x,D,$);if(F(D)){if(oe=F(D),typeof oe!="function")throw Error(r(150));return D=oe.call(D),ue(N,x,D,$)}if(typeof D.then=="function")return Ue(N,x,Ro(D),$);if(D.$$typeof===C)return Ue(N,x,Oo(N,D),$);Co(N,D)}
vendor: 1,042 bytes, line 9
9return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,x!==null&&x.tag===6?(s(N,x.sibling),$=d(x,D),$.return=N,N=$):(s(N,x),$=nu(D,N.mode,$),$.return=N,N=$),v(N)):s(N,x)}return function(N,x,D,$){try{Kr=0;var oe=Ue(N,x,D,$);return Gi=null,oe}catch(ie){if(ie===Hi||ie===ko)throw ie;var xe=Ut(29,ie,null,N.mode);return xe.lanes=$,xe.return=N,xe}}}var si=Pp(!0),qp=Pp(!1),da=!1;function mu(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gu(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ha(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function fa(n,a,s){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(Ne&2)!==0){var d=o.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),o.pending=a,a=So(n),Ep(n,null,s),a}return wo(n,o,a,s),So(n)}
vendor: 7,419 bytes, line 9
9function Jr(n,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var o=a.lanes;o&=n.pendingLanes,s|=o,a.lanes=s,jf(n,s)}}function yu(n,a){var s=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,s===o)){var d=null,f=null;if(s=s.firstBaseUpdate,s!==null){do{var v={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};f===null?d=f=v:f=f.next=v,s=s.next}while(s!==null);f===null?d=f=a:f=f.next=a}else d=f=a;s={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=a:n.next=a,s.lastBaseUpdate=a}var vu=!1;function Xr(){if(vu){var n=$i;if(n!==null)throw n}}function Wr(n,a,s,o){vu=!1;var d=n.updateQueue;da=!1;var f=d.firstBaseUpdate,v=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var O=S,M=O.next;O.next=null,v===null?f=M:v.next=M,v=O;var q=n.alternate;q!==null&&(q=q.updateQueue,S=q.lastBaseUpdate,S!==v&&(S===null?q.firstBaseUpdate=M:S.next=M,q.lastBaseUpdate=O))}if(f!==null){var G=d.baseState;v=0,q=M=O=null,S=f;do{var z=S.lane&-536870913,I=z!==S.lane;if(I?(Ee&z)===z:(o&z)===z){z!==0&&z===Bi&&(vu=!0),q!==null&&(q=q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var te=n,ue=S;z=a;var Ue=s;switch(ue.tag){case 1:if(te=ue.payload,typeof te=="function"){G=te.call(Ue,G,z);break e}G=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=ue.payload,z=typeof te=="function"?te.call(Ue,G,z):te,z==null)break e;G=g({},G,z);break e;case 2:da=!0}}z=S.callback,z!==null&&(n.flags|=64,I&&(n.flags|=8192),I=d.callbacks,I===null?d.callbacks=[z]:I.push(z))}else I={lane:z,tag:S.tag,payload:S.payload,callback:S.callback,next:null},q===null?(M=q=I,O=G):q=q.next=I,v|=z;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;I=S,S=I.next,I.next=null,d.lastBaseUpdate=I,d.shared.pending=null}}while(!0);q===null&&(O=G),d.baseState=O,d.firstBaseUpdate=M,d.lastBaseUpdate=q,f===null&&(d.shared.lanes=0),va|=v,n.lanes=v,n.memoizedState=G}}function Bp(n,a){if(typeof n!="function")throw Error(r(191,n));n.call(a)}function $p(n,a){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)Bp(s[n],a)}var Vi=R(null),jo=R(0);function Hp(n,a){n=Gn,K(jo,n),K(Vi,a),Gn=n|a.baseLanes}function bu(){K(jo,Gn),K(Vi,Vi.current)}function wu(){Gn=jo.current,H(Vi),H(jo)}var It=R(null),Xt=null;function pa(n){var a=n.alternate;K(Xe,Xe.current&1),K(It,n),Xt===null&&(a===null||Vi.current!==null||a.memoizedState!==null)&&(Xt=n)}function Su(n){K(Xe,Xe.current),K(It,n),Xt===null&&(Xt=n)}function Gp(n){n.tag===22?(K(Xe,Xe.current),K(It,n),Xt===null&&(Xt=n)):ma()}function ma(){K(Xe,Xe.current),K(It,It.current)}function Pt(n){H(It),Xt===n&&(Xt=null),H(Xe)}var Xe=R(0);function No(n){for(var a=n;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||kd(s)||xd(s)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var zn=0,me=null,Me=null,et=null,Lo=!1,Fi=!1,oi=!1,Do=0,Zr=0,Yi=null,FS=0;function Ke(){throw Error(r(321))}function _u(n,a){if(a===null)return!1;for(var s=0;s<a.length&&s<n.length;s++)if(!zt(n[s],a[s]))return!1;return!0}function Eu(n,a,s,o,d,f){return zn=f,me=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,U.H=n===null||n.memoizedState===null?km:Iu,oi=!1,f=s(o,d),oi=!1,Fi&&(f=Fp(a,s,o,d)),Vp(n),f}function Vp(n){U.H=ns;var a=Me!==null&&Me.next!==null;if(zn=0,et=Me=me=null,Lo=!1,Zr=0,Yi=null,a)throw Error(r(300));n===null||tt||(n=n.dependencies,n!==null&&To(n)&&(tt=!0))}function Fp(n,a,s,o){me=n;var d=0;do{if(Fi&&(Yi=null),Zr=0,Fi=!1,25<=d)throw Error(r(301));if(d+=1,et=Me=null,n.updateQueue!=null){var f=n.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}U.H=xm,f=a(s,o)}while(Fi);return f}function YS(){var n=U.H,a=n.useState()[0];return a=typeof a.then=="function"?es(a):a,n=n.useState()[0],(Me!==null?Me.memoizedState:null)!==n&&(me.flags|=1024),a}function Tu(){var n=Do!==0;return Do=0,n}function Ou(n,a,s){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~s}function Au(n){if(Lo){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Lo=!1}zn=0,et=Me=me=null,Fi=!1,Zr=Do=0,Yi=null}function _t(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?me.memoizedState=et=n:et=et.next=n,et}function We(){if(Me===null){var n=me.alternate;n=n!==null?n.memoizedState:null}else n=Me.next;var a=et===null?me.memoizedState:et.next;if(a!==null)et=a,Me=n;else{if(n===null)throw me.alternate===null?Error(r(467)):Error(r(310));Me=n,n={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},et===null?me.memoizedState=et=n:et=et.next=n}return et}function Mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function es(n){var a=Zr;return Zr+=1,Yi===null&&(Yi=[]),n=zp(Yi,n,a),a=me,(et===null?a.memoizedState:et.next)===null&&(a=a.alternate,U.H=a===null||a.memoizedState===null?km:Iu),n}function zo(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return es(n);if(n.$$typeof===C)return ft(n)}throw Error(r(438,String(n)))}function ku(n){var a=null,s=me.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var o=me.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(d){return d.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=Mo(),me.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(n),o=0;o<n;o++)s[o]=se;return a.index++,s}function Un(n,a){return typeof a=="function"?a(n):a}function Uo(n){var a=We();return xu(a,Me,n)}function xu(n,a,s){var o=n.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=s;var d=n.baseQueue,f=o.pending;if(f!==null){if(d!==null){var v=d.next;d.next=f.next,f.next=v}a.baseQueue=d=f,o.pending=null}if(f=n.baseState,d===null)n.memoizedState=f;else{a=d.next;var S=v=null,O=null,M=a,q=!1;do{var G=M.lane&-536870913;if(G!==M.lane?(Ee&G)===G:(zn&G)===G){var z=M.revertLane;if(z===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),G===Bi&&(q=!0);else if((zn&z)===z){M=M.next,z===Bi&&(q=!0);continue}else G={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},O===null?(S=O=G,v=f):O=O.next=G,me.lanes|=z,va|=z;G=M.action,oi&&s(f,G),f=M.hasEagerState?M.eagerState:s(f,G)}else z={lane:G,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},O===null?(S=O=z,v=f):O=O.next=z,me.lanes|=G,va|=G;M=M.next}while(M!==null&&M!==a);if(O===null?v=f:O.next=S,!zt(f,n.memoizedState)&&(tt=!0,q&&(s=$i,s!==null)))throw s;n.memoizedState=f,n.baseState=v,n.baseQueue=O,o.lastRenderedState=f}return d===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function Ru(n){var a=We(),s=a.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;
vendor: 3,210 bytes, line 9
9var o=s.dispatch,d=s.pending,f=a.memoizedState;if(d!==null){s.pending=null;var v=d=d.next;do f=n(f,v.action),v=v.next;while(v!==d);zt(f,a.memoizedState)||(tt=!0),a.memoizedState=f,a.baseQueue===null&&(a.baseState=f),s.lastRenderedState=f}return[f,o]}function Yp(n,a,s){var o=me,d=We(),f=Oe;if(f){if(s===void 0)throw Error(r(407));s=s()}else s=a();var v=!zt((Me||d).memoizedState,s);if(v&&(d.memoizedState=s,tt=!0),d=d.queue,Nu(Jp.bind(null,o,d,n),[n]),d.getSnapshot!==a||v||et!==null&&et.memoizedState.tag&1){if(o.flags|=2048,Ki(9,{destroy:void 0},Qp.bind(null,o,d,s,a),null),Pe===null)throw Error(r(349));f||(zn&127)!==0||Kp(o,a,s)}return s}function Kp(n,a,s){n.flags|=16384,n={getSnapshot:a,value:s},a=me.updateQueue,a===null?(a=Mo(),me.updateQueue=a,a.stores=[n]):(s=a.stores,s===null?a.stores=[n]:s.push(n))}function Qp(n,a,s,o){a.value=s,a.getSnapshot=o,Xp(a)&&Wp(n)}function Jp(n,a,s){return s(function(){Xp(a)&&Wp(n)})}function Xp(n){var a=n.getSnapshot;n=n.value;try{var s=a();return!zt(n,s)}catch{return!0}}function Wp(n){var a=Wa(n,2);a!==null&&jt(a,n,2)}function Cu(n){var a=_t();if(typeof n=="function"){var s=n;if(n=s(),oi){ia(!0);try{s()}finally{ia(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:n},a}function Zp(n,a,s,o){return n.baseState=s,xu(n,Me,typeof o=="function"?o:Un)}function KS(n,a,s,o,d){if(qo(n))throw Error(r(485));if(n=a.action,n!==null){var f={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){f.listeners.push(v)}};U.T!==null?s(!0):f.isTransition=!1,o(f),s=a.pending,s===null?(f.next=a.pending=f,em(a,f)):(f.next=s.next,a.pending=s.next=f)}}function em(n,a){var s=a.action,o=a.payload,d=n.state;if(a.isTransition){var f=U.T,v={};U.T=v;try{var S=s(d,o),O=U.S;O!==null&&O(v,S),tm(n,a,S)}catch(M){ju(n,a,M)}finally{f!==null&&v.types!==null&&(f.types=v.types),U.T=f}}else try{f=s(d,o),tm(n,a,f)}catch(M){ju(n,a,M)}}function tm(n,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(o){nm(n,a,o)},function(o){return ju(n,a,o)}):nm(n,a,s)}function nm(n,a,s){a.status="fulfilled",a.value=s,am(a),n.state=s,a=n.pending,a!==null&&(s=a.next,s===a?n.pending=null:(s=s.next,a.next=s,em(n,s)))}function ju(n,a,s){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=s,am(a),a=a.next;while(a!==o)}n.action=null}function am(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function im(n,a){return a}function rm(n,a){if(Oe){var s=Pe.formState;if(s!==null){e:{var o=me;if(Oe){if(He){t:{for(var d=He,f=Jt;d.nodeType!==8;){if(!f){d=null;break t}if(d=Wt(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){He=Wt(d.nextSibling),o=d.data==="F!";break e}}ca(o)}o=!1}o&&(a=s[0])}}return s=_t(),s.memoizedState=s.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:im,lastRenderedState:a},s.queue=o,s=Tm.bind(null,me,o),o.dispatch=s,o=Cu(!1),f=Uu.bind(null,me,!1,o.queue),o=_t(),d={state:a,dispatch:null,action:n,pending:null},o.queue=d,s=KS.bind(null,me,d,f,s),d.dispatch=s,o.memoizedState=n,[a,s,!1]}function sm(n){var a=We();return om(a,Me,n)}
vendor: 4,614 bytes, line 9
9function om(n,a,s){if(a=xu(n,a,im)[0],n=Uo(Un)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=es(a)}catch(v){throw v===Hi?ko:v}else o=a;a=We();var d=a.queue,f=d.dispatch;return s!==a.memoizedState&&(me.flags|=2048,Ki(9,{destroy:void 0},QS.bind(null,d,s),null)),[o,f,n]}function QS(n,a){n.action=a}function lm(n){var a=We(),s=Me;if(s!==null)return om(a,s,n);We(),a=a.memoizedState,s=We();var o=s.queue.dispatch;return s.memoizedState=n,[a,o,!1]}function Ki(n,a,s,o){return n={tag:n,create:s,deps:o,inst:a,next:null},a=me.updateQueue,a===null&&(a=Mo(),me.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=n.next=n:(o=s.next,s.next=n,n.next=o,a.lastEffect=n),n}function cm(){return We().memoizedState}function Io(n,a,s,o){var d=_t();me.flags|=n,d.memoizedState=Ki(1|a,{destroy:void 0},s,o===void 0?null:o)}function Po(n,a,s,o){var d=We();o=o===void 0?null:o;var f=d.memoizedState.inst;Me!==null&&o!==null&&_u(o,Me.memoizedState.deps)?d.memoizedState=Ki(a,f,s,o):(me.flags|=n,d.memoizedState=Ki(1|a,f,s,o))}function um(n,a){Io(8390656,8,n,a)}function Nu(n,a){Po(2048,8,n,a)}function JS(n){me.flags|=4;var a=me.updateQueue;if(a===null)a=Mo(),me.updateQueue=a,a.events=[n];else{var s=a.events;s===null?a.events=[n]:s.push(n)}}function dm(n){var a=We().memoizedState;return JS({ref:a,nextImpl:n}),function(){if((Ne&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function hm(n,a){return Po(4,2,n,a)}function fm(n,a){return Po(4,4,n,a)}function pm(n,a){if(typeof a=="function"){n=n();var s=a(n);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function mm(n,a,s){s=s!=null?s.concat([n]):null,Po(4,4,pm.bind(null,a,n),s)}function Lu(){}function gm(n,a){var s=We();a=a===void 0?null:a;var o=s.memoizedState;return a!==null&&_u(a,o[1])?o[0]:(s.memoizedState=[n,a],n)}function ym(n,a){var s=We();a=a===void 0?null:a;var o=s.memoizedState;if(a!==null&&_u(a,o[1]))return o[0];if(o=n(),oi){ia(!0);try{n()}finally{ia(!1)}}return s.memoizedState=[o,a],o}function Du(n,a,s){return s===void 0||(zn&1073741824)!==0&&(Ee&261930)===0?n.memoizedState=a:(n.memoizedState=s,n=vg(),me.lanes|=n,va|=n,s)}function vm(n,a,s,o){return zt(s,a)?s:Vi.current!==null?(n=Du(n,s,o),zt(n,a)||(tt=!0),n):(zn&42)===0||(zn&1073741824)!==0&&(Ee&261930)===0?(tt=!0,n.memoizedState=s):(n=vg(),me.lanes|=n,va|=n,a)}function bm(n,a,s,o,d){var f=Q.p;Q.p=f!==0&&8>f?f:8;var v=U.T,S={};U.T=S,Uu(n,!1,a,s);try{var O=d(),M=U.S;if(M!==null&&M(S,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var q=VS(O,o);ts(n,a,q,$t(n))}else ts(n,a,o,$t(n))}catch(G){ts(n,a,{then:function(){},status:"rejected",reason:G},$t())}finally{Q.p=f,v!==null&&S.types!==null&&(v.types=S.types),U.T=v}}function XS(){}function Mu(n,a,s,o){if(n.tag!==5)throw Error(r(476));var d=wm(n).queue;bm(n,d,a,le,s===null?XS:function(){return Sm(n),s(o)})}function wm(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:le},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:s},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function Sm(n){var a=wm(n);a.next===null&&(a=n.alternate.memoizedState),ts(n,a.next.queue,{},$t())}function zu(){return ft(vs)}function _m(){return We().memoizedState}function Em(){return We().memoizedState}function WS(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var s=$t();n=ha(s);var o=fa(a,n,s);o!==null&&(jt(o,a,s),Jr(o,a,s)),a={cache:du()},n.payload=a;return}a=a.return}}function ZS(n,a,s){var o=$t();s={lane:o,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},qo(n)?Om(a,s):(s=eu(n,a,s,o),s!==null&&(jt(s,n,o),Am(s,a,o)))}function Tm(n,a,s){var o=$t();ts(n,a,s,o)}function ts(n,a,s,o){var d={lane:o,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(qo(n))Om(a,d);else{var f=n.alternate;if(n.lanes===0&&(f===null||f.lanes===0)&&(f=a.lastRenderedReducer,f!==null))try{var v=a.lastRenderedState,S=f(v,s);if(d.hasEagerState=!0,d.eagerState=S,zt(S,v))return wo(n,a,d,0),Pe===null&&bo(),!1}catch{}if(s=eu(n,a,d,o),s!==null)return jt(s,n,o),Am(s,a,o),!0}return!1}function Uu(n,a,s,o){if(o={lane:2,revertLane:md(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},qo(n)){if(a)throw Error(r(479))}else a=eu(n,s,o,2),a!==null&&jt(a,n,2)}function qo(n){var a=n.alternate;return n===me||a!==null&&a===me}
vendor: 17,897 bytes, line 9
9function Om(n,a){Fi=Lo=!0;var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}function Am(n,a,s){if((s&4194048)!==0){var o=a.lanes;o&=n.pendingLanes,s|=o,a.lanes=s,jf(n,s)}}var ns={readContext:ft,use:zo,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};ns.useEffectEvent=Ke;var km={readContext:ft,use:zo,useCallback:function(n,a){return _t().memoizedState=[n,a===void 0?null:a],n},useContext:ft,useEffect:um,useImperativeHandle:function(n,a,s){s=s!=null?s.concat([n]):null,Io(4194308,4,pm.bind(null,a,n),s)},useLayoutEffect:function(n,a){return Io(4194308,4,n,a)},useInsertionEffect:function(n,a){Io(4,2,n,a)},useMemo:function(n,a){var s=_t();a=a===void 0?null:a;var o=n();if(oi){ia(!0);try{n()}finally{ia(!1)}}return s.memoizedState=[o,a],o},useReducer:function(n,a,s){var o=_t();if(s!==void 0){var d=s(a);if(oi){ia(!0);try{s(a)}finally{ia(!1)}}}else d=a;return o.memoizedState=o.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},o.queue=n,n=n.dispatch=ZS.bind(null,me,n),[o.memoizedState,n]},useRef:function(n){var a=_t();return n={current:n},a.memoizedState=n},useState:function(n){n=Cu(n);var a=n.queue,s=Tm.bind(null,me,a);return a.dispatch=s,[n.memoizedState,s]},useDebugValue:Lu,useDeferredValue:function(n,a){var s=_t();return Du(s,n,a)},useTransition:function(){var n=Cu(!1);return n=bm.bind(null,me,n.queue,!0,!1),_t().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,s){var o=me,d=_t();if(Oe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=a(),Pe===null)throw Error(r(349));(Ee&127)!==0||Kp(o,a,s)}d.memoizedState=s;var f={value:s,getSnapshot:a};return d.queue=f,um(Jp.bind(null,o,f,n),[n]),o.flags|=2048,Ki(9,{destroy:void 0},Qp.bind(null,o,f,s,a),null),s},useId:function(){var n=_t(),a=Pe.identifierPrefix;if(Oe){var s=vn,o=yn;s=(o&~(1<<32-Mt(o)-1)).toString(32)+s,a="_"+a+"R_"+s,s=Do++,0<s&&(a+="H"+s.toString(32)),a+="_"}else s=FS++,a="_"+a+"r_"+s.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:zu,useFormState:rm,useActionState:rm,useOptimistic:function(n){var a=_t();a.memoizedState=a.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=Uu.bind(null,me,!0,s),s.dispatch=a,[n,a]},useMemoCache:ku,useCacheRefresh:function(){return _t().memoizedState=WS.bind(null,me)},useEffectEvent:function(n){var a=_t(),s={impl:n};return a.memoizedState=s,function(){if((Ne&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},Iu={readContext:ft,use:zo,useCallback:gm,useContext:ft,useEffect:Nu,useImperativeHandle:mm,useInsertionEffect:hm,useLayoutEffect:fm,useMemo:ym,useReducer:Uo,useRef:cm,useState:function(){return Uo(Un)},useDebugValue:Lu,useDeferredValue:function(n,a){var s=We();return vm(s,Me.memoizedState,n,a)},useTransition:function(){var n=Uo(Un)[0],a=We().memoizedState;return[typeof n=="boolean"?n:es(n),a]},useSyncExternalStore:Yp,useId:_m,useHostTransitionStatus:zu,useFormState:sm,useActionState:sm,useOptimistic:function(n,a){var s=We();return Zp(s,Me,n,a)},useMemoCache:ku,useCacheRefresh:Em};Iu.useEffectEvent=dm;var xm={readContext:ft,use:zo,useCallback:gm,useContext:ft,useEffect:Nu,useImperativeHandle:mm,useInsertionEffect:hm,useLayoutEffect:fm,useMemo:ym,useReducer:Ru,useRef:cm,useState:function(){return Ru(Un)},useDebugValue:Lu,useDeferredValue:function(n,a){var s=We();return Me===null?Du(s,n,a):vm(s,Me.memoizedState,n,a)},useTransition:function(){var n=Ru(Un)[0],a=We().memoizedState;return[typeof n=="boolean"?n:es(n),a]},useSyncExternalStore:Yp,useId:_m,useHostTransitionStatus:zu,useFormState:lm,useActionState:lm,useOptimistic:function(n,a){var s=We();return Me!==null?Zp(s,Me,n,a):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:ku,useCacheRefresh:Em};xm.useEffectEvent=dm;function Pu(n,a,s,o){a=n.memoizedState,s=s(o,a),s=s==null?a:g({},a,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var qu={enqueueSetState:function(n,a,s){n=n._reactInternals;var o=$t(),d=ha(o);d.payload=a,s!=null&&(d.callback=s),a=fa(n,d,o),a!==null&&(jt(a,n,o),Jr(a,n,o))},enqueueReplaceState:function(n,a,s){n=n._reactInternals;var o=$t(),d=ha(o);d.tag=1,d.payload=a,s!=null&&(d.callback=s),a=fa(n,d,o),a!==null&&(jt(a,n,o),Jr(a,n,o))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var s=$t(),o=ha(s);o.tag=2,a!=null&&(o.callback=a),a=fa(n,o,s),a!==null&&(jt(a,n,s),Jr(a,n,s))}};function Rm(n,a,s,o,d,f,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,f,v):a.prototype&&a.prototype.isPureReactComponent?!$r(s,o)||!$r(d,f):!0}function Cm(n,a,s,o){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,o),a.state!==n&&qu.enqueueReplaceState(a,a.state,null)}function li(n,a){var s=a;if("ref"in a){s={};for(var o in a)o!=="ref"&&(s[o]=a[o])}if(n=n.defaultProps){s===a&&(s=g({},s));for(var d in n)s[d]===void 0&&(s[d]=n[d])}return s}function jm(n){vo(n)}function Nm(n){console.error(n)}function Lm(n){vo(n)}function Bo(n,a){try{var s=n.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function Dm(n,a,s){try{var o=n.onCaughtError;o(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Bu(n,a,s){return s=ha(s),s.tag=3,s.payload={element:null},s.callback=function(){Bo(n,a)},s}function Mm(n){return n=ha(n),n.tag=3,n}function zm(n,a,s,o){var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var f=o.value;n.payload=function(){return d(f)},n.callback=function(){Dm(a,s,o)}}var v=s.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(n.callback=function(){Dm(a,s,o),typeof d!="function"&&(ba===null?ba=new Set([this]):ba.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function e_(n,a,s,o,d){if(s.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=s.alternate,a!==null&&qi(a,s,d,!0),s=It.current,s!==null){switch(s.tag){case 31:case 13:return Xt===null?Zo():s.alternate===null&&Qe===0&&(Qe=3),s.flags&=-257,s.flags|=65536,s.lanes=d,o===xo?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([o]):a.add(o),hd(n,o,d)),!1;case 22:return s.flags|=65536,o===xo?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([o]):s.add(o)),hd(n,o,d)),!1}throw Error(r(435,s.tag))}return hd(n,o,d),Zo(),!1}if(Oe)return a=It.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,o!==su&&(n=Error(r(422),{cause:o}),Vr(Yt(n,s)))):(o!==su&&(a=Error(r(423),{cause:o}),Vr(Yt(a,s))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,o=Yt(o,s),d=Bu(n.stateNode,o,d),yu(n,d),Qe!==4&&(Qe=2)),!1;var f=Error(r(520),{cause:o});if(f=Yt(f,s),us===null?us=[f]:us.push(f),Qe!==4&&(Qe=2),a===null)return!0;o=Yt(o,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,n=d&-d,s.lanes|=n,n=Bu(s.stateNode,o,n),yu(s,n),!1;case 1:if(a=s.type,f=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(ba===null||!ba.has(f))))return s.flags|=65536,d&=-d,s.lanes|=d,d=Mm(d),zm(d,n,s,o),yu(s,d),!1}s=s.return}while(s!==null);return!1}var $u=Error(r(461)),tt=!1;function pt(n,a,s,o){a.child=n===null?qp(a,null,s,o):si(a,n.child,s,o)}function Um(n,a,s,o,d){s=s.render;var f=a.ref;if("ref"in o){var v={};for(var S in o)S!=="ref"&&(v[S]=o[S])}else v=o;return ni(a),o=Eu(n,a,s,v,f,d),S=Tu(),n!==null&&!tt?(Ou(n,a,d),In(n,a,d)):(Oe&&S&&iu(a),a.flags|=1,pt(n,a,o,d),a.child)}function Im(n,a,s,o,d){if(n===null){var f=s.type;return typeof f=="function"&&!tu(f)&&f.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=f,Pm(n,a,f,o,d)):(n=_o(s.type,null,o,a,a.mode,d),n.ref=a.ref,n.return=a,a.child=n)}if(f=n.child,!Ju(n,d)){var v=f.memoizedProps;if(s=s.compare,s=s!==null?s:$r,s(v,o)&&n.ref===a.ref)return In(n,a,d)}return a.flags|=1,n=Nn(f,o),n.ref=a.ref,n.return=a,a.child=n}function Pm(n,a,s,o,d){if(n!==null){var f=n.memoizedProps;if($r(f,o)&&n.ref===a.ref)if(tt=!1,a.pendingProps=o=f,Ju(n,d))(n.flags&131072)!==0&&(tt=!0);else return a.lanes=n.lanes,In(n,a,d)}return Hu(n,a,s,o,d)}function qm(n,a,s,o){var d=o.children,f=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((a.flags&128)!==0){if(f=f!==null?f.baseLanes|s:s,n!==null){for(o=a.child=n.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~f}else o=0,a.child=null;return Bm(n,a,f,s,o)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Ao(a,f!==null?f.cachePool:null),f!==null?Hp(a,f):bu(),Gp(a);else return o=a.lanes=536870912,Bm(n,a,f!==null?f.baseLanes|s:s,s,o)}else f!==null?(Ao(a,f.cachePool),Hp(a,f),ma(),a.memoizedState=null):(n!==null&&Ao(a,null),bu(),ma());return pt(n,a,d,s),a.child}function as(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Bm(n,a,s,o,d){var f=fu();return f=f===null?null:{parent:Ze._currentValue,pool:f},a.memoizedState={baseLanes:s,cachePool:f},n!==null&&Ao(a,null),bu(),Gp(a),n!==null&&qi(n,a,o,!0),a.childLanes=d,null}function $o(n,a){return a=Go({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function $m(n,a,s){return si(a,n.child,null,s),n=$o(a,a.pendingProps),n.flags|=2,Pt(a),a.memoizedState=null,n}function t_(n,a,s){var o=a.pendingProps,d=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(Oe){if(o.mode==="hidden")return n=$o(a,o),a.lanes=536870912,as(null,n);if(Su(a),(n=He)?(n=ey(n,Jt),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:oa!==null?{id:yn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},s=Op(n),s.return=a,a.child=s,ht=a,He=null)):n=null,n===null)throw ca(a);return a.lanes=536870912,null}return $o(a,o)}var f=n.memoizedState;if(f!==null){var v=f.dehydrated;if(Su(a),d)if(a.flags&256)a.flags&=-257,a=$m(n,a,s);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(r(558));else if(tt||qi(n,a,s,!1),d=(s&n.childLanes)!==0,tt||d){if(o=Pe,o!==null&&(v=Nf(o,s),v!==0&&v!==f.retryLane))throw f.retryLane=v,Wa(n,v),jt(o,n,v),$u;Zo(),a=$m(n,a,s)}else n=f.treeContext,He=Wt(v.nextSibling),ht=a,Oe=!0,la=null,Jt=!1,n!==null&&xp(a,n),a=$o(a,o),a.flags|=4096;return a}return n=Nn(n.child,{mode:o.mode,children:o.children}),n.ref=a.ref,a.child=n,n.return=a,n}function Ho(n,a){var s=a.ref;if(s===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(n===null||n.ref!==s)&&(a.flags|=4194816)}}function Hu(n,a,s,o,d){return ni(a),s=Eu(n,a,s,o,void 0,d),o=Tu(),n!==null&&!tt?(Ou(n,a,d),In(n,a,d)):(Oe&&o&&iu(a),a.flags|=1,pt(n,a,s,d),a.child)}function Hm(n,a,s,o,d,f){return ni(a),a.updateQueue=null,s=Fp(a,o,s,d),Vp(n),o=Tu(),n!==null&&!tt?(Ou(n,a,f),In(n,a,f)):(Oe&&o&&iu(a),a.flags|=1,pt(n,a,s,f),a.child)}function Gm(n,a,s,o,d){if(ni(a),a.stateNode===null){var f=zi,v=s.contextType;typeof v=="object"&&v!==null&&(f=ft(v)),f=new s(o,f),a.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=qu,a.stateNode=f,f._reactInternals=a,f=a.stateNode,f.props=o,f.state=a.memoizedState,f.refs={},mu(a),v=s.contextType,f.context=typeof v=="object"&&v!==null?ft(v):zi,f.state=a.memoizedState,v=s.getDerivedStateFromProps,typeof v=="function"&&(Pu(a,s,v,o),f.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&qu.enqueueReplaceState(f,f.state,null),Wr(a,o,f,d),Xr(),f.state=a.memoizedState),typeof f.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(n===null){f=a.stateNode;var S=a.memoizedProps,O=li(s,S);f.props=O;var M=f.context,q=s.contextType;v=zi,typeof q=="object"&&q!==null&&(v=ft(q));var G=s.getDerivedStateFromProps;q=typeof G=="function"||typeof f.getSnapshotBeforeUpdate=="function",S=a.pendingProps!==S,q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(S||M!==v)&&Cm(a,f,o,v),da=!1;var z=a.memoizedState;f.state=z,Wr(a,o,f,d),Xr(),M=a.memoizedState,S||z!==M||da?(typeof G=="function"&&(Pu(a,s,G,o),M=a.memoizedState),(O=da||Rm(a,s,O,o,z,M,v))?(q||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(a.flags|=4194308)):(typeof f.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=M),f.props=o,f.state=M,f.context=v,o=O):(typeof f.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{f=a.stateNode,gu(n,a),v=a.memoizedProps,q=li(s,v),f.props=q,G=a.pendingProps,z=f.context,M=s.contextType,O=zi,typeof M=="object"&&M!==null&&(O=ft(M)),S=s.getDerivedStateFromProps,(M=typeof S=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==G||z!==O)&&Cm(a,f,o,O),da=!1,z=a.memoizedState,f.state=z,Wr(a,o,f,d),Xr();var I=a.memoizedState;v!==G||z!==I||da||n!==null&&n.dependencies!==null&&To(n.dependencies)?(typeof S=="function"&&(Pu(a,s,S,o),I=a.memoizedState),(q=da||Rm(a,s,q,o,z,I,O)||n!==null&&n.dependencies!==null&&To(n.dependencies))?(M||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,I,O),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,I,O)),typeof f.componentDidUpdate=="function"&&(a.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===n.memoizedProps&&z===n.memoizedState||(a.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&z===n.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=I),f.props=o,f.state=I,f.context=O,o=q):(typeof f.componentDidUpdate!="function"||v===n.memoizedProps&&z===n.memoizedState||(a.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&z===n.memoizedState||(a.flags|=1024),o=!1)}return f=o,Ho(n,a),o=(a.flags&128)!==0,f||o?(f=a.stateNode,s=o&&typeof s.getDerivedStateFromError!="function"?null:f.render(),a.flags|=1,n!==null&&o?(a.child=si(a,n.child,null,d),a.child=si(a,null,s,d)):pt(n,a,s,d),a.memoizedState=f.state,n=a.child):n=In(n,a,d),n}function Vm(n,a,s,o){return ei(),a.flags|=256,pt(n,a,s,o),a.child}var Gu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vu(n){return{baseLanes:n,cachePool:Dp()}}function Fu(n,a,s){return n=n!==null?n.childLanes&~s:0,a&&(n|=Bt),n}function Fm(n,a,s){var o=a.pendingProps,d=!1,f=(a.flags&128)!==0,v;if((v=f)||(v=n!==null&&n.memoizedState===null?!1:(Xe.current&2)!==0),v&&(d=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,n===null){if(Oe){if(d?pa(a):ma(),(n=He)?(n=ey(n,Jt),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:oa!==null?{id:yn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},s=Op(n),s.return=a,a.child=s,ht=a,He=null)):n=null,n===null)throw ca(a);return xd(n)?a.lanes=32:a.lanes=536870912,null}var S=o.children;return o=o.fallback,d?(ma(),d=a.mode,S=Go({mode:"hidden",children:S},d),o=Za(o,d,s,null),S.return=a,o.return=a,S.sibling=o,a.child=S,o=a.child,o.memoizedState=Vu(s),o.childLanes=Fu(n,v,s),a.memoizedState=Gu,as(null,o)):(pa(a),Yu(a,S))}var O=n.memoizedState;if(O!==null&&(S=O.dehydrated,S!==null)){if(f)a.flags&256?(pa(a),a.flags&=-257,a=Ku(n,a,s)):a.memoizedState!==null?(ma(),a.child=n.child,a.flags|=128,a=null):(ma(),S=o.fallback,d=a.mode,o=Go({mode:"visible",children:o.children},d),S=Za(S,d,s,null),S.flags|=2,o.return=a,S.return=a,o.sibling=S,a.child=o,si(a,n.child,null,s),o=a.child,o.memoizedState=Vu(s),o.childLanes=Fu(n,v,s),a.memoizedState=Gu,a=as(null,o));else if(pa(a),xd(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var M=v.dgst;v=M,o=Error(r(419)),o.stack="",o.digest=v,Vr({value:o,source:null,stack:null}),a=Ku(n,a,s)}else if(tt||qi(n,a,s,!1),v=(s&n.childLanes)!==0,tt||v){if(v=Pe,v!==null&&(o=Nf(v,s),o!==0&&o!==O.retryLane))throw O.retryLane=o,Wa(n,o),jt(v,n,o),$u;kd(S)||Zo(),a=Ku(n,a,s)}else kd(S)?(a.flags|=192,a.child=n.child,a=null):(n=O.treeContext,He=Wt(S.nextSibling),ht=a,Oe=!0,la=null,Jt=!1,n!==null&&xp(a,n),a=Yu(a,o.children),a.flags|=4096);return a}return d?(ma(),S=o.fallback,d=a.mode,O=n.child,M=O.sibling,o=Nn(O,{mode:"hidden",children:o.children}),o.subtreeFlags=O.subtreeFlags&65011712,M!==null?S=Nn(M,S):(S=Za(S,d,s,null),S.flags|=2),S.return=a,o.return=a,o.sibling=S,a.child=o,as(null,o),o=a.child,S=n.child.memoizedState,S===null?S=Vu(s):(d=S.cachePool,d!==null?(O=Ze._currentValue,d=d.parent!==O?{parent:O,pool:O}:d):d=Dp(),S={baseLanes:S.baseLanes|s,cachePool:d}),o.memoizedState=S,o.childLanes=Fu(n,v,s),a.memoizedState=Gu,as(n.child,o)):(pa(a),s=n.child,n=s.sibling,s=Nn(s,{mode:"visible",children:o.children}
vendor: 3,093 bytes, line 9
9),s.return=a,s.sibling=null,n!==null&&(v=a.deletions,v===null?(a.deletions=[n],a.flags|=16):v.push(n)),a.child=s,a.memoizedState=null,s)}function Yu(n,a){return a=Go({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Go(n,a){return n=Ut(22,n,null,a),n.lanes=0,n}function Ku(n,a,s){return si(a,n.child,null,s),n=Yu(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function Ym(n,a,s){n.lanes|=a;var o=n.alternate;o!==null&&(o.lanes|=a),cu(n.return,a,s)}function Qu(n,a,s,o,d,f){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:s,tailMode:d,treeForkCount:f}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=o,v.tail=s,v.tailMode=d,v.treeForkCount=f)}function Km(n,a,s){var o=a.pendingProps,d=o.revealOrder,f=o.tail;o=o.children;var v=Xe.current,S=(v&2)!==0;if(S?(v=v&1|2,a.flags|=128):v&=1,K(Xe,v),pt(n,a,o,s),o=Oe?Gr:0,!S&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Ym(n,s,a);else if(n.tag===19)Ym(n,s,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(d){case"forwards":for(s=a.child,d=null;s!==null;)n=s.alternate,n!==null&&No(n)===null&&(d=s),s=s.sibling;s=d,s===null?(d=a.child,a.child=null):(d=s.sibling,s.sibling=null),Qu(a,!1,d,s,f,o);break;case"backwards":case"unstable_legacy-backwards":for(s=null,d=a.child,a.child=null;d!==null;){if(n=d.alternate,n!==null&&No(n)===null){a.child=d;break}n=d.sibling,d.sibling=s,s=d,d=n}Qu(a,!0,s,null,f,o);break;case"together":Qu(a,!1,null,null,void 0,o);break;default:a.memoizedState=null}return a.child}function In(n,a,s){if(n!==null&&(a.dependencies=n.dependencies),va|=a.lanes,(s&a.childLanes)===0)if(n!==null){if(qi(n,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(r(153));if(a.child!==null){for(n=a.child,s=Nn(n,n.pendingProps),a.child=s,s.return=a;n.sibling!==null;)n=n.sibling,s=s.sibling=Nn(n,n.pendingProps),s.return=a;s.sibling=null}return a.child}function Ju(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&To(n)))}function n_(n,a,s){switch(a.tag){case 3:je(a,a.stateNode.containerInfo),ua(a,Ze,n.memoizedState.cache),ei();break;case 27:case 5:gn(a);break;case 4:je(a,a.stateNode.containerInfo);break;case 10:ua(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Su(a),null;break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(pa(a),a.flags|=128,null):(s&a.child.childLanes)!==0?Fm(n,a,s):(pa(a),n=In(n,a,s),n!==null?n.sibling:null);pa(a);break;case 19:var d=(n.flags&128)!==0;if(o=(s&a.childLanes)!==0,o||(qi(n,a,s,!1),o=(s&a.childLanes)!==0),d){if(o)return Km(n,a,s);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),K(Xe,Xe.current),o)break;return null;case 22:return a.lanes=0,qm(n,a,s,a.pendingProps);case 24:ua(a,Ze,n.memoizedState.cache)}return In(n,a,s)}
vendor: 5,173 bytes, line 9
9function Qm(n,a,s){if(n!==null)if(n.memoizedProps!==a.pendingProps)tt=!0;else{if(!Ju(n,s)&&(a.flags&128)===0)return tt=!1,n_(n,a,s);tt=(n.flags&131072)!==0}else tt=!1,Oe&&(a.flags&1048576)!==0&&kp(a,Gr,a.index);switch(a.lanes=0,a.tag){case 16:e:{var o=a.pendingProps;if(n=ii(a.elementType),a.type=n,typeof n=="function")tu(n)?(o=li(n,o),a.tag=1,a=Gm(null,a,n,o,s)):(a.tag=0,a=Hu(null,a,n,o,s));else{if(n!=null){var d=n.$$typeof;if(d===B){a.tag=11,a=Um(null,a,n,o,s);break e}else if(d===L){a.tag=14,a=Im(null,a,n,o,s);break e}}throw a=he(n)||n,Error(r(306,a,""))}}return a;case 0:return Hu(n,a,a.type,a.pendingProps,s);case 1:return o=a.type,d=li(o,a.pendingProps),Gm(n,a,o,d,s);case 3:e:{if(je(a,a.stateNode.containerInfo),n===null)throw Error(r(387));o=a.pendingProps;var f=a.memoizedState;d=f.element,gu(n,a),Wr(a,o,null,s);var v=a.memoizedState;if(o=v.cache,ua(a,Ze,o),o!==f.cache&&uu(a,[Ze],s,!0),Xr(),o=v.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=f,a.memoizedState=f,a.flags&256){a=Vm(n,a,o,s);break e}else if(o!==d){d=Yt(Error(r(424)),a),Vr(d),a=Vm(n,a,o,s);break e}else for(n=a.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,He=Wt(n.firstChild),ht=a,Oe=!0,la=null,Jt=!0,s=qp(a,null,o,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ei(),o===d){a=In(n,a,s);break e}pt(n,a,o,s)}a=a.child}return a;case 26:return Ho(n,a),n===null?(s=sy(a.type,null,a.pendingProps,null))?a.memoizedState=s:Oe||(s=a.type,n=a.pendingProps,o=sl(ye.current).createElement(s),o[dt]=a,o[Ot]=n,mt(o,s,n),ot(o),a.stateNode=o):a.memoizedState=sy(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return gn(a),n===null&&Oe&&(o=a.stateNode=ay(a.type,a.pendingProps,ye.current),ht=a,Jt=!0,d=He,Ea(a.type)?(Rd=d,He=Wt(o.firstChild)):He=d),pt(n,a,a.pendingProps.children,s),Ho(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Oe&&((d=o=He)&&(o=N_(o,a.type,a.pendingProps,Jt),o!==null?(a.stateNode=o,ht=a,He=Wt(o.firstChild),Jt=!1,d=!0):d=!1),d||ca(a)),gn(a),d=a.type,f=a.pendingProps,v=n!==null?n.memoizedProps:null,o=f.children,Td(d,f)?o=null:v!==null&&Td(d,v)&&(a.flags|=32),a.memoizedState!==null&&(d=Eu(n,a,YS,null,null,s),vs._currentValue=d),Ho(n,a),pt(n,a,o,s),a.child;case 6:return n===null&&Oe&&((n=s=He)&&(s=L_(s,a.pendingProps,Jt),s!==null?(a.stateNode=s,ht=a,He=null,n=!0):n=!1),n||ca(a)),null;case 13:return Fm(n,a,s);case 4:return je(a,a.stateNode.containerInfo),o=a.pendingProps,n===null?a.child=si(a,null,o,s):pt(n,a,o,s),a.child;case 11:return Um(n,a,a.type,a.pendingProps,s);case 7:return pt(n,a,a.pendingProps,s),a.child;case 8:return pt(n,a,a.pendingProps.children,s),a.child;case 12:return pt(n,a,a.pendingProps.children,s),a.child;case 10:return o=a.pendingProps,ua(a,a.type,o.value),pt(n,a,o.children,s),a.child;case 9:return d=a.type._context,o=a.pendingProps.children,ni(a),d=ft(d),o=o(d),a.flags|=1,pt(n,a,o,s),a.child;case 14:return Im(n,a,a.type,a.pendingProps,s);case 15:return Pm(n,a,a.type,a.pendingProps,s);case 19:return Km(n,a,s);case 31:return t_(n,a,s);case 22:return qm(n,a,s,a.pendingProps);case 24:return ni(a),o=ft(Ze),n===null?(d=fu(),d===null&&(d=Pe,f=du(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=s),d=f),a.memoizedState={parent:o,cache:d},mu(a),ua(a,Ze,d)):((n.lanes&s)!==0&&(gu(n,a),Wr(a,null,null,s),Xr()),d=n.memoizedState,f=a.memoizedState,d.parent!==o?(d={parent:o,cache:o},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),ua(a,Ze,o)):(o=f.cache,ua(a,Ze,o),o!==d.cache&&uu(a,[Ze],s,!0))),pt(n,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Pn(n){n.flags|=4}function Xu(n,a,s,o,d){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(d&335544128)===d)if(n.stateNode.complete)n.flags|=8192;else if(_g())n.flags|=8192;else throw ri=xo,pu}else n.flags&=-16777217}function Jm(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!dy(a))if(_g())n.flags|=8192;else throw ri=xo,pu}function Vo(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Rf():536870912,n.lanes|=a,Wi|=a)}function is(n,a){if(!Oe)switch(n.tailMode){case"hidden":a=n.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function Ge(n){var a=n.alternate!==null&&n.alternate.child===n.child,s=0,o=0;if(a)for(var d=n.child;d!==null;)s|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)s|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=o,n.childLanes=s,a}function a_(n,a,s){var o=a.pendingProps;switch(ru(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(a),null;case 1:return Ge(a),null;case 3:return s=a.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Mn(Ze),qe(),s.pe
vendor: 1,269 bytes, line 9
9ndingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(Pi(a)?Pn(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ou())),Ge(a),null;case 26:var d=a.type,f=a.memoizedState;return n===null?(Pn(a),f!==null?(Ge(a),Jm(a,f)):(Ge(a),Xu(a,d,null,o,s))):f?f!==n.memoizedState?(Pn(a),Ge(a),Jm(a,f)):(Ge(a),a.flags&=-16777217):(n=n.memoizedProps,n!==o&&Pn(a),Ge(a),Xu(a,d,n,o,s)),null;case 27:if(Va(a),s=ye.current,d=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==o&&Pn(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return Ge(a),null}n=ne.current,Pi(a)?Rp(a):(n=ay(d,o,s),a.stateNode=n,Pn(a))}return Ge(a),null;case 5:if(Va(a),d=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==o&&Pn(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return Ge(a),null}if(f=ne.current,Pi(a))Rp(a);else{var v=sl(ye.current);switch(f){case 1:f=v.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=v.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":f=v.createElement("div"),f.innerHTML="<script><\/script>
9",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?v.createElement("select",{is:o.is}):v.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?v.createElement(d,{is:o.is}):v.createElement(d)}}f[dt]=a,f[Ot]=o;e:for(v=a.child;v!==null;){if(v.tag===5||v.tag===6)f.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===a)break e;for(;v.sibling===null;){if(v.return===null||v.return===a)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}a.stateNode=f;e:switch(mt(f,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Pn(a)}}return Ge(a),Xu(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,s),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==o&&Pn(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(r(166));if(n=ye.current,Pi(a)){if(n=a.stateNode,s=a.memoizedProps,o=null,d=ht,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}n[dt]=a,n=!!(n.nodeValue===s||o!==null&&o.suppressHydrationWarning===!0||Fg(n.nodeValue,s)),n||ca(a,!0)}else n=sl(n).createTextNode(o),n[dt]=a,a.stateNode=n}return Ge(a),null;case 31:if(s=a.memoizedState,n===null||n.memoizedState!==null){if(o=Pi(a),s!==null){if(n===null){if(!o)throw Error(r(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[dt]=a}else ei(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ge(a),n=!1}else s=ou(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=s),n=!0;if(!n)return a.flags&256?(Pt(a),a):(Pt(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Ge(a),null;case 13:if(o=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Pi(a),o!==null&&o.dehydrated!==null){if(n===null){if(!d)throw Error(r(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[dt]=a}else ei(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ge(a),d=!1}else d=ou(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(Pt(a),a):(Pt(a),null)}return Pt(a),(a.flags&128)!==0?(a.lanes=s,a):(s=o!==null,n=n!==null&&n.memoizedState!==null,s&&(o=a.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==d&&(o.flags|=2048)),s!==n&&s&&(a.child.flags|=8192),Vo(a,a.updateQueue),Ge(a),null);case 4:return qe(),n===null&&bd(a.stateNode.containerInfo),Ge(a),null;case 10:return Mn(a.type),Ge(a),null;case 19:if(H(Xe),o=a.memoizedState,o===null)return Ge(a),null;if(d=(a.flags&128)!==0,f=o.rendering,f===null)if(d)is(o,!1);else{if(Qe!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(f=No(n),f!==null){for(a.flags|=128,is(o,!1),n=f.updateQueue,a.updateQueue=n,Vo(a,n),a.subtreeFlags=0,n=s,s=a.child;s!==null;)Tp(s,n),s=s.sibling;return K(Xe,Xe.current&1|2),Oe&&Ln(a,o.treeForkCount),a.child}n=n.sibling}o.tail!==null&&Lt()>Jo&&(a.flags|=128,d=!0,is(o,!1),a.lanes=4194304)}else{if(!d)if(n=No(f),n!==null){if(a.flags|=128,d=!0,n=n.updateQueue,a.updateQueue=n,Vo(a,n),is(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Oe)return Ge(a),null}else 2*Lt()-o.renderingStartTime>Jo&&s!==536870912&&(a.flags|=128,d=!0,is(o,!1),a.lanes=4194304);o.isBackwards?(f.sibling=a.child,a.child=f):(n=o.last,n!==null?n.sibling=f:a.child=f,o.last=f)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=Lt(),n.sibling=null,s=Xe.current,K(Xe,d?s&1|2:s&1),Oe&&Ln(a,o.treeForkCount),n):(Ge(a),null);case 22:case 23:return Pt(a),wu(),o=a.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(s&536870912)!==0&&(a.flags&128)===0&&(Ge(a),a.subtreeFlags&6&&(a.flags|=8192)):Ge(a),s=a.updateQueue,s!==null&&Vo(a,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==s&&(a.flags|=2048),n!==null&&H(ai),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),Mn(Ze),Ge(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function i_(n,a){switch(ru(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Mn(Ze),qe(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Va(a),null;case 31:if(a.memoizedState!==null){if(Pt(a),a.alternate===null)throw Error(r(340));ei()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(Pt(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(r(340));ei()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return H(Xe),null;case 4:return qe(),null;case 10:return Mn(a.type),null;case 22:case 23:return Pt(a),wu(),n!==null&&H(ai),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return Mn(Ze),null;case 25:return null;default:return null}}function Xm(n,a){switch(ru(a),a.tag){case 3:Mn(Ze),qe();break;case 26:case 27:case 5:Va(a);break;case 4:qe();break;case 31:a.memoizedState!==null&&Pt(a);break;case 13:Pt(a);break;case 19:H(Xe);break;case 10:Mn(a.type);break;case 22:case 23:Pt(a),wu(),n!==null&&H(ai);break;case 24:Mn(Ze)}}function rs(n,a){try{var s=a.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var d=o.next;s=d;do{if((s.tag&n)===n){o=void 0;var f=s.create,v=s.inst;o=f(),v.destroy=o}s=s.next}while(s!==d)}}catch(S){De(a,a.return,S)}}function ga(n,a,s){try{var o=a.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var f=d.next;o=f;do{if((o.tag&n)===n){var v=o.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,d=a;var O=s,M=S;try{M()}catch(q){De(d,O,q)}}}o=o.next}while(o!==f)}}catch(q){De(a,a.return,q)}}function Wm(n){var a=n.updateQueue;if(a!==null){var s=n.stateNode;try{$p(a,s)}catch(o){De(n,n.return,o)}}}
vendor: 18,946 bytes, line 9
9function Zm(n,a,s){s.props=li(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(o){De(n,a,o)}}function ss(n,a){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var o=n.stateNode;break;case 30:o=n.stateNode;break;default:o=n.stateNode}typeof s=="function"?n.refCleanup=s(o):s.current=o}}catch(d){De(n,a,d)}}function bn(n,a){var s=n.ref,o=n.refCleanup;if(s!==null)if(typeof o=="function")try{o()}catch(d){De(n,a,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(d){De(n,a,d)}else s.current=null}function eg(n){var a=n.type,s=n.memoizedProps,o=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&o.focus();break e;case"img":s.src?o.src=s.src:s.srcSet&&(o.srcset=s.srcSet)}}catch(d){De(n,n.return,d)}}function Wu(n,a,s){try{var o=n.stateNode;A_(o,n.type,s,a),o[Ot]=a}catch(d){De(n,n.return,d)}}function tg(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ea(n.type)||n.tag===4}function Zu(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||tg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ea(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function ed(n,a,s){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(n),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=Cn));else if(o!==4&&(o===27&&Ea(n.type)&&(s=n.stateNode,a=null),n=n.child,n!==null))for(ed(n,a,s),n=n.sibling;n!==null;)ed(n,a,s),n=n.sibling}function Fo(n,a,s){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?s.insertBefore(n,a):s.appendChild(n);else if(o!==4&&(o===27&&Ea(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(Fo(n,a,s),n=n.sibling;n!==null;)Fo(n,a,s),n=n.sibling}function ng(n){var a=n.stateNode,s=n.memoizedProps;try{for(var o=n.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);mt(a,o,s),a[dt]=n,a[Ot]=s}catch(f){De(n,n.return,f)}}var qn=!1,nt=!1,td=!1,ag=typeof WeakSet=="function"?WeakSet:Set,lt=null;function r_(n,a){if(n=n.containerInfo,_d=fl,n=mp(n),Kc(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var d=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{s.nodeType,f.nodeType}catch{s=null;break e}var v=0,S=-1,O=-1,M=0,q=0,G=n,z=null;t:for(;;){for(var I;G!==s||d!==0&&G.nodeType!==3||(S=v+d),G!==f||o!==0&&G.nodeType!==3||(O=v+o),G.nodeType===3&&(v+=G.nodeValue.length),(I=G.firstChild)!==null;)z=G,G=I;for(;;){if(G===n)break t;if(z===s&&++M===d&&(S=v),z===f&&++q===o&&(O=v),(I=G.nextSibling)!==null)break;G=z,z=G.parentNode}G=I}s=S===-1||O===-1?null:{start:S,end:O}}else s=null}s=s||{start:0,end:0}}else s=null;for(Ed={focusedElem:n,selectionRange:s},fl=!1,lt=a;lt!==null;)if(a=lt,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,lt=n;else for(;lt!==null;){switch(a=lt,f=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(s=0;s<n.length;s++)d=n[s],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&f!==null){n=void 0,s=a,d=f.memoizedProps,f=f.memoizedState,o=s.stateNode;try{var te=li(s.type,d);n=o.getSnapshotBeforeUpdate(te,f),o.__reactInternalSnapshotBeforeUpdate=n}catch(ue){De(s,s.return,ue)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,s=n.nodeType,s===9)Ad(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Ad(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=a.sibling,n!==null){n.return=a.return,lt=n;break}lt=a.return}}function ig(n,a,s){var o=s.flags;switch(s.tag){case 0:case 11:case 15:$n(n,s),o&4&&rs(5,s);break;case 1:if($n(n,s),o&4)if(n=s.stateNode,a===null)try{n.componentDidMount()}catch(v){De(s,s.return,v)}else{var d=li(s.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(d,a,n.__reactInternalSnapshotBeforeUpdate)}catch(v){De(s,s.return,v)}}o&64&&Wm(s),o&512&&ss(s,s.return);break;case 3:if($n(n,s),o&64&&(n=s.updateQueue,n!==null)){if(a=null,s.child!==null)switch(s.child.tag){case 27:case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}try{$p(n,a)}catch(v){De(s,s.return,v)}}break;case 27:a===null&&o&4&&ng(s);case 26:case 5:$n(n,s),a===null&&o&4&&eg(s),o&512&&ss(s,s.return);break;case 12:$n(n,s);break;case 31:$n(n,s),o&4&&og(n,s);break;case 13:$n(n,s),o&4&&lg(n,s),o&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=p_.bind(null,s),D_(n,s))));break;case 22:if(o=s.memoizedState!==null||qn,!o){a=a!==null&&a.memoizedState!==null||nt,d=qn;var f=nt;qn=o,(nt=a)&&!f?Hn(n,s,(s.subtreeFlags&8772)!==0):$n(n,s),qn=d,nt=f}break;case 30:break;default:$n(n,s)}}function rg(n){var a=n.alternate;a!==null&&(n.alternate=null,rg(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&jc(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Fe=null,kt=!1;function Bn(n,a,s){for(s=s.child;s!==null;)sg(n,a,s),s=s.sibling}function sg(n,a,s){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(Cr,s)}catch{}switch(s.tag){case 26:nt||bn(s,a),Bn(n,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:nt||bn(s,a);var o=Fe,d=kt;Ea(s.type)&&(Fe=s.stateNode,kt=!1),Bn(n,a,s),ms(s.stateNode),Fe=o,kt=d;break;case 5:nt||bn(s,a);case 6:if(o=Fe,d=kt,Fe=null,Bn(n,a,s),Fe=o,kt=d,Fe!==null)if(kt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(s.stateNode)}catch(f){De(s,a,f)}else try{Fe.removeChild(s.stateNode)}catch(f){De(s,a,f)}break;case 18:Fe!==null&&(kt?(n=Fe,Wg(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),sr(n)):Wg(Fe,s.stateNode));break;case 4:o=Fe,d=kt,Fe=s.stateNode.containerInfo,kt=!0,Bn(n,a,s),Fe=o,kt=d;break;case 0:case 11:case 14:case 15:ga(2,s,a),nt||ga(4,s,a),Bn(n,a,s);break;case 1:nt||(bn(s,a),o=s.stateNode,typeof o.componentWillUnmount=="function"&&Zm(s,a,o)),Bn(n,a,s);break;case 21:Bn(n,a,s);break;case 22:nt=(o=nt)||s.memoizedState!==null,Bn(n,a,s),nt=o;break;default:Bn(n,a,s)}}function og(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{sr(n)}catch(s){De(a,a.return,s)}}}function lg(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{sr(n)}catch(s){De(a,a.return,s)}}function s_(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new ag),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new ag),a;default:throw Error(r(435,n.tag))}}function Yo(n,a){var s=s_(n);a.forEach(function(o){if(!s.has(o)){s.add(o);var d=m_.bind(null,n,o);o.then(d,d)}})}function xt(n,a){var s=a.deletions;if(s!==null)for(var o=0;o<s.length;o++){var d=s[o],f=n,v=a,S=v;e:for(;S!==null;){switch(S.tag){case 27:if(Ea(S.type)){Fe=S.stateNode,kt=!1;break e}break;case 5:Fe=S.stateNode,kt=!1;break e;case 3:case 4:Fe=S.stateNode.containerInfo,kt=!0;break e}S=S.return}if(Fe===null)throw Error(r(160));sg(f,v,d),Fe=null,kt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)cg(a,n),a=a.sibling}var rn=null;function cg(n,a){var s=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:xt(a,n),Rt(n),o&4&&(ga(3,n,n.return),rs(3,n),ga(5,n,n.return));break;case 1:xt(a,n),Rt(n),o&512&&(nt||s===null||bn(s,s.return)),o&64&&qn&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?o:s.concat(o))));break;case 26:var d=rn;if(xt(a,n),Rt(n),o&512&&(nt||s===null||bn(s,s.return)),o&4){var f=s!==null?s.memoizedState:null;if(o=n.memoizedState,s===null)if(o===null)if(n.stateNode===null){e:{o=n.type,s=n.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":f=d.getElementsByTagName("title")[0],(!f||f[Lr]||f[dt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(o),d.head.insertBefore(f,d.querySelector("head > title"))),mt(f,o,s),f[dt]=n,ot(f),o=f;break e;case"link":var v=cy("link","href",d).get(o+(s.href||""));if(v){for(var S=0;S<v.length;S++)if(f=v[S],f.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&f.getAttribute("rel")===(s.rel==null?null:s.rel)&&f.getAttribute("title")===(s.title==null?null:s.title)&&f.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){v.splice(S,1);break t}}f=d.createElement(o),mt(f,o,s),d.head.appendChild(f);break;case"meta":if(v=cy("meta","content",d).get(o+(s.content||""))){for(S=0;S<v.length;S++)if(f=v[S],f.getAttribute("content")===(s.content==null?null:""+s.content)&&f.getAttribute("name")===(s.name==null?null:s.name)&&f.getAttribute("property")===(s.property==null?null:s.property)&&f.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&f.getAttribute("charset")===(s.charSet==null?null:s.charSet)){v.splice(S,1);break t}}f=d.createElement(o),mt(f,o,s),d.head.appendChild(f);break;default:throw Error(r(468,o))}f[dt]=n,ot(f),o=f}n.stateNode=o}else uy(d,n.type,n.stateNode);else n.stateNode=ly(d,o,n.memoizedProps);else f!==o?(f===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):f.count--,o===null?uy(d,n.type,n.stateNode):ly(d,o,n.memoizedProps)):o===null&&n.stateNode!==null&&Wu(n,n.memoizedProps,s.memoizedProps)}break;case 27:xt(a,n),Rt(n),o&512&&(nt||s===null||bn(s,s.return)),s!==null&&o&4&&Wu(n,n.memoizedProps,s.memoizedProps);break;case 5:if(xt(a,n),Rt(n),o&512&&(nt||s===null||bn(s,s.return)),n.flags&32){d=n.stateNode;try{Ri(d,"")}catch(te){De(n,n.return,te)}}o&4&&n.stateNode!=null&&(d=n.memoizedProps,Wu(n,d,s!==null?s.memoizedProps:d)),o&1024&&(td=!0);break;case 6:if(xt(a,n),Rt(n),o&4){if(n.stateNode===null)throw Error(r(162));o=n.memoizedProps,s=n.stateNode;try{s.nodeValue=o}catch(te){De(n,n.return,te)}}break;case 3:if(cl=null,d=rn,rn=ol(a.containerInfo),xt(a,n),rn=d,Rt(n),o&4&&s!==null&&s.memoizedState.isDehydrated)try{sr(a.containerInfo)}catch(te){De(n,n.return,te)}td&&(td=!1,ug(n));break;case 4:o=rn,rn=ol(n.stateNode.containerInfo),xt(a,n),Rt(n),rn=o;break;case 12:xt(a,n),Rt(n);break;case 31:xt(a,n),Rt(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Yo(n,o)));break;case 13:xt(a,n),Rt(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Qo=Lt()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Yo(n,o)));break;case 22:d=n.memoizedState!==null;var O=s!==null&&s.memoizedState!==null,M=qn,q=nt;if(qn=M||d,nt=q||O,xt(a,n),nt=q,qn=M,Rt(n),o&8192)e:for(a=n.stateNode,a._visibility=d?a._visibility&-2:a._visibility|1,d&&(s===null||O||qn||nt||ci(n)),s=null,a=n;;){if(a.tag===5||a.tag===26){if(s===null){O=s=a;try{if(f=O.stateNode,d)v=f.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{S=O.stateNode;var G=O.memoizedProps.style,z=G!=null&&G.hasOwnProperty("display")?G.display:null;S.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(te){De(O,O.return,te)}}}else if(a.tag===6){if(s===null){O=a;try{O.stateNode.nodeValue=d?"":O.memoizedProps}catch(te){De(O,O.return,te)}}}else if(a.tag===18){if(s===null){O=a;try{var I=O.stateNode;d?Zg(I,!0):Zg(O.stateNode,!1)}catch(te){De(O,O.return,te)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=n.updateQueue,o!==null&&(s=o.retryQueue,s!==null&&(o.retryQueue=null,Yo(n,s))));break;case 19:xt(a,n),Rt(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Yo(n,o)));break;case 30:break;case 21:break;default:xt(a,n),Rt(n)}}function Rt(n){var a=n.flags;if(a&2){try{for(var s,o=n.return;o!==null;){if(tg(o)){s=o;break}o=o.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var d=s.stateNode,f=Zu(n);Fo(n,f,d);break;case 5:var v=s.stateNode;s.flags&32&&(Ri(v,""),s.flags&=-33);var S=Zu(n);Fo(n,S,v);break;case 3:case 4:var O=s.stateNode.containerInfo,M=Zu(n);ed(n,M,O);break;default:throw Error(r(161))}}catch(q){De(n,n.return,q)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function ug(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;ug(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function $n(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)ig(n,a.alternate,a),a=a.sibling}function ci(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:ga(4,a,a.return),ci(a);break;case 1:bn(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&Zm(a,a.return,s),ci(a);break;case 27:ms(a.stateNode);case 26:case 5:bn(a,a.return),ci(a);break;case 22:a.memoizedState===null&&ci(a);break;case 30:ci(a);break;default:ci(a)}n=n.sibling}}function Hn(n,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,d=n,f=a,v=f.flags;switch(f.tag){case 0:case 11:case 15:Hn(d,f,s),rs(4,f);break;case 1:if(Hn(d,f,s),o=f,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(M){De(o,o.return,M)}if(o=f,d=o.updateQueue,d!==null){var S=o.stateNode;try{var O=d.shared.hiddenCallbacks;if(O!==null)for(d.shared.hiddenCallbacks=null,d=0;d<O.length;d++)Bp(O[d],S)}catch(M){De(o,o.return,M)}}s&&v&64&&Wm(f),ss(f,f.return);break;case 27:ng(f);case 26:case 5:Hn(d,f,s),s&&o===null&&v&4&&eg(f),ss(f,f.return);break;case 12:Hn(d,f,s);break;case 31:Hn(d,f,s),s&&v&4&&og(d,f);break;case 13:Hn(d,f,s),s&&v&4&&lg(d,f);break;case 22:f.memoizedState===null&&Hn(d,f,s),ss(f,f.return);break;case 30:break;default:Hn(d,f,s)}a=a.sibling}}function nd(n,a){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&Fr(s))}function ad(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Fr(n))}function sn(n,a,s,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)dg(n,a,s,o),a=a.sibling}function dg(n,a,s,o){var d=a.flags;switch(a.tag){case 0:case 11:case 15:sn(n,a,s,o),d&2048&&rs(9,a);break;case 1:sn(n,a,s,o);break;case 3:sn(n,a,s,o),d&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Fr(n)));break;case 12:if(d&2048){sn(n,a,s,o),n=a.stateNode;try{var f=a.memoizedProps,v=f.id,S=f.onPostCommit;typeof S=="function"&&S(v,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(O){De(a,a.return,O)}}else sn(n,a,s,o);break;case 31:sn(n,a,s,o);break;case 13:sn(n,a,s,o);break;case 23:break;case 22:f=a.stateNode,v=a.alternate,a.memoizedState!==null?f._visibility&2?sn(n,a,s,o):os(n,a):f._visibility&2?sn(n,a,s,o):(f._visibility|=2,Qi(n,a,s,o,(a.subtreeFlags&10256)!==0||!1)),d&2048&&nd(v,a);break;case 24:sn(n,a,s,o),d&2048&&ad(a.alternate,a);break;default:sn(n,a,s,o)}}function Qi(n,a,s,o,d){for(d=d&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var f=n,v=a,S=s,O=o,M=v.flags;switch(v.tag){case 0:case 11:case 15:Qi(f,v,S,O,d),rs(8,v);break;case 23:break;case 22:var q=v.stateNode;v.memoizedState!==null?q._visibility&2?Qi(f,v,S,O,d):os(f,v):(q._visibility|=2,Qi(f,v,S,O,d)),d&&M&2048&&nd(v.alternate,v);break;case 24:Qi(f,v,S,O,d),d&&M&2048&&ad(v.alternate,v);break;default:Qi(f,v,S,O,d)}a=a.sibling}}function os(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=n,o=a,d=o.flags;switch(o.tag){case 22:os(s,o),d&2048&&nd(o.alternate,o);break;case 24:os(s,o),d&2048&&ad(o.alternate,o);break;default:os(s,o)}a=a.sibling}}var ls=8192;function Ji(n,a,s){if(n.subtreeFlags&ls)for(n=n.child;n!==null;)hg(n,a,s),n=n.sibling}function hg(n,a,s){switch(n.tag){case 26:Ji(n,a,s),n.flags&ls&&n.memoizedState!==null&&F_(s,rn,n.memoizedState,n.memoizedProps);break;case 5:Ji(n,a,s);break;case 3:case 4:var o=rn;rn=ol(n.stateNode.containerInfo),Ji(n,a,s),rn=o;break;case 22:n.memoizedState===null&&(o=n.alternate,o!==null&&o.memoizedState!==null?(o=ls,ls=16777216,Ji(n,a,s),ls=o):Ji(n,a,s));break;default:Ji(n,a,s)}}function fg(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function cs(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var o=a[s];lt=o,mg(o,n)}fg(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)pg(n),n=n.sibling}function pg(n){switch(n.tag){case 0:case 11:case 15:cs(n),n.flags&2048&&ga(9,n,n.return);break;case 3:cs(n);break;case 12:cs(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Ko(n)):cs(n);break;default:cs(n)}}function Ko(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var o=a[s];lt=o,mg(o,n)}fg(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:ga(8,a,a.return),Ko(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,Ko(a));break;default:Ko(a)}n=n.sibling}}function mg(n,a){for(;lt!==null;){var s=lt;switch(s.tag){case 0:case 11:case 15:ga(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var o=s.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Fr(s.memoizedState.cache)}if(o=s.child,o!==null)o.return=s,lt=o;else e:for(s=n;lt!==null;){o=lt;var d=o.sibling,f=o.return;if(rg(o),o===s){lt=null;break e}if(d!==null){d.return=f,lt=d;break e}lt=f}}}var o_={getCacheForType:function(n){var a=ft(Ze),s=a.data.get(n);return s===void 0&&(s=n(),a.data.set(n,s)),s},cacheSignal:function(){return ft(Ze).controller.signal}},l_=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Pe=null,we=null,Ee=0,Le=0,qt=null,ya=!1,Xi=!1,id=!1,Gn=0,Qe=0,va=0,ui=0,rd=0,Bt=0,Wi=0,us=null,Ct=null,sd=!1,Qo=0,gg=0,Jo=1/0,Xo=null,ba=null,rt=0,wa=null,Zi=null,Vn=0,od=0,ld=null,yg=null,ds=0,cd=null;function $t(){return(Ne&2)!==0&&Ee!==0?Ee&-Ee:U.T!==null?md():Lf()}function vg(){if(Bt===0)if((Ee&536870912)===0||Oe){var n=io;io<<=1,(io&3932160)===0&&(io=262144),Bt=n}else Bt=536870912;return n=It.current,n!==null&&(n.flags|=32),Bt}function jt(n,a,s){(n===Pe&&(Le===2||Le===9)||n.cancelPendingCommit!==null)&&(er(n,0),Sa(n,Ee,Bt,!1)),Nr(n,s),((Ne&2)===0||n!==Pe)&&(n===Pe&&((Ne&2)===0&&(ui|=s),Qe===4&&Sa(n,Ee,Bt,!1)),wn(n))}
vendor: 3,440 bytes, line 9
9function bg(n,a,s){if((Ne&6)!==0)throw Error(r(327));var o=!s&&(a&127)===0&&(a&n.expiredLanes)===0||jr(n,a),d=o?d_(n,a):dd(n,a,!0),f=o;do{if(d===0){Xi&&!o&&Sa(n,a,0,!1);break}else{if(s=n.current.alternate,f&&!c_(s)){d=dd(n,a,!1),f=!1;continue}if(d===2){if(f=a,n.errorRecoveryDisabledLanes&f)var v=0;else v=n.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;e:{var S=n;d=us;var O=S.current.memoizedState.isDehydrated;if(O&&(er(S,v).flags|=256),v=dd(S,v,!1),v!==2){if(id&&!O){S.errorRecoveryDisabledLanes|=f,ui|=f,d=4;break e}f=Ct,Ct=d,f!==null&&(Ct===null?Ct=f:Ct.push.apply(Ct,f))}d=v}if(f=!1,d!==2)continue}}if(d===1){er(n,0),Sa(n,a,0,!0);break}e:{switch(o=n,f=d,f){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Sa(o,a,Bt,!ya);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(d=Qo+300-Lt(),10<d)){if(Sa(o,a,Bt,!ya),so(o,0,!0)!==0)break e;Vn=a,o.timeoutHandle=Jg(wg.bind(null,o,s,Ct,Xo,sd,a,Bt,ui,Wi,ya,f,"Throttled",-0,0),d);break e}wg(o,s,Ct,Xo,sd,a,Bt,ui,Wi,ya,f,null,-0,0)}}break}while(!0);wn(n)}function wg(n,a,s,o,d,f,v,S,O,M,q,G,z,I){if(n.timeoutHandle=-1,G=a.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cn},hg(a,f,G);var te=(f&62914560)===f?Qo-Lt():(f&4194048)===f?gg-Lt():0;if(te=Y_(G,te),te!==null){Vn=f,n.cancelPendingCommit=te(xg.bind(null,n,a,f,s,o,d,v,S,O,q,G,null,z,I)),Sa(n,f,v,!M);return}}xg(n,a,f,s,o,d,v,S,O)}function c_(n){for(var a=n;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var o=0;o<s.length;o++){var d=s[o],f=d.getSnapshot;d=d.value;try{if(!zt(f(),d))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Sa(n,a,s,o){a&=~rd,a&=~ui,n.suspendedLanes|=a,n.pingedLanes&=~a,o&&(n.warmLanes|=a),o=n.expirationTimes;for(var d=a;0<d;){var f=31-Mt(d),v=1<<f;o[f]=-1,d&=~v}s!==0&&Cf(n,s,a)}function Wo(){return(Ne&6)===0?(hs(0),!1):!0}function ud(){if(we!==null){if(Le===0)var n=we.return;else n=we,Dn=ti=null,Au(n),Gi=null,Kr=0,n=we;for(;n!==null;)Xm(n.alternate,n),n=n.return;we=null}}function er(n,a){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,R_(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),Vn=0,ud(),Pe=n,we=s=Nn(n.current,null),Ee=a,Le=0,qt=null,ya=!1,Xi=jr(n,a),id=!1,Wi=Bt=rd=ui=va=Qe=0,Ct=us=null,sd=!1,(a&8)!==0&&(a|=a&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=a;0<o;){var d=31-Mt(o),f=1<<d;a|=n[d],o&=~f}return Gn=a,bo(),s}function Sg(n,a){me=null,U.H=ns,a===Hi||a===ko?(a=Up(),Le=3):a===pu?(a=Up(),Le=4):Le=a===$u?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,qt=a,we===null&&(Qe=1,Bo(n,Yt(a,n.current)))}function _g(){var n=It.current;return n===null?!0:(Ee&4194048)===Ee?Xt===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?n===Xt:!1}function Eg(){var n=U.H;return U.H=ns,n===null?ns:n}function Tg(){var n=U.A;return U.A=o_,n}function Zo(){Qe=4,ya||(Ee&4194048)!==Ee&&It.current!==null||(Xi=!0),(va&134217727)===0&&(ui&134217727)===0||Pe===null||Sa(Pe,Ee,Bt,!1)}function dd(n,a,s){var o=Ne;Ne|=2;var d=Eg(),f=Tg();(Pe!==n||Ee!==a)&&(Xo=null,er(n,a)),a=!1;var v=Qe;
vendor: 4,128 bytes, line 9
9e:do try{if(Le!==0&&we!==null){var S=we,O=qt;switch(Le){case 8:ud(),v=6;break e;case 3:case 2:case 9:case 6:It.current===null&&(a=!0);var M=Le;if(Le=0,qt=null,tr(n,S,O,M),s&&Xi){v=0;break e}break;default:M=Le,Le=0,qt=null,tr(n,S,O,M)}}u_(),v=Qe;break}catch(q){Sg(n,q)}while(!0);return a&&n.shellSuspendCounter++,Dn=ti=null,Ne=o,U.H=d,U.A=f,we===null&&(Pe=null,Ee=0,bo()),v}function u_(){for(;we!==null;)Og(we)}function d_(n,a){var s=Ne;Ne|=2;var o=Eg(),d=Tg();Pe!==n||Ee!==a?(Xo=null,Jo=Lt()+500,er(n,a)):Xi=jr(n,a);e:do try{if(Le!==0&&we!==null){a=we;var f=qt;t:switch(Le){case 1:Le=0,qt=null,tr(n,a,f,1);break;case 2:case 9:if(Mp(f)){Le=0,qt=null,Ag(a);break}a=function(){Le!==2&&Le!==9||Pe!==n||(Le=7),wn(n)},f.then(a,a);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Mp(f)?(Le=0,qt=null,Ag(a)):(Le=0,qt=null,tr(n,a,f,7));break;case 5:var v=null;switch(we.tag){case 26:v=we.memoizedState;case 5:case 27:var S=we;if(v?dy(v):S.stateNode.complete){Le=0,qt=null;var O=S.sibling;if(O!==null)we=O;else{var M=S.return;M!==null?(we=M,el(M)):we=null}break t}}Le=0,qt=null,tr(n,a,f,5);break;case 6:Le=0,qt=null,tr(n,a,f,6);break;case 8:ud(),Qe=6;break e;default:throw Error(r(462))}}h_();break}catch(q){Sg(n,q)}while(!0);return Dn=ti=null,U.H=o,U.A=d,Ne=s,we!==null?0:(Pe=null,Ee=0,bo(),Qe)}function h_(){for(;we!==null&&!Mw();)Og(we)}function Og(n){var a=Qm(n.alternate,n,Gn);n.memoizedProps=n.pendingProps,a===null?el(n):we=a}function Ag(n){var a=n,s=a.alternate;switch(a.tag){case 15:case 0:a=Hm(s,a,a.pendingProps,a.type,void 0,Ee);break;case 11:a=Hm(s,a,a.pendingProps,a.type.render,a.ref,Ee);break;case 5:Au(a);default:Xm(s,a),a=we=Tp(a,Gn),a=Qm(s,a,Gn)}n.memoizedProps=n.pendingProps,a===null?el(n):we=a}function tr(n,a,s,o){Dn=ti=null,Au(a),Gi=null,Kr=0;var d=a.return;try{if(e_(n,d,a,s,Ee)){Qe=1,Bo(n,Yt(s,n.current)),we=null;return}}catch(f){if(d!==null)throw we=d,f;Qe=1,Bo(n,Yt(s,n.current)),we=null;return}a.flags&32768?(Oe||o===1?n=!0:Xi||(Ee&536870912)!==0?n=!1:(ya=n=!0,(o===2||o===9||o===3||o===6)&&(o=It.current,o!==null&&o.tag===13&&(o.flags|=16384))),kg(a,n)):el(a)}function el(n){var a=n;do{if((a.flags&32768)!==0){kg(a,ya);return}n=a.return;var s=a_(a.alternate,a,Gn);if(s!==null){we=s;return}if(a=a.sibling,a!==null){we=a;return}we=a=n}while(a!==null);Qe===0&&(Qe=5)}function kg(n,a){do{var s=i_(n.alternate,n);if(s!==null){s.flags&=32767,we=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(n=n.sibling,n!==null)){we=n;return}we=n=s}while(n!==null);Qe=6,we=null}function xg(n,a,s,o,d,f,v,S,O){n.cancelPendingCommit=null;do tl();while(rt!==0);if((Ne&6)!==0)throw Error(r(327));if(a!==null){if(a===n.current)throw Error(r(177));if(f=a.lanes|a.childLanes,f|=Zc,Vw(n,s,f,v,S,O),n===Pe&&(we=Pe=null,Ee=0),Zi=a,wa=n,Vn=s,od=f,ld=d,yg=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,g_(no,function(){return Lg(),null})):(n.callbackNode=null,n.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,d=Q.p,Q.p=2,v=Ne,Ne|=4;try{r_(n,a,s)}finally{Ne=v,Q.p=d,U.T=o}}rt=1,Rg(),Cg(),jg()}}function Rg(){if(rt===1){rt=0;var n=wa,a=Zi,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=U.T,U.T=null;var o=Q.p;Q.p=2;var d=Ne;Ne|=4;try{cg(a,n);var f=Ed,v=mp(n.containerInfo),S=f.focusedElem,O=f.selectionRange;if(v!==S&&S&&S.ownerDocument&&pp(S.ownerDocument.documentElement,S)){if(O!==null&&Kc(S)){var M=O.start,q=O.end;if(q===void 0&&(q=M),"selectionStart"in S)S.selectionStart=M,S.selectionEnd=Math.min(q,S.value.length);else{var G=S.ownerDocument||document,z=G&&G.defaultView||window;if(z.getSelection){var I=z.getSelection(),te=S.textContent.length,ue=Math.min(O.start,te),Ue=O.end===void 0?ue:Math.min(O.end,te);!I.extend&&ue>Ue&&(v=Ue,Ue=ue,ue=v);var N=fp(S,ue),x=fp(S,Ue);if(N&&x&&(I.rangeCount!==1||I.anchorNode!==N.node||I.anchorOffset!==N.offset||I.focusNode!==x.node||I.focusOffset!==x.offset)){var D=G.createRange();D.setStart(N.node,N.offset),I.removeAllRanges(),ue>Ue?(I.addRange(D),I.extend(x.node,x.offset)):(D.setEnd(x.node,x.offset),I.addRange(D))}}}}for(G=[],I=S;I=I.parentNode;
vendor: 6,592 bytes, line 9
9)I.nodeType===1&&G.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<G.length;S++){var $=G[S];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}fl=!!_d,Ed=_d=null}finally{Ne=d,Q.p=o,U.T=s}}n.current=a,rt=2}}function Cg(){if(rt===2){rt=0;var n=wa,a=Zi,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=U.T,U.T=null;var o=Q.p;Q.p=2;var d=Ne;Ne|=4;try{ig(n,a.alternate,a)}finally{Ne=d,Q.p=o,U.T=s}}rt=3}}function jg(){if(rt===4||rt===3){rt=0,zw();var n=wa,a=Zi,s=Vn,o=yg;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?rt=5:(rt=0,Zi=wa=null,Ng(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(ba=null),Rc(s),a=a.stateNode,Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(Cr,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=U.T,d=Q.p,Q.p=2,U.T=null;try{for(var f=n.onRecoverableError,v=0;v<o.length;v++){var S=o[v];f(S.value,{componentStack:S.stack})}}finally{U.T=a,Q.p=d}}(Vn&3)!==0&&tl(),wn(n),d=n.pendingLanes,(s&261930)!==0&&(d&42)!==0?n===cd?ds++:(ds=0,cd=n):ds=0,hs(0)}}function Ng(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Fr(a)))}function tl(){return Rg(),Cg(),jg(),Lg()}function Lg(){if(rt!==5)return!1;var n=wa,a=od;od=0;var s=Rc(Vn),o=U.T,d=Q.p;try{Q.p=32>s?32:s,U.T=null,s=ld,ld=null;var f=wa,v=Vn;if(rt=0,Zi=wa=null,Vn=0,(Ne&6)!==0)throw Error(r(331));var S=Ne;if(Ne|=4,pg(f.current),dg(f,f.current,v,s),Ne=S,hs(0,!1),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(Cr,f)}catch{}return!0}finally{Q.p=d,U.T=o,Ng(n,a)}}function Dg(n,a,s){a=Yt(s,a),a=Bu(n.stateNode,a,2),n=fa(n,a,2),n!==null&&(Nr(n,2),wn(n))}function De(n,a,s){if(n.tag===3)Dg(n,n,s);else for(;a!==null;){if(a.tag===3){Dg(a,n,s);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ba===null||!ba.has(o))){n=Yt(s,n),s=Mm(2),o=fa(a,s,2),o!==null&&(zm(s,o,a,n),Nr(o,2),wn(o));break}}a=a.return}}function hd(n,a,s){var o=n.pingCache;if(o===null){o=n.pingCache=new l_;var d=new Set;o.set(a,d)}else d=o.get(a),d===void 0&&(d=new Set,o.set(a,d));d.has(s)||(id=!0,d.add(s),n=f_.bind(null,n,a,s),a.then(n,n))}function f_(n,a,s){var o=n.pingCache;o!==null&&o.delete(a),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,Pe===n&&(Ee&s)===s&&(Qe===4||Qe===3&&(Ee&62914560)===Ee&&300>Lt()-Qo?(Ne&2)===0&&er(n,0):rd|=s,Wi===Ee&&(Wi=0)),wn(n)}function Mg(n,a){a===0&&(a=Rf()),n=Wa(n,a),n!==null&&(Nr(n,a),wn(n))}function p_(n){var a=n.memoizedState,s=0;a!==null&&(s=a.retryLane),Mg(n,s)}function m_(n,a){var s=0;switch(n.tag){case 31:case 13:var o=n.stateNode,d=n.memoizedState;d!==null&&(s=d.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(a),Mg(n,s)}function g_(n,a){return Oc(n,a)}var nl=null,nr=null,fd=!1,al=!1,pd=!1,_a=0;function wn(n){n!==nr&&n.next===null&&(nr===null?nl=nr=n:nr=nr.next=n),al=!0,fd||(fd=!0,v_())}function hs(n,a){if(!pd&&al){pd=!0;do for(var s=!1,o=nl;o!==null;){if(n!==0){var d=o.pendingLanes;if(d===0)var f=0;else{var v=o.suspendedLanes,S=o.pingedLanes;f=(1<<31-Mt(42|n)+1)-1,f&=d&~(v&~S),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(s=!0,Pg(o,f))}else f=Ee,f=so(o,o===Pe?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||jr(o,f)||(s=!0,Pg(o,f));o=o.next}while(s);pd=!1}}function y_(){zg()}function zg(){al=fd=!1;var n=0;_a!==0&&x_()&&(n=_a);for(var a=Lt(),s=null,o=nl;o!==null;){var d=o.next,f=Ug(o,a);f===0?(o.next=null,s===null?nl=d:s.next=d,d===null&&(nr=s)):(s=o,(n!==0||(f&3)!==0)&&(al=!0)),o=d}rt!==0&&rt!==5||hs(n),_a!==0&&(_a=0)}function Ug(n,a){for(var s=n.suspendedLanes,o=n.pingedLanes,d=n.expirationTimes,f=n.pendingLanes&-62914561;0<f;){var v=31-Mt(f),S=1<<v,O=d[v];O===-1?((S&s)===0||(S&o)!==0)&&(d[v]=Gw(S,a)):O<=a&&(n.expiredLanes|=S),f&=~S}if(a=Pe,s=Ee,s=so(n,n===a?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o=n.callbackNode,s===0||n===a&&(Le===2||Le===9)||n.cancelPendingCommit!==null)return o!==null&&o!==null&&Ac(o),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||jr(n,s)){if(a=s&-s,a===n.callbackPriority)return a;switch(o!==null&&Ac(o),Rc(s)){case 2:case 8:s=kf;break;case 32:s=no;break;case 268435456:s=xf;break;default:s=no}return o=Ig.bind(null,n),s=Oc(s,o),n.callbackPriority=a,n.callbackNode=s,a}return o!==null&&o!==null&&Ac(o),n.callbackPriority=2,n.callbackNode=null,2}function Ig(n,a){if(rt!==0&&rt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(tl()&&n.callbackNode!==s)return null;var o=Ee;return o=so(n,n===Pe?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o===0?null:(bg(n,o,a),Ug(n,Lt()),n.callbackNode!=null&&n.callbackNode===s?Ig.bind(null,n):null)}function Pg(n,a){if(tl())return null;bg(n,a,!0)}function v_(){C_(function(){(Ne&6)!==0?Oc(Af,y_):zg()})}function md(){if(_a===0){var n=Bi;n===0&&(n=ao,ao<<=1,(ao&261888)===0&&(ao=256)),_a=n}return _a}function qg(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:uo(""+n)}function Bg(n,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,n.id&&s.setAttribute("form",n.id),a.parentNode.insertBefore(s,a),n=new FormData(n),s.parentNode.removeChild(s),n}function b_(n,a,s,o,d){if(a==="submit"&&s&&s.stateNode===d){var f=qg((d[Ot]||null).action),v=o.submitter;v&&(a=(a=v[Ot]||null)?qg(a.formAction):v.getAttribute("formAction"),a!==null&&(f=a,v=null));var S=new mo("action","action",null,o,d);n.push({event:S,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(_a!==0){var O=v?Bg(d,v):new FormData(d);Mu(s,{pending:!0,data:O,method:d.method,action:f},null,O)}}else typeof f=="function"&&(S.preventDefault(),O=v?Bg(d,v):new FormData(d),Mu(s,{pending:!0,data:O,method:d.method,action:f},f,O))},currentTarget:d}]})}}for(var gd=0;gd<Wc.length;gd++){var yd=Wc[gd],w_=yd.toLowerCase(),S_=yd[0].toUpperCase()+yd.slice(1);an(w_,"on"+S_)}an(vp,"onAnimationEnd"),an(bp,"onAnimationIteration"),an(wp,"onAnimationStart"),an("dblclick","onDoubleClick"),an("focusin","onFocus"),an("focusout","onBlur"),an(US,"onTransitionRun"),an(IS,"onTransitionStart"),an(PS,"onTransitionCancel"),an(Sp,"onTransitionEnd"),ki("onMouseEnter",["mouseout","mouseover"]),ki("onMouseLeave",["mouseout","mouseover"]),ki("onPointerEnter",["pointerout","pointerover"]),ki("onPointerLeave",["pointerout","pointerover"]),Ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ka("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),Ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fs="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(" "),__=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fs));function $g(n,a){a=(a&4)!==0;for(var s=0;s<n.length;s++){var o=n[s],d=o.event;o=o.listeners;e:{var f=void 0;if(a)for(var v=o.length-1;0<=v;v--){var S=o[v],O=S.instance,M=S.currentTarget;if(S=S.listener,O!==f&&d.isPropagationStopped())break e;f=S,d.currentTarget=M;try{f(d)}catch(q){vo(q)}d.currentTarget=null,f=O}else for(v=0;v<o.length;v++){if(S=o[v],O=S.instance,M=S.currentTarget,S=S.listener,O!==f&&d.isPropagationStopped())break e;f=S,d.currentTarget=M;try{f(d)}catch(q){vo(q)}d.currentTarget=null,f=O}}}}function Se(n,a){var s=a[Cc];s===void 0&&(s=a[Cc]=new Set);var o=n+"__bubble";s.has(o)||(Hg(a,n,2,!1),s.add(o))}function vd(n,a,s){var o=0;a&&(o|=4),Hg(s,n,o,a)}var il="_reactListening"+Math.random().toString(36).slice(2);function bd(n){if(!n[il]){n[il]=!0,zf.forEach(function(s){s!=="selectionchange"&&(__.has(s)||vd(s,!1,n),vd(s,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[il]||(a[il]=!0,vd("selectionchange",!1,a))}}function Hg(n,a,s,o){switch(vy(a)){case 2:var d=J_;break;case 8:d=X_;break;default:d=Dd}s=d.bind(null,a,s,n),d=void 0,!Pc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(d=!0),o?d!==void 0?n.addEventListener(a,s,{capture:!0,passive:d}):n.addEventListener(a,s,!0):d!==void 0?n.addEventListener(a,s,{passive:d}):n.addEventListener(a,s,!1)}function wd(n,a,s,o,d){var f=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var v=o.tag;if(v===3||v===4){var S=o.stateNode.containerInfo;if(S===d)break;if(v===4)for(v=o.return;v!==null;){var O=v.tag;if((O===3||O===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;S!==null;){if(v=Ti(S),v===null)return;if(O=v.tag,O===5||O===6||O===26||O===27){o=f=v;continue e}S=S.parentNode}}o=o.return}Kf(function(){var M=f,q=Uc(s),G=[];e:{var z=_p.get(n);if(z!==void 0){var I=mo,te=n;switch(n){case"keypress":if(fo(s)===0)break e;case"keydown":case"keyup":I=mS;break;case"focusin":te="focus",I=Hc;break;case"focusout":te="blur",I=Hc;break;case"beforeblur":case"afterblur":I=Hc;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=Xf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=aS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=vS;break;case vp:case bp:case wp:I=sS;break;case Sp:I=wS;break;case"scroll":case"scrollend":I=tS;break;case"wheel":I=_S;break;case"copy":case"cut":case"paste":I=lS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=Zf;break;case"toggle":case"beforetoggle":I=TS}var ue=(a&4)!==0,Ue=!ue&&(n==="scroll"||n==="scrollend"),N=ue?z!==null?z+"Capture":null:z;ue=[];for(var x=M,D;x!==null;){var $=x;if(D=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||D===null||N===null||($=Mr(x,N),$!=null&&ue.push(ps(x,$,D))),Ue)break;x=x.return}0<ue.length&&(z=new I(z,te,null,s,q),G.push({event:z,listeners:ue}))}}if((a&7)===0){e:{if(z=n==="mouseover"||n==="pointerover",I=n==="mouseout"||n==="pointerout",z&&s!==zc&&(te=s.relatedTarget||s.fromElement)&&(Ti(te)||te[Ei]))break e;if((I||z)&&(z=q.window===q?q:(z=q.ownerDocument)?z.defaultView||z.parentWindow:window,I?(te=s.relatedTarget||s.toElement,I=M,te=te?Ti(te):null,te!==null&&(Ue=c(te),ue=te.tag,te!==Ue||ue!==5&&ue!==27&&ue!==6)&&(te=null)):(I=null,te=M),I!==te)){if(ue=Xf,$="onMouseLeave",N="onMouseEnter",x="mouse",(n==="pointerout"||n==="pointerover")&&(ue=Zf,$="onPointerLeave",N="onPointerEnter",x="pointer"),Ue=I==null?z:Dr(I),D=te==null?z:Dr(te),z=new ue($,x+"leave",I,s,q),z.target=Ue,z.relatedTarget=D,$=null,Ti(q)===M&&(ue=new ue(N,x+"enter",te,s,q),ue.target=D,ue.relatedTarget=Ue,$=ue),Ue=$,I&&te)t:{for(ue=E_,N=I,x=te,D=0,$=N;$;$=ue($))D++;$=0;for(var oe=x;oe;oe=ue(oe))$++;for(;0<D-$;)N=ue(N),D--;for(;0<$-D;)x=ue(x),$--;for(;D--;){if(N===x||x!==null&&N===x.alternate){ue=N;break t}N=ue(N),x=ue(x)}ue=null}else ue=null;I!==null&&Gg(G,z,I,ue,!1),te!==null&&Ue!==null&&Gg(G,Ue,te,ue,!0)}}
vendor: 5,189 bytes, lines 9-10
9e:{if(z=M?Dr(M):window,I=z.nodeName&&z.nodeName.toLowerCase(),I==="select"||I==="input"&&z.type==="file")var xe=op;else if(rp(z))if(lp)xe=DS;else{xe=NS;var ie=jS}else I=z.nodeName,!I||I.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?M&&Mc(M.elementType)&&(xe=op):xe=LS;if(xe&&(xe=xe(n,M))){sp(G,xe,s,q);break e}ie&&ie(n,z,M),n==="focusout"&&M&&z.type==="number"&&M.memoizedProps.value!=null&&Dc(z,"number",z.value)}switch(ie=M?Dr(M):window,n){case"focusin":(rp(ie)||ie.contentEditable==="true")&&(Li=ie,Qc=M,Hr=null);break;case"focusout":Hr=Qc=Li=null;break;case"mousedown":Jc=!0;break;case"contextmenu":case"mouseup":case"dragend":Jc=!1,gp(G,s,q);break;case"selectionchange":if(zS)break;case"keydown":case"keyup":gp(G,s,q)}var ge;if(Vc)e:{switch(n){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Ni?ap(n,s)&&(Te="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Te="onCompositionStart");Te&&(ep&&s.locale!=="ko"&&(Ni||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Ni&&(ge=Qf()):(sa=q,qc="value"in sa?sa.value:sa.textContent,Ni=!0)),ie=rl(M,Te),0<ie.length&&(Te=new Wf(Te,n,null,s,q),G.push({event:Te,listeners:ie}),ge?Te.data=ge:(ge=ip(s),ge!==null&&(Te.data=ge)))),(ge=AS?kS(n,s):xS(n,s))&&(Te=rl(M,"onBeforeInput"),0<Te.length&&(ie=new Wf("onBeforeInput","beforeinput",null,s,q),G.push({event:ie,listeners:Te}),ie.data=ge)),b_(G,n,M,s,q)}$g(G,a)})}function ps(n,a,s){return{instance:n,listener:a,currentTarget:s}}function rl(n,a){for(var s=a+"Capture",o=[];n!==null;){var d=n,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=Mr(n,s),d!=null&&o.unshift(ps(n,d,f)),d=Mr(n,a),d!=null&&o.push(ps(n,d,f))),n.tag===3)return o;n=n.return}return[]}function E_(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Gg(n,a,s,o,d){for(var f=a._reactName,v=[];s!==null&&s!==o;){var S=s,O=S.alternate,M=S.stateNode;if(S=S.tag,O!==null&&O===o)break;S!==5&&S!==26&&S!==27||M===null||(O=M,d?(M=Mr(s,f),M!=null&&v.unshift(ps(s,M,O))):d||(M=Mr(s,f),M!=null&&v.push(ps(s,M,O)))),s=s.return}v.length!==0&&n.push({event:a,listeners:v})}var T_=/\r\n?/g,O_=/\u0000|\uFFFD/g;function Vg(n){return(typeof n=="string"?n:""+n).replace(T_,` 10`).replace(O_,"")}function Fg(n,a){return a=Vg(a),Vg(n)===a}function ze(n,a,s,o,d,f){switch(s){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Ri(n,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Ri(n,""+o);break;case"className":lo(n,"class",o);break;case"tabIndex":lo(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":lo(n,s,o);break;case"style":Ff(n,o,f);break;case"data":if(a!=="object"){lo(n,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||s!=="href")){n.removeAttribute(s);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(s);break}o=uo(""+o),n.setAttribute(s,o);break;case"action":case"formAction":if(typeof o=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(s==="formAction"?(a!=="input"&&ze(n,a,"name",d.name,d,null),ze(n,a,"formEncType",d.formEncType,d,null),ze(n,a,"formMethod",d.formMethod,d,null),ze(n,a,"formTarget",d.formTarget,d,null)):(ze(n,a,"encType",d.encType,d,null),ze(n,a,"method",d.method,d,null),ze(n,a,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(s);break}o=uo(""+o),n.setAttribute(s,o);break;case"onClick":o!=null&&(n.onclick=Cn);break;case"onScroll":o!=null&&Se("scroll",n);break;case"onScrollEnd":o!=null&&Se("scrollend",n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(s=o.__html,s!=null){if(d.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"multiple":n.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":n.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){n.removeAttribute("xlink:href");break}s=uo(""+o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(s,""+o):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":o===!0?n.setAttribute(s,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(s,o):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?n.setAttribute(s,o):n.removeAttribute(s);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?n.removeAttribute(s):n.setAttribute(s,o);break;case"popover":Se("beforetoggle",n),Se("toggle",n),oo(n,"popover",o);break;case"xlinkActuate":Rn(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Rn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Rn(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Rn(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Rn(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Rn(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Rn(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Rn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Rn(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":oo(n,"is",o);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=Zw.get(s)||s,oo(n,s,o))}}function Sd(n,a,s,o,d,f){switch(s){case"style":Ff(n,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(s=o.__html,s!=null){if(d.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"children":typeof o=="string"?Ri(n,o):(typeof o=="number"||typeof o=="bigint")&&Ri(n,""+o);break;case"onScroll":o!=null&&Se("scroll",n);break;case"onScrollEnd":o!=null&&Se("scrollend",n);break;case"onClick":o!=null&&(n.onclick=Cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Uf.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(d=s.endsWith("Capture"),a=s.slice(2,d?s.length-7:void 0),f=n[Ot]||null,f=f!=null?f[s]:null,typeof f=="function"&&n.removeEventListener(a,f,d),typeof o=="function")){typeof f!="function"&&f!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(a,o,d);break e}s in n?n[s]=o:o===!0?n.setAttribute(s,""):oo(n,s,o)}}}function mt(n,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",n),Se("load",n);var o=!1,d=!1,f;for(f in s)if(s.hasOwnProperty(f)){var v=s[f];if(v!=null)switch(f){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:ze(n,a,f,v,s,null)}}d&&ze(n,a,"srcSet",s.srcSet,s,null),o&&ze(n,a,"src",s.src,s,null);return;case"input":Se("invalid",n);var S=f=v=d=null,O=null,M=null;for(o in s)if(s.hasOwnProperty(o)){var q=s[o];if(q!=null)switch(o){case"name":d=q;break;case"type":v=q;break;case"checked":O=q;break;case"defaultChecked":M=q;break;case"value":f=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,a));break;default:ze(n,a,o,q,s,null)}}$f(n,f,S,O,M,v,d,!1);return;case"select":Se("invalid",n),o=v=f=null;for(d in s)if(s.hasOwnProperty(d)&&(S=s[d],S!=null))switch(d){case"value":f=S;break;case"defaultValue":v=S;break;case"multiple":o=S;default:ze(n,a,d,S,s,null)}a=f,s=v,n.multiple=!!o,a!=null?xi(n,!!o,a,!1):s!=null&&xi(n,!!o,s,!0);return;case"textarea":Se("invalid",n),f=d=o=null;for(v in s)if(s.hasOwnProperty(v)&&(S=s[v],S!=null))switch(v){case"value":o=S;break;case"defaultValue":d=S;break;case"children":f=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:ze(n,a,v,S,s,null)}Gf(n,o,d,f);return;case"option":for(O in s)s.hasOwnProperty(O)&&(o=s[O],o!=null)&&(O==="selected"?n.selected=o&&typeof o!="function"&&typeof o!="symbol":ze(n,a,O,o,s,null));return;
vendor: 4,270 bytes, line 10
10case"dialog":Se("beforetoggle",n),Se("toggle",n),Se("cancel",n),Se("close",n);break;case"iframe":case"object":Se("load",n);break;case"video":case"audio":for(o=0;o<fs.length;o++)Se(fs[o],n);break;case"image":Se("error",n),Se("load",n);break;case"details":Se("toggle",n);break;case"embed":case"source":case"link":Se("error",n),Se("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in s)if(s.hasOwnProperty(M)&&(o=s[M],o!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:ze(n,a,M,o,s,null)}return;default:if(Mc(a)){for(q in s)s.hasOwnProperty(q)&&(o=s[q],o!==void 0&&Sd(n,a,q,o,s,void 0));return}}for(S in s)s.hasOwnProperty(S)&&(o=s[S],o!=null&&ze(n,a,S,o,s,null))}function A_(n,a,s,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,f=null,v=null,S=null,O=null,M=null,q=null;for(I in s){var G=s[I];if(s.hasOwnProperty(I)&&G!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":O=G;default:o.hasOwnProperty(I)||ze(n,a,I,null,o,G)}}for(var z in o){var I=o[z];if(G=s[z],o.hasOwnProperty(z)&&(I!=null||G!=null))switch(z){case"type":f=I;break;case"name":d=I;break;case"checked":M=I;break;case"defaultChecked":q=I;break;case"value":v=I;break;case"defaultValue":S=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(r(137,a));break;default:I!==G&&ze(n,a,z,I,o,G)}}Lc(n,v,S,O,M,q,f,d);return;case"select":I=v=S=z=null;for(f in s)if(O=s[f],s.hasOwnProperty(f)&&O!=null)switch(f){case"value":break;case"multiple":I=O;default:o.hasOwnProperty(f)||ze(n,a,f,null,o,O)}for(d in o)if(f=o[d],O=s[d],o.hasOwnProperty(d)&&(f!=null||O!=null))switch(d){case"value":z=f;break;case"defaultValue":S=f;break;case"multiple":v=f;default:f!==O&&ze(n,a,d,f,o,O)}a=S,s=v,o=I,z!=null?xi(n,!!s,z,!1):!!o!=!!s&&(a!=null?xi(n,!!s,a,!0):xi(n,!!s,s?[]:"",!1));return;case"textarea":I=z=null;for(S in s)if(d=s[S],s.hasOwnProperty(S)&&d!=null&&!o.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:ze(n,a,S,null,o,d)}for(v in o)if(d=o[v],f=s[v],o.hasOwnProperty(v)&&(d!=null||f!=null))switch(v){case"value":z=d;break;case"defaultValue":I=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==f&&ze(n,a,v,d,o,f)}Hf(n,z,I);return;case"option":for(var te in s)z=s[te],s.hasOwnProperty(te)&&z!=null&&!o.hasOwnProperty(te)&&(te==="selected"?n.selected=!1:ze(n,a,te,null,o,z));for(O in o)z=o[O],I=s[O],o.hasOwnProperty(O)&&z!==I&&(z!=null||I!=null)&&(O==="selected"?n.selected=z&&typeof z!="function"&&typeof z!="symbol":ze(n,a,O,z,o,I));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ue in s)z=s[ue],s.hasOwnProperty(ue)&&z!=null&&!o.hasOwnProperty(ue)&&ze(n,a,ue,null,o,z);for(M in o)if(z=o[M],I=s[M],o.hasOwnProperty(M)&&z!==I&&(z!=null||I!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,a));break;default:ze(n,a,M,z,o,I)}return;default:if(Mc(a)){for(var Ue in s)z=s[Ue],s.hasOwnProperty(Ue)&&z!==void 0&&!o.hasOwnProperty(Ue)&&Sd(n,a,Ue,void 0,o,z);for(q in o)z=o[q],I=s[q],!o.hasOwnProperty(q)||z===I||z===void 0&&I===void 0||Sd(n,a,q,z,o,I);return}}for(var N in s)z=s[N],s.hasOwnProperty(N)&&z!=null&&!o.hasOwnProperty(N)&&ze(n,a,N,null,o,z);for(G in o)z=o[G],I=s[G],!o.hasOwnProperty(G)||z===I||z==null&&I==null||ze(n,a,G,z,o,I)}function Yg(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function k_(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,s=performance.getEntriesByType("resource"),o=0;o<s.length;o++){var d=s[o],f=d.transferSize,v=d.initiatorType,S=d.duration;if(f&&S&&Yg(v)){for(v=0,S=d.responseEnd,o+=1;o<s.length;o++){var O=s[o],M=O.startTime;if(M>S)break;var q=O.transferSize,G=O.initiatorType;q&&Yg(G)&&(O=O.responseEnd,v+=q*(O<S?1:(S-M)/(O-M)))}if(--o,a+=8*(f+v)/(d.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?
vendor: 9,435 bytes, line 10
10n:5}var _d=null,Ed=null;function sl(n){return n.nodeType===9?n:n.ownerDocument}function Kg(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qg(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Td(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Od=null;function x_(){var n=window.event;return n&&n.type==="popstate"?n===Od?!1:(Od=n,!0):(Od=null,!1)}var Jg=typeof setTimeout=="function"?setTimeout:void 0,R_=typeof clearTimeout=="function"?clearTimeout:void 0,Xg=typeof Promise=="function"?Promise:void 0,C_=typeof queueMicrotask=="function"?queueMicrotask:typeof Xg<"u"?function(n){return Xg.resolve(null).then(n).catch(j_)}:Jg;function j_(n){setTimeout(function(){throw n})}function Ea(n){return n==="head"}function Wg(n,a){var s=a,o=0;do{var d=s.nextSibling;if(n.removeChild(s),d&&d.nodeType===8)if(s=d.data,s==="/$"||s==="/&"){if(o===0){n.removeChild(d),sr(a);return}o--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")o++;else if(s==="html")ms(n.ownerDocument.documentElement);else if(s==="head"){s=n.ownerDocument.head,ms(s);for(var f=s.firstChild;f;){var v=f.nextSibling,S=f.nodeName;f[Lr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&f.rel.toLowerCase()==="stylesheet"||s.removeChild(f),f=v}}else s==="body"&&ms(n.ownerDocument.body);s=d}while(s);sr(a)}function Zg(n,a){var s=n;n=0;do{var o=s.nextSibling;if(s.nodeType===1?a?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(a?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),o&&o.nodeType===8)if(s=o.data,s==="/$"){if(n===0)break;n--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||n++;s=o}while(s)}function Ad(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Ad(s),jc(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function N_(n,a,s,o){for(;n.nodeType===1;){var d=s;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[Lr])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(f=n.getAttribute("rel"),f==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(f!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(f=n.getAttribute("src"),(f!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===f)return n}else return n;if(n=Wt(n.nextSibling),n===null)break}return null}function L_(n,a,s){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Wt(n.nextSibling),n===null))return null;return n}function ey(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Wt(n.nextSibling),n===null))return null;return n}function kd(n){return n.data==="$?"||n.data==="$~"}function xd(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function D_(n,a){var s=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||s.readyState!=="loading")a();else{var o=function(){a(),s.removeEventListener("DOMContentLoaded",o)};s.addEventListener("DOMContentLoaded",o),n._reactRetry=o}}function Wt(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var Rd=null;function ty(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"||s==="/&"){if(a===0)return Wt(n.nextSibling);a--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||a++}n=n.nextSibling}return null}function ny(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(a===0)return n;a--}else s!=="/$"&&s!=="/&"||a++}n=n.previousSibling}return null}function ay(n,a,s){switch(a=sl(s),n){case"html":if(n=a.documentElement,!n)throw Error(r(452));return n;case"head":if(n=a.head,!n)throw Error(r(453));return n;case"body":if(n=a.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function ms(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);jc(n)}var Zt=new Map,iy=new Set;function ol(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Fn=Q.d;Q.d={f:M_,r:z_,D:U_,C:I_,L:P_,m:q_,X:$_,S:B_,M:H_};function M_(){var n=Fn.f(),a=Wo();return n||a}function z_(n){var a=Oi(n);a!==null&&a.tag===5&&a.type==="form"?Sm(a):Fn.r(n)}var ar=typeof document>"u"?null:document;function ry(n,a,s){var o=ar;if(o&&typeof a=="string"&&a){var d=Vt(a);d='link[rel="'+n+'"][href="'+d+'"]',typeof s=="string"&&(d+='[crossorigin="'+s+'"]'),iy.has(d)||(iy.add(d),n={rel:n,crossOrigin:s,href:a},o.querySelector(d)===null&&(a=o.createElement("link"),mt(a,"link",n),ot(a),o.head.appendChild(a)))}}function U_(n){Fn.D(n),ry("dns-prefetch",n,null)}function I_(n,a){Fn.C(n,a),ry("preconnect",n,a)}function P_(n,a,s){Fn.L(n,a,s);var o=ar;if(o&&n&&a){var d='link[rel="preload"][as="'+Vt(a)+'"]';a==="image"&&s&&s.imageSrcSet?(d+='[imagesrcset="'+Vt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(d+='[imagesizes="'+Vt(s.imageSizes)+'"]')):d+='[href="'+Vt(n)+'"]';var f=d;switch(a){case"style":f=ir(n);break;case"script":f=rr(n)}Zt.has(f)||(n=g({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:n,as:a},s),Zt.set(f,n),o.querySelector(d)!==null||a==="style"&&o.querySelector(gs(f))||a==="script"&&o.querySelector(ys(f))||(a=o.createElement("link"),mt(a,"link",n),ot(a),o.head.appendChild(a)))}}function q_(n,a){Fn.m(n,a);var s=ar;if(s&&n){var o=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+Vt(o)+'"][href="'+Vt(n)+'"]',f=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=rr(n)}if(!Zt.has(f)&&(n=g({rel:"modulepreload",href:n},a),Zt.set(f,n),s.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(ys(f)))return}o=s.createElement("link"),mt(o,"link",n),ot(o),s.head.appendChild(o)}}}function B_(n,a,s){Fn.S(n,a,s);var o=ar;if(o&&n){var d=Ai(o).hoistableStyles,f=ir(n);a=a||"default";var v=d.get(f);if(!v){var S={loading:0,preload:null};if(v=o.querySelector(gs(f)))S.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":a},s),(s=Zt.get(f))&&Cd(n,s);var O=v=o.createElement("link");ot(O),mt(O,"link",n),O._p=new Promise(function(M,q){O.onload=M,O.onerror=q}),O.addEventListener("load",function(){S.loading|=1}),O.addEventListener("error",function(){S.loading|=2}),S.loading|=4,ll(v,a,o)}v={type:"stylesheet",instance:v,count:1,state:S},d.set(f,v)}}}function $_(n,a){Fn.X(n,a);var s=ar;if(s&&n){var o=Ai(s).hoistableScripts,d=rr(n),f=o.get(d);f||(f=s.querySelector(ys(d)),f||(n=g({src:n,async:!0},a),(a=Zt.get(d))&&jd(n,a),f=s.createElement("script"),ot(f),mt(f,"link",n),s.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function H_(n,a){Fn.M(n,a);var s=ar;if(s&&n){var o=Ai(s).hoistableScripts,d=rr(n),f=o.get(d);f||(f=s.querySelector(ys(d)),f||(n=g({src:n,async:!0,type:"module"},a),(a=Zt.get(d))&&jd(n,a),f=s.createElement("script"),ot(f),mt(f,"link",n),s.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function sy(n,a,s,o){var d=(d=ye.current)?ol(d):null;if(!d)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=ir(s.href),s=Ai(d).hoistableStyles,o=s.get(a),o||(o={type:"style",instance:null,count:0,state:null},s.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=ir(s.href);var f=Ai(d).hoistableStyles,v=f.get(n);if(v||(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(n,v),(f=d.querySelector(gs(n)))&&!f._p&&(v.instance=f,v.state.loading=5),Zt.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Zt.set(n,s),f||G_(d,n,s,v.state))),a&&o===null)throw Error(r(528,""));return v}if(a&&o!==null)throw Error(r(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?
vendor: 8,851 bytes, line 10
10(a=rr(s),s=Ai(d).hoistableScripts,o=s.get(a),o||(o={type:"script",instance:null,count:0,state:null},s.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function ir(n){return'href="'+Vt(n)+'"'}function gs(n){return'link[rel="stylesheet"]['+n+"]"}function oy(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function G_(n,a,s,o){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=n.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),mt(a,"link",s),ot(a),n.head.appendChild(a))}function rr(n){return'[src="'+Vt(n)+'"]'}function ys(n){return"script[async]"+n}function ly(n,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var o=n.querySelector('style[data-href~="'+Vt(s.href)+'"]');if(o)return a.instance=o,ot(o),o;var d=g({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),ot(o),mt(o,"style",d),ll(o,s.precedence,n),a.instance=o;case"stylesheet":d=ir(s.href);var f=n.querySelector(gs(d));if(f)return a.state.loading|=4,a.instance=f,ot(f),f;o=oy(s),(d=Zt.get(d))&&Cd(o,d),f=(n.ownerDocument||n).createElement("link"),ot(f);var v=f;return v._p=new Promise(function(S,O){v.onload=S,v.onerror=O}),mt(f,"link",o),a.state.loading|=4,ll(f,s.precedence,n),a.instance=f;case"script":return f=rr(s.src),(d=n.querySelector(ys(f)))?(a.instance=d,ot(d),d):(o=s,(d=Zt.get(f))&&(o=g({},s),jd(o,d)),n=n.ownerDocument||n,d=n.createElement("script"),ot(d),mt(d,"link",o),n.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,ll(o,s.precedence,n));return a.instance}function ll(n,a,s){for(var o=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,f=d,v=0;v<o.length;v++){var S=o[v];if(S.dataset.precedence===a)f=S;else if(f!==d)break}f?f.parentNode.insertBefore(n,f.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(n,a.firstChild))}function Cd(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function jd(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var cl=null;function cy(n,a,s){if(cl===null){var o=new Map,d=cl=new Map;d.set(s,o)}else d=cl,o=d.get(s),o||(o=new Map,d.set(s,o));if(o.has(n))return o;for(o.set(n,null),s=s.getElementsByTagName(n),d=0;d<s.length;d++){var f=s[d];if(!(f[Lr]||f[dt]||n==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var v=f.getAttribute(a)||"";v=n+v;var S=o.get(v);S?S.push(f):o.set(v,[f])}}return o}function uy(n,a,s){n=n.ownerDocument||n,n.head.insertBefore(s,a==="title"?n.querySelector("head > title"):null)}function V_(n,a,s){if(s===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(n=a.disabled,typeof a.precedence=="string"&&n==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function dy(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function F_(n,a,s,o){if(s.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var d=ir(o.href),f=a.querySelector(gs(d));if(f){a=f._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=ul.bind(n),a.then(n,n)),s.state.loading|=4,s.instance=f,ot(f);return}f=a.ownerDocument||a,o=oy(o),(d=Zt.get(d))&&Cd(o,d),f=f.createElement("link"),ot(f);var v=f;v._p=new Promise(function(S,O){v.onload=S,v.onerror=O}),mt(f,"link",o),s.instance=f}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(n.count++,s=ul.bind(n),a.addEventListener("load",s),a.addEventListener("error",s))}}var Nd=0;function Y_(n,a){return n.stylesheets&&n.count===0&&hl(n,n.stylesheets),0<n.count||0<n.imgCount?function(s){var o=setTimeout(function(){if(n.stylesheets&&hl(n,n.stylesheets),n.unsuspend){var f=n.unsuspend;n.unsuspend=null,f()}},6e4+a);0<n.imgBytes&&Nd===0&&(Nd=62500*k_());var d=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&hl(n,n.stylesheets),n.unsuspend)){var f=n.unsuspend;n.unsuspend=null,f()}},(n.imgBytes>Nd?50:800)+a);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function ul(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hl(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var dl=null;function hl(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,dl=new Map,a.forEach(K_,n),dl=null,ul.call(n))}function K_(n,a){if(!(a.state.loading&4)){var s=dl.get(n);if(s)var o=s.get(null);else{s=new Map,dl.set(n,s);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var v=d[f];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(s.set(v.dataset.precedence,v),o=v)}o&&s.set(null,o)}d=a.instance,v=d.getAttribute("data-precedence"),f=s.get(v)||o,f===o&&s.set(null,d),s.set(v,d),this.count++,o=ul.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),f?f.parentNode.insertBefore(d,f.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),a.state.loading|=4}}var vs={$$typeof:C,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function Q_(n,a,s,o,d,f,v,S,O){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=kc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kc(0),this.hiddenUpdates=kc(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function hy(n,a,s,o,d,f,v,S,O,M,q,G){return n=new Q_(n,a,s,v,O,M,q,G,S),a=1,f===!0&&(a|=24),f=Ut(3,null,null,a),n.current=f,f.stateNode=n,a=du(),a.refCount++,n.pooledCache=a,a.refCount++,f.memoizedState={element:o,isDehydrated:s,cache:a},mu(f),n}function fy(n){return n?(n=zi,n):zi}function py(n,a,s,o,d,f){d=fy(d),o.context===null?o.context=d:o.pendingContext=d,o=ha(a),o.payload={element:s},f=f===void 0?null:f,f!==null&&(o.callback=f),s=fa(n,o,a),s!==null&&(jt(s,n,a),Jr(s,n,a))}function my(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<a?s:a}}function Ld(n,a){my(n,a),(n=n.alternate)&&my(n,a)}function gy(n){if(n.tag===13||n.tag===31){var a=Wa(n,67108864);a!==null&&jt(a,n,67108864),Ld(n,67108864)}}function yy(n){if(n.tag===13||n.tag===31){var a=$t();a=xc(a);var s=Wa(n,a);s!==null&&jt(s,n,a),Ld(n,a)}}var fl=!0;function J_(n,a,s,o){var d=U.T;U.T=null;var f=Q.p;try{Q.p=2,Dd(n,a,s,o)}finally{Q.p=f,U.T=d}}function X_(n,a,s,o){var d=U.T;U.T=null;var f=Q.p;try{Q.p=8,Dd(n,a,s,o)}finally{Q.p=f,U.T=d}}function Dd(n,a,s,o){if(fl){var d=Md(o);if(d===null)wd(n,a,o,pl,s),by(n,o);else if(Z_(d,n,a,s,o))o.stopPropagation();else if(by(n,o),a&4&&-1<W_.indexOf(n)){for(;d!==null;){var f=Oi(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var v=Ya(f.pendingLanes);if(v!==0){var S=f;for(S.pendingLanes|=2,S.entangledLanes|=2;v;){var O=1<<31-Mt(v);S.entanglements[1]|=O,v&=~O}wn(f),(Ne&6)===0&&(Jo=Lt()+500,hs(0))}}break;case 31:case 13:S=Wa(f,2),S!==null&&jt(S,f,2),Wo(),Ld(f,2)}if(f=Md(o),f===null&&wd(n,a,o,pl,s),f===d)break;d=f}d!==null&&o.stopPropagation()}else wd(n,a,o,null,s)}}function Md(n){return n=Uc(n),zd(n)}var pl=null;function zd(n){if(pl=null,n=Ti(n),n!==null){var a=c(n);if(a===null)n=null;else{var s=a.tag;if(s===13){if(n=u(a),n!==null)return n;n=null}else if(s===31){if(n=h(a),n!==null)return n;n=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return pl=n,null}function vy(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 5,405 bytes, line 10
10: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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Uw()){case Af:return 2;case kf:return 8;case no:case Iw:return 32;case xf:return 268435456;default:return 32}default:return 32}}var Ud=!1,Ta=null,Oa=null,Aa=null,bs=new Map,ws=new Map,ka=[],W_="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".split(" ");function by(n,a){switch(n){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":Oa=null;break;case"mouseover":case"mouseout":Aa=null;break;case"pointerover":case"pointerout":bs.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":ws.delete(a.pointerId)}}function Ss(n,a,s,o,d,f){return n===null||n.nativeEvent!==f?(n={blockedOn:a,domEventName:s,eventSystemFlags:o,nativeEvent:f,targetContainers:[d]},a!==null&&(a=Oi(a),a!==null&&gy(a)),n):(n.eventSystemFlags|=o,a=n.targetContainers,d!==null&&a.indexOf(d)===-1&&a.push(d),n)}function Z_(n,a,s,o,d){switch(a){case"focusin":return Ta=Ss(Ta,n,a,s,o,d),!0;case"dragenter":return Oa=Ss(Oa,n,a,s,o,d),!0;case"mouseover":return Aa=Ss(Aa,n,a,s,o,d),!0;case"pointerover":var f=d.pointerId;return bs.set(f,Ss(bs.get(f)||null,n,a,s,o,d)),!0;case"gotpointercapture":return f=d.pointerId,ws.set(f,Ss(ws.get(f)||null,n,a,s,o,d)),!0}return!1}function wy(n){var a=Ti(n.target);if(a!==null){var s=c(a);if(s!==null){if(a=s.tag,a===13){if(a=u(s),a!==null){n.blockedOn=a,Df(n.priority,function(){yy(s)});return}}else if(a===31){if(a=h(s),a!==null){n.blockedOn=a,Df(n.priority,function(){yy(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ml(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var s=Md(n.nativeEvent);if(s===null){s=n.nativeEvent;var o=new s.constructor(s.type,s);zc=o,s.target.dispatchEvent(o),zc=null}else return a=Oi(s),a!==null&&gy(a),n.blockedOn=s,!1;a.shift()}return!0}function Sy(n,a,s){ml(n)&&s.delete(a)}function eE(){Ud=!1,Ta!==null&&ml(Ta)&&(Ta=null),Oa!==null&&ml(Oa)&&(Oa=null),Aa!==null&&ml(Aa)&&(Aa=null),bs.forEach(Sy),ws.forEach(Sy)}function gl(n,a){n.blockedOn===a&&(n.blockedOn=null,Ud||(Ud=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,eE)))}var yl=null;function _y(n){yl!==n&&(yl=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){yl===n&&(yl=null);for(var a=0;a<n.length;a+=3){var s=n[a],o=n[a+1],d=n[a+2];if(typeof o!="function"){if(zd(o||s)===null)continue;break}var f=Oi(s);f!==null&&(n.splice(a,3),a-=3,Mu(f,{pending:!0,data:d,method:s.method,action:o},o,d))}}))}function sr(n){function a(O){return gl(O,n)}Ta!==null&&gl(Ta,n),Oa!==null&&gl(Oa,n),Aa!==null&&gl(Aa,n),bs.forEach(a),ws.forEach(a);for(var s=0;s<ka.length;s++){var o=ka[s];o.blockedOn===n&&(o.blockedOn=null)}for(;0<ka.length&&(s=ka[0],s.blockedOn===null);)wy(s),s.blockedOn===null&&ka.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(o=0;o<s.length;o+=3){var d=s[o],f=s[o+1],v=d[Ot]||null;if(typeof f=="function")v||_y(s);else if(v){var S=null;if(f&&f.hasAttribute("formAction")){if(d=f,v=f[Ot]||null)S=v.formAction;else if(zd(d)!==null)continue}else S=v.action;typeof S=="function"?s[o+1]=S:(s.splice(o,3),o-=3),_y(s)}}}function Ey(){function n(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(v){return d=v})},focusReset:"manual",scroll:"manual"})}function a(){d!==null&&(d(),d=null),o||setTimeout(s,20)}function s(){if(!o&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(s,100),function(){o=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),d!==null&&(d(),d=null)}}}function Id(n){this._internalRoot=n}vl.prototype.render=Id.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(r(409));var s=a.current,o=$t();
10py(s,o,n,a,null,null)},vl.prototype.unmount=Id.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;py(n.current,2,null,n,null,null),Wo(),a[Ei]=null}};function vl(n){this._internalRoot=n}vl.prototype.unstable_scheduleHydration=function(n){if(n){var a=Lf();n={blockedOn:null,target:n,priority:a};for(var s=0;s<ka.length&&a!==0&&a<ka[s].priority;s++);ka.splice(s,0,n),s===0&&wy(n)}};var Ty=t.version;if(Ty!=="19.2.5")throw Error(r(527,Ty,"19.2.5"));Q.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=m(a),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var tE={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bl.isDisabled&&bl.supportsFiber)try{Cr=bl.inject(tE),Dt=bl}catch{}}return Es.createRoot=function(n,a){if(!l(n))throw Error(r(299));var s=!1,o="",d=jm,f=Nm,v=Lm;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=hy(n,1,!1,null,null,s,o,null,d,f,v,Ey),n[Ei]=a.current,bd(n),new Id(a)},Es.hydrateRoot=function(n,a,s){if(!l(n))throw Error(r(299));var o=!1,d="",f=jm,v=Nm,S=Lm,O=null;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(f=s.onUncaughtError),s.onCaughtError!==void 0&&(v=s.onCaughtError),s.onRecoverableError!==void 0&&(S=s.onRecoverableError),s.formState!==void 0&&(O=s.formState)),a=hy(n,1,!0,a,s??null,o,d,O,f,v,S,Ey),a.context=fy(null),s=a.current,o=$t(),o=xc(o),d=ha(o),d.callback=null,fa(s,d,o),s=o,a.current.lanes=s,Nr(a,s),wn(a),n[Ei]=a.current,bd(n),new vl(a)},Es.version="19.2.5",Es}var Dy;function fE(){if(Dy)return Bd.exports;Dy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Bd.exports=hE(),Bd.exports}var pE=fE(),mE="__TSS_CONTEXT",_h=Symbol.for("TSS_SERVER_FUNCTION"),My=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),gE="application/x-tss-framed",Xh=()=>window.__TSS_START_OPTIONS__;function yE(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function wi(e){return e?.isNotFound===!0}function _r(e){e.statusCode=e.statusCode||e.code||307;const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const i=new Response(null,{status:e.statusCode,headers:t});if(i.options=e,e.throw)throw i;return i}function Wh(e){return e instanceof Response&&!!e.options}function wb(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return _r(e)}function vE(e){return e.replaceAll("\0","/").replaceAll("�","/").replace(/~([~0r])/g,(t,i)=>i==="0"?"\0":i==="r"?"�":i)}const zy=!1;function Pa(e){return e[e.length-1]}function Sb(e,t){return typeof e=="function"?e(t):e}const Zh=Object.prototype.hasOwnProperty;function _b(e){for(const t in e)if(Zh.call(e,t))return!0;return!1}const Bl=()=>Object.create(null),or=(e,t)=>Ua(e,t,!0);function Ua(e,t,i,r=0){if(e===t)return e;if(r++>500)return t;const l=Array.isArray(e)&&Array.isArray(t);if(!l&&!(Kl(e)&&Kl(t)))return t;const c=Object.keys(e),u=c.length,h=Object.keys(t),p=h.length;if(l?u!==e.length||p!==t.length||u&&Pa(c)!==`${u-1}`||p&&Pa(h)!==`${p-1}`:u!==Object.getOwnPropertyNames(e).length||p!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let m=0,y,g,b;if(l){for(;m<p&&(b=m,g=e[b],y=t[b],y=g===y?g:typeof g=="object"?Ua(g,y,i,r):y,y===g);m++);if(m===p&&u===p)return e}else{let _=u===p,E=!0;for(;m<p;m++){b=h[m],g=e[b];const A=t[b];y=g===A?g:typeof g=="object"?Ua(g,A,i,r):A,_&&=y===g&&(c[m]===b||Zh.call(e,b)),E&&=Object.is(y,A),c[m]=y}if(_)return Object.getOwnPropertySymbols(e).length?t:e;if(E)return t}const w=l?h.fill(0):i?Bl():{};for(let _=0;_<p;_++)b=l?_:h[_],l?(g=e[b],_>m&&(y=t[b],y=g===y?g:typeof g=="object"?Ua(g,y,i,r):y),w[b]=_<m?g:y):w[b]=c[_];return w}function Kl(e){return!e||typeof e!="object"?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function pn(e,t,i,r){if(e===t)return!0;
10if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let l=0,c=e.length;l<c;l++){const u=e[l],h=t[l];if(u!==h&&!pn(u,h,i,r))return!1}return!0}if(Kl(e)&&Kl(t)){if(i){for(const c in t)if((r||t[c]!==void 0)&&!pn(e[c],t[c],i,r))return!1;return!0}let l=0;if(r)l=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&l++;for(const c in t)if((r||t[c]!==void 0)&&(l--===0||!pn(e[c],t[c],i,r)))return!1;return l===0}return!1}function bE(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}const wE=/[\x00-\x1f\x7f"<>`{}]/g;function SE(e){return e.replace(wE,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function Uy(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return SE(t)}const _E=["http:","https:","mailto:","tel:"];function zs(e){if(e[0]!=="/"&&e.includes(":"))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,"").toLowerCase()}const Eb=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function Tb(e,t){if(!e)return!1;if(Eb.test(e))return!0;const i=zs(e);return i?!t.has(i):!1}const EE={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},TE=/[&><\u2028\u2029]/g;function OE(e){return e.replace(TE,t=>EE[t])}function Ts(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){const i=/%25|%5C/gi;let r=0,l;for(t="";(l=i.exec(e))!==null;)t+=Uy(e.slice(r,l.index))+l[0],r=i.lastIndex;t+=Uy(r?e.slice(r):e)}return t}function AE(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function kE(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}function Er(e){return e.replace(/\/{2,}/g,"/")}function Ob(e){return e==="/"?e:e.replace(/^\/+/,"")}function An(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/+$/,""):e}function Ab(e){return An(Ob(e))}function Iy(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Py(e,t,i="never",r){if(t.includes("//")&&(t=Er(t)),t.startsWith("/"))return t.length===1||i==="preserve"?t:i==="always"?t.endsWith("/")?t:`${t}/`:t.endsWith("/")?t.slice(0,-1):t;const l=t===".";let c;if(r){c=l?e:e+"\0"+t;const m=r.get(c);if(m)return m}let u;if(l)u=e.split("/");else{for(e.includes("//")&&(e=Er(e)),u=e.split("/");u.length>1&&Pa(u)==="";)u.pop();const m=t.split("/");for(let y=0,g=m.length;y<g;y++){const b=m[y];
10b===""?y?y===g-1&&u.push(b):u=[b]:b===".."?u.length>1?u.pop():u=[""]:b==="."||u.push(b)}}u.length>1&&(Pa(u)===""?i==="never"&&u.pop():i==="always"&&u.push(""));const h=u.join("/"),p=(l?Er(h):h)||"/";return c&&r&&r.set(c,p),p}function xE(e){const t=new Map(e.map(r=>[encodeURIComponent(r),r])),i=new RegExp([...t.keys()].join("|").replace(/[.*()]/g,"\\$&"),"g");return r=>r.replace(i,l=>t.get(l)??l)}function RE(e){return e==null||e===""}function CE(e,t,i){if(typeof t!="string")return""+(t??void 0);const r=e==="_splat";if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let l=encodeURIComponent(t);return r&&(l=l.replaceAll("%2F","/")),i?i(l):l}function qy(e,t,i,r,l){const c=e.endsWith("/")?"/":"";let u="";for(const h of t){if(typeof h=="string"){u+=h;continue}const[p,m,y,g]=h,b=p===2,w=b&&g!==void 0?g+c:g;let _=i[m];if(!(p===3&&_==null)){if(l&&(l[m]=_,b&&(l["*"]=_)),b&&RE(_)){if(y==="/"&&!w)continue;_=""}u+=y+CE(m,_,r)+(w||"")}}return u+c||"/"}function Ql(e){const t=new Map;let i,r;return{get(l){const c=t.get(l);if(c)return c.visited=!0,c.value},set(l,c){const u=t.get(l);if(u){u.value=c;return}if(t.size>=e){let p=i?.next().value;for(;!p||p.visited;)p?p.visited=!1:i=t.values(),p=i.next().value;p===r&&(i=void 0),t.delete(p.key)}const h={key:l,value:c,visited:!1};r=h,t.set(l,h)},clear(){t.clear(),i=void 0,r=void 0}}}function Us(){throw new Error("Invariant failed")}const Ma=4,kb=5;function jE(e){const t=e.names;if(t)return t;const i=[];for(const r of e)typeof r!="string"&&i.push(r[1]);return e.names=i}function NE(e,t,i){const r=e.substring(t,i);if(r.charCodeAt(0)===36)return r.length===1?[2,"_splat","",void 0]:[1,r.substring(1),"",""];const l=r.indexOf("{");if(l>=0){const c=r.indexOf("}",l),u=r.charCodeAt(l+1)===45,h=l+(u?3:2);if(c>=0&&r.charCodeAt(h-1)===36&&(!u||h<c)){const p=r.substring(h,c);return[u?3:p?1:2,p||"_splat",r.substring(0,l),e.substring(t+c+1,p?i:e.length)]}}return r}function Is(e,t,i,r,l,c){let u=i;const h=t.fullPath??t.from,p=t.options,m=h.length,y=h.endsWith("/")?m-1:m,g=p?.caseSensitive??e,b=p?.params?.parse??p?.parseParams;let w,_=c?i-1:0;if(!r||h.includes("$")){w=c?.slice()??[];const k=Pa(w);k&&typeof k!="string"&&k[0]===2&&(w[w.length-1]=[k[0],k[1],k[2],k[3]===void 0?void 0:k[3]+h.substring(i-(h[i-2]==="/"?2:1),y)],_=m)}for(;u<m;){const k=u,j=h.indexOf("/",k);let C=j===-1?m:j;const B=NE(h,k,C);u=C+1;let J;if(typeof B=="string"){if(!r)continue;let P=B,L;g?L=r.static??=new Map:(P=B.toLowerCase(),L=r.staticInsensitive??=new Map);const Y=L.get(P);if(Y)J=Y;else{const Z=mi(r);J=Z,L.set(P,Z)}}else{const P=B[0];let L=B[2],Y=B[3]??"";if(P===2&&(C=m,u=C+1),w&&_<C&&(_<k-1&&w.push(h.substring(_,k-1)),B[2]="/"+L,P===2&&B[3]!==void 0&&y<m&&(B[3]=Y.slice(0,-1)),w.push(B),_=C),!r)continue;const Z=g&&!!(L||Y);g||(L=L.toLowerCase(),Y=Y.toLowerCase());const se=P===1?r.dynamic??=[]:P===3?r.optional??=[]:r.wildcard??=[],V=P!==2&&!b&&se.find(F=>!F.parse&&F.caseSensitive===Z&&F.prefix===L&&F.suffix===Y);if(V)J=V;else{const F=mi(r,P,Z,L,Y);J=F,se.push(F),se.length===2&&l?.push(se)}}r=J}w&&_<y&&w.push(h.substring(_,y));const E=w?.slice();if(!r)return E;
10if(b&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf("/")+1)===95){const k=mi(r,kb);(r.pathless??=[]).push(k),r=k}const A=(t.path||!t.children)&&!t.isRoot;if(A&&y<m){const k=mi(r,Ma);r.index=k,r=k}return r.parse=b??null,r.priority=p?.params?.priority??0,r.route||(r.data=E,A&&(r.route=t)),[r,u,E]}function xb(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function mi(e,t=0,i,r,l){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:i,prefix:r,suffix:l}}function LE(e,t){const i=mi(),r=[];function l(c,u,h,p){const[m,y,g]=Is(!1,c,u,h,r,p);if(c.children)for(const b of c.children)l(b,y,m,g)}for(const c of e)l(c,1,i);for(const c of r)c.sort(xb);t.masksTree=i,t.flatCache=Ql(1e3)}function DE(e,t){e||="/";const i=t.flatCache.get(e);if(i!==void 0)return i;const r=ef(e,t.masksTree);return t.flatCache.set(e,r),r}function ME(e,t,i,r,l){e||="/",r||="/";const c=t?`case\0${e}`:e;let u=l.singleCache.get(c);return u||(u=mi(),Is(t,{from:e},1,u),l.singleCache.set(c,u)),ef(r,u,i)}function zE(e,t,i=!1){const r=i?e:`nofuzz\0${e}`,l=t.matchCache.get(r);if(l!==void 0)return l;e||="/";let c;try{c=ef(e,t.segmentTree,i)}catch(u){if(u instanceof URIError)c=null;else throw u}return c&&(c.branch=Cb(c.route)),t.matchCache.set(r,c),c}function UE(e,t=!1){const i=mi(),r=[],l={},c={};let u=0;function h(p,m,y,g){if(p.init(u),p.id in l&&Us(),l[p.id]=p,u!==0&&p.path){const E=An(p.fullPath);(!c[E]||p.fullPath.endsWith("/"))&&(c[E]=p)}u++;const[b,w,_]=Is(t,p,m,y,r,g);if(p._interpolation=_,p.children)for(const E of p.children)h(E,w,b,_)}h(e,1,i);for(const p of r)p.sort(xb);return{processedTree:{segmentTree:i,singleCache:Ql(1e3),matchCache:Ql(1e3),flatCache:null,masksTree:null},routesById:l,routesByPath:c}}function ef(e,t,i=!1){const r=e.split("/"),l=PE(e,r,t,i);if(!l)return null;const[c]=Rb(e,r,l);return{route:l.node.route,rawParams:c}}function Rb(e,t,i){const r=IE(i.node),l=i.node.data&&jE(i.node.data),c=Object.create(null);let u=i.extract?.part??0,h=i.extract?.node??0,p=i.extract?.path??0,m=i.extract?.param??0;for(;h<r.length;u++,h++,p++){const y=r[h];if(y.kind===Ma)break;if(y.kind===kb){u--,p--;continue}const g=t[u],b=p;if(g&&(p+=g.length),y.kind===1||y.kind===3){const w=l[m++];if(y.kind===3&&i.skipped&1<<h){u--,p=b-1;continue}const _=y.suffix||y.prefix?g.substring(y.prefix.length,g.length-y.suffix.length):g;(_||y.kind===1)&&(c[w]=decodeURIComponent(_))}else if(y.kind===2){const w=y,_=e.substring(b+w.prefix.length,e.length-w.suffix.length),E=decodeURIComponent(_);c["*"]=E,c._splat=E;break}}return i.rawParams&&Object.assign(c,i.rawParams),[c,{part:u,node:h,path:p,param:m}]}function Cb(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function IE(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function PE(e,t,i,r){if(e==="/"&&i.index)return{node:i.index,skipped:0};const l=!Pa(t),c=l&&e!=="/",u=t.length-(l?1:0),h=[{node:i,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let p=null,m=null;for(;h.length;){const y=h.pop(),{node:g,index:b,skipped:w,statics:_,dynamics:E,optionals:A}=y;let{extract:k,rawParams:j}=y;if(g.kind===2&&g.route&&!Sl(m,y))continue;if(g.parse){if(!By(e,t,y))continue;j=y.rawParams,k=y.extract}r&&g.route&&g.kind!==Ma&&Sl(p,y)&&(p=y);const C=b===u;if(C&&(g.route&&(!c||g.kind===Ma||g.kind===2)&&Sl(m,y)&&(m=y),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const B=C?void 0:t[b];let J;if(C&&g.index){const P={node:g.index,index:b,skipped:w,statics:_,dynamics:E,optionals:A,extract:k,rawParams:j};let L=!0;if(g.index.parse&&(By(e,t,P)||(L=!1)),L){if(!E&&!A&&!w&&qE(_,u))return P;Sl(m,P)&&(m=P)}}if(g.wildcard)for(let P=g.wildcard.length-1;P>=0;P--){const L=g.wildcard[P],{prefix:Y,suffix:Z}=L;
10if(!(Y&&(C||!(L.caseSensitive?B:J??=B.toLowerCase()).startsWith(Y)))){if(Z){if(C)continue;const se=t.slice(b).join("/"),V=se.slice(-Z.length);if((L.caseSensitive?V:V.toLowerCase())!==Z||se.length-Z.length<Y.length)continue}h.push({node:L,index:u,skipped:w,statics:_,dynamics:E,optionals:A,extract:k,rawParams:j})}}if(g.optional){const P=w|1<<g.depth+1;for(let L=g.optional.length-1;L>=0;L--){const Y=g.optional[L];h.push({node:Y,index:b,skipped:P,statics:_,dynamics:E,optionals:A,extract:k,rawParams:j})}if(!C)for(let L=g.optional.length-1;L>=0;L--){const Y=g.optional[L],{prefix:Z,suffix:se}=Y;if(Z||se){const V=Y.caseSensitive?B:J??=B.toLowerCase();if(Z&&!V.startsWith(Z)||se&&V.indexOf(se,V.length-se.length)<Z.length)continue}h.push({node:Y,index:b+1,skipped:w,statics:_,dynamics:E,optionals:A+wl(u,b),extract:k,rawParams:j})}}if(!C&&g.dynamic&&B)for(let P=g.dynamic.length-1;P>=0;P--){const L=g.dynamic[P],{prefix:Y,suffix:Z}=L;if(Y||Z){const se=L.caseSensitive?B:J??=B.toLowerCase();if(Y&&!se.startsWith(Y)||Z&&se.indexOf(Z,se.length-Z.length)<Y.length)continue}h.push({node:L,index:b+1,skipped:w,statics:_,dynamics:E+wl(u,b),optionals:A,extract:k,rawParams:j})}if(!C&&g.staticInsensitive){const P=g.staticInsensitive.get(J??=B.toLowerCase());P&&h.push({node:P,index:b+1,skipped:w,statics:_+wl(u,b),dynamics:E,optionals:A,extract:k,rawParams:j})}if(!C&&g.static){const P=g.static.get(B);P&&h.push({node:P,index:b+1,skipped:w,statics:_+wl(u,b),dynamics:E,optionals:A,extract:k,rawParams:j})}if(g.pathless)for(let P=g.pathless.length-1;P>=0;P--){const L=g.pathless[P];h.push({node:L,index:b,skipped:w,statics:_,dynamics:E,optionals:A,extract:k,rawParams:j})}}if(m)return m;if(r&&p){let y=p.index;for(let b=0;b<p.index;b++)y+=t[b].length;const g=y===e.length?"/":e.slice(y);return p.rawParams??=Object.create(null),p.rawParams["**"]=decodeURIComponent(g),p}return null}function wl(e,t){return 2**(e-t-1)}function qE(e,t){return e===2**(t-1)-1}function By(e,t,i){let r,l;try{[r,l]=Rb(e,t,i)}catch{return null}if(i.rawParams=r,i.extract=l,!i.node.parse)return!0;try{if(i.node.parse(r)===!1)return null}catch{}return!0}function Sl(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ma)>(e.node.kind===Ma)||t.node.kind===Ma==(e.node.kind===Ma)&&t.node.depth>e.node.depth))):!0}function BE(){try{return sessionStorage}catch{return}}const $E="tsr-scroll-restoration-v1_3",jb=BE();function HE(){try{return JSON.parse(jb?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}const lr=HE(),$y="data-scroll-restoration-id",GE=e=>e.state.__TSR_key||e.href;function VE(e){const t=e.getAttribute($y);if(t)return`[${$y}="${t}"]`;let i="",r=e,l;for(;l=r.parentNode;){let c=1,u=r;for(;u=u.previousElementSibling;)c++;const h=`${r.localName}:nth-child(${c})`;i=i?`${h} > ${i}`:h,r=l}return i}let _l=!1;const $l="window";function Eh(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function Hy(e){const t=new Set;for(const i of e){if(i===$l)continue;const r=Eh(i);r&&t.add(r)}return t}function FE(e,t){const i=e.options.scrollRestoration,r=e._scroll;i&&(r.e=!0);const l=e.options.getScrollRestorationKey||GE,c=new Set,u=h=>{const p=lr[h]||={};for(const m of c)m===document?p[$l]={scrollX,scrollY}:m.isConnected&&(p[VE(m)]={scrollX:m.scrollLeft,scrollY:m.scrollTop})};i&&!r.s&&(r.s=!0,_l=!1,history.scrollRestoration="manual",document.addEventListener("scroll",h=>{_l||c.add(h.target)},!0),e.subscribe("onBeforeLoad",h=>{h.fromLocation&&u(l(h.fromLocation)),c.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",u(l(e.stores.resolvedLocation.get()??e.stores.location.get()));try{jb?.setItem($E,JSON.stringify(lr))}catch{}}),addEventListener("pageshow",h=>{h.persisted&&(history.scrollRestoration="manual")})),!r.r&&(r.r=!0,e.subscribe("onRendered",h=>{const p=e.options.scrollRestorationBehavior,m=e.options.scrollToTopSelectors,y=r.n,g=r.h;let b;if(c.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const w=l(h.toLocation),_=h.fromLocation&&l(h.fromLocation);if(r.e&&_&&_!==w){const E=lr[_];if(E){let A=lr[w];for(const k in E){if(k===$l){if(y)continue}else{const j=Eh(k);if(!j||y&&m&&(b??=Hy(m),b.has(j)))continue}A||(A=lr[w]={}),A[k]??=E[k]}}}_l=!0;try{const E=h.toLocation.hash,A=h.toLocation.state.__hashScrollIntoViewOptions??!0;let k=!1;if(y){!E&&m&&(b??=Hy(m));const j=E&&A&&g,C=r.e?lr[w]:void 0;if(C)for(const B in C){const{scrollX:J,scrollY:P}=C[B];if(B===$l){if(j)continue;scrollTo({top:P,left:J,behavior:p}),k=!0}else{const L=Eh(B);L&&(L.scrollLeft=J,L.scrollTop=P,b?.delete(L))}}if(!E){const B={top:0,left:0,behavior:p};if(k||scrollTo(B),b)for(const J of b)J.scrollTo(B)}}!k&&E&&A&&document.getElementById(E)?.scrollIntoView(A)}finally{_l=!1}}))}function Nb(e,t=String){let i;for(const r in e){const l=e[r];l!==void 0&&(i||=new URLSearchParams).set(r,t(l))}return i?i.toString():""}function Vd(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function YE(e){const t=new URLSearchParams(e),i=Object.create(null);for(const[r,l]of t.entries()){const c=i[r];c==null?i[r]=Vd(l):Array.isArray(c)?c.push(Vd(l)):i[r]=[c,Vd(l)]}return i}const Lb=/^(?:\s|["[{\d-]|fa|nu|tr)/,KE=JE(JSON.parse),QE=XE(JSON.stringify,JSON.parse);function JE(e){const t=e===JSON.parse;return i=>{i[0]==="?"&&(i=i.substring(1));const r=YE(i);for(const l in r){const c=r[l];if(typeof c=="string"){if(t&&!Lb.test(c))continue;try{r[l]=e(c)}catch{}}}return r}}function XE(e,t){const i=t===JSON.parse;function r(l){if(l&&typeof l=="object")try{return e(l)}catch{}else if(t&&typeof l=="string"){if(i&&!Lb.test(l))return l;try{return t(l),e(l)}catch{}}return l}return l=>{const c=Nb(l,r);return c?`?${c}`:""}}const Tr="__root__";function WE(e,t,i){const r=Ab(e),l=`/${r}`,c=t?l:l.toLowerCase(),u=`${c}/`,h={input:({url:p})=>{const m=t?p.pathname:p.pathname.toLowerCase();return m===c?p.pathname="/":m.startsWith(u)&&(p.pathname=p.pathname.slice(l.length)),p},output:({url:p})=>(p.pathname=Er(`/${r}${p.pathname}`),p)};
10return i?{input:({url:p})=>Th(i,h.input({url:p})),output:({url:p})=>h.output({url:Db(i,p)})}:h}function Th(e,t){const i=e?.input?.({url:t});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return t}function Db(e,t){const i=e?.output?.({url:t});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return t}function ZE(e,t){const{createMutableStore:i,createReadonlyStore:r,batch:l}=t,c=new Map,u=i("idle"),h=i(e),p=i(void 0),m=i([]),y=r(()=>m.get().map(E=>c.get(E).get())),g=r(()=>({status:u.get(),isLoading:u.get()==="pending",matches:y.get(),location:h.get(),resolvedLocation:p.get()}));function b(E){let A=c.get(E);return A||(A=i(void 0),c.set(E,A)),A}const w={status:u,location:h,resolvedLocation:p,ids:m,matches:y,byRoute:c,__store:g,getMatchStore:b,setMatches:_};function _(E){const A=m.get(),k=E.map(j=>j.routeId);l(()=>{kE(A,k)||m.set(k);for(const j of A)k.includes(j)||c.get(j).set(()=>{});for(const j of E){const C=b(j.routeId);C.get()!==j&&C.set(j)}})}return w}var Ia="__TSR_index",Gy="popstate",Vy="beforeunload",e1=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Hl(e){const t=e1.exec(e);return t?"/"+e.slice(t[0].length):e}function Mb(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,t=>` 11\r`.includes(t)?"":encodeURIComponent(t))),Hl(e)}function t1(e){let t=e.getLocation();const i=new Set,r=u=>{t=e.getLocation(),i.forEach(h=>h({location:t,action:u}))},l=u=>{e.notifyOnIndexChange??!0?r(u):t=e.getLocation()},c=async({task:u,navigateOpts:h,...p})=>{if(h?.ignoreBlocker??!1){u();return}const m=e.getBlockers?.()??[],y=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&m.length&&y)for(const g of m){const b=Jl(p.path,p.state);if(await g.blockerFn({currentLocation:t,nextLocation:b,action:p.type})){e.onBlocked?.();return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:i,subscribe:u=>(i.add(u),()=>{i.delete(u)}),push:(u,h,p)=>{const m=t.state[Ia];h=Fy(m+1,h),c({task:()=>{e.pushState(u,h),r({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:u,state:h})},replace:(u,h,p)=>{const m=t.state[Ia];h=Fy(m,h),c({task:()=>{e.replaceState(u,h),r({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:u,state:h})},go:(u,h)=>{c({task:()=>{e.go(u,h?.ignoreBlocker??!1),l({type:"GO",index:u})},navigateOpts:h,type:"GO"})},back:u=>{c({task:()=>{e.back(u?.ignoreBlocker??!1),l({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{c({task:()=>{e.forward(u?.ignoreBlocker??!1),l({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[Ia]!==0,createHref:u=>e.createHref(u),block:u=>{if(!e.setBlockers)return()=>{};const h=e.getBlockers?.()??[];return e.setBlockers([...h,u]),()=>{const p=e.getBlockers?.()??[];e.setBlockers?.(p.filter(m=>m!==u))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function Fy(e,t){const i=tf();return{...t,key:i,__TSR_key:i,[Ia]:e}}function n1(e){const t=typeof document<"u"?window:void 0,i=t.history.pushState,r=t.history.replaceState;let l=[];const c=()=>l,u=L=>l=L,h=L=>Mb(L),p=(()=>Jl(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const L=tf();t.history.replaceState({[Ia]:0,key:L,__TSR_key:L},"")}let m=p(),y,g=!1,b=!1,w=!1,_=!1;const E=()=>m;let A;const k=()=>{A&&(P._ignoreSubscribers=!0,(A[2]?t.history.pushState:t.history.replaceState)(A[1],"",A[0]),P._ignoreSubscribers=!1,A=void 0,y=void 0)},j=(L,Y,Z)=>{const se=!!A;se||(y=m),m=Jl(Y,Z),A=[m.href,Z,A?.[2]||L],se||queueMicrotask(()=>k())},C=L=>{m=p(),P.notify({type:L})},B=async()=>{if(_=!1,b){b=!1;return}const L=p(),Y=L.state[Ia]-m.state[Ia],Z=Y===1,se=Y===-1,V=!Z&&!se||g;g=!1;const F=V?"GO":se?"BACK":"FORWARD",W=V?{type:"GO",index:Y}:{type:se?"BACK":"FORWARD"};if(w)w=!1;else{const he=c();if(typeof document<"u"&&he.length){for(const re of he)if(await re.blockerFn({currentLocation:m,nextLocation:L,action:F})){b=!0,t.history.go(-Y),P.notify(W);return}}}m=p(),P.notify(W)},J=L=>{if(_){_=!1;return}let Y=!1;const Z=c();if(typeof document<"u"&&Z.length)for(const se of Z){const V=se.enableBeforeUnload??!0;if(V===!0){Y=!0;break}if(typeof V=="function"&&V()===!0){Y=!0;break}}if(Y)return L.preventDefault(),L.returnValue=""},P=t1({getLocation:E,getLength:()=>t.history.length,pushState:(L,Y)=>j(!0,L,Y),replaceState:(L,Y)=>j(!1,L,Y),back:L=>(L&&(w=!0,_=!0),t.history.back()),forward:L=>{L&&(w=!0,_=!0),t.history.forward()},go:(L,Y)=>{g=!0,Y&&(w=!0,_=!0),t.history.go(L)},createHref:L=>h(L),flush:k,destroy:()=>{t.history.pushState=i,t.history.replaceState=r,t.removeEventListener(Vy,J,{c
11apture:!0}),t.removeEventListener(Gy,B)},onBlocked:()=>{y&&m!==y&&(m=y)},getBlockers:c,setBlockers:u,notifyOnIndexChange:!1});return P._ignoreNextBeforeUnload=L=>{_=!1;try{L=new URL(L,t.document.baseURI).href,_=/^https?:/.test(L)&&(!L.includes("#")||L.split("#")[0]!==t.location.href.split("#")[0])}catch{}},t.addEventListener(Vy,J,{capture:!0}),t.addEventListener(Gy,B),t.history.pushState=function(...L){const Y=i.apply(t.history,L);return P._ignoreSubscribers||C("PUSH"),Y},t.history.replaceState=function(...L){const Y=r.apply(t.history,L);return P._ignoreSubscribers||C("REPLACE"),Y},P}function Jl(e,t){const i=Mb(e),r=i.indexOf("#"),l=i.indexOf("?");if(!t){const c=tf();t={[Ia]:0,key:c,__TSR_key:c}}return{href:i,pathname:i.substring(0,r>0?l>0?Math.min(r,l):r:l>0?l:i.length),hash:r>-1?i.substring(r):"",search:l>-1?i.slice(l,r===-1?void 0:r):"",state:t}}function tf(){return(Math.random()+1).toString(36).substring(7)}function Fd(e,t){return e.protocol!=="http:"&&e.protocol!=="https:"||e.origin!==t||!!e.username||!!e.password}function Yd(e){return e.pathname+e.search+e.hash}function Yy(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function a1(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function lc(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Ky({key:e,__TSR_key:t,__TSR_index:i,__hashScrollIntoViewOptions:r,...l}){return l}function zb(e){return e.findIndex(t=>t.status==="error"||t.status==="notFound"||t._notFound)+1}function i1(e,t,i,r,l,c){r&&(t=t.slice(0,r)),l&&(i=i.slice(0,l));for(const u of t){if(c&&e._tx!==c)return;i.some(h=>h.routeId===u.routeId)||e.routesById[u.routeId].options.onLeave?.(u)}for(const u of i){if(c&&e._tx!==c)return;e.routesById[u.routeId].options[t.some(h=>h.routeId===u.routeId)?"onStay":"onEnter"]?.(u)}}var r1=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async i=>(i(),!1),this.update=i=>{const r=this.options;this.options={...r,...i},this.isServer=this.options.isServer??zy??typeof document>"u",this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=n1()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost");const l=this.options.basepath??"/",c=this.options.rewrite,u=this.basepath!==l||r?.rewrite!==c||r?.caseSensitive!==this.options.caseSensitive;if(u&&(this.basepath=l,this.rewrite=l!=="/"&&Ab(l)?WE(l,this.options.caseSensitive,c):c),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree||zy){this.routeTree=this.options.routeTree;let h;h=this.buildRouteTree(),this.setRoutes(h)}if(this.stores)u&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=ZE(this.latestLocation,h),FE(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=UE(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&LE(this.options.routeMasks,i.processedTree),{...i,resolvePathCache:Ql(1e3)}},this.subscribe=(i,r)=>{const l={eventType:i,fn:r};return this.subscribers.add(l),()=>{this.subscribers.delete(l)}},this.emit=i=>{for(const r of this.subscribers)if(r.eventType===i.type)try{r.fn(i)}catch(l){console.error(l)}},this.parseLocation=(i,r)=>{const l=({pathname:p,search:m,hash:y,href:g},b)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const A=this.options.parseSearch(m),k=this.options.stringifySearch(A);return{href:p+k+y,publicHref:p+k+y,pathname:Ts(p),external:!1,searchStr:k,search:or(r?.search,A),hash:Ts(y.slice(1)),state:Ua(r?.state,b)}}const w=Th(this.rewrite,new URL(g,this.origin)),_=this.options.parseSearch(w.search),E=this.options.stringifySearch(_);return w.search=E,{href:w.href.replace(w.origin,""),publicHref:g,pathname:Ts(Hl(w.pathname)),external:!!this.rewrite&&Fd(w,this.origin),searchStr:E,search:or(r?.search,_),hash:Ts(w.hash.slice(1)),state:Ua(r?.state,b)}},c=l(i,i.state),{__tempLocation:u,__tempKey:h}=c.state;if(u&&(!h||h===this.tempLocationKey)){const p=l(u,{...u.state,__tempLocation:void 0,key:c.state.key,__TSR_key:c.state.__TSR_key});return p.maskedLocation=c,p}return c},this.matchRoutes=(i,r,l)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:r},l):this.matchRoutesInternal(i,r),this.getMatchedRoutes=i=>{const r=Object.create(null),l=zE(An(i),this.processedTree,!0);return l&&Object.assign(r,l.rawParams),[l?.branch||[this.routesById.__root__],r,l?.route]},this.buildLocation=i=>{{const u=this.staticLocations.get(i);if(u)return u}let r=!1;const l=(u={})=>
11{if(u.href){const he=Jl(u.href,{});u={...u,to:Th(this.rewrite,new URL(he.pathname,this.origin)).pathname,search:this.options.parseSearch(he.search),hash:he.hash.slice(1)}}const h=u._fromLocation||this._pendingLocation||this.latestLocation;let p;const m=()=>(r=!0,h),y=()=>(r=!0,p??=this.matchRoutesLightweight(h)),g=u.to?`${u.to}`:".",b=Py(g[0]==="/"?"":u.unsafeRelative==="path"?m().pathname:u.from??y()[1],g,this.options.trailingSlash,this.resolvePathCache),w=this.routesByPath[An(b)],_=b.includes("$");let E;if(w)E=w._branch??=Cb(w);else if(_)E=[];else{const[he,re,U]=this.getMatchedRoutes(b);E=he,this.options.notFoundRoute&&(!U||U.path!=="/"&&re["**"])&&(E=[...E,this.options.notFoundRoute])}const A=_?w?._interpolation??Is(!1,{fullPath:b},0):void 0;let k;for(const he of E){const re=he.options.params?.stringify??he.options.stringifyParams;if(re){const U=y()[3];if(k??=Kd(u.params,U),!_b(k))break;k===U&&(k=Object.assign(Bl(),k));try{Object.assign(k,re(k))}catch{}}}k??=Kd(u.params,o1(u.params,A)?y()[3]:Qd);const j=i.leaveParams?b:Hl(Ts(A?qy(b,A,k,this.pathParamsDecoder):b)),C=l1(E,i._includeValidateSearch),B=()=>{let he=y()[2];if(i._includeValidateSearch&&this.options.search?.strict){const re={};E.forEach(U=>{if(U.options.validateSearch)try{Object.assign(re,Gl(U.options.validateSearch,{...re,...he}))}catch{}}),he=re}return he},J=C.length?c1(C,B(),u):u.search===!0?B():typeof u.search=="function"?u.search(B()):u.search||Qd,P=this.options.stringifySearch(J),L=u.hash===!0?m().hash:typeof u.hash=="function"?u.hash(m().hash):u.hash||void 0,Y=L?`#${L}`:"",Z=u.state?u.state===!0?m().state:typeof u.state=="function"?u.state(m().state):u.state:Qd,se=`${j}${P}${Y}`;let V,F,W=!1;if(this.rewrite){const he=new URL(se,this.origin),re=he.origin,U=Db(this.rewrite,he);V=Yd(he),Fd(U,re)?(F=U.href,W=!0):F=Hl(Yd(U))}else V=AE(se),F=V;return{publicHref:F,href:V,pathname:j,search:J,searchStr:P,state:Z,hash:L??"",external:W,unmaskOnReload:u.unmaskOnReload}},c=l(i);if(i.mask)c.maskedLocation=l({from:i.from,...i.mask});else if(this.options.routeMasks){const u=DE(c.pathname,this.processedTree);if(u){const h=Object.assign(Bl(),u.rawParams),{from:p,params:m,...y}=u.route,g=Kd(m,h);c.maskedLocation=l({from:i.from,...y,params:g})}}return!r&&i._fromLocation&&!c.maskedLocation&&this.staticLocations.set(i,c),c},this.commitLocation=async({viewTransition:i,ignoreBlocker:r,...l})=>{const c=l.maskedLocation??l;if(c.external)return Qy(this,c.publicHref,{replace:l.replace,ignoreBlocker:r});let u;const h=An(this.latestLocation.href)===An(l.href)&&pn(Ky(l.state),Ky(this.latestLocation.state)),p=this._commitPromise;let m;const y=new Promise(g=>{m=g});if(y.resolve=()=>{m(),p?.resolve()},this._commitPromise=y,h)this.load();else{let{maskedLocation:g,hashScrollIntoView:b,...w}=l;g&&(w={...g,state:{...g.state,__tempKey:void 0,__tempLocation:{...w,search:w.searchStr,state:{...w.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(w.unmaskOnReload??this.options.unmaskOnReload??!1)&&(w.state.__tempKey=this.tempLocationKey)),w.state={...w.state,__hashScrollIntoViewOptions:b??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=i,u=l.replace?"REPLACE":"PUSH",this.history[u==="REPLACE"?"replace":"push"](w.publicHref,w.state,{ignoreBlocker:r}),this.history.subscribers.size||this.load({action:{type:u}})}return this._scroll.n=l.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:i,resetScroll:r,hashScrollIntoView:l,viewTransition:c,ignoreBlocker:u,...h}={})=>{const p=this.buildLocation({...h,_includeValidateSearch:!0});this._pendingLocation=p;const m=this.commitLocation({...p,viewTransition:c,replace:i,resetScroll:r,hashScrollIntoView:l,ignoreBlocker:u});return queueMicrotask(()=>{this._pendingLocation===p&&(this._pendingLocation=void 0)}),m},this.navigate=async({to:i,reloadDocument:r,href:l,publicHref:c,...u})=>{const h=l?zs(l):void 0;if(h||r){if(i!==void 0||!l){const m=this.buildLocation({to:i,...u}),y=m.maskedLocation??m;l??=y.publicHref,c??=y.publicHref}return Qy(this,!h&&c?c:l,u)}return this.buildAndCommitLocation({...u,href:l,to:i,_isNavigate:!0})},this.load=async i=>{this.updateLatestLocation(),i?.action&&(this._scroll.h=i.action.type==="PUSH"||i.action.type==="REPLACE"),await y1(this,i)},this.startViewTransition=i=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document.startViewTransition=="function"){let l;if(typeof r=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const c=this.latestLocation,u=this.stores.resolvedLocation.get(),h=typeof r.types=="function"?r.types(lc(c,u)):r.types;if(h===!1)return i();l={update:i,types:h}}else l=i;return document.startViewTransition(l).updateCallbackDone}return i()},this.invalidate=i=>{const r=this._committed,l=i?.filter,c=this._preloads,u=new Set,h=y=>{(!l||l(y))&&u.add(y.id)};r.forEach(h),this._cache.forEach(h),c?.forEach(y=>y.forEach(h)),this._tx?.[3].forEach(h);const p=[];for(const[y,g]of c??[])g.some(b=>u.has(b.id))&&(c.delete(y),p.push(y));const m=y=>{if(u.has(y.id)){const g=this.routesById[y.routeId],b={...y,invalid:!0,...(i?.forcePending||y.status==="error"||y.status==="notFound")&&Yy(g)?{status:"pending",error:void 0}:void 0};return y._flight=void 0,b}return y};this._committed=r.map(m);
11for(const[y,g]of this._cache)u.has(y)&&(g.invalid=!0,i?.forcePending&&(g.status="pending"));for(const y of u){const g=this._flights?.get(y);this._flights?.delete(y),g&&!g[2]&&p.push(g[1])}for(const y of p)y.abort();return this.shouldViewTransition=!1,this.load({sync:i?.sync})},this.resolveRedirect=i=>{const r=i.options;let l=i.headers.get("Location")||r.href;if(!l){const u=this.buildLocation(r);l=(u.maskedLocation??u).publicHref||"/"}let c;if(Eb.test(l)||(c=zs(l))&&!this.protocolAllowlist.has(c))throw new Error("Redirect blocked: unsafe protocol");if(c==="http:"||c==="https:"){const u=new URL(l);u.pathname.startsWith("//")?l=u.href:Fd(u,this.origin)||(l=Yd(u),c=void 0)}return c&&(r.reloadDocument=!0),r.href=l,i.headers.set("Location",l),i},this.clearCache=i=>{const r=this._cache,l=this._preloads,c=i?.filter,u=[],h=[];for(const[m,y]of r)(!c||c(y))&&(h.push(m),u.push(y));const p=[];for(const[m,y]of l??[])(!c||y.some(c))&&(p.push(m),u.push(...y));for(const m of h)r.delete(m);for(const m of p)l.delete(m);for(const m of u){const y=m._flight;m._flight=void 0,y&&!--y[2]&&(this._flights?.get(m.id)===y&&this._flights.delete(m.id),p.push(y[1]))}for(const m of p)m.abort()},this.loadRouteChunk=Xn,this.preloadRoute=i=>v1(this,i),this.matchRoute=(i,r)=>{const l={...i,to:i.to?Py(i.from||"",i.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:i.params||{},leaveParams:!0},c=this.buildLocation(l),u=this.stores.status.get()==="pending";if(r?.pending&&!u)return!1;const h=r?.pending??!u?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),p=ME(c.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,h.pathname,this.processedTree);return!p||i.params&&!pn(p.rawParams,i.params,!0)?!1:r?.includeSearch??!0?pn(h.search,c.search,!0)?p.rawParams:!1:p.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=xE(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??QE,parseSearch:e.parseSearch??KE,protocolAllowlist:e.protocolAllowlist??_E}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;const t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=Is(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){const[i,r,l]=this.getMatchedRoutes(e.pathname);let c=i,u=!1;(l?l.path!=="/"&&r["**"]:An(e.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:u=!0);const h=u?u1(this.options.notFoundMode,c):void 0,p=new Array(c.length),m=this._committed,y=(b,w)=>{const _=m[w];return _?.routeId===b.id?_:b===this.options.notFoundRoute?m.find(E=>E.routeId===b.id):void 0};let g;for(let b=0;b<c.length;b++){const w=c[b],_=p[b-1];let E,A,k;{const W=_?.search??e.search,he=_?._strictSearch??void 0;try{const re=Gl(w.options.validateSearch,{...W})??void 0;E={...W,...re},A={...he,...re}}catch(re){let U=re;if(re instanceof Xl||(U=new Xl(re.message,{cause:re})),t?.throwOnError)throw U;E=W,A={},k=U}}let j="",C="";try{j=w.options.loaderDeps?.({search:E})??"",C=j&&JSON.stringify(j)||""}catch(W){if(t?.throwOnError)throw W;k??=W}const B=Bl(),J=w._interpolation?qy(w.fullPath,w._interpolation,r,this.pathParamsDecoder,B):w.fullPath,P=w.id+J+C,L=y(w,b),Y=this._cache.get(P)??(L?.id===P?L:void 0);g=Y?._strictParams??Object.assign(B,g);let Z;if(!Y)try{Jy(w,g)}catch(W){if(wi(W)||Wh(W)?Z=W:Z=new s1(W.message,{cause:W}),t?.throwOnError)throw Z}const se=L?"stay":"enter";let V;if(Y)V={...Y,cause:se,search:or(L?L.search:Y.search,E),_strictSearch:A,searchError:k};else{const W=Yy(w)?"pending":"success";V={id:P,ssr:w.options.ssr,index:b,routeId:w.id,params:L?.params??g,_strictParams:g,pathname:J,updatedAt:Date.now(),search:L?or(L.search,E):E,_strictSearch:A,searchError:k,status:W,isFetching:!1,error:void 0,paramsError:Z,context:{},abortController:t?._controller??new AbortController,cause:se,loaderDeps:L?Ua(L.loaderDeps,j):j,invalid:!1,preload:!1,staticData:w.options.staticData||{},fullPath:w.fullPath}}const F=h===w.id;V._notFound&&!F&&(V.error=void 0),V._notFound=F,p[b]=V}for(let b=0;b<p.length;b++){const w=p[b];w.params=w.cause==="stay"?or(w.params,g):g,t?._controller&&(w.context={})}return p}matchRoutesLightweight(e){const t=Pa(this.stores.ids.get()),i=t?this.stores.byRoute.get(t).get():void 0,r=i?.id,l=this.lightweightCache.get(e);if(l&&l[0]===r)return l[1];const[c,u]=this.getMatchedRoutes(e.pathname),h=Pa(c),p={...e.search};for(const b of c)try{Object.assign(p,Gl(b.options.validateSearch,p))}catch{}const m=i&&i.routeId===h.id&&i.pathname===e.pathname;let y;if(m)y=i.params;else{const b=u;for(const w of c)try{Jy(w,b)}catch{}y=b}const g=[c,h.fullPath,p,y];return this.lightweightCache.set(e,[r,g]),g}};async function Qy(e,t,{replace:i,ignoreBlocker:r}){if(!Tb(t,e.protocolAllowlist)){if(!r){const l=e.history._getBlockers();for(const c of l)if(c?.blockerFn&&await c.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:i?"REPLACE":"PUSH"}))return}e.history._ignoreNextBeforeUnload?.(t),i?window.location.replace(t):window.location.href=t}}
11var Xl=class extends Error{},s1=class extends Error{};function Gl(e,t){if(e==null)return{};if("~standard"in e){const i=e["~standard"].validate(t);if(i instanceof Promise)throw new Xl("Async validation not supported");if(i.issues)throw new Xl(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function Kd(e,t){if(e===void 0||e===!0)return t;const i=Object.create(null);return e===!1||e===null?i:typeof e=="function"?(Object.assign(i,t),Object.assign(i,e(i))):Object.assign(i,t,e)}function o1(e,t){return typeof e=="function"?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(i=>typeof i!="string"&&!Zh.call(e,i[1]))}const Qd=Object.freeze({});function l1(e,t){const i=[];for(let r=0;r<e.length;r++){const l=e[r].options;if("search"in l)l.search?.middlewares&&i.push(...l.search.middlewares);else if(l.preSearchFilters||l.postSearchFilters){const u=({search:h,next:p})=>{const m=p(l.preSearchFilters?l.preSearchFilters.reduce((y,g)=>g(y),h):h);return l.postSearchFilters?l.postSearchFilters.reduce((y,g)=>g(y),m):m};i.push(u)}const c=l.validateSearch;if(t&&c){const u=({search:h,next:p,meta:m})=>{const y=p(h);try{const g=Gl(c,y);if(m&&g)for(const b in g)b in y||(m.defaulted||=new Map).set(b,g[b]);return{...y,...g}}catch{}return y};i.push(u)}}return i}function c1(e,t,i){const r=(l,c,u)=>{if(l>=e.length){if(!i.search)return{};if(i.search===!0)return c;const p=Sb(i.search,c);return u&&(u.explicit=p),p}const h=(p,m)=>{if(m){const y=u||{};return{search:r(l+1,p,y),meta:y}}return r(l+1,p,u)};return e[l]({search:c,next:h,meta:u})};return r(0,t)}function u1(e,t){if(e!=="root"){let i;for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.options.notFoundComponent)return l.id;i||=l.children&&l.id}if(i)return i}return Tr}function Jy(e,t){const i=e.options.params?.parse??e.options.parseParams;i&&Object.assign(t,i(t))}function Oh(e,t){return e.options[t]?.preload?.()}function d1(e,t){const i=Oh(e,"component");let r=Oh(e,"pendingComponent");return t&&(r?r=r.then(t):t()),i&&r?Promise.all([i,r]).then(()=>{}):i??r}function Xn(e,t,i){const r=()=>t===!1?void 0:t?Oh(e,t):d1(e,i),l=e._lazy;if(l)return l===!0?r():l.then(r);if(!e.lazyFn)return r();const c=e.lazyFn().then(u=>{{const{id:h,...p}=u.options;Object.assign(e.options,p),e._lazy=!0}},u=>{throw e._lazy=void 0,u});return e._lazy=c,c.then(r)}function nf(e){const t=e.findIndex(i=>i.status!=="success"||i._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Ub(e){let t=e.length;for(let i=0;i<t;i++){const r=e[i];if(r._assetEnd!==void 0){t=Math.min(t,Math.max(i+1,r._assetEnd));continue}if(r.status!=="success"||r._notFound){t=i+1;break}}return t<e.length?e.slice(0,t):e}const kn=0,Wn=1,cc=2,Tt=3,qa=[4];function Ps(e){return typeof e[0]=="number"}function Zn(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((i,r)=>{const l=()=>r(t);t.addEventListener("abort",l,{once:!0}),Promise.resolve(e).then(i,r).then(()=>t.removeEventListener("abort",l))})}function fn(e,t){return e.routesById[t.routeId]}function qs(e,t,i){return Wh(e)?[Tt,e]:wi(e)?(e.routeId||=i,[cc,e]):t?(typeof e?.then=="function"&&(e=new Error("A Promise was thrown",{cause:e})),[Wn,e]):[kn,e]}function af(e,t){let i=qs(t,!0,e.id);if(i[0]!==Wn)return i;try{e.options.onError?.(i[1])}catch(r){i=qs(r,!0,e.id)}return i}function js(e,t,i,r,l){return l[0].signal.aborted?qa:of(e,t,i,af(i,r),l)}async function h1(e,t,i,r,l,c){const[u,h]=t,p=i[0].signal,m=!!i[3];for(let y=i[6]??0;y<r;y++){const g=h[y],b=fn(e,g);g.abortController=i[0];const w=h[y-1]?.context??e.options.context??{},_={params:g.params,location:u,navigate:j=>e.navigate({...j,_fromLocation:u}),buildLocation:e.buildLocation,cause:m?"preload":g.cause,abortController:i[0],preload:m,matches:h,routeId:b.id};try{const j=g._ctx||=b.options.context?b.options.context({..._,deps:g.loaderDeps,context:w})||{}:void 0;g.context={...w,...j}}catch(j){return Jn(e,g),[y,js(e,t,b,j,i)]}if(p.aborted)return[y,qa];const E=g.paramsError??g.searchError;if(E!==void 0)return Jn(e,g),[y,js(e,t,b,E,i)];const A=b.options.beforeLoad;if(!A)continue;
11const k=g.status;y>=c&&(g.status="pending",i[7]?.());try{Bs(e,g,"beforeLoad",i[0]);const j=A({..._,search:g.search,context:g.context,...e.options.additionalContext}),C=await(typeof j?.then=="function"?Zn(j,p):j);if(p.aborted)return[y,qa];const B=of(e,t,b,qs(C,!1,b.id),i);if(B[0]!==kn)return Jn(e,g),[y,B];g.context={...g.context,...C}}catch(j){return Jn(e,g),[y,js(e,t,b,j,i)]}finally{g.status=k,Bs(e,g,!1,i[0])}}l()}function rf(e,t,i){if(!(!i||--i[2])){if(e._flights?.get(t.id)===i){const r=e._tx;if(r&&!r[0].signal.aborted&&!r[3].includes(t)&&r[3].some(l=>l.id===t.id)&&r[3].some(l=>l.isFetching==="beforeLoad"))return;e._flights.delete(t.id)}return i[1]}}function Jn(e,t){const i=t._flight;t._flight=void 0,rf(e,t,i)?.abort()}function bt(e,t,i,r){const l=[];for(const c of t)if(!i?.includes(c)){const u=c._flight;if(c._flight=void 0,r&&u?.[2]===1&&e._flights?.get(c.id)===u&&i?.some(h=>h.id===c.id))u[2]=0;else{const h=rf(e,c,u);h&&l.push(h)}}for(const c of l)c.abort()}function sf(e){for(const t of e){const i=t._flight;i&&i[2]++}}function Bs(e,t,i,r){if(t.isFetching=i,r&&e._tx?.[0]!==r)return;const l=e.stores.byRoute.get(t.routeId),c=l?.get();c?.id===t.id&&l.set({...c,isFetching:i})}function Ib(e,t,i,r,l,c,u){const h=t[0];return{params:i.params,location:h,navigate:p=>e.navigate({...p,_fromLocation:h}),cause:u?"preload":i.cause,abortController:l,preload:u,deps:i.loaderDeps,parentMatchPromise:c,context:i.context,route:r,...e.options.additionalContext}}async function Xy(e,t,i,r,l,c,u){const h=u[0],p=h.signal;if(p.aborted)return qa;if(!l)return[kn,void 0];let m=i._flight;Bs(e,i,"loader",h);try{if(!m){const y=new AbortController;m=[Promise.resolve().then(()=>l(Ib(e,t,i,r,y,c,!!u[3]))).then(g=>qs(g,!1,r.id),g=>qs(g,!0,r.id)).then(g=>(g[0]!==kn&&e._flights?.get(i.id)===m&&(e._flights.delete(i.id),m[2]||y.abort()),g[0]===Wn&&m[2]?af(r,g[1]):g)),y,1],(e._flights??=new Map).set(i.id,m)}return i._flight=m,i.abortController=m[1],of(e,t,r,await Zn(m[0],p),u)}catch(y){if(y!==p||!p.aborted)throw y;return Jn(e,i),qa}finally{Bs(e,i,!1,h)}}function Wy(e,t,i){t[0]!==Tt&&(e.status="success",e.error=void 0,t[0]===kn?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=i):e.invalid=!0)}function Pb(e,t,i){const r=e._cache.get(t.id);if(r!==i||e._committed.some(c=>c.id===t.id&&c._flight===t._flight))return;const l={...t,_notFound:void 0,context:{}};l._flight&&l._flight[2]++,e._cache.set(t.id,l),r&&Jn(e,r)}function Zy(e,t){return t[0]===Wn||t[0]===cc?{...e,status:t[0]===Wn?"error":"notFound",error:t[1],_flight:void 0}:e}function f1(e,t,i,r,l,c,u){const h=t[1][i],p=fn(e,h),m=!!c[3],y=e._cache.get(h.id);let g,b=!1,w;try{if(h.status==="success"&&(g=p.options.shouldReload,typeof g=="function"&&(g=g(Ib(e,t,h,p,c[0],l,m))),c[0].signal.aborted&&(w=qa)),!w)if(h.status!=="success")b=!0;else{const F=m||h.preload?p.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:p.options.staleTime??e.options.defaultStaleTime??0;b=!!(h.invalid||g||g===void 0&&Date.now()-h.updatedAt>=F&&(c[5]||h.cause==="enter"||c[2].some(W=>W.routeId===h.routeId&&W.id!==h.id)))}}catch(F){h.invalid=!0,Jn(e,h),w=js(e,t,p,F,c)}const _=p.options.loader,E=typeof _=="function",A=E?_:_?.handler,k=!m||p.options.preload!==!1;let j=k&&_?e._flights?.get(h.id):void 0;j===h._flight||w?j=void 0:j&&!b&&!m&&g===void 0?b=!0:b||(j=void 0);const C=!!(_&&b&&h.status==="success"&&!m&&!c[4]&&((E?void 0:_.staleReloadMode)??e.options.defaultStaleReloadMode)!=="blocking"),B=b&&k,J=B&&!C&&(h.status!=="success"||!!_),P=i>=u?c[7]:void 0,L=p.lazyFn&&p._lazy!==!0?P:void 0;if(B&&!_&&(h.invalid=!1,h.updatedAt=Date.now()),j&&j[2]++,J){const F=h._flight;h._flight=j,rf(e,h,F)?.abort(),i>=u&&(h.status="pending"),P?.()}B||(h.isFetching=!1);const Y=!w&&J?Xy(e,t,h,p,A,l,c).then(F=>(Wy(h,F,m),F[0]===kn&&(_&&!c[0].signal.aborted&&Pb(e,h,y),i>=u&&(h.status="pending")),F)):Promise.resolve(w??[kn,h.loaderData]),Z=(async()=>{try{const W=Xn(p,void 0,L);W&&await Zn(W,c[0].signal)}catch(W){if(!t[1].some((he,re)=>re<=i&&(he.status==="error"||he.status==="notFound"||he._notFound)))return[i,js(e,t,p,W,c)]}const F=await Y;J&&F[0]===kn&&h.status==="pending"&&!c[0].signal.aborted&&(h.status="success",P?.())})();if(r.push([i,Y,Z]),!C)return Y.then(F=>Zy(h,F));const se={...h,status:"pending",preload:!1,_flight:j};h.invalid=!1,h.isFetching="loader";const V=Xy(e,t,se,p,A,l,c).then(F=>(h.isFetching=!1,Wy(se,F,!1),F));return(t[2]??=[]).push([i,V,Z,se]),V.then(F=>Zy(se,F))}async function Ah(e,t,i,r,l=0){const c=i?.[1][1];let u=c?.routeId?t.findIndex(h=>h.routeId===c.routeId):i?.[0]??t.length-1;u<0&&(u=0);for(let h=u;h>=0;h--){const p=fn(e,t[h]);try{const m=Xn(p,!1);m&&await Zn(m,r)}catch(m){if(m===r&&r.aborted)throw m}if(p.options.notFoundComponent)return h}return c?.routeId?u:l}function bi(e,t){t[2]&&(bt(e,t[2].map(i=>i[3])),t[2]=void 0)}async function ev(e,t,i,r){let l;try{await Promise.all(e.map(c=>c[1].then(async u=>{const h=c[0];if(!(r&&h>=await r)){if(u[0]>=Tt)throw[h,u];!l&&u[0]!==kn&&(l=[h,u],await Promise.all((i??[]).map(p=>{if(!(p[0]<=h))return p[1].then(m=>{if(m[0]===Tt)throw[p[0],m]})})))}})))}catch(c){return c}return t??l}function of(e,t,i,r,l,c){for(;r[0]===Tt;){const u=r[1],h=u.options;try{if((h.href||u.headers.has("Location"))&&(e.resolveRedirect(u),h.reloadDocument)||(h.reloadDocument?l[3]:l[1]>=20))return r;const p=e.buildLocation({...h,_fromLocation:t[0],_includeValidateSearch:!0}),m=p.maskedLocation??p;if(m.external){const y=u.clone();return y.options={...h},y.headers.set("Location",m.publicHref),e.resolveRedirect(y),l[3]?[Tt,y]:[Tt,y,m]}return[Tt,u,p]}catch(p){r=c?[Wn,p]:af(i,p),c=!0}}return r}async function qb(e,t,i,r,l,c){const u=t[1];let h=await l,p=!1;const m=u.findIndex(w=>w._notFound),y=w=>w[1][0]===cc?Ah(e,u,w,r.signal):w[0];let g=m<0?u.length:m;if((h?.[1][0]??0)>=Tt)g=0;else if(h){g=h[2]??=await y(h);for(const w of i){if(w[0]>=g)break;const _=await w[1];if(_[0]!==kn&&_[0]<Tt&&!("loaderData"in u[w[0]])){h=[w[0],_],g=h[2]=await y(h);break}}}for(const w of i){if(w[0]>=g)break;const _=await w[2];if(_){h=_;break}}if((h?.[1][0]??0)>=Tt){const w=h[1];if(w[0]!==Tt||w[1].options.reloadDocument||w[2])return bi(e,t),w;p=!0,h=[0,[Wn,new Error("Too many redirects")]]}const b=h?h[2]??await y(h):m;if(b>
11=0){const w=h?.[1],_=w?.[0],E=u[b],A=w?.[1],k=()=>{w&&(E._notFound=void 0,_===Wn?E.status="error":(A.routeId=E.routeId,E.routeId===e.routeTree.id?(E.status="success",E._notFound=!0):E.status="notFound"),E.error=A,E.isFetching=!1)};k(),w||c?.();const j=fn(e,E);try{await Zn(w?Promise.resolve().then(()=>Xn(j,_===Wn?"errorComponent":"notFoundComponent")):Promise.all([Xn(j),Xn(j,"notFoundComponent")]),r.signal)}catch(C){if(C===r.signal&&r.signal.aborted)return bi(e,t),qa}w?p&&(r.abort(),await Promise.all([...i.map(C=>C[1]),...i.map(C=>C[2]),...(t[2]??[]).map(C=>C[1])]),bi(e,t),bt(e,u),k()):E.status="success"}return t}async function lf(e,t,i,r=0,l=t[1].length){const c=t[1];for(let u=r;u<l;u++){const h=c[u],p=fn(e,h).options;if(p.head||p.scripts)try{const m={ssr:e.options.ssr,matches:c,match:h,params:h.params,loaderData:h.loaderData},[y,g]=await Zn(Promise.all([p.head?.(m),p.scripts?.(m)]),i);h.meta=y?.meta,h.links=y?.links,h.headScripts=y?.scripts,h.styles=y?.styles,h.scripts=g}catch(m){if(m===i&&i.aborted)break;console.error(m)}if(h.status!=="success"||h._notFound)break}return t}async function Bb(e,t,i,r){const l=[t,i],c=r[0].signal;let u;try{const h=e.stores.matches.get();let p=i.findIndex(k=>k._notFound);if(e.options.notFoundMode!=="root"&&p>=0){const k=await Ah(e,i,void 0,c,p);i[p]._notFound=void 0,i[k]._notFound=!0,p=k}let m=p<0?i.length:p+1,y=0;for(;y<m&&y!==p;){const k=i[y],j=r[2][y],C=h[y];if(j?.id!==k.id||j.status!=="success"||k.preload||C?.id!==k.id||C.status!=="success"||(y++,j._notFound||C._notFound))break}const g=[],b=r[6]??0;let w=b?Promise.resolve(i[b-1]):void 0;const _=()=>{for(let k=b;k<m&&!c.aborted;k++)w=f1(e,l,k,g,w,r,y)},E=await h1(e,l,r,m,_,y);if(E){if(r[4]=!0,m=E[0],E[1][0]===cc){const k=await Ah(e,i,E,c);E[2]=k,m=Math.min(m,k+1)}else E[1][0]>=Tt&&(m=0);_()}if(!c.aborted&&!r[3]){const k=[];for(const[j,C]of e._flights??[])C[2]||(e._flights.delete(j),k.push(C[1]));for(const j of k)j.abort()}const A=qb(e,l,g,r[0],ev(g,E,l[2]),r[7]);l[2]?.length&&(l[3]=ev(l[2],void 0,void 0,A.then(k=>Ps(k)?0:nf(i).length,()=>0))),u=await A}catch(h){if(bi(e,l),h===c&&c.aborted)return qa;throw h}return Ps(u)?u:lf(e,u,c,r[6]===i.length?r[6]:0)}function kh(e,t){if(e._tx!==t)return;const i=t[3],r=e.stores.matches.get();let l=e._pending;for(let c=0;c<i.length;c++){const u=i[c],h=u.status==="success"&&!u._notFound,p=r[c]?.id===u.id&&r[c]?.status==="pending";if(h&&!p)continue;const m=fn(e,u),y=h||u.invalid?0:m.options.pendingMs??e.options.defaultPendingMs,g=m.options.pendingComponent??e.options.defaultPendingComponent;if(!g||typeof y!="number"||y===1/0){l&&(l[0]=t,l[2]=0,l[4]=!0);return}const b=m.options.pendingMinMs??e.options.defaultPendingMinMs??0;let w=!1;if(l?.[1]===u.id?(w=l[0]!==t,l[0]=t):(clearTimeout(l?.[3]),e._pending=l=void 0),l||(e._pending=l=[t,u.id,p?Date.now()+b:t[4]+y,void 0,p||void 0,g]),l[4]&&!w&&l[5]===g)return;if(l[5]=g,!l[4]){clearTimeout(l[3]);const A=l[2]-Date.now();if(A>0){l[3]=setTimeout(()=>kh(e,t),A);return}l[2]=0}const _=i.map(A=>({...A,_flight:void 0}));_[c].status="pending";const E=l[4]=e.startTransition(()=>e.stores.setMatches(_),_).then(A=>(A&&e._pending===l&&l[4]===E&&!l[2]&&(l[2]=Date.now()+b),A));return}}function Os(e,t){const i=e._pending;(e._tx===t||!e._tx?.[3].some(r=>r.id===i?.[1]))&&(clearTimeout(i?.[3]),e._pending=void 0)}async function tv(e,t){const i=e._pending;if(!i)return;clearTimeout(i[3]);const r=i[2]-Date.now();if(!i[4]||r<=0||!nf(t[3]).some(c=>c.id===i[1]))return;let l;try{await Zn(new Promise(c=>{l=setTimeout(c,r)}),t[0].signal)}catch{}clearTimeout(l)}function $b(e,t){e._committed=t,e.stores.setMatches(t)}function p1(e,t,i,r){const l=e._committed,c=e._lifecycleEnd,u=e._cache;for(const y of i)y.preload=!1,r&&(y._assetEnd=void 0);const h=nf(i).length,p=new Map;{const y=Date.now(),g=new Set;for(let b=0;b<i.length;b++){const w=i[b];(b<h||w.status==="success")&&g.add(w.id)}for(const b of[...l,...u.values()]){if(b.status!=="success"||g.has(b.id))continue;const w=fn(e,b);!w.options.loader||y-b.updatedAt>=(b.preload?w.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:w.options.gcTime??e.options.defaultGcTime??3e5)||p.set(b.id,u.get(b.id)===b?b:{...b,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=p;const m=e._lifecycleEnd=zb(i);$b(e,i),bt(e,[...u.values(),...l].filter(y=>y._flight&&p.get(y.id)!==y),i),i1(e,l,i,c,m,t)}async function El(e,t){let i=e._tx;for(;i&&i!==t;)t=i,await i[5],i=e._tx}function Hb(e,t,i){const r=i[1].options,l=i[2];if(!l)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(l.maskedLocation??l).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});l._redirects=t[1]+1,e._pendingLocation=l;const c=e.commitLocation({...l,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===l&&(e._pendingLocation=void 0)}),c}async function m1(e,t,i,r,l){const c=i.map(p=>({...p}));sf(c);for(const p of r)Jn(e,c[p[0]]),c[p[0]]=p[3];const u=[t[2],c];let h;try{h=await qb(e,u,r,t[0],l)}catch(p){throw bt(e,c),p}if(Ps(h)){bt(e,c),h[0]===Tt&&e._tx===t&&e._committed===i&&await Hb(e,t,h);return}if(await lf(e,h,t[0].signal),e._tx!==t||e._committed!==i){bt(e,c);return}
11for(const p of c){const m=e._cache.get(p.id);m?._flight&&m._flight===p._flight&&(e._cache.delete(p.id),Jn(e,m))}$b(e,c),bt(e,i,c)}async function g1(e,t,i,r,l,c){const u=await Bb(e,t[2],t[3],[t[0],t[1],e._committed,void 0,l,i,c,r]);if(Ps(u)){const g=u[0]===Tt&&e._tx===t;if((!g||u[1].options.reloadDocument)&&Os(e,t),bt(e,t[3]),t[3]=[],!g)return;if(e._tx!==t){Os(e,t);return}await Hb(e,t,u);return}const h=u[1];if(e._tx===t&&await tv(e,t),e._tx!==t){Os(e,t),bt(e,h),bi(e,u);return}const p=t[2],m=lc(p,e.stores.resolvedLocation.get()),y=u[2];await e.startViewTransition(async()=>{if(e._tx===t&&await tv(e,t),e._tx!==t){Os(e,t),bt(e,h),bi(e,u);return}const g=()=>{Os(e,t),p1(e,t,h,c),e._tx===t&&(e.emit({type:"onLoad",...m}),e._tx===t&&e.emit({type:"onBeforeRouteMount",...m}))},b=await e.startTransition(g,h);if(e._tx!==t){bi(e,u);return}y?.length&&m1(e,t,h,y,u[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(p),e.stores.status.set("idle"),e._tx===t&&e.emit({type:"onResolved",...m}),b&&e._tx===t&&e.emit({type:"onRendered",...m})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function y1(e,t){const i=e._tx,r=e.stores.resolvedLocation.get(),l=r??e.stores.location.get(),c=e.latestLocation,u=e._pendingLocation,h=u?.href===c.href?u._redirects??0:0,p=e._handoff,m=p?.[0](),y=new AbortController,g=e._preflight;if(e._preflight=y,m||p?.[1](),g?.abort(),!y.signal.aborted){const B=lc(c,r);e.emit({type:"onBeforeNavigate",...B}),y.signal.aborted||e.emit({type:"onBeforeLoad",...B})}if(y.signal.aborted){await El(e,i);return}const b=l.href===c.href;let w=y;const _=e.matchRoutes(c,{_controller:y});sf(_);const E=m?p[1](_):void 0;if(E?w=m:m?.abort(),y.signal.aborted){bt(e,_),await El(e,i);return}e._preflight=void 0;let A;const k=()=>g1(e,C,b,()=>kh(e,C),t?.sync,E),j=t?.sync?new Promise(B=>A=B):Promise.resolve().then(k),C=[w,h,c,_,Date.now(),j.then(()=>El(e,C))];if(e._tx=C,i){for(const B of e.stores.matches.get()){if(e._tx!==C)break;B.isFetching&&Bs(e,B,!1)}i[0].abort(),bt(e,i[3],C[3],!0)}if(e._tx!==C){bt(e,C[3]),C[3]=[],A?.(),await El(e,C);return}e.batch(()=>{e.stores.status.set("pending"),e.stores.location.set(c)}),(E||!e._committed.length&&_[0]?.status!=="success"&&!_.some(B=>B._notFound))&&kh(e,C),A?.(k()),await C[5]}async function v1(e,t){let i=e.buildLocation(t);for(let r=0;;r++){const l=e._committed,c=new AbortController;let u,h,p;try{try{u=e.matchRoutes(i,{_controller:c}),sf(u),h=(e._preloads??=new Map).set(c,u),p=await Bb(e,i,u,[c,r,l,!0])}finally{h&&(h=h.delete(c),bt(e,u)),c.abort()}if(!Ps(p))return p[1];if(!h||p.length<3)return;i=p[2]}catch(m){wi(m)||console.error(m);return}}}async function b1(e){const t=window.$_TSR,i=e.options.serializationAdapters;i?.length&&(t.t=new Map(i.map(V=>[V.key,V.fromSerializable])),t.buffer.forEach(V=>V())),t.initialized=!0;const r=t.router;e.ssr={manifest:r.manifest},e.options.ssr={nonce:document.querySelector('meta[property="csp-nonce"]')?.content};const l=r.matches,c=new AbortController,u=e._preflight;e._preflight=c,u?.abort();const h=()=>e._preflight===c;let p,m,y,g;try{if(await Zn(e.options.hydrate?.(r.dehydratedData),c.signal),!h())return;const V=e.history.location;y=V.href,g=V.state,e.updateLatestLocation(),p=e.latestLocation,e.stores.location.set(p),m=e.matchRoutes(p,{_controller:c})}catch(V){if(h()&&(e._preflight=void 0),c.abort(V),V!==c.signal)throw V}if(!h())return;const b=[];let w,_=0;const E=V=>{_=Math.min(_,V+1);const F=b.splice(V);for(const W of F)fn(e,W).options.loader&&(W.status==="success"||!W.invalid&&"loaderData"in W)&&Pb(e,{...W,status:"success",error:void 0,preload:!0},e._cache.get(W.id));bt(e,F)},A=l.length>m.length?m.findIndex(V=>V._notFound)+1:l.length;let k=!1;for(let V=0;V<A;V++){const F=m[V],W=l[V];if(typeof W.i!="string"||vE(W.i)!==F.id){w??=V;break}_=V+1;const he=fn(e,F);if(("l"in W||W.s==="success"&&W.e===void 0&&he.options.loader)&&(F.loaderData=W.l),F.status=W.s,F.ssr=W.ssr,he.options.ssr=F.ssr,F.updatedAt=W.u,F.error=W.e,F._notFound||=W.g,F.status==="error"||F.status==="notFound"||F._notFound){k=!0,b.push(F),(F.ssr===!1||F.ssr==="data-only")&&(w??=V);break}if(F.status==="pending"){w??=V;break}b.push(F),F.ssr==="data-only"&&(w??=V)}!k&&b.length===A&&A<m.length&&(w=A);const j=b.map(async V=>{try{const F=fn(e,V);return await(V._notFound?Promise.all([Xn(F),Xn(F,"notFoundComponent")]):Xn(F,V.status==="error"?"errorComponent":V.status==="notFound"?"notFoundComponent":void 0)),!0}catch{return!1}});let C=0;try{for(;C<j.length&&await Zn(j[C],c.signal);)C++}catch{return}if(!h())return;C<b.length&&E(C);const B=Math.max(w===b.length?b.length+1:b.length,C<j.length?C:_);for(let V=0;V<B;
11V++){const F=m[V],W=fn(e,F),he=m[V-1]?.context??e.options.context??{};let re;if(W.options.context){try{re=F._ctx=W.options.context({deps:F.loaderDeps,params:F.params,context:he,location:p,navigate:U=>e.navigate({...U,_fromLocation:p}),buildLocation:e.buildLocation,cause:F.cause,abortController:c,preload:!1,matches:m,routeId:W.id})||{}}catch{if(!h())return;if(F.status!=="error"&&F.status!=="notFound"&&!F._notFound){w=Math.min(w??V,V),E(V);break}}if(!h())return}F.context={...he,...re,...b[V]&&l[V].b}}if(await lf(e,[p,m],c.signal,0,_),!h())return;const J=w!==void 0||b.length<A,P=k&&b.length===A?m:b;let L=J?m:P,Y;if(J&&w!==void 0){const V=L[w];Y=V.ssr==="data-only"&&_>w+1?_:void 0,L=L.slice(),L[w]={...V,status:"pending",ssr:V.ssr==="data-only"?"data-only":!1,_assetEnd:Y}}const Z=()=>{const V=e.history.location;return J&&!e._tx&&V.href===y&&V.state===g&&e._committed===P&&P.length&&!c.signal.aborted?c:void 0},se=[Z,V=>{if(e._handoff!==se)return;e._handoff=void 0;const F=P.length;if(!V||!Z()||P.some((re,U)=>re.id!==V[U]?.id)){c.abort();return}let W=Y;if(W!==void 0){for(let re=F;re<W;re++)if(m[re]?.id!==V[re]?.id){W=re>w+1?re:void 0;break}}const he=P.map(re=>({...re}));W!==void 0&&(he[w]._assetEnd=W),bt(e,V.splice(0,F,...he));for(let re=F;re<V.length;re++){const U=V[re],Q=m[re];Q?.id===U.id&&Q._ctx&&(U._ctx=Q._ctx),U.abortController=c}return F}];e._committed=P,e._lifecycleEnd=zb(P),e._handoff=se,e._preflight=void 0,e.batch(()=>{e.stores.setMatches(L),e.stores.status.set("idle"),J||e.stores.resolvedLocation.set(e.stores.location.get())})}const ea=Symbol.asyncIterator,Gb=Symbol.hasInstance,Or=Symbol.isConcatSpreadable,ta=Symbol.iterator,Vb=Symbol.match,Fb=Symbol.matchAll,Yb=Symbol.replace,Kb=Symbol.search,Qb=Symbol.species,Jb=Symbol.split,Xb=Symbol.toPrimitive,Ar=Symbol.toStringTag,Wb=Symbol.unscopables,Zb={[ea]:0,[Gb]:1,[Or]:2,[ta]:3,[Vb]:4,[Fb]:5,[Yb]:6,[Kb]:7,[Qb]:8,[Jb]:9,[Xb]:10,[Ar]:11,[Wb]:12},w1={0:ea,1:Gb,2:Or,3:ta,4:Vb,5:Fb,6:Yb,7:Kb,8:Qb,9:Jb,10:Xb,11:Ar,12:Wb},S1={2:!0,3:!1,1:void 0,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:NaN},_1={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},E1={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function ke(e,t,i,r,l,c,u,h,p,m,y,g){return{t:e,i:t,s:i,c:r,m:l,p:c,e:u,a:h,f:p,b:m,o:y,l:g}}function Ba(e){return ke(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}const e0=Ba(2),t0=Ba(3),T1=Ba(1),O1=Ba(0),A1=Ba(4),k1=Ba(5),x1=Ba(6),R1=Ba(7);function C1(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case` 12`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return}}function $a(e){let t="",i=0,r;for(let l=0,c=e.length;l<c;l++)r=C1(e[l]),r&&(t+=e.slice(i,l)+r,i=l+1);return i===0?t=e:t+=e.slice(i),t}function j1(e){switch(e){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return` 13`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return" ";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return e}}function Ha(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,j1)}const Tl="__SEROVAL_REFS__",n0=new Map,br=new Map;function a0(e){return n0.has(e)}function N1(e){return br.has(e)}function L1(e){if(a0(e))return n0.get(e);throw new uT(e)}function D1(e){if(N1(e))return br.get(e);throw new dT(e)}typeof globalThis<"u"?Object.defineProperty(globalThis,Tl,{value:br,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Tl,{value:br,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Tl,{value:br,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Tl,{value:br,configurable:!0,writable:!1,enumerable:!1});function cf(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function M1(e){const t=_1[cf(e)];return e.name!==t?{name:e.name}:e.constructor.name!==t?{name:e.constructor.name}:{}}function i0(e,t){let i=M1(e);const r=Object.getOwnPropertyNames(e);for(let l=0,c=r.length,u;l<c;l++)u=r[l],u!=="name"&&u!=="message"&&(u==="stack"?t&4&&(i=i||{},i[u]=e[u]):(i=i||{},i[u]=e[u]));return i}function r0(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}
13function z1(e){switch(e){case Number.POSITIVE_INFINITY:return k1;case Number.NEGATIVE_INFINITY:return x1}return e!==e?R1:Object.is(e,-0)?A1:ke(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function s0(e){return ke(1,void 0,$a(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function U1(e){return ke(3,void 0,""+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function I1(e){return ke(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function P1(e,t){const i=t.valueOf();return ke(5,e,i!==i?"":t.toISOString(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Ra(e,t,i){return ke(36,e,i.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function q1(e,t){return ke(6,e,void 0,$a(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function B1(e,t){return ke(17,e,Zb[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function $1(e,t){return ke(18,e,$a(L1(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function H1(e,t,i){return ke(25,e,i,$a(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function G1(e,t,i){return ke(9,e,void 0,void 0,void 0,void 0,void 0,i,void 0,void 0,r0(t),void 0)}function V1(e,t){return ke(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function F1(e,t,i){return ke(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,i,t.byteOffset,void 0,t.length)}function Y1(e,t,i){return ke(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,i,t.byteOffset,void 0,t.length)}function K1(e,t,i){return ke(20,e,void 0,void 0,void 0,void 0,void 0,void 0,i,t.byteOffset,void 0,t.byteLength)}function Q1(e,t,i){return ke(13,e,cf(t),void 0,$a(t.message),i,void 0,void 0,void 0,void 0,void 0,void 0)}function J1(e,t,i){return ke(14,e,cf(t),void 0,$a(t.message),i,void 0,void 0,void 0,void 0,void 0,void 0)}function X1(e,t){return ke(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function W1(e,t){return ke(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function Z1(e,t){return ke(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function eT(e,t,i){return ke(31,e,void 0,void 0,void 0,void 0,void 0,i,t,void 0,void 0,void 0)}function tT(e,t){return ke(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function nT(e,t){return ke(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function aT(e,t){return ke(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function iT(e,t,i,r){return ke(35,e,i,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,r)}const rT={parsing:1,serialization:2,deserialization:3};function sT(e){return`Seroval Error (step: ${rT[e]})`}const oT=(e,t)=>sT(e);var o0=class extends Error{constructor(e,t){super(oT(e)),this.cause=t}},nv=class extends o0{constructor(e){super("parsing",e)}},lT=class extends o0{constructor(e){super("deserialization",e)}};function na(e){return`Seroval Error (specific: ${e})`}var uc=class extends Error{constructor(e){super(na(1)),this.value=e}},uf=class extends Error{constructor(e){super(na(2))}},cT=class extends Error{constructor(e){super(na(3))}},dc=class extends Error{constructor(e){super(na(4))}},uT=class extends Error{constructor(e){super(na(5)),this.value=e}},dT=class extends Error{constructor(e){super(na(6))}},hT=class extends Error{constructor(e){super(na(7))}},tn=class extends Error{constructor(e){super(na(8))}},l0=class extends Error{constructor(e){super(na(9))}},fT=class{constructor(e,t){this.value=e,this.replacement=t}};const df=()=>{const e={p:0,s:0,f:0};return e.p=new Promise((t,i)=>{e.s=t,e.f=i}),e},pT=()=>{const e=[],t=[];let i=!0,r=!1,l=0;const c={flush(u,h,p){for(p=0;p<l;p++)t[p]&&t[p][h](u)},up(u,h,p,m){for(h=0,p=e.length;h<p;h++)m=e[h],!i&&h===p-1?u[r?"return":"throw"](m):u.next(m)},on(u,h){return i&&(h=l++,t[h]=u),c.up(u),()=>{i&&(t[h]=t[l],t[l--]=void 0)}}};return{__SEROVAL_STREAM__:!0,on(u){return c.on(u)},next(u){i&&(e.push(u),c.flush(u,"next"))},throw(u){i&&(e.push(u),c.flush(u,"throw"),i=!1,r=!1,t.length=0)},return(u){i&&(e.push(u),c.flush(u,"return"),i=!1,r=!0,t.length=0)}}},mT=e=>t=>()=>{let i=0;const r={[e](){return r},next(){if(i>t.d)return{done:!0,value:void 0};const l=i++,c=t.v[l];if(l===t.t)throw c;return{done:l===t.d,value:c}}};return r},gT=(e,t)=>
13i=>()=>{let r=0,l=-1,c=!1;const u=[],h=[],p={finalize(y=0,g=h.length){for(;y<g;y++)h[y].s({done:!0,value:void 0})}};i.on({next(y){const g=h.shift();g&&g.s({done:!1,value:y}),u.push(y)},throw(y){const g=h.shift();g&&g.f(y),p.finalize(),l=u.length,c=!0,u.push(y)},return(y){const g=h.shift();g&&g.s({done:!0,value:y}),p.finalize(),l=u.length,u.push(y)}});const m={[e](){return m},next(){if(l===-1){const b=r++;if(b>=u.length){const w=t();return h.push(w),w.p}return{done:!1,value:u[b]}}if(r>l)return{done:!0,value:void 0};const y=r++,g=u[y];if(y!==l)return{done:!1,value:g};if(c)throw g;return{done:!0,value:g}}};return m},yT=e=>{const t=atob(e),i=t.length,r=new Uint8Array(i);for(let l=0;l<i;l++)r[l]=t.charCodeAt(l);return r.buffer};function vT(e){return"__SEROVAL_SEQUENCE__"in e}function c0(e,t,i){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:i}}function bT(e){const t=[];let i=-1,r=-1;const l=e[ta]();for(;;)try{const c=l.next();if(t.push(c.value),c.done){r=t.length-1;break}}catch(c){i=t.length,t.push(c)}return c0(t,i,r)}const wT=mT(ta);function ST(e){return wT(e)}const _T={},ET={},TT={0:{},1:{},2:{},3:{},4:{},5:{}};function OT(e){return"__SEROVAL_STREAM__"in e}function eo(){return pT()}function AT(e){const t=eo(),i=e[ea]();async function r(){try{const l=await i.next();l.done?t.return(l.value):(t.next(l.value),await r())}catch(l){t.throw(l)}}return r().catch(()=>{}),t}const kT=gT(ea,df);function xT(e){return kT(e)}async function RT(e){try{return[1,await e]}catch(t){return[0,t]}}function CT(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function Vl(e,t){e.marked.add(t)}function jT(e,t){const i=e.refs.size;return e.refs.set(t,i),i}function hc(e,t){const i=e.refs.get(t);
13return i!=null?(Vl(e,i),{type:1,value:I1(i)}):{type:0,value:jT(e,t)}}function hf(e,t){const i=hc(e,t);return i.type===1?i:a0(t)?{type:2,value:$1(i.value,t)}:i}function gi(e,t){const i=hf(e,t);if(i.type!==0)return i.value;if(t in Zb)return B1(i.value,t);throw new uc(t)}function fc(e,t){const i=hc(e,TT[t]);return i.type===1?i.value:ke(26,i.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function NT(e){const t=hc(e,_T);return t.type===1?t.value:ke(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,gi(e,ta),void 0,void 0,void 0)}function LT(e){const t=hc(e,ET);return t.type===1?t.value:ke(29,t.value,void 0,void 0,void 0,void 0,void 0,[fc(e,1),gi(e,ea)],void 0,void 0,void 0,void 0)}function DT(e,t,i,r){return ke(i?11:10,e,void 0,void 0,void 0,r,void 0,void 0,void 0,void 0,r0(t),void 0)}function MT(e,t,i,r){return ke(8,t,void 0,void 0,void 0,void 0,{k:i,v:r},void 0,fc(e,0),void 0,void 0,void 0)}function zT(e,t,i){const r=new Uint8Array(i);let l="";for(let c=0,u=r.length;c<u;c++)l+=String.fromCharCode(r[c]);return ke(19,t,$a(btoa(l)),void 0,void 0,void 0,void 0,void 0,fc(e,5),void 0,void 0,void 0)}function UT(e,t){return{base:CT(e,t),child:void 0}}var IT=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return st(this._p,this.depth,e)}};async function PT(e,t,i){const r=[];for(let l=0,c=i.length;l<c;l++)l in i?r[l]=await st(e,t,i[l]):r[l]=0;return r}async function qT(e,t,i,r){return G1(i,r,await PT(e,t,r))}async function ff(e,t,i){const r=Object.entries(i),l=[],c=[];for(let u=0,h=r.length;u<h;u++)l.push($a(r[u][0])),c.push(await st(e,t,r[u][1]));return ta in i&&(l.push(gi(e.base,ta)),c.push(W1(NT(e.base),await st(e,t,bT(i))))),ea in i&&(l.push(gi(e.base,ea)),c.push(Z1(LT(e.base),await st(e,t,AT(i))))),Ar in i&&(l.push(gi(e.base,Ar)),c.push(s0(i[Ar]))),Or in i&&(l.push(gi(e.base,Or)),c.push(i[Or]?e0:t0)),{k:l,v:c}}async function Jd(e,t,i,r,l){return DT(i,r,l,await ff(e,t,r))}async function BT(e,t,i,r){return V1(i,await st(e,t,r.valueOf()))}async function $T(e,t,i,r){return F1(i,r,await st(e,t,r.buffer))}async function HT(e,t,i,r){return Y1(i,r,await st(e,t,r.buffer))}async function GT(e,t,i,r){return K1(i,r,await st(e,t,r.buffer))}async function av(e,t,i,r){const l=i0(r,e.base.features);return Q1(i,r,l?await ff(e,t,l):void 0)}async function VT(e,t,i,r){const l=i0(r,e.base.features);return J1(i,r,l?await ff(e,t,l):void 0)}async function FT(e,t,i,r){const l=[],c=[];for(const[u,h]of r.entries())l.push(await st(e,t,u)),c.push(await st(e,t,h));return MT(e.base,i,l,c)}async function YT(e,t,i,r){const l=[];for(const c of r.keys())l.push(await st(e,t,c));return X1(i,l)}async function u0(e,t,i,r){const l=e.base.plugins;if(l)for(let c=0,u=l.length;c<u;c++){const h=l[c];if(h.parse.async&&h.test(r))return H1(i,h.tag,await h.parse.async(r,new IT(e,t),{id:i}))}}async function KT(e,t,i,r){const[l,c]=await RT(r);return ke(12,i,l,void 0,void 0,void 0,void 0,void 0,await st(e,t,c),void 0,void 0,void 0)}function QT(e,t,i,r,l){const c=[],u=i.on({next:h=>{Vl(this.base,t),st(this,e,h).then(p=>{c.push(tT(t,p))},p=>{l(p),u()})},throw:h=>{Vl(this.base,t),st(this,e,h).then(p=>{c.push(nT(t,p)),r(c),u()},p=>{l(p),u()})},return:h=>{Vl(this.base,t),st(this,e,h).then(p=>{c.push(aT(t,p)),r(c),u()},p=>{l(p),u()})}})}async function JT(e,t,i,r){return eT(i,fc(e.base,4),await new Promise(QT.bind(e,t,i,r)))}async function XT(e,t,i,r){const l=[];for(let c=0,u=r.v.length;c<u;c++)l[c]=await st(e,t,r.v[c]);return iT(i,l,r.t,r.d)}async function WT(e,t,i,r){if(Array.isArray(r))return qT(e,t,i,r);if(OT(r))return JT(e,t,i,r);if(vT(r))return XT(e,t,i,r);let l=r.constructor;if(l!==void 0&&typeof l!="function"){const h=Object.getPrototypeOf(r);l=h===null?void 0:h.constructor}if(l===fT)return st(e,t,r.replacement);const c=await u0(e,t,i,r);if(c)return c;switch(l){case Object:return Jd(e,t,i,r,!1);case void 0:return Jd(e,t,i,r,!0);case Date:return P1(i,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return av(e,t,i,r);case Number:case Boolean:case String:case BigInt:return BT(e,t,i,r);case ArrayBuffer:return zT(e.base,i,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return $T(e,t,i,r);case DataView:return GT(e,t,i,r);case Map:return FT(e,t,i,r);case Set:return YT(e,t,i,r)}
13if(l===Promise||r instanceof Promise)return KT(e,t,i,r);const u=e.base.features;if(u&32&&l===RegExp)return q1(i,r);if(u&16)switch(l){case BigInt64Array:case BigUint64Array:return HT(e,t,i,r)}if(u&1&&typeof AggregateError<"u"&&(l===AggregateError||r instanceof AggregateError))return VT(e,t,i,r);if(u&64&&typeof Temporal<"u")switch(l){case Temporal.Instant:return Ra(i,0,r);case Temporal.Duration:return Ra(i,1,r);case Temporal.PlainDate:return Ra(i,2,r);case Temporal.PlainDateTime:return Ra(i,3,r);case Temporal.PlainMonthDay:return Ra(i,4,r);case Temporal.PlainTime:return Ra(i,5,r);case Temporal.PlainYearMonth:return Ra(i,6,r);case Temporal.ZonedDateTime:return Ra(i,7,r)}if(r instanceof Error)return av(e,t,i,r);if(ta in r||ea in r)return Jd(e,t,i,r,!!l);throw new uc(r)}async function ZT(e,t,i){const r=hf(e.base,i);if(r.type!==0)return r.value;const l=await u0(e,t,r.value,i);if(l)return l;throw new uc(i)}async function st(e,t,i){if(t>=e.base.depthLimit)throw new l0(e.base.depthLimit);switch(typeof i){case"boolean":return i?e0:t0;case"undefined":return T1;case"string":return s0(i);case"number":return z1(i);case"bigint":return U1(i);case"object":if(i){const r=hf(e.base,i);return r.type===0?await WT(e,t+1,r.value,i):r.value}return O1;case"symbol":return gi(e.base,i);case"function":return ZT(e,t,i);default:throw new uc(i)}}async function eO(e,t){try{return await st(e,0,t)}catch(i){throw i instanceof nv?i:new nv(i)}}function d0(e,t){for(let i=0,r=t.length;i<r;i++){const l=t[i];e.has(l)||(e.add(l),l.extends&&d0(e,l.extends))}}function h0(e){if(e){const t=new Set;return d0(t,e),[...t]}}function tO(e){switch(e){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new hT(e)}}function nO(e){switch(e){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function aO(e){switch(e){case ea:case Or:case Ar:case ta:return!0;default:return!1}}const iO=1e6,rO=1e4,sO=2e4;function f0(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}const oO=1e3;function lO(e,t){var i;const r=t.refs||new Map;return"types"in r||Object.assign(r,{types:new Map}),{mode:e,plugins:t.plugins,refs:r,features:(i=t.features)!==null&&i!==void 0?i:127^(t.disabledFeatures||0),depthLimit:t.depthLimit||oO}}function cO(e){return{mode:2,base:lO(2,e),child:void 0}}var uO=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return $e(this._p,this.depth,e)}};function p0(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new tn({t:4,i:t});if(e.refs.has(t))throw new Error("Conflicted ref id: "+t)}function m0(e){return!!e&&typeof e=="object"&&"then"in e&&typeof e.then=="function"}function dO(e,t,i){return p0(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,i),i}function hO(e,t,i){return p0(e.base,t),e.base.refs.set(t,i),i}function it(e,t,i){return e.mode===1?dO(e,t,i):hO(e,t,i)}function xh(e,t,i){if(Object.hasOwn(t,i))return t[i];throw new tn(e)}function fO(e,t){return it(e,t.i,D1(Ha(t.s)))}function pO(e,t,i){const r=i.a,l=r.length,c=it(e,i.i,new Array(l));for(let u=0,h;u<l;u++)h=r[u],h&&(c[u]=$e(e,t,h));return f0(c,i.o),c}function iv(e,t,i){nO(t)?e[t]=i:Object.defineProperty(e,t,{value:i,configurable:!0,enumerable:!0,writable:!0})}function mO(e,t,i,r,l){if(typeof r=="string")iv(i,Ha(r),$e(e,t,l));else{const c=$e(e,t,r);switch(typeof c){case"string":iv(i,c,$e(e,t,l));break;case"symbol":aO(c)&&(i[c]=$e(e,t,l));break;default:throw new tn(r)}}}function g0(e,t,i){e.base.refs.types.set(t,i)}function pc(e,t,i,r){if(e.base.refs.types.get(i)!==r)throw new tn(t)}function y0(e,t,i,r){const l=i.k;if(l.length>0)for(let c=0,u=i.v,h=l.length;c<h;c++)mO(e,t,r,l[c],u[c]);return r}function gO(e,t,i){const r=it(e,i.i,i.t===10?{}:Object.create(null));return y0(e,t,i.p,r),f0(r,i.o),r}function yO(e,t){return it(e,t.i,new Date(t.s))}function vO(e,t){if(!(e.base.features&64))throw new uf(t);let i;switch(t.c){case 0:i=Temporal.Instant.from(t.s);break;case 1:i=Temporal.Duration.from(t.s);break;case 2:i=Temporal.PlainDate.from(t.s);break;case 3:i=Temporal.PlainDateTime.from(t.s);break;case 4:i=Temporal.PlainMonthDay.from(t.s);break;case 5:i=Temporal.PlainTime.from(t.s);break;case 6:i=Temporal.PlainYearMonth.from(t.s);break;case 7:i=Temporal.ZonedDateTime.from(t.s);break;default:throw new tn(t)}return it(e,t.i,i)}function bO(e,t){if(e.base.features&32){const i=Ha(t.c);if(i.length>sO)throw new tn(t);return it(e,t.i,new RegExp(i,t.m))}throw new uf(t)}function wO(e,t,i){const r=it(e,i.i,new Set);for(let l=0,c=i.a,u=c.length;l<u;l++)r.add($e(e,t,c[l]));return r}function SO(e,t,i){const r=it(e,i.i,new Map);for(let l=0,c=i.e.k,u=i.e.v,h=c.length;l<h;l++)r.set($e(e,t,c[l]),$e(e,t,u[l]));return r}function _O(e,t){if(t.s.length>iO)throw new tn(t);return it(e,t.i,yT(Ha(t.s)))}function EO(e,t,i){var r;const l=tO(i.c),c=$e(e,t,i.f),u=(r=i.b)!==null&&r!==void 0?r:0;if(u<0||u>c.byteLength)throw new tn(i);return it(e,i.i,new l(c,u,i.l))}function TO(e,t,i){var r;const l=$e(e,t,i.f),c=(r=i.b)!==null&&r!==void 0?r:0;if(c<0||c>l.byteLength)throw new tn(i);return it(e,i.i,new DataView(l,c,i.l))}function v0(e,t,i,r){if(i.p){const l=y0(e,t,i.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(l))}return r}function OO(e,t,i){return v0(e,t,i,it(e,i.i,new AggregateError([],Ha(i.m))))}function AO(e,t,i){const r=xh(i,E1,i.s);return v0(e,t,i,it(e,i.i,new r(Ha(i.m))))}function kO(e,t,i){const r=df(),l=it(e,i.i,r.p),c=$e(e,t,i.f);if(m0(c))throw new tn(i.f);return i.s?r.s(c):r.f(c),l}
13function xO(e,t,i){return it(e,i.i,Object($e(e,t,i.f)))}function RO(e,t,i){const r=e.base.plugins;if(r){const l=Ha(i.c);for(let c=0,u=r.length;c<u;c++){const h=r[c];if(h.tag===l)return it(e,i.i,h.deserialize(i.s,new uO(e,t),{id:i.i}))}}throw new cT(i.c)}function CO(e,t){const i=it(e,t.i,it(e,t.s,df()).p);return g0(e,t.s,22),i}function jO(e,t,i){const r=e.base.refs.get(i.i);if(r){pc(e,i,i.i,22);const l=$e(e,t,i.a[1]);if(m0(l))throw new tn(i.a[1]);i.t===23?r.s(l):r.f(l);return}throw new dc("Promise")}function NO(e,t,i){return $e(e,t,i.a[0]),ST($e(e,t,i.a[1]))}function LO(e,t,i){return $e(e,t,i.a[0]),xT($e(e,t,i.a[1]))}function DO(e,t,i){const r=it(e,i.i,eo());g0(e,i.i,31);const l=i.a,c=l.length;if(c)for(let u=0;u<c;u++)$e(e,t,l[u]);return r}function MO(e,t,i){const r=e.base.refs.get(i.i);if(r){pc(e,i,i.i,31),r.next($e(e,t,i.f));return}throw new dc("Stream")}function zO(e,t,i){const r=e.base.refs.get(i.i);if(r){pc(e,i,i.i,31),r.throw($e(e,t,i.f));return}throw new dc("Stream")}function UO(e,t,i){const r=e.base.refs.get(i.i);if(r){pc(e,i,i.i,31),r.return($e(e,t,i.f));return}throw new dc("Stream")}function IO(e,t,i){$e(e,t,i.f)}function PO(e,t,i){$e(e,t,i.a[1])}function qO(e,t,i){const r=it(e,i.i,c0([],i.s,i.l));for(let l=0,c=i.a.length;l<c;l++)r.v[l]=$e(e,t,i.a[l]);return r}function $e(e,t,i){if(t>e.base.depthLimit)throw new l0(e.base.depthLimit);switch(t+=1,i.t){case 2:return xh(i,S1,i.s);case 0:return Number(i.s);case 1:return Ha(String(i.s));case 3:if(String(i.s).length>rO)throw new tn(i);return BigInt(i.s);case 4:return e.base.refs.get(i.i);case 18:return fO(e,i);case 9:return pO(e,t,i);case 10:case 11:return gO(e,t,i);case 5:return yO(e,i);case 6:return bO(e,i);case 7:return wO(e,t,i);case 8:return SO(e,t,i);case 19:return _O(e,i);case 16:case 15:return EO(e,t,i);case 20:return TO(e,t,i);case 14:return OO(e,t,i);case 13:return AO(e,t,i);case 12:return kO(e,t,i);case 17:return xh(i,w1,i.s);case 21:return xO(e,t,i);case 25:return RO(e,t,i);case 22:return CO(e,i);case 23:case 24:return jO(e,t,i);case 28:return NO(e,t,i);case 30:return LO(e,t,i);case 31:return DO(e,t,i);case 32:return MO(e,t,i);case 33:return zO(e,t,i);case 34:return UO(e,t,i);case 27:return IO(e,t,i);case 29:return PO(e,t,i);case 35:return qO(e,t,i);case 36:return vO(e,i);default:throw new uf(i)}}function BO(e,t){try{return $e(e,0,t)}catch(i){throw new lT(i)}}function $O(e,t){return BO(cO({plugins:h0(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function HO(e,t={}){const i=UT(1,{plugins:h0(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await eO(i,e),f:i.base.features,m:Array.from(i.base.marked)}}function GO(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,i){return{v:i.parse(e.toSerializable(t))}},async async(t,i){return{v:await i.parse(e.toSerializable(t))}},stream(t,i){return{v:i.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,i){return e.fromSerializable(i.deserialize(t.v))}}}function b0(e){if(Array.isArray(e))return e.flatMap(y=>b0(y));if(typeof e!="string")return[];const t=[];let i=0,r,l,c,u,h;const p=()=>{for(;i<e.length&&/\s/.test(e.charAt(i));)i+=1;return i<e.length},m=()=>(l=e.charAt(i),l!=="="&&l!==";"&&l!==",");for(;i<e.length;){for(r=i,h=!1;p();)if(l=e.charAt(i),l===","){for(c=i,i+=1,p(),u=i;i<e.length&&m();)i+=1;i<e.length&&e.charAt(i)==="="?(h=!0,i=u,t.push(e.slice(r,c)),r=i):i=c+1}else i+=1;(!h||i>=e.length)&&t.push(e.slice(r))}return t}function VO(e){return e instanceof Headers?e:Array.isArray(e)?new Headers(e):typeof e=="object"?new Headers(e):null}function FO(...e){return e.reduce((t,i)=>{const r=VO(i);if(!r)return t;for(const[l,c]of r.entries())l==="set-cookie"?b0(c).forEach(u=>t.append("set-cookie",u)):t.set(l,c);return t},new Headers)}const YO={tag:"$TSR/Error",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return"new Error("+t.serialize(e.message)+")"},deserialize(e,t){return new Error(t.deserialize(e.message))}};var KO=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};function w0(e){const t=[];for(let i=0;i<e.length;i+=32768)t.push(String.fromCharCode.apply(null,e.subarray(i,i+32768)));return btoa(t.join(""))}function S0(e){const t=atob(e),i=new Uint8Array(t.length);for(let r=0;r<t.length;r++)i[r]=t.charCodeAt(r);return i}
13const QO=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});function JO(e){try{return"t"+QO.decode(e)}catch{return"b"+w0(e)}}const XO=new TextEncoder;function WO(e){const t=e.slice(1);return e[0]==="t"?XO.encode(t):S0(t)}function ZO(e,t,i){i?.throwIfAborted();const r=eo(),l=e.getReader();let c=!0;const u=()=>{c=!1,i?.removeEventListener("abort",p),l.releaseLock()},h=m=>c?(l.cancel(m).catch(()=>{}),u(),!0):!1,p=()=>{h(i.reason)&&r.throw(i.reason)};return i?.addEventListener("abort",p),(async()=>{try{for(;c;){const{done:m,value:y}=await l.read();if(!c)return;if(m){u(),r.return(void 0);return}r.next(t(y))}}catch(m){h(m)&&r.throw(m)}})(),[r,h]}function eA(e,t){let i,r=!1;return new ReadableStream({start(l){const c=e.on({next(u){if(!r)try{l.enqueue(t(u))}catch(h){r=!0;const p=i;i=void 0,p?.(),l.error(h)}},throw(u){r||(r=!0,i=void 0,l.error(u))},return(){r||(r=!0,i=void 0,l.close())}});r?c():i=c},cancel(){const l=i;i=void 0,l?.()}})}function _0(e){return{tag:"tss/RawStream",test:t=>t instanceof KO,parse:{async:async(t,i)=>{const r=await i.parse(t.hint==="text"),[l]=ZO(t.stream,t.hint==="text"?JO:w0,e);return{text:r,stream:await i.parse(l)}}},serialize:void 0,deserialize:void 0}}const tA=_0(),nA={tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(e,t){return eA(t.deserialize(e.stream),t.deserialize(e.text)?WO:S0)}},Na={},E0=e=>new ReadableStream({start(t){e.on({next(i){try{t.enqueue(i)}catch{}},throw(i){t.error(i)},return(){try{t.close()}catch{}}})}}),aA={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===Na},parse:{sync(){return Na},async async(){return await Promise.resolve(Na)},stream(){return Na}},serialize(){return E0.toString()},deserialize(){return Na}};async function T0(e,t){try{const i=await t.read();i.done?(e.return(i.value),t.releaseLock()):(e.next(i.value),await T0(e,t))}catch(i){e.throw(i)}}function iA(e){e.cancel().catch(()=>{}),e.releaseLock()}function rv(e){const t=eo(),i=e.getReader(),r=iA.bind(null,i);return T0(t,i).catch(r),[t,r]}const rA={tag:"seroval/plugins/web/ReadableStream",extends:[aA],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Na),stream:t.parse(eo())}},async async(e,t){return{factory:await t.parse(Na),stream:await t.parse(rv(e)[0])}},stream(e,t){const[i,r]=rv(e);return t.addCleanup(r),{factory:t.parse(Na),stream:t.parse(i)}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){const i=t.deserialize(e.stream);return E0(i)}};function O0(e){return[YO,e?_0(e):tA,rA]}const sA=O0();[...sA];function oA(e){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(t,i){return e(i.deserialize(t.streamId))}}}function lA(e){return[...Xh()?.serializationAdapters?.map(GO)??[],...e]}function A0(e){return lA(O0(e))}var sv=new TextDecoder,Sn=new Uint8Array,cA=new ByteLengthQueuingStrategy({highWaterMark:0});function uA(e){const t=e.getReader(),i=new Map;let r=0,l,c;const u=()=>{l?.(),l=void 0},h=(g,b)=>{const w=g[1];g[1]=!1,w&&(b===1?w.close():w.error(b[0]))},p=new ReadableStream({start(g){c=g},pull:u,cancel(g){const b=[g===void 0?new Error("Framed response cancelled"):g];r=b,u(),t.cancel(g).catch(()=>{});for(const w of i.values())h(w,b)}});function m(g){const b=i.get(g);if(b)return b;if(i.size>=1024)throw new Error("Too many raw streams");let w;const _=[new ReadableStream({start(E){w=E},cancel(){_[1]!==!1&&(_[1]=null)}},cA),w];return i.set(g,_),r!==0&&h(_,r),_}function y(g){if(g===0||g>>>0!==g)throw new RangeError("Invalid raw stream ID");return m(g)[0]}return(async()=>{let g=Sn,b=0;async function w(){for(;b===g.byteLength;){g=Sn,b=0;const E=await t.read();if(r!==0||E.done)return!1;g=E.value}return!0}async function _(E,A){if(E===0)return Sn;if(!await w()){if(A)return;throw new Error("Incomplete frame")}if(g.byteLength-b>=E){const C=g.subarray(b,b+E);return b+=E,b===g.byteLength&&(g=Sn,b=0),C}const k=new Uint8Array(E);let j=0;for(;j<E;){if(!await w())throw new Error("Incomplete frame");const C=Math.min(E-j,g.byteLength-b);k.set(g.subarray(b,b+C),j),b+=C,j+=C}return b===g.byteLength&&(g=Sn,b=0),k}try{for(;r===0;){let E=await _(9,!0);if(r!==0)return;if(!E){for(const J of i.values())if(J[1])throw new Error("Incomplete raw
13stream");r=1,c.close();return}const A=E[0],k=(E[1]<<24|E[2]<<16|E[3]<<8|E[4])>>>0,j=(E[5]<<24|E[6]<<16|E[7]<<8|E[8])>>>0;if(E=Sn,A>3||A===0!=(k===0)||j>16777216||A===2&&j!==0)throw new Error("Invalid frame");const C=A===0?void 0:m(k);if(C?.[1]===!1)throw new Error("Raw stream already ended");let B=await _(j);if(r!==0)return;if(!C){const J=sv.decode(B);for(B=Sn,c.enqueue(J);r===0&&c.desiredSize<=0;)await new Promise(P=>{l=P});continue}if(A===1){const J=C[1];if(J){if(-J.desiredSize>134217728){J.error(new Error(`Raw stream ${k} has too many unread bytes`)),C[1]=null,B=Sn;continue}const P=B.byteLength*4<B.buffer.byteLength?B.slice():B;B=Sn,J.enqueue(P)}}else h(C,A===2?1:[new Error(sv.decode(B))])}}catch(E){if(r===0){const A=[E];r=A,t.cancel(E).catch(()=>{}),c.error(E);for(const k of i.values())h(k,A)}}finally{g=Sn,t.releaseLock()}})(),[p,y]}const Tn=Symbol.for("TSR_DEFERRED_PROMISE");function dA(e,t){const i=e;return i[Tn]||(i[Tn]={status:"pending"},i.then(r=>{i[Tn].status="success",i[Tn].data=r}).catch(r=>{i[Tn].status="error",i[Tn].error={data:a1(r),__isServerError:!0}})),i}const hA="Error preloading route! âï¸";function k0(e,t){if(e)return typeof e=="string"?e:e[t]}function fA(e){return e?.scriptFormat??"module"}function pA(e,t,i){const r=mA(t),l=k0(i,"script")??r.crossOrigin;return{...fA(e)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:r.href,...l?{crossOrigin:l}:{}}}function mA(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function Ol(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const i=new Set;for(const r of t){const l=JSON.stringify(r);i.has(l)||(i.add(l),e.push(r))}}function gA(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function yA(e,t,i,r){const l=Ub(e),c=[],u=[];for(const h of l)for(const p of Array.isArray(h.scripts)?h.scripts:[]){if(!p)continue;const{children:m,...y}=p;c.push({tag:"script",attrs:{...y,...r,nonce:i},children:m})}if(t)for(const h of l)for(const p of t.routes[h.routeId]?.scripts??[])u.push({tag:"script",attrs:{...p.attrs,nonce:i},children:p.children});return[c,u]}function vA([e,t],i){return[...e,...t]}var x0=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t,this._branch=void 0;const i=this.options,r=!i?.path&&!i?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=Tr:this.parentRoute||Us();let l=r?Tr:i?.path;l&&l!=="/"&&(l=Ob(l));const c=i?.id||l,u=r?Tr:Er((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(c??""));l==="__root__"&&(l="/");const h=u==="__root__"?"/":l===void 0?this.parentRoute.fullPath:Er(this.parentRoute.fullPath+"/"+l);this._path=l,this._id=u,this._fullPath=h,this._to=An(h)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>_r({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},bA=class extends x0{constructor(e){super(e)}};var $s;function Rh(e,t,i){try{return $O(e,t)}catch(r){throw C0(i),r}}async function R0(e){e.length>0&&(await Promise.allSettled(e),e.length=0)}function C0(e){for(const t of e)t.catch(()=>{});e.length=0}var wA=Object.prototype.hasOwnProperty;function j0(e){for(const t in e)if(wA.call(e,t))return!0;return!1}async function SA(e,t,i){$s||($s=A0());const r=t[0],l=r.fetch??i,c=r.data instanceof FormData,u=new Headers(r.headers);if(u.set("x-tsr-serverFn","true"),c||u.set("accept",`${gE}, application/x-ndjson, application/json`),r.method==="GET"){if(c)throw new Error("FormData is not supported with GET requests");const p=await N0(r);if(p!==void 0){const m=Nb({payload:p});e.includes("?")?e+=`&${m}`:e+=`?${m}`}}let h;return r.method==="POST"&&(h=await _A(r),typeof h=="string"&&u.set("content-type","application/json")),EA(()=>l(e,{method:r.method,headers:u,signal:r.signal,body:h}))}async function N0(e){let t;return e.data!==void 0&&(t={data:e.data}),e.context&&j0(e.context)&&((t??={}).context=e.context),t?L0(t,e.signal):void 0}async function L0(e,t){t?.throwIfAborted();let i;try{i=await HO(e,{plugins:t?A0(t):$s})}finally{t?.throwIfAborted()}return JSON.stringify(i)}async function _A(e){if(e.data instanceof FormData){let t;return e.context&&j0(e.context)&&(t=await L0(e.context,e.signal)),t!==void 0&&e.data.set(mE,t),e.data}return N0(e)}async function EA(e){let t;try{t=await e()}catch(r){if(r instanceof Response)t=r;else throw r}if(t.headers.get("x-tss-raw")==="true")return t;const i=t.headers.get("content-type");if(i||Us(),t.headers.get("x-tss-serialized")){let r;if(i.includes("application/x-tss-framed")){const l=/;\s*v=(\d+)/.exec(i)?.[1];if(l&&+l!=1)throw new Error(`Unsupported framed protocol version ${l}`);if(!t.body)throw new Error("No response body for framed response");const[c,u]=uA(t.body);r=await TA(c,[oA(u),...$s])}else if(i.includes("application/json")){const l=await t.json(),c=[];r=Rh(l,{plugins:$s},c),await R0(c)}if(r||Us(),r instanceof Error)throw r;return r}if(i.includes("application/json")){const r=await t.json(),l=wb(r);if(l)throw l;if(wi(r))throw r;return r}if(!t.ok)throw new Error(await t.text());return t}
13async function TA(e,t){const i=e.getReader(),r={refs:new Map,plugins:t},l=h=>{i.cancel(h).catch(()=>{})};let c;const u=[];try{const h=await i.read();if(h.done)throw new Error("Stream ended before first object");c=Rh(JSON.parse(h.value),r,u)}catch(h){throw l(h),i.releaseLock(),h}return(async()=>{const h=[];try{for(;;){const p=await i.read();if(p.done)return;Rh(JSON.parse(p.value),r,h),C0(h)}}catch(p){l(p),console.error("Stream processing error:",p)}finally{i.releaseLock()}})(),await R0(u),c}function wt(e){const t="/_serverFn/"+e;return Object.assign((...l)=>{const c=Xh()?.serverFns?.fetch;return SA(t,l,c??fetch)},{url:t,serverFnMeta:{id:e},[_h]:!0})}var OA={key:"$TSS/serverfn",test:e=>typeof e!="function"||!(_h in e)?!1:!!e[_h],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>wt(e)},Wl=ee.use,D0=ee.useLayoutEffect;function AA({promise:e}){if(Wl)return Wl(e);const t=dA(e);if(t[Tn].status==="pending")throw t;if(t[Tn].status==="error")throw t[Tn].error;return t[Tn].data}function kA(e){const t=T.jsx(xA,{...e});return e.fallback?T.jsx(ee.Suspense,{fallback:e.fallback,children:t}):t}function xA(e){const t=AA(e);return e.children(t)}var pf=class extends ee.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){const i=e.getResetKey();return t.error&&t.resetKey!==i?{resetKey:i,error:0}:{resetKey:i}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){const e=this.state.error;return e?ee.createElement(this.props.errorComponent??RA,{error:e[0],reset:this.reset}):this.props.children}};function RA({error:e}){const[t,i]=ee.useState(!1);return T.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[T.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[T.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),T.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(r=>!r),children:t?"Hide Error":"Show Error"})]}),T.jsx("div",{style:{height:".25rem"}}),t?T.jsx("div",{children:T.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e?.message?T.jsx("code",{children:e.message}):null})}):null]})}var ov=()=>!0,CA=()=>!1;function jA({children:e,fallback:t=null}){return T.jsx(Zs.Fragment,{children:mf()?e:t})}function mf(e=!0){return Zs.useSyncExternalStore(NA,ov,e?CA:ov)}function NA(){return()=>{}}var M0=ee.createContext(null);function St(e){return ee.useContext(M0)}var gf=ee.createContext(void 0),LA=ee.createContext(void 0);function DA({update:e,notify:t,unwatched:i}){return{link:r,unlink:l,propagate:c,checkDirty:u,shallowPropagate:h};function r(m,y,g){const b=y.depsTail;if(b!==void 0&&b.dep===m)return;const w=b!==void 0?b.nextDep:y.deps;if(w!==void 0&&w.dep===m){w.version=g,y.depsTail=w;return}const _=m.subsTail;if(_!==void 0&&_.version===g&&_.sub===y)return;const E=y.depsTail=m.subsTail={version:g,dep:m,sub:y,prevDep:b,nextDep:w,prevSub:_,nextSub:void 0};w!==void 0&&(w.prevDep=E),b!==void 0?b.nextDep=E:y.deps=E,_!==void 0?_.nextSub=E:m.subs=E}function l(m,y=m.sub){const g=m.dep,b=m.prevDep,w=m.nextDep,_=m.nextSub,E=m.prevSub;return w!==void 0?w.prevDep=b:y.depsTail=b,b!==void 0?b.nextDep=w:y.deps=w,_!==void 0?_.prevSub=E:g.subsTail=E,E!==void 0?E.nextSub=_:(g.subs=_)===void 0&&i(g),w}function c(m){let y=m.nextSub,g;e:do{const b=m.sub;let w=b.flags;if(w&60?w&12?w&4?!(w&48)&&p(m,b)?(b.flags=w|40,w&=1):w=0:b.flags=w&-9|32:w=0:b.flags=w|32,w&2&&t(b),w&1){const _=b.subs;if(_!==void 0){const E=(m=_).nextSub;E!==void 0&&(g={value:y,prev:g},y=E);continue}}if((m=y)!==void 0){y=m.nextSub;continue}for(;g!==void 0;)if(m=g.value,g=g.prev,m!==void 0){y=m.nextSub;continue e}break}while(!0)}function u(m,y){let g,b=0,w=!1;e:do{const _=m.dep,E=_.flags;if(y.flags&16)w=!0;else if((E&17)===17){if(e(_)){const A=_.subs;A.nextSub!==void 0&&h(A),w=!0}}else if((E&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(g={value:m,prev:g}),m=_.deps,y=_,++b;continue}if(!w){const A=m.nextDep;if(A!==void 0){m=A;continue}}for(;b--;){const A=y.subs,k=A.nextSub!==void 0;
13if(k?(m=g.value,g=g.prev):m=A,w){if(e(y)){k&&h(A),y=m.sub;continue}w=!1}else y.flags&=-33;y=m.sub;const j=m.nextDep;if(j!==void 0){m=j;continue e}}return w}while(!0)}function h(m){do{const y=m.sub,g=y.flags;(g&48)===32&&(y.flags=g|16,(g&6)===2&&t(y))}while((m=m.nextSub)!==void 0)}function p(m,y){let g=y.depsTail;for(;g!==void 0;){if(g===m)return!0;g=g.prevDep}return!1}}function MA(e,t,i){const r=typeof e=="object",l=r?e:void 0;return{next:(r?e.next:e)?.bind(l),error:(r?e.error:t)?.bind(l),complete:(r?e.complete:i)?.bind(l)}}const Ch=[];let Fl=0;const{link:lv,unlink:zA,propagate:UA,checkDirty:z0,shallowPropagate:cv}=DA({update(e){return e._update()},notify(e){Ch[jh++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Zl(e))}});let Al=0,jh=0,cn,Nh=0;function IA(e){try{++Nh,e()}finally{--Nh||U0()}}function Zl(e){const t=e.depsTail;let i=t!==void 0?t.nextDep:e.deps;for(;i!==void 0;)i=zA(i,e)}function U0(){if(!(Nh>0)){for(;Al<jh;){const e=Ch[Al];Ch[Al++]=void 0,e.notify()}Al=0,jh=0}}function uv(e,t){const i=typeof e=="function",r=e,l={_snapshot:i?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?0:1,get(){return cn!==void 0&&lv(l,cn,Fl),l._snapshot},subscribe(c){const u=MA(c),h={current:!1},p=PA(()=>{l.get(),h.current?(cn=void 0,u.next?.(l._snapshot)):h.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(c){const u=cn,h=t?.compare??Object.is;if(i)cn=l,++Fl,l.depsTail=void 0;else if(c===void 0)return!1;i&&(l.flags=5);try{const p=l._snapshot,m=typeof c=="function"?c(p):c===void 0&&i?r(p):c;return p===void 0||!h(p,m)?(l._snapshot=m,!0):!1}finally{cn=u,i&&(l.flags&=-5),Zl(l)}}};return i?(l.flags=17,l.get=function(){const c=l.flags;if(c&16||c&32&&z0(l.deps,l)){if(l._update()){const u=l.subs;u!==void 0&&cv(u)}}else c&32&&(l.flags=c&-33);return cn!==void 0&&lv(l,cn,Fl),l._snapshot}):l.set=function(c){if(l._update(c)){const u=l.subs;u!==void 0&&(UA(u),cv(u),U0())}},l}function PA(e){const t=()=>{const r=cn;cn=i,++Fl,i.depsTail=void 0,i.flags=6;try{return e()}finally{cn=r,i.flags&=-5,Zl(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){const r=this.flags;r&16||r&32&&z0(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Zl(this)}};return t(),i}var Xd={exports:{}},Wd={},Zd={exports:{}},eh={};var dv;function qA(){if(dv)return eh;dv=1;var e=Ws();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var i=typeof Object.is=="function"?Object.is:t,r=e.useState,l=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function h(g,b){var w=b(),_=r({inst:{value:w,getSnapshot:b}}),E=_[0].inst,A=_[1];return c(function(){E.value=w,E.getSnapshot=b,p(E)&&A({inst:E})},[g,w,b]),l(function(){return p(E)&&A({inst:E}),g(function(){p(E)&&A({inst:E})})},[g]),u(w),w}function p(g){var b=g.getSnapshot;g=g.value;try{var w=b();return!i(g,w)}catch{return!0}}function m(g,b){return b()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:h;return eh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,eh}var hv;function BA(){return hv||(hv=1,Zd.exports=qA()),Zd.exports}var fv;function $A(){if(fv)return Wd;fv=1;var e=Ws(),t=BA();function i(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var r=typeof Object.is=="function"?Object.is:i,l=t.useSyncExternalStore,c=e.useRef,u=e.useEffect,h=e.useMemo,p=e.useDebugValue;return Wd.useSyncExternalStoreWithSelector=function(m,y,g,b,w){var _=c(null);if(_.current===null){var E={hasValue:!1,value:null};_.current=E}else E=_.current;_=h(function(){function k(P){if(!j){if(j=!0,C=P,P=b(P),w!==void 0&&E.hasValue){var L=E.value;if(w(L,P))return B=L}return B=P}if(L=B,r(C,P))return L;var Y=b(P);return w!==void 0&&w(L,Y)?(C=P,L):(C=P,B=Y)}var j=!1,C,B,J=g===void 0?null:g;return[function(){return k(y())},J===null?void 0:function(){return k(J())}]},[y,g,b,w]);var A=l(m,_[0],_[1]);return u(function(){E.hasValue=!0,E.value=A},[A]),p(A),A},Wd}var pv;function HA(){return pv||(pv=1,Xd.exports=$A()),Xd.exports}var GA=HA();function VA(e,t){return e===t}function mn(e,t=r=>r,i){const r=i?.compare??VA,l=ee.useCallback(u=>{const{unsubscribe:h}=e.subscribe(u);return h},[e]),c=ee.useCallback(()=>e.get(),[e]);return GA.useSyncExternalStoreWithSelector(l,c,c,t,r)}var mv={};function I0(e,t){const i=ee.useRef();return r=>{const l=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?i.current=Ua(i.current,l):l}}function Si(e){const t=St(),i=ee.useContext(e.from?LA:gf),r=e.from??i,l=t.stores.getMatchStore(r),c=I0(e,t),u=mn(l,h=>h?c(h):mv);if(u!==mv)return u;(e.shouldThrow??!0)&&Us()}function P0(e){return Si({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function q0(e){const{select:t,...i}=e;return Si({...i,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function B0(e){return Si({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const i=e.strict===!1?t.params:t._strictParams;return e.select?e.select(i):i}})}function $0(e){return Si({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function H0(e){const t=St();return ee.useCallback(i=>t.navigate({...i,from:i.from??e?.from}),[e?.from,t])}function G0(e){return Si({...e,select:t=>e.select?e.select(t.context):t.context})}function FA(...e){const t=ee.useRef(e),i=t.current;return e.forEach((r,l)=>{pn(i[l],r,!1,!0)||(i[l]=r)}),t.current}function kl(e,t){e.preloadRoute(t).catch(i=>{console.warn(i),console.warn(hA)})}var YA={compare:(e,t)=>
13e[0]===t[0]&&e[1]===t[1]};function KA(e,t){const i=typeof e=="string"&&zs(e);if(i)return t.has(i)?e:null}function QA(e,t,i,r,l){const c=Iy(e.pathname,r),u=Iy(t.pathname,r);return(i?.exact?c!==u:!(c.startsWith(u)&&(c.length===u.length||c[u.length]==="/")))||(i?.includeSearch??!0)&&!pn(e.search,t.search,!i?.exact,i?.explicitUndefined)?!1:i?.includeHash?l&&e.hash===t.hash:!0}function JA(e,t,i){const r=St(),l=ee.useRef(null),c=ee.useCallback(ce=>{if(l.current=ce,typeof t=="function")return t(ce);t&&(t.current=ce)},[t]),{activeOptions:u,to:h,preload:p,preloadDelay:m,hashScrollIntoView:y,replace:g,startTransition:b,resetScroll:w,viewTransition:_,ignoreBlocker:E,disabled:A,target:k,onClick:j,onBlur:C,onFocus:B,onMouseEnter:J,onMouseLeave:P,onTouchStart:L}=e,Y=mf(!!u?.includeHash),[Z,se,V]=FA(e.search,e.params,u),[F,W]=ee.useMemo(()=>[e,{...e}],[r,e.from,e._fromLocation,e.hash,e.to,Z,se,e.state,e.mask,e.unsafeRelative]),he=ee.useMemo(()=>{const ce=KA(h,r.protocolAllowlist);if(ce!==void 0){const gn=[ce??void 0];return()=>gn}let je,qe;return gn=>{F._fromLocation||(W._fromLocation=gn);const Va=r.buildLocation(W),xn=tk(Va,r,A);return(!je||je[0]!==xn)&&(je=[xn,!(A||xn&&!zs(xn))&&void 0],qe=[xn,!0]),je[1]!==void 0&&QA(gn,Va,V,r.basepath,Y)?qe:je}},[V,A,Y,F,W,r,h]),[re,U]=mn(r.stores.location,he,YA),Q=U===void 0&&re,le=A||re===void 0,Ce=ee.useRef(!1),_e=e.reloadDocument||Q||le?!1:p??r.options.defaultPreload,R=m??r.options.defaultPreloadDelay??0,H=ee.useCallback(ce=>{const je=ce?.isIntersecting;if(!(je??_e==="intent")){je===!1&&th(l);return}if(!R){kl(r,F);return}Ns.has(l)||Ns.set(l,setTimeout(()=>{Ns.delete(l),kl(r,F)},R))},[r,F,l,_e,R]);ee.useEffect(()=>{if(!_e)return;_e==="render"&&!Ce.current&&(Ce.current=!0,kl(r,F));let ce=!0,je;return _e==="viewport"&&l.current&&typeof IntersectionObserver=="function"&&(je=new IntersectionObserver(qe=>{ce&&H(qe.pop())},{rootMargin:"100px"}),je.observe(l.current)),()=>{ce=!1,je?.disconnect(),th(l)}},[r,F,_e,H,l]);const K=ZA(e,i);if(K.ref=t?c:l,Q)return K.href=Q,K;const ne=ce=>{const je=k??ce.currentTarget.getAttribute("target");!le&&!(ce.metaKey||ce.altKey||ce.ctrlKey||ce.shiftKey)&&!ce.defaultPrevented&&(!je||je==="_self")&&ce.button===0&&(ce.preventDefault(),r.navigate({...F,replace:g,resetScroll:w,hashScrollIntoView:y,startTransition:b,viewTransition:_,ignoreBlocker:E}))},fe=()=>{_e==="intent"&&kl(r,F)},ye=()=>{_e==="intent"&&th(l)};return K.onClick=cr(j,ne),K.onBlur=cr(C,ye),K.onFocus=cr(B,H),K.onMouseEnter=cr(J,H),K.onMouseLeave=cr(P,ye),K.onTouchStart=cr(L,fe),ek(K,e,U,re,le,i)}var XA={},WA={className:"active"},V0=new Set(["to","params","search","hash","state","mask","from","unsafeRelative","_fromLocation","reloadDocument","preload","preloadDelay","preloadIntentProximity","hashScrollIntoView","replace","startTransition","resetScroll","viewTransition","ignoreBlocker","activeProps","inactiveProps","activeOptions","_asChild"]);function ZA(e,t){const i={};for(const r in e)V0.has(r)||r==="type"&&t!==void 0||r==="disabled"&&t==="a"||(i[r]=e[r]);return i}function ek(e,t,i,r,l,c){const{activeProps:u,inactiveProps:h,className:p,style:m,target:y}=t,g=Sb(i?u:h,{})??(i?WA:XA);Object.assign(e,g),e.href=r,c!=="a"&&(e.disabled=l),e.target=y;const b=g.style;(m||b)&&(e.style=m&&b?{...m,...b}:m||b);const w=g.className;return(p||w)&&(e.className=p?w?`${p} ${w}`:p:w),l&&(e.role="link",e["aria-disabled"]=!0),i&&(e["data-status"]="active",e["aria-current"]="page"),e}var Ns=new WeakMap,th=e=>{clearTimeout(Ns.get(e)),Ns.delete(e)},cr=(e,t)=>e?i=>i.defaultPrevented||(e(i),i.defaultPrevented||t(i)):t;function tk(e,t,i){if(i)return;const r=e.maskedLocation??e,l=r.external?r.publicHref:t.history.createHref(r.publicHref)||"/";if(!((r.external||l!==r.publicHref)&&Tb(l,t.protocolAllowlist)))return l}var Ve=ee.memo(ee.forwardRef((e,t)=>{const i=e._asChild||"a",r=JA(e,t,i),l=typeof e.children=="function"?e.children({isActive:r["data-status"]==="active"}):e.children;return ee.createElement(i,r,l)}),nk);function nk(e,t){let i=0;for(const r in t)if(i++,e[r]!==t[r]&&(!V0.has(r)||!pn(e[r],t[r],!1,!0)))return!1;for(const r in e)i--;return i===0}var ak=class extends x0{constructor(t){super(t),this.useMatch=i=>Si({...i,from:this.id}),this.useRouteContext=i=>G0({...i,from:this.id}),this.useSearch=i=>$0({...i,from:this.id}),this.useParams=i=>B0({...i,from:this.id}),this.useLoaderDeps=i=>q0({...i,from:this.id}),this.useLoaderData=i=>P0({...i,from:this.id}),this.useNavigate=()=>H0({from:this.fullPath}),this.Link=Zs.forwardRef((i,r)=>T.jsx(Ve,{ref:r,from:this.fullPath,...i}))}};function ik(e){return new ak(e)}function rk(){return e=>ok(e)}var sk=class extends bA{constructor(e){super(e),this.useMatch=t=>Si({...t,from:this.id}),this.useRouteContext=t=>G0({...t,from:this.id}),this.useSearch=t=>$0({...t,from:this.id}),this.useParams=t=>B0({...t,from:this.id}),this.useLoaderDeps=t=>q0({...t,from:this.id}),this.useLoaderData=t=>P0({...t,from:this.id}),this.useNavigate=()=>H0({from:this.fullPath}),this.Link=Zs.forwardRef((t,i)=>T.jsx(Ve,{ref:i,from:this.fullPath,...t}))}};function ok(e){return new sk(e)}function Ae(e){return t=>{const i=ik(t);return i.isRoot=!1,i}}function ve(e,t){let i,r,l;const c=()=>(i||(l=void 0,i=e().then(h=>{i=void 0,u.preload=void 0,r=h[t??"default"]}).catch(h=>{i=void 0,l=h})),i),u=function(p){if(l){if(bE(l)&&typeof sessionStorage<"u"){const m=`tanstack_router_reload:${l.message}`;
13if(!sessionStorage.getItem(m))throw sessionStorage.setItem(m,"1"),window.location.reload(),new Promise(()=>{})}throw l}if(!r)if(Wl)Wl(c());else throw c();return ee.createElement(r,p)};return u.preload=c,u}function lk(e){const t=St(),i=`not-found-${mn(t.stores.location,r=>r.pathname)}-${mn(t.stores.status)}`;return T.jsx(pf,{getResetKey:()=>i,onCatch:(r,l)=>{if(wi(r))e.onCatch?.(r,l);else throw r},errorComponent:({error:r})=>{if(wi(r))return e.fallback?.(r);throw r},children:e.children})}function ck(){return T.jsx("p",{children:"Not Found"})}function F0(e,t,i){return t.options.notFoundComponent?T.jsx(t.options.notFoundComponent,{...i}):e.options.defaultNotFoundComponent?T.jsx(e.options.defaultNotFoundComponent,{...i}):T.jsx(ck,{})}function mc(e,t){const i=t?.options.pendingComponent??e.options.defaultPendingComponent;return i?T.jsx(i,{}):null}var uk=(e,t)=>e[0]===t[0]&&e[1]===t[1],Y0=(e,t,i)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||i===!1||i==="data-only"||!e.ssr,K0=ee.memo(function({routeId:t}){const i=St();return T.jsx(dk,{router:i,match:mn(i.stores.getMatchStore(t))})});function dk({router:e,match:t}){const i=e.routesById[t.routeId],r=mc(e,i),l=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,u=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,h=t.ssr===!1||t.ssr==="data-only",p=Y0(e,i,t.ssr)&&(i.options.wrapInSuspense??r??(i.options.errorComponent?.preload||h));let m=T.jsx(hk,{match:t});h&&(m=T.jsx(jA,{fallback:r,children:m})),u&&(m=T.jsx(lk,{fallback:b=>{if(b.routeId??=t.routeId,b.routeId!==t.routeId)throw b;return ee.createElement(u,b)},children:m})),l&&(m=T.jsx(pf,{getResetKey:()=>t,errorComponent:l,onCatch:(b,w)=>{if(wi(b))throw b.routeId??=t.routeId,b;c?.(b,w)},children:m})),p&&(m=T.jsx(ee.Suspense,{fallback:r,children:m}));const y=null,g=i.isRoot?i.options.shellComponent:void 0;return T.jsx(gf.Provider,{value:t.routeId,children:g?T.jsxs(g,{children:[m,y]}):T.jsxs(T.Fragment,{children:[m,y]})})}var hk=ee.memo(function({match:t}){const i=St(),r=t.routeId,l=i.routesById[r],c=ee.useMemo(()=>{const h=(l.options.remountDeps??i.options.defaultRemountDeps)?.({routeId:r,loaderDeps:t.loaderDeps,params:t._strictParams,search:t._strictSearch});return h?JSON.stringify(h):void 0},[r,t.loaderDeps,t._strictParams,t._strictSearch,l.options.remountDeps,i.options.defaultRemountDeps]),u=ee.useMemo(()=>{const h=l.options.component??i.options.defaultComponent;return h?T.jsx(h,{},c):T.jsx(yf,{})},[c,l.options.component,i.options.defaultComponent]);if(t.status==="pending"){if(i.ssr&&!Y0(i,l,t.ssr))return u;if(i._tx)throw i._tx[5];return mc(i,l)}if(t.status==="notFound")return F0(i,l,t.error);if(t.status==="error")throw t.error;return u}),yf=ee.memo(function(){const t=St(),i=ee.useContext(gf);let r,l,c;{const h=t.stores.getMatchStore(i);[r,l]=mn(h,p=>[!!p._notFound,p.error],{compare:uk}),c=mn(t.stores.ids,p=>p[p.indexOf(i)+1])}if(r)return F0(t,t.routesById[i],l);if(!c)return null;const u=T.jsx(K0,{routeId:c});return i===Tr?T.jsx(ee.Suspense,{fallback:mc(t),children:u}):u});function Q0(e,t){const i=e[1];e.length=0,i?.(t)}function fk({t:e}){const t=St(),i=t._rendered??=[];return t.startTransition=(r,l)=>new Promise(c=>{Q0(i,!1),i.push(l,c),e(t),ee.startTransition(r)}),D0(()=>{const r=t.history.subscribe(t.load);t.updateLatestLocation();const l=t.latestLocation,c=t.buildLocation({to:l.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(An(l.publicHref)!==An(c.publicHref))return t.commitLocation({...c,replace:!0,ignoreBlocker:!0}),r;const u=t.stores.resolvedLocation.get();return u?.href===l.href&&u.state.__TSR_key===l.state.__TSR_key?i.push(t.stores.matches.get(),h=>
13{h&&t.emit({type:"onRendered",...lc(u,u)})}):t._tx||t.load({sync:!0}).catch(console.error),r},[t,t.history]),null}function pk(){const e=St(),t=e.routesById[Tr],i=mc(e,t),r=T.jsxs(T.Fragment,{children:[T.jsx(fk,{t:ee.useState()[1]}),e.ssr?T.jsx(gv,{}):T.jsx(ee.Suspense,{fallback:i,children:T.jsx(gv,{})})]});return e.options.InnerWrap?T.jsx(e.options.InnerWrap,{children:r}):r}function gv(){const e=St(),t=e._rendered,i=mn(e.stores.matches,u=>t[0]??u),r=i[0],l=r?.routeId;D0(()=>{t[0]===i&&Q0(t,!0)},[t,i]);const c=l?T.jsx(K0,{routeId:l}):null;return e.options.disableGlobalCatchBoundary?c:T.jsx(pf,{getResetKey:()=>r,onCatch:void 0,children:c})}var mk=e=>({createMutableStore:uv,createReadonlyStore:uv,batch:IA}),gk=e=>new yk(e),yk=class extends r1{constructor(e){super(e,mk)}};function vk({router:e,children:t,...i}){_b(i)&&e.update({...e.options,...i,context:{...e.options.context,...i.context}});const r=T.jsx(M0.Provider,{value:e,children:t});return e.options.Wrap?T.jsx(e.options.Wrap,{children:r}):r}function bk({router:e,...t}){return T.jsx(vk,{router:e,...t,children:T.jsx(pk,{})})}function wk(e){const t=St();return mn(t.stores.location,I0(e,t))}function yv(e,t){if(t)for(const[i,r]of Object.entries(t))i!=="suppressHydrationWarning"&&r!==void 0&&r!==!1&&e.setAttribute(i,typeof r=="boolean"?"":String(r))}function J0(e){const{attrs:t,children:i,nonce:r,preventScriptHoist:l}=e,c=ee.useMemo(()=>i===void 0?void 0:{__html:i},[i]);switch(e.tag){case"title":return T.jsx("title",{...t,suppressHydrationWarning:!0,children:i});case"meta":return T.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return T.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:r,suppressHydrationWarning:!0});case"style":return e.inlineCss,T.jsx("style",{...t,dangerouslySetInnerHTML:c,nonce:r});case"script":return T.jsx(Sk,{attrs:t,preventScriptHoist:l,children:i});default:return null}}function Sk({attrs:e,children:t,preventScriptHoist:i}){St();const r=mf(),l=ee.useMemo(()=>t===void 0?void 0:{__html:t},[t]),c=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(ee.useEffect(()=>{if(!c){if(e?.src){const u=document.createElement("a");u.href=e.src;const h=u.href;for(const m of document.scripts)if(m.src===h)return;const p=document.createElement("script");return yv(p,e),document.head.appendChild(p),()=>p.remove()}if(typeof t=="string"){const u=typeof e?.type=="string"?e.type:"text/javascript",h=typeof e?.nonce=="string"?e.nonce:void 0;for(const m of document.scripts){if(m.hasAttribute("src"))continue;const y=m.getAttribute("type")??"text/javascript",g=m.getAttribute("nonce")??void 0;if(m.textContent===t&&y===u&&g===h)return}const p=document.createElement("script");return p.textContent=t,yv(p,e),document.head.appendChild(p),()=>p.remove()}}},[e,t,c]),c&&typeof t=="string")return T.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:l});if(!r){if(e?.src)return T.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return T.jsx("script",{...e,dangerouslySetInnerHTML:l,suppressHydrationWarning:!0})}return null}function _k(e,t,i,r){i=Ub(i);const l=i.map(E=>E.meta).filter(E=>E!==void 0),c=[],u={};let h;for(let E=l.length-1;E>=0;E--){const A=l[E];for(let k=A.length-1;k>=0;k--){const j=A[k];if(j)if(j.title)h||(h={tag:"title",children:j.title});else if("script:ld+json"in j)try{const C=JSON.stringify(j["script:ld+json"]);c.push({tag:"script",attrs:{type:"application/ld+json"},children:OE(C)})}catch{}else{const C=j.name??j.property;if(C){if(u[C])continue;u[C]=!0}c.push({tag:"meta",attrs:{...j,nonce:t}})}}}h&&c.push(h),t&&c.push({tag:"meta",attrs:{property:"csp-nonce",content:t}}),c.reverse();const p=i.flatMap(E=>E.links??[]).filter(E=>E!==void 0).map(E=>({tag:"link",attrs:{...E,nonce:t}})),m=e.ssr?.manifest,y=[];m&&(i.forEach(E=>{m.routes[E.routeId]?.css?.forEach(A=>{const k=gA(A);y.push({tag:"link",attrs:{rel:"stylesheet",...k,crossOrigin:k0(r,"stylesheet")??k.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),m.inlineStyle&&y.push({tag:"style",attrs:{...m.inlineStyle.attrs,nonce:t},children:m.inlineStyle.children,inlineCss:!0}));const g=[];
13m&&i.forEach(E=>{m.routes[E.routeId]?.preloads?.forEach(A=>{g.push({tag:"link",attrs:{...pA(m,A,r),nonce:t}})})});const b=i.flatMap(E=>E.styles??[]).filter(E=>E!==void 0).map(({children:E,...A})=>({tag:"style",attrs:{...A,nonce:t},children:E})),w=i.flatMap(E=>E.headScripts??[]).filter(E=>E!==void 0).map(({children:E,...A})=>({tag:"script",attrs:{...A,nonce:t},children:E})),_=[];return Ol(_,c),_.push(...g),Ol(_,p),_.push(...y),Ol(_,b),Ol(_,w),_}var Ek=e=>{const t=St(),i=t.options.ssr?.nonce,r=ee.useCallback(l=>_k(t,i,l,e),[e,i,t]);return mn(t.stores.matches,r,{compare:pn})};function Tk(e){const t=Ek(e.assetCrossOrigin),i=St().options.ssr?.nonce;return T.jsx(T.Fragment,{children:t.map(r=>ee.createElement(J0,{...r,key:`tsr-meta-${JSON.stringify(r)}`,nonce:i}))})}var Ok={suppressHydrationWarning:!0},Ak=()=>{const e=St(),t=e.options.ssr?.nonce,i=l=>{const c=yA(l,e.ssr?.manifest,t,Ok);for(const u of c[1])if(typeof u.attrs?.src=="string"){const h=u;h.preventScriptHoist=!0}return c},r=l=>vA(i(l));return kk(mn(e.stores.matches,r,{compare:pn}))};function kk(e){return T.jsx(T.Fragment,{children:e.map((t,i)=>ee.createElement(J0,{...t,key:`tsr-scripts-${t.tag}-${i}`}))})}function vv(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function Lh(e,t){const i=Object.create(null);if(e)for(const r of Object.keys(e))vv(r)&&(i[r]=e[r]);if(t&&typeof t=="object")for(const r of Object.keys(t))vv(r)&&(i[r]=t[r]);return i}function X0(e){return Object.create(null)}var W0=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")},ut=(e,t)=>{const i=t||e||{};typeof i.method>"u"&&(i.method="GET");const r=u=>ut(void 0,{...i,validator:u,inputValidator:u});return Object.assign(u=>ut(void 0,{...i,...u}),{options:i,middleware:u=>{const h=[...i.middleware||[]];u.forEach(m=>{My in m?m.options.middleware&&h.push(...m.options.middleware):h.push(m)});const p=ut(void 0,{...i,middleware:h});return p[My]=!0,p},validator:r,inputValidator:r,handler:(...u)=>{const[h,p]=u,m={...i,extractedFn:h,serverFn:p},y=[...m.middleware||[],Ck(m)];return h.method=i.method,Object.assign(async g=>{const b=await bv(y,"client",{...h,...m,data:g?.data,headers:g?.headers,signal:g?.signal,fetch:g?.fetch,context:X0()}),w=wb(b.error);if(w)throw w;if(b.error)throw b.error;return b.result},{...h,method:i.method,__executeServer:async g=>{const b=W0(),w=b.contextAfterGlobalMiddlewares;return await bv(y,"server",{...h,data:g.data,method:g.method??i.method,serverFnMeta:h.serverFnMeta,context:Lh(g.context,w),request:b.request}).then(_=>({result:_.result,error:_.error,context:_.sendContext}))}})}})};async function bv(e,t,i){let r=xk([...Xh()?.functionMiddleware||[],...e]);if(t==="server"){const c=W0();c?.executedRequestMiddlewares&&(r=r.filter(u=>!c.executedRequestMiddlewares.has(u)))}const l=async c=>{const u=r.shift();if(!u)return c;try{let h="validator"in u.options?u.options.validator:void 0;!h&&"inputValidator"in u.options&&(h=u.options.inputValidator),h&&t==="server"&&(c.data=await Rk(h,c.data));let p;if(t==="client"?"client"in u.options&&(p=u.options.client):"server"in u.options&&(p=u.options.server),p){const y=await p({...c,next:async(g={})=>{const b=await l({...c,...g,context:Lh(c.context,g.context),sendContext:Lh(c.sendContext,g.sendContext),headers:FO(c.headers,g.headers),_callSiteFetch:c._callSiteFetch,fetch:c._callSiteFetch??g.fetch??c.fetch,result:g.result!==void 0?g.result:g instanceof Response?g:c.result,error:g.error??c.error});if(b.error)throw b.error;return b}});if(Wh(y))return{...c,error:y};if(y instanceof Response)return{...c,result:y};if(!y)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return y}return l(c)}catch(h){return{...c,error:h}}};return l({...i,headers:i.headers||{},sendContext:i.sendContext||{},context:i.context||X0(),_callSiteFetch:i.fetch})}function xk(e,t=100){const i=new Set,r=[],l=(c,u)=>{if(u>t)throw new Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);
13c.forEach(h=>{h.options.middleware&&l(h.options.middleware,u+1),i.has(h)||(i.add(h),r.push(h))})};return l(e,0),r}async function Rk(e,t){if(e==null)return{};if("~standard"in e){const i=await e["~standard"].validate(t);if(i.issues)throw new Error(JSON.stringify(i.issues,void 0,2));return i.value}if("parse"in e)return e.parse(t);if(typeof e=="function")return e(t);throw new Error("Invalid validator type!")}function Ck(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:i,fetch:r,...l})=>{const c={...l,context:i,fetch:r};return t(await e.extractedFn?.(c))},server:async({next:t,...i})=>{const r=await e.serverFn?.(i);return t({...i,result:r})}}}}var za=(e,t)=>{const i={type:"request",...t||e},r=l=>za({},Object.assign(i,{validator:l,inputValidator:l}));return{options:i,middleware:l=>za({},Object.assign(i,{middleware:l})),validator:r,inputValidator:r,client:l=>za({},Object.assign(i,{client:l})),server:l=>za({},Object.assign(i,{server:l}))}};function Z0(e,t){for(let i=0,r=t.length;i<r;i++){const l=t[i];e.has(l)||(e.add(l),l.extends&&Z0(e,l.extends))}}var jk=e=>({getOptions:async()=>{const t=await e();if(t.serializationAdapters){const i=new Set;Z0(i,t.serializationAdapters),t.serializationAdapters=Array.from(i)}return t},createMiddleware:za});function gc(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(i[r[l]]=e[r[l]]);return i}function Nk(e,t,i,r){function l(c){return c instanceof i?c:new i(function(u){u(c)})}return new(i||(i=Promise))(function(c,u){function h(y){try{m(r.next(y))}catch(g){u(g)}}function p(y){try{m(r.throw(y))}catch(g){u(g)}}function m(y){y.done?c(y.value):l(y.value).then(h,p)}m((r=r.apply(e,t||[])).next())})}const Lk=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class vf extends Error{constructor(t,i="FunctionsError",r){super(t),this.name=i,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class Dk extends vf{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class wv extends vf{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Sv extends vf{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Dh;(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"})(Dh||(Dh={}));class Mk{constructor(t,{headers:i={},customFetch:r,region:l=Dh.Any}={}){this.url=t,this.headers=i,this.region=l,this.fetch=Lk(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return Nk(this,arguments,void 0,function*(i,r={}){var l;let c,u;try{const{headers:h,method:p,body:m,signal:y,timeout:g}=r;let b={},{region:w}=r;w||(w=this.region);const _=new URL(`${this.url}/${i}`);w&&w!=="any"&&(b["x-region"]=w,_.searchParams.set("forceFunctionRegion",w));let E;m&&(h&&!Object.prototype.hasOwnProperty.call(h,"Content-Type")||!h)?typeof Blob<"u"&&m instanceof Blob||m instanceof ArrayBuffer?(b["Content-Type"]="application/octet-stream",E=m):typeof m=="string"?(b["Content-Type"]="text/plain",E=m):typeof FormData<"u"&&m instanceof FormData?E=m:(b["Content-Type"]="application/json",E=JSON.stringify(m)):m&&typeof m!="string"&&!(typeof Blob<"u"&&m instanceof Blob)&&!(m instanceof ArrayBuffer)&&!(typeof FormData<"u"&&m instanceof FormData)?E=JSON.stringify(m):E=m;let A=y;g&&(u=new AbortController,c=setTimeout(()=>u.abort(),g),y?(A=u.signal,y.addEventListener("abort",()=>u.abort())):A=u.signal);const k=yield this.fetch(_.toString(),{method:p||"POST",headers:Object.assign(Object.assign(Object.assign({},b),this.headers),h),body:E,signal:A}).catch(J=>{throw new Dk(J)}),j=k.headers.get("x-relay-error");
13if(j&&j==="true")throw new wv(k);if(!k.ok)throw new Sv(k);let C=((l=k.headers.get("Content-Type"))!==null&&l!==void 0?l:"text/plain").split(";")[0].trim(),B;return C==="application/json"?B=yield k.json():C==="application/octet-stream"||C==="application/pdf"?B=yield k.blob():C==="text/event-stream"?B=k:C==="multipart/form-data"?B=yield k.formData():B=yield k.text(),{data:B,error:null,response:k}}catch(h){return{data:null,error:h,response:h instanceof Sv||h instanceof wv?h.context:void 0}}finally{c&&clearTimeout(c)}})}}const ew=3,_v=e=>Math.min(1e3*2**e,3e4),zk=[520,503],tw=["GET","HEAD","OPTIONS"];var Uk=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Ev(e,t){return new Promise(i=>{if(t?.aborted){i();return}const r=setTimeout(()=>{t?.removeEventListener("abort",l),i()},e);function l(){clearTimeout(r),i()}t?.addEventListener("abort",l)})}function Ik(e,t,i,r){return!(!r||i>=ew||!tw.includes(e)||!zk.includes(t))}var Pk=class{constructor(e){var t,i,r,l,c;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(i=e.isMaybeSingle)!==null&&i!==void 0?i:!1,this.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(l=e.urlLengthLimit)!==null&&l!==void 0?l:8e3,this.retryEnabled=(c=e.retry)!==null&&c!==void 0?c:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var i=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const u=this.headers.get("Accept");u==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!u||u==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let c=(async()=>{let u=0;for(;;){const m=new Headers(i.headers);u>0&&m.set("X-Retry-Count",String(u));let y;try{y=await r(i.url.toString(),{method:i.method,headers:m,body:JSON.stringify(i.body,(g,b)=>typeof b=="bigint"?b.toString():b),signal:i.signal})}catch(g){if(g?.name==="AbortError"||g?.code==="ABORT_ERR"||!tw.includes(i.method))throw g;if(i.retryEnabled&&u<ew){const b=_v(u);u++,await Ev(b,i.signal);continue}throw g}if(Ik(i.method,y.status,u,i.retryEnabled)){var h,p;const g=(h=(p=y.headers)===null||p===void 0?void 0:p.get("Retry-After"))!==null&&h!==void 0?h:null,b=g!==null?Math.max(0,parseInt(g,10)||0)*1e3:_v(u);await y.text(),u++,await Ev(b,i.signal);continue}return await i.processResponse(y)}})();return this.shouldThrowOnError||(c=c.catch(u=>{var h;let p="",m="",y="";const g=u?.cause;if(g){var b,w,_,E;const j=(b=g?.message)!==null&&b!==void 0?b:"",C=(w=g?.code)!==null&&w!==void 0?w:"";p=`${(_=u?.name)!==null&&_!==void 0?_:"FetchError"}: ${u?.message}`,p+=` 14 15Caused by: ${(E=g?.name)!==null&&E!==void 0?E:"Error"}: ${j}`,C&&(p+=` (${C})`),g?.stack&&(p+=` 16${g.stack}`)}else{var A;p=(A=u?.stack)!==null&&A!==void 0?A:""}const k=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(y="",m="Request was aborted (timeout or manual cancellation)",k>this.urlLengthLimit&&(m+=`. Note: Your request URL is ${k} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(g?.name==="HeadersOverflowError"||g?.code==="UND_ERR_HEADERS_OVERFLOW")&&(y="",m="HTTP headers exceeded server limits (typically 16KB)",k>this.urlLengthLimit&&(m+=`. Your request URL is ${k} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(h=u?.name)!==null&&h!==void 0?h:"FetchError"}: ${u?.message}`,details:p,hint:m,code:y},data:null,count:null,status:0,statusText:""}}
16)),c.then(e,t)}async processResponse(e){var t=this;let i=null,r=null,l=null,c=e.status,u=e.statusText;if(e.ok){var h,p;if(t.method!=="HEAD"){var m;const b=await e.text();b===""||(t.headers.get("Accept")==="text/csv"||t.headers.get("Accept")&&(!((m=t.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text"))?r=b:r=JSON.parse(b))}const y=(h=t.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),g=(p=e.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");y&&g&&g.length>1&&(l=parseInt(g[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(i={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,l=null,c=406,u="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const y=await e.text();try{i=JSON.parse(y),Array.isArray(i)&&e.status===404&&(r=[],i=null,c=200,u="OK")}catch{e.status===404&&y===""?(c=204,u="No Content"):i={message:y}}if(i&&t.shouldThrowOnError)throw new Uk(i)}return{success:i===null,error:i,data:r,count:l,status:c,statusText:u}}returns(){return this}overrideTypes(){return this}},qk=class extends Pk{select(e){let t=!1;const i=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",i),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:i,foreignTable:r,referencedTable:l=r}={}){const c=l?`${l}.order`:"order",u=this.url.searchParams.get(c);return this.url.searchParams.set(c,`${u?`${u},`:""}${e}.${t?"asc":"desc"}${i===void 0?"":i?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:i=t}={}){const r=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:i,referencedTable:r=i}={}){const l=typeof r>"u"?"offset":`${r}.offset`,c=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(l,`${e}`),this.url.searchParams.set(c,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:i=!1,buffers:r=!1,wal:l=!1,format:c="text"}={}){var u;const h=[e?"analyze":null,t?"verbose":null,i?"settings":null,r?"buffers":null,l?"wal":null].filter(Boolean).join("|"),p=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${c}; for="${p}"; options=${h};`),c==="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 Tv=new RegExp("[,()]");var mr=class extends qk{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 i=Array.from(new Set(t)).map(r=>typeof r=="string"&&Tv.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${i})`),this}notIn(e,t){const i=Array.from(new Set(t)).map(r=>typeof r=="string"&&Tv.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${i})`),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:i,type:r}={}){let l="";r==="plain"?l="pl":r==="phrase"?l="ph":r==="websearch"&&(l="w");const c=i===void 0?"":`(${i})`;return this.url.searchParams.append(e,`${l}fts${c}.${t}`),this}match(e){return Object.entries(e).filter(([t,i])=>
16i!==void 0).forEach(([t,i])=>{this.url.searchParams.append(t,`eq.${i}`)}),this}not(e,t,i){return this.url.searchParams.append(e,`not.${t}.${i}`),this}or(e,{foreignTable:t,referencedTable:i=t}={}){const r=i?`${i}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,i){return this.url.searchParams.append(e,`${t}.${i}`),this}},Bk=class{constructor(e,{headers:t={},schema:i,fetch:r,urlLengthLimit:l=8e3,retry:c}){this.url=e,this.headers=new Headers(t),this.schema=i,this.fetch=r,this.urlLengthLimit=l,this.retry=c}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:i=!1,count:r}=t??{},l=i?"HEAD":"GET";let c=!1;const u=(e??"*").split("").map(m=>/\s/.test(m)&&!c?"":(m==='"'&&(c=!c),m)).join(""),{url:h,headers:p}=this.cloneRequestState();return h.searchParams.set("select",u),r&&p.append("Prefer",`count=${r}`),new mr({method:l,url:h,headers:p,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:i=!0}={}){var r;const l="POST",{url:c,headers:u}=this.cloneRequestState();
16if(t&&u.append("Prefer",`count=${t}`),i||u.append("Prefer","missing=default"),Array.isArray(e)){const h=e.reduce((p,m)=>p.concat(Object.keys(m)),[]);if(h.length>0){const p=[...new Set(h)].map(m=>`"${m}"`);c.searchParams.set("columns",p.join(","))}}return new mr({method:l,url:c,headers:u,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:i=!1,count:r,defaultToNull:l=!0}={}){var c;const u="POST",{url:h,headers:p}=this.cloneRequestState();if(p.append("Prefer",`resolution=${i?"ignore":"merge"}-duplicates`),t!==void 0&&h.searchParams.set("on_conflict",t),r&&p.append("Prefer",`count=${r}`),l||p.append("Prefer","missing=default"),Array.isArray(e)){const m=e.reduce((y,g)=>y.concat(Object.keys(g)),[]);if(m.length>0){const y=[...new Set(m)].map(g=>`"${g}"`);h.searchParams.set("columns",y.join(","))}}return new mr({method:u,url:h,headers:p,schema:this.schema,body:e,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var i;const r="PATCH",{url:l,headers:c}=this.cloneRequestState();return t&&c.append("Prefer",`count=${t}`),new mr({method:r,url:l,headers:c,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const i="DELETE",{url:r,headers:l}=this.cloneRequestState();return e&&l.append("Prefer",`count=${e}`),new mr({method:i,url:r,headers:l,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Hs(e){"@babel/helpers - typeof";return Hs=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},Hs(e)}function $k(e,t){if(Hs(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var r=i.call(e,t);if(Hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hk(e){var t=$k(e,"string");return Hs(t)=="symbol"?t:t+""}function Gk(e,t,i){return(t=Hk(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ov(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),i.push.apply(i,r)}return i}function xl(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Ov(Object(i),!0).forEach(function(r){Gk(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ov(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}var Vk=class nw{constructor(t,{headers:i={},schema:r,fetch:l,timeout:c,urlLengthLimit:u=8e3,retry:h}={}){this.url=t,this.headers=new Headers(i),this.schemaName=r,this.urlLengthLimit=u;const p=l??globalThis.fetch;c!==void 0&&c>0?this.fetch=(m,y)=>{const g=new AbortController,b=setTimeout(()=>g.abort(),c),w=y?.signal;if(w){if(w.aborted)return clearTimeout(b),p(m,y);const _=()=>{clearTimeout(b),g.abort()};return w.addEventListener("abort",_,{once:!0}),p(m,xl(xl({},y),{},{signal:g.signal})).finally(()=>{clearTimeout(b),w.removeEventListener("abort",_)})}return p(m,xl(xl({},y),{},{signal:g.signal})).finally(()=>clearTimeout(b))}:this.fetch=p,this.retry=h}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new Bk(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new nw(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,i={},{head:r=!1,get:l=!1,count:c}={}){var u;let h;const p=new URL(`${this.url}/rpc/${t}`);let m;const y=w=>w!==null&&typeof w=="object"&&(!Array.isArray(w)||w.some(y)),g=r&&Object.values(i).some(y);g?(h="POST",m=i):r||l?(h=r?"HEAD":"GET",Object.entries(i).filter(([w,_])=>_!==void 0).map(([w,_])=>[w,Array.isArray(_)?`{${_.join(",")}}`:`${_}
16`]).forEach(([w,_])=>{p.searchParams.append(w,_)})):(h="POST",m=i);const b=new Headers(this.headers);return g?b.set("Prefer",c?`count=${c},return=minimal`:"return=minimal"):c&&b.set("Prefer",`count=${c}`),new mr({method:h,url:p,headers:b,schema:this.schemaName,body:m,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class Fk{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const i=globalThis;if(typeof globalThis<"u"&&typeof i.WebSocket<"u")return{type:"native",wsConstructor:i.WebSocket};const r=typeof global<"u"?global:void 0;if(r&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};if(typeof globalThis<"u"&&typeof i.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"&&i.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const l=globalThis.process;if(l){const c=l.versions;if(c&&c.node){const u=c.node,h=parseInt(u.replace(/^v/,"").split(".")[0]);return h>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${h} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${h} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 17import ws from "ws" 18new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let i=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(i+=` 19 20Suggested solution: ${t.workaround}`),new Error(i)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const Yk="2.105.4",Kk=`realtime-js/${Yk}`,Qk="1.0.0",aw="2.0.0",Jk=aw,Xk=1e4,Wk=100,La={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},iw={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},Mh={connecting:"connecting",closing:"closing",closed:"closed"};class Zk{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,i){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return i(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return i(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var i;return this._isArrayBuffer((i=t.payload)===null||i===void 0?void 0:i.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var i,r;const l=(r=(i=t.payload)===null||i===void 0?void 0:i.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,l)}_encodeJsonUserBroadcastPush(t){var i,r;const l=(r=(i=t.payload)===null||i===void 0?void 0:i.payload)!==null&&r!==void 0?r:{},u=new TextEncoder().encode(JSON.stringify(l)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(t,i,r){var l,c;const u=t.topic,h=(l=t.ref)!==null&&l!==void 0?l:"",p=(c=t.join_ref)!==null&&c!==void 0?c:"",m=t.payload.event,y=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},g=Object.keys(y).length===0?"":JSON.stringify(y);if(p.length>255)throw new Error(`joinRef length ${p.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`ref length ${h.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`topic length ${u.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`userEvent length ${m.length} exceeds maximum of 255`);if(g.length>255)throw new Error(`metadata length ${g.length} exceeds maximum of 255`);const b=this.USER_BROADCAST_PUSH_META_LENGTH+p.length+h.length+u.length+m.length+g.length,w=new ArrayBuffer(this.HEADER_LENGTH+b);let _=new DataView(w),E=0;_.setUint8(E++,this.KINDS.userBroadcastPush),_.setUint8(E++,p.length),_.setUint8(E++,h.length),_.setUint8(E++,u.length),_.setUint8(E++,m.length),_.setUint8(E++,g.length),_.setUint8(E++,i),Array.from(p,k=>
20_.setUint8(E++,k.charCodeAt(0))),Array.from(h,k=>_.setUint8(E++,k.charCodeAt(0))),Array.from(u,k=>_.setUint8(E++,k.charCodeAt(0))),Array.from(m,k=>_.setUint8(E++,k.charCodeAt(0))),Array.from(g,k=>_.setUint8(E++,k.charCodeAt(0)));var A=new Uint8Array(w.byteLength+r.byteLength);return A.set(new Uint8Array(w),0),A.set(new Uint8Array(r),w.byteLength),A.buffer}decode(t,i){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return i(r)}if(typeof t=="string"){const r=JSON.parse(t),[l,c,u,h,p]=r;return i({join_ref:l,ref:c,topic:u,event:h,payload:p})}return i({})}_binaryDecode(t){const i=new DataView(t),r=i.getUint8(0),l=new TextDecoder;if(r===this.KINDS.userBroadcast)return this._decodeUserBroadcast(t,i,l)}_decodeUserBroadcast(t,i,r){const l=i.getUint8(1),c=i.getUint8(2),u=i.getUint8(3),h=i.getUint8(4);let p=this.HEADER_LENGTH+4;const m=r.decode(t.slice(p,p+l));p=p+l;const y=r.decode(t.slice(p,p+c));p=p+c;const g=r.decode(t.slice(p,p+u));p=p+u;const b=t.slice(p,t.byteLength),w=h===this.JSON_ENCODING?JSON.parse(r.decode(b)):b,_={type:this.BROADCAST_EVENT,event:y,payload:w};return u>0&&(_.meta=JSON.parse(g)),{join_ref:null,ref:null,topic:m,event:this.BROADCAST_EVENT,payload:_}}_isArrayBuffer(t){var i;return t instanceof ArrayBuffer||((i=t?.constructor)===null||i===void 0?void 0:i.name)==="ArrayBuffer"}_pick(t,i){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>i.includes(r)))}}var Be;(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"})(Be||(Be={}));const Av=(e,t,i={})=>{var r;const l=(r=i.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((c,u)=>(c[u]=ex(u,e,t,l),c),{}):{}},ex=(e,t,i,r)=>{const l=t.find(h=>h.name===e),c=l?.type,u=i[e];return c&&!r.includes(c)?rw(c,u):zh(u)},rw=(e,t)=>{if(e.charAt(0)==="_"){const i=e.slice(1,e.length);return ix(t,i)}switch(e){case Be.bool:return tx(t);case Be.float4:case Be.float8:case Be.int2:case Be.int4:case Be.int8:case Be.numeric:case Be.oid:return nx(t);case Be.json:case Be.jsonb:return ax(t);case Be.timestamp:return rx(t);case Be.abstime:case Be.date:case Be.daterange:case Be.int4range:case Be.int8range:case Be.money:case Be.reltime:case Be.text:case Be.time:case Be.timestamptz:case Be.timetz:case Be.tsrange:case Be.tstzrange:return zh(t);default:return zh(t)}},zh=e=>e,tx=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},nx=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},ax=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},ix=(e,t)=>{if(typeof e!="string")return e;const i=e.length-1,r=e[i];if(e[0]==="{"&&r==="}"){let c;const u=e.slice(1,i);try{c=JSON.parse("["+u+"]")}catch{c=u?u.split(","):[]}return c.map(h=>rw(t,h))}return e},rx=e=>typeof e=="string"?e.replace(" ","T"):e,sw=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Ls=e=>typeof e=="function"?e:function(){return e},sx=typeof self<"u"?self:null,gr=typeof window<"u"?window:null,En=sx||gr||globalThis,ox="2.0.0",lx=1e4,cx=1e3,On={connecting:0,open:1,closing:2,closed:3},Nt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Kn={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Uh={longpoll:"longpoll",websocket:"websocket"},ux={complete:4},Ih="base64url.bearer.phx.",Rl=class{constructor(e,t,i,r){this.channel=e,this.event=t,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 20
20oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:i}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},ow=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},dx=class{constructor(e,t,i){this.state=Nt.closed,this.topic=e,this.params=Ls(t||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Rl(this,Kn.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new ow(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Nt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=Nt.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Nt.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Nt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Rl(this,Kn.leave,Ls({}),this.timeout).send(),this.state=Nt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Kn.reply,(r,l)=>{this.trigger(this.replyEventName(l),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Nt.closed,this.bindings=[]}onClose(e){this.on(Kn.close,e)}onError(e){return this.on(Kn.error,t=>e(t))}on(e,t){let i=this.bindingRef++;return this.bindings.push({event:e,ref:i,callback:t}),i}off(e,t){this.bindings=this.bindings.filter(i=>!(i.event===e&&(typeof t>"u"||t===i.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,i=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Rl(this,e,function(){return t},i);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Nt.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Kn.close,"leave")},i=new Rl(this,Kn.leave,Ls({}),e);return i.receive("ok",()=>t()).receive("timeout",()=>t()),i.send(),this.canPush()||i.trigger("ok",{}),i}onMessage(e,t,i){return t}filterBindings(e,t,i){return!0}isMember(e,t,i,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:i,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Nt.joining,this.joinPush.resend(e))}trigger(e,t,i,r){let l=this.onMessage(e,t,i,r);if(t&&!l)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let c=this.bindings.filter(u=>u.event===e&&this.filterBindings(u,t,i));for(let u=0;u<c.length;u++)c[u].callback(l,i,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Nt.closed}isErrored(){return this.state===Nt.errored}isJoined(){return this.state===Nt.joined}isJoining(){return this.state===Nt.joining}isLeaving(){return this.state===Nt.leaving}},ec=class{static request(e,t,i,r,l,c,u){if(En.XDomainRequest){let h=new En.XDomainRequest;return this.xdomainRequest(h,e,t,r,l,c,u)}else if(En.XMLHttpRequest){let h=new En.XMLHttpRequest;return this.xhrRequest(h,e,t,i,r,l,c,u)}else{if(En.fetch&&En.AbortController)return this.fetchRequest(e,t,i,r,l,c,u);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,i,r,l,c,u){let h={method:e,headers:i,body:r},p=null;return l&&(p=new AbortController,setTimeout(()=>p.abort(),l),h.signal=p.signal),En.fetch(t,h).then(m=>m.text()).then(m=>this.parseJSON(m)).then(m=>u&&u(m)).catch(m=>{m.name==="AbortError"&&c?c():u&&u(null)}),p}static xdomainRequest(e,t,i,r,l,c,u){return e.timeout=l,e.open(t,i),e.onload=()=>{let h=this.parseJSON(e.responseText);u&&u(h)},c&&(e.ontimeout=c),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,i,r,l,c,u,h){e.open(t,i,!0),e.timeout=c;for(let[p,m]of Object.entries(r))e.setRequestHeader(p,m);return e.onerror=()=>h&&h(null),e.onreadystatechange=()=>{if(e.readyState===ux.complete&&h){let p=this.parseJSON(e.responseText);h(p)}},u&&(e.ontimeout=u),e.send(l),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let i=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let l=t?`${t}[${r}]`:r,c=e[r];typeof c=="object"?i.push(this.serialize(c,l)):i.push(encodeURIComponent(l)+"="+encodeURIComponent(c))}return i.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let i=e.match(/\?/)?"&":"?";return`${e}${i}${this.serialize(t)}`}},hx=e=>{let t="",i=new Uint8Array(e),r=i.byteLength;for(let l=0;l<r;l++)t+=String.fromCharCode(i[l]);return btoa(t)},ur=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Ih)&&(this.authToken=atob(t[1].slice(Ih.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=On.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Uh.websocket),"$1/"+Uh.longpoll)}endpointURL(){return ec.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,i){this.close(e,t,i),this.readyState=On.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===On.open||this.readyState===On.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:i,token:r,messages:l}=t;if(i===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else i=0;switch(i){case 200:l.forEach(c=>{setTimeout(()=>this.onmessage({data:c}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=On.open,this.onopen({}),this.poll();break;
20case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${i}`)}})}send(e){typeof e!="string"&&(e=hx(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 21`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,i){for(let l of this.reqs)l.abort();this.readyState=On.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:i});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,i,r,l){let c,u=()=>{this.reqs.delete(c),r()};c=ec.request(e,this.endpointURL(),t,i,this.timeout,u,h=>{this.reqs.delete(c),this.isActive()&&l(h)}),this.reqs.add(c)}},fx=class xs{constructor(t,i={}){let r=i.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,l=>{let{onJoin:c,onLeave:u,onSync:h}=this.caller;this.joinRef=this.channel.joinRef(),this.state=xs.syncState(this.state,l,c,u),this.pendingDiffs.forEach(p=>{this.state=xs.syncDiff(this.state,p,c,u)}),this.pendingDiffs=[],h()}),this.channel.on(r.diff,l=>{let{onJoin:c,onLeave:u,onSync:h}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(l):(this.state=xs.syncDiff(this.state,l,c,u),h())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return xs.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,i,r,l){let c=this.clone(t),u={},h={};return this.map(c,(p,m)=>{i[p]||(h[p]=m)}),this.map(i,(p,m)=>{let y=c[p];if(y){let g=m.metas.map(E=>E.phx_ref),b=y.metas.map(E=>E.phx_ref),w=m.metas.filter(E=>b.indexOf(E.phx_ref)<0),_=y.metas.filter(E=>g.indexOf(E.phx_ref)<0);w.length>0&&(u[p]=m,u[p].metas=w),_.length>0&&(h[p]=this.clone(y),h[p].metas=_)}else u[p]=m}),this.syncDiff(c,{joins:u,leaves:h},r,l)}static syncDiff(t,i,r,l){let{joins:c,leaves:u}=this.clone(i);return r||(r=function(){}),l||(l=function(){}),this.map(c,(h,p)=>{let m=t[h];if(t[h]=this.clone(p),m){let y=t[h].metas.map(b=>b.phx_ref),g=m.metas.filter(b=>y.indexOf(b.phx_ref)<0);t[h].metas.unshift(...g)}r(h,m,p)}),this.map(u,(h,p)=>{let m=t[h];if(!m)return;let y=p.metas.map(g=>g.phx_ref);m.metas=m.metas.filter(g=>y.indexOf(g.phx_ref)<0),l(h,m,p),m.metas.length===0&&delete t[h]}),t}static list(t,i){return i||(i=function(r,l){return l}),this.map(t,(r,l)=>i(r,l))}static map(t,i){return Object.getOwnPropertyNames(t).map(r=>i(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Cl={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let i=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(i))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[i,r,l,c,u]=JSON.parse(e);return t({join_ref:i,ref:r,topic:l,event:c,payload:u})}},binaryEncode(e){let{join_ref:t,ref:i,event:r,topic:l,payload:c}=e,u=this.META_LENGTH+t.length+i.length+l.length+r.length,h=new ArrayBuffer(this.HEADER_LENGTH+u),p=new DataView(h),m=0;p.setUint8(m++,this.KINDS.push),p.setUint8(m++,t.length),p.setUint8(m++,i.length),p.setUint8(m++,l.length),p.setUint8(m++,r.length),Array.from(t,g=>p.setUint8(m++,g.charCodeAt(0))),Array.from(i,g=>p.setUint8(m++,g.charCodeAt(0))),Array.from(l,g=>p.setUint8(m++,g.charCodeAt(0))),Array.from(r,g=>p.setUint8(m++,g.charCodeAt(0)));var y=new Uint8Array(h.byteLength+c.byteLength);return y.set(new Uint8Array(h),0),y.set(new Uint8Array(c),h.byteLength),y.buffer},binaryDecode(e){let t=new DataView(e),i=t.getUint8(0),r=new TextDecoder;switch(i){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,i){let r=t.getUint8(1),l=t.getUint8(2),c=t.getUint8(3),u=this.HEADER_LENGTH+this.META_LENGTH-1,h=i.decode(e.slice(u,u+r));u=u+r;let p=i.decode(e.slice(u,u+l));u=u+l;let m=i.decode(e.slice(u,u+c));u=u+c;let y=e.slice(u,e.byteLength);return{join_ref:h,ref:null,topic:p,event:m,payload:y}},decodeReply(e,t,i){let r=t.getUint8(1),l=t.getUint8(2),c=t.getUint8(3),u=t.getUint8(4),h=this.HEADER_LENGTH+this.META_LENGTH,p=i.decode(e.slice(h,h+r));h=h+r;let m=i.decode(e.slice(h,h+l));h=h+l;let y=i.decode(e.slice(h,h+c));h=h+c;let g=i.decode(e.slice(h,h+u));h=h+u;let b=e.slice(h,e.byteLength),w={status:g,response:b};return{join_ref:p,ref:m,topic:y,event:Kn.reply,payload:w}},decodeBroadcast(e,t,i){let r=t.getUint8(1),l=t.getUint8(2),c=this.HEADER_LENGTH+2,u=i.decode(e.slice(c,c+r));c=c+r;let h=i.decode(e.slice(c,c+l));c=c+l;let p=e.slice(c,e.byteLength);return{join_ref:null,ref:null,topic:u,event:h,payload:p}}},px=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||lx,this.transport=t.transport||En.WebSocket||ur,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let i=null;try{i=En&&En.sessionStorage}catch{}this.sessionStore=t.sessionStorage||i,this.establishedConnections=0,this.defaultEncoder=Cl.encode.bind(Cl),this.defaultDecoder=Cl.decode.bind(Cl),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==ur?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;gr&&gr.addEventListener&&(gr.addEventListener("pagehide",l=>{this.conn&&(this.disconnect(),r=this.connectClock)}),gr.addEventListener("pageshow",l=>{r===this.connectClock&&(r=null,this.connect())}),gr.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=l=>t.rejoinAfterMs?t.rejoinAfterMs(l):[1e3,2e3,5e3][l-1]||1e4,this.reconnectAfterMs=l=>t.reconnectAfterMs?t.reconnectAfterMs(l):[10,50,100,150,200,250,500,1e3,2e3][l-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(l,c,u)=>{console.log(`${l}: ${c}`,u)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Ls(t.params||{}),this.endPoint=`${e}/${Uh.websocket}`,this.vsn=t.vsn||ox,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new ow(()=>
21{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return ur}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=ec.appendParams(ec.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,i){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,i)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Ls(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==ur?this.connectWithF
vendor: 4,353 bytes, line 21
21allback(ur,this.longPollFallbackMs):this.transportConnect())}log(e,t,i){this.logger&&this.logger(e,t,i)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),i=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(l=>{l.ref===t&&(this.off([r]),e(Date.now()-i))});return!0}transportName(e){return e===ur?"LongPoll":e.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Ih}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let i=!1,r=!0,l,c,u=this.transportName(e),h=p=>{this.log("transport",`falling back to ${u}...`,p),this.off([l,c]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${u}`))return h("memorized");this.fallbackTimer=setTimeout(h,t),c=this.onError(p=>{this.log("transport","error",p),r&&!i&&(clearTimeout(this.fallbackTimer),h(p))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(i=!0,!r){let p=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${p}`,"true"),this.log("transport",`established ${p} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(h,t),this.ping(p=>{this.log("transport","connected to primary after",p),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),cx,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,i){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,i||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,i=1){if(i===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,i+1)},150*i)}waitForSocketClosed(e,t,i=1){if(i===5||e.readyState===On.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,i+1)},150*i)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,i=this.establishedConnections;this.triggerStateCallbacks("error",e,t,i),(t===this.transport||i>0)&&this.triggerChanError(e)}
21triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Kn.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case On.connecting:return"connecting";case On.open:return"open";case On.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([i])=>e.indexOf(i)===-1)}channel(e,t={}){let i=new dx(e,t,this);return this.channels.push(i),i}push(e){if(this.hasLogger()){let{topic:t,event:i,payload:r,ref:l,join_ref:c}=e;this.log("push",`${t} ${i} (${c}, ${l})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:i,event:r,payload:l,ref:c,join_ref:u}=t;if(c&&c===this.pendingHeartbeatRef){const h=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(l.status==="ok"?"ok":"error",h)}catch(p){this.log("error","error in heartbeat callback",p)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${l.status||""} ${i} ${r} ${c&&"("+c+")"||""}`.trim(),l);for(let h=0;h<this.channels.length;h++){const p=this.channels[h];p.isMember(i,r,l,u)&&p.trigger(r,l,c,u)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([i,r])=>{try{r(...t)}catch(l){this.log("error",`error in ${e} callback`,l)}})}catch(i){this.log("error",`error triggering ${e} callbacks`,i)}}leaveOpenTopic(e){let t=this.channels.find(i=>i.topic===e&&(i.isJoined()||i.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Ds{constructor(t,i){const r=gx(i);this.presence=new fx(t.getChannel(),r),this.presence.onJoin((l,c,u)=>{const h=Ds.onJoinPayload(l,c,u);t.getChannel().trigger("presence",h)}),this.presence.onLeave((l,c,u)=>{const h=Ds.onLeavePayload(l,c,u);t.getChannel().trigger("presence",h)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Ds.transformState(this.presence.state)}static transformState(t){return t=mx(t),Object.getOwnPropertyNames(t).reduce((i,r)=>{const l=t[r];return i[r]=Yl(l),i},{})}static onJoinPayload(t,i,r){const l=kv(i),c=Yl(r);return{event:"join",key:t,currentPresences:l,newPresences:c}}static onLeavePayload(t,i,r){const l=kv(i),c=Yl(r);return{event:"leave",key:t,currentPresences:l,leftPresences:c}}}function Yl(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function mx(e){return JSON.parse(JSON.stringify(e))}function gx(e){return e?.events&&{events:e.events}}function kv(e){return e?.metas?Yl(e):[]}var xv;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(xv||(xv={}));class yx{get state(){return this.presenceAdapter.state}constructor(t,i){this.channel=t,this.presenceAdapter=new Ds(this.channel.channelAdapter,i)}}function vx(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
21if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const i=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${i}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class bx{constructor(t,i,r){const l=wx(r);this.channel=t.getSocket().channel(i,l),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,i){return this.channel.on(t,i)}off(t,i){this.channel.off(t,i)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,i,r){let l;try{l=this.channel.push(t,i,r)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>Wk){const c=this.channel.pushBuffer.shift();c.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${c.event}`,c.payload())}return l}updateJoinPayload(t){const i=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},i),t)}canPush(){return this.socket.isConnected()&&this.state===La.joined}isJoined(){return this.state===La.joined}isJoining(){return this.state===La.joining}isClosed(){return this.state===La.closed}isLeaving(){return this.state===La.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function wx(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var Rv;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Rv||(Rv={}));var wr;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(wr||(wr={}));var Qn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Qn||(Qn={}));class Ms{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,i={config:{}},r){var l,c;if(this.topic=t,this.params=i,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},i.config),this.channelAdapter=new bx(this.socket.socketAdapter,t,this.params),this.presence=new yx(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=sw(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((c=(l=this.params.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,i=this.timeout){var r,l,c;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:u,presence:h,private:p}}=this.params,m=(l=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(w=>w.filter))!==null&&l!==void 0?l:[],y=!!this.bindings[wr.PRESENCE]&&this.bindings[wr.PRESENCE].length>0||((c=this.params.config.presence)===null||c===void 0?void 0:c.enabled)===!0,g={},b={broadcast:u,presence:Object.assign(Object.assign({},h),{enabled:y}),postgres_changes:m,private:p};this.socket.accessTokenValue&&(g.access_token=this.socket.accessTokenValue),this._onError(w=>{t?.(Qn.CHANNEL_ERROR,vx(w))}),this._onClose(()=>t?.(Qn.CLOSED)),this.updateJoinPayload(Object.assign({config:b},g)),this._updateFilterMessage(),this.channelAdapter.subscribe(i).receive("ok",async({postgres_changes:w})=>{if(this.socket._isManualToken()||this.socket.setAuth(),w===void 0){t?.(Qn.SUBSCRIBED);return}this._updatePostgresBindings(w,t)}).receive("error",w=>{this.state=La.errored;const _=Object.values(w).join(", ")||"error";t?.(Qn.CHANNEL_ERROR,new Error(_,{cause:w}))}).receive("timeout",()=>{t?.(Qn.TIMED_OUT)})}return this}_updatePostgresBindings(t,i){var r;const l=this.bindings.postgres_changes,c=(r=l?.length)!==null&&r!==void 0?r:0,u=[];for(let h=0;h<c;h++){const p=l[h],{filter:{event:m,schema:y,table:g,filter:b}}=p,w=t&&t[h];if(w&&w.event===m&&Ms.isFilterValueEqual(w.schema,y)&&Ms.isFilterValueEqual(w.table,g)&&Ms.isFilterValueEqual(w.filter,b))u.push(Object.assign(Object.assign({},p),{id:w.id}));else{this.unsubscribe(),this.state=La.errored,i?.(Qn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=u,this.state!=La.errored&&i&&i(Qn.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,i={}){return await this.send({type:"presence",event:"track",payload:t},i.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,i,r){const l=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),c=t===wr.PRESENCE||t===wr.POSTGRES_CHANGES;if(l&&c)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,i,r)}async httpSend(t,i,r={}){var l;if(i==null)return Promise.reject(new Error("Payload is required for httpSend()"));const c={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(c.Authorization=`Bearer ${this.socket.accessTokenValue}`);const u={method:"POST",headers:c,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:i,private:this.private}]})},h=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(l=r.timeout)!==null&&l!==void 0?l:this.timeout);if(h.status===202)return{success:!0};let p=h.statusText;
21try{const m=await h.json();p=m.error||m.message||p}catch{}return Promise.reject(new Error(p))}async send(t,i={}){var r,l;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:c,payload:u}=t,h={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(h.Authorization=`Bearer ${this.socket.accessTokenValue}`);const p={method:"POST",headers:h,body:JSON.stringify({messages:[{topic:this.subTopic,event:c,payload:u,private:this.private}]})};try{const m=await this._fetchWithTimeout(this.broadcastEndpointURL,p,(r=i.timeout)!==null&&r!==void 0?r:this.timeout);return await((l=m.body)===null||l===void 0?void 0:l.cancel()),m.ok?"ok":"error"}catch(m){return m instanceof Error&&m.name==="AbortError"?"timed out":"error"}}else return new Promise(c=>{var u,h,p;const m=this.channelAdapter.push(t.type,t,i.timeout||this.timeout);t.type==="broadcast"&&!(!((p=(h=(u=this.params)===null||u===void 0?void 0:u.config)===null||h===void 0?void 0:h.broadcast)===null||p===void 0)&&p.ack)&&c("ok"),m.receive("ok",()=>c("ok")),m.receive("error",()=>c("error")),m.receive("timeout",()=>c("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(i=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>i("ok")).receive("timeout",()=>i("timed out")).receive("error",()=>i("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,i,r){const l=new AbortController,c=setTimeout(()=>l.abort(),r),u=await this.socket.fetch(t,Object.assign(Object.assign({},i),{signal:l.signal}));return clearTimeout(c),u}_on(t,i,r){const l=t.toLocaleLowerCase(),c=this.channelAdapter.on(t,r),u={type:l,filter:i,callback:r,ref:c};return this.bindings[l]?this.bindings[l].push(u):this.bindings[l]=[u],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,i,r)=>{var l,c,u,h,p,m,y;const g=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(g,r))return!1;const b=(l=this.bindings[g])===null||l===void 0?void 0:l.find(w=>w.ref===t.ref);if(!b)return!0;if(["broadcast","presence","postgres_changes"].includes(g))if("id"in b){const w=b.id,_=(c=b.filter)===null||c===void 0?void 0:c.event;return w&&((u=i.ids)===null||u===void 0?void 0:u.includes(w))&&(_==="*"||_?.toLocaleLowerCase()===((h=i.data)===null||h===void 0?void 0:h.type.toLocaleLowerCase()))}else{const w=(m=(p=b?.filter)===null||p===void 0?void 0:p.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return w==="*"||w===((y=i?.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return b.type.toLocaleLowerCase()===g})}_notThisChannelEvent(t,i){const{close:r,error:l,leave:c,join:u}=iw;return i&&[r,l,c,u].includes(t)&&i!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,i,r)=>{if(typeof i=="object"&&"ids"in i){const l=i.data,{schema:c,table:u,commit_timestamp:h,type:p,errors:m}=l;return Object.assign(Object.assign({},{schema:c,table:u,commit_timestamp:h,eventType:p,new:{},old:{},errors:m}),this._getPayloadRecords(l))}return i})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const i in t.bindings)for(const r of t.bindings[i])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,i){return(t??void 0)===(i??void 0)}_getPayloadRecords(t){const i={new:{},old:{}};
21return(t.type==="INSERT"||t.type==="UPDATE")&&(i.new=Av(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(i.old=Av(t.columns,t.old_record)),i}}class Sx{constructor(t,i){this.socket=new px(t,i)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,i,r,l=1e4){return new Promise(c=>{setTimeout(()=>c("timeout"),l),this.socket.disconnect(()=>{t(),c("ok")},i,r)})}push(t){this.socket.push(t)}log(t,i,r){this.socket.log(t,i,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Mh.connecting}isDisconnecting(){return this.socket.connectionState()==Mh.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Cv={HEARTBEAT_INTERVAL:25e3},_x=[1e3,2e3,5e3,1e4],Ex=1e4;function Tx(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var i;return(i=Array.from(e.keys())[t])!==null&&i!==void 0?i:null},removeItem(t){e.delete(t)},setItem(t,i){e.set(t,String(i))}}}function Ox(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return Tx()}const Ax=` 22 addEventListener("message", (e) => { 23 if (e.data.event === "start") { 24 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 25 } 26 });`;class kx{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,i){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={},this.ref=0,this.serializer=new Zk,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=c=>c?(...u)=>c(...u):(...u)=>fetch(...u),!(!((r=i?.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=i.params.apikey;const l=this._initializeOptions(i);this.socketAdapter=new Sx(t,l),this.httpEndpoint=sw(t),this.fetch=this._resolveFetch(i?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const i=t.message;throw i.includes("Node.js")?new Error(`${i} 27 28To use Realtime in Node.js, you need to provide a WebSocket implementation: 29 30Option 1: Use Node.js 22+ which has native WebSocket support 31Option 2: Install and provide the "ws" package: 32 33 npm install ws 34 35 import ws from "ws" 36 const client = new RealtimeClient(url, { 37 ...options, 38 transport: ws 39 })`):new Error(`WebSocket not available: ${i}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,i){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,i)}getChannels(){return this.channels}async removeChannel(t){const i=await t.unsubscribe();return i==="ok"&&t.teardown(),i}async removeAllChannels(){const t=this.channels.map(async r=>{const l=await r.unsubscribe();return r.teardown(),l}),i=await Promise.all(t);return await this.disconnect(),i}log(t,i,r){this.socketAdapter.log(t,i,r)}connectionState(){return this.socketAdapter.connectionState()||Mh.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,i={config:{}}){const r=`realtime:${t}`,l=this.getChannels().find(c=>c.topic===r);if(l)return l;{const c=new Ms(`realtime:${t}`,i,this);return this._cancelPendingDisconnect(),this.channels.push(c),c}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(i=>i.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
39this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let i,r=!1;if(t)i=t,r=!0;else if(this.accessToken)try{i=await this.accessToken()}catch(l){this.log("error","Error fetching access token from callback",l),i=this.accessTokenValue}else i=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=i&&(this.accessTokenValue=i,this.channels.forEach(l=>{const c={access_token:i,version:Kk};i&&l.updateJoinPayload(c),l.joinedOnce&&l.channelAdapter.isJoined()&&l.channelAdapter.push(iw.access_token,{access_token:i})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(i=>{this.log("error",`Error setting auth in ${t}`,i)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(i=>{this.log("error","error waiting for auth on connect",i)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(i,r)=>{i=="sent"&&this._setAuthSafely(),t&&t(i,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=i=>{this.log("worker","worker error",i.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=i=>{i.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let i;if(t)i=t;else{const r=new Blob([Ax],{type:"application/javascript"});i=URL.createObjectURL(r)}return i}_initializeOptions(t){var i,r,l,c,u,h,p,m,y,g,b,w;this.worker=(i=t?.worker)!==null&&i!==void 0?i:!1,this.accessToken=(r=t?.accessToken)!==null&&r!==void 0?r:null;const _={};_.timeout=(l=t?.timeout)!==null&&l!==void 0?l:Xk,_.heartbeatIntervalMs=(c=t?.heartbeatIntervalMs)!==null&&c!==void 0?c:Cv.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(u=t?.disconnectOnEmptyChannelsAfterMs)!==null&&u!==void 0?u:2*((h=t?.heartbeatIntervalMs)!==null&&h!==void 0?h:Cv.HEARTBEAT_INTERVAL),_.transport=(p=t?.transport)!==null&&p!==void 0?p:Fk.getWebSocketConstructor(),_.params=t?.params,_.logger=t?.logger,_.heartbeatCallback=this._wrapHeartbeatCallback(t?.heartbeatCallback),_.sessionStorage=(m=t?.sessionStorage)!==null&&m!==void 0?m:Ox(),_.reconnectAfterMs=(y=t?.reconnectAfterMs)!==null&&y!==void 0?y:(j=>_x[j-1]||Ex);let E,A;const k=(g=t?.vsn)!==null&&g!==void 0?g:Jk;switch(k){case Qk:E=(j,C)=>C(JSON.stringify(j)),A=(j,C)=>C(JSON.parse(j));break;case aw:E=this.serializer.encode.bind(this.serializer),A=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${_.vsn}`)}if(_.vsn=k,_.encode=(b=t?.encode)!==null&&b!==void 0?b:E,_.decode=(w=t?.decode)!==null&&w!==void 0?w:A,_.beforeReconnect=this._reconnectAuth.bind(this),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,_.params=Object.assign(Object.assign({},_.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t?.workerUrl,_.autoSendHeartbeat=!this.worker}return _}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
39var Gs=class extends Error{constructor(e,t){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)&&t.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function xx(e,t,i){const r=new URL(t,e);if(i)for(const[l,c]of Object.entries(i))c!==void 0&&r.searchParams.set(l,c);return r.toString()}async function Rx(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 Cx(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:i,path:r,query:l,body:c,headers:u}){const h=xx(e.baseUrl,r,l),p=await Rx(e.auth),m=await t(h,{method:i,headers:{...c?{"Content-Type":"application/json"}:{},...p,...u},body:c?JSON.stringify(c):void 0}),y=await m.text(),g=(m.headers.get("content-type")||"").includes("application/json"),b=g&&y?JSON.parse(y):y;if(!m.ok){const w=g?b:void 0,_=w?.error;throw new Gs(_?.message??`Request failed with status ${m.status}`,{status:m.status,icebergType:_?.type,icebergCode:_?.code,details:w})}return{status:m.status,headers:m.headers,data:b}}}}function jl(e){return e.join("�")}var jx=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:jl(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const i={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:i})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${jl(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${jl(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${jl(e.namespace)}`}),!0}catch(t){if(t instanceof Gs&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(i){if(i instanceof Gs&&i.status===409)return;throw i}}};function dr(e){return e.join("�")}var Nx=class{constructor(e,t="",i){this.client=e,this.prefix=t,this.accessDelegation=i}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${dr(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const i={};return this.accessDelegation&&(i["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${dr(e.namespace)}/tables`,body:t,headers:i})).data.metadata}async updateTable(e,t){const i=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${dr(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":i.data["metadata-location"],metadata:i.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${dr(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(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/${dr(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/${dr(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(i){if(i instanceof Gs&&i.status===404)return!1;throw i}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(i){if(i instanceof Gs&&i.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw i}}}
39,Lx=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const i=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=Cx({baseUrl:i,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new jx(this.client,t),this.tableOps=new Nx(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)}async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function Vs(e){"@babel/helpers - typeof";return Vs=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},Vs(e)}function Dx(e,t){if(Vs(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var r=i.call(e,t);if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mx(e){var t=Dx(e,"string");return Vs(t)=="symbol"?t:t+""}function zx(e,t,i){return(t=Mx(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function jv(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),i.push.apply(i,r)}return i}function de(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?jv(Object(i),!0).forEach(function(r){zx(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):jv(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}var yc=class extends Error{constructor(e,t="storage",i,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=i,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function vc(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Ph=class extends yc{constructor(e,t,i,r="storage"){super(e,r,t,i),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=i}toJSON(){return de({},super.toJSON())}},lw=class extends yc{constructor(e,t,i="storage"){super(e,i),this.name=i==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function tc(e,t,i){const r=de({},e),l=t.toLowerCase();for(const c of Object.keys(r))c.toLowerCase()===l&&delete r[c];return r[l]=i,r}function Ux(e){const t={};for(const[i,r]of Object.entries(e))t[i.toLowerCase()]=r;return t}const Ix=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Px=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)},qh=e=>{if(Array.isArray(e))return e.map(i=>qh(i));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([i,r])=>{const l=i.replace(/([-_][a-z])/gi,c=>c.toUpperCase().replace(/[-_]/g,""));t[l]=qh(r)}),t},qx=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Nv=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;
39if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const i=t.error;if(typeof i.message=="string")return i.message}}return JSON.stringify(e)},Bx=async(e,t,i,r)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const l=e;let c=parseInt(String(l.status),10);Number.isFinite(c)||(c=500),l.json().then(u=>{const h=u?.statusCode||u?.code||c+"";t(new Ph(Nv(u),c,h,r))}).catch(()=>{const u=c+"";t(new Ph(l.statusText||`HTTP ${c} error`,c,u,r))})}else t(new lw(Nv(e),e,r))},$x=(e,t,i,r)=>{const l={method:e,headers:t?.headers||{}};if(e==="GET"||e==="HEAD"||!r)return de(de({},l),i);if(Px(r)){var c;const u=t?.headers||{};let h;for(const[p,m]of Object.entries(u))p.toLowerCase()==="content-type"&&(h=m);l.headers=tc(u,"Content-Type",(c=h)!==null&&c!==void 0?c:"application/json"),l.body=JSON.stringify(r)}else l.body=r;return t?.duplex&&(l.duplex=t.duplex),de(de({},l),i)};async function As(e,t,i,r,l,c,u){return new Promise((h,p)=>{e(i,$x(t,r,l,c)).then(m=>{if(!m.ok)throw m;if(r?.noResolveJson)return m;if(u==="vectors"){const y=m.headers.get("content-type");if(m.headers.get("content-length")==="0"||m.status===204)return{};if(!y||!y.includes("application/json"))return{}}return m.json()}).then(m=>h(m)).catch(m=>Bx(m,p,r,u))})}function cw(e="storage"){return{get:async(t,i,r,l)=>As(t,"GET",i,r,l,void 0,e),post:async(t,i,r,l,c)=>As(t,"POST",i,l,c,r,e),put:async(t,i,r,l,c)=>As(t,"PUT",i,l,c,r,e),head:async(t,i,r,l)=>As(t,"HEAD",i,de(de({},r),{},{noResolveJson:!0}),l,void 0,e),remove:async(t,i,r,l,c)=>As(t,"DELETE",i,l,c,r,e)}}const Hx=cw("storage"),{get:Fs,post:un,put:Bh,head:Gx,remove:bf}=Hx,Ht=cw("vectors");var xr=class{constructor(e,t={},i,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=Ux(t),this.fetch=Ix(i),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=tc(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(vc(i))return{data:null,error:i};throw i}}},Vx=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(vc(t))return{data:null,error:t};throw t}}};let uw;uw=Symbol.toStringTag;var Fx=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[uw]="BlobDownloadBuilder",this.promise=null}asStream(){return new Vx(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(vc(t))return{data:null,error:t};throw t}}};const Yx={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Lv={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var Kx=class extends xr{constructor(e,t={},i,r){super(e,t,r,"storage"),this.bucketId=i}async uploadOrUpdate(e,t,i,r){var l=this;return l.handleOperation(async()=>{let c;const u=de(de({},Lv),r);let h=de(de({},l.headers),e==="POST"&&{"x-upsert":String(u.upsert)});const p=u.metadata;if(typeof Blob<"u"&&i instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),p&&c.append("metadata",l.encodeMetadata(p)),c.append("",i)):typeof FormData<"u"&&i instanceof FormData?(c=i,c.has("cacheControl")||c.append("cacheControl",u.cacheControl),p&&!c.has("metadata")&&c.append("metadata",l.encodeMetadata(p))):(c=i,h["cache-control"]=`max-age=${u.cacheControl}`,h["content-type"]=u.contentType,p&&(h["x-metadata"]=l.toBase64(l.encodeMetadata(p))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!u.duplex&&(u.duplex="half")),r?.headers)for(const[b,w]of Object.entries(r.headers))h=tc(h,b,w);const m=l._removeEmptyFolders(t),y=l._getFinalPath(m),g=await(e=="PUT"?Bh:un)(l.fetch,`${l.url}/object/${y}`,c,de({headers:h},u?.duplex?{duplex:u.duplex}:{}));return{path:m,id:g.Id,fullPath:g.Key}})}async upload(e,t,i){return this.uploadOrUpdate("POST",e,t,i)}async uploadToSignedUrl(e,t,i,r){var l=this;const c=l._removeEmptyFolders(e),u=l._getFinalPath(c),h=new URL(l.url+`/object/upload/sign/${u}`);return h.searchParams.set("token",t),l.handleOperation(async()=>{let p;const m=de(de({},Lv),r);let y=de(de({},l.headers),{"x-upsert":String(m.upsert)});const g=m.metadata;if(typeof Blob<"u"&&i instanceof Blob?(p=new FormData,p.append("cacheControl",m.cacheControl),g&&p.append("metadata",l.encodeMetadata(g)),p.append("",i)):typeof FormData<"u"&&i instanceof FormData?(p=i,p.has("cacheControl")||p.append("cacheControl",m.cacheControl),g&&!p.has("metadata")&&p.append("metadata",l.encodeMetadata(g))):(p=i,y["cac
39he-control"]=`max-age=${m.cacheControl}`,y["content-type"]=m.contentType,g&&(y["x-metadata"]=l.toBase64(l.encodeMetadata(g))),(typeof ReadableStream<"u"&&p instanceof ReadableStream||p&&typeof p=="object"&&"pipe"in p&&typeof p.pipe=="function")&&!m.duplex&&(m.duplex="half")),r?.headers)for(const[b,w]of Object.entries(r.headers))y=tc(y,b,w);return{path:c,fullPath:(await Bh(l.fetch,h.toString(),p,de({headers:y},m?.duplex?{duplex:m.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var i=this;return i.handleOperation(async()=>{let r=i._getFinalPath(e);const l=de({},i.headers);t?.upsert&&(l["x-upsert"]="true");const c=await un(i.fetch,`${i.url}/object/upload/sign/${r}`,{},{headers:l}),u=new URL(i.url+c.url),h=u.searchParams.get("token");if(!h)throw new yc("No token returned by API");return{signedUrl:u.toString(),path:e,token:h}})}async update(e,t,i){return this.uploadOrUpdate("PUT",e,t,i)}async move(e,t,i){var r=this;return r.handleOperation(async()=>await un(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
39stinationBucket:i?.destinationBucket},{headers:r.headers}))}async copy(e,t,i){var r=this;return r.handleOperation(async()=>({path:(await un(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:i?.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,i){var r=this;return r.handleOperation(async()=>{let l=r._getFinalPath(e);const c=typeof i?.transform=="object"&&i.transform!==null&&Object.keys(i.transform).length>0;let u=await un(r.fetch,`${r.url}/object/sign/${l}`,de({expiresIn:t},c?{transform:i.transform}:{}),{headers:r.headers});const h=new URLSearchParams;i?.download&&h.set("download",i.download===!0?"":i.download),i?.cacheNonce!=null&&h.set("cacheNonce",String(i.cacheNonce));const p=h.toString();return{signedUrl:encodeURI(`${r.url}${u.signedURL}${p?`&${p}`:""}`)}})}async createSignedUrls(e,t,i){var r=this;return r.handleOperation(async()=>{const l=await un(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),c=new URLSearchParams;i?.download&&c.set("download",i.download===!0?"":i.download),i?.cacheNonce!=null&&c.set("cacheNonce",String(i.cacheNonce));const u=c.toString();return l.map(h=>de(de({},h),{},{signedUrl:h.signedURL?encodeURI(`${r.url}${h.signedURL}${u?`&${u}`:""}`):null}))})}download(e,t,i){const r=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",l=new URLSearchParams;t?.transform&&this.applyTransformOptsToQuery(l,t.transform),t?.cacheNonce!=null&&l.set("cacheNonce",String(t.cacheNonce));const c=l.toString(),u=this._getFinalPath(e),h=()=>Fs(this.fetch,`${this.url}/${r}/${u}${c?`?${c}`:""}`,{headers:this.headers,noResolveJson:!0},i);return new Fx(h,this.shouldThrowOnError)}async info(e){var t=this;const i=t._getFinalPath(e);return t.handleOperation(async()=>qh(await Fs(t.fetch,`${t.url}/object/info/${i}`,{headers:t.headers})))}async exists(e){var t=this;const i=t._getFinalPath(e);try{return await Gx(t.fetch,`${t.url}/object/${i}`,{headers:t.headers}),{data:!0,error:null}}catch(l){if(t.shouldThrowOnError)throw l;if(vc(l)){var r;const c=l instanceof Ph?l.status:l instanceof lw?(r=l.originalError)===null||r===void 0?void 0:r.status:void 0;if(c!==void 0&&[400,404].includes(c))return{data:!1,error:l}}throw l}}getPublicUrl(e,t){const i=this._getFinalPath(e),r=new URLSearchParams;t?.download&&r.set("download",t.download===!0?"":t.download),t?.transform&&this.applyTransformOptsToQuery(r,t.transform),t?.cacheNonce!=null&&r.set("cacheNonce",String(t.cacheNonce));const l=r.toString(),c=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${c}/public/${i}`)+(l?`?${l}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await bf(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,i){var r=this;return r.handleOperation(async()=>{const l=de(de(de({},Yx),t),{},{prefix:e||""});return await un(r.fetch,`${r.url}/object/list/${r.bucketId}`,l,{headers:r.headers},i)})}async listV2(e,t){var i=this;return i.handleOperation(async()=>{const r=de({},e);return await un(i.fetch,`${i.url}/object/list-v2/${i.bucketId}`,r,{headers:i.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const Qx="2.105.4",to={"X-Client-Info":`storage-js/${Qx}`};var Jx=class extends xr{constructor(e,t={},i,r){const l=new URL(e);r?.useNewHostname&&/supabase\.(co|in|red)$/.test(l.hostname)&&!l.hostname.includes("storage.supabase.")&&(l.hostname=l.hostname.replace("supabase.","storage.supabase."));const c=l.href.replace(/\/$/,""),u=de(de({},to),t);super(c,u,i,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const i=t.listBucketOptionsToQueryString(e);return await Fs(t.fetch,`${t.url}/bucket${i}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Fs(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var i=this;return i.handleOperation(async()=>await un(i.fetch,`${i.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:i.headers}))}async updateBucket(e,t){var i=this;return i.handleOperation(async()=>await Bh(i.fetch,`${i.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:i.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await un(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await bf(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},Xx=class extends xr{constructor(e,t={},i){const r=e.replace(/\/$/,""),l=de(de({},to),t);super(r,l,i,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await un(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const i=new URLSearchParams;e?.limit!==void 0&&i.set("limit",e.limit.toString()),e?.offset!==void 0&&i.set("offset",e.offset.toString()),e?.sortColumn&&i.set("sortColumn",e.sortColumn),e?.sortOrder&&i.set("sortOrder",e.sortOrder),e?.search&&i.set("search",e.search);const r=i.toString(),l=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Fs(t.fetch,l,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await bf(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!qx(e))throw new yc("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 i=new Lx({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
39),r=this.shouldThrowOnError;return new Proxy(i,{get(l,c){const u=l[c];return typeof u!="function"?u:async(...h)=>{try{return{data:await u.apply(l,h),error:null}}catch(p){if(r)throw p;return{data:null,error:p}}}}})}},Wx=class extends xr{constructor(e,t={},i){const r=e.replace(/\/$/,""),l=de(de({},to),{},{"Content-Type":"application/json"},t);super(r,l,i,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var i=this;return i.handleOperation(async()=>await Ht.post(i.fetch,`${i.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:i.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var i=this;return i.handleOperation(async()=>await Ht.post(i.fetch,`${i.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:i.headers})||{})}},Zx=class extends xr{constructor(e,t={},i){const r=e.replace(/\/$/,""),l=de(de({},to),{},{"Content-Type":"application/json"},t);super(r,l,i,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},eR=class extends xr{constructor(e,t={},i){const r=e.replace(/\/$/,""),l=de(de({},to),{},{"Content-Type":"application/json"},t);super(r,l,i,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},tR=class extends eR{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new nR(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,i=this;return t().call(i,e)}async getBucket(e){var t=()=>super.getBucket,i=this;return t().call(i,e)}async listBuckets(e={}){var t=()=>super.listBuckets,i=this;return t().call(i,e)}async deleteBucket(e){var t=()=>super.deleteBucket,i=this;return t().call(i,e)}},nR=class extends Wx{constructor(e,t,i,r){super(e,t,r),this.vectorBucketName=i}async createIndex(e){var t=()=>super.createIndex,i=this;return t().call(i,de(de({},e),{},{vectorBucketName:i.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,i=this;return t().call(i,de(de({},e),{},{vectorBucketName:i.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,i=this;return t().call(i,i.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,i=this;return t().call(i,i.vectorBucketName,e)}index(e){return new aR(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},aR=class extends Zx{constructor(e,t,i,r,l){super(e,t,l),this.vectorBucketName=i,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,i=this;return t().call(i,de(de({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async getVectors(e){var t=()=>super.getVectors,i=this;return t().call(i,de(de({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,i=this;return t().call(i,de(de({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,i=this;return t().call(i,de(de({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,i=this;return t().call(i,de(de({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}},iR=class extends Jx{constructor(e,t={},i,r){super(e,t,i,r)}from(e){return new Kx(this.url,this.headers,e,this.fetch)}get vectors(){return new tR(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Xx(this.url+"/iceberg",this.headers,this.fetch)}};const dw="2.105.4",yr=30*1e3,$h=3,nh=$h*yr,rR="http://localhost:9999",sR="supabase.auth.token",oR={"X-Client-Info":`gotrue-js/${dw}`},Hh="X-Supabase-Api-Version",hw={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},lR=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,cR=600*1e3;
39class Ys extends Error{constructor(t,i,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=i,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function X(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class uR extends Ys{constructor(t,i,r){super(t,i,r),this.name="AuthApiError",this.status=i,this.code=r}}function dR(e){return X(e)&&e.name==="AuthApiError"}class hn extends Ys{constructor(t,i){super(t),this.name="AuthUnknownError",this.originalError=i}}class aa extends Ys{constructor(t,i,r,l){super(t,r,l),this.name=i,this.status=r}}class ct extends aa{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Nl(e){return X(e)&&e.name==="AuthSessionMissingError"}class hr extends aa{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Ll extends aa{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Dl extends aa{constructor(t,i=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=i}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function hR(e){return X(e)&&e.name==="AuthImplicitGrantRedirectError"}class Dv extends aa{constructor(t,i=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=i}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class fR extends aa{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 Gh extends aa{constructor(t,i){super(t,"AuthRetryableFetchError",i,void 0)}}function ah(e){return X(e)&&e.name==="AuthRetryableFetchError"}class Mv extends aa{constructor(t,i,r){super(t,"AuthWeakPasswordError",i,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Vh extends aa{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const nc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),zv=` 40\r=`.split(""),pR=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<zv.length;t+=1)e[zv[t].charCodeAt(0)]=-2;for(let t=0;t<nc.length;t+=1)e[nc[t].charCodeAt(0)]=t;return e})();function Uv(e,t,i){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;i(nc[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;i(nc[r]),t.queuedBits-=6}}function fw(e,t,i){const r=pR[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)i(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Iv(e){const t=[],i=u=>{t.push(String.fromCodePoint(u))},r={utf8seq:0,codepoint:0},l={queue:0,queuedBits:0},c=u=>{yR(u,r,i)};for(let u=0;u<e.length;u+=1)fw(e.charCodeAt(u),l,c);return t.join("")}function mR(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 gR(e,t){for(let i=0;i<e.length;i+=1){let r=e.charCodeAt(i);if(r>55295&&r<=56319){const l=(r-55296)*1024&65535;r=(e.charCodeAt(i+1)-56320&65535|l)+65536,i+=1}mR(r,t)}}function yR(e,t,i){if(t.utf8seq===0){if(e<=127){i(e);return}for(let r=1;r<6;r+=1)if((e>>7-r&1)===0){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&i(t.codepoint)}}function kr(e){const t=[],i={queue:0,queuedBits:0},r=l=>{t.push(l)};for(let l=0;l<e.length;l+=1)fw(e.charCodeAt(l),i,r);return new Uint8Array(t)}function vR(e){const t=[];return gR(e,i=>t.push(i)),new Uint8Array(t)}function yi(e){const t=[],i={queue:0,queuedBits:0},r=l=>{t.push(l)};return e.forEach(l=>Uv(l,i,r)),Uv(null,i,r),t.join("")}function bR(e){return Math.round(Date.now()/1e3)+e}function wR(){return Symbol("auth-callback")}const yt=()=>typeof window<"u"&&typeof document<"u",di={tested:!1,writable:!1},pw=()=>
40{if(!yt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(di.tested)return di.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),di.tested=!0,di.writable=!0}catch{di.tested=!0,di.writable=!1}return di.writable};function SR(e){const t={},i=new URL(e);if(i.hash&&i.hash[0]==="#")try{new URLSearchParams(i.hash.substring(1)).forEach((l,c)=>{t[c]=l})}catch{}return i.searchParams.forEach((r,l)=>{t[l]=r}),t}const mw=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),_R=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",vr=async(e,t,i)=>{await e.setItem(t,JSON.stringify(i))},hi=async(e,t)=>{const i=await e.getItem(t);if(!i)return null;try{return JSON.parse(i)}catch{return null}},gt=async(e,t)=>{await e.removeItem(t)};class bc{constructor(){this.promise=new bc.promiseConstructor((t,i)=>{this.resolve=t,this.reject=i})}}bc.promiseConstructor=Promise;function Ml(e){const t=e.split(".");if(t.length!==3)throw new Vh("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!lR.test(t[r]))throw new Vh("JWT not in base64url format");return{header:JSON.parse(Iv(t[0])),payload:JSON.parse(Iv(t[1])),signature:kr(t[2]),raw:{header:t[0],payload:t[1]}}}async function ER(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function TR(e,t){return new Promise((r,l)=>{(async()=>{for(let c=0;c<1/0;c++)try{const u=await e(c);if(!t(c,null,u)){r(u);return}}catch(u){if(!t(c,u)){l(u);return}}})()})}function OR(e){return("0"+e.toString(16)).substr(-2)}function AR(){const t=new Uint32Array(56);if(typeof crypto>"u"){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=i.length;let l="";for(let c=0;c<56;c++)l+=i.charAt(Math.floor(Math.random()*r));return l}return crypto.getRandomValues(t),Array.from(t,OR).join("")}async function kR(e){const i=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",i),l=new Uint8Array(r);return Array.from(l).map(c=>String.fromCharCode(c)).join("")}async function xR(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 i=await kR(e);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function fr(e,t,i=!1){const r=AR();let l=r;i&&(l+="/recovery"),await vr(e,`${t}-code-verifier`,l);const c=await xR(r);return[c,r===c?"plain":"s256"]}const RR=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function CR(e){const t=e.headers.get(Hh);if(!t||!t.match(RR))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function jR(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 NR(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 LR=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Yn(e){if(!LR.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function ln(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function ih(){const e={};return new Proxy(e,{get:(t,i)=>{if(i==="__isUserNotAvailableProxy")return!0;if(typeof i=="symbol"){const r=i.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${i}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function DR(e,t){return new Proxy(e,{get:(i,r,l)=>{if(r==="__isInsecureUserWarningProxy")return!0;
40if(typeof r=="symbol"){const c=r.toString();if(c==="Symbol(Symbol.toPrimitive)"||c==="Symbol(Symbol.toStringTag)"||c==="Symbol(util.inspect.custom)"||c==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(i,r,l)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(i,r,l)}})}function Pv(e){return JSON.parse(JSON.stringify(e))}const pi=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},MR=[502,503,504,520,521,522,523,524,530];async function qv(e){var t;if(!_R(e))throw new Gh(pi(e),0);if(MR.includes(e.status))throw new Gh(pi(e),e.status);let i;try{i=await e.json()}catch(c){throw new hn(pi(c),c)}let r;const l=CR(e);if(l&&l.getTime()>=hw["2024-01-01"].timestamp&&typeof i=="object"&&i&&typeof i.code=="string"?r=i.code:typeof i=="object"&&i&&typeof i.error_code=="string"&&(r=i.error_code),r){if(r==="weak_password")throw new Mv(pi(i),e.status,((t=i.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new ct}else if(typeof i=="object"&&i&&typeof i.weak_password=="object"&&i.weak_password&&Array.isArray(i.weak_password.reasons)&&i.weak_password.reasons.length&&i.weak_password.reasons.reduce((c,u)=>c&&typeof u=="string",!0))throw new Mv(pi(i),e.status,i.weak_password.reasons);throw new uR(pi(i),e.status||500,r)}const zR=(e,t,i,r)=>{const l={method:e,headers:t?.headers||{}};return e==="GET"?l:(l.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t?.headers),l.body=JSON.stringify(r),Object.assign(Object.assign({},l),i))};async function ae(e,t,i,r){var l;const c=Object.assign({},r?.headers);c[Hh]||(c[Hh]=hw["2024-01-01"].name),r?.jwt&&(c.Authorization=`Bearer ${r.jwt}`);const u=(l=r?.query)!==null&&l!==void 0?l:{};r?.redirectTo&&(u.redirect_to=r.redirectTo);const h=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",p=await UR(e,t,i+h,{headers:c,noResolveJson:r?.noResolveJson},{},r?.body);return r?.xform?r?.xform(p):{data:Object.assign({},p),error:null}}async function UR(e,t,i,r,l,c){const u=zR(t,r,l,c);let h;try{h=await e(i,Object.assign({},u))}catch(p){throw console.error(p),new Gh(pi(p),0)}if(h.ok||await qv(h),r?.noResolveJson)return h;try{return await h.json()}catch(p){await qv(p)}}function en(e){var t;let i=null;qR(e)&&(i=Object.assign({},e),e.expires_at||(i.expires_at=bR(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:i,user:r},error:null}}function Bv(e){const t=en(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((i,r)=>i&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Da(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function IR(e){return{data:e,error:null}}function PR(e){const{action_link:t,email_otp:i,hashed_token:r,redirect_to:l,verification_type:c}=e,u=gc(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),h={action_link:t,email_otp:i,hashed_token:r,redirect_to:l,verification_type:c},p=Object.assign({},u);return{data:{properties:h,user:p},error:null}}function $v(e){return e}function qR(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const rh=["global","local","others"];class BR{constructor({url:t="",headers:i={},fetch:r,experimental:l}){this.url=t,this.headers=i,this.fetch=mw(r),this.experimental=l??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(t,i=rh[0]){if(rh.indexOf(i)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${rh.join(", ")}`);try{return await ae(this.fetch,"POST",`${this.url}/logout?scope=${i}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(X(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,i={}){try{return await ae(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:i.data},headers:this.headers,redirectTo:i.redirectTo,xform:Da})}catch(r){if(X(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:i}=t,r=gc(t,["options"]),l=Object.assign(Object.assign({},r),i);return"newEmail"in r&&(l.new_email=r?.newEmail,delete l.newEmail),await ae(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:l,headers:this.headers,xform:PR,redirectTo:i?.redirectTo})}catch(i){if(X(i))return{data:{properties:null,user:null},error:i};throw i}}async createUser(t){try{return await ae(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Da})}catch(i){if(X(i))return{data:{user:null},error:i};throw i}}async listUsers(t){var i,r,l,c,u,h,p;try{const m={nextPage:null,lastPage:0,total:0},y=await ae(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(i=t?.page)===null||i===void 0?void 0:i.toString())!==null&&r!==void 0?r:"",per_page:(c=(l=t?.perPage)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:""},xform:$v});if(y.error)throw y.error;const g=await y.json(),b=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,w=(p=(h=y.headers.get("link"))===null||h===void 0?void 0:h.split(","))!==null&&p!==void 0?p:[];return w.length>0&&(w.forEach(_=>{const E=parseInt(_.split(";")[0].split("=")[1].substring(0,1)),A=JSON.parse(_.split(";")[1].split("=")[1]);m[`${A}Page`]=E}),m.total=parseInt(b)),{data:Object.assign(Object.assign({},g),m),error:null}}catch(m){if(X(m))return{data:{users:[]},error:m};throw m}}async getUserById(t){Yn(t);try{return await ae(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Da})}catch(i){if(X(i))return{data:{user:null},error:i};throw i}}async updateUserById(t,i){Yn(t);try{return await ae(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:i,headers:this.headers,xform:Da})}catch(r){if(X(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,i=!1){Yn(t);
40try{return await ae(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:i},xform:Da})}catch(r){if(X(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Yn(t.userId);try{const{data:i,error:r}=await ae(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:l=>({data:{factors:l},error:null})});return{data:i,error:r}}catch(i){if(X(i))return{data:null,error:i};throw i}}async _deleteFactor(t){Yn(t.userId),Yn(t.id);try{return{data:await ae(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(i){if(X(i))return{data:null,error:i};throw i}}async _listOAuthClients(t){var i,r,l,c,u,h,p;try{const m={nextPage:null,lastPage:0,total:0},y=await ae(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(i=t?.page)===null||i===void 0?void 0:i.toString())!==null&&r!==void 0?r:"",per_page:(c=(l=t?.perPage)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:""},xform:$v});if(y.error)throw y.error;const g=await y.json(),b=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,w=(p=(h=y.headers.get("link"))===null||h===void 0?void 0:h.split(","))!==null&&p!==void 0?p:[];return w.length>0&&(w.forEach(_=>{const E=parseInt(_.split(";")[0].split("=")[1].substring(0,1)),A=JSON.parse(_.split(";")[1].split("=")[1]);m[`${A}Page`]=E}),m.total=parseInt(b)),{data:Object.assign(Object.assign({},g),m),error:null}}catch(m){if(X(m))return{data:{clients:[]},error:m};throw m}}async _createOAuthClient(t){try{return await ae(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(X(i))return{data:null,error:i};throw i}}async _getOAuthClient(t){try{return await ae(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(X(i))return{data:null,error:i};throw i}}async _updateOAuthClient(t,i){try{return await ae(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:i,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(X(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await ae(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(X(i))return{data:null,error:i};throw i}}async _regenerateOAuthClientSecret(t){try{return await ae(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(X(i))return{data:null,error:i};throw i}}async _listCustomProviders(t){try{const i={};return t?.type&&(i.type=t.type),await ae(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:i,xform:r=>{var l;return{data:{providers:(l=r?.providers)!==null&&l!==void 0?l:[]},error:null}}})}catch(i){if(X(i))return{data:{providers:[]},error:i};throw i}}async _createCustomProvider(t){try{return await ae(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(X(i))return{data:null,error:i};throw i}}async _getCustomProvider(t){try{return await ae(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(X(i))return{data:null,error:i};throw i}}async _updateCustomProvider(t,i){try{return await ae(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:i,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(X(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await ae(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(X(i))return{data:null,error:i};throw i}}async _adminListPasskeys(t){ln(this.experimental),Yn(t.userId);try{return await ae(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(X(i))return{data:null,error:i};throw i}}async _adminDeletePasskey(t){ln(this.experimental),Yn(t.userId),Yn(t.passkeyId);
40try{return await ae(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(X(i))return{data:null,error:i};throw i}}}function Hv(e={}){return{getItem:t=>e[t]||null,setItem:(t,i)=>{e[t]=i},removeItem:t=>{delete e[t]}}}const _n={debug:!!(globalThis&&pw()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class gw extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class Gv extends gw{}async function $R(e,t,i){_n.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let l;t>0&&(l=setTimeout(()=>{r.abort(),_n.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async c=>{if(c){clearTimeout(l),_n.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,c.name);try{return await i()}finally{_n.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,c.name)}}else{if(t===0)throw _n.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Gv(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(_n.debug)try{const u=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(u,null," "))}catch(u){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",u)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(l),await i()}})}catch(c){if(t>0&&clearTimeout(l),c!==null&&typeof c=="object"&&"name"in c&&c.name==="AbortError"&&t>0){if(r.signal.aborted)return _n.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async u=>{if(u){_n.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,u.name);try{return await i()}finally{_n.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,u.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await i()}));throw _n.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new Gv(`Lock "${e}" was released because another request stole it`)}throw c}}function HR(){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 yw(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function GR(e){return parseInt(e,16)}function VR(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function FR(e){var t;const{chainId:i,domain:r,expirationTime:l,issuedAt:c=new Date,nonce:u,notBefore:h,requestId:p,resources:m,scheme:y,uri:g,version:b}=e;{if(!Number.isInteger(i))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${i}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(u&&u.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${u}`);if(!g)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(b!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${b}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 41`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const w=yw(e.address),_=y?`${y}://${r}`:r,E=e.statement?`${e.statement} 42`:"",A=`${_} wants you to sign in with your Ethereum account: 43${w} 44 45${E}`;let k=`URI: ${g} 46Version: ${b} 47Chain ID: ${i}${u?` 48Nonce: ${u}`:""} 49Issued At: ${c.toISOString()}`;if(l&&(k+=` 50Expiration Time: ${l.toISOString()}`),h&&(k+=` 51Not Before: ${h.toISOString()}`),p&&(k+=` 52Request ID: ${p}`),m){let j=` 53Resources:`;for(const C of m){if(!C||typeof C!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${C}`);j+=` 54- ${C}`}k+=j}return`${A} 55${k}`}
55class at extends Error{constructor({message:t,code:i,cause:r,name:l}){var c;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(c=l??(r instanceof Error?r.name:void 0))!==null&&c!==void 0?c:"Unknown Error",this.code=i}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class ac extends at{constructor(t,i){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:i,message:t}),this.name="WebAuthnUnknownError",this.originalError=i}}function YR({error:e,options:t}){var i,r,l;const{publicKey:c}=t;if(!c)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new at({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((i=c.authenticatorSelection)===null||i===void 0?void 0:i.requireResidentKey)===!0)return new at({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=c.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new at({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((l=c.authenticatorSelection)===null||l===void 0?void 0:l.userVerification)==="required")return new at({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 at({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new at({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return c.pubKeyCredParams.filter(h=>h.type==="public-key").length===0?new at({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new at({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 u=window.location.hostname;if(vw(u)){if(c.rp.id!==u)return new at({message:`The RP ID "${c.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new at({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(c.user.id.byteLength<1||c.user.id.byteLength>64)return new at({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 at({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 at({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function KR({error:e,options:t}){const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new at({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new at({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(vw(r)){if(i.rpId!==r)return new at({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new at({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new at({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 at({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class QR{createNewAbortSignal(){if(this.controller){const i=new Error("Cancelling existing WebAuthn API call for new one");i.name="AbortError",this.controller.abort(i)}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 Fh=new QR;function Vv(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:i,excludeCredentials:r}=e,l=gc(e,["challenge","user","excludeCredentials"]),c=kr(t).buffer,u=Object.assign(Object.assign({},i),{id:kr(i.id).buffer}),h=Object.assign(Object.assign({},l),{challenge:c,user:u});if(r&&r.length>0){h.excludeCredentials=new Array(r.length);for(let p=0;p<r.length;p++){const m=r[p];h.excludeCredentials[p]=Object.assign(Object.assign({},m),{id:kr(m.id).buffer,type:m.type||"public-key",transports:m.transports})}}return h}function Fv(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:i}=e,r=gc(e,["challenge","allowCredentials"]),l=kr(t).buffer,c=Object.assign(Object.assign({},r),{challenge:l});if(i&&i.length>0){c.allowCredentials=new Array(i.length);for(let u=0;u<i.length;u++){const h=i[u];c.allowCredentials[u]=Object.assign(Object.assign({},h),{id:kr(h.id).buffer,type:h.type||"public-key",transports:h.transports})}}return c}function Yv(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const i=e;return{id:e.id,rawId:e.id,response:{attestationObject:yi(new Uint8Array(e.response.attestationObject)),clientDataJSON:yi(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=i.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Kv(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const i=e,r=e.getClientExtensionResults(),l=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:yi(new Uint8Array(l.authenticatorData)),clientDataJSON:yi(new Uint8Array(l.clientDataJSON)),signature:yi(new Uint8Array(l.signature)),userHandle:l.userHandle?yi(new Uint8Array(l.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=i.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function vw(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function ic(){var e,t;return!!(yt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.get)=="function")}async function bw(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ac("Browser returned unexpected credential type",t)}:{data:null,error:new ac("Empty credential response",t)}}
55catch(t){return{data:null,error:YR({error:t,options:e})}}}async function ww(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ac("Browser returned unexpected credential type",t)}:{data:null,error:new ac("Empty credential response",t)}}catch(t){return{data:null,error:KR({error:t,options:e})}}}const JR={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},XR={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function rc(...e){const t=l=>l!==null&&typeof l=="object"&&!Array.isArray(l),i=l=>l instanceof ArrayBuffer||ArrayBuffer.isView(l),r={};for(const l of e)if(l)for(const c in l){const u=l[c];if(u!==void 0)if(Array.isArray(u))r[c]=u;else if(i(u))r[c]=u;else if(t(u)){const h=r[c];t(h)?r[c]=rc(h,u):r[c]=rc(u)}else r[c]=u}return r}function WR(e,t){return rc(JR,e,t||{})}function ZR(e,t){return rc(XR,e,t||{})}class eC{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:i,friendlyName:r,signal:l},c){var u;try{const{data:h,error:p}=await this.client.mfa.challenge({factorId:t,webauthn:i});if(!h)return{data:null,error:p};const m=l??Fh.createNewAbortSignal();if(h.webauthn.type==="create"){const{user:y}=h.webauthn.credential_options.publicKey;if(!y.name){const g=r;if(g)y.name=`${y.id}:${g}`;else{const w=(await this.client.getUser()).data.user,_=((u=w?.user_metadata)===null||u===void 0?void 0:u.name)||w?.email||w?.id||"User";y.name=`${y.id}:${_}`}}y.displayName||(y.displayName=y.name)}switch(h.webauthn.type){case"create":{const y=WR(h.webauthn.credential_options.publicKey,c?.create),{data:g,error:b}=await bw({publicKey:y,signal:m});return g?{data:{factorId:t,challengeId:h.id,webauthn:{type:h.webauthn.type,credential_response:g}},error:null}:{data:null,error:b}}case"request":{const y=ZR(h.webauthn.credential_options.publicKey,c?.request),{data:g,error:b}=await ww(Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:y,signal:m}));return g?{data:{factorId:t,challengeId:h.id,webauthn:{type:h.webauthn.type,credential_response:g}},error:null}:{data:null,error:b}}}}catch(h){return X(h)?{data:null,error:h}:{data:null,error:new hn("Unexpected error in challenge",h)}}}async _verify({challengeId:t,factorId:i,webauthn:r}){return this.client.mfa.verify({factorId:i,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:l}={}},c){if(!i)return{data:null,error:new Ys("rpId is required for WebAuthn authentication")};try{if(!ic())return{data:null,error:new hn("Browser does not support WebAuthn",null)};const{data:u,error:h}=await this.challenge({factorId:t,webauthn:{rpId:i,rpOrigins:r},signal:l},{request:c});if(!u)return{data:null,error:h};const{webauthn:p}=u;return this._verify({factorId:t,challengeId:u.challengeId,webauthn:{type:p.type,rpId:i,rpOrigins:r,credential_response:p.credential_response}})}catch(u){return X(u)?{data:null,error:u}:{data:null,error:new hn("Unexpected error in authenticate",u)}}}async _register({friendlyName:t,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:l}={}},c){if(!i)return{data:null,error:new Ys("rpId is required for WebAuthn registration")};try{if(!ic())return{data:null,error:new hn("Browser does not support WebAuthn",null)};const{data:u,error:h}=await this._enroll({friendlyName:t});if(!u)return await this.client.mfa.listFactors().then(y=>{var g;return(g=y.data)===null||g===void 0?void 0:g.all.find(b=>b.factor_type==="webauthn"&&b.friendly_name===t&&b.status!=="unverified")}).then(y=>y?this.client.mfa.unenroll({factorId:y?.id}):void 0),{data:null,error:h};const{data:p,error:m}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:i,rpOrigins:r},signal:l},{create:c});return p?this._verify({factorId:u.id,challengeId:p.challengeId,webauthn:{rpId:i,rpOrigins:r,type:p.webauthn.type,credential_response:p.webauthn.credential_response}}):{data:null,error:m}}catch(u){return X(u)?{data:null,error:u}:{data:null,error:new hn("Unexpected error in register",u)}}}}HR();const tC={url:rR,storageKey:sR,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:oR,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function Qv(e,t,i){return await i()}const pr={};class Ks{get jwks(){var t,i;return(i=(t=pr[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&i!==void 0?i:{keys:[]}}set jwks(t){pr[this.storageKey]=Object.assign(Object.assign({},pr[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,i;return(i=(t=pr[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&i!==void 0?i:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){pr[this.storageKey]=Object.assign(Object.assign({},pr[this.storageKey]),{cachedAt:t})}constructor(t){var i,r,l,c;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const u=Object.assign(Object.assign({},tC),t);if(this.storageKey=u.storageKey,this.instanceID=(i=Ks.nextInstanceID[this.storageKey])!==null&&i!==void 0?i:0,Ks.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!u.debug,typeof u.debug=="function"&&(this.logger=u.debug),this.instanceID>0&&yt()){const h=`${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(h),this.logDebugMessages&&console.trace(h)}if(this.persistSession=u.persistSession,this.autoRefreshToken=u.autoRefreshToken,this.experimental=(r=u.experimental)!==null&&r!==void 0?r:{},this.admin=new BR({url:u.url,headers:u.headers,fetch:u.fetch,experimental:this.experimental}),this.url=u.url,this.headers=u.headers,this.fetch=mw(u.fetch),this.lock=u.lock||Qv,this.detectSessionInUrl=u.detectSessionInUrl,this.flowType=u.flowType,this.hasCustomAuthorizationHeader=u.hasCu
55stomAuthorizationHeader,this.throwOnError=u.throwOnError,this.lockAcquireTimeout=u.lockAcquireTimeout,u.lock?this.lock=u.lock:this.persistSession&&yt()&&(!((l=globalThis?.navigator)===null||l===void 0)&&l.locks)?this.lock=$R:this.lock=Qv,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 eC(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(u.storage?this.storage=u.storage:pw()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Hv(this.memoryStorage)),u.userStorage&&(this.userStorage=u.userStorage)):(this.memoryStorage={},this.storage=Hv(this.memoryStorage)),yt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(h){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",h)}(c=this.broadcastChannel)===null||c===void 0||c.addEventListener("message",async h=>{this._debug("received broadcast notification from other tab or client",h);try{await this._notifyAllSubscribers(h.data.event,h.data.session,!1)}catch(p){this._debug("#broadcastChannel","error",p)}})}u.skipAutoInitialize||this.initialize().catch(h=>{this._debug("#initialize()","error",h)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${dw}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let i={},r="none";if(yt()&&(i=SR(window.location.href),this._isImplicitGrantCallback(i)?r="implicit":await this._isPKCECallback(i)&&(r="pkce")),yt()&&this.detectSessionInUrl&&r!=="none"){const{data:l,error:c}=await this._getSessionFromURL(i,r);if(c){if(this._debug("#_initialize()","error detecting session from URL",c),hR(c)){const p=(t=c.details)===null||t===void 0?void 0:t.code;if(p==="identity_already_exists"||p==="identity_not_found"||p==="single_identity_not_deletable")return{error:c}}return{error:c}}const{session:u,redirectType:h}=l;return this._debug("#_initialize()","detected session in URL",u,"redirect type",h),await this._saveSession(u),setTimeout(async()=>{h==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(i){return X(i)?this._returnResult({error:i}):this._returnResult({error:new hn("Unexpected error during initialization",i)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var i,r,l;try{const c=await ae(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(i=t?.options)===null||i===void 0?void 0:i.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(l=t?.options)===null||l===void 0?void 0:l.captchaToken}},xform:en}),{data:u,error:h}=c;if(h||!u)return this._returnResult({data:{user:null,session:null},error:h});const p=u.session,m=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:m,session:p},error:null})}catch(c){if(X(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signUp(t){var i,r,l;try{let c;if("email"in t){const{email:y,password:g,options:b}=t;let w=null,_=null;this.flowType==="pkce"&&([w,_]=await fr(this.storage,this.storageKey)),c=await ae(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:b?.emailRedirectTo,body:{email:y,password:g,data:(i=b?.data)!==null&&i!==void 0?i:{},gotrue_meta_security:{captcha_token:b?.captchaToken},code_challenge:w,code_challenge_method:_},xform:en})}else if("phone"in t){const{phone:y,password:g,options:b}=t;c=await ae(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:y,password:g,data:(r=b?.data)!==null&&r!==void 0?r:{},channel:(l=b?.channel)!==null&&l!==void 0?l:"sms",gotrue_meta_security:{captcha_token:b?.captchaToken}},xform:en})}else throw new Ll("You must provide either an email or phone number and a password");const{data:u,error:h}=c;if(h||!u)return await gt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:h});const p=u.session,m=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:m,session:p},error:null})}catch(c){if(await gt(this.storage,`${this.storageKey}-code-verifier`),X(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signInWithPassword(t){try{let i;if("email"in t){const{email:c,password:u,options:h}=t;i=await ae(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:c,password:u,gotrue_meta_security:{captcha_token:h?.captchaToken}},xform:Bv})}else if("phone"in t){const{phone:c,password:u,options:h}=t;i=await ae(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:c,password:u,gotrue_meta_security:{captcha_token:h?.captchaToken}},xform:Bv})}else throw new Ll("You must provide either an email or phone number and a password");const{data:r,error:l}=i;if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!r||!r.session||!r.user){const c=new hr;return this._returnResult({data:{user:null,session:null},error:c})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:l})}catch(i){if(X(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOAuth(t){var i,r,l,c;return await this._handleProviderSignIn(t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:(c=t.options)===null||c===void 0?void 0:c.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:i}=t;switch(i){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${i}"`)}}async signInWithEthereum(t){var i,r,l,c,u,h,p,m,y,g,b;let w,_;if("message"in t)w=t.message,_=t.signature;else{const{chain:E,wallet:A,statement:k,options:j}=t;let C;if(yt())if(typeof A=="object")C=A;else{const Z=window;if("ethereum"in Z&&typeof Z.ethereum=="object"&&"request"in Z.ethereum&&typeof Z.ethereum.request=="function")C=Z.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 A!="object"||!j?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");C=A}const B=new URL((i=j?.url)!==null&&i!==void 0?i:window.location.href),J=await C.request({method:"eth_requestAccounts"}).then(Z=>Z).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!J||J.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const P=yw(J[0]);let L=(r=j?.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!L){const Z=await C.request({method:"eth_chainId"});L=GR(Z)}const Y={domain:B.host,address:P,statement:k,uri:B.href,version:"1",chainId:L,nonce:(l=j?.signInWithEthereum)===null||l===void 0?void 0:l.nonce,issuedAt:(u=(c=j?.signInWithEthereum)===null||c===void 0?void 0:c.issuedAt)!==null&&u!==void 0?u:new Date,expirationTime:(h=j?.signInWithEthereum)===null||h===void 0?void 0:h.expirationTime,notBefore:(p=j?.signInWithEthereum)===null||p===void 0?void 0:p.notBefore,requestId:(m=j?.signInWithEthereum)===null||m===void 0?void 0:m.requestId,resources:(y=j?.signInWithEthereum)===null||y===void 0?void 0:y.resources};w=FR(Y),_=await C.request({method:"personal_sign",params:[VR(w),P]})}try{const{data:E,error:A}=await ae(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:w,signature:_},!((g=t.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(b=t.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:en});if(A)throw A;if(!E||!E.session||!E.user){const k=new hr;return this._returnResult({data:{user:null,session:null},error:k})}return E.session&&(await this._saveSession(E.session),await this._notifyAllSubscribers("SIGNED_IN",E.session)),this._returnResult({data:Object.assign({},E),error:A})}
55catch(E){if(X(E))return this._returnResult({data:{user:null,session:null},error:E});throw E}}async signInWithSolana(t){var i,r,l,c,u,h,p,m,y,g,b,w;let _,E;if("message"in t)_=t.message,E=t.signature;else{const{chain:A,wallet:k,statement:j,options:C}=t;let B;if(yt())if(typeof k=="object")B=k;else{const P=window;if("solana"in P&&typeof P.solana=="object"&&("signIn"in P.solana&&typeof P.solana.signIn=="function"||"signMessage"in P.solana&&typeof P.solana.signMessage=="function"))B=P.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 k!="object"||!C?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");B=k}const J=new URL((i=C?.url)!==null&&i!==void 0?i:window.location.href);if("signIn"in B&&B.signIn){const P=await B.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},C?.signInWithSolana),{version:"1",domain:J.host,uri:J.href}),j?{statement:j}:null));let L;if(Array.isArray(P)&&P[0]&&typeof P[0]=="object")L=P[0];else if(P&&typeof P=="object"&&"signedMessage"in P&&"signature"in P)L=P;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in L&&"signature"in L&&(typeof L.signedMessage=="string"||L.signedMessage instanceof Uint8Array)&&L.signature instanceof Uint8Array)_=typeof L.signedMessage=="string"?L.signedMessage:new TextDecoder().decode(L.signedMessage),E=L.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in B)||typeof B.signMessage!="function"||!("publicKey"in B)||typeof B!="object"||!B.publicKey||!("toBase58"in B.publicKey)||typeof B.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");_=[`${J.host} wants you to sign in with your Solana account:`,B.publicKey.toBase58(),...j?["",j,""]:[""],"Version: 1",`URI: ${J.href}`,`Issued At: ${(l=(r=C?.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&l!==void 0?l:new Date().toISOString()}`,...!((c=C?.signInWithSolana)===null||c===void 0)&&c.notBefore?[`Not Before: ${C.signInWithSolana.notBefore}`]:[],...!((u=C?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${C.signInWithSolana.expirationTime}`]:[],...!((h=C?.signInWithSolana)===null||h===void 0)&&h.chainId?[`Chain ID: ${C.signInWithSolana.chainId}`]:[],...!((p=C?.signInWithSolana)===null||p===void 0)&&p.nonce?[`Nonce: ${C.signInWithSolana.nonce}`]:[],...!((m=C?.signInWithSolana)===null||m===void 0)&&m.requestId?[`Request ID: ${C.signInWithSolana.requestId}`]:[],...!((g=(y=C?.signInWithSolana)===null||y===void 0?void 0:y.resources)===null||g===void 0)&&g.length?["Resources",...C.signInWithSolana.resources.map(L=>`- ${L}`)]:[]].join(` 56`);const P=await B.signMessage(new TextEncoder().encode(_),"utf8");if(!P||!(P instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");E=P}}try{const{data:A,error:k}=await ae(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:_,signature:yi(E)},!((b=t.options)===null||b===void 0)&&b.captchaToken?{gotrue_meta_security:{captcha_token:(w=t.options)===null||w===void 0?void 0:w.captchaToken}}:null),xform:en});if(k)throw k;if(!A||!A.session||!A.user){const j=new hr;return this._returnResult({data:{user:null,session:null},error:j})}return A.session&&(await this._saveSession(A.session),await this._notifyAllSubscribers("SIGNED_IN",A.session)),this._returnResult({data:Object.assign({},A),error:k})}catch(A){if(X(A))return this._returnResult({data:{user:null,session:null},error:A});throw A}}async _exchangeCodeForSession(t){const i=await hi(this.storage,`${this.storageKey}-code-verifier`),[r,l]=(i??"").split("/");try{if(!r&&this.flowType==="pkce")throw new fR;const{data:c,error:u}=await ae(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:en});if(await gt(this.storage,`${this.storageKey}-code-verifier`),u)throw u;if(!c||!c.session||!c.user){const h=new hr;return this._returnResult({data:{user:null,session:null,redirectType:null},error:h})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers(l==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c.session)),this._returnResult({data:Object.assign(Object.assign({},c),{redirectType:l??null}),error:u})}catch(c){if(await gt(this.storage,`${this.storageKey}-code-verifier`),X(c))return this._returnResult({data:{user:null,session:null,redirectType:null},error:c});throw c}}async signInWithIdToken(t){try{const{options:i,provider:r,token:l,access_token:c,nonce:u}=t,h=await ae(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:l,access_token:c,nonce:u,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:en}),{data:p,error:m}=h;if(m)return this._returnResult({data:{user:null,session:null},error:m});if(!p||!p.session||!p.user){const y=new hr;return this._returnResult({data:{user:null,session:null},error:y})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:p,error:m})}catch(i){if(X(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOtp(t){var i,r,l,c,u;try{if("email"in t){const{email:h,options:p}=t;let m=null,y=null;this.flowType==="pkce"&&([m,y]=await fr(this.storage,this.storageKey));const{error:g}=await ae(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:h,data:(i=p?.data)!==null&&i!==void 0?i:{},create_user:(r=p?.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},code_challenge:m,code_challenge_method:y},redirectTo:p?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:g})}if("phone"in t){const{phone:h,options:p}=t,{data:m,error:y}=await ae(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:h,data:(l=p?.data)!==null&&l!==void 0?l:{},create_user:(c=p?.shouldCreateUser)!==null&&c!==void 0?c:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},channel:(u=p?.channel)!==null&&u!==void 0?u:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:m?.message_id},error:y})}throw new Ll("You must provide either an email or phone number.")}catch(h){if(await gt(this.storage,`${this.storageKey}-code-verifier`),X(h))return this._returnResult({data:{user:null,session:null},error:h});throw h}}async verifyOtp(t){var i,r;try{let l,c;"options"in t&&(l=(i=t.options)===null||i===void 0?void 0:i.redirectTo,c=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:u,error:h}=await ae(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:c}}),redirectTo:l,xform:en});if(h)throw h;if(!u)throw new Error("An error occurred on token verification.");const p=u.session,m=u.user;return p?.access_token&&(await this._saveSession(p),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",p)),this._returnResult({data:{user:m,session:p},error:null})}catch(l){if(X(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signInWithSSO(t){var i,r,l,c,u;try{let h=null,p=null;this.flowType==="pkce"&&([h,p]=await fr(this.storage,this.storageKey));const m=await ae(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(i=t.options)===null||i===void 0?void 0:i.redirectTo)!==null&&r!==void 0?r:void 0}),!((l=t?.options)===null||l===void 0)&&l.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:h,code_challenge_method:p}),headers:this.headers,xform:IR});return!((c=m.data)===null||c===void 0)&&c.url&&yt()&&!(!((u=t.options)===null||u===void 0)&&u.skipBrowserRedirect)&&window.location.assign(m.data.url),this._returnResult(m)}catch(h){if(await gt(this.storage,`${this.storageKey}-code-verifier`),X(h))return this._returnResult({data:null,error:h});throw h}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:i},error:r}=t;if(r)throw r;if(!i)throw new ct;const{error:l}=await ae(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:i.access_token});return this._returnResult({data:{user:null,session:null},error:l})})}catch(t){if(X(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const i=`${this.url}/resend`;if("email"in t){const{email:r,type:l,options:c}=t,{error:u}=await ae(this.fetch,"POST",i,{headers:this.headers,body:{email:r,type:l,gotrue_meta_security:{captcha_token:c?.captchaToken}},redirectTo:c?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:u})}else if("phone"in t){const{phone:r,type:l,options:c}=t,{data:u,error:h}=await ae(this.fetch,"POST",i,{headers:this.headers,body:{phone:r,type:l,gotrue_meta_security:{captcha_token:c?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:h})}throw new Ll("You must provide either an email or phone number and a type")}catch(i){if(X(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async i=>i))}async _acquireLock(t,i){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),l=(async()=>(await r,await i()))();return this.pendingInLock.push((async()=>{try{await l}catch{}})()),l}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=i();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const l=[...this.pendingInLock];await Promise.all(l),this.pendingInLock.splice(0,l.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const i=await this.__loadSession();return await t(i)}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 i=await hi(this.storage,this.storageKey);
56if(this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?t=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<nh:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const u=await hi(this.userStorage,this.storageKey+"-user");u?.user?t.user=u.user:t.user=ih()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};t.user=DR(t.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);return c?this._returnResult({data:{session:null},error:c}):this._returnResult({data:{session:l},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const i=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return i.data.user&&(this.suppressGetSessionWarning=!0),i}async _getUser(t){try{return t?await ae(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Da}):await this._useSession(async i=>{var r,l,c;const{data:u,error:h}=i;if(h)throw h;return!(!((r=u.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ct}:await ae(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(c=(l=u.session)===null||l===void 0?void 0:l.access_token)!==null&&c!==void 0?c:void 0,xform:Da})})}catch(i){if(X(i))return Nl(i)&&(await this._removeSession(),await gt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:i});throw i}}async updateUser(t,i={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,i))}async _updateUser(t,i={}){try{return await this._useSession(async r=>{const{data:l,error:c}=r;if(c)throw c;if(!l.session)throw new ct;const u=l.session;let h=null,p=null;this.flowType==="pkce"&&t.email!=null&&([h,p]=await fr(this.storage,this.storageKey));const{data:m,error:y}=await ae(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:i?.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:h,code_challenge_method:p}),jwt:u.access_token,xform:Da});if(y)throw y;return u.user=m.user,await this._saveSession(u),await this._notifyAllSubscribers("USER_UPDATED",u),this._returnResult({data:{user:u.user},error:null})})}catch(r){if(await gt(this.storage,`${this.storageKey}-code-verifier`),X(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new ct;const i=Date.now()/1e3;let r=i,l=!0,c=null;const{payload:u}=Ml(t.access_token);if(u.exp&&(r=u.exp,l=r<=i),l){const{data:h,error:p}=await this._callRefreshToken(t.refresh_token);if(p)return this._returnResult({data:{user:null,session:null},error:p});if(!h)return{data:{user:null,session:null},error:null};c=h}else{const{data:h,error:p}=await this._getUser(t.access_token);if(p)return this._returnResult({data:{user:null,session:null},error:p});c={access_token:t.access_token,refresh_token:t.refresh_token,user:h.user,token_type:"bearer",expires_in:r-i,expires_at:r},await this._saveSession(c),await this._notifyAllSubscribers("SIGNED_IN",c)}return this._returnResult({data:{user:c.user,session:c},error:null})}catch(i){if(X(i))return this._returnResult({data:{session:null,user:null},error:i});throw i}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async i=>{var r;if(!t){const{data:u,error:h}=i;if(h)throw h;t=(r=u.session)!==null&&r!==void 0?r:void 0}if(!t?.refresh_token)throw new ct;const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);return c?this._returnResult({data:{user:null,session:null},error:c}):l?this._returnResult({data:{user:l.user,session:l},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(i){if(X(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async _getSessionFromURL(t,i){var r;try{if(!yt())throw new Dl("No browser detected.");
56if(t.error||t.error_description||t.error_code)throw new Dl(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(i){case"implicit":if(this.flowType==="pkce")throw new Dv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Dl("Not a valid implicit grant flow url.");break;default:}if(i==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Dv("No code detected.");const{data:C,error:B}=await this._exchangeCodeForSession(t.code);if(B)throw B;const J=new URL(window.location.href);return J.searchParams.delete("code"),window.history.replaceState(window.history.state,"",J.toString()),{data:{session:C.session,redirectType:(r=C.redirectType)!==null&&r!==void 0?r:null},error:null}}const{provider_token:l,provider_refresh_token:c,access_token:u,refresh_token:h,expires_in:p,expires_at:m,token_type:y}=t;if(!u||!p||!h||!y)throw new Dl("No session defined in URL");const g=Math.round(Date.now()/1e3),b=parseInt(p);let w=g+b;m&&(w=parseInt(m));const _=w-g;_*1e3<=yr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${_}s, should have been closer to ${b}s`);const E=w-b;g-E>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",E,w,g):g-E<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",E,w,g);const{data:A,error:k}=await this._getUser(u);if(k)throw k;const j={provider_token:l,provider_refresh_token:c,access_token:u,expires_in:b,expires_at:w,refresh_token:h,token_type:y,user:A.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:j,redirectType:t.type},error:null})}catch(l){if(X(l))return this._returnResult({data:{session:null,redirectType:null},error:l});throw l}}_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 i=await hi(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&i)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async i=>{var r;const{data:l,error:c}=i;if(c&&!Nl(c))return this._returnResult({error:c});const u=(r=l.session)===null||r===void 0?void 0:r.access_token;if(u){const{error:h}=await this.admin.signOut(u,t);if(h&&!(dR(h)&&(h.status===404||h.status===401||h.status===403)||Nl(h)))return this._returnResult({error:h})}return t!=="others"&&(await this._removeSession(),await gt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const i=wR(),r={id:i,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",i),this.stateChangeEmitters.delete(i)}};return this._debug("#onAuthStateChange()","registered callback with id",i),this.stateChangeEmitters.set(i,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(i)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async i=>{var r,l;try{const{data:{session:c},error:u}=i;if(u)throw u;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",c)),this._debug("INITIAL_SESSION","callback id",t,"session",c)}catch(c){await((l=this.stateChangeEmitters.get(t))===null||l===void 0?void 0:l.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",c),Nl(c)?console.warn(c):console.error(c)}})}async resetPasswordForEmail(t,i={}){let r=null,l=null;this.flowType==="pkce"&&([r,l]=await fr(this.storage,this.storageKey,!0));try{return await ae(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:l,gotrue_meta_security:{captcha_token:i.captchaToken}},headers:this.headers,redirectTo:i.redirectTo})}catch(c){if(await gt(this.storage,`${this.storageKey}-code-verifier`),X(c))return this._returnResult({data:null,error:c});throw c}}async getUserIdentities(){var t;try{const{data:i,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=i.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var i;try{const{data:r,error:l}=await this._useSession(async c=>{var u,h,p,m,y;const{data:g,error:b}=c;if(b)throw b;const w=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(u=t.options)===null||u===void 0?void 0:u.redirectTo,scopes:(h=t.options)===null||h===void 0?void 0:h.scopes,queryParams:(p=t.options)===null||p===void 0?void 0:p.queryParams,skipBrowserRedirect:!0});return await ae(this.fetch,"GET",w,{headers:this.headers,jwt:(y=(m=g.session)===null||m===void 0?void 0:m.access_token)!==null&&y!==void 0?y:void 0})});if(l)throw l;return yt()&&!(!((i=t.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(r?.url),this._returnResult({data:{provider:t.provider,url:r?.url},error:null})}catch(r){if(X(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async i=>{var r;try{const{error:l,data:{session:c}}=i;if(l)throw l;const{options:u,provider:h,token:p,access_token:m,nonce:y}=t,g=await ae(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=c?.access_token)!==null&&r!==void 0?r:void 0,body:{provider:h,id_token:p,access_token:m,nonce:y,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:en}),{data:b,error:w}=g;return w?this._returnResult({data:{user:null,session:null},error:w}
56):!b||!b.session||!b.user?this._returnResult({data:{user:null,session:null},error:new hr}):(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("USER_UPDATED",b.session)),this._returnResult({data:b,error:w}))}catch(l){if(await gt(this.storage,`${this.storageKey}-code-verifier`),X(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}})}async unlinkIdentity(t){try{return await this._useSession(async i=>{var r,l;const{data:c,error:u}=i;if(u)throw u;return await ae(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(l=(r=c.session)===null||r===void 0?void 0:r.access_token)!==null&&l!==void 0?l:void 0})})}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}}async _refreshAccessToken(t){const i=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{const r=Date.now();return await TR(async l=>(l>0&&await ER(200*Math.pow(2,l-1)),this._debug(i,"refreshing attempt",l),await ae(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:en})),(l,c)=>{const u=200*Math.pow(2,l);return c&&ah(c)&&Date.now()+u-r<yr})}catch(r){if(this._debug(i,"error",r),X(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(i,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,i){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:i.redirectTo,scopes:i.scopes,queryParams:i.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",i,"url",r),yt()&&!i.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,i;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const l=await hi(this.storage,this.storageKey);if(l&&this.userStorage){let u=await hi(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:l.user},await vr(this.userStorage,this.storageKey+"-user",u)),l.user=(t=u?.user)!==null&&t!==void 0?t:ih()}else if(l&&!l.user&&!l.user){const u=await hi(this.storage,this.storageKey+"-user");u&&u?.user?(l.user=u.user,await gt(this.storage,this.storageKey+"-user"),await vr(this.storage,this.storageKey,l)):l.user=ih()}if(this._debug(r,"session from storage",l),!this._isValidSession(l)){this._debug(r,"session is not valid"),l!==null&&await this._removeSession();return}const c=((i=l.expires_at)!==null&&i!==void 0?i:1/0)*1e3-Date.now()<nh;if(this._debug(r,`session has${c?"":" not"} expired with margin of ${nh}s`),c){if(this.autoRefreshToken&&l.refresh_token){const{error:u}=await this._callRefreshToken(l.refresh_token);u&&(console.error(u),ah(u)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",u),await this._removeSession()))}}else if(l.user&&l.user.__isUserNotAvailableProxy===!0)try{const{data:u,error:h}=await this._getUser(l.access_token);!h&&u?.user?(l.user=u.user,await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(r,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",l)}catch(l){this._debug(r,"error",l),console.error(l);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var i,r;if(!t)throw new ct;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const l=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(l,"begin");try{this.refreshingDeferred=new bc;const{data:c,error:u}=await this._refreshAccessToken(t);if(u)throw u;if(!c.session)throw new ct;await this._saveSession(c.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",c.session);const h={data:c.session,error:null};return this.refreshingDeferred.resolve(h),h}catch(c){if(this._debug(l,"error",c),X(c)){const u={data:null,error:c};return ah(c)||await this._removeSession(),(i=this.refreshingDeferred)===null||i===void 0||i.resolve(u),u}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(c),c}finally{this.refreshingDeferred=null,this._debug(l,"end")}}async _notifyAllSubscribers(t,i,r=!0){const l=`#_notifyAllSubscribers(${t})`;this._debug(l,"begin",i,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:i});const c=[],u=Array.from(this.stateChangeEmitters.values()).map(async h=>{try{await h.callback(t,i)}catch(p){c.push(p)}});if(await Promise.all(u),c.length>0){for(let h=0;h<c.length;h+=1)console.error(c[h]);throw c[0]}}finally{this._debug(l,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await gt(this.storage,`${this.storageKey}-code-verifier`);const i=Object.assign({},t),r=i.user&&i.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&i.user&&await vr(this.userStorage,this.storageKey+"-user",{user:i.user});const l=Object.assign({},i);delete l.user;const c=Pv(l);await vr(this.storage,this.storageKey,c)}else{const l=Pv(i);await vr(this.storage,this.storageKey,l)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await gt(this.storage,this.storageKey),await gt(this.storage,this.storageKey+"-code-verifier"),await gt(this.storage,this.storageKey+"-user"),this.userStorage&&await gt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&yt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}
56catch(i){console.error("removing visibilitychange callback failed",i)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),yr);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const i=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=i,i&&typeof i=="object"&&typeof i.unref=="function"?i.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(i)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const i=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,i&&clearTimeout(i)}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 i=>{const{data:{session:r}}=i;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const l=Math.floor((r.expires_at*1e3-t)/yr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${l} ticks, a tick lasts ${yr}ms, refresh threshold is ${$h} ticks`),l<=$h&&await this._callRefreshToken(r.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof gw)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!yt()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const i=`#_onVisibilityChanged(${t})`;this._debug(i,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(i,"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,i,r){const l=[`provider=${encodeURIComponent(i)}`];if(r?.redirectTo&&l.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r?.scopes&&l.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[c,u]=await fr(this.storage,this.storageKey),h=new URLSearchParams({code_challenge:`${encodeURIComponent(c)}`,code_challenge_method:`${encodeURIComponent(u)}`});l.push(h.toString())}if(r?.queryParams){const c=new URLSearchParams(r.queryParams);l.push(c.toString())}return r?.skipBrowserRedirect&&l.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${l.join("&")}`}async _unenroll(t){try{return await this._useSession(async i=>{var r;const{data:l,error:c}=i;return c?this._returnResult({data:null,error:c}):await ae(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=l?.session)===null||r===void 0?void 0:r.access_token})})}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}}async _enroll(t){try{return await this._useSession(async i=>{var r,l;const{data:c,error:u}=i;if(u)return this._returnResult({data:null,error:u});const h=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:p,error:m}=await ae(this.fetch,"POST",`${this.url}/factors`,{body:h,headers:this.headers,jwt:(r=c?.session)===null||r===void 0?void 0:r.access_token});return m?this._returnResult({data:null,error:m}):(t.factorType==="totp"&&p.type==="totp"&&(!((l=p?.totp)===null||l===void 0)&&l.qr_code)&&(p.totp.qr_code=`data:image/svg+xml;utf-8,${p.totp.qr_code}`),this._returnResult({data:p,error:null}))})}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async i=>{var r;const{data:l,error:c}=i;
56if(c)return this._returnResult({data:null,error:c});const u=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?Yv(t.webauthn.credential_response):Kv(t.webauthn.credential_response)})}:{code:t.code}),{data:h,error:p}=await ae(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:u,headers:this.headers,jwt:(r=l?.session)===null||r===void 0?void 0:r.access_token});return p?this._returnResult({data:null,error:p}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+h.expires_in},h)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",h),this._returnResult({data:h,error:p}))})}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async i=>{var r;const{data:l,error:c}=i;if(c)return this._returnResult({data:null,error:c});const u=await ae(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=l?.session)===null||r===void 0?void 0:r.access_token});if(u.error)return u;const{data:h}=u;if(h.type!=="webauthn")return{data:h,error:null};switch(h.webauthn.type){case"create":return{data:Object.assign(Object.assign({},h),{webauthn:Object.assign(Object.assign({},h.webauthn),{credential_options:Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:Vv(h.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},h),{webauthn:Object.assign(Object.assign({},h.webauthn),{credential_options:Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:Fv(h.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}})}async _challengeAndVerify(t){const{data:i,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:i.id,code:t.code})}async _listFactors(){var t;const{data:{user:i},error:r}=await this.getUser();if(r)return{data:null,error:r};const l={all:[],phone:[],totp:[],webauthn:[]};for(const c of(t=i?.factors)!==null&&t!==void 0?t:[])l.all.push(c),c.status==="verified"&&l[c.factor_type].push(c);return{data:l,error:null}}async _getAuthenticatorAssuranceLevel(t){var i,r,l,c;if(t)try{const{payload:w}=Ml(t);let _=null;w.aal&&(_=w.aal);let E=_;const{data:{user:A},error:k}=await this.getUser(t);if(k)return this._returnResult({data:null,error:k});((r=(i=A?.factors)===null||i===void 0?void 0:i.filter(B=>B.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(E="aal2");const C=w.amr||[];return{data:{currentLevel:_,nextLevel:E,currentAuthenticationMethods:C},error:null}}catch(w){if(X(w))return this._returnResult({data:null,error:w});throw w}const{data:{session:u},error:h}
56=await this.getSession();if(h)return this._returnResult({data:null,error:h});if(!u)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:p}=Ml(u.access_token);let m=null;p.aal&&(m=p.aal);let y=m;((c=(l=u.user.factors)===null||l===void 0?void 0:l.filter(w=>w.status==="verified"))!==null&&c!==void 0?c:[]).length>0&&(y="aal2");const b=p.amr||[];return{data:{currentLevel:m,nextLevel:y,currentAuthenticationMethods:b},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async i=>{const{data:{session:r},error:l}=i;return l?this._returnResult({data:null,error:l}):r?await ae(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:c=>({data:c,error:null})}):this._returnResult({data:null,error:new ct})})}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}}async _approveAuthorization(t,i){try{return await this._useSession(async r=>{const{data:{session:l},error:c}=r;if(c)return this._returnResult({data:null,error:c});if(!l)return this._returnResult({data:null,error:new ct});const u=await ae(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:l.access_token,body:{action:"approve"},xform:h=>({data:h,error:null})});return u.data&&u.data.redirect_url&&yt()&&!i?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(r){if(X(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,i){try{return await this._useSession(async r=>{const{data:{session:l},error:c}=r;if(c)return this._returnResult({data:null,error:c});if(!l)return this._returnResult({data:null,error:new ct});const u=await ae(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:l.access_token,body:{action:"deny"},xform:h=>({data:h,error:null})});return u.data&&u.data.redirect_url&&yt()&&!i?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(r){if(X(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:i},error:r}=t;return r?this._returnResult({data:null,error:r}):i?await ae(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:i.access_token,xform:l=>({data:l,error:null})}):this._returnResult({data:null,error:new ct})})}catch(t){if(X(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async i=>{const{data:{session:r},error:l}=i;return l?this._returnResult({data:null,error:l}):r?(await ae(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new ct})})}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}}async fetchJwk(t,i={keys:[]}){let r=i.keys.find(h=>h.kid===t);if(r)return r;const l=Date.now();if(r=this.jwks.keys.find(h=>h.kid===t),r&&this.jwks_cached_at+cR>l)return r;const{data:c,error:u}=await ae(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(u)throw u;return!c.keys||c.keys.length===0||(this.jwks=c,this.jwks_cached_at=l,r=c.keys.find(h=>h.kid===t),!r)?null:r}async getClaims(t,i={}){try{let r=t;if(!r){const{data:w,error:_}
56=await this.getSession();if(_||!w.session)return this._returnResult({data:null,error:_});r=w.session.access_token}const{header:l,payload:c,signature:u,raw:{header:h,payload:p}}=Ml(r);i?.allowExpired||jR(c.exp);const m=!l.alg||l.alg.startsWith("HS")||!l.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(l.kid,i?.keys?{keys:i.keys}:i?.jwks);if(!m){const{error:w}=await this.getUser(r);if(w)throw w;return{data:{claims:c,header:l,signature:u},error:null}}const y=NR(l.alg),g=await crypto.subtle.importKey("jwk",m,y,!0,["verify"]);if(!await crypto.subtle.verify(y,g,u,vR(`${h}.${p}`)))throw new Vh("Invalid JWT signature");return{data:{claims:c,header:l,signature:u},error:null}}catch(r){if(X(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(t){var i,r,l;ln(this.experimental);try{if(!ic())return this._returnResult({data:null,error:new hn("Browser does not support WebAuthn",null)});const{data:c,error:u}=await this._startPasskeyAuthentication({options:{captchaToken:(i=t?.options)===null||i===void 0?void 0:i.captchaToken}});if(u||!c)return this._returnResult({data:null,error:u});const h=Fv(c.options),p=(l=(r=t?.options)===null||r===void 0?void 0:r.signal)!==null&&l!==void 0?l:Fh.createNewAbortSignal(),{data:m,error:y}=await ww({publicKey:h,signal:p});if(y||!m)return this._returnResult({data:null,error:y??new hn("WebAuthn ceremony failed",null)});const g=Kv(m);return this._verifyPasskeyAuthentication({challengeId:c.challenge_id,credential:g})}catch(c){if(X(c))return this._returnResult({data:null,error:c});throw c}}async registerPasskey(t){var i,r;ln(this.experimental);try{if(!ic())return this._returnResult({data:null,error:new hn("Browser does not support WebAuthn",null)});const{data:l,error:c}=await this._startPasskeyRegistration();if(c||!l)return this._returnResult({data:null,error:c});const u=Vv(l.options),h=(r=(i=t?.options)===null||i===void 0?void 0:i.signal)!==null&&r!==void 0?r:Fh.createNewAbortSignal(),{data:p,error:m}=await bw({publicKey:u,signal:h});if(m||!p)return this._returnResult({data:null,error:m??new hn("WebAuthn ceremony failed",null)});const y=Yv(p);return this._verifyPasskeyRegistration({challengeId:l.challenge_id,credential:y})}catch(l){if(X(l))return this._returnResult({data:null,error:l});throw l}}async _startPasskeyRegistration(){ln(this.experimental);try{return await this._useSession(async t=>{const{data:{session:i},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!i)return this._returnResult({data:null,error:new ct});const{data:l,error:c}=await ae(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:i.access_token,body:{}});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(t){if(X(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){ln(this.experimental);try{return await this._useSession(async i=>{const{data:{session:r},error:l}=i;if(l)return this._returnResult({data:null,error:l});if(!r)return this._returnResult({data:null,error:new ct});const{data:c,error:u}=await ae(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}}async _startPasskeyAuthentication(t){var i;ln(this.experimental);try{const{data:r,error:l}=await ae(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(i=t?.options)===null||i===void 0?void 0:i.captchaToken}}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:r,error:null})}catch(r){if(X(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(t){ln(this.experimental);try{const{data:i,error:r}=await ae(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:en});return r?this._returnResult({data:null,error:r}):(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:i,error:null}))}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}}async _listPasskeys(){ln(this.experimental);try{return await this._useSession(async t=>{const{data:{session:i},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!i)return this._returnResult({data:null,error:new ct});const{data:l,error:c}=await ae(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:i.access_token,xform:u=>({data:u,error:null})});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(t){if(X(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){ln(this.experimental);try{return await this._useSession(async i=>{const{data:{session:r},error:l}=i;if(l)return this._returnResult({data:null,error:l});if(!r)return this._returnResult({data:null,error:new ct});const{data:c,error:u}=await ae(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:t.friendlyName}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}}async _deletePasskey(t){ln(this.experimental);try{return await this._useSession(async i=>{const{data:{session:r},error:l}=i;if(l)return this._returnResult({data:null,error:l});if(!r)return this._returnResult({data:null,error:new ct});const{error:c}
56=await ae(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,noResolveJson:!0});return c?this._returnResult({data:null,error:c}):this._returnResult({data:null,error:null})})}catch(i){if(X(i))return this._returnResult({data:null,error:i});throw i}}}Ks.nextInstanceID={};const nC=Ks,aC="2.105.4";let Rs="";typeof Deno<"u"?Rs="deno":typeof document<"u"?Rs="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Rs="react-native":Rs="node";const iC={"X-Client-Info":`supabase-js-${Rs}/${aC}`},rC={headers:iC},sC={schema:"public"},oC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},lC={};function Qs(e){"@babel/helpers - typeof";return Qs=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},Qs(e)}function cC(e,t){if(Qs(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var r=i.call(e,t);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uC(e){var t=cC(e,"string");return Qs(t)=="symbol"?t:t+""}function dC(e,t,i){return(t=uC(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Jv(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),i.push.apply(i,r)}return i}function Je(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Jv(Object(i),!0).forEach(function(r){dC(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Jv(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}const hC=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),fC=()=>Headers,pC=(e,t,i)=>{const r=hC(i),l=fC();return async(c,u)=>{var h;const p=(h=await t())!==null&&h!==void 0?h:e;let m=new l(u?.headers);return m.has("apikey")||m.set("apikey",e),m.has("Authorization")||m.set("Authorization",`Bearer ${p}`),r(c,Je(Je({},u),{},{headers:m}))}};function mC(e){return e.endsWith("/")?e:e+"/"}function gC(e,t){var i,r;const{db:l,auth:c,realtime:u,global:h}=e,{db:p,auth:m,realtime:y,global:g}=t,b={db:Je(Je({},p),l),auth:Je(Je({},m),c),realtime:Je(Je({},y),u),storage:{},global:Je(Je(Je({},g),h),{},{headers:Je(Je({},(i=g?.headers)!==null&&i!==void 0?i:{}),(r=h?.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?b.accessToken=e.accessToken:delete b.accessToken,b}function yC(e){const t=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(mC(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var vC=class extends nC{constructor(e){super(e)}},bC=class{constructor(e,t,i){var r,l;this.supabaseUrl=e,this.supabaseKey=t;const c=yC(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const u=`sb-${c.hostname.split(".")[0]}-auth-token`,h={db:sC,realtime:lC,auth:Je(Je({},oC),{},{storageKey:u}),global:rC},p=gC(i??{},h);if(this.storageKey=(r=p.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(l=p.global.headers)!==null&&l!==void 0?l:{},p.accessToken)this.accessToken=p.accessToken,this.auth=new Proxy({},{get:(y,g)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(g)} is not possible`)}});else{var m;this.auth=this._initSupabaseAuthClient((m=p.auth)!==null&&m!==void 0?m:{},this.headers,p.global.fetch)}this.fetch=pC(t,this._getAccessToken.bind(this),p.global.fetch),this.realtime=this._initRealtimeClient(Je({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},p.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(y=>this.realtime.setAuth(y)).catch(y=>console.warn("Failed to set initial Realtime auth token:",y)),this.rest=new Vk(new URL("rest/v1",c).href,{headers:this.headers,schema:p.db.schema,fetch:this.fetch,timeout:p.db.timeout,urlLengthLimit:p.db.urlLengthLimit}),this.storage=new iR(this.storageUrl.href,this.headers,this.fetch,i?.storage),p.accessToken||this._listenForAuthEvents()}get functions(){return new Mk(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={},i={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,i)}
56channel(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,i;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(i=r.session)===null||i===void 0?void 0:i.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:i,storage:r,userStorage:l,storageKey:c,flowType:u,lock:h,debug:p,throwOnError:m,experimental:y,lockAcquireTimeout:g,skipAutoInitialize:b},w,_){const E={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new vC({url:this.authUrl.href,headers:Je(Je({},E),w),storageKey:c,autoRefreshToken:e,persistSession:t,detectSessionInUrl:i,storage:r,userStorage:l,flowType:u,lock:h,debug:p,throwOnError:m,experimental:y,fetch:_,lockAcquireTimeout:g,skipAutoInitialize:b,hasCustomAuthorizationHeader:Object.keys(this.headers).some(A=>A.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new kx(this.realtimeUrl.href,Je(Je({},e),{}
56,{params:Je(Je({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t?.access_token)})}_handleTokenChanged(e,t,i){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==i?(this.changedAccessToken=i,this.realtime.setAuth(i)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const wC=(e,t,i)=>new bC(e,t,i);function SC(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const i=t.match(/^v(\d+)\./);return i?parseInt(i[1],10)<=18:!1}SC()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function _C(){if(typeof window>"u")return;const e=location.hostname,i=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(A=>e===A||e.endsWith("."+A)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",l=i?e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i"))?.[1]??e.match(new RegExp("^("+r+")(?=[.-])","i"))?.[1]:void 0,c=window.parent&&window.parent!==window;if(!l||!c)return localStorage;const u=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),h=u?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,p=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),m=p&&h.test(p)?[p]:u?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],y="lovable-preview-auth:result",g=2e3,b=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),w=(A,k,j)=>new Promise(C=>{const B=b();let J=!1,P;const L=se=>{J||(J=!0,clearTimeout(P),window.removeEventListener("message",Y),C(se))},Y=se=>{if(m.indexOf(se.origin)<0)return;const V=se.data;V&&V.type===y&&V.requestId===B&&L(V)};window.addEventListener("message",Y);const Z={type:A,requestId:B,projectId:l,key:k};j!==void 0&&(Z.value=j);for(const se of m)window.parent.postMessage(Z,se);P=setTimeout(()=>L(null),g)});let _=!0;const E=250;return{getItem:async A=>{let k=await w("lovable-preview-auth:get",A);return!k&&_&&(await new Promise(j=>setTimeout(j,E)),k=await w("lovable-preview-auth:get",A)),_=!1,k&&k.ok&&typeof k.value=="string"?k.value===""?(localStorage.removeItem(A),null):k.value:localStorage.getItem(A)},setItem:(A,k)=>(localStorage.setItem(A,k),w("lovable-preview-auth:set",A,k).then(j=>{j&&j.ok&&typeof j.value=="string"&&localStorage.getItem(A)===k&&(j.value===""?localStorage.removeItem(A):localStorage.setItem(A,j.value))})),removeItem:A=>(localStorage.removeItem(A),w("lovable-preview-auth:remove",A).then(()=>{}))}}function EC(){return wC("https://gszhvkoieudxbygefjsq.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imdzemh2a29pZXVkeGJ5Z2VmanNxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzkxMTUwNzIsImV4cCI6MjA5NDY5MTA3Mn0.G67zjFmCX1zdJcYsQlvz3HdmmPMZkoDqIcmzOxwNxsU",{auth:{storage:_C(),persistSession:!0,autoRefreshToken:!0}})}let sh;const Sw=new Proxy({},{get(e,t,i){return sh||(sh=EC()),Reflect.get(sh,t,i)}}),TC=za({type:"function"}).client(async({next:e})=>{const{data:t}=await Sw.auth.getSession(),i=t.session?.access_token;return e({headers:i?{Authorization:`Bearer ${i}`}:{}})}),OC=za(),Xv=jk(()=>({requestMiddleware:[OC],functionMiddleware:[TC]}));var wc=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=class extends wc{#e;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 27,177 bytes, line 56
56this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},_w=new AC,kC={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},xC=class{#e=kC;#n=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Yh=new xC;function RC(e){setTimeout(e,0)}var CC=typeof window>"u"||"Deno"in globalThis;function dn(){}function jC(e,t){return typeof e=="function"?e(t):e}function NC(e){return typeof e=="number"&&e>=0&&e!==1/0}function LC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Kh(e,t){return typeof e=="function"?e(t):e}function DC(e,t){return typeof e=="function"?e(t):e}function Wv(e,t){const{type:i="all",exact:r,fetchStatus:l,predicate:c,queryKey:u,stale:h}=e;if(u){if(r){if(t.queryHash!==wf(u,t.options))return!1}else if(!Xs(t.queryKey,u))return!1}if(i!=="all"){const p=t.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||l&&l!==t.state.fetchStatus||c&&!c(t))}function Zv(e,t){const{exact:i,status:r,predicate:l,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(i){if(Js(t.options.mutationKey)!==Js(c))return!1}else if(!Xs(t.options.mutationKey,c))return!1}return!(r&&t.state.status!==r||l&&!l(t))}function wf(e,t){return(t?.queryKeyHashFn||Js)(e)}function Js(e){return JSON.stringify(e,(t,i)=>Qh(i)?Object.keys(i).sort().reduce((r,l)=>(r[l]=i[l],r),{}):i)}function Xs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(i=>Xs(e[i],t[i])):!1}var MC=Object.prototype.hasOwnProperty;function Ew(e,t,i=0){if(e===t)return e;if(i>500)return t;const r=eb(e)&&eb(t);if(!r&&!(Qh(e)&&Qh(t)))return t;const c=(r?e:Object.keys(e)).length,u=r?t:Object.keys(t),h=u.length,p=r?new Array(h):{};let m=0;for(let y=0;y<h;y++){const g=r?y:u[y],b=e[g],w=t[g];if(b===w){p[g]=b,(r?y<c:MC.call(e,g))&&m++;continue}if(b===null||w===null||typeof b!="object"||typeof w!="object"){p[g]=w;continue}const _=Ew(b,w,i+1);p[g]=_,_===b&&m++}return c===h&&m===c?e:p}function YL(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}function eb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Qh(e){if(!tb(e))return!1;const t=e.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!tb(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function tb(e){return Object.prototype.toString.call(e)==="[object Object]"}function zC(e){return new Promise(t=>{Yh.setTimeout(t,e)})}function UC(e,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?Ew(e,t):t}function IC(e,t,i=0){const r=[...e,t];return i&&r.length>i?r.slice(1):r}function PC(e,t,i=0){const r=[t,...e];return i&&r.length>i?r.slice(0,-1):r}var Sf=Symbol();function Tw(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Sf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function KL(e,t){return typeof e=="function"?e(...t):!!e}function qC(e,t,i){let r=!1,l;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(l??=t(),r||(r=!0,l.aborted?i():l.addEventListener("abort",i,{once:!0})),l)}),e}var Ow=(()=>{let e=()=>CC;return{isServer(){return e()},setIsServer(t){e=t}}})();function BC(){let e,t;const i=new Promise((l,c)=>{e=l,t=c});i.status="pending",i.catch(()=>{});function r(l){Object.assign(i,l),delete i.resolve,delete i.reject}return i.resolve=l=>{r({status:"fulfilled",value:l}),e(l)},i.reject=l=>{r({status:"rejected",reason:l}),t(l)},i}var $C=RC;function HC(){let e=[],t=0,i=h=>{h()},r=h=>{h()},l=$C;const c=h=>{t?e.push(h):l(()=>{i(h)})},u=()=>{const h=e;e=[],h.length&&l(()=>{r(()=>{h.forEach(p=>{i(p)})})})};return{batch:h=>{let p;t++;try{p=h()}finally{t--,t||u()}return p},batchCalls:h=>(...p)=>{c(()=>{h(...p)})},schedule:c,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{r=h},setScheduler:h=>{l=h}}}var Et=HC(),GC=class extends wc{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(i=>{i(e)}))}isOnline(){return this.#e}},sc=new GC;function VC(e){return Math.min(1e3*2**e,3e4)}function Aw(e){return(e??"online")==="online"?sc.isOnline():!0}var Jh=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function kw(e){let t=!1,i=0,r;const l=BC(),c=()=>l.status!=="pending",u=E=>{if(!c()){const A=new Jh(E);b(A),e.onCancel?.(A)}},h=()=>{t=!0},p=()=>{t=!1},m=()=>_w.isFocused()&&(e.networkMode==="always"||sc.isOnline())&&e.canRun(),y=()=>Aw(e.networkMode)&&e.canRun(),g=E=>{c()||(r?.(),l.resolve(E))},b=E=>{c()||(r?.(),l.reject(E))},w=()=>new Promise(E=>{r=A=>{(c()||m())&&E(A)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let E;const A=i===0?e.initialPromise:void 0;try{E=A??e.fn()}catch(k){E=Promise.reject(k)}Promise.resolve(E).then(g).catch(k=>{if(c())return;const j=e.retry??(Ow.isServer()?0:3),C=e.retryDelay??VC,B=typeof C=="function"?C(i,k):C,J=j===!0||typeof j=="number"&&i<j||typeof j=="function"&&j(i,k);if(t||!J){b(k);return}i++,e.onFail?.(i,k),zC(B).then(()=>m()?void 0:w()).then(()=>{t?b(k):_()})})};return{promise:l,status:()=>l.status,cancel:u,continue:()=>(r?.(),l),cancelRetry:h,continueRetry:p,canStart:y,start:()=>(y()?_():w().then(_),l)}}var xw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),NC(this.gcTime)&&(this.#e=Yh.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ow.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Yh.clearTimeout(this.#e),this.#e=void 0)}},FC=class extends xw{#e;#n;#t;#i;#a;#r;#s;constructor(e){super(),this.#s=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#t=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=ab(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=ab(this.options);t.data!==void 0&&(this.setState(nb(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const i=UC(this.state.data,e,this.options);return this.#o({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(dn).catch(dn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>DC(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Sf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Kh(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!LC(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#l()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const i=new AbortController,r=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,i.signal)})},l=()=>{const h=Tw(this.options,t),m=(()=>{const y={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(y),y})();return this.#s=!1,this.options.persister?this.options.persister(h,m,this):h(m)},u=(()=>{const h={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:l};return r(h),h})();this.options.behavior?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#a=kw({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:h=>{h instanceof Jh&&h.revert&&this.setState({...this.#n,fetchStatus:"idle"}),i.abort()},onFail:(h,p)=>{this.#o({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const h=await this.#a.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#t.config.onSuccess?.(h,this),this.#t.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof Jh){if(h.silent)return this.#a.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#o({type:"error",error:h}),this.#t.config.onError?.(h,this),this.#t.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#o(e){const t=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...YC(i.data,this.options),fetchMeta:e.meta??null};case"success":const r={...i,...nb(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const l=e.error;return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=t(this.state),Et.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function YC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Aw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function nb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ab(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,i=t!==void 0,r=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}function ib(e){return{onFetch:(t,i)=>{const r=t.options,l=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let y=!1;const g=_=>{qC(_,()=>t.signal,()=>y=!0)},b=Tw(t.options,t.fetchOptions),w=async(_,E,A)=>{if(y)return Promise.reject();if(E==null&&_.pages.length)return Promise.resolve(_);const j=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:E,direction:A?"backward":"forward",meta:t.options.meta};return g(P),P})(),C=await b(j),{maxPages:B}=t.options,J=A?PC:IC;return{pages:J(_.pages,C,B),pageParams:J(_.pageParams,E,B)}};if(l&&c.length){const _=l==="backward",E=_?KC:rb,A={pages:c,pageParams:u},k=E(r,A);h=await w(A,k,_)}else{const _=e??c.length;do{const E=p===0?u[0]??r.initialPageParam:rb(r,h);if(p>0&&E==null)break;h=await w(h,E),p++}while(p<_)}return h};t.options.persister?t.fetchFn=()=>t.options.persister?.(m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i):t.fetchFn=m}}}function rb(e,{pages:t,pageParams:i}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,i[r],i):void 0}function KC(e,{pages:t,pageParams:i}){return t.length>0?e.getPreviousPageParam?.(t[0],t,i[0],i):void 0}var QC=class extends xw{#e;#n;#t;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#n=[],this.state=e.state||JC(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#a({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=kw({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(c,u)=>{this.#a({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",l=!this.#i.canStart();try{if(r)t();else{this.#a({type:"pending",variables:e,isPaused:l}),this.#t.config.onMutate&&await this.#t.config.onMutate(e,this,i);const u=await this.options.onMutate?.(e,i);u!==this.state.context&&this.#a({type:"pending",context:u,variables:e,isPaused:l})}const c=await this.#i.start();return await this.#t.config.onSuccess?.(c,e,this.state.context,this,i),await this.options.onSuccess?.(c,e,this.state.context,i),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(c,null,e,this.state.context,i),this.#a({type:"success",data:c}),c}catch(c){try{await this.#t.config.onError?.(c,e,this.state.context,this,i)}catch(u){Promise.reject(u)}try{await this.options.onError?.(c,e,this.state.context,i)}catch(u){Promise.reject(u)}try{await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,i)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,i)}catch(u){Promise.reject(u)}throw this.#a({type:"error",error:c}),c}finally{this.#t.runNext(this)}}#a(e){const t=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Et.batch(()=>{this.#n.forEach(i=>{i.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function JC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var XC=class extends wc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,i){const r=new QC({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:i});return this.add(r),r}add(e){this.#e.add(e);const t=zl(e);if(typeof t=="string"){const i=this.#n.get(t);i?i.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=zl(e);if(typeof t=="string"){const i=this.#n.get(t);if(i)if(i.length>1){const r=i.indexOf(e);r!==-1&&i.splice(r,1)}else i[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=zl(e);if(typeof t=="string"){const r=this.#n.get(t)?.find(l=>l.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=zl(e);return typeof t=="string"?this.#n.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Et.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(i=>Zv(t,i))}findAll(e={}){return this.getAll().filter(t=>Zv(e,t))}notify(e){Et.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Et.batch(()=>Promise.all(e.map(t=>t.continue().catch(dn))))}};function zl(e){return e.options.scope?.id}var WC=class extends wc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,i){const r=t.queryKey,l=t.queryHash??wf(r,t);let c=this.get(l);return c||(c=new FC({client:e,queryKey:r,queryHash:l,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Et.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(i=>Wv(t,i))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(i=>Wv(e,i)):t}notify(e){Et.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Et.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Et.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ZC=class{#e;#n;#t;#i;#a;#r;#s;#l;constructor(e={}){this.#e=e.queryCache||new WC,this.#n=e.mutationCache||new XC,this.#t=e.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#s=_w.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=sc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#s?.(),this.#s=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),i=this.#e.build(this,t),r=i.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(Kh(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:i})=>{const r=i.data;return[t,r]})}setQueryData(e,t,i){const r=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(r.queryHash)?.state.data,u=jC(t,c);if(u!==void 0)return this.#e.build(this,r).setData(u,{...i,manual:!0})}setQueriesData(e,t,i){return Et.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,i)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Et.batch(()=>{t.findAll(e).forEach(i=>{t.remove(i)})})}resetQueries(e,t){const i=this.#e;return Et.batch(()=>(i.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const i={revert:!0,...t},r=Et.batch(()=>this.#e.findAll(e).map(l=>l.cancel(i)));return Promise.all(r).then(dn).catch(dn)}invalidateQueries(e,t={}){return Et.batch(()=>(this.#e.findAll(e).forEach(i=>{i.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const i={...t,cancelRefetch:t.cancelRefetch??!0},r=Et.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,i);return i.throwOnError||(c=c.catch(dn)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(dn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const i=this.#e.build(this,t);return i.isStaleByTime(Kh(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(dn).catch(dn)}fetchInfiniteQuery(e){return e.behavior=ib(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dn).catch(dn)}ensureInfiniteQueryData(e){return e.behavior=ib(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return sc.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#i.set(Js(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],i={};return t.forEach(r=>{Xs(e,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(e,t){this.#a.set(Js(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],i={};return t.forEach(r=>{Xs(e,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#t.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=wf(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===Sf&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},Rw=ee.createContext(void 0),QL=e=>{const t=ee.useContext(Rw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},e2=({client:e,children:t})=>(ee.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),T.jsx(Rw.Provider,{value:e,children:t}));const t2="/assets/styles-BmguxeKg.css";function n2(){return T.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:T.jsxs("div",{className:"max-w-md text-center",children:[T.jsx("h1",{className:"text-7xl font-bold text-foreground",children:"404"}),T.jsx("h2",{className:"mt-4 text-xl font-semibold text-foreground",children:"Page not found"}),T.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The page you're looking for doesn't exist or has been moved."}),T.jsx("div",{className:"mt-6",children:T.jsx(Ve,{to:"/",className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Go home"})})]})})}function a2({error:e,reset:t}){console.error(e);const i=St();return T.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:T.jsxs("div",{className:"max-w-md text-center",children:[T.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"This page didn't load"}),T.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Something went wrong on our end. You can try refreshing or head back home."}),T.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[T.jsx("button",{onClick:()=>{i.invalidate(),t()},className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Try again"}),T.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:"Go home"})]})]})})}const Sc=rk()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Sarah Fitz, SEO & AI Search Consultant"},{name:"description",content:"Independent SEO and AI search consultancy for brands & agencies. Grow your organic performance with Sarah Fitz."},{name:"author",content:"Sarah Fitz"},{property:"og:title",content:"Sarah Fitz, SEO & AI Search Consultant"},{property:"og:description",content:"Independent SEO and AI search consultancy for brands & agencies. Grow your organic performance with Sarah Fitz."},{property:"og:type",content:"website"},{property:"og:site_name",content:"Sarah Fitz SEO"},{name:"twitter:card",content:"summary"},{name:"twitter:title",content:"Sarah Fitz, SEO & AI Search Consultant"},{name:"twitter:description",content:"Independent SEO and AI search consultancy for brands & agencies. Grow your organic performance with Sarah Fitz."}],scripts:[{children:"window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}window.gtag=gtag;gtag('consent','default',{ad_storage:'denied',analytics_storage:'denied',ad_user_data:'denied',ad_personalization:'denied'});try{if(localStorage.getItem('sf_consent')==='granted'){gtag('consent','update',{analytics_storage:'granted'});}}catch(e){}gtag('js',new Date());gtag('config','G-B60D1P1JGN',{anonymize_ip:true});"}
56,{src:"https://www.googletagmanager.com/gtag/js?id=G-B60D1P1JGN",async:!0},{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Organization","@id":"https://sarahfitzseo.com/#organization",name:"Sarah Fitz SEO",url:"https://sarahfitzseo.com/",logo:"https://sarahfitzseo.com/apple-touch-icon.png",description:"Independent SEO and AI search consultancy for ambitious brands.",founder:{"@id":"https://sarahfitzseo.com/about#sarah"},areaServed:"Worldwide",email:"[email protected]",sameAs:["https://www.linkedin.com/in/sarah-fitzpatrick-abbb04ba/"]})},{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Person","@id":"https://sarahfitzseo.com/about#sarah",name:"Sarah Fitzpatrick",url:"https://sarahfitzseo.com/about",image:"https://sarahfitzseo.com/apple-touch-icon.png",jobTitle:"Independent SEO & AI Search Consultant",description:"Independent SEO consultant with 11 years of experience helping brands grow organic visibility across Google, AI search and s
56ocial.",knowsAbout:["Search Engine Optimization","Technical SEO","International SEO","AI Search","Generative Engine Optimization","Content Strategy","SEO Migrations","YouTube SEO"],sameAs:["https://www.linkedin.com/in/sarah-fitzpatrick-abbb04ba/"],worksFor:{"@id":"https://sarahfitzseo.com/#organization"}})}],links:[{rel:"stylesheet",href:t2},{rel:"icon",type:"image/png",href:"/favicon.png"},{rel:"apple-touch-icon",href:"/apple-touch-icon.png"},{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],400;9..144,500;9..144,600;9..144,700&family=Karla:wght@400;500;600;700&family=Press+Start+2P&display=swap"}]}),shellComponent:i2,component:r2,notFoundComponent:n2,errorComponent:a2});function i2({children:e}){return T.jsxs("html",{lang:"en",children:[T.jsx("head",{children:T.jsx(Tk,{})}),T.jsxs("body",{children:[e,T.jsx(Ak,{})]})]})}function r2(){const{queryClient:e}=Sc.useRouteContext();return T.jsx(e2,{client:e,children:T.jsx(yf,{})})}const s2="modulepreload",o2=function(e){return"/"+e},sb={},be=function(t,i,r){let l=Promise.resolve();if(i&&i.length>0){let p=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),h=u?.nonce||u?.getAttribute("nonce");l=p(i.map(m=>{if(m=o2(m),m in sb)return;sb[m]=!0;const y=m.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":s2,y||(b.as="script"),b.crossOrigin="",b.href=m,h&&b.setAttribute("nonce",h),document.head.appendChild(b),y)return new Promise((w,_)=>{b.addEventListener("load",w),b.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(u){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=u,window.dispatchEvent(h),!h.defaultPrevented)throw u}return l.then(u=>{for(const h of u||[])h.status==="rejected"&&c(h.reason);return t().catch(c)})},l2=()=>be(()=>import("./_layout-dkw7PABB.js"),[]),c2=Ae()({component:ve(l2,"component")}),Ga=za({type:"function"}),_f=ut({method:"GET"}).handler(wt("a203df098dcd51db3aa4a9e3fac54c6b9d72aa51ccbd0f797d373573fcb9af36")),u2=ut({method:"GET"}).handler(wt("3aa053b96fc0210714e1178b0d48178b2eb60efba85b51706002c3c1beaba5dd")),JL=ut({method:"GET"}).middleware([Ga]).handler(wt("602f44b7721fc9984733482e3303368107ce0e96c85dc86c2d1b225e0f01bf16")),XL=ut({method:"GET"}).middleware([Ga]).handler(wt("e6371bfd756aaefe50e3b548898fc11ea101a8fbfe15bbeaab1e55e8a37c7797")),WL=ut({method:"POST"}).middleware([Ga]).handler(wt("775e176351da9bfa5169a4674dd9fbf7cab71aeedfc92dca0ecaa047db55bf3e")),ZL=ut({method:"POST"}).middleware([Ga]).handler(wt("31cee75069c512316491eb1a3fd3bb5173890b6234a59fe1f243f4c525692418")),d2=ut({method:"GET"}).middleware([Ga]).handler(wt("055b31c656ff7a0de434da491c1f93b4102ffaf0ee456ebc9e1b10de0e1afb25")),e3=ut({method:"GET"}).middleware([Ga]).handler(wt("31813dac8a1defdd0116608ed4cdf8cb4b064c0f48840e392c475bde184fb1b1")),t3=ut({method:"GET"}).middleware([Ga]).handler(wt("6e904b35bd791b9215d8111c021d70d18247e610f30fb6f8e7b2f624ec4f81d1")),n3=ut({method:"POST"}).middleware([Ga]).handler(wt("cb2e71580572ff7a292f909ff6042edf3ef65ab94b42462876878c739001f727")),h2=()=>be(()=>import("./admin-CKu3cuN1.js"),[]),f2=Ae()({head:()=>({meta:[{name:"robots",content:"noindex, nofollow"}]}),beforeLoad:async({location:e})=>{if(e.pathname==="/admin/login")return;const{data:t,error:i}=await Sw.auth.getUser();if(i||!t.user)throw _r({to:"/admin/login"});try{const{isAdmin:r}=await d2();if(!r)throw _r({to:"/admin/login",search:{error:"not-admin"}})}catch(r){throw r&&typeof r=="object"&&"to"in r?r:_r({to:"/admin/login",search:{error:"not-admin"}})}},component:ve(h2,"component")}),ob=[{quote:"Having an outside perspective on our YouTube SEO really helped us identify gaps and internal
56cannibalisation that are hard to spot when you're in the thick of it. The clear guidelines and highlighted quick wins made it much easier to prioritise the work needed. The process was easy to understand, worked very well, and the support afterwards was excellent. I would absolutely work with Sarah Fitz again.",name:"Carol Feller",role:"CEO & Founder of Stolen Stitches"},{quote:"Sarah has the ability to take very complex SEO and marketing topics and distill them down into very specific, understandable problem/solution actions, outlining a roadmap and prioritising what needs to be tackled in order to improve performance.",name:"Paid Media Lead",role:"In-House Brand"},{quote:"Sarah was a pleasure to work with and always had a hands-on, logical approach to SEO strategy and priority. It's so refreshing when you work with someone who always has their eyes on data, knowing what's working and what's not and takes a smart and quick approach on how to react. She has such a strong skill set on all things organic.",name:"SEO Lead",role:"Agency"},{quote:"Sarah is exceptional when it comes to all things SEO. During my time working with her, my knowledge of SEO grew tenfold. With Sarah's guidance, I was able to use all of the relevant tools, carry out keyword research, on-page optimisation & more which in turn drove on organic performance for multiple clients.",name:"Performance Marketer",role:"Agency"}],p2=()=>be(()=>import("./_layout.index-Da5wNO4S.js"),__vite__mapDeps([0,1,2])),m2=Ae()({head:()=>({meta:[{title:"Freelance SEO & AI Search Consultant | Sarah Fitz"},{name:"description",content:"Senior freelance SEO consultant with 11 years building organic growth for SaaS, e-commerce and agencies across Google, AI search and s
56ocial."},{property:"og:title",content:"Freelance SEO & AI Search Consultant | Sarah Fitz"},{property:"og:description",content:"Senior freelance SEO consultant with 11 years building organic growth for SaaS, e-commerce and agencies across Google, AI search and social."},{property:"og:url",content:"https://sarahfitzseo.com/"},{property:"og:image",content:"https://sarahfitzseo.com/social-card-sarah-fitz-seo.jpg"},{property:"og:image:alt",content:"Sarah Fitz SEO, Senior SEO and AI Search Consultant"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:image",content:"https://sarahfitzseo.com/social-card-sarah-fitz-seo.jpg"},{name:"twitter:image:alt",content:"Sarah Fitz SEO, Senior SEO and AI Search Consultant"}],links:[{rel:"canonical",href:"https://sarahfitzseo.com/"}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:"Sarah Fitz SEO",url:"https://sarahfitzseo.com/",description:"Eleven years building organic growth engines for startups, agencies and global brands."})},{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"ProfessionalService","@id":"https://sarahfitzseo.com/#service",name:"Sarah Fitz SEO",url:"https://sarahfitzseo.com/",image:"https://sarahfitzseo.com/apple-touch-icon.png",priceRange:"$$",areaServed:"Worldwide",provider:{"@id":"https://sarahfitzseo.com/about#sarah"},aggregateRating:{"@type":"AggregateRating",ratingValue:"5",reviewCount:ob.length.toString(),bestRating:"5",worstRating:"5"},review:ob.map(e=>({"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:"5",bestRating:"5"},author:{"@type":"Person",name:e.name},reviewBody:e.quote}))})}]}),loader:()=>_f(),component:ve(p2,"component")}),lb="https://sarahfitzseo.com";function Rr(e){return{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${lb}/`},...e.map((t,i)=>({"@type":"ListItem",position:i+2,name:t.name,item:`${lb}${t.path}`}))]})}}const g2=()=>be(()=>import("./_layout.about-ClEEf7Yj.js"),__vite__mapDeps([3,4,5,6])),y2=Ae()({head:()=>({meta:[{title:"About Sarah Fitz | SEO Consultant with 11+ Years Experience"},{name:"description",content:"From sports journalism to agency, in-house and startup SEO. Meet Sarah Fitzpatrick, independent SEO and AI search consultant based in Ireland."},{property:"og:title",content:"About Sarah Fitz | SEO Consultant with 11+ Years Experience"},{property:"og:description",content:"From sports journalism to agency, in-house and startup SEO. Meet Sarah Fitzpatrick, independent SEO and AI search consultant based in Ireland."},{property:"og:url",content:"https://sarahfitzseo.com/about"}],links:[{rel:"canonical",href:"https://sarahfitzseo.com/about"}],scripts:[Rr([{name:"About",path:"/about"}]),{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Person","@id":"https://sarahfitzseo.com/about#sarah",name:"Sarah Fitzpatrick",url:"https://sarahfitzseo.com/about",image:"https://sarahfitzseo.com/apple-touch-icon.png",jobTitle:"Independent SEO & AI Search Consultant",description:"Independent SEO consultant based in Ireland with 11 years driving organic revenue for venture-backed startups, e-commerce brands and global agencies.",knowsAbout:["Search Engine Optimization","Technical SEO","International SEO","AI Search","Generative Engine Optimization","Content Strategy","SEO Migrations","YouTube SEO"],sameAs:["https://www.linkedin.com/in/sarah-fitzpatrick-abbb04ba/"],worksFor:{"@id":"https://sarahfitzseo.com/#organization"},alumniOf:{"@type":"CollegeOrUniversity",name:"University of Limerick",sameAs:"https://www.ul.ie/"},address:{"@type":"PostalAddress",addressCountry:"IE"}})}]}),component:ve(g2,"component")}),a3=ut({method:"GET"}).handler(wt("283bd7ea59328d97607ebd6e1d6b4b85cdb2d2db949b1087bac973f630518a84")),i3=ut({method:"POST"}).handler(wt("767de3feb8e60e11e07fb38d7e1d936dffa801ae50303431afc803cb6abb015e")),Ef=ut({method:"GET"}
56).handler(wt("ac8cb0d43c0785f055d0353955886734e1f9913fa288dfa4748cc0bd21270c83")),v2=()=>({queryKey:["game-scores","ai_visibility","landing"],queryFn:()=>Ef({data:{gameSlug:"ai_visibility",limit:5}})}),b2=()=>be(()=>import("./_layout.ai-visibility-arcade-CB_48vSG.js"),__vite__mapDeps([7,8,9,10,11,12,1,5,13,2,14,15,16,6,17,18,19,20,21,22])),Cs="https://sarahfitzseo.com",oh=`${Cs}/social-card-ai-visibility-arcade.jpg`,w2=Ae()({loader:({context:e})=>e.queryClient.ensureQueryData(v2()),component:ve(b2,"component"),head:()=>({meta:[{title:"AI Visibility Arcade | Test Your Brand's AI Search IQ"},{name:"description",content:"Play a 10-card arcade game to find out what makes brands show up in ChatGPT, Perplexity and AI Overviews. Then learn how to fix your AI visibility."},{property:"og:title",content:"AI Visibility Arcade: Test Your Brand's AI Search IQ"},{property:"og:description",content:"Play a 10-card arcade game to find out what makes brands show up in ChatGPT, Perplexity and AI Overviews."},{property:"og:type",content:"website"},{property:"og:url",content:`${Cs}/ai-visibility-arcade`},{property:"og:image",content:oh},{property:"og:image:alt",content:"AI Visibility Arcade retro arcade cabinet preview"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"AI Visibility Arcade: Test Your Brand's AI Search IQ"},{name:"twitter:description",content:"Play a 10-card arcade game to find out what makes brands show up in ChatGPT, Perplexity and AI Overviews."},{name:"twitter:image",content:oh}],links:[{rel:"canonical",href:`${Cs}/ai-visibility-arcade`}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebApplication",name:"AI Visibility Arcade",applicationCategory:"GameApplication",url:`${Cs}/ai-visibility-arcade`,image:oh,description:"A 10-card arcade game that tests how well you understand AI search visibility, GEO and citation signals.",author:{"@type":"Organization",name:"Sarah Fitz SEO",url:Cs},offers:{"@type":"Offer",price:"0",priceCurrency:"EUR"}})}]})}),S2=()=>({queryKey:["game-scores","ai_visibility","leaderboard"],queryFn:async()=>{try{return{scores:(await Ef({data:{gameSlug:"ai_visibility",limit:50}})).scores,failed:!1}}catch(e){return console.error("Leaderboard scores failed to load",e),{scores:[],failed:!0}}}}),_2=()=>be(()=>import("./_layout.ai-visibility-leaderboard-BrYaJ_AX.js"),[]),E2=()=>be(()=>import("./_layout.ai-visibility-leaderboard-s8jjHiab.js"),[]),T2=()=>be(()=>import("./_layout.ai-visibility-leaderboard-C7k5p07l.js"),__vite__mapDeps([23,8,9,10,11,12,1,5,13,2,14,15,16,6,17,18,19,20,21,22])),cb="https://sarahfitzseo.com/ai-visibility-leaderboard",lh="AI Visibility Arcade: Play & Leaderboard | Sarah Fitz SEO",ch="Play the AI Visibility Arcade right here: 10 cards, 10 seconds each. Test whether your brand would be cited by ChatGPT, Perplexity and AI Overviews, then see where you rank.",O2=Ae()({loader:({context:e})=>e.queryClient.ensureQueryData(S2()),component:ve(T2,"component"),errorComponent:ve(E2,"errorComponent"),notFoundComponent:ve(_2,"notFoundComponent"),head:()=>({meta:[{title:lh},{name:"description",content:ch},{property:"og:title",content:lh},{property:"og:description",content:ch},{property:"og:type",content:"website"},{property:"og:url",content:cb},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:lh},{name:"twitter:description",content:ch}],links:[{rel:"canonical",href:cb}]})}),A2=()=>be(()=>import("./_layout.contact-8-MIytl5.js"),[]),k2=Ae()({head:()=>({meta:[{title:"Hire an SEO Consultant | Book a Call with Sarah Fitz"},{name:"description",content:"Hire a senior SEO consultant. Book a free 30-minute intro call to scope technical SEO, content strategy or AI search support for your brand."},{property:"og:title",content:"Hire an SEO Consultant | Book a Call with Sarah Fitz"},{property:"og:description",content:"Hire a senior SEO consultant. Book a free 30-minute intro call to scope technical SEO, content strategy or AI search support for your brand."},{property:"og:url",content:"https://sarahfitzseo.com/contact"}],links:[{rel:"canonical",href:"https://sarahfitzseo.com/contact"}],scripts:[Rr([{name:"Contact",path:"/contact"}])]}),component:ve(A2,"component")}),x2=()=>be(()=>import("./_layout.portfolio-BhCYNkx_.js"),__vite__mapDeps([24,16])),R2=Ae()({head:()=>
56({meta:[{title:"SEO Case Studies | E-commerce, SaaS & Fintech Results"},{name:"description",content:"Selected SEO and AI search case studies across e-commerce, fintech, hospitality, eSIM and global mobile top-up platforms."},{property:"og:title",content:"SEO Case Studies | E-commerce, SaaS & Fintech Results"},{property:"og:description",content:"Selected SEO and AI search case studies across e-commerce, fintech, hospitality, eSIM and global mobile top-up platforms."},{property:"og:url",content:"https://sarahfitzseo.com/portfolio"}],links:[{rel:"canonical",href:"https://sarahfitzseo.com/portfolio"}],scripts:[Rr([{name:"Portfolio",path:"/portfolio"}])]}),component:ve(x2,"component")}),C2=()=>be(()=>import("./_layout.privacy-BBwwpOMw.js"),[]),ub="https://sarahfitzseo.com/privacy",uh="Privacy Policy | Sarah Fitz SEO",dh="How Sarah Fitz SEO handles analytics, feedback, testimonials, and contact data.",j2=Ae()({head:()=>({meta:[{title:uh},{name:"description",content:dh},{property:"og:title",content:uh},{property:"og:description",content:dh},{property:"og:type",content:"website"},{property:"og:url",content:ub},{name:"twitter:card",content:"summary"},{name:"twitter:title",content:uh},{name:"twitter:description",content:dh}],links:[{rel:"canonical",href:ub}],scripts:[Rr([{name:"Privacy",path:"/privacy"}])]}),component:ve(C2,"component")}),N2=()=>be(()=>import("./admin.index-DdlQQVwV.js"),[]),L2=Ae()({beforeLoad:()=>{throw _r({to:"/admin/posts"})},component:ve(N2,"component")}),D2=()=>be(()=>import("./admin.login-CLcL7Ys3.js"),[]),M2=Ae()({head:()=>({meta:[{title:"Admin Sign in"},{name:"robots",content:"noindex, nofollow"}]}),validateSearch:e=>typeof e.error=="string"?{error:e.error}:{},component:ve(D2,"component")}),z2=()=>be(()=>import("./admin.tool-feedback-VArhk4ch.js"),__vite__mapDeps([25,26,11,9,27])),U2=Ae()({component:ve(z2,"component")}),I2=()=>be(()=>import("./_layout.blog.index-Bp0r_Hfc.js"),__vite__mapDeps([28,11,9,26,4,29])),P2=Ae()({head:()=>({meta:[{title:"SEO & AI Search Blog | Sarah Fitz"},{name:"description",content:"Practical takes on SEO, AI search optimisation, answer engine optimisation and building organic growth engines that drive revenue in 2026."},{property:"og:title",content:"SEO & AI Search Blog | Sarah Fitz"},{property:"og:description",content:"Practical takes on SEO, AI search optimisation, answer engine optimisation and building organic growth engines that drive revenue in 2026."},{property:"og:url",content:"https://sarahfitzseo.com/blog"}],links:[{rel:"canonical",href:"https://sarahfitzseo.com/blog"}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Blog",name:"Sarah Fitz SEO Blog",url:"https://sarahfitzseo.com/blog",description:"My thoughts on SEO, AI Search, Social Search and building organic engines that drive revenue in 2026. As well sharing what I've learned building my own SEO consultancy from scratch.",author:{"@id":"https://sarahfitzseo.com/about#sarah"},publisher:{"@id":"https://sarahfitzseo.com/#organization"}})},{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://sarahfitzseo.com/"},{"@type":"ListItem",position:2,name:"Blog",item:"https://sarahfitzseo.com/blog"}]})}]}),loader:()=>_f(),component:ve(I2,"component")}),ja="https://sarahfitzseo.com",q2={"using-ai-for-website-content-bad-for-seo":[{q:"Is AI written content bad for SEO?",a:"Not automatically. Google judges whether a page is useful, accurate and worth ranking, not whether AI touched the draft. The problem is thin, unedited content published at scale with no human oversight."},{q:"Will Google penalise my site for using AI?",a:"There is no penalty for using AI itself. What gets filtered or demoted is low quality, unhelpful content, and that happens whether a person or a model wrote it."},{q:"Can AI written content rank?",a:"Yes, when a human edits it properly. That means checking every fact, adding real experience and a clear point of view, and making sure the page actually answers what the reader came for."},{q:"What can AI not give you?",a:"First hand experience, original research, client results, interviews with experts, genuine opinions and the judgement that comes from having made the mistakes yourself."},{q:"How should I use AI for website content safely?",a:"Use it for research, structure and a first draft, then edit, fact check and add your own expertise before anything goes live. Treat it as a starting point, never as the finished page."}],"why-is-my-brand-not-showing-up-in-chatgpt":[{q:"Why is my brand not showing up in ChatGPT?",a:"Usually because there is not enough clear, consistent information about you in the places these models learn from. If your brand is barely mentioned outside your own website, and your site does not state plainly what you do and who you do it for, there is very little for a model to repeat."},{q:"How do I get my brand mentioned by AI tools?",a:"Be quotable and be everywhere that matters. Publish clear answers to the questions buyers actually ask, keep your name, service description and location consistent across every profile, and earn mentions on third party sites, podcasts, reviews, directories and communities like Reddit and LinkedIn."},{q:"Is optimising for AI search different from SEO?",a:"It is the same discipline stretched wider. Crawlable pages, clean structure, strong entity signals and genuinely useful content still do the heavy lifting. The difference is that you are optimising to be the answer rather than only to be a blue link."},{q:"How long does it take to show up in AI answers?",a:"There is no index refresh button. Some tools pull live search results and can pick y
56ou up in weeks, others rely on training data and take much longer. Treat it as a compounding effort rather than a campaign with an end date."}],"getting-found-is-easy-staying-the-answer-takes-constant-work-what-ex-love-island":[{q:"What can Love Island contestants teach brands about SEO?",a:"That getting found once is the easy part. A burst of attention gives you visibility for a few weeks, but staying the answer people search for takes consistent output, relevance and a reason to keep coming back."},{q:"Why does search visibility fade if you stop publishing?",a:"Interest moves on and so do search engines. Competitors publish fresher, better answers, your pages age, and demand shifts to whoever is currently active. Visibility is a position you defend, not a prize you keep."},{q:"Is a spike in brand searches worth anything?",a:"Only if you capture it. A spike is demand pointed at you for a short window, so you need pages that answer what people are actually searching, a way to collect emails or follows, and something to sell them afterwards."},{q:"How do you stay relevant in search long term?",a:"Pick the topics you want to own, keep updating the pages that already work, keep showing up on the platforms where your audience talks, and build enough brand recognition that people search for you by name."},{q:"How often should I refresh old content?",a:"Review your top performing pages at least twice a year, and sooner if rankings slip, the advice dates or the market changes. Updating a page that already has authority usually beats writing a brand new one."}],"the-world-cup-has-caused-chaotic-search-trends-and-behaviour-on-google":[{q:"Why do big cultural events change search behaviour so much?",a:"A moment like the World Cup creates layers of demand. People search the obvious thing first, then the practical things around it, like travel, food, venues and gear, then the strange, specific and emotional questions nobody planned for."},{q:"How can brands benefit from event driven search?",a:"By answering what people need next rather than shouting about the event itself. Fixture times, opening hours, delivery cut offs, stock, locations and simple explainers all convert better than a themed campaign page."},{q:"Do I need to be in the same industry to benefit?",a:"No. Travel, hospitality, retail, transport, TV and drinks brands all pick up demand from the same moment. If your customers are affected by it, there is a version of the question you can answer."},{q:"How far in advance should I plan seasonal SEO content?",a:"Publish at least six to eight weeks before demand peaks so pages have time to be crawled, indexed and gather early signals. Trying to rank on the day of the event rarely works."},{q:"What happens to those pages after the event?",a:"Keep the ones with recurring demand and update them each cycle rather than deleting them. A page that has already earned authority is far easier to refresh than to rebuild from scratch."}],"what-secret-lives-of-mormon-wives-can-teach-brands-about-modern-seo":[{q:"What does Secret Lives of Mormon Wives have to do with SEO?",a:"It is a surprisingly useful analogy for modern brand discovery. The show provides an official edit, but viewers also form opinions through TikTok, Reddit, podcasts, headlines, search results, interviews and AI summaries. Brands face the same challenge: your website is one important source, but it is not the whole story people find online."},{q:"Is my website still the most important thing?",a:"Your website is still one of your most important organic assets because it is the part of the journey you have the most control over. But it exists within a much wider discovery journey. Search results, reviews, social platforms, YouTube, third-party mentions and AI answers can all influence someone before they ever visit your website."},{q:"Can brands control what is said about them online?",a:"No, and trying to control every conversation shouldn't be the goal. Brands can instead shape how they are understood by making their positioning clear, publishing genuinely useful content, earning credible third-party mentions, delivering good customer experiences and correcting inaccurate or outdated information at source."},{q:"What is off-site visibility and why does it matter?",a:"Off-site visibility is how your brand appears outside your own website. That includes reviews, PR coverage, social platforms, YouTube, Reddit, directories, partnerships, creator content and other third-party mentions. These signals can influence trust, branded search, referral traffic and how both people and search systems understand your business."},{q:"Where should a small brand start with this?",a:"Start with a simple brand search audit. Google your brand, reviews, Reddit mentions, alternatives and competitor comparisons. The
56n ask major AI tools what your company is known for. Look for gaps between what you want your brand to be known for and what customers actually find when they research you."}],"how-seo-makes-your-other-marketing-channels-stronger":[{q:"How does SEO help paid search?",a:"Organic data tells you which terms convert, what language people use and which landing pages hold attention. That makes ad copy sharper and wasted spend easier to spot, and strong organic pages give paid traffic a better place to land."},{q:"How does SEO support social and email?",a:"Search shows you the exact questions your audience is asking, which becomes better hooks, better posts and better newsletter subjects. One well researched topic can feed a blog post, a series of posts and an email."},{q:"Should SEO sit in a silo?",a:"No. When SEO is isolated it turns into a checklist of titles, tags and blogs. When it works alongside content, PR, paid and product it becomes connective tissue that improves the whole customer journey."},{q:"How do I prove SEO value when attribution is messy?",a:"Stop judging it as a last click channel. Look at assisted conversions, brand search growth, share of visibility on the topics that matter, and how many of your best converting pages are organic entry points."},{q:"Who should own SEO in a small team?",a:"Ideally someone close to content and website decisions, supported by a specialist. What matters most is that SEO input arrives before pages are built, not after they underperform."}],"why-wont-my-website-show-up-on-google-common-indexing-issues-how-to-fix-them":[{q:"Why is my website not showing up on Google?",a:"Most of the time it is a crawling or indexing issue rather than a ranking one. Common causes are weak internal linking, noindex tags left in place, blocked resources, duplicate URLs, thin pages and content that Google can see but does not consider worth storing."},{q:"What does crawled, currently not indexed actually mean?",a:"Google fetched the page and chose not to keep it. That is usually a quality, duplication or value signal, so the fix is a stronger, more distinct page with clear internal links pointing to it, not repeated submissions."},{q:"What does discovered, currently not indexed mean?",a:"Google knows the URL exists but has not crawled it yet, often because crawl priority is low or the site has a lot of low value URLs competing for attention. Better internal linking and a cleaner URL set usually help."},{q:"How long should indexing take?",a:"A well linked page on a healthy site can be indexed within days. Weeks with no movement means something is genuinely wrong, so check robots rules, canonicals, noindex tags and whether anything on the site links to the page at all."},{q:"Does submitting a URL in Search Console force indexing?",a:"No. Requesting indexing is a nudge, not a guarantee. If the underlying issue is duplication, thin content or poor internal linking, resubmitting the same URL will not change the outcome."}],"is-seo-dead-no-seo-is-more-important-than-ever":[{q:"Is SEO dead?",a:"No. What is dying is lazy SEO: chasing rankings for their own sake, publishing thirty posts because a keyword tool said so, and treating AI search as a separate panic project instead of part of the same visibility problem."},{q:"Has AI search replaced Google?",a:"Not remotely. It has added more places to be found. People search on Google, YouTube, TikTok, Reddit, LinkedIn, ChatGPT, marketplaces and review sites, often within the same buying decision."},{q:"Do keywords still matter?",a:"Understanding intent matters more than the exact phrase. You still need to know what people are asking and why, but the winning page answers the question properly rather than repeating a term a set number of times."},{q:"What does good SEO look like now?",a:"Clean, crawlable foundations, content that reflects real expertise, a brand people recognise and recommend, and visibility across the platforms where your audience actually makes decisions."}]},B2=()=>be(()=>import("./_layout.blog._slug-B_JHt_yy.js"),[]),$2=()=>be(()=>import("./_layout.blog._slug-CX9JitEq.js"),__vite__mapDeps([30,31,26,13,18,4,10,11,9,12,1,5,2,14,15,16,6,17,19,20,21,22,29,32])),H2=`${ja}/apple-touch-icon.png`,db=`${ja}/about#sarah`,G2="https://www.linkedin.com/in/sarah-fitzpatrick-abbb04ba/",V2=Ae()({loader:async({params:e})=>{const[{post:t},{posts:i}]=await Promise.all([u2({data:{slug:e.slug}}),_f()]);if(!t)throw yE();return{post:t,allPosts:i}},head:({loaderData:e})=>{const t=e?.post;if(!t)return{meta:[{title:"Post not found"}]};const i=t.meta_title?.trim()||t.title,r=t.meta_description?.trim()||t.excerpt,l=`${ja}/blog/${t.slug}`,c=t.cover_image_url||void 0,u=(t.body||"").replace(/<[^>]+>
56/g," ").split(/\s+/).filter(Boolean).length,h={"@context":"https://schema.org","@type":"BlogPosting",mainEntityOfPage:{"@type":"WebPage","@id":l},headline:t.title,description:r,...c?{image:[c]}:{},datePublished:t.published_at,dateModified:t.updated_at||t.published_at,author:{"@id":db},publisher:{"@id":`${ja}/#organization`},wordCount:u,articleSection:t.category,inLanguage:"en"},p={"@context":"https://schema.org","@type":"Person","@id":db,name:"Sarah Fitzpatrick",url:`${ja}/about`,image:H2,jobTitle:"Independent SEO & AI Search Consultant",description:"Independent SEO consultant with 10+ years of experience helping brands grow organic visibility across search and AI surfaces.",knowsAbout:["Search Engine Optimization","Technical SEO","International SEO","AI Search (GEO)","Content Strategy","SEO Migrations"],sameAs:[G2],worksFor:{"@type":"Organization",name:"Sarah Fitz SEO",url:ja}},m={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ja}/`},{"@type":"ListItem",position:2,name:"Blog",item:`${ja}/blog`},{"@type":"ListItem",position:3,name:t.title,item:l}]},y=q2[t.slug]??[],g=y.length?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:y.map(b=>({"@type":"Question",name:b.q,acceptedAnswer:{"@type":"Answer",text:b.a}}))}:null;return{meta:[{title:`${i} | Sarah Fitz SEO`},{name:"description",content:r},{property:"og:title",content:i},{property:"og:description",content:r},{property:"og:type",content:"article"},{property:"og:url",content:l},{property:"og:site_name",content:"Sarah Fitz SEO"},...c?[{property:"og:image",content:c},{property:"og:image:alt",content:`${t.title} cover image`},{name:"twitter:image",content:c}]:[],{name:"twitter:card",content:c?"summary_large_image":"summary"},{name:"twitter:title",content:i},{name:"twitter:description",content:r},{property:"article:published_time",content:t.published_at??""},{property:"article:modified_time",content:t.updated_at??t.published_at??""},{property:"article:author",content:"Sarah Fitzpatrick"},{property:"article:section",content:t.category}],links:[{rel:"canonical",href:l}],scripts:[{type:"application/ld+json",children:JSON.stringify(h)},{type:"application/ld+json",children:JSON.stringify(p)},{type:"application/ld+json",children:JSON.stringify(m)},...g?[{type:"application/ld+json",children:JSON.stringify(g)}]:[]]}},component:ve($2,"component"),notFoundComponent:ve(B2,"notFoundComponent")}),F2=()=>be(()=>import("./_layout.games.index-C8PV8jRZ.js"),__vite__mapDeps([33,4,17])),Ul="https://sarahfitzseo.com",Y2=Ae()({component:ve(F2,"component"),head:()=>({meta:[{title:"SEO Games | Free Interactive Games by Sarah Fitz SEO"},{name:"description",content:"Free SEO games: guide Googlebot around a retro Nokia screen, survive a website migration, test your AI search knowledge, or find out which Mormon Wife is your SEO strategy."},{property:"og:title",content:"Free SEO games by Sarah Fitz SEO"},{property:"og:description",content:"Play the Googlebot Crawl Challenge, the AI Visibility Arcade and the Mormon Wives SEO personality quiz."},{property:"og:type",content:"website"},{property:"og:url",content:`${Ul}/games`},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"Free SEO games by Sarah Fitz SEO"},{name:"twitter:description",content:"Play the Googlebot Crawl Challenge, the AI Visibility Arcade and the Mormon Wives SEO quiz."}],links:[{rel:"canonical",href:`${Ul}/games`}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:Ul},{"@type":"ListItem",position:2,name:"Games",item:`${Ul}/games`}]})}]})}),r3=ut({method:"POST"}).handler(wt("7e9d029a14840ddbd23ab861cc4460124d51798cb4d9b61bd983e5449c177994")),K2=ut({method:"GET"}).handler(wt("333e8814062535232668751c7f2c8a1fa887d5734fc0d7a5da93dad7fc358f09")),Q2=()=>({queryKey:["leaderboard","googlebot-crawl"],queryFn:()=>K2({data:{limit:50}})}),J2=()=>be(()=>import("./_layout.games.googlebot-crawl-challenge-Cd6qVF1b.js"),__vite__mapDeps([34,8,9,20,18,21,17])),fi="https://sarahfitzseo.com",Il="/games/googlebot-crawl-challenge",X2=Ae()({loader:({context:e})=>e.queryClient.ensureQueryData(Q2()),component:ve(J2,"component"),head:()=>({meta:[{title:"Googlebot Crawl Challenge | Premium SEO Arcade Game"},{name:"description",content:"Play the premium Googlebot Crawl Challenge. Eat sitemaps and helpful content, dodge noindex and orphan pages, then save your score to the SEO leaderboard."},{property:"og:title",content:"Googlebot Crawl Challenge: a premium arcade game for SEOs"},{property:"og:description",content:"Guide Googlebot through a retro LCD arcade
56cabinet. Collect the signals that get you indexed and dodge the ones that waste crawl budget. Free with a live leaderboard."},{property:"og:type",content:"website"},{property:"og:url",content:`${fi}${Il}`},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"Googlebot Crawl Challenge: a premium arcade game for SEOs"},{name:"twitter:description",content:"Guide Googlebot through a retro LCD arcade cabinet. Collect the signals that get you indexed and dodge the ones that waste crawl budget."}],links:[{rel:"canonical",href:`${fi}${Il}`}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"WebApplication",name:"Googlebot Crawl Challenge",applicationCategory:"GameApplication",operatingSystem:"Web browser",url:`${fi}${Il}`,description:"A premium retro arcade game where you play as Googlebot, collecting crawl friendly signals and avoiding crawl blockers.",publisher:{"@id":`${fi}/#organization`},offers:{"@type":"Offer",price:"0",priceCurrency:"EUR"}},{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:fi},{"@type":"ListItem",position:2,name:"Games",item:`${fi}/games`},{"@type":"ListItem",position:3,name:"Googlebot Crawl Challenge",item:`${fi}${Il}`}]}]})}]})}),W2=()=>({queryKey:["game-scores","migration_mayhem"],queryFn:()=>Ef({data:{gameSlug:"migration_mayhem",limit:20}})}),Z2=()=>be(()=>import("./_layout.games.migration-mayhem-DUJ4-5Xy.js"),__vite__mapDeps([35,8,9,20,22,12,1,21,17,4])),ks="https://sarahfitzseo.com",hh="/games/migration-mayhem",ej="Migration Mayhem: Free SEO Migration Arcade Game | Sarah Fitz SEO",fh="Can you survive a website migration without destroying your SEO? Play Migration Mayhem, a free arcade game teaching redirects, indexing and migration best practices.",tj=Ae()({loader:({context:e})=>e.queryClient.ensureQueryData(W2()),head:()=>({meta:[{title:ej},{name:"description",content:fh},{property:"og:title",content:"Migration Mayhem: can you launch a site without wrecking its SEO?"},{property:"og:description",content:fh},{property:"og:type",content:"website"},{property:"og:url",content:`${ks}${hh}`},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"Migration Mayhem: free SEO migration arcade game"},{name:"twitter:description",content:fh}],links:[{rel:"canonical",href:`${ks}${hh}`}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:ks},{"@type":"ListItem",position:2,name:"Games",item:`${ks}/games`},{"@type":"ListItem",position:3,name:"Migration Mayhem",item:`${ks}${hh}`}]})}]}),component:ve(Z2,"component")}),ph=["mayci","taylor","layla","mikayla","jessi","whitney","jen","miranda","chase"],Cw=[{id:"taylor",tiktokUrl:"https://www.tiktok.com/@taylorfrankiepaul/video/7678457087738793246",tiktokVideoId:"7678457087738793246",castName:"Taylor Frankie Paul",archetype:"The Demand Generator",instagramHandle:"@taylorfrankiepaul",instagramUrl:"https://www.instagram.com/taylorfrankiepaul/",resultCopy:'You got Taylor Frankie Paul, which means you do not really "build awareness". You cause an event and awareness simply happens around you. One post later Google Trends is vertical, Reddit has three megathreads, somebody in PR is asking if we have an approved statement and the rest of the marketing team is quietly wondering whether MomTok will survive this. Your strategy understands something genuinely important: people do not always start their journey on Google. A TikTok, headline, creator, podcast or wildly compelling bit of brand chaos can create the curiosity first. **Then comes the search.** That is your superpower. The slight issue is that attention without somewhere useful to land is basically a TikTok Live that should have ended twenty minutes ago. Make sure your branded SERP, website, reviews and AI visibility can actually capture all that demand you have created. In summary: elite top of funnel instincts, incredible branded search potential, potentially alarming governance.'},{id:"whitney",tiktokUrl:"https://www.tiktok.com/@whitneyleavitt/video/7660215010123058462",tiktokVideoId:"7660215010123058462",castName:"Whitney Leavitt",archetype:"The Visibility Machine",instagramHandle:"@whitleavitt",instagramUrl:"https://www.instagram.com/whitleavitt/",quote:"Good luck without me.",resultCopy:'You got Whitney Leavitt. "Good luck without me" is not merely a MomTok departure line, it is apparently how your organic strategy feels whenever anyone suggests reducing visibility. Quietly ranking position seven? Absolutely not. You want the impressions, the conversation, the comments, the discourse and ideally some form of choreographed content while it is happening. People are definitely looking at the brand. The awkward question is what they think once they get there. And that is your actual SEO lesson: **attention and affection are not the same KPI.** Huge share of voice is great, but brand sentiment, reviews, Reddit results, comparison content and what ChatGPT says when somebody asks "is this company actually good?" matter too. Visibility gets you invited to MomTok. Trust stops everyone holding an emergency meeting about whether you should still be in it. Do not become quieter. Just make sure all that attention is reinforcing the story you actually want people to believe.'},{id:"mayci",tiktokUrl:"https://www.tiktok.com/@maycineeley/video/7496639524068445482",tiktokVideoId:"7496639524068445482",castName:"Mayci Neeley",archetype:"The Strategist",instagramHandle:"@maycineeley",instagramUrl:"https://www.instagram.com/maycineeley/",resultCopy:'You got Mayci Neeley. Somewhere on your laptop is a spreadsheet called FINAL_final_v7_ACTUALLYFINAL.xlsx and, crucially, **you have screenshots**. Somebody says organic traffic is down and while everyone else starts drafting a LinkedIn post about Google killing SEO, you have already checked GSC, GA4, rankings, CTR, seasonality, competitors and approximately six pieces of supporting evidence. You are the person in the MomTok group chat quietly gathering context while everyone else sends four minute voice notes. This is excellent SEO behaviour because the answer to every problem is not "publish another 20 blogs". Sometimes demand changed. Sometimes rankings did not move at all. Sometimes conversion tanked. Sometimes somebody broke the canonical tags on Tuesday. **Evidence beats panic.** Your only risk
56is letting the investigation become its own ten episode season. Eventually the receipts have to become a decision. A perfect audit that nobody implements is just very expensive stationery.'},{id:"jessi",tiktokUrl:"https://www.tiktok.com/@_justjessiiii/video/7621571533001018655",tiktokVideoId:"7621571533001018655",castName:"Jessi Draper",archetype:"The PR Machine",instagramHandle:"@jessidraperr",instagramUrl:"https://www.instagram.com/jessidraperr/",resultCopy:"You got Jessi Draper, which means your marketing strategy has never knowingly experienced a quiet week. If people are not discussing the brand, you will find a podcast, collaboration, launch, salon chair, trip, opinion or spectacularly ill advised group dinner and fix that immediately. Your natural habitat is somewhere between JZ Styles and a piece of earned media that sends branded search through the roof. And underneath the chaos is a genuinely strong marketing instinct: **search demand and authority are often created away from your website.** PR coverage, creator mentions, podcasts, TikTok chatter and third party recommendations can make thousands of people Google you before an SEO touches a title tag. Your danger is assuming all conversation is useful conversation. Ten mentions mean very little if nobody understands what you are actually known for. Generate the buzz, babe. Just make sure Google, your customers and the AI bots can tell whether you are famous for your category or merely famous for the plot."},{id:"mikayla",tiktokUrl:"https://www.tiktok.com/@mikaylamatthews/video/7577229129267809567",tiktokVideoId:"7577229129267809567",castName:"Mikayla Matthews",archetype:"The Quiet Authority",instagramHandle:"@mikaylamatthews",instagramUrl:"https://www.instagram.com/mikaylamatthews/",resultCopy:'You got Mikayla Matthews. You are not the person publishing 47 AI generated blogs because somebody on LinkedIn said content velocity is the future. You are sitting quietly in the corner while everybody else argues, observing absolutely everything, and then saying one sentence that makes the entire room go, "...actually, she is right." Your SEO strategy works the same way. You would rather have six genuinely excellent pages with expertise, original insight and proof than 600 pages of beige internet porridge. And annoyingly for the content volume bros, **authority does not come from how loudly or frequently you publish. It comes from giving people and search systems a reason to trust what you are saying.** Think useful detail, first hand evidence, expert authorship and consistency. Your only danger is being so understated that Google forgets you are in MomTok. Quiet authority still needs discoverability. Build the internal links. Promote the bloody content. You are allowed to let people know you are good.'},{id:"layla",tiktokUrl:"https://www.tiktok.com/@laylaleannetaylor/video/7622084119446441229",tiktokVideoId:"7622084119446441229",castName:"Layla Taylor",archetype:"The Audience-First Marketer",instagramHandle:"@laylataylor",instagramUrl:"https://www.instagram.com/laylataylor/",resultCopy:'You got Layla Taylor, which means you can sit through a 42 slide content strategy and ask the devastating question everyone else avoided: **"But would anybody actually want this?"** You have very little interest in publishing something simply because a keyword tool produced a green number beside it. You care what people are watching, sharing, searching, sending to friends and discussing in the group chat, which is increasingly where genuinely good organic strategy begins. Search behaviour is not trapped inside Ahrefs. It lives in TikTok comments, Reddit threads, YouTube searches, communities and culture. Your audience instinct is excellent. Your only problem is that vibes are not a technical SEO strategy. Eventually the brilliant idea still needs a crawlable URL, search intent, internal links and a conversion path. Think audience first, keyword tool second, technical implementation before everybody goes home for dirty sodas. You understand the people. Just make sure Google can understand the page too.'},{id:"miranda",tiktokUrl:"https://www.tiktok.com/@miranda__hope/video/7598992919109831967",tiktokVideoId:"7598992919109831967",castName:"Miranda Hope",archetype:"The Rebrand",instagramHandle:"@miranda__hope",instagramUrl:"https://www.instagram.com/miranda__hope/",resultCopy:"You got Miranda Hope. Congratulations, you are in y
56our **new era**, but unfortunately page one of Google is still recapping season one. Your website says one thing, TikTok knows you have moved on, your current audience understands the assignment and yet search is standing in the middle like a producer who somehow missed three episodes. This is the reality of repositioning a brand. You can launch a beautiful new homepage tomorrow, but **you have not really changed your search narrative until the wider web catches up.** That means new content, consistent positioning, updated profiles, expert signals, PR, links, reviews and third party mentions all reinforcing who the brand is now. You cannot simply delete the old storyline from existence because it no longer matches the vision board. But you can create enough fresh, credible evidence that it stops defining you. Your rebrand is complete when Google, AI search and your customers stop introducing you with the plot from two seasons ago."},{id:"jen",tiktokUrl:"https://www.tiktok.com/@jenniferaffleckk/video/7523405719631072567",tiktokVideoId:"7523405719631072567",castName:"Jen Affleck",archetype:"The Brand Guardian",instagramHandle:"@jenaffleck",instagramUrl:"https://www.instagram.com/jenaffleck/",resultCopy:'You got Jen Affleck. Your brand guidelines have brand guidelines. The homepage is beautiful, the messaging has been approved and somewhere in your body you experience a physical response whenever somebody begins a sentence with "So I saw this Reddit thread...". You care deeply about consistency and reputation, which is actually extremely useful in modern SEO. A brand should not have one personality on its website, another on LinkedIn and a completely different identity when ChatGPT describes it. But there is a very MomTok lesson waiting for you here: **owned messaging is not the same thing as reputation.** You can have the most polished homepage in Utah and still lose the customer if reviews, TikTok, Reddit or third party results tell a completely different story. The solution is not controlling every conversation. It is creating enough genuine proof that your positioning survives when you are not in the room to approve the copy. Protect the brand, absolutely. Just remember your customers have Wi-Fi.'},{id:"chase",tiktokUrl:"https://www.tiktok.com/@dchasemac/video/7621586210779139358",tiktokVideoId:"7621586210779139358",castName:"Chase McWhorter",archetype:"The Unexpected Traffic Source",instagramHandle:"@chasemcwhorter",instagramUrl:"https://www.instagram.com/chasemcwhorter/",resultCopy:'You got Chase McWhorter. Nobody put you in the original marketing plan and yet somehow you are now central to the entire conversation. You are the mysterious referral source in GA4 that begins with 14 sessions on Tuesday, becomes a branded search spike by Thursday and has its own Slack channel by Friday afternoon. Your entire marketing energy is **"this was supposed to be a side plot."** And that is exactly why you are useful. Audiences frequently decide what matters before marketing teams do. A weird Reddit thread, creator mention, unexpected landing page or piece of social content can suddenly start generating qualified demand even though it appears nowhere in the Q3 roadmap. **Good SEO teams investigate the data instead of worshipping the plan.** If something unexpected is working, find out why before dismissing it. The internet loves a breakout character. Your job is turning the accidental traffic source into something repeatable before MomTok moves on to the next storyline.'}],hb=Cw.reduce((e,t)=>(e[t.id]=t,e),{}),mh=[{id:"q1",question:"Your organic traffic suddenly drops. What happens first?",options:[{id:"a",label:"Open GSC, GA4 and the rankings. Nobody panic until we know what actually changed.",weights:{mayci:2,mikayla:1}},{id:"b",label:"Turn it into content. If people are talking, I want in.",weights:{taylor:2,jessi:1}},{id:"c",label:"Check what customers, Reddit and social are saying before touching the website.",weights:{layla:2,jen:1}},{id:"d",label:'Start drafting a LinkedIn post called "Google has personally betrayed me" before opening Search Console.',weights:{whitney:2,taylor:1}}]},{id:"q2",question:"A competitor suddenly goes viral. Your move?",options:[{id:"a",label:"Work out what demand they have created and build a plan to capture it.",weights:{mayci:2,taylor:1}},{id:"b",label:"Create a completely avoidable subplot so nobody remembers their campaign existed in the first place.",weights:{taylor:2,jessi:1}},{id:"c",label:"Analyse why the audience cared in the first place.",weights:{layla:2,mayci:1}},{id:"d",label:"Ignore the noise and strengthen the expertise we actually want to own.",weights:{mikayla:2,jen:1}}]},{id:"q3",question:"ChatGPT describes your brand completely wrong. You...",options:[{id:"a",label:"Ask ChatGPT who told it that, open 17 tabs and begin assembling a folder simply titled RECEIPTS.",weights:{mayci:2,jen:1}},{id:"b",label:"Create stronger expert content and third party proof.",weights:{mikayla:2,jessi:1}},{id:"c",label:"Launch content that makes the brand positioning impossible to misunderstand.",weights:{miranda:2,jen:1}},{id:"d",label:"Audit the sources and entity signals feeding the answer, then fix them one by one.",weights:{whitney:1,chase:1,mayci:1}}]},{id:"q4",question:"Your content strategy is most likely to involve...",options:[{id:"a",label:"A frighteningly organised spreadsheet.",weights:{mayci:2,jen:1}},{id:"b",label:"Whatever your audience cannot stop talking about this week.",weights:{layla:2,miranda:1}},{id:"c",label:"No calendar. Just a ring light, an intrusive thought and complete faith that MomTok will survive this.",weights:{chase:2,taylor:1}},{id:"d",label:"PR, conversations, collaborations and being mentioned everywhere.",weights:{jessi:2,whitney:1}}]},{id:"q5",question:"Page one for your brand contains an old narrative you have moved on from. What now?",options:[{id:"a",label:"Build enough new evidence and content to establish the new positioning.",weights:{miranda:2,mikayla:1}},{id:"b",label:"Focus on reviews, reputation and consistency across owned profiles.",weights:{jen:2,mayci:1}},{id:"c",label:"Rebrand so aggressively that page one needs its own reunion episode to understand what happened.",weights:{miranda:3}},{id:"d",label:"Somehow turn the entire situation into another traffic source.",weights:{chase:2,jessi:1}}]},{id:"q6",question:"Which metric are you defending in the marketing meeting?",options:[{id:"a",label:"Branded search demand.",weights:{taylor:2,miranda:1}},{id:"b",label:"Share of voice and quality mentions.",weights:{jessi:2,whitney:1}},{id:"c",label:"Assisted conversions and audience behaviour.",weights:{layla:2,chase:1}},{id:"d",label:"Screenshots. I brought screenshots. Nobody asked for them, but they are timestamped.",weights:{mayci:2}}]},{id:"q7",question:"Your best performing article was never in the original content plan. You...",options:[{id:"a",label:"Find out why it worked and turn the insight into a repeatable strategy.",weights:{mayci:2,chase:1}},{id:"b",label:"Publish five sequels, launch a podcast about it and call it a new content pillar before lunch.",weights:{jessi:2,whitney:1}},{id:"c",label:"Listen to what the audience is telling you and change the roadmap.",weights:{layla:2,miranda:1}},{id:"d",label:"Quietly strengthen it and build authority around the topic.",weights:{mikayla:2,jen:1}}]},{id:"q8",question:"Someone criticises your brand on Reddit. What is your instinct?",options:[{id:"a",label:"Investigate whether they have a point before doing anything.",weights:{mikayla:2,mayci:1}},{id:"b",label:'Read all 486 comments, say "I literally do not care", then reference comment 317 at dinner six weeks later.',weights:{whitney:2,jen:1}},{id:"c",label:"Create more conversations elsewhere so one thread does not define the narrative.",weights:{jessi:2,taylor:1}}
56,{id:"d",label:"Reassess whether the brand people are discussing is actually the brand we are today.",weights:{miranda:2,chase:1}}]},{id:"q9",question:"Your marketing strategy in one sentence?",options:[{id:"a",label:"Make people care, then make sure we are there when they search.",weights:{taylor:2,whitney:1}},{id:"b",label:"Understand the audience better than everybody else.",weights:{layla:2,mayci:1}},{id:"c",label:"Build credibility until choosing us feels obvious.",weights:{mikayla:2,jen:1}},{id:"d",label:"Will MomTok survive this? Unknown. Will branded search survive what I am about to do? Also unclear.",weights:{taylor:2,chase:1}}]}];function s3(e){const t={},i={};for(const u of Cw)t[u.id]=0,i[u.id]=0;const r=mh[mh.length-1];let l={};for(const u of mh){const h=u.options.find(p=>p.id===e[u.id]);if(h){u.id===r.id&&(l=h.weights);for(const[p,m]of Object.entries(h.weights))t[p]+=m,m>=2&&(i[p]+=1)}}return[...ph].sort((u,h)=>{if(t[h]!==t[u])return t[h]-t[u];if(i[h]!==i[u])return i[h]-i[u];const p=l[u]??0,m=l[h]??0;return m!==p?m-p:ph.indexOf(u)-ph.indexOf(h)})[0]}const nj="https://sarahfitzseo.com/games/which-mormon-wife-is-your-seo-strategy";function o3(e){return`${nj}?result=${e}`}const aj=()=>be(()=>import("./_layout.games.which-mormon-wife-is-your-seo-strategy-BJwfYDq8.
56js"),__vite__mapDeps([36,32,19,15,21,1])),oc="https://sarahfitzseo.com",Pl=`${oc}/games/which-mormon-wife-is-your-seo-strategy`,ij="Which Mormon Wife Is Your SEO Strategy? | SEO Quiz",rj="Take the Mormon Wives SEO quiz and find out which MomTok personality matches your SEO, content and marketing strategy.",fb=`${oc}/social-card-mormon-wives-quiz.jpg`,sj=Ae()({validateSearch:e=>({result:typeof e.result=="string"&&e.result in hb?e.result:void 0}),loaderDeps:({search:e})=>({result:e.result}),loader:({deps:e})=>({result:e.result??null}),head:({loaderData:e})=>{const t=e?.result?hb[e.result]:null,i=t?`I got ${t.castName}, ${t.archetype}. Which Mormon Wife Is Your SEO Strategy?`:ij,r=t?`My SEO strategy is ${t.castName}, ${t.archetype}. Take the quiz and find out which MomTok personality is running yours.`:rj,l=t?`${Pl}?result=${t.id}`:Pl;return{meta:[{title:i},{name:"description",content:r},{property:"og:title",content:i},{property:"og:description",content:r},{property:"og:type",content:"website"},{property:"og:url",content:l},{property:"og:image",content:fb},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:i},{name:"twitter:description",content:r},{name:"twitter:image",content:fb}],links:[{rel:"canonical",href:Pl}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:oc},{"@type":"ListItem",position:2,name:"Games",item:`${oc}/games`},{"@type":"ListItem",position:3,name:"Which Mormon Wife Is Your SEO Strategy?",item:Pl}]})}]}},component:ve(aj,"component")});const jw=(...e)=>e.filter((t,i,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===i).join(" ").trim();const oj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const lj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,r)=>r?r.toUpperCase():i.toLowerCase());const pb=e=>{const t=lj(e);return t.charAt(0).toUpperCase()+t.slice(1)};var cj={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"};const uj=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const dj=ee.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:l="",children:c,iconNode:u,...h},p)=>ee.createElement("svg",{ref:p,...cj,width:t,height:t,stroke:e,strokeWidth:r?Number(i)*24/Number(t):i,className:jw("lucide",l),...!c&&!uj(h)&&{"aria-hidden":"true"},...h},[...u.map(([m,y])=>ee.createElement(m,y)),...Array.isArray(c)?c:[c]]));const Ye=(e,t)=>{const i=ee.forwardRef(({className:r,...l},c)=>ee.createElement(dj,{ref:c,iconNode:t,className:jw(`lucide-${oj(pb(e))}`,`lucide-${e}`,r),...l}));return i.displayName=pb(e),i};const hj=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ql=Ye("arrow-right",hj);const fj=[["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"}]],mb=Ye("calendar",fj);const pj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],mj=Ye("check",pj);const gj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],gh=Ye("chevron-down",gj);const yj=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vj=Ye("chevron-right",yj);const bj=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],wj=Ye("coffee",bj);const Sj=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],_j=Ye("file-text",Sj);const Ej=[["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"}]],Tj=Ye("globe",Ej);const Oj=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Aj=Ye("graduation-cap",Oj);const kj=[["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"}]],xj=Ye("linkedin",kj);const Rj=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Nw=Ye("mail",Rj);const Cj=[["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"}]],Lw=Ye("map-pin",Cj);const jj=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Nj=Ye("menu",jj);const Lj=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Dj=Ye("pen-line",Lj);const Mj=[["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"}]],zj=Ye("quote",Mj);const Uj=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],Ij=Ye("repeat",Uj);const Pj=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],qj=Ye("search",Pj);const Bj=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],$j=Ye("share-2",Bj);const Hj=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7
56a2 2 0 0 0-1.6.8z",key:"o988cm"}]],Gj=Ye("shopping-bag",Hj);const Vj=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Fj=Ye("sparkles",Vj);const Yj=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Kj=Ye("wrench",Yj);const Qj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Jj=Ye("x",Qj);const Xj=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Wj=Ye("youtube",Xj),Zj=[{to:"/services/seo-audit",title:"SEO Strategy & Audits",blurb:"Where you stand, what is holding growth back and what to do first. Technical, content and competitor analysis, prioritised by impact.",icon:qj},{to:"/services/technical-seo",title:"Technical SEO & Migrations",blurb:"Crawling, indexation, architecture, Core Web Vitals and structured data, plus replatforms and redesigns that keep what you have earned.",icon:Kj},{to:"/services/ecommerce-seo",title:"Ecommerce SEO & Organic Growth",blurb:"Category and product discoverability, faceted navigation and content built around organic revenue, not rankings alone.",icon:Gj},{to:"/services/content-strategy",title:"Content Strategy",blurb
56:"Topic clusters, briefs and editorial systems that compound month after month.",icon:_j},{to:"/services/ai-search-geo",title:"AI Search / GEO",blurb:"Get found and cited by ChatGPT, Perplexity and AI Overviews with a measured GEO strategy.",icon:Fj}],eN=[{to:"/services/seo-migration",title:"SEO Migration",blurb:"Replatform, redesign or domain change without losing the rankings you've earned.",icon:Ij},{to:"/services/international-seo",title:"International SEO",blurb:"Hreflang, geotargeting and multi-market strategy for brands scaling across regions.",icon:Tj},{to:"/services/local-seo",title:"Local SEO",blurb:"Google Business Profile, local pack rankings, reviews and location pages that convert nearby searchers.",icon:Lw},{to:"/services/editorial-seo-copywriting",title:"Editorial SEO & Copywriting",blurb:"Journalism-led landing pages, pillar content and AI-search-ready articles.",icon:Dj},{to:"/services/organic-social",title:"Organic Social",blurb:"Social discovery that compounds with SEO and AI search, not vanity metrics.",icon:$j},{to:"/services/youtube-seo",title:"YouTube SEO",blurb:"Rank your videos, fix channel cannibalisation and turn YouTube into a search-driven discovery channel.",icon:Wj},{to:"/services/seo-mentoring",title:"SEO Mentoring",blurb:"1:1 SEO mentoring and training for beginners, website owners, in-house marketers and senior SEOs.",icon:Aj}],tN=()=>be(()=>import("./_layout.services.index-CUS-EhXF.js"),[]),nN=[...Zj,...eN],aN=Ae()({head:()=>({meta:[{title:"SEO Consultant | One Off Projects & Retainers | Sarah Fitz"},{name:"description",content:"Freelance SEO consultant offering scoped one off SEO projects and flexible retainers. Audits, technical SEO, AI search, migrations and content strategy, shaped to your needs."},{property:"og:title",content:"SEO Consultant | One Off Projects & Retainers | Sarah Fitz"},{property:"og:description",content:"Freelance SEO consultant offering scoped one off SEO projects and flexible retainers. Audits, technical SEO, AI search, migrations and content strategy, shaped to your needs."},{property:"og:url",content:"https://sarahfitzseo.com/services"},{property:"og:type",content:"website"}],links:[{rel:"canonical",href:"https://sarahfitzseo.com/services"}],scripts:[Rr([{name:"Services",path:"/services"}]),{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Service",serviceType:"SEO and AI Search Consulting",provider:{"@id":"https://sarahfitzseo.com/#organization"},areaServed:"Worldwide",description:"Scoped one off SEO projects and flexible retainers covering audits, technical SEO, AI search, migrations, content strategy and mentoring. Shaped to the client's needs.",hasOfferCatalog:{"@type":"OfferCatalog",name:"One off SEO projects",itemListElement:nN.map(e=>({"@type":"Offer",itemOffered:{"@type":"Service",name:e.title,description:e.blurb,url:`https://sarahfitzseo.com${e.to}`}}))}})}]}),component:ve(tN,"component")}),iN=[{q:"What is GEO?",a:"Generative Engine Optimisation. It's the work of getting your content cited by AI search engines like ChatGPT, Perplexity, Google AI Overviews and Claude. It overlaps with traditional SEO, but the signals, formats and measurement are different."},{q:"Is this just SEO with a new name?",a:"No. Traditional SEO optimises for ranking in a list of 10 blue links. GEO optimises for being the source an LLM cites in a synthesised answer. That changes content structure, schema priorities, entity strategy and how you measure success."},{q:"How do you measure AI search visibility?",a:"A mix of prompt-tracking tools, manual sampling of priority queries across ChatGPT/Perplexity/AI Overviews, and brand-mention monitoring. I set up baseline measurement before any optimisation so we can prove what moved."},{q:"Is it too early to invest in this?",a:"AI search referrals are still small but growing fast, and the brands earning citations now are building a moat. Early movers tend to compound visibility before competitors notice."}];function on({children:e,className:t="",id:i}){return T.jsx("section",{id:i,className:`mx-auto max-w-7xl px-6 py-20 md:py-28 ${t}`,children:e})}function Ca({children:e}){return T.jsx("span",{className:"inline-block rounded-full bg-accent/40 px-3 py-1 text-xs font-semibold uppercase tracking-wider text-primary",children:e})}const rN="/assets/lettermark-dark-BSzUr3SS.png",sN="/assets/lettermark-peach-DZQk3ohY.png",gb="sf_consent";function oN(){const[e,t]=ee.useState(!1),i=ee.useRef(null);ee.useEffect(()=>{try{window.localStorage.getItem(gb)||t(!0)}catch{}},[]),ee.useEffect(()=>{if(!e)return;const l=document.body.style.overflow;document.body.style.overflow="hidden";const c=window.setTimeout(()=>
56i.current?.focus(),0);return()=>{document.body.style.overflow=l,window.clearTimeout(c)}},[e]);const r=l=>{try{window.localStorage.setItem(gb,l?"granted":"denied")}catch{}window.gtag?.("consent","update",{analytics_storage:l?"granted":"denied"}),t(!1)};return e?T.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":"consent-title","aria-describedby":"consent-desc",className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm animate-in fade-in duration-200",children:T.jsxs("div",{className:"w-full max-w-md rounded-2xl bg-primary p-6 text-primary-foreground shadow-2xl md:p-7 animate-in zoom-in-95 duration-200",children:[T.jsx("h2",{id:"consent-title",className:"text-xl font-semibold",children:"Help improve this site"}),T.jsx("p",{id:"consent-desc",className:"mt-2 text-sm leading-relaxed text-primary-foreground/85",children:"We use anonymous analytics cookies to see what's working. No ads, no third-party sharing, just a better experience for you."}),T.jsxs("div",{className:"mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",children:[T.jsx("button",{type:"button",onClick:()=>r(!1),className:"rounded-full px-5 py-2.5 text-sm font-medium text-primary-foreground/80 transition hover:bg-primary-foreground/10",children:"Decline"}),T.jsx("button",{ref:i,type:"button",onClick:()=>r(!0),className:"rounded-full bg-coral px-6 py-2.5 text-base font-semibold text-primary-foreground shadow-lg shadow-coral/30 transition hover:bg-coral/90 focus:outline-none focus:ring-2 focus:ring-coral focus:ring-offset-2 focus:ring-offset-primary",children:"Accept"})]}),T.jsx("p",{className:"mt-4 text-xs text-primary-foreground/60 text-center sm:text-right",children:"You can change this anytime."})]})}):null}function vi(e,t){typeof window>"u"||window.gtag?.("event",e,t??{})}const l3={swipeGameStart:"swipe_game_start",swipeGameComplete:"swipe_game_complete",swipeGameCtaClick:"swipe_game_cta_click",swipeGameShare:"swipe_game_share",swipeGameLinkedinShare:"linkedin_share_click",swipeGameLeaderboardView:"swipe_game_leaderboard_view",swipeGameLifeLost:"swipe_game_life_lost",swipeGameTimeout:"swipe_game_timeout",mormonQuizStart:"mormon_quiz_start",mormonQuizQuestionAnswered:"mormon_quiz_question_answered",mormonQuizComplete:"mormon_quiz_complete",mormonQuizResult:"mormon_quiz_result",mormonQuizShare:"mormon_quiz_share"},yh=[{to:"/",label:"Home"},{to:"/about",label:"About"},{to:"/services",label:"Services"},{to:"/portfolio",label:"Portfolio"},{to:"/blog",label:"Blog"},{to:"/games",label:"SEO Games"},{to:"/contact",label:"Contact"}],yb=[{to:"/services/seo-audit",label:"SEO Strategy & Audits"},{to:"/services/technical-seo",label:"Technical SEO"},{to:"/services/ecommerce-seo",label:"Ecommerce SEO"},{to:"/services/content-strategy",label:"Content Strategy"},{to:"/services/ai-search-geo",label:"AI Search / GEO"},{to:"/services/seo-migration",label:"SEO Migration"},{to:"/services/international-seo",label:"International SEO"},{to:"/services/local-seo",label:"Local SEO"},{to:"/services/editorial-seo-copywriting",label:"Editorial SEO & Copywriting"},{to:"/services/organic-social",label:"Organic Social"},{to:"/services/youtube-seo",label:"YouTube SEO"}],vb="[email protected]",lN="https://www.linkedin.com/in/sarah-fitzpatrick-abbb04ba/",Sr="https://calendly.com/sarahfitzseo/30min",cN="https://buymeacoffee.com/sarahfitz";function c3(){const[e,t]=ee.useState(!1),[i,r]=ee.useState(!1),[l,c]=ee.useState(!1),u=wk();return ee.useEffect(()=>{t(!1)},[u.pathname,u.hash]),ee.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),T.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[T.jsxs("header",{className:"sticky top-0 z-50 border-b border-border/60 bg-background/85 backdrop-blur",children:[T.jsxs("div",{className:"mx-auto flex h-16 max-w-7xl items-center justify-between px-6",children:[T.jsxs(Ve,{to:"/","aria-label":"Sarah Fitz, home",className:"flex items-center gap-2.5",children:[T.jsx("img",{src:rN,alt:"Sarah Fitz SEO lettermark",className:"h-9 w-9"}),T.jsxs("span",{className:"font-display text-xl font-semibold text-primary",children:["Sarah Fitz ",T.jsx("span",{className:"text-coral",children:"SEO."})]})]}),T.jsx("nav",{className:"hidden items-center gap-8 md:flex",children:yh.map(h=>h.to==="/services"?T.jsxs("div",{className:"group relative",children:[T.jsxs(Ve,{to:h.to,activeProps:{className:"text-primary"},inactiveProps:{className:"text-muted-foreground group-hover:text-primary"},className:"inline-flex items-center gap-1 text-sm font-medium transition-colors",children:[h.label,T.jsx(gh,{className:"h-3.5 w-3.5 transition-transform group-hover:rotate-180"})]}),T.jsx("div",{className:"invisible absolute left-1/2 top-full z-50 w-64 -translate-x-1/2 pt-3 opacity-0 transition-opacity duration-150 group-hover:visible group-hover:opacity-100 group-focus-within:visible group-focus-within:opacity-100",children:T.jsxs("div",{className:"overflow-visible rounded-2xl border border-border bg-background shadow-lg",children:[T.jsxs("div",{className:"group/projects relative",children:[T.jsxs(Ve,{to:"/services",hash:"projects",className:"flex items-center justify-between gap-2 px-4 py-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent/40 hover:text-primary",children:["One Off Projects",T.jsx(vj,{className:"h-4 w-4"})]}),T.jsx("div",{className:"invisible absolute left-full top-0 z-50 w-64 pl-2 opacity-0 transition-opacity duration-150 group-hover/projects:visible group-hover/projects:opacity-100 group-focus-within/projects:visible group-focus-within/projects:opacity-100",children:T.jsx("div",{className:"overflow-hidden rounded-2xl border border-border bg-background shadow-lg",children:yb.map(p=>T.jsx(Ve,{to:p.to,className:"block px-4 py-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent/40 hover:text-primary",children:p.label},p.to))})})]}),T.jsx(Ve,{to:"/services",hash:"rates",className:"block px-4 py-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent/40 hover:text-primary",children:"Day Rates & Retainers"}),T.jsx(Ve,{to:"/services/seo-mentoring",className:"block px-4 py-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent/40 hover:text-primary",children:"SEO Mentoring"})]})})]},h.to):T.jsx(Ve,{to:h.to,activeOptions:{exact:h.to==="/"},activeProps:{className:"text-primary"},inactiveProps:{className:"text-muted-foreground hover:text-primary"},className:"text-sm font-medium transition-colors",children:h.label},h.to))}),T.jsx("a",{href:Sr,target:"_blank",rel:"noreferrer",onClick:()=>vi("book_a_call_click",{location:"header"}),className:"hidden rounded-full bg-primary px-5 py-2 text-sm font-semibold text-primary-foreground transition hover:bg-primary/90 md:inline-block",children:"Book A Call"}),T.jsx("button",{type:"button",onClick:()=>t(h=>!h),"aria-label":e?"Close menu":"Open menu","aria-expanded":e,className:"-mr-2 flex h-11 w-11 items-center justify-center rounded-full text-primary md:hidden",children:e?T.jsx(Jj,{className:"h-6 w-6"}):T.jsx(Nj,{className:"h-6 w-6"})})]}),e&&T.jsx("div",{className:"md:hidden",children:T.jsx("div",{className:"max-h-[calc(100vh-4rem)] overflow-y-auto border-t border-border/60 bg-background px-6 py-4",children:T.jsxs("nav",{className:"flex flex-col",children:[yh.map(h=>h.to==="/services"?T.jsxs("div",{className:"border-b border-border/60",children:[T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx(Ve,{to:"/services",onClick:()=>t(!1),className:"flex-1 py-4 text-base font-medium text-primary",children:"Services"}),T.jsx("button",{type:"button",onClick:()=>r(p=>!p),"aria-expanded":i,"aria-label":"Toggle services submenu",className:"flex h-11 w-11 items-center justify-center text-primary",children:T.jsx(gh,{className:`h-5 w-5 transition-transform ${i?"rotate-180":""}`})})]}),i&&T.jsxs("div",{className:"pb-3 pl-3",children:[T.jsxs("div",{className:"border-l-2 border-accent/60 pl-3",children:[T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx(Ve,{to:"/services",hash:"projects",onClick:()=>t(!1),className:"block flex-1 py-3 text-sm font-medium text-muted-foreground",children:"One Off Projects"}),T.jsx("button",{type:"button",onClick:()=>c(p=>!p),"aria-expanded":l,"aria-label":"Toggle project list",className:"flex h-11 w-11 items-center justify-center text-muted-foreground",children:T.jsx(gh,{className:`h-4 w-4 transition-transform ${l?"rotate-180":""}`})})]}),l&&T.jsx("div",{className:"border-l-2 border-accent/40 pl-3",children:yb.map(p=>T.jsx(Ve,{to:p.to,onClick:()=>t(!1),className:"block py-2.5 text-sm text-muted-foreground",children:p.label},p.to))})]}),T.jsx("div",{className:"border-l-2 border-accent/60 pl-3",children:T.jsx(Ve,{to:"/services",hash:"rates",onClick:()=>t(!1),className:"block py-3 text-sm font-medium text-muted-foreground",children:"Day Rates & Retainers"})}),T.jsx("div",{className:"border-l-2 border-accent/60 pl-3",children:T.jsx(Ve,{to:"/services/seo-mentoring",onClick:()=>t(!1),className:"block py-3 text-sm font-medium text-muted-foreground",children:"SEO Mentoring"})})]})]},h.to):T.jsx(Ve,{to:h.to,onClick:()=>t(!1),activeOptions:{exact:h.to==="/"},activeProps:{className:"text-primary"},inactiveProps:{className:"text-primary"},className:"border-b border-border/60 py-4 text-base font-medium",children:h.label},h.to)),T.jsx("a",{href:Sr,target:"_blank",rel:"noreferrer",onClick:()=>{vi("book_a_call_click",{location:"mobile_nav"}),t(!1)},className:"mt-5 inline-flex items-center justify-center rounded-full bg-primary px-5 py-3 text-sm font-semibold text-primary-foreground",children:"Book A Call"})]})})})]}),T.jsx("main",{className:"flex-1",children:T.jsx(yf,{})}),T.jsxs("footer",{className:"border-t border-border/60 bg-primary text-primary-foreground",children:[T.jsxs("div",{className:"mx-auto grid max-w-7xl gap-10 px-6 py-14 md:grid-cols-4",children:[T.jsxs("div",{className:"md:col-span-2",children:[T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsx("img",{src:sN,alt:"Sarah Fitz SEO lettermark",className:"h-10 w-10"}),T.jsxs("div",{className:"font-display text-2xl font-semibold",children:["Sarah Fitz ",T.jsx("span",{className:"text-coral",children:"SEO."})]})]}),T.jsx("p",{className:"mt-3 max-w-sm text-sm text-primary-foreground
56/70",children:"Senior SEO & AI Search consultant helping ambitious brands turn organic search into a revenue channel."}),T.jsxs("div",{className:"mt-5 flex flex-wrap gap-3",children:[T.jsx(vh,{href:lN,label:"LinkedIn",event:"linkedin_click",location:"footer",children:T.jsx(xj,{className:"h-4 w-4"})}),T.jsx(vh,{href:Sr,label:"Calendly",event:"book_a_call_click",location:"footer_social",children:T.jsx(mb,{className:"h-4 w-4"})}),T.jsx(vh,{href:cN,label:"Buy me a coffee",event:"bmc_click",location:"footer",children:T.jsx(wj,{className:"h-4 w-4"})})]})]}),T.jsxs("div",{children:[T.jsx("h4",{className:"mb-3 text-sm font-semibold text-primary-foreground",children:"Explore"}),T.jsx("ul",{className:"space-y-2 text-sm text-primary-foreground/70",children:yh.map(h=>T.jsx("li",{children:T.jsx(Ve,{to:h.to,className:"hover:text-accent",children:h.label})},h.to))}),T.jsx("h4",{className:"mb-3 mt-6 text-sm font-semibold text-primary-foreground",children:"Tools"}),T.jsxs("ul",{className:"space-y-2 text-sm text-primary-foreground/70",children:[T.jsx("li",{children:T.jsx(Ve,{to:"/tools/why-wont-my-page-index",className:"hover:text-accent",children:"Why won't my page index?"})}),T.jsx("li",{children:T.jsx(Ve,{to:"/games/googlebot-crawl-challenge",className:"hover:text-accent",children:"Googlebot Crawl Challenge"})}),T.jsx("li",{children:T.jsx(Ve,{to:"/ai-visibility-leaderboard",className:"hover:text-accent",children:"AI Visibility Arcade"})})]})]}),T.jsxs("div",{children:[T.jsx("h4",{className:"mb-3 text-sm font-semibold text-primary-foreground",children:"Contact"}),T.jsxs("ul",{className:"space-y-2 text-sm text-primary-foreground/70",children:[T.jsxs("li",{className:"flex items-center gap-2",children:[T.jsx(Nw,{className:"h-4 w-4"}),T.jsx("a",{href:`mailto:${vb}`,onClick:()=>vi("email_click",{location:"footer"}),className:"hover:text-accent",children:vb})]}),T.jsxs("li",{className:"flex items-center gap-2",children:[T.jsx(Lw,{className:"h-4 w-4"}),T.jsx("span",{children:"Ireland, working globally"})]}),T.jsxs("li",{className:"flex items-center gap-2",children:[T.jsx(mb,{className:"h-4 w-4"}),T.jsx("a",{href:Sr,target:"_blank",rel:"noreferrer",onClick:()=>vi("book_a_call_click",{location:"footer_link"}),className:"hover:text-accent",children:"Book A Call"})]})]})]})]}),T.jsx("div",{className:"border-t border-primary-foreground/10",children:T.jsxs("div",{className:"mx-auto flex max-w-7xl flex-col items-center justify-between gap-2 px-6 py-5 text-xs text-primary-foreground/60 md:flex-row",children:[T.jsxs("p",{children:["© ",new Date().getFullYear()," Sarah Fitzpatrick. All rights reserved."]}),T.jsxs("div",{className:"flex items-center gap-4",children:[T.jsx(Ve,{to:"/privacy",className:"hover:text-accent",children:"Privacy Policy"}),T.jsx("span",{children:"Organic growth made easy."})]})]})})]}),T.jsx(oN,{})]})}function vh({href:e,label:t,event:i,location:r,children:l}){return T.jsx("a",{href:e,target:"_blank",rel:"noreferrer","aria-label":t,onClick:()=>vi(i,{location:r}),className:"flex h-9 w-9 items-center justify-center rounded-full border border-primary-foreground/20 text-primary-foreground/80 transition hover:border-accent hover:text-accent",children:l})}function u3({eyebrow:e,title:t,intro:i,whyMatters:r,includes:l,process:c,caseStudy:u,faqs:h,Icon:p,testimonial:m,relatedPortfolio:y,relatedServices:g,afterWhyMatters:b}){return T.jsxs(T.Fragment,{children:[T.jsx(on,{children:T.jsxs("div",{className:"grid gap-12 md:grid-cols-12 md:items-end",children:[T.jsxs("div",{className:"md:col-span-8",children:[T.jsx(Ca,{children:e}),T.jsx("h1",{className:"mt-4 font-display text-5xl text-primary md:text-6xl",children:t}),T.jsx("p",{className:"mt-6 max-w-2xl text-lg text-muted-foreground",children:i}),T.jsxs("div",{className:"mt-8 flex flex-wrap gap-3",children:[T.jsxs("a",{href:Sr,target:"_blank",rel:"noreferrer",onClick:()=>vi("book_a_call_click",{location:"service_hero"}),className:"inline-flex items-center gap-2 rounded-full bg-primary px-6 py-3 text-sm font-semibold text-primary-foreground hover:bg-primary/90",children:["Book A Call",T.jsx(ql,{className:"h-4 w-4"})]}),T.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 rounded-full border border-primary px-6 py-3 text-sm font-semibold text-primary hover:bg-primary hover:text-primary-foreground",children:[T.jsx(Nw,{className:"h-4 w-4"}),"Email for a quote"]})]})]}),T.jsx("div",{className:"md:col-span-4",children:T.jsx("div",{className:"flex aspect-square w-full items-center justify-center rounded-3xl bg-accent/40 border border-border",children:T.jsx(p,{className:"h-24 w-24 text-primary",strokeWidth:1.25})})})]})}),T.jsx(on,{className:"!pt-0",children:T.jsxs("div",{className:"grid gap-10 rounded-3xl border border-border bg-card p-8 md:grid-cols-12 md:p-12",children:[T.jsxs("div",{className:"md:col-span-5",children:[T.jsx(Ca,{children:"Why it matters"}),T.jsx("h2",{className:"mt-4 font-display text-3xl text-primary md:text-4xl",children:r.heading})]}),T.jsx("div",{className:"md:col-span-7",children:T.jsx("p",{className:"text-base leading-relaxed text-muted-foreground md:text-lg",children:r.body})})]})}),b&&T.jsx(on,{className:"!pt-0",children:b}),T.jsxs(on,{className:"!pt-0",children:[T.jsxs("div",{className:"max-w-2xl",children:[T.jsx(Ca,{children:"What's included"}),T.jsx("h2",{className:"mt-4 font-display text-3xl text-primary md:text-4xl",children:"Concrete deliverables, not vague promises."})]}),T.jsx("ul",{className:"mt-10 grid gap-4 md:grid-cols-2",children:l.map(w=>T.jsxs("li",{className:"flex gap-3 rounded-2xl border border-border bg-card p-5",children:[T.jsx(mj,{className:"mt-0.5 h-5 w-5 shrink-0 text-coral"}),T.jsx("span",{className:"text-sm text-primary",children:w})]},w))})]}),T.jsxs(on,{className:"!pt-0",children:[T.jsxs("div",{className:"max-w-2xl",children:[T.jsx(Ca,{children:"How it works"}),T.jsx("h2",{className:"mt-4 font-display text-3xl text-primary md:text-4xl",children:"My process."})]}),T.jsx("ol",{className:"mt-10 grid gap-5 md:grid-cols-2 lg:grid-cols-3",children:c.map((w,_)=>T.jsxs("li",{className:"rounded-2xl border border-border bg-card p-6",children:[T.jsx("span",{className:"font-display text-3xl text-coral",children:String(_+1).padStart(2,"0")}),T.jsx("h3",{className:"mt-3 font-display text-xl text-primary",children:w.title}),T.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:w.body})]},w.title))})]}),u&&T.jsx(on,{className:"!pt-0",children:T.jsx(Ve,{to:"/portfolio",className:"block rounded-3xl border-4 border-accent bg-card p-8 transition-transform hover:-translate-y-0.5 md:p-12",children:T.jsxs("div",{className:"grid gap-8 md:grid-cols-12 md:items-center",children:[T.jsxs("div",{className:"md:col-span-7",children:[T.jsx(Ca,{children:"Recent result"}),T.jsx("p",{className:"mt-4 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:u.industry}),T.jsx("h3",{className:"mt-3 font-display text-2xl text-primary md:text-3xl",children:u.headline}),T.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:u.result}),T.jsxs("span",{className:"mt-5 inline-flex items-center gap-2 text-sm font-semibold text-primary",children:["See full portfolio",T.jsx(ql,{className:"h-4 w-4"})]})]}),T.jsx("div",{className:"md:col-span-5",children:T.jsxs("div",{className:"flex aspect-square w-full flex-col items-center justify-center rounded-2xl bg-primary p-6 text-center text-primary-foreground",children:[T.jsx("span",{className:"font-display text-5xl md:text-6xl",children:u.metric}),T.jsx("span",{className:"mt-2 text-xs font-semibold uppercase tracking-wider text-primary-foreground
56/80",children:u.metricLabel})]})})]})})}),m&&T.jsx(on,{className:"!pt-0",children:T.jsxs("figure",{className:"mx-auto max-w-3xl rounded-3xl border border-border bg-card p-8 md:p-10",children:[T.jsx(zj,{className:"h-6 w-6 text-coral"}),T.jsx("blockquote",{className:"mt-4 text-lg leading-relaxed text-primary",children:m.quote}),T.jsxs("figcaption",{className:"mt-6 text-sm",children:[T.jsx("span",{className:"font-semibold text-primary",children:m.name}),T.jsxs("span",{className:"text-muted-foreground",children:[", ",m.role]})]})]})}),y&&y.length>0&&T.jsxs(on,{className:"!pt-0",children:[T.jsxs("div",{className:"max-w-2xl",children:[T.jsx(Ca,{children:"Proof from the portfolio"}),T.jsx("h2",{className:"mt-4 font-display text-3xl text-primary md:text-4xl",children:"Where this work shows up."})]}),T.jsx("ul",{className:"mt-10 grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:y.map(w=>{const _=w.anchor?`#${w.anchor}`:void 0;return T.jsx("li",{children:T.jsxs(Ve,{to:"/portfolio",hash:_,className:"group flex h-full flex-col rounded-2xl border border-border bg-card p-5 transition-transform hover:-translate-y-0.5",children:[T.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-coral",children:"Case study"}),T.jsx("h3",{className:"mt-2 font-display text-lg text-primary",children:w.label}),w.blurb&&T.jsx("p",{className:"mt-2 flex-1 text-sm text-muted-foreground",children:w.blurb}),T.jsxs("span",{className:"mt-4 inline-flex items-center gap-2 text-sm font-semibold text-primary",children:["View in portfolio",T.jsx(ql,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]})},w.label)})})]}),g&&g.length>0&&T.jsxs(on,{className:"!pt-0",children:[T.jsxs("div",{className:"max-w-2xl",children:[T.jsx(Ca,{children:"Related services"}),T.jsx("h2",{className:"mt-4 font-display text-3xl text-primary md:text-4xl",children:"Pairs well with."})]}),T.jsx("div",{className:"mt-8 flex flex-wrap gap-3",children:g.map(w=>T.jsxs(Ve,{to:w.to,className:"inline-flex items-center gap-2 rounded-full border border-primary bg-card px-5 py-2.5 text-sm font-semibold text-primary hover:bg-primary hover:text-primary-foreground",children:[w.title,T.jsx(ql,{className:"h-3.5 w-3.5"})]},w.to))})]}),T.jsxs(on,{className:"!pt-0",children:[T.jsxs("div",{className:"max-w-2xl",children:[T.jsx(Ca,{children:"FAQ"}),T.jsx("h2",{className:"mt-4 font-display text-3xl text-primary md:text-4xl",children:"Common questions."})]}),T.jsx("div",{className:"mt-10 divide-y divide-border rounded-2xl border border-border bg-card",children:h.map(w=>T.jsxs("details",{className:"group px-6 py-5",children:[T.jsxs("summary",{className:"flex cursor-pointer list-none items-start justify-between gap-4 font-display text-lg text-primary",children:[w.q,T.jsx("span",{className:"mt-1 text-coral transition-transform group-open:rotate-45",children:"+"})]}),T.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:w.a})]},w.q))})]}),T.jsx(on,{className:"!pt-0",children:T.jsxs("div",{className:"rounded-3xl bg-primary p-10 text-center text-primary-foreground md:p-16",children:[T.jsx("h2",{className:"font-display text-4xl md:text-5xl",children:"Ready to talk it through?"}),T.jsx("p",{className:"mx-auto mt-4 max-w-xl text-primary-foreground/80",children:"Book a 30-minute intro call and we'll scope something that matches your goals, timeline and team."}),T.jsxs("div",{className:"mt-8 flex flex-wrap justify-center gap-3",children:[T.jsx("a",{href:Sr,target:"_blank",rel:"noreferrer",onClick:()=>vi("book_a_call_click",{location:"service_final_cta"}),className:"rounded-full bg-coral px-7 py-3 text-sm font-semibold text-primary hover:bg-coral/90",children:"Book A Call"}),T.jsx(Ve,{to:"/services",className:"rounded-full border border-primary-foreground/30 px-7 py-3 text-sm font-semibold text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:"Back to services"})]})]})})]})}function nn(e){const t=`https://sarahfitzseo.com/services/${e.slug}`,r={"@context":"https://schema.org","@type":"Service","@id":`${t}#service`,name:e.serviceName,serviceType:e.serviceName,description:e.description,url:t,mainEntityOfPage:t,provider:{"@id":"https://sarahfitzseo.com/#organization"},providerMobility:"static",areaServed:{"@type":"Place",name:"Worldwide"}
56,audience:{"@type":"BusinessAudience",name:"Brands and in-house marketing teams"}};return e.offerings?.length&&(r.hasOfferCatalog={"@type":"OfferCatalog",name:`${e.serviceName} scope`,itemListElement:e.offerings.map(l=>({"@type":"Offer",itemOffered:{"@type":"Service",name:l.name,...l.description?{description:l.description}:{},provider:{"@id":"https://sarahfitzseo.com/#organization"}}}))}),{meta:[{title:e.title},{name:"description",content:e.description},{property:"og:title",content:e.title},{property:"og:description",content:e.description},{property:"og:url",content:t},{property:"og:type",content:"website"}],links:[{rel:"canonical",href:t}],scripts:[{type:"application/ld+json",children:JSON.stringify(r)},{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList","@id":`${t}#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://sarahfitzseo.com/"},{"@type":"ListItem",position:2,name:"Services",item:"https://sarahfitzseo.com/services"},{"@type":"ListItem",position:3,name:e.breadcrumbLabel??e.serviceName,item:t}]})},{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage","@id":`${t}#faq`,url:t,mainEntity:e.faqs.map(l=>({"@type":"Question",name:l.q,acceptedAnswer:{"@type":"Answer",text:l.a}}))})}]}}const uN=()=>be(()=>import("./_layout.services.ai-search-geo-Cszk24Cb.js"),__vite__mapDeps([37,10,11,9,12,1,5,13,2,14,15,16,6,17,18,19,20,21,22])),dN=Ae()({head:()=>nn({slug:"ai-search-geo",title:"Generative Engine Optimization (GEO) | AI Search SEO",description:"Generative engine optimization gets your brand cited in ChatGPT, Perplexity and Google AI Overviews. GEO strategy built on real SEO fundamentals.",serviceName:"Generative Engine Optimization",faqs:iN}),component:ve(uN,"component")}),hN=[{q:"Do you write the content?",a:"I build the strategy, briefs and editorial system. Writing usually sits with your in-house team or trusted freelancers. I can recommend writers if you need them."},{q:"How is this different from a content calendar?",a:"A calendar tells you what to publish next week. A strategy tells you which topics are worth owning, how they connect, what format wins for each, and how the whole system compounds over 6 to 12 months."},{q:"What about AI-generated content?",a:"AI is great for first drafts, outlines and research, terrible for unedited publishing. The strategy will define where AI fits in your workflow and where human expertise has to lead."},{q:"How do you measure content success?",a:"Beyond rankings: assisted conversions, qualified pipeline, brand search lift, AI citation share, and time-to-rank for new pages."}],fN=()=>be(()=>import("./_layout.services.content-strategy-DAQIQbAj.js"),[]),pN=Ae()({head:()=>nn({slug:"content-strategy",title:"Content Strategy | SEO-Led Content Planning",description:"Content strategy rooted in search intent, audience research and commercial goals. The kind of content plan your team will actually ship.",serviceName:"Content Strategy",faqs:hN}),component:ve(fN,"component")}),mN=[{q:"What does ecommerce SEO actually involve?",a:"It is a mix of three things: making sure search engines can crawl and index a large, filter heavy catalogue, making your category and product pages the best answer for commercial searches, and building content that brings in demand earlier in the buying journey. The balance between those three depends on your site, your catalogue size and where the revenue gap is."},{q:"Do you work with Shopify, Magento, WooCommerce or headless builds?",a:"Yes. I have worked on hosted platforms, custom builds and headless setups, including full replatforms. The platform changes how a fix is implemented, not whether it is worth doing, and I write recommendations so your developers can ship them on your stack."},{q:"How do you handle faceted navigation and filters?",a:"Filters are usually where crawl budget and duplicate content problems start. I map which filter combinations have genuine search demand and deserve an indexable page, and which should be blocked, canonicalised or handled in a way that keeps them useful for shoppers but invisible to search engines."},{q:"Can you help with product pages that never rank?",a:"Yes. Common causes are thin manufacturer descriptions duplicated across retailers, variants splitting signals across many URLs, missing or invalid product schema, out of stock handling that removes pages entirely, and weak internal linking from category pages. I work through those in order of likely impact."},{q:"How does this connect to AI search?",a:"Shoppers increasingly start in ChatGPT, Perplexity and AI Overviews rather than a search box. Clean product data, accurate schema, clear comparison and buying content and strong brand mentions all make you easier to quote. If AI visibility is the main goal, the AI Search and GEO service goes deeper."},{q:"Do you work with our developers and merchandising team?",a:"Yes, that is usually how the best results happen. I write dev ready tickets, join sprint or planning calls where useful, and keep merchandising, content and SEO priorities in one shared plan rather than three competing lists."},{q:"How long before we see results?",a:"Technical and template level fixes often show movement within weeks on the pages affected. Category and content work usually builds over a few months. Peak trading periods are worth planning backwards from, since work shipped in October rarely has time to compound before Black Friday."},{q:"We are replatforming soon. Should we wait?",a:"No, but the order
56changes. Migration planning comes first so you do not lose what you already have, then growth work lands on the new platform. The SEO migration service covers that side in detail."}],gN=()=>be(()=>import("./_layout.services.ecommerce-seo-BPgExkL5.js"),[]),yN=Ae()({head:()=>nn({slug:"ecommerce-seo",title:"Ecommerce SEO Consultant | Organic Revenue Growth | Sarah Fitz",description:"Ecommerce SEO consultancy for brands that want organic revenue, not just rankings. Technical ecommerce SEO, category and product optimisation, content strategy and AI search visibility.",serviceName:"Ecommerce SEO",breadcrumbLabel:"Ecommerce SEO",faqs:mN,offerings:[{name:"Ecommerce SEO strategy",description:"Commercially prioritised organic growth plan for your catalogue."},{name:"Technical ecommerce SEO",description:"Crawling, indexation, faceted navigation, speed and product schema."},{name:"Category and collection optimisation",description:"Making category pages the best answer for commercial searches."},{name:"Product discoverability",description:"Variants, product data, out of stock handling and internal linking."},{name:"Ecommerce content strategy",description:"Buying guides, comparisons and seasonal demand capture."},{name:"International ecommerce SEO",description:"Hreflang, market priorities and multi-store architecture."}]}),component:ve(gN,"component")}),vN=[{q:"Do you write with AI?",a:"AI is useful for research, outlines and stress-testing arguments. It is not useful for unedited publishing. Every piece I deliver is researched, structured and written by me, with AI used where it genuinely speeds up the work and never as a shortcut on craft."},{q:"How is this different to hiring a generalist copywriter?",a:"I write from an SEO-first brief: intent, SERP shape, internal links, entities, citation-worthy structure for AI search. You get editorial quality that also has a
56job to do in search, not pretty copy that ranks for nothing."},{q:"Can you match our existing brand voice?",a:"Yes. I work from your existing tone-of-voice guide, sample content and product positioning. If you don't have one yet, I can build a lightweight voice guide as part of the engagement."},{q:"Do you offer one-off articles or only retainers?",a:"Both. One-off pillar pages, landing pages or article packs are available as scoped projects. Ongoing editorial support sits inside a monthly retainer."}],bN=()=>be(()=>import("./_layout.services.editorial-seo-copywriting-C-dXZ3dg.js"),[]),wN=Ae()({head:()=>nn({slug:"editorial-seo-copywriting",title:"Editorial SEO & Copywriting | SEO Copywriter",description:"Editorial SEO copywriting from an ex-journalist and English Literature graduate. Landing pages, pillar content and AI-search-ready articles that rank and earn their place.",serviceName:"Editorial SEO & Copywriting",faqs:vN}),component:ve(bN,"component")}),SN=[{q:"How do I know if I need international SEO?",a:"If you sell or serve customers in more than one country or language, or you're planning to, you need a deliberate international strategy. Without one, you end up with duplicate content across markets, the wrong currency or language showing in search results, and weaker rankings in every region."},{q:"Do you handle hreflang and technical setup?",a:"Yes. Hreflang implementation, ccTLD vs subfolder vs subdomain decisions, geotargeting in Search Console, currency handling and localised XML sitemaps are all part of the work."},{q:"Which markets and languages do you cover?",a:"I've worked across EMEA, North America, LATAM and APAC. I don't do the translation itself. I work with your in-house team or localisation partner and own the SEO side: keyword research per market, on-page strategy, technical setup and reporting."},{q:"How long until I see results?",a:"Technical fixes (hreflang, indexation, geotargeting) usually show within 4 to 8 weeks. Content and authority gains in new markets typically take 3 to 6 months to compound."}],_N=()=>be(()=>import("./_layout.services.international-seo-BFuWSgzb.js"),[]),EN=Ae()({head:()=>nn({slug:"international-seo",title:"International SEO Consultant | Global Growth Strategy",description:"International SEO consultant helping brands launch and scale in new markets. Hreflang, localisation, regional intent and global content.",serviceName:"International SEO Consultant",faqs:SN}),component:ve(_N,"component")}),TN=[{q:"Do you work with single-location and multi-location businesses?",a:"Both. Single-location work usually centres on Google Business Profile, reviews and a strong local landing page. Multi-location work adds location page architecture, bulk GBP management, local schema at scale and reporting per store."},{q:"How long until I see results in the local pack?",a:"GBP wins can move in weeks: categories, services, photos, reviews. Ranking in the local pack for competitive terms and pulling map impressions up sustainably usually takes 3 to 6 months of consistent work."},{q:"Do you handle Google Business Profile management ongoing?",a:"I set up the strategy, optimise the profile, fix categorisation and build the review and posting cadence. Day-to-day posting and review replies usually sit with your team or a VA. I'll train them and audit quarterly."},{q:"What about service-area businesses without a storefront?",a:"Fully supported. We'll configure GBP service areas correctly, build out service + location landing pages, and focus on citations and reviews since you can't rely on a physical address for proximity ranking."}],ON=()=>be(()=>import("./_layout.services.local-seo-CC_HlCg_.js"),[]),AN=Ae()({head:()=>nn({slug:"local-seo",title:"Local SEO | Google Business Profile & Local Search",description:"Local SEO for single and multi-location brands. Google Business Profile optimisation, local pack rankings, reviews, citations and local landing pages that convert.",serviceName:"Local SEO",faqs:TN}),component:ve(ON,"component")}),kN=[{q:"Why does an SEO consultant do organic social?",a:"Because search and s
56ocial are converging. LinkedIn, YouTube, TikTok and Reddit all feed into how people discover brands, and increasingly into what LLMs cite. Treating them as separate disciplines leaves visibility on the table."},{q:"Which platforms do you cover?",a:"Primarily LinkedIn, YouTube and Reddit for B2B; YouTube, TikTok and Pinterest for B2C. I'll recommend the 1 to 2 platforms most likely to compound for you rather than spreading thin."},{q:"Do you create the content?",a:"Strategy, formats, briefs and measurement, yes. Production usually sits with your team or a creator partner. I can recommend collaborators."},{q:"How is this different from a social media agency?",a:"Social agencies optimise for engagement on the platform. I optimise for discovery, brand search lift and pipeline. I treat organic social as a top-of-funnel discovery channel that should reinforce your SEO and AI search work."}],xN=()=>be(()=>import("./_layout.services.organic-social-CnT2UWy7.js"),[]),RN=Ae()({head:()=>nn({slug:"organic-social",title:"Organic Social Media Strategy | Built for Search & SEO",description:"Organic social media strategy that supports your SEO, builds brand search demand and gets your content in front of the right people.",serviceName:"Organic Social Media Strategy",faqs:kN}),component:ve(xN,"component")}),CN=[{q:"What's the difference between your audit and a free tool report?",a:"Tools surface every issue with the same urgency. I separate the 3 to 5 things actually holding the site back from the 200 things that don't matter, and explain what to do about each."},{q:"How long does an audit take?",a:"Typically 2 to 3 weeks from kickoff to final report, depending on site size and how many markets are in scope."},{q:"What do I get?",a:"A written report (executive summary + detailed findings), a prioritised action list, a 60-minute walkthrough call, and a follow-up Q&A window for your dev team."},{q:"Do you fix the issues too?",a:"The audit itself is diagnosis only. If you'd like implementation support afterwards, we can scope a project or move into a retainer."}],jN=()=>be(()=>import("./_layout.services.seo-audit-DHWcTHEu.js"),[]),NN=Ae()({head:()=>nn({slug:"seo-audit",title:"SEO Audit Services | Technical & Content Review",description:"An SEO audit that goes beyond a checklist. Technical health, content gaps and on-page fixes, with priorities your team can actually ship.",serviceName:"SEO Audit Services",faqs:CN}),component:ve(jN,"component")}),LN=[{q:"What is SEO mentoring?",a:"SEO mentoring is 1:1 upskilling with a senior SEO consultant, tailored to your current level and goals. Instead of a fixed course curriculum, sessions are shaped around your site, your role and the areas of SEO you actually need to get better at, from strategy and technical SEO to AI search and YouTube."},{q:"How is SEO mentoring different from an SEO course?",a:"An SEO course is a fixed, self-serve curriculum built for a broad audience. SEO mentoring is live, 1:1 and tailored to you. We work on your website, your team's real problems and your specific gaps, so what you learn is immediately usable, not generic theory."},{q:"Who is SEO mentoring for?",a:"SEO mentoring works for beginners who want a solid foundation, website and business owners who want to run SEO themselves, in-house marketers who have inherited SEO with no support, junior and mid-level SEOs who want a senior sounding board, and experienced SEOs who want a focused refresh on a specific area like AI search, YouTube or international SEO."},{q:"Do you mentor in-house marketing teams or just individuals?",a:"Both. I mentor individuals on a 1:1 basis and I run mentoring for in-house marketing, content and product teams who want to lift their whole SEO capability. Team engagements comb
56ine group sessions, tailored playbooks and 1:1 time with the SEO lead or owner."},{q:"What SEO topics can you mentor on?",a:"The seven core areas: SEO strategy and prioritisation, technical SEO (indexing, site structure, migrations, performance), content strategy, cross-channel growth with PPC, paid social, PR, product and tech, international and ecommerce SEO, AI search visibility (AI Overviews, ChatGPT, Perplexity) and YouTube SEO. Sessions can go deep on one area or cover a mix."},{q:"How are sessions delivered?",a:"Sessions are live over video call, usually 60 to 90 minutes, with screen sharing on your real site, data and tools. You get session notes, agreed actions and async support between sessions so questions do not have to wait for the next call."},{q:"Can you mentor specifically on AI search and YouTube SEO?",a:"Yes. AI search visibility (AI Overviews, ChatGPT, Perplexity, GEO) and YouTube SEO are two of the areas I get asked to mentor on most, both for SEOs adapting their skillset and for brands whose organic traffic is shifting away from classic Google results."},{q:"How long does an SEO mentoring engagement last?",a:"It depends on the goal. Some people book a single deep-dive session to unblock a specific problem, others work with me across three or six months to build capability, and in-house teams often set up ongoing monthly mentoring. I will recommend the shortest engagement that actually gets you where you want to go."}],DN=()=>be(()=>import("./_layout.services.seo-mentoring-BQl13a3b.js"),[]),MN=Ae()({head:()=>nn({slug:"seo-mentoring",title:"SEO Mentoring & Training | 1:1 with a Senior SEO Consultant | Sarah Fitz",description:"1:1 SEO mentoring and training for beginners, website owners, in-house marketers and senior SEOs. Strategy, technical, content, AI search, YouTube and more.",serviceName:"SEO Mentoring and Training",faqs:LN}),component:ve(DN,"component")}),zN=[{q:"When should you bring an SEO into a migration?",a:"As early as humanly possible, ideally before the new platform is even chosen. Most migration disasters happen because SEO is consulted after URL structures, templates and CMS decisions are locked in."},{q:"Do you handle replatforms, redesigns and domain changes?",a:"Yes. The principles are the same: protect what's ranking, plan redirects properly, preserve internal linking and crawl budget, and monitor obsessively in the first 90 days."},{q:"What's the typical traffic impact?",a:"A well-planned migration should hold within a few percent of pre-launch traffic and recover within 4 to 8 weeks. A poorly planned one can lose 30 to 60% and never fully recover."},{q:"Do you work with our dev team or replace them?",a:"Work with them. I write specs, review staging, run pre-launch QA and own the SEO checklist. Your devs build it."}],UN=()=>be(()=>import("./_layout.services.seo-migration-DPdH1owF.js"),[]),IN=Ae()({head:()=>nn({slug:"seo-migration",title:"SEO Migration Services | Protect Rankings & Traffic",description:"SEO migration support for replatforms, redesigns and domain moves. Keep your rankings, redirects and revenue intact through the switch.",serviceName:"SEO Migration Services",faqs:zN}),component:ve(UN,"component")}),PN=[{q:"Why isn't my page being indexed by Google?",a:"The usual causes are a noindex tag left in place, a canonical pointing at a different URL, the page being blocked in robots.txt, thin or duplicate content, weak internal linking so Google rarely finds the page, or the page simply being too new to have been crawled yet. You can work through the likely cause yourself with my free diagnostic tool at /tools/why-wont-my-page-index."},{q:"What is the difference between crawling and indexing?",a:"Crawling is Google discovering and fetching a page. Indexing is Google deciding to store it and consider it for search results. A page can be crawled perfectly well and still never be indexed, usually because Google judged it duplicate, low value or a near match for something it already has."},{q:"What is crawl budget, and does my site need to worry about it?",a:"Crawl budget is how much crawling Google is willing to spend on your site. It genuinely matters for large sites, typically tens of thousands of URLs, heavy faceted navigation, parameter sprawl or frequent content changes. For a small brochure or blog site it is almost never the real problem, and chasing it is a distraction from indexing quality and internal linking."},{q:"How do I know if I have a technical SEO problem?",a:"Common signals are pages missing from Search Console page indexing reports, traffic falling without any content change, slow or JavaScript heavy pages that render late, the same content reachable on several URLs, or a recent migration or replatform. If more than one of those sounds familiar, a technical review will usually pay for itself."},{q:"How long does it take to see results from technical SEO fixes?",a:"Once a fix ships, Google has to recrawl and reprocess the affected pages. Small sets of pages often update within days, while sitewide template or architecture changes typically take several weeks to a few months to settle. Timing depends on how often your site is crawled, so no one can promise an exact date."},{q:"Can technical SEO help with AI search visibility?",a:"Yes. Assistants like ChatGPT, Perplexity and AI Overviews rely on content being crawlable, rendered server side where possible, cleanly structured and marked up with accurate schema. Fixing crawling, rendering and structured data makes your pages easier to quote. See /services/ai-search-geo if AI visibility is the main goal."},{q:"How is this different from your SEO audit?",a:"The SEO audit covers technical, content and competitor analysis together. This is a deeper, purely technical engagement for sites where crawling, indexing, architecture, rendering or performance is the bottleneck."},{q:"How long does a technical SEO project take?",a:"Most technical reviews run 2 to 4 weeks depending on site size, number of templates and how many markets are in scope. Larger ecommerce sites sit at the upper end."},{q:"Do you implement the fixes or just recommend them?",a:"Diagnosis and prioritisation are always included. Implementation support is optional, and I can either work alongside your developers or hand over ready-to-ship tickets."},{q:"Do you work directly with development teams?",a:"Yes. Findings are written as dev-ready tickets with the issue, the evidence, the expected fix and how we will verify it after release."},{q:"Can you handle large ecommerce or enterprise sites?",a:"Yes. Faceted navigation, product variants, parameter handling, pagination and crawl budget on sites with hundreds of thousands of URLs are a core part of this work."}],qN=[{title:"Crawlability and indexation",items:["Indexing and crawling audits","Google Search Console coverage and indexing issues","Robots.txt reviews","XML and HTML sitemap reviews","Noindex and crawl directive checks","Crawl budget analysis for larger websites","Search engine bot access, including relevant AI crawlers"]},{title:"Website architecture",items:["Site structure and URL architecture","Internal linking audits","Orphan page identification","Navigation and click-depth analysis","Pagination and faceted navigation","URL parameters and filter handling"]},{title:"Technical page signals",items:["Canonical tag implementation","Redirect chains, loops and unnecessary redirects","Broken links and 4xx errors","Server errors and 5xx issues","Duplicate and near-duplicate pages","Incorrect status codes","Trailing slash, HTTP/HTTPS and www/non-www inconsistencies"]},{title:"Performance and user experience",items:["Website performance audits","Page speed and Core Web Vitals","Mobile usability","Image and media optimisation","JavaScript and rendering issues","Layout shifts, interaction delays and loading performance","Opportunities to reduce unnecessary scripts and page weight"]},{title:"Structured data and search appearance",items:["Schema markup audits","Structured data recommendations and validation","Rich result eligibility issues","Breadcrumb implementation","Organisation, article, product, local business and other relevant schema","Entity and brand information consistency"]},{title:"Ecommerce and large website technical SEO",items:["Product and category page indexation","Product variant handling","Filters and faceted navigation","Out-of-stock and discontinued product strategies","Duplicate product URLs","Pagination and infinite scroll","Ecommerce structured data"]}],BN=()=>be(()=>import("./_layout.services.technical-seo-D-MiNuUn.js"),[]),$N=Ae()({head:()=>nn({slug:"technical-seo",title:"Technical SEO Services | Crawling, Indexing & Site Health",description:"Senior-led technical SEO covering crawlability, indexation, site architecture, Core Web Vitals, structured data and large ecommerce sites.",serviceName:"Technical SEO Services",breadcrumbLabel:"Technical SEO",offerings:qN.map(e=>
56({name:e.title,description:e.items.join(", ")})),faqs:PN}),component:ve(BN,"component")}),HN=[{q:"What is YouTube SEO?",a:"YouTube SEO is the practice of optimising your channel and videos so they rank in YouTube search, get suggested alongside related videos and surface in Google video results. It covers keyword research, titles, descriptions, tags, thumbnails, chapters, transcripts, playlists and channel architecture."},{q:"How does YouTube SEO drive traffic to my website?",a:"Every optimised video becomes an evergreen entry point. Search-driven viewers click through from descriptions, pinned comments, cards and end screens to product pages, lead magnets and blog content, building a compounding source of qualified website traffic that you do not pay per click for."},{q:"Can YouTube SEO actually grow revenue?",a:"Yes. Ranking for high-intent YouTube searches (how to, best, review, comparison and product queries) puts your brand in front of buyers who are actively researching. That traffic converts to email signups, product sales and bookings once the video, description and on-site journey are aligned."},{q:"How long does YouTube SEO take to work?",a:"Quick wins on existing videos (titles, descriptions, thumbnails, cannibalisation fixes) often move within a few weeks. Building a fully optimised channel that compounds in search and suggested usually takes 3 to 6 months of consistent work."},{q:"Do you do YouTube keyword research?",a:"Yes. I research what your audience is actually searching on YouTube (and Google), map keywords to search intent and content format, and identify gaps where you can rank without competing head to head with bigger channels."},{q:"What is the difference between YouTube SEO and Google SEO?",a:"YouTube SEO optimises for YouTube's algorithm: watch time, retention, CTR, session duration and topical authority at the channel level. Google SEO optimises web pages for Google's index. They overlap, since YouTube videos increasingly appear in Google and AI search, so a joined up strategy outperforms doing either in isolation."},{q:"Can you fix YouTube cannibalisation across overlapping videos?",a:"Yes. Channels often have multiple videos targeting the same query, splitting watch time and confusing YouTube about which to surface. I audit your back catalogue, identify cannibalisation and recommend whether to consolidate, re-optimise or unlist."},{q:"Do you create the videos?",a:"No. Strategy, keyword research, optimisation, briefs and measurement sit with me. Production usually stays with your team or a creator partner, and I can recommend collaborators if needed."}],GN=()=>be(()=>import("./_layout.services.youtube-seo-7sSxV7rD.js"),[]),VN=Ae()({head:()=>nn({slug:"youtube-seo",title:"YouTube SEO Services & Consulting | Sarah Fitz",description:"YouTube SEO consultant helping brands rank videos in YouTube search, drive qualified traffic to their website and grow revenue from YouTube.",serviceName:"YouTube SEO Consulting",faqs:HN}),component:ve(GN,"component")}),FN=()=>be(()=>import("./_layout.tools.why-wont-my-page-index-ByYLwZxR.js"),__vite__mapDeps([38,4,26,27,6,14,22,1,15,21])),bb="https://sarahfitzseo.com/tools/why-wont-my-page-index",bh="Why Won't My Page Index? Free Diagnostic Tool | Sarah Fitz SEO",wh="Stuck on a Google indexing issue? Answer a few questions about what Search Console is showing you and get a clear next step, not another generic checklist.",YN=Ae()({head:()=>({meta:[{title:bh},{name:"description",content:wh},{property:"og:title",content:bh},{property:"og:description",content:wh},{property:"og:type",content:"website"},{property:"og:url",content:bb},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:bh},{name:"twitter:description",content:wh}],links:[{rel:"canonical",href:bb}],scripts:[Rr([{name:"Why won't my page index?",path:"/tools/why-wont-my-page-index"}])]}),component:ve(FN,"component")}),KN=()=>be(()=>import("./admin.posts.index-DlVjh_Xe.js"),__vite__mapDeps([39,11,9,26])),QN=Ae()({component:ve(KN,"component")}),JN=()=>be(()=>import("./admin.posts._id-Dzngmzgu.js"),__vite__mapDeps([40,11,9,26,41,31,13])),XN=Ae()({component:ve(JN,"component")}),WN=()=>be(()=>import("./admin.posts.new-DL5o-gq7.js"),__vite__mapDeps([42,41,26,31,13,11,9])),ZN=Ae()({component:ve(WN,"component")}),Ie=c2.update({id:"/_layout",getParentRoute:()=>Sc}),_i=f2.update({id:"/admin",path:"/admin",getParentRoute:()=>Sc}),eL=m2.update({id:"/",path:"/",getParentRoute:()=>Ie}),tL=y2.update({id:"/about",path:"/about",getParentRoute:()=>Ie}),nL=w2.update({id:"/ai-visibility-arcade",path:"/ai-visibility-arcade",getParentRoute:()=>Ie}),aL=O2.update({id:"/ai-visibility-leaderboard",path:"/ai-visibility-leaderboard",getParentRoute:()=>Ie}),iL=k2.update({id:"/contact",path:"/contact",getParentRoute:()=>Ie}),rL=R2.update({id:"/portfolio",path:"/portfolio",getParentRoute:()=>Ie}),sL=j2.update({id:"/privacy",path:"/privacy",getParentRoute:()=>Ie}),oL=L2.update({id:"/",path:"/",getParentRoute:()=>_i}),lL=M2.update({id:"/login",path:"/login",getParentRoute:()=>_i}),cL=U2.update({id:"/tool-feedback",path:"/tool-feedback",getParentRoute:()=>_i}),uL=P2.update({id:"/blog/",path:"/blog/",getParentRoute:()=>Ie}),dL=V2.update({id:"/blog/$slug",path:"/blog/$slug",getParentRoute:()=>Ie}),hL=Y2.update({id:"/games/",path:"/games/",getParentRoute:()=>Ie}),fL=X2.update({id:"/games/googlebot-crawl-challenge",path:"/games/googlebot-crawl-challenge",getParentRoute:()=>Ie}),pL=tj.update({id:"/games/migration-mayhem",path:"/games/migration-mayhem",getParentRoute:()=>Ie}),mL=sj.update({id:"/games/which-mormon-wife-is-your-seo-strategy",path:"/games/which-mormon-wife-is-your-seo-strategy",getParentRoute:()=>Ie}),gL=aN.update({id:"/services/",path:"/services/",getParentRoute:()=>Ie}),yL=dN.update({id:"/services/ai-search-geo",path:"/services/ai-search-geo",getParentRoute:()=>Ie}),vL=pN.update({id:"/services/content-strategy",path:"/services/content-strategy",getParentRoute:()=>Ie}),bL=yN.update({id:"/services/ecommerce-seo",path:"/services/ecommerce-seo",getParentRoute:()=>Ie}),wL=wN.update({id:"/services/editorial-seo-copywriting",path:"/services/editorial-seo-copywriting",getParentRoute:()=>Ie}),SL=EN.update({id:"/services/international-seo",path:"/services/international-seo",getParentRoute:()=>Ie}),_L=AN.update({id:"/services/local-seo",path:"/services/local-seo",getParentRoute:()=>Ie}),EL=RN.update({id:"/services/organic-social",path:"/services/organic-social",getParentRoute:()=>Ie}),TL=NN.update({id:"/services/seo-audit",path:"/services/seo-audit",getParentRoute:()=>Ie}
56),OL=MN.update({id:"/services/seo-mentoring",path:"/services/seo-mentoring",getParentRoute:()=>Ie}),AL=IN.update({id:"/services/seo-migration",path:"/services/seo-migration",getParentRoute:()=>Ie}),kL=$N.update({id:"/services/technical-seo",path:"/services/technical-seo",getParentRoute:()=>Ie}),xL=VN.update({id:"/services/youtube-seo",path:"/services/youtube-seo",getParentRoute:()=>Ie}),RL=YN.update({id:"/tools/why-wont-my-page-index",path:"/tools/why-wont-my-page-index",getParentRoute:()=>Ie}),CL=QN.update({id:"/posts/",path:"/posts/",getParentRoute:()=>_i}),jL=XN.update({id:"/posts/$id",path:"/posts/$id",getParentRoute:()=>_i}),NL=ZN.update({id:"/posts/new",path:"/posts/new",getParentRoute:()=>_i}),LL={LayoutAboutRoute:tL,LayoutAiVisibilityArcadeRoute:nL,LayoutAiVisibilityLeaderboardRoute:aL,LayoutContactRoute:iL,LayoutPortfolioRoute:rL,LayoutPrivacyRoute:sL,LayoutIndexRoute:eL,LayoutBlogSlugRoute:dL,LayoutGamesGooglebotCrawlChallengeRoute:fL,LayoutGamesMigrationMayhemRoute:pL,LayoutGamesWhichMormonWifeIsYourSeoStrategyRoute:mL,LayoutServicesAiSearchGeoRoute:yL,LayoutServicesContentStrategyRoute:vL,LayoutServicesEcommerceSeoRoute:bL,LayoutServicesEditorialSeoCopywritingRoute:wL,LayoutServicesInternationalSeoRoute:SL,LayoutServicesLocalSeoRoute:_L,LayoutServicesOrganicSocialRoute:EL,LayoutServicesSeoAuditRoute:TL,LayoutServicesSeoMentoringRoute:OL,LayoutServicesSeoMigrationRoute:AL,LayoutServicesTechnicalSeoRoute:kL,LayoutServicesYoutubeSeoRoute:xL,LayoutToolsWhyWontMyPageIndexRoute:RL,LayoutBlogIndexRoute:uL,LayoutGamesIndexRoute:hL,LayoutServicesIndexRoute:gL},DL=Ie._addFileChildren(LL),ML={AdminLoginRoute:lL,AdminToolFeedbackRoute:cL,AdminIndexRoute:oL,AdminPostsIdRoute:jL,AdminPostsNewRoute:NL,AdminPostsIndexRoute:CL},zL=_i._addFileChildren(ML),UL={LayoutRoute:DL,AdminRoute:zL},IL=Sc._addFileChildren(UL),PL=()=>{const e=new ZC;return gk({routeTree:IL,context:{queryClient:e},scrollRestoration:!0,defaultPreloadStaleTime:0})};async function qL(){const e=await PL();let t;if(Xv){const i=await Xv.getOptions();i.serializationAdapters=i.serializationAdapters??[],window.__TSS_START_OPTIONS__=i,t=i.seri
56alizationAdapters,e.options.defaultSsr=i.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(OA),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.ids.get().length||await b1(e),e}var BL=qL;function $L(){return BL().finally(()=>window.$_TSR?.h())}var Sh;function HL(){return Sh||(Sh=$L()),T.jsx(kA,{promise:Sh,children:e=>T.jsx(bk,{router:e})})}ee.startTransition(()=>{pE.hydrateRoot(document,T.jsx(ee.StrictMode,{children:T.jsx(HL,{})}))});export{nj as $,ql as A,mj as B,Sr as C,vj as D,Ca as E,_j as F,Aj as G,V2 as H,ja as I,r3 as J,QL as K,c3 as L,Nw as M,Q2 as N,yf as O,q2 as P,zj as Q,VL as R,on as S,$j as T,i3 as U,W2 as V,sj as W,hb as X,mh as Y,s3 as Z,o3 as _,Ve as a,n3 as a$,wk as a0,Zj as a1,eN as a2,u3 as a3,iN as a4,wc as a5,YL as a6,Js as a7,JC as a8,Et as a9,Ow as aA,NC as aB,LC as aC,Yh as aD,_w as aE,YC as aF,UC as aG,Wh as aH,ut as aI,Ga as aJ,wt as aK,zN as aL,PN as aM,qN as aN,HN as aO,JL as aP,ZL as aQ,XL as aR,WL as aS,XN as aT,yE as aU,dE as aV,BA as aW,Zs as aX,GA as aY,e3 as aZ,t3 as a_,dn as aa,KL as ab,Ye as ac,gh as ad,wj as ae,Nj as af,Dj as ag,Ij as ah,Kj as ai,Jj as aj,Wj as ak,dj as al,Ef as am,a3 as an,hN as ao,mN as ap,vN as aq,SN as ar,TN as as,kN as at,CN as au,LN as av,cN as aw,BC as ax,DC as ay,Kh as az,m2 as b,qj as c,Fj as d,ob as e,l3 as f,v2 as g,S2 as h,vb as i,T as j,mb as k,xj as l,lN as m,Lw as n,Tj as o,Gj as p,M2 as q,ee as r,Sw as s,vi as t,St as u,P2 as v,_f as w,Ws as x,GL as y,iE as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.