1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GoExpiredFrontpage-DQf8pEBv.js","assets/select-bawU9DmT.js","assets/index-Ds99ek2V.js","assets/switch-CpL7_qvk.js","assets/WatchlistStar-MGMHUZ8K.js","assets/useWatchlist-DnFwqyIo.js","assets/rows-3-ifS1hiMj.js","assets/TodaysPicks-Cu84VTY_.js","assets/calendar-CNHSvOdV.js","assets/chevron-left-DuzCoyNm.js","assets/calendar-BwAh82ST.js","assets/AppraiseYourDomain-DEzO_PMw.js","assets/gxScore-CsXoMpRE.js","assets/chart-column-CCXSkcEv.js","assets/trophy-B95nJ3Yv.js","assets/circle-check-conwmP9q.js","assets/info-AYzNs3fS.js","assets/Contact-CDEkPAqA.js","assets/BrandableDropsContent-Dxn_bUAn.js","assets/card-BSfcIW4Y.js","assets/skeleton-BQYv2aTe.js","assets/table-DkAu5atY.js","assets/shield-BEqdegv2.js","assets/heart-DohvxikY.js","assets/lock-CumxCSTJ.js","assets/ThankYou-q4JBxRZT.js","assets/Updates-CU96--nC.js","assets/Settings-B6Q49oZq.js","assets/useSubscription-BogwARKQ.js","assets/alert-dialog-BL-rbCI7.js","assets/credit-card-CCgntUPp.js","assets/trash-2-Bcoczq4e.js","assets/circle-help-CXR2iWrR.js","assets/Pricing-BoF-eK-H.js","assets/GxPricingPlans-rj7rU05X.js","assets/PublicPricing-DLgJeWJf.js","assets/FAQ-xxwQhwXV.js","assets/JsonLd-D2wUmH3D.js","assets/book-open-DVrlRLly.js","assets/PriceHunter-BqAYyHHN.js","assets/Privacy-DUDk3xRL.js","assets/circle-check-big-C9UXHPHU.js","assets/users-tKFFnZVr.js","assets/globe-trM-BYBb.js","assets/scale-DzPu19Pg.js","assets/Terms-U7Xt4YUa.js","assets/Admin-S3LvAwx3.js","assets/download-Bljni_8c.js","assets/send-Co8yZ4PK.js","assets/checkbox-D2alOpbD.js","assets/upload-Dbv5oUVA.js","assets/StayInTouch-Cxk-HpAA.js","assets/NewsletterGuide-CxTw67dS.js","assets/Blog-C22_tzEG.js","assets/blogPosts-A8dJnEaP.js","assets/DomainFlippingBeginners2026-B0M_zZjF.js","assets/StopEmotionalBidding-BQpu7SEq.js","assets/DomainRentalsRevenueOrProblems-BuTwYCdN.js","assets/FreeDomainAppraisalTools-oE_6ibZQ.js","assets/DynamicBlogPost-BOBfcwfr.js","assets/SavedAppraisals-D2DLL_SL.js","assets/arrow-up-down-BTf0brX3.js","assets/ExpiredAuctionsNew-B3z6F7q9.js","assets/pagination-v-dvXuWQ.js","assets/ExpiredBrandablesNew-FrikVdcG.js","assets/FourLetterDomainsNew-DNtBKQ7H.js","assets/ExpiredAltTLDsNew-DHvgOO9L.js","assets/CuratedCloseoutsNew-C7HgN0Av.js","assets/CuratedDropsNew-BDXu8Np2.js","assets/BrandableDropsTop100-CGQAAnNh.js","assets/NameGenerator-Dho_oORG.js","assets/BrandableGenerator-ZRCZtlej.js","assets/GxPro-D3N9LDQx.js","assets/CompleteUpgrade-CGS-WfAs.js","assets/SubmitYourDomain-DOYIeOXn.js","assets/approvedPlatforms-Dja7BD0Q.js","assets/AdvertiseYourDomain-B1na-87M.js","assets/Sponsors-CIVukr-x.js","assets/BackorderAuctions-BXBggBL0.js","assets/GnameAuctions-CgWowAOm.js","assets/AppraisalHistory-Cz5cNSC5.js","assets/Watchlist-Bb5mxdW3.js","assets/EndingSoonNew-D-MwLpDC.js"])))=>i.map(i=>d[i]); 2var sE=Object.defineProperty;var Qm=e=>{throw TypeError(e)};var oE=(e,t,n)=>t in e?sE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zt=(e,t,n)=>oE(e,typeof t!="symbol"?t+"":t,n),td=(e,t,n)=>t.has(e)||Qm("Cannot "+n);var A=(e,t,n)=>(td(e,t,"read from private field"),n?n.call(e):t.get(e)),be=(e,t,n)=>t.has(e)?Qm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),le=(e,t,n,r)=>(td(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),nt=(e,t,n)=>(td(e,t,"access private method"),n);var sl=(e,t,n,r)=>({set _(s){le(e,t,s,n)},get _(){return A(e,t,r)}});function iE(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};
vendor: 2,986 bytes, lines 2-10
2function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function aE(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var r0={exports:{}},Xc={},s0={exports:{}},fe={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var Ua=Symbol.for("react.element"),lE=Symbol.for("react.portal"),cE=Symbol.for("react.fragment"),uE=Symbol.for("react.strict_mode"),dE=Symbol.for("react.profiler"),fE=Symbol.for("react.provider"),hE=Symbol.for("react.context"),pE=Symbol.for("react.forward_ref"),mE=Symbol.for("react.suspense"),gE=Symbol.for("react.memo"),vE=Symbol.for("react.lazy"),Xm=Symbol.iterator;function yE(e){return e===null||typeof e!="object"?null:(e=Xm&&e[Xm]||e["@@iterator"],typeof e=="function"?e:null)}var o0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},i0=Object.assign,a0={};function Qo(e,t,n){this.props=e,this.context=t,this.refs=a0,this.updater=n||o0}Qo.prototype.isReactComponent={};Qo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function l0(){}l0.prototype=Qo.prototype;function Hh(e,t,n){this.props=e,this.context=t,this.refs=a0,this.updater=n||o0}var Gh=Hh.prototype=new l0;Gh.constructor=Hh;i0(Gh,Qo.prototype);Gh.isPureReactComponent=!0;var Jm=Array.isArray,c0=Object.prototype.hasOwnProperty,qh={current:null},u0={key:!0,ref:!0,__self:!0,__source:!0};function d0(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)c0.call(t,r)&&!u0.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Ua,type:e,key:o,ref:i,props:s,_owner:qh.current}}function xE(e,t){return{$$typeof:Ua,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Kh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ua}function wE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var eg=/\/+/g;
vendor: 1,073 bytes, line 10
10function nd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wE(""+e.key):t.toString(36)}function $l(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ua:case lE:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+nd(i,0):r,Jm(s)?(n="",e!=null&&(n=e.replace(eg,"$&/")+"/"),$l(s,t,n,"",function(u){return u})):s!=null&&(Kh(s)&&(s=xE(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(eg,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Jm(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+nd(o,a);i+=$l(o,t,n,l,s)}else if(l=yE(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+nd(o,a++),i+=$l(o,t,n,l,s);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function ol(e,t,n){if(e==null)return e;var r=[],s=0;
vendor: 10,031 bytes, lines 10-34
10return $l(e,r,"","",function(o){return t.call(n,o,s++)}),r}function bE(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var yt={current:null},Fl={transition:null},_E={ReactCurrentDispatcher:yt,ReactCurrentBatchConfig:Fl,ReactCurrentOwner:qh};function f0(){throw Error("act(...) is not supported in production builds of React.")}fe.Children={map:ol,forEach:function(e,t,n){ol(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ol(e,function(){t++}),t},toArray:function(e){return ol(e,function(t){return t})||[]},only:function(e){if(!Kh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};fe.Component=Qo;fe.Fragment=cE;fe.Profiler=dE;fe.PureComponent=Hh;fe.StrictMode=uE;fe.Suspense=mE;fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_E;fe.act=f0;fe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=i0({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=qh.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)c0.call(t,l)&&!u0.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ua,type:e.type,key:s,ref:o,props:r,_owner:i}};fe.createContext=function(e){return e={$$typeof:hE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:fE,_context:e},e.Consumer=e};fe.createElement=d0;fe.createFactory=function(e){var t=d0.bind(null,e);return t.type=e,t};fe.createRef=function(){return{current:null}};fe.forwardRef=function(e){return{$$typeof:pE,render:e}};fe.isValidElement=Kh;fe.lazy=function(e){return{$$typeof:vE,_payload:{_status:-1,_result:e},_init:bE}};fe.memo=function(e,t){return{$$typeof:gE,type:e,compare:t===void 0?null:t}};fe.startTransition=function(e){var t=Fl.transition;Fl.transition={};try{e()}finally{Fl.transition=t}};fe.unstable_act=f0;fe.useCallback=function(e,t){return yt.current.useCallback(e,t)};fe.useContext=function(e){return yt.current.useContext(e)};fe.useDebugValue=function(){};fe.useDeferredValue=function(e){return yt.current.useDeferredValue(e)};fe.useEffect=function(e,t){return yt.current.useEffect(e,t)};fe.useId=function(){return yt.current.useId()};fe.useImperativeHandle=function(e,t,n){return yt.current.useImperativeHandle(e,t,n)};fe.useInsertionEffect=function(e,t){return yt.current.useInsertionEffect(e,t)};fe.useLayoutEffect=function(e,t){return yt.current.useLayoutEffect(e,t)};fe.useMemo=function(e,t){return yt.current.useMemo(e,t)};fe.useReducer=function(e,t,n){return yt.current.useReducer(e,t,n)};fe.useRef=function(e){return yt.current.useRef(e)};fe.useState=function(e){return yt.current.useState(e)};fe.useSyncExternalStore=function(e,t,n){return yt.current.useSyncExternalStore(e,t,n)};fe.useTransition=function(){return yt.current.useTransition()};fe.version="18.3.1";s0.exports=fe;var p=s0.exports;const R=Fa(p),h0=iE({__proto__:null,default:R},[p]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var kE=p,EE=Symbol.for("react.element"),SE=Symbol.for("react.fragment"),CE=Object.prototype.hasOwnProperty,jE=kE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,TE={key:!0,ref:!0,__self:!0,__source:!0};function p0(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)CE.call(t,r)&&!TE.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:EE,type:e,key:o,ref:i,props:s,_owner:jE.current}}Xc.Fragment=SE;Xc.jsx=p0;Xc.jsxs=p0;r0.exports=Xc;var c=r0.exports,m0={exports:{}},Lt={},g0={exports:{}},v0={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(e){function t(j,N){var P=j.length;j.push(N);e:for(;0<P;){var $=P-1>>>1,B=j[$];if(0<s(B,N))j[$]=N,j[P]=B,P=$;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var N=j[0],P=j.pop();if(P!==N){j[0]=P;e:for(var $=0,B=j.length,te=B>>>1;$<te;){var xe=2*($+1)-1,Be=j[xe],he=xe+1,Ge=j[he];if(0>s(Be,P))he<B&&0>s(Ge,Be)?(j[$]=Ge,j[he]=P,$=he):(j[$]=Be,j[xe]=P,$=xe);else if(he<B&&0>s(Ge,P))j[$]=Ge,j[he]=P,$=he;else break e}}return N}function s(j,N){var P=j.sortIndex-N.sortIndex;return P!==0?P:j.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],d=1,h=null,f=3,m=!1,v=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(j){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=j)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function _(j){if(g=!1,w(j),!v)if(n(l)!==null)v=!0,H(k);else{var N=n(u);N!==null&&ne(_,N.startTime-j)}}function k(j,N){v=!1,g&&(g=!1,y(C),C=-1),m=!0;var P=f;try{for(w(N),h=n(l);h!==null&&(!(h.expirationTime>N)||j&&!W());){var $=h.callback;if(typeof $=="function"){h.callback=null,f=h.priorityLevel;var B=$(h.expirationTime<=N);N=e.unstable_now(),typeof B=="function"?h.callback=B:h===n(l)&&r(l),w(N)}else r(l);h=n(l)}if(h!==null)var te=!0;else{var xe=n(u);xe!==null&&ne(_,xe.startTime-N),te=!1}return te}finally{h=null,f=P,m=!1}}var E=!1,S=null,C=-1,L=5,I=-1;function W(){return!(e.unstable_now()-I<L)}function U(){if(S!==null){var j=e.unstable_now();I=j;var N=!0;try{N=S(!0,j)}finally{N?X():(E=!1,S=null)}}else E=!1}var X;if(typeof x=="function")X=function(){x(U)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,ee=T.port2;T.port1.onmessage=U,X=function(){ee.postMessage(null)}}else X=function(){b(U,0)};function H(j){S=j,E||(E=!0,X())}function ne(j,N){C=b(function(){j(e.unstable_now())},N)}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(j){j.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,H(k))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(f){case 1:case 2:case 3:var N=3;break;default:N=f}var P=f;f=N;try{return j()}finally{f=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,N){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var P=f;f=j;try{return N()}finally{f=P}},e.unstable_scheduleCallback=function(j,N,P){var $=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?$+P:$):P=$,j){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=P+B,j={id:d++,callback:N,priorityLevel:j,startTime:P,expirationTime:B,sortIndex:-1},P>$?(j.sortIndex=P,t(u,j),n(l)===null&&j===n(u)&&(g?(y(C),C=-1):g=!0,ne(_,P-$))):(j.sortIndex=B,t(l,j),v||m||(v=!0,H(k))),j},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(j){var N=f;return function(){var P=f;f=N;try{return j.apply(this,arguments)}finally{f=P}}}})(v0);g0.exports=v0;var PE=g0.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var NE=p,It=PE;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y0=new Set,Ki={};function Ps(e,t){Io(e,t),Io(e+"Capture",t)}function Io(e,t){for(Ki[e]=t,e=0;e<t.length;e++)y0.add(t[e])}var Zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),df=Object.prototype.hasOwnProperty,AE=/^[: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]*$/,tg={},ng={};function RE(e){return df.call(ng,e)?!0:df.call(tg,e)?!1:AE.test(e)?ng[e]=!0:(tg[e]=!0,!1)}function OE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ME(e,t,n,r){if(t===null||typeof t>"u"||OE(e,t,n,r))return!0;
vendor: 5,200 bytes, lines 34-35
34if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function xt(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tt[e]=new xt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tt[t]=new xt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new xt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[e]=new xt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){tt[e]=new xt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new xt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new xt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new xt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new xt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zh=/[\-:]([a-z])/g;function Yh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Zh,Yh);tt[t]=new xt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zh,Yh);tt[t]=new xt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zh,Yh);tt[t]=new xt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new xt(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new xt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new xt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qh(e,t,n,r){var s=tt.hasOwnProperty(t)?tt[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ME(t,n,s,r)&&(n=null),r||s===null?RE(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var rr=NE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,il=Symbol.for("react.element"),Js=Symbol.for("react.portal"),eo=Symbol.for("react.fragment"),Xh=Symbol.for("react.strict_mode"),ff=Symbol.for("react.profiler"),x0=Symbol.for("react.provider"),w0=Symbol.for("react.context"),Jh=Symbol.for("react.forward_ref"),hf=Symbol.for("react.suspense"),pf=Symbol.for("react.suspense_list"),ep=Symbol.for("react.memo"),hr=Symbol.for("react.lazy"),b0=Symbol.for("react.offscreen"),rg=Symbol.iterator;function di(e){return e===null||typeof e!="object"?null:(e=rg&&e[rg]||e["@@iterator"],typeof e=="function"?e:null)}var Le=Object.assign,rd;function ji(e){if(rd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);rd=t&&t[1]||""}return` 35`+rd+e}var sd=!1;function od(e,t){if(!e||sd)return"";sd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 15,597 bytes, lines 35-38
35catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(` 36`),o=r.stack.split(` 37`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=` 38`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{sd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ji(e):""}function DE(e){switch(e.tag){case 5:return ji(e.type);case 16:return ji("Lazy");case 13:return ji("Suspense");case 19:return ji("SuspenseList");case 0:case 2:case 15:return e=od(e.type,!1),e;case 11:return e=od(e.type.render,!1),e;case 1:return e=od(e.type,!0),e;default:return""}}function mf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case eo:return"Fragment";case Js:return"Portal";case ff:return"Profiler";case Xh:return"StrictMode";case hf:return"Suspense";case pf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w0:return(e.displayName||"Context")+".Consumer";case x0:return(e._context.displayName||"Context")+".Provider";case Jh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ep:return t=e.displayName||null,t!==null?t:mf(e.type)||"Memo";case hr:t=e._payload,e=e._init;try{return mf(e(t))}catch{}}return null}function IE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mf(t);case 8:return t===Xh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function LE(e){var t=_0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function al(e){e._valueTracker||(e._valueTracker=LE(e))}function k0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function oc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gf(e,t){var n=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$r(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function E0(e,t){t=t.checked,t!=null&&Qh(e,"checked",t,!1)}function vf(e,t){E0(e,t);var n=$r(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yf(e,t.type,n):t.hasOwnProperty("defaultValue")&&yf(e,t.type,$r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function og(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function yf(e,t,n){(t!=="number"||oc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ti=Array.isArray;function po(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$r(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function xf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return Le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ig(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(Ti(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$r(n)}}function S0(e,t){var n=$r(t.value),r=$r(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ag(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function C0(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function wf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?C0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ll,j0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ll=ll||document.createElement("div"),ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Di={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$E=["Webkit","ms","Moz","O"];Object.keys(Di).forEach(function(e){$E.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Di[t]=Di[e]})});function T0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Di.hasOwnProperty(e)&&Di[e]?(""+t).trim():t+"px"}function P0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=T0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var FE=Le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bf(e,t){if(t){if(FE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function _f(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kf=null;function tp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ef=null,mo=null,go=null;function lg(e){if(e=Va(e)){if(typeof Ef!="function")throw Error(O(280));var t=e.stateNode;t&&(t=ru(t),Ef(e.stateNode,e.type,t))}}function N0(e){mo?go?go.push(e):go=[e]:mo=e}function A0(){if(mo){var e=mo,t=go;if(go=mo=null,lg(e),t)for(e=0;e<t.length;e++)lg(t[e])}}function R0(e,t){return e(t)}function O0(){}var id=!1;function M0(e,t,n){if(id)return e(t,n);id=!0;try{return R0(e,t,n)}finally{id=!1,(mo!==null||go!==null)&&(O0(),A0())}}function Yi(e,t){var n=e.stateNode;if(n===null)return null;var r=ru(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var Sf=!1;if(Zn)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){Sf=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{Sf=!1}function UE(e,t,n,r,s,o,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Ii=!1,ic=null,ac=!1,Cf=null,zE={onError:function(e){Ii=!0,ic=e}};function BE(e,t,n,r,s,o,i,a,l){Ii=!1,ic=null,UE.apply(zE,arguments)}function VE(e,t,n,r,s,o,i,a,l){if(BE.apply(this,arguments),Ii){if(Ii){var u=ic;Ii=!1,ic=null}else throw Error(O(198));ac||(ac=!0,Cf=u)}}function Ns(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function D0(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function cg(e){if(Ns(e)!==e)throw Error(O(188))}function WE(e){var t=e.alternate;if(!t){if(t=Ns(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return cg(s),e;if(o===r)return cg(s),t;o=o.sibling}throw Error(O(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function I0(e){return e=WE(e),e!==null?L0(e):null}function L0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=L0(e);if(t!==null)return t;e=e.sibling}return null}var $0=It.unstable_scheduleCallback,ug=It.unstable_cancelCallback,HE=It.unstable_shouldYield,GE=It.unstable_requestPaint,ze=It.unstable_now,qE=It.unstable_getCurrentPriorityLevel,np=It.unstable_ImmediatePriority,F0=It.unstable_UserBlockingPriority,lc=It.unstable_NormalPriority,KE=It.unstable_LowPriority,U0=It.unstable_IdlePriority,Jc=null,Pn=null;function ZE(e){if(Pn&&typeof Pn.onCommitFiberRoot=="function")try{Pn.onCommitFiberRoot(Jc,e,void 0,(e.current.flags&128)===128)}catch{}}var dn=Math.clz32?Math.clz32:XE,YE=Math.log,QE=Math.LN2;function XE(e){return e>>>=0,e===0?32:31-(YE(e)/QE|0)|0}var cl=64,ul=4194304;function Pi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function cc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=Pi(a):(o&=i,o!==0&&(r=Pi(o)))}else i=n&~s,i!==0?r=Pi(i):o!==0&&(r=Pi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-dn(t),s=1<<n,r|=e[n],t&=~s;return r}function JE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function eS(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-dn(o),a=1<<i,l=s[i];l===-1?(!(a&n)||a&r)&&(s[i]=JE(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function jf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function z0(){var e=cl;return cl<<=1,!(cl&4194240)&&(cl=64),e}function ad(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function za(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=n}function tS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-dn(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function rp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-dn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var _e=0;function B0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var V0,sp,W0,H0,G0,Tf=!1,dl=[],Pr=null,Nr=null,Ar=null,Qi=new Map,Xi=new Map,gr=[],nS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function dg(e,t){switch(e){case"focusin":case"focusout":Pr=null;break;case"dragenter":case"dragleave":Nr=null;break;case"mouseover":case"mouseout":Ar=null;break;case"pointerover":case"pointerout":Qi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xi.delete(t.pointerId)}}function hi(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=Va(t),t!==null&&sp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 12,567 bytes, line 38
38function rS(e,t,n,r,s){switch(t){case"focusin":return Pr=hi(Pr,e,t,n,r,s),!0;case"dragenter":return Nr=hi(Nr,e,t,n,r,s),!0;case"mouseover":return Ar=hi(Ar,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return Qi.set(o,hi(Qi.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,Xi.set(o,hi(Xi.get(o)||null,e,t,n,r,s)),!0}return!1}function q0(e){var t=as(e.target);if(t!==null){var n=Ns(t);if(n!==null){if(t=n.tag,t===13){if(t=D0(n),t!==null){e.blockedOn=t,G0(e.priority,function(){W0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ul(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);kf=r,n.target.dispatchEvent(r),kf=null}else return t=Va(n),t!==null&&sp(t),e.blockedOn=n,!1;t.shift()}return!0}function fg(e,t,n){Ul(e)&&n.delete(t)}function sS(){Tf=!1,Pr!==null&&Ul(Pr)&&(Pr=null),Nr!==null&&Ul(Nr)&&(Nr=null),Ar!==null&&Ul(Ar)&&(Ar=null),Qi.forEach(fg),Xi.forEach(fg)}function pi(e,t){e.blockedOn===t&&(e.blockedOn=null,Tf||(Tf=!0,It.unstable_scheduleCallback(It.unstable_NormalPriority,sS)))}function Ji(e){function t(s){return pi(s,e)}if(0<dl.length){pi(dl[0],e);for(var n=1;n<dl.length;n++){var r=dl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Pr!==null&&pi(Pr,e),Nr!==null&&pi(Nr,e),Ar!==null&&pi(Ar,e),Qi.forEach(t),Xi.forEach(t),n=0;n<gr.length;n++)r=gr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<gr.length&&(n=gr[0],n.blockedOn===null);)q0(n),n.blockedOn===null&&gr.shift()}var vo=rr.ReactCurrentBatchConfig,uc=!0;function oS(e,t,n,r){var s=_e,o=vo.transition;vo.transition=null;try{_e=1,op(e,t,n,r)}finally{_e=s,vo.transition=o}}function iS(e,t,n,r){var s=_e,o=vo.transition;vo.transition=null;try{_e=4,op(e,t,n,r)}finally{_e=s,vo.transition=o}}function op(e,t,n,r){if(uc){var s=Pf(e,t,n,r);if(s===null)vd(e,t,r,dc,n),dg(e,r);else if(rS(s,e,t,n,r))r.stopPropagation();else if(dg(e,r),t&4&&-1<nS.indexOf(e)){for(;s!==null;){var o=Va(s);if(o!==null&&V0(o),o=Pf(e,t,n,r),o===null&&vd(e,t,r,dc,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else vd(e,t,r,null,n)}}var dc=null;function Pf(e,t,n,r){if(dc=null,e=tp(r),e=as(e),e!==null)if(t=Ns(e),t===null)e=null;else if(n=t.tag,n===13){if(e=D0(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return dc=e,null}function K0(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qE()){case np:return 1;case F0:return 4;case lc:case KE:return 16;case U0:return 536870912;default:return 16}default:return 16}}var Cr=null,ip=null,zl=null;function Z0(){if(zl)return zl;var e,t=ip,n=t.length,r,s="value"in Cr?Cr.value:Cr.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return zl=s.slice(e,1<r?1-r:void 0)}function Bl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fl(){return!0}function hg(){return!1}function $t(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?fl:hg,this.isPropagationStopped=hg,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=fl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),t}var Xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ap=$t(Xo),Ba=Le({},Xo,{view:0,detail:0}),aS=$t(Ba),ld,cd,mi,eu=Le({},Ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==mi&&(mi&&e.type==="mousemove"?(ld=e.screenX-mi.screenX,cd=e.screenY-mi.screenY):cd=ld=0,mi=e),ld)},movementY:function(e){return"movementY"in e?e.movementY:cd}}),pg=$t(eu),lS=Le({},eu,{dataTransfer:0}),cS=$t(lS),uS=Le({},Ba,{relatedTarget:0}),ud=$t(uS),dS=Le({},Xo,{animationName:0,elapsedTime:0,pseudoElement:0}),fS=$t(dS),hS=Le({},Xo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pS=$t(hS),mS=Le({},Xo,{data:0}),mg=$t(mS),gS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vS={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"},yS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yS[e])?!!t[e]:!1}function lp(){return xS}var wS=Le({},Ba,{key:function(e){if(e.key){var t=gS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lp,charCode:function(e){return e.type==="keypress"?Bl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bS=$t(wS),_S=Le({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gg=$t(_S),kS=Le({},Ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lp}),ES=$t(kS),SS=Le({},Xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),CS=$t(SS),jS=Le({},eu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),TS=$t(jS),PS=[9,13,27,32],cp=Zn&&"CompositionEvent"in window,Li=null;Zn&&"documentMode"in document&&(Li=document.documentMode);var NS=Zn&&"TextEvent"in window&&!Li,Y0=Zn&&(!cp||Li&&8<Li&&11>=Li),vg=" ",yg=!1;function Q0(e,t){switch(e){case"keyup":return PS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function X0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var to=!1;function AS(e,t){switch(e){case"compositionend":return X0(t);case"keypress":return t.which!==32?null:(yg=!0,vg);case"textInput":return e=t.data,e===vg&&yg?null:e;default:return null}}function RS(e,t){if(to)return e==="compositionend"||!cp&&Q0(e,t)?(e=Z0(),zl=ip=Cr=null,to=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Y0&&t.locale!=="ko"?null:t.data;default:return null}}var OS={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 xg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OS[e.type]:t==="textarea"}function J0(e,t,n,r){N0(r),t=fc(t,"onChange"),0<t.length&&(n=new ap("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $i=null,ea=null;function MS(e){ux(e,0)}function tu(e){var t=so(e);if(k0(t))return e}function DS(e,t){if(e==="change")return t}var ex=!1;if(Zn){var dd;if(Zn){var fd="oninput"in document;if(!fd){var wg=document.createElement("div");wg.setAttribute("oninput","return;"),fd=typeof wg.oninput=="function"}dd=fd}else dd=!1;ex=dd&&(!document.documentMode||9<document.documentMode)}function bg(){$i&&($i.detachEvent("onpropertychange",tx),ea=$i=null)}function tx(e){if(e.propertyName==="value"&&tu(ea)){var t=[];J0(t,ea,e,tp(e)),M0(MS,t)}}function IS(e,t,n){e==="focusin"?(bg(),$i=t,ea=n,$i.attachEvent("onpropertychange",tx)):e==="focusout"&&bg()}function LS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(ea)}function $S(e,t){if(e==="click")return tu(t)}function FS(e,t){if(e==="input"||e==="change")return tu(t)}function US(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pn=typeof Object.is=="function"?Object.is:US;function ta(e,t){if(pn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!df.call(t,s)||!pn(e[s],t[s]))return!1}return!0}function _g(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kg(e,t){var n=_g(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_g(n)}}function nx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rx(){for(var e=window,t=oc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=oc(e.document)}return t}function up(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zS(e){var t=rx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&nx(n.ownerDocument.documentElement,n)){if(r!==null&&up(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=kg(n,o);var i=kg(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}
vendor: 4,766 bytes, line 38
38var BS=Zn&&"documentMode"in document&&11>=document.documentMode,no=null,Nf=null,Fi=null,Af=!1;function Eg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Af||no==null||no!==oc(r)||(r=no,"selectionStart"in r&&up(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fi&&ta(Fi,r)||(Fi=r,r=fc(Nf,"onSelect"),0<r.length&&(t=new ap("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=no)))}function hl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ro={animationend:hl("Animation","AnimationEnd"),animationiteration:hl("Animation","AnimationIteration"),animationstart:hl("Animation","AnimationStart"),transitionend:hl("Transition","TransitionEnd")},hd={},sx={};Zn&&(sx=document.createElement("div").style,"AnimationEvent"in window||(delete ro.animationend.animation,delete ro.animationiteration.animation,delete ro.animationstart.animation),"TransitionEvent"in window||delete ro.transitionend.transition);function nu(e){if(hd[e])return hd[e];if(!ro[e])return e;var t=ro[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in sx)return hd[e]=t[n];return e}var ox=nu("animationend"),ix=nu("animationiteration"),ax=nu("animationstart"),lx=nu("transitionend"),cx=new Map,Sg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Zr(e,t){cx.set(e,t),Ps(t,[e])}for(var pd=0;pd<Sg.length;pd++){var md=Sg[pd],VS=md.toLowerCase(),WS=md[0].toUpperCase()+md.slice(1);Zr(VS,"on"+WS)}Zr(ox,"onAnimationEnd");Zr(ix,"onAnimationIteration");Zr(ax,"onAnimationStart");Zr("dblclick","onDoubleClick");Zr("focusin","onFocus");Zr("focusout","onBlur");Zr(lx,"onTransitionEnd");Io("onMouseEnter",["mouseout","mouseover"]);Io("onMouseLeave",["mouseout","mouseover"]);Io("onPointerEnter",["pointerout","pointerover"]);Io("onPointerLeave",["pointerout","pointerover"]);Ps("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ps("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ps("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ps("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ps("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ps("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ni="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(" "),HS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ni));function Cg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,VE(r,t,void 0,e),e.currentTarget=null}function ux(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;Cg(s,a,u),o=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;Cg(s,a,u),o=l}}}if(ac)throw e=Cf,ac=!1,Cf=null,e}function Pe(e,t){var n=t[If];n===void 0&&(n=t[If]=new Set);var r=e+"__bubble";n.has(r)||(dx(t,e,2,!1),n.add(r))}function gd(e,t,n){var r=0;t&&(r|=4),dx(n,e,r,t)}var pl="_reactListening"+Math.random().toString(36).slice(2);function na(e){if(!e[pl]){e[pl]=!0,y0.forEach(function(n){n!=="selectionchange"&&(HS.has(n)||gd(n,!1,e),gd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pl]||(t[pl]=!0,gd("selectionchange",!1,t))}}function dx(e,t,n,r){switch(K0(t)){case 1:var s=oS;break;case 4:s=iS;break;default:s=op}n=s.bind(null,t,n,e),s=void 0,!Sf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}
vendor: 1,195 bytes, line 38
38function vd(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=as(a),i===null)return;if(l=i.tag,l===5||l===6){r=o=i;continue e}a=a.parentNode}}r=r.return}M0(function(){var u=o,d=tp(n),h=[];e:{var f=cx.get(e);if(f!==void 0){var m=ap,v=e;switch(e){case"keypress":if(Bl(n)===0)break e;case"keydown":case"keyup":m=bS;break;case"focusin":v="focus",m=ud;break;case"focusout":v="blur",m=ud;break;case"beforeblur":case"afterblur":m=ud;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=pg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=cS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=ES;break;case ox:case ix:case ax:m=fS;break;case lx:m=CS;break;case"scroll":m=aS;break;
vendor: 1,481 bytes, line 38
38case"wheel":m=TS;break;case"copy":case"cut":case"paste":m=pS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=gg}var g=(t&4)!==0,b=!g&&e==="scroll",y=g?f!==null?f+"Capture":null:f;g=[];for(var x=u,w;x!==null;){w=x;var _=w.stateNode;if(w.tag===5&&_!==null&&(w=_,y!==null&&(_=Yi(x,y),_!=null&&g.push(ra(x,_,w)))),b)break;x=x.return}0<g.length&&(f=new m(f,v,null,n,d),h.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==kf&&(v=n.relatedTarget||n.fromElement)&&(as(v)||v[Yn]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=u,v=v?as(v):null,v!==null&&(b=Ns(v),v!==b||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=u),m!==v)){if(g=pg,_="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(g=gg,_="onPointerLeave",y="onPointerEnter",x="pointer"),b=m==null?f:so(m),w=v==null?f:so(v),f=new g(_,x+"leave",m,n,d),f.target=b,f.relatedTarget=w,_=null,as(d)===u&&(g=new g(y,x+"enter",v,n,d),g.target=w,g.relatedTarget=b,_=g),b=_,m&&v)t:{for(g=m,y=v,x=0,w=g;w;w=zs(w))x++;for(w=0,_=y;_;_=zs(_))w++;for(;0<x-w;)g=zs(g),x--;for(;0<w-x;)y=zs(y),w--;for(;x--;){if(g===y||y!==null&&g===y.alternate)break t;g=zs(g),y=zs(y)}g=null}else g=null;m!==null&&jg(h,f,m,g,!1),v!==null&&b!==null&&jg(h,b,v,g,!0)}}
vendor: 4,435 bytes, lines 38-39
38e:{if(f=u?so(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var k=DS;else if(xg(f))if(ex)k=FS;else{k=LS;var E=IS}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=$S);if(k&&(k=k(e,u))){J0(h,k,n,d);break e}E&&E(e,f,u),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&yf(f,"number",f.value)}switch(E=u?so(u):window,e){case"focusin":(xg(E)||E.contentEditable==="true")&&(no=E,Nf=u,Fi=null);break;case"focusout":Fi=Nf=no=null;break;case"mousedown":Af=!0;break;case"contextmenu":case"mouseup":case"dragend":Af=!1,Eg(h,n,d);break;case"selectionchange":if(BS)break;case"keydown":case"keyup":Eg(h,n,d)}var S;if(cp)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else to?Q0(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Y0&&n.locale!=="ko"&&(to||C!=="onCompositionStart"?C==="onCompositionEnd"&&to&&(S=Z0()):(Cr=d,ip="value"in Cr?Cr.value:Cr.textContent,to=!0)),E=fc(u,C),0<E.length&&(C=new mg(C,e,null,n,d),h.push({event:C,listeners:E}),S?C.data=S:(S=X0(n),S!==null&&(C.data=S)))),(S=NS?AS(e,n):RS(e,n))&&(u=fc(u,"onBeforeInput"),0<u.length&&(d=new mg("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=S))}ux(h,t)})}function ra(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fc(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Yi(e,n),o!=null&&r.unshift(ra(e,o,s)),o=Yi(e,t),o!=null&&r.push(ra(e,o,s))),e=e.return}return r}function zs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function jg(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=Yi(n,o),l!=null&&i.unshift(ra(n,l,a))):s||(l=Yi(n,o),l!=null&&i.push(ra(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var GS=/\r\n?/g,qS=/\u0000|\uFFFD/g;function Tg(e){return(typeof e=="string"?e:""+e).replace(GS,` 39`).replace(qS,"")}function ml(e,t,n){if(t=Tg(t),Tg(e)!==t&&n)throw Error(O(425))}function hc(){}var Rf=null,Of=null;function Mf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Df=typeof setTimeout=="function"?setTimeout:void 0,KS=typeof clearTimeout=="function"?clearTimeout:void 0,Pg=typeof Promise=="function"?Promise:void 0,ZS=typeof queueMicrotask=="function"?queueMicrotask:typeof Pg<"u"?function(e){return Pg.resolve(null).then(e).catch(YS)}:Df;function YS(e){setTimeout(function(){throw e})}function yd(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Ji(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Ji(t)}function Rr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ng(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Jo=Math.random().toString(36).slice(2),jn="__reactFiber$"+Jo,sa="__reactProps$"+Jo,Yn="__reactContainer$"+Jo,If="__reactEvents$"+Jo,QS="__reactListeners$"+Jo,XS="__reactHandles$"+Jo;function as(e){var t=e[jn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yn]||n[jn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ng(e);e!==null;){if(n=e[jn])return n;e=Ng(e)}return t}e=n,n=e.parentNode}return null}function Va(e){return e=e[jn]||e[Yn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function so(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function ru(e){return e[sa]||null}var Lf=[],oo=-1;function Yr(e){return{current:e}}function Ne(e){0>oo||(e.current=Lf[oo],Lf[oo]=null,oo--)}function Ce(e,t){oo++,Lf[oo]=e.current,e.current=t}var Fr={},lt=Yr(Fr),St=Yr(!1),xs=Fr;function Lo(e,t){var n=e.type.contextTypes;if(!n)return Fr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;
vendor: 14,751 bytes, line 39
39for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ct(e){return e=e.childContextTypes,e!=null}function pc(){Ne(St),Ne(lt)}function Ag(e,t,n){if(lt.current!==Fr)throw Error(O(168));Ce(lt,t),Ce(St,n)}function fx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(O(108,IE(e)||"Unknown",s));return Le({},n,r)}function mc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fr,xs=lt.current,Ce(lt,e),Ce(St,St.current),!0}function Rg(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=fx(e,t,xs),r.__reactInternalMemoizedMergedChildContext=e,Ne(St),Ne(lt),Ce(lt,e)):Ne(St),Ce(St,n)}var Wn=null,su=!1,xd=!1;function hx(e){Wn===null?Wn=[e]:Wn.push(e)}function JS(e){su=!0,hx(e)}function Qr(){if(!xd&&Wn!==null){xd=!0;var e=0,t=_e;try{var n=Wn;for(_e=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Wn=null,su=!1}catch(s){throw Wn!==null&&(Wn=Wn.slice(e+1)),$0(np,Qr),s}finally{_e=t,xd=!1}}return null}var io=[],ao=0,gc=null,vc=0,Wt=[],Ht=0,ws=null,Hn=1,Gn="";function rs(e,t){io[ao++]=vc,io[ao++]=gc,gc=e,vc=t}function px(e,t,n){Wt[Ht++]=Hn,Wt[Ht++]=Gn,Wt[Ht++]=ws,ws=e;var r=Hn;e=Gn;var s=32-dn(r)-1;r&=~(1<<s),n+=1;var o=32-dn(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,Hn=1<<32-dn(t)+s|n<<s|r,Gn=o+e}else Hn=1<<o|n<<s|r,Gn=e}function dp(e){e.return!==null&&(rs(e,1),px(e,1,0))}function fp(e){for(;e===gc;)gc=io[--ao],io[ao]=null,vc=io[--ao],io[ao]=null;for(;e===ws;)ws=Wt[--Ht],Wt[Ht]=null,Gn=Wt[--Ht],Wt[Ht]=null,Hn=Wt[--Ht],Wt[Ht]=null}var Ot=null,Rt=null,Ae=!1,ln=null;function mx(e,t){var n=Gt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Og(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ot=e,Rt=Rr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ot=e,Rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ws!==null?{id:Hn,overflow:Gn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Gt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ot=e,Rt=null,!0):!1;default:return!1}}function $f(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ff(e){if(Ae){var t=Rt;if(t){var n=t;if(!Og(e,t)){if($f(e))throw Error(O(418));t=Rr(n.nextSibling);var r=Ot;t&&Og(e,t)?mx(r,n):(e.flags=e.flags&-4097|2,Ae=!1,Ot=e)}}else{if($f(e))throw Error(O(418));e.flags=e.flags&-4097|2,Ae=!1,Ot=e}}}function Mg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ot=e}function gl(e){if(e!==Ot)return!1;if(!Ae)return Mg(e),Ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Mf(e.type,e.memoizedProps)),t&&(t=Rt)){if($f(e))throw gx(),Error(O(418));for(;t;)mx(e,t),t=Rr(t.nextSibling)}if(Mg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Rt=Rr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Rt=null}}else Rt=Ot?Rr(e.stateNode.nextSibling):null;return!0}function gx(){for(var e=Rt;e;)e=Rr(e.nextSibling)}function $o(){Rt=Ot=null,Ae=!1}function hp(e){ln===null?ln=[e]:ln.push(e)}var eC=rr.ReactCurrentBatchConfig;function gi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function vl(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Dg(e){var t=e._init;return t(e._payload)}function vx(e){function t(y,x){if(e){var w=y.deletions;w===null?(y.deletions=[x],y.flags|=16):w.push(x)}}function n(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function r(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function s(y,x){return y=Ir(y,x),y.index=0,y.sibling=null,y}function o(y,x,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<x?(y.flags|=2,x):w):(y.flags|=2,x)):(y.flags|=1048576,x)}function i(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,x,w,_){return x===null||x.tag!==6?(x=Cd(w,y.mode,_),x.return=y,x):(x=s(x,w),x.return=y,x)}function l(y,x,w,_){var k=w.type;return k===eo?d(y,x,w.props.children,_,w.key):x!==null&&(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===hr&&Dg(k)===x.type)?(_=s(x,w.props),_.ref=gi(y,x,w),_.return=y,_):(_=Zl(w.type,w.key,w.props,null,y.mode,_),_.ref=gi(y,x,w),_.return=y,_)}function u(y,x,w,_){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=jd(w,y.mode,_),x.return=y,x):(x=s(x,w.children||[]),x.return=y,x)}function d(y,x,w,_,k){return x===null||x.tag!==7?(x=gs(w,y.mode,_,k),x.return=y,x):(x=s(x,w),x.return=y,x)}function h(y,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return x=Cd(""+x,y.mode,w),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case il:return w=Zl(x.type,x.key,x.props,null,y.mode,w),w.ref=gi(y,null,x),w.return=y,w;case Js:return x=jd(x,y.mode,w),x.return=y,x;case hr:var _=x._init;return h(y,_(x._payload),w)}if(Ti(x)||di(x))return x=gs(x,y.mode,w,null),x.return=y,x;vl(y,x)}return null}function f(y,x,w,_){var k=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:a(y,x,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case il:return w.key===k?l(y,x,w,_):null;case Js:return w.key===k?u(y,x,w,_):null;case hr:return k=w._init,f(y,x,k(w._payload),_)}if(Ti(w)||di(w))return k!==null?null:d(y,x,w,_,null);vl(y,w)}return null}function m(y,x,w,_,k){if(typeof _=="string"&&_!==""||typeof _=="number")return y=y.get(w)||null,a(x,y,""+_,k);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case il:return y=y.get(_.key===null?w:_.key)||null,l(x,y,_,k);case Js:return y=y.get(_.key===null?w:_.key)||null,u(x,y,_,k);case hr:var E=_._init;return m(y,x,w,E(_._payload),k)}if(Ti(_)||di(_))return y=y.get(w)||null,d(x,y,_,k,null);vl(x,_)}return null}function v(y,x,w,_){for(var k=null,E=null,S=x,C=x=0,L=null;S!==null&&C<w.length;C++){S.index>C?(L=S,S=null):L=S.sibling;var I=f(y,S,w[C],_);if(I===null){S===null&&(S=L);break}e&&S&&I.alternate===null&&t(y,S),x=o(I,x,C),E===null?k=I:E.sibling=I,E=I,S=L}if(C===w.length)return n(y,S),Ae&&rs(y,C),k;if(S===null){for(;C<w.length;C++)S=h(y,w[C],_),S!==null&&(x=o(S,x,C),E===null?k=S:E.sibling=S,E=S);return Ae&&rs(y,C),k}for(S=r(y,S);C<w.length;C++)L=m(S,y,C,w[C],_),L!==null&&(e&&L.alternate!==null&&S.delete(L.key===null?C:L.key),x=o(L,x,C),E===null?k=L:E.sibling=L,E=L);return e&&S.forEach(function(W){return t(y,W)}),Ae&&rs(y,C),k}function g(y,x,w,_){var k=di(w);if(typeof k!="function")throw Error(O(150));if(w=k.call(w),w==null)throw Error(O(151));for(var E=k=null,S=x,C=x=0,L=null,I=w.next();S!==null&&!I.done;C++,I=w.next()){S.index>C?(L=S,S=null):L=S.sibling;var W=f(y,S,I.value,_);if(W===null){S===null&&(S=L);break}e&&S&&W.alternate===null&&t(y,S),x=o(W,x,C),E===null?k=W:E.sibling=W,E=W,S=L}if(I.done)return n(y,S),Ae&&rs(y,C),k;if(S===null){for(;!I.done;C++,I=w.next())I=h(y,I.value,_),I!==null&&(x=o(I,x,C),E===null?k=I:E.sibling=I,E=I);return Ae&&rs(y,C),k}for(S=r(y,S);!I.done;C++,I=w.next())I=m(S,y,C,I.value,_),I!==null&&(e&&I.alternate!==null&&S.delete(I.key===null?C:I.key),x=o(I,x,C),E===null?k=I:E.sibling=I,E=I);return e&&S.forEach(function(U){return t(y,U)}),Ae&&rs(y,C),k}function b(y,x,w,_){if(typeof w=="object"&&w!==null&&w.type===eo&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case il:e:{for(var k=w.key,E=x;E!==null;){if(E.key===k){if(k=w.type,k===eo){if(E.tag===7){n(y,E.sibling),x=s(E,w.props.children),x.return=y,y=x;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===hr&&Dg(k)===E.type){n(y,E.sibling),x=s(E,w.props),x.ref=gi(y,E,w),x.return=y,y=x;break e}n(y,E);break}else t(y,E);E=E.sibling}w.type===eo?(x=gs(w.props.children,y.mode,_,w.key),x.return=y,y=x):(_=Zl(w.type,w.key,w.props,null,y.mode,_),_.ref=gi(y,x,w),_.return=y,y=_)}return i(y);case Js:e:{for(E=w.key;x!==null;){if(x.key===E)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){n(y,x.sibling),x=s(x,w.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=jd(w,y.mode,_),x.return=y,y=x}return i(y);case hr:return E=w._init,b(y,x,E(w._payload),_)}if(Ti(w))return v(y,x,w,_);if(di(w))return g(y,x,w,_);vl(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(n(y,x.sibling),x=s(x,w),x.return=y,y=x):(n(y,x),x=Cd(w,y.mode,_),x.return=y,y=x),i(y)):n(y,x)}return b}var Fo=vx(!0),yx=vx(!1),yc=Yr(null),xc=null,lo=null,pp=null;function mp(){pp=lo=xc=null}function gp(e){var t=yc.current;Ne(yc),e._currentValue=t}function Uf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yo(e,t){xc=e,pp=lo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Et=!0),e.firstContext=null)}function Yt(e){var t=e._currentValue;if(pp!==e)if(e={context:e,memoizedValue:t,next:null},lo===null){if(xc===null)throw Error(O(308));lo=e,xc.dependencies={lanes:0,firstContext:e}}else lo=lo.next=e;return t}var ls=null;function vp(e){ls===null?ls=[e]:ls.push(e)}function xx(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,vp(t)):(n.next=s.next,s.next=n),t.interleaved=n,Qn(e,r)}function Qn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var pr=!1;function yp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Or(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ge&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Qn(e,n)}return s=r.interleaved,s===null?(t.next=t,vp(r)):(t.next=s.next,s.next=t),r.interleaved=t,Qn(e,n)}function Vl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rp(e,n)}}function Ig(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function wc(e,t,n,r){var s=e.updateQueue;pr=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?o=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(o!==null){var h=s.baseState;i=0,d=u=l=null,a=o;do{var f=a.lane,m=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,g=a;switch(f=t,m=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){h=v.call(m,h,f);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,f=typeof v=="function"?v.call(m,h,f):v,f==null)break e;h=Le({},h,f);break e;case 2:pr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[a]:f.push(a))}else m={eventTime:m,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=m,l=h):d=d.next=m,i|=f;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;f=a,a=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(d===null&&(l=h),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);_s|=i,e.lanes=i,e.memoizedState=h}}function Lg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(O(191,s));s.call(r)}}}var Wa={},Nn=Yr(Wa),oa=Yr(Wa),ia=Yr(Wa);function cs(e){if(e===Wa)throw Error(O(174));return e}function xp(e,t){switch(Ce(ia,t),Ce(oa,e),Ce(Nn,Wa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wf(t,e)}Ne(Nn),Ce(Nn,t)}function Uo(){Ne(Nn),Ne(oa),Ne(ia)}function bx(e){cs(ia.current);var t=cs(Nn.current),n=wf(t,e.type);t!==n&&(Ce(oa,e),Ce(Nn,n))}function wp(e){oa.current===e&&(Ne(Nn),Ne(oa))}var Me=Yr(0);function bc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wd=[];function bp(){for(var e=0;e<wd.length;e++)wd[e]._workInProgressVersionPrimary=null;wd.length=0}var Wl=rr.ReactCurrentDispatcher,bd=rr.ReactCurrentBatchConfig,bs=0,De=null,We=null,Ze=null,_c=!1,Ui=!1,aa=0,tC=0;function rt(){throw Error(O(321))}function _p(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pn(e[n],t[n]))return!1;return!0}function kp(e,t,n,r,s,o){if(bs=o,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wl.current=e===null||e.memoizedState===null?oC:iC,e=n(r,s),Ui){o=0;
vendor: 4,391 bytes, line 39
39do{if(Ui=!1,aa=0,25<=o)throw Error(O(301));o+=1,Ze=We=null,t.updateQueue=null,Wl.current=aC,e=n(r,s)}while(Ui)}if(Wl.current=kc,t=We!==null&&We.next!==null,bs=0,Ze=We=De=null,_c=!1,t)throw Error(O(300));return e}function Ep(){var e=aa!==0;return aa=0,e}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?De.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Qt(){if(We===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=We.next;var t=Ze===null?De.memoizedState:Ze.next;if(t!==null)Ze=t,We=e;else{if(e===null)throw Error(O(310));We=e,e={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},Ze===null?De.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function la(e,t){return typeof t=="function"?t(e):t}function _d(e){var t=Qt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=We,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var a=i=null,l=null,u=o;do{var d=u.lane;if((bs&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=h,i=r):l=l.next=h,De.lanes|=d,_s|=d}u=u.next}while(u!==null&&u!==o);l===null?i=r:l.next=a,pn(r,t.memoizedState)||(Et=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,De.lanes|=o,_s|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function kd(e){var t=Qt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);pn(o,t.memoizedState)||(Et=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function _x(){}function kx(e,t){var n=De,r=Qt(),s=t(),o=!pn(r.memoizedState,s);if(o&&(r.memoizedState=s,Et=!0),r=r.queue,Sp(Cx.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ze!==null&&Ze.memoizedState.tag&1){if(n.flags|=2048,ca(9,Sx.bind(null,n,r,s,t),void 0,null),Ye===null)throw Error(O(349));bs&30||Ex(n,t,s)}return s}function Ex(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sx(e,t,n,r){t.value=n,t.getSnapshot=r,jx(t)&&Tx(e)}function Cx(e,t,n){return n(function(){jx(t)&&Tx(e)})}function jx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pn(e,n)}catch{return!0}}function Tx(e){var t=Qn(e,1);t!==null&&fn(t,e,1,-1)}function $g(e){var t=kn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:e},t.queue=e,e=e.dispatch=sC.bind(null,De,e),[t.memoizedState,e]}function ca(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Px(){return Qt().memoizedState}function Hl(e,t,n,r){var s=kn();De.flags|=e,s.memoizedState=ca(1|t,n,void 0,r===void 0?null:r)}function ou(e,t,n,r){var s=Qt();r=r===void 0?null:r;var o=void 0;if(We!==null){var i=We.memoizedState;if(o=i.destroy,r!==null&&_p(r,i.deps)){s.memoizedState=ca(t,n,o,r);return}}De.flags|=e,s.memoizedState=ca(1|t,n,o,r)}function Fg(e,t){return Hl(8390656,8,e,t)}function Sp(e,t){return ou(2048,8,e,t)}function Nx(e,t){return ou(4,2,e,t)}function Ax(e,t){return ou(4,4,e,t)}function Rx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ox(e,t,n){return n=n!=null?n.concat([e]):null,ou(4,4,Rx.bind(null,t,e),n)}function Cp(){}function Mx(e,t){var n=Qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_p(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Dx(e,t){var n=Qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_p(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}
vendor: 9,632 bytes, lines 39-41
39function Ix(e,t,n){return bs&21?(pn(n,t)||(n=z0(),De.lanes|=n,_s|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Et=!0),e.memoizedState=n)}function nC(e,t){var n=_e;_e=n!==0&&4>n?n:4,e(!0);var r=bd.transition;bd.transition={};try{e(!1),t()}finally{_e=n,bd.transition=r}}function Lx(){return Qt().memoizedState}function rC(e,t,n){var r=Dr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$x(e))Fx(t,n);else if(n=xx(e,t,n,r),n!==null){var s=mt();fn(n,e,r,s),Ux(n,t,r)}}function sC(e,t,n){var r=Dr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($x(e))Fx(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(s.hasEagerState=!0,s.eagerState=a,pn(a,i)){var l=t.interleaved;l===null?(s.next=s,vp(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=xx(e,t,s,r),n!==null&&(s=mt(),fn(n,e,r,s),Ux(n,t,r))}}function $x(e){var t=e.alternate;return e===De||t!==null&&t===De}function Fx(e,t){Ui=_c=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ux(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rp(e,n)}}var kc={readContext:Yt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},oC={readContext:Yt,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:Yt,useEffect:Fg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hl(4194308,4,Rx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hl(4,2,e,t)},useMemo:function(e,t){var n=kn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=rC.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:$g,useDebugValue:Cp,useDeferredValue:function(e){return kn().memoizedState=e},useTransition:function(){var e=$g(!1),t=e[0];return e=nC.bind(null,e[1]),kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,s=kn();if(Ae){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ye===null)throw Error(O(349));bs&30||Ex(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,Fg(Cx.bind(null,r,o,e),[e]),r.flags|=2048,ca(9,Sx.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=kn(),t=Ye.identifierPrefix;if(Ae){var n=Gn,r=Hn;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=aa++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=tC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},iC={readContext:Yt,useCallback:Mx,useContext:Yt,useEffect:Sp,useImperativeHandle:Ox,useInsertionEffect:Nx,useLayoutEffect:Ax,useMemo:Dx,useReducer:_d,useRef:Px,useState:function(){return _d(la)},useDebugValue:Cp,useDeferredValue:function(e){var t=Qt();return Ix(t,We.memoizedState,e)},useTransition:function(){var e=_d(la)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:_x,useSyncExternalStore:kx,useId:Lx,unstable_isNewReconciler:!1},aC={readContext:Yt,useCallback:Mx,useContext:Yt,useEffect:Sp,useImperativeHandle:Ox,useInsertionEffect:Nx,useLayoutEffect:Ax,useMemo:Dx,useReducer:kd,useRef:Px,useState:function(){return kd(la)},useDebugValue:Cp,useDeferredValue:function(e){var t=Qt();return We===null?t.memoizedState=e:Ix(t,We.memoizedState,e)},useTransition:function(){var e=kd(la)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:_x,useSyncExternalStore:kx,useId:Lx,unstable_isNewReconciler:!1};function nn(e,t){if(e&&e.defaultProps){t=Le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function zf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var iu={isMounted:function(e){return(e=e._reactInternals)?Ns(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mt(),s=Dr(e),o=qn(r,s);o.payload=t,n!=null&&(o.callback=n),t=Or(e,o,s),t!==null&&(fn(t,e,s,r),Vl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mt(),s=Dr(e),o=qn(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Or(e,o,s),t!==null&&(fn(t,e,s,r),Vl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mt(),r=Dr(e),s=qn(n,r);s.tag=2,t!=null&&(s.callback=t),t=Or(e,s,r),t!==null&&(fn(t,e,r,n),Vl(t,e,r))}};function Ug(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!ta(n,r)||!ta(s,o):!0}function zx(e,t,n){var r=!1,s=Fr,o=t.contextType;return typeof o=="object"&&o!==null?o=Yt(o):(s=Ct(t)?xs:lt.current,r=t.contextTypes,o=(r=r!=null)?Lo(e,s):Fr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=iu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function zg(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&iu.enqueueReplaceState(t,t.state,null)}function Bf(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},yp(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Yt(o):(o=Ct(t)?xs:lt.current,s.context=Lo(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(zf(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&iu.enqueueReplaceState(s,s.state,null),wc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function zo(e,t){try{var n="",r=t;do n+=DE(r),r=r.return;while(r);var s=n}catch(o){s=` 40Error generating stack: `+o.message+` 41`+o.stack}return{value:e,source:t,stack:s,digest:null}}function Ed(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Vf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var lC=typeof WeakMap=="function"?WeakMap:Map;function Bx(e,t,n){n=qn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sc||(Sc=!0,Jf=r),Vf(e,t)},n}function Vx(e,t,n){n=qn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Vf(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Vf(e,t),typeof r!="function"&&(Mr===null?Mr=new Set([this]):Mr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Bg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new lC;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=_C.bind(null,e,t,n),t.then(e,e))}function Vg(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Wg(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=qn(-1,1),t.tag=2,Or(n,t,1))),n.lanes|=1),e)}var cC=rr.ReactCurrentOwner,Et=!1;function ht(e,t,n,r){t.child=e===null?yx(t,null,n,r):Fo(t,e.child,n,r)}function Hg(e,t,n,r,s){n=n.render;var o=t.ref;return yo(t,s),r=kp(e,t,n,r,o,s),n=Ep(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xn(e,t,s)):(Ae&&n&&dp(t),t.flags|=1,ht(e,t,r,s),t.child)}function Gg(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!Mp(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Wx(e,t,o,r,s)):(e=Zl(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:ta,n(i,r)&&e.ref===t.ref)return Xn(e,t,s)}return t.flags|=1,e=Ir(o,r),e.ref=t.ref,e.return=t,t.child=e}function Wx(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(ta(o,r)&&e.ref===t.ref)if(Et=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(Et=!0);else return t.lanes=e.lanes,Xn(e,t,s)}return Wf(e,t,n,r,s)}function Hx(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(uo,Nt),Nt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ce(uo,Nt),Nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ce(uo,Nt),Nt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ce(uo,Nt),Nt|=r;return ht(e,t,s,n),t.child}function Gx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 3,423 bytes, line 41
41function Wf(e,t,n,r,s){var o=Ct(n)?xs:lt.current;return o=Lo(t,o),yo(t,s),n=kp(e,t,n,r,o,s),r=Ep(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xn(e,t,s)):(Ae&&r&&dp(t),t.flags|=1,ht(e,t,n,s),t.child)}function qg(e,t,n,r,s){if(Ct(n)){var o=!0;mc(t)}else o=!1;if(yo(t,s),t.stateNode===null)Gl(e,t),zx(t,n,r),Bf(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Yt(u):(u=Ct(n)?xs:lt.current,u=Lo(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&zg(t,i,r,u),pr=!1;var f=t.memoizedState;i.state=f,wc(t,r,i,s),l=t.memoizedState,a!==r||f!==l||St.current||pr?(typeof d=="function"&&(zf(t,n,d,r),l=t.memoizedState),(a=pr||Ug(t,n,a,r,f,l,u))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,wx(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:nn(t.type,a),i.props=u,h=t.pendingProps,f=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Yt(l):(l=Ct(n)?xs:lt.current,l=Lo(t,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==h||f!==l)&&zg(t,i,r,l),pr=!1,f=t.memoizedState,i.state=f,wc(t,r,i,s);var v=t.memoizedState;a!==h||f!==v||St.current||pr?(typeof m=="function"&&(zf(t,n,m,r),v=t.memoizedState),(u=pr||Ug(t,n,u,r,f,v,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Hf(e,t,n,r,o,s)}function Hf(e,t,n,r,s,o){Gx(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&Rg(t,n,!1),Xn(e,t,o);r=t.stateNode,cC.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Fo(t,e.child,null,o),t.child=Fo(t,null,a,o)):ht(e,t,a,o),t.memoizedState=r.state,s&&Rg(t,n,!0),t.child}function qx(e){var t=e.stateNode;t.pendingContext?Ag(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ag(e,t.context,!1),xp(e,t.containerInfo)}
vendor: 4,755 bytes, line 41
41function Kg(e,t,n,r,s){return $o(),hp(s),t.flags|=256,ht(e,t,n,r),t.child}var Gf={dehydrated:null,treeContext:null,retryLane:0};function qf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Kx(e,t,n){var r=t.pendingProps,s=Me.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Ce(Me,s&1),e===null)return Ff(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=cu(i,r,0,null),e=gs(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=qf(n),t.memoizedState=Gf,e):jp(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return uC(e,t,i,r,a,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Ir(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=Ir(a,o):(o=gs(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?qf(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Gf,r}return o=e.child,e=o.sibling,r=Ir(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function jp(e,t){return t=cu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function yl(e,t,n,r){return r!==null&&hp(r),Fo(t,e.child,null,n),e=jp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uC(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Ed(Error(O(422))),yl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=cu({mode:"visible",children:r.children},s,0,null),o=gs(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Fo(t,e.child,null,i),t.child.memoizedState=qf(i),t.memoizedState=Gf,o);if(!(t.mode&1))return yl(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(O(419)),r=Ed(o,r,void 0),yl(e,t,i,r)}if(a=(i&e.childLanes)!==0,Et||a){if(r=Ye,r!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,Qn(e,s),fn(r,e,s,-1))}return Op(),r=Ed(Error(O(421))),yl(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=kC.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,Rt=Rr(s.nextSibling),Ot=t,Ae=!0,ln=null,e!==null&&(Wt[Ht++]=Hn,Wt[Ht++]=Gn,Wt[Ht++]=ws,Hn=e.id,Gn=e.overflow,ws=t),t=jp(t,r.children),t.flags|=4096,t)}function Zg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Uf(e.return,t,n)}function Sd(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function Zx(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(ht(e,t,r.children,n),r=Me.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zg(e,n,t);else if(e.tag===19)Zg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ce(Me,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&bc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Sd(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&bc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Sd(t,!0,n,null,o);break;case"together":Sd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_s|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));
vendor: 4,746 bytes, line 41
41if(t.child!==null){for(e=t.child,n=Ir(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ir(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dC(e,t,n){switch(t.tag){case 3:qx(t),$o();break;case 5:bx(t);break;case 1:Ct(t.type)&&mc(t);break;case 4:xp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Ce(yc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ce(Me,Me.current&1),t.flags|=128,null):n&t.child.childLanes?Kx(e,t,n):(Ce(Me,Me.current&1),e=Xn(e,t,n),e!==null?e.sibling:null);Ce(Me,Me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Zx(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ce(Me,Me.current),r)break;return null;case 22:case 23:return t.lanes=0,Hx(e,t,n)}return Xn(e,t,n)}var Yx,Kf,Qx,Xx;Yx=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Kf=function(){};Qx=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,cs(Nn.current);var o=null;switch(n){case"input":s=gf(e,s),r=gf(e,r),o=[];break;case"select":s=Le({},s,{value:void 0}),r=Le({},r,{value:void 0}),o=[];break;case"textarea":s=xf(e,s),r=xf(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hc)}bf(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ki.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ki.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Pe("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Xx=function(e,t,n,r){n!==r&&(t.flags|=4)};function vi(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function st(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function fC(e,t,n){var r=t.pendingProps;switch(fp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(t),null;case 1:return Ct(t.type)&&pc(),st(t),null;case 3:return r=t.stateNode,Uo(),Ne(St),Ne(lt),bp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(gl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ln!==null&&(nh(ln),ln=null))),Kf(e,t),st(t),null;case 5:wp(t);var s=cs(ia.current);if(n=t.type,e!==null&&t.stateNode!=null)Qx(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return st(t),null}if(e=cs(Nn.current),gl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[jn]=t,r[sa]=o,e=(t.mode&1)!==0,n){case"dialog":Pe("cancel",r),Pe("close",r);break;case"iframe":case"object":case"embed":Pe("load",r);break;case"video":case"audio":for(s=0;s<Ni.length;s++)Pe(Ni[s],r);break;case"source":Pe("error",r);break;case"img":case"image":case"link":Pe("error",r),Pe("load",r);break;case"details":Pe("toggle",r);break;case"input":sg(r,o),Pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Pe("invalid",r);break;case"textarea":ig(r,o),Pe("invalid",r)}bf(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];
vendor: 28,896 bytes, line 41
41i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&ml(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&ml(r.textContent,a,e),s=["children",""+a]):Ki.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&Pe("scroll",r)}switch(n){case"input":al(r),og(r,o,!0);break;case"textarea":al(r),ag(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=hc)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=C0(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[jn]=t,e[sa]=r,Yx(e,t,!1,!1),t.stateNode=e;e:{switch(i=_f(n,r),n){case"dialog":Pe("cancel",e),Pe("close",e),s=r;break;case"iframe":case"object":case"embed":Pe("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ni.length;s++)Pe(Ni[s],e);s=r;break;case"source":Pe("error",e),s=r;break;case"img":case"image":case"link":Pe("error",e),Pe("load",e),s=r;break;case"details":Pe("toggle",e),s=r;break;case"input":sg(e,r),s=gf(e,r),Pe("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Le({},r,{value:void 0}),Pe("invalid",e);break;case"textarea":ig(e,r),s=xf(e,r),Pe("invalid",e);break;default:s=r}bf(n,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?P0(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&j0(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Zi(e,l):typeof l=="number"&&Zi(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ki.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Pe("scroll",e):l!=null&&Qh(e,o,l,i))}switch(n){case"input":al(e),og(e,r,!1);break;case"textarea":al(e),ag(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$r(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?po(e,!!r.multiple,o,!1):r.defaultValue!=null&&po(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=hc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return st(t),null;case 6:if(e&&t.stateNode!=null)Xx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=cs(ia.current),cs(Nn.current),gl(t)){if(r=t.stateNode,n=t.memoizedProps,r[jn]=t,(o=r.nodeValue!==n)&&(e=Ot,e!==null))switch(e.tag){case 3:ml(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ml(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[jn]=t,t.stateNode=r}return st(t),null;case 13:if(Ne(Me),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ae&&Rt!==null&&t.mode&1&&!(t.flags&128))gx(),$o(),t.flags|=98560,o=!1;else if(o=gl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(O(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(O(317));o[jn]=t}else $o(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;st(t),o=!1}else ln!==null&&(nh(ln),ln=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Me.current&1?He===0&&(He=3):Op())),t.updateQueue!==null&&(t.flags|=4),st(t),null);case 4:return Uo(),Kf(e,t),e===null&&na(t.stateNode.containerInfo),st(t),null;case 10:return gp(t.type._context),st(t),null;case 17:return Ct(t.type)&&pc(),st(t),null;case 19:if(Ne(Me),o=t.memoizedState,o===null)return st(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)vi(o,!1);else{if(He!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=bc(e),i!==null){for(t.flags|=128,vi(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ce(Me,Me.current&1|2),t.child}e=e.sibling}o.tail!==null&&ze()>Bo&&(t.flags|=128,r=!0,vi(o,!1),t.lanes=4194304)}else{if(!r)if(e=bc(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Ae)return st(t),null}else 2*ze()-o.renderingStartTime>Bo&&n!==1073741824&&(t.flags|=128,r=!0,vi(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ze(),t.sibling=null,n=Me.current,Ce(Me,r?n&1|2:n&1),t):(st(t),null);case 22:case 23:return Rp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Nt&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function hC(e,t){switch(fp(t),t.tag){case 1:return Ct(t.type)&&pc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uo(),Ne(St),Ne(lt),bp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wp(t),null;case 13:if(Ne(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));$o()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(Me),null;case 4:return Uo(),null;case 10:return gp(t.type._context),null;case 22:case 23:return Rp(),null;case 24:return null;default:return null}}var xl=!1,at=!1,pC=typeof WeakSet=="function"?WeakSet:Set,V=null;function co(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Fe(e,t,r)}else n.current=null}function Zf(e,t,n){try{n()}catch(r){Fe(e,t,r)}}var Yg=!1;function mC(e,t){if(Rf=uc,e=rx(),up(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var m;h!==n||s!==0&&h.nodeType!==3||(a=i+s),h!==o||r!==0&&h.nodeType!==3||(l=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(m=h.firstChild)!==null;)f=h,h=m;for(;;){if(h===e)break t;if(f===n&&++u===s&&(a=i),f===o&&++d===r&&(l=i),(m=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Of={focusedElem:e,selectionRange:n},uc=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,b=v.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:nn(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(_){Fe(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return v=Yg,Yg=!1,v}function zi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&Zf(t,n,o)}s=s.next}while(s!==r)}}function au(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Yf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Jx(e){var t=e.alternate;t!==null&&(e.alternate=null,Jx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jn],delete t[sa],delete t[If],delete t[QS],delete t[XS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ew(e){return e.tag===5||e.tag===3||e.tag===4}function Qg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ew(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hc));else if(r!==4&&(e=e.child,e!==null))for(Qf(e,t,n),e=e.sibling;e!==null;)Qf(e,t,n),e=e.sibling}function Xf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xf(e,t,n),e=e.sibling;e!==null;)Xf(e,t,n),e=e.sibling}var Xe=null,on=!1;function ar(e,t,n){for(n=n.child;n!==null;)tw(e,t,n),n=n.sibling}function tw(e,t,n){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(Jc,n)}catch{}switch(n.tag){case 5:at||co(n,t);case 6:var r=Xe,s=on;Xe=null,ar(e,t,n),Xe=r,on=s,Xe!==null&&(on?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(on?(e=Xe,n=n.stateNode,e.nodeType===8?yd(e.parentNode,n):e.nodeType===1&&yd(e,n),Ji(e)):yd(Xe,n.stateNode));break;case 4:r=Xe,s=on,Xe=n.stateNode.containerInfo,on=!0,ar(e,t,n),Xe=r,on=s;break;case 0:case 11:case 14:case 15:if(!at&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Zf(n,t,i),s=s.next}while(s!==r)}ar(e,t,n);break;case 1:if(!at&&(co(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Fe(n,t,a)}ar(e,t,n);break;case 21:ar(e,t,n);break;case 22:n.mode&1?(at=(r=at)||n.memoizedState!==null,ar(e,t,n),at=r):ar(e,t,n);break;default:ar(e,t,n)}}function Xg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pC),t.forEach(function(r){var s=EC.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function en(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Xe=a.stateNode,on=!1;break e;case 3:Xe=a.stateNode.containerInfo,on=!0;break e;case 4:Xe=a.stateNode.containerInfo,on=!0;break e}a=a.return}if(Xe===null)throw Error(O(160));tw(o,i,s),Xe=null,on=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){Fe(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)nw(t,e),t=t.sibling}function nw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),bn(e),r&4){try{zi(3,e,e.return),au(3,e)}catch(g){Fe(e,e.return,g)}try{zi(5,e,e.return)}catch(g){Fe(e,e.return,g)}}break;case 1:en(t,e),bn(e),r&512&&n!==null&&co(n,n.return);break;case 5:if(en(t,e),bn(e),r&512&&n!==null&&co(n,n.return),e.flags&32){var s=e.stateNode;try{Zi(s,"")}catch(g){Fe(e,e.return,g)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&E0(s,o),_f(a,i);var u=_f(a,o);for(i=0;i<l.length;i+=2){var d=l[i],h=l[i+1];d==="style"?P0(s,h):d==="dangerouslySetInnerHTML"?j0(s,h):d==="children"?Zi(s,h):Qh(s,d,h,u)}switch(a){case"input":vf(s,o);break;case"textarea":S0(s,o);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?po(s,!!o.multiple,m,!1):f!==!!o.multiple&&(o.defaultValue!=null?po(s,!!o.multiple,o.defaultValue,!0):po(s,!!o.multiple,o.multiple?[]:"",!1))}s[sa]=o}catch(g){Fe(e,e.return,g)}}break;case 6:if(en(t,e),bn(e),r&4){if(e.stateNode===null)throw Error(O(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(g){Fe(e,e.return,g)}}break;case 3:if(en(t,e),bn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ji(t.containerInfo)}catch(g){Fe(e,e.return,g)}break;case 4:en(t,e),bn(e);break;case 13:en(t,e),bn(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(Np=ze())),r&4&&Xg(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(at=(u=at)||d,en(t,e),at=u):en(t,e),bn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(V=e,d=e.child;d!==null;){for(h=V=d;V!==null;){switch(f=V,m=f.child,f.tag){case 0:case 11:case 14:case 15:zi(4,f,f.return);break;case 1:co(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(g){Fe(r,n,g)}}break;case 5:co(f,f.return);break;case 22:if(f.memoizedState!==null){ev(h);continue}}m!==null?(m.return=f,V=m):ev(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,u?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=T0("display",i))}catch(g){Fe(e,e.return,g)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(g){Fe(e,e.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:en(t,e),bn(e),r&4&&Xg(e);break;case 21:break;default:en(t,e),bn(e)}}function bn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ew(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Zi(s,""),r.flags&=-33);var o=Qg(e);Xf(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Qg(e);Qf(e,a,i);break;default:throw Error(O(161))}}catch(l){Fe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gC(e,t,n){V=e,rw(e)}function rw(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var s=V,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||xl;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||at;a=xl;var u=at;if(xl=i,(at=l)&&!u)for(V=s;V!==null;)i=V,l=i.child,i.tag===22&&i.memoizedState!==null?tv(s):l!==null?(l.return=i,V=l):tv(s);for(;o!==null;)V=o,rw(o),o=o.sibling;V=s,xl=a,at=u}Jg(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,V=o):Jg(e)}}function Jg(e){for(;V!==null;){var t=V;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:at||au(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!at)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:nn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Lg(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Lg(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Ji(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}at||t.flags&512&&Yf(t)}catch(f){Fe(t,t.return,f)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function ev(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function tv(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{au(4,t)}catch(l){Fe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Fe(t,s,l)}}var o=t.return;try{Yf(t)}catch(l){Fe(t,o,l)}break;case 5:var i=t.return;try{Yf(t)}catch(l){Fe(t,i,l)}}}catch(l){Fe(t,t.return,l)}if(t===e){V=null;break}var a=t.sibling;if(a!==null){a.return=t.return,V=a;break}V=t.return}}var vC=Math.ceil,Ec=rr.ReactCurrentDispatcher,Tp=rr.ReactCurrentOwner,qt=rr.ReactCurrentBatchConfig,ge=0,Ye=null,Ve=null,et=0,Nt=0,uo=Yr(0),He=0,ua=null,_s=0,lu=0,Pp=0,Bi=null,_t=null,Np=0,Bo=1/0,Bn=null,Sc=!1,Jf=null,Mr=null,wl=!1,jr=null,Cc=0,Vi=0,eh=null,ql=-1,Kl=0;function mt(){return ge&6?ze():ql!==-1?ql:ql=ze()}function Dr(e){return e.mode&1?ge&2&&et!==0?et&-et:eC.transition!==null?(Kl===0&&(Kl=z0()),Kl):(e=_e,e!==0||(e=window.event,e=e===void 0?16:K0(e.type)),e):1}function fn(e,t,n,r){if(50<Vi)throw Vi=0,eh=null,Error(O(185));za(e,n,r),(!(ge&2)||e!==Ye)&&(e===Ye&&(!(ge&2)&&(lu|=n),He===4&&vr(e,et)),jt(e,r),n===1&&ge===0&&!(t.mode&1)&&(Bo=ze()+500,su&&Qr()))}function jt(e,t){var n=e.callbackNode;eS(e,t);var r=cc(e,e===Ye?et:0);if(r===0)n!==null&&ug(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ug(n),t===1)e.tag===0?JS(nv.bind(null,e)):hx(nv.bind(null,e)),ZS(function(){!(ge&6)&&Qr()}),n=null;else{switch(B0(r)){case 1:n=np;break;case 4:n=F0;break;case 16:n=lc;break;case 536870912:n=U0;break;default:n=lc}n=dw(n,sw.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function sw(e,t){if(ql=-1,Kl=0,ge&6)throw Error(O(327));var n=e.callbackNode;if(xo()&&e.callbackNode!==n)return null;var r=cc(e,e===Ye?et:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=jc(e,r);else{t=r;var s=ge;ge|=2;var o=iw();(Ye!==e||et!==t)&&(Bn=null,Bo=ze()+500,ms(e,t));do try{wC();break}catch(a){ow(e,a)}while(!0);mp(),Ec.current=o,ge=s,Ve!==null?t=0:(Ye=null,et=0,t=He)}if(t!==0){if(t===2&&(s=jf(e),s!==0&&(r=s,t=th(e,s))),t===1)throw n=ua,ms(e,0),vr(e,r),jt(e,ze()),n;if(t===6)vr(e,r);else{if(s=e.current.alternate,!(r&30)&&!yC(s)&&(t=jc(e,r),t===2&&(o=jf(e),o!==0&&(r=o,t=th(e,o))),t===1))throw n=ua,ms(e,0),vr(e,r),jt(e,ze()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:ss(e,_t,Bn);break;case 3:if(vr(e,r),(r&130023424)===r&&(t=Np+500-ze(),10<t)){if(cc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){mt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Df(ss.bind(null,e,_t,Bn),t);break}ss(e,_t,Bn);break;case 4:if(vr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-dn(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=ze()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vC(r/1960))-r,10<r){e.timeoutHandle=Df(ss.bind(null,e,_t,Bn),r);break}ss(e,_t,Bn);break;case 5:ss(e,_t,Bn);break;default:throw Error(O(329))}}}return jt(e,ze()),e.callbackNode===n?sw.bind(null,e):null}function th(e,t){var n=Bi;return e.current.memoizedState.isDehydrated&&(ms(e,t).flags|=256),e=jc(e,t),e!==2&&(t=_t,_t=n,t!==null&&nh(t)),e}function nh(e){_t===null?_t=e:_t.push.apply(_t,e)}function yC(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!pn(o(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vr(e,t){for(t&=~Pp,t&=~lu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-dn(t),r=1<<n;e[n]=-1,t&=~r}}function nv(e){if(ge&6)throw Error(O(327));xo();var t=cc(e,0);if(!(t&1))return jt(e,ze()),null;var n=jc(e,t);if(e.tag!==0&&n===2){var r=jf(e);r!==0&&(t=r,n=th(e,r))}if(n===1)throw n=ua,ms(e,0),vr(e,t),jt(e,ze()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ss(e,_t,Bn),jt(e,ze()),null}function Ap(e,t){var n=ge;ge|=1;try{return e(t)}finally{ge=n,ge===0&&(Bo=ze()+500,su&&Qr())}}function ks(e){jr!==null&&jr.tag===0&&!(ge&6)&&xo();var t=ge;ge|=1;var n=qt.transition,r=_e;try{if(qt.transition=null,_e=1,e)return e()}finally{_e=r,qt.transition=n,ge=t,!(ge&6)&&Qr()}}function Rp(){Nt=uo.current,Ne(uo)}function ms(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,KS(n)),Ve!==null)for(n=Ve.return;n!==null;){var r=n;switch(fp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&pc();break;case 3:Uo(),Ne(St),Ne(lt),bp();break;case 5:wp(r);break;case 4:Uo();break;case 13:Ne(Me);break;case 19:Ne(Me);break;case 10:gp(r.type._context);break;case 22:case 23:Rp()}n=n.return}if(Ye=e,Ve=e=Ir(e.current,null),et=Nt=t,He=0,ua=null,Pp=lu=_s=0,_t=Bi=null,ls!==null){for(t=0;t<ls.length;t++)if(n=ls[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}ls=null}return e}function ow(e,t){do{var n=Ve;try{if(mp(),Wl.current=kc,_c){for(var r=De.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}_c=!1}if(bs=0,Ze=We=De=null,Ui=!1,aa=0,Tp.current=null,n===null||n.return===null){He=1,ua=t,Ve=null;break}e:{var o=e,i=n.return,a=n,l=t;if(t=et,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Vg(i);if(m!==null){m.flags&=-257,Wg(m,i,a,o,t),m.mode&1&&Bg(o,u,t),t=m,l=u;var v=t.updateQueue;if(v===null){var g=new Set;g.add(l),t.updateQueue=g}else v.add(l);break e}else{if(!(t&1)){Bg(o,u,t),Op();break e}l=Error(O(426))}}else if(Ae&&a.mode&1){var b=Vg(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Wg(b,i,a,o,t),hp(zo(l,a));break e}}o=l=zo(l,a),He!==4&&(He=2),Bi===null?Bi=[o]:Bi.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=Bx(o,l,t);Ig(o,y);break e;case 1:a=l;var x=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Mr===null||!Mr.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=Vx(o,a,t);Ig(o,_);break e}}o=o.return}while(o!==null)}lw(n)}catch(k){t=k,Ve===n&&n!==null&&(Ve=n=n.return);continue}break}while(!0)}function iw(){var e=Ec.current;return Ec.current=kc,e===null?kc:e}function Op(){(He===0||He===3||He===2)&&(He=4),Ye===null||!(_s&268435455)&&!(lu&268435455)||vr(Ye,et)}function jc(e,t){var n=ge;ge|=2;var r=iw();(Ye!==e||et!==t)&&(Bn=null,ms(e,t));do try{xC();break}catch(s){ow(e,s)}while(!0);if(mp(),ge=n,Ec.current=r,Ve!==null)throw Error(O(261));return Ye=null,et=0,He}function xC(){for(;Ve!==null;)aw(Ve)}function wC(){for(;Ve!==null&&!HE();)aw(Ve)}function aw(e){var t=uw(e.alternate,e,Nt);e.memoizedProps=e.pendingProps,t===null?lw(e):Ve=t,Tp.current=null}function lw(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hC(n,t),n!==null){n.flags&=32767,Ve=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{He=6,Ve=null;return}}else if(n=fC(n,t,Nt),n!==null){Ve=n;return}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);He===0&&(He=5)}function ss(e,t,n){var r=_e,s=qt.transition;try{qt.transition=null,_e=1,bC(e,t,n,r)}finally{qt.transition=s,_e=r}return null}function bC(e,t,n,r){do xo();while(jr!==null);if(ge&6)throw Error(O(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(tS(e,o),e===Ye&&(Ve=Ye=null,et=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||wl||(wl=!0,dw(lc,function(){return xo(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=qt.transition,qt.transition=null;var i=_e;_e=1;var a=ge;ge|=4,Tp.current=null,mC(e,n),nw(n,e),zS(Of),uc=!!Rf,Of=Rf=null,e.current=n,gC(n),GE(),ge=a,_e=i,qt.transition=o}else e.current=n;if(wl&&(wl=!1,jr=e,Cc=s),o=e.pendingLanes,o===0&&(Mr=null),ZE(n.stateNode),jt(e,ze()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Sc)throw Sc=!1,e=Jf,Jf=null,e;return Cc&1&&e.tag!==0&&xo(),o=e.pendingLanes,o&1?e===eh?Vi++:(Vi=0,eh=e):Vi=0,Qr(),null}function xo(){if(jr!==null){var e=B0(Cc),t=qt.transition,n=_e;try{if(qt.transition=null,_e=16>e?16:e,jr===null)var r=!1;else{if(e=jr,jr=null,Cc=0,ge&6)throw Error(O(331));var s=ge;for(ge|=4,V=e.current;V!==null;){var o=V,i=o.child;if(V.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(V=u;V!==null;){var d=V;switch(d.tag){case 0:case 11:case 15:zi(8,d,o)}var h=d.child;if(h!==null)h.return=d,V=h;else for(;V!==null;){d=V;var f=d.sibling,m=d.return;if(Jx(d),d===u){V=null;break}if(f!==null){f.return=m,V=f;break}V=m}}}var v=o.alternate;if(v!==null){var g=v.child;if(g!==null){v.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}V=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,V=i;else e:for(;V!==null;){if(o=V,o.flags&2048)switch(o.tag){case 0:case 11:case 15:zi(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,V=y;break e}V=o.return}}var x=e.current;for(V=x;V!==null;){i=V;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,V=w;else e:for(i=x;V!==null;){if(a=V,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:au(9,a)}}catch(k){Fe(a,a.return,k)}if(a===i){V=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,V=_;break e}V=a.return}}if(ge=s,Qr(),Pn&&typeof Pn.onPostCommitFiberRoot=="function")try{Pn.onPostCommitFiberRoot(Jc,e)}catch{}r=!0}return r}finally{_e=n,qt.transition=t}}return!1}function rv(e,t,n){t=zo(n,t),t=Bx(e,t,1),e=Or(e,t,1),t=mt(),e!==null&&(za(e,1,t),jt(e,t))}function Fe(e,t,n){if(e.tag===3)rv(e,e,n);else for(;t!==null;){if(t.tag===3){rv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mr===null||!Mr.has(r))){e=zo(n,e),e=Vx(t,e,1),t=Or(t,e,1),e=mt(),t!==null&&(za(t,1,e),jt(t,e));break}}t=t.return}}function _C(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=mt(),e.pingedLanes|=e.suspendedLanes&n,Ye===e&&(et&n)===n&&(He===4||He===3&&(et&130023424)===et&&500>ze()-Np?ms(e,0):Pp|=n),jt(e,t)}function cw(e,t){t===0&&(e.mode&1?(t=ul,ul<<=1,!(ul&130023424)&&(ul=4194304)):t=1);var n=mt();e=Qn(e,t),e!==null&&(za(e,t,n),jt(e,n))}function kC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cw(e,n)}function EC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),cw(e,n)}var uw;uw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||St.current)Et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Et=!1,dC(e,t,n);Et=!!(e.flags&131072)}else Et=!1,Ae&&t.flags&1048576&&px(t,vc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gl(e,t),e=t.pendingProps;var s=Lo(t,lt.current);yo(t,n),s=kp(null,t,r,e,s,n);var o=Ep();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ct(r)?(o=!0,mc(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,yp(t),s.updater=iu,t.stateNode=s,s._reactInternals=t,Bf(t,r,e,n),t=Hf(null,t,r,!0,o,n)):(t.tag=0,Ae&&o&&dp(t),ht(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gl(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=CC(r),e=nn(r,e),s){case 0:t=Wf(null,t,r,e,n);break e;case 1:t=qg(null,t,r,e,n);break e;case 11:t=Hg(null,t,r,e,n);break e;case 14:t=Gg(null,t,r,nn(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),Wf(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),qg(e,t,r,s,n);case 3:e:{if(qx(t),e===null)throw Error(O(387));
vendor: 4,729 bytes, line 41
41r=t.pendingProps,o=t.memoizedState,s=o.element,wx(e,t),wc(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=zo(Error(O(423)),t),t=Kg(e,t,r,n,s);break e}else if(r!==s){s=zo(Error(O(424)),t),t=Kg(e,t,r,n,s);break e}else for(Rt=Rr(t.stateNode.containerInfo.firstChild),Ot=t,Ae=!0,ln=null,n=yx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($o(),r===s){t=Xn(e,t,n);break e}ht(e,t,r,n)}t=t.child}return t;case 5:return bx(t),e===null&&Ff(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Mf(r,s)?i=null:o!==null&&Mf(r,o)&&(t.flags|=32),Gx(e,t),ht(e,t,i,n),t.child;case 6:return e===null&&Ff(t),null;case 13:return Kx(e,t,n);case 4:return xp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fo(t,null,r,n):ht(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),Hg(e,t,r,s,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,Ce(yc,r._currentValue),r._currentValue=i,o!==null)if(pn(o.value,i)){if(o.children===s.children&&!St.current){t=Xn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=qn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Uf(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(O(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Uf(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ht(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,yo(t,n),s=Yt(s),r=r(s),t.flags|=1,ht(e,t,r,n),t.child;case 14:return r=t.type,s=nn(r,t.pendingProps),s=nn(r.type,s),Gg(e,t,r,s,n);case 15:return Wx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),Gl(e,t),t.tag=1,Ct(r)?(e=!0,mc(t)):e=!1,yo(t,n),zx(t,r,s),Bf(t,r,s,n),Hf(null,t,r,!0,e,n);case 19:return Zx(e,t,n);case 22:return Hx(e,t,n)}throw Error(O(156,t.tag))};function dw(e,t){return $0(e,t)}function SC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,t,n,r){return new SC(e,t,n,r)}function Mp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function CC(e){if(typeof e=="function")return Mp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jh)return 11;if(e===ep)return 14}return 2}function Ir(e,t){var n=e.alternate;return n===null?(n=Gt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zl(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")Mp(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case eo:return gs(n.children,s,o,t);case Xh:i=8,s|=8;break;case ff:return e=Gt(12,n,t,s|2),e.elementType=ff,e.lanes=o,e;case hf:return e=Gt(13,n,t,s),e.elementType=hf,e.lanes=o,e;case pf:return e=Gt(19,n,t,s),e.elementType=pf,e.lanes=o,e;case b0:return cu(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x0:i=10;break e;case w0:i=9;break e;case Jh:i=11;break e;case ep:i=14;break e;case hr:i=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Gt(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function gs(e,t,n,r){return e=Gt(7,e,r,t),e.lanes=n,e}function cu(e,t,n,r){return e=Gt(22,e,r,t),e.elementType=b0,e.lanes=n,e.stateNode={isHidden:!1},e}function Cd(e,t,n){return e=Gt(6,e,null,t),e.lanes=n,e}
vendor: 5,636 bytes, line 41
41function jd(e,t,n){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jC(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ad(0),this.expirationTimes=ad(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ad(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Dp(e,t,n,r,s,o,i,a,l){return e=new jC(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Gt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},yp(o),e}function TC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Js,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function fw(e){if(!e)return Fr;e=e._reactInternals;e:{if(Ns(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ct(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(Ct(n))return fx(e,n,t)}return t}function hw(e,t,n,r,s,o,i,a,l){return e=Dp(n,r,!0,e,s,o,i,a,l),e.context=fw(null),n=e.current,r=mt(),s=Dr(n),o=qn(r,s),o.callback=t??null,Or(n,o,s),e.current.lanes=s,za(e,s,r),jt(e,r),e}function uu(e,t,n,r){var s=t.current,o=mt(),i=Dr(s);return n=fw(n),t.context===null?t.context=n:t.pendingContext=n,t=qn(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Or(s,t,i),e!==null&&(fn(e,s,i,o),Vl(e,s,i)),i}function Tc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function sv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ip(e,t){sv(e,t),(e=e.alternate)&&sv(e,t)}function PC(){return null}var pw=typeof reportError=="function"?reportError:function(e){console.error(e)};function Lp(e){this._internalRoot=e}du.prototype.render=Lp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));uu(e,t,null,null)};du.prototype.unmount=Lp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ks(function(){uu(null,e,null,null)}),t[Yn]=null}};function du(e){this._internalRoot=e}du.prototype.unstable_scheduleHydration=function(e){if(e){var t=H0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gr.length&&t!==0&&t<gr[n].priority;n++);gr.splice(n,0,e),n===0&&q0(e)}};function $p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ov(){}function NC(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var u=Tc(i);o.call(u)}}var i=hw(t,r,e,0,null,!1,!1,"",ov);return e._reactRootContainer=i,e[Yn]=i.current,na(e.nodeType===8?e.parentNode:e),ks(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=Tc(l);a.call(u)}}var l=Dp(e,0,!1,null,null,!1,!1,"",ov);return e._reactRootContainer=l,e[Yn]=l.current,na(e.nodeType===8?e.parentNode:e),ks(function(){uu(t,l,n,r)}),l}function hu(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=Tc(i);a.call(l)}}uu(t,i,e,s)}else i=NC(n,t,e,s,r);return Tc(i)}V0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pi(t.pendingLanes);n!==0&&(rp(t,n|1),jt(t,ze()),!(ge&6)&&(Bo=ze()+500,Qr()))}break;case 13:ks(function(){var r=Qn(e,1);if(r!==null){var s=mt();fn(r,e,1,s)}}),Ip(e,1)}};sp=function(e){if(e.tag===13){var t=Qn(e,134217728);if(t!==null){var n=mt();fn(t,e,134217728,n)}Ip(e,134217728)}};W0=function(e){if(e.tag===13){var t=Dr(e),n=Qn(e,t);if(n!==null){var r=mt();fn(n,e,t,r)}Ip(e,t)}};H0=function(){return _e};G0=function(e,t){var n=_e;try{return _e=e,t()}finally{_e=n}};Ef=function(e,t,n){switch(t){case"input":if(vf(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=ru(r);if(!s)throw Error(O(90));k0(r),vf(r,s)}}}break;case"textarea":S0(e,n);break;case"select":t=n.value,t!=null&&po(e,!!n.multiple,t,!1)}};R0=Ap;O0=ks;var AC={usingClientEntryPoint:!1,Events:[Va,so,ru,N0,A0,Ap]},yi={findFiberByHostInstance:as,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},RC={bundleType:yi.bundleType,version:yi.version,rendererPackageName:yi.rendererPackageName,rendererConfig:yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=I0(e),e===null?null:e.stateNode},findFiberByHostInstance:yi.findFiberByHostInstance||PC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
41if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bl.isDisabled&&bl.supportsFiber)try{Jc=bl.inject(RC),Pn=bl}catch{}}Lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AC;Lt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$p(t))throw Error(O(200));return TC(e,t,null,n)};Lt.createRoot=function(e,t){if(!$p(e))throw Error(O(299));var n=!1,r="",s=pw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Dp(e,1,!1,null,null,n,!1,r,s),e[Yn]=t.current,na(e.nodeType===8?e.parentNode:e),new Lp(t)};Lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=I0(t),e=e===null?null:e.stateNode,e};Lt.flushSync=function(e){return ks(e)};Lt.hydrate=function(e,t,n){if(!fu(t))throw Error(O(200));return hu(null,e,t,!0,n)};Lt.hydrateRoot=function(e,t,n){if(!$p(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=pw;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=hw(t,null,e,1,n??null,s,!1,o,i),e[Yn]=t.current,na(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new du(t)};Lt.render=function(e,t,n){if(!fu(t))throw Error(O(200));return hu(null,e,t,!1,n)};Lt.unmountComponentAtNode=function(e){if(!fu(e))throw Error(O(40));return e._reactRootContainer?(ks(function(){hu(null,null,e,!1,function(){e._reactRootContainer=null,e[Yn]=null})}),!0):!1};Lt.unstable_batchedUpdates=Ap;Lt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!fu(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return hu(e,t,n,!1,r)};Lt.version="18.3.1-next-f1338f8080-20240426";function mw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mw)}catch(e){console.error(e)}}mw(),m0.exports=Lt;var ei=m0.exports;const gw=Fa(ei);var vw,iv=ei;vw=iv.createRoot,iv.hydrateRoot;var OC=typeof Element<"u",MC=typeof Map=="function",DC=typeof Set=="function",IC=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Yl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Yl(e[r],t[r]))return!1;return!0}var o;if(MC&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Yl(r.value[1],t.get(r.value[0])))return!1;return!0}if(DC&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(IC&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(OC&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!Yl(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var LC=function(t,n){try{return Yl(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const $C=Fa(LC);var FC=function(e,t,n,r,s,o,i,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,s,o,i,a],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},UC=FC;const av=Fa(UC);var zC=function(t,n,r,s){var o=r?r.call(s,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;
41if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var i=Object.keys(t),a=Object.keys(n);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<i.length;u++){var d=i[u];if(!l(d))return!1;var h=t[d],f=n[d];if(o=r?r.call(s,h,f,d):void 0,o===!1||o===void 0&&h!==f)return!1}return!0};const BC=Fa(zC);var yw=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(yw||{}),Td={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},lv=Object.values(yw),pu={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},xw=Object.entries(pu).reduce((e,[t,n])=>(e[n]=t,e),{}),cn="data-rh",wo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},bo=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},VC=e=>{let t=bo(e,"title");const n=bo(e,wo.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=bo(e,wo.DEFAULT_TITLE);return t||r||void 0},WC=e=>bo(e,wo.ON_CHANGE_CLIENT_STATE)||(()=>{}),Pd=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),HC=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let o=0;o<s.length;o+=1){const a=s[o].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),GC=e=>console&&typeof console.warn=="function"&&console.warn(e),xi=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&GC(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,o)=>{const i={};o.filter(l=>{let u;const d=Object.keys(l);for(let f=0;f<d.length;f+=1){const m=d[f],v=m.toLowerCase();t.indexOf(v)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(v==="rel"&&l[v].toLowerCase()==="stylesheet")&&(u=v),t.indexOf(m)!==-1&&(m==="innerHTML"||m==="cssText"||m==="itemprop")&&(u=m)}if(!u||!l[u])return!1;const h=l[u].toLowerCase();return r[u]||(r[u]={}),i[u]||(i[u]={}),r[u][h]?!1:(i[u][h]=!0,!0)}).reverse().forEach(l=>s.push(l));const a=Object.keys(i);for(let l=0;l<a.length;l+=1){const u=a[l],d={...r[u],...i[u]};r[u]=d}return s},[]).reverse()},qC=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},KC=e=>({baseTag:HC(["href"],e),bodyAttributes:Pd("bodyAttributes",e),defer:bo(e,wo.DEFER),encode:bo(e,wo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Pd("htmlAttributes",e),linkTags:xi("link",["rel","href"],e),metaTags:xi("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:xi("noscript",["innerHTML"],e),onChangeClientState:WC(e),scriptTags:xi("script",["src","innerHTML"],e),styleTags:xi("style",["cssText"],e),title:VC(e),titleAttributes:Pd("titleAttributes",e),prioritizeSeoTags:qC(e,wo.PRIORITIZE_SEO_TAGS)}),ww=e=>Array.isArray(e)?e.join(""):e,ZC=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Nd=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(ZC(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},cv=(e,t)=>({...e,[t]:void 0}),YC=["noscript","script","style"],rh=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),bw=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),QC=(e,t,n,r)=>{const s=bw(n),o=ww(t);return s?`<${e} ${cn}="true" ${s}>${rh(o,r)}</${e}>`:`<${e} ${cn}="true">${rh(o,r)}</${e}>`},XC=(e,t,n=!0)=>t.reduce((r,s)=>{const o=s,i=Object.keys(o).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const h=typeof o[d]>"u"?d:`${d}="${rh(o[d],n)}"`;return u?`${u} ${h}`:h},""),a=o.innerHTML||o.cssText||"",l=YC.indexOf(e)===-1;return`${r}<${e} ${cn}="true" ${i}${l?"/>":`>${a}</${e}>`}`},""),_w=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=pu[r];return n[s||r]=e[r],n},t),JC=(e,t,n)=>{const r={key:t,[cn]:!0},s=_w(n,r);return[R.createElement("title",s,t)]},Ql=(e,t)=>t.map((n,r)=>{const s={key:r,[cn]:!0};
41return Object.keys(n).forEach(o=>{const a=pu[o]||o;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=n[o]}),R.createElement(e,s)}),Bt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>JC(e,t.title,t.titleAttributes),toString:()=>QC(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>_w(t),toString:()=>bw(t)};default:return{toComponent:()=>Ql(e,t),toString:()=>XC(e,t,n)}}},ej=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=Nd(e,Td.meta),o=Nd(t,Td.link),i=Nd(n,Td.script);return{priorityMethods:{toComponent:()=>[...Ql("meta",s.priority),...Ql("link",o.priority),...Ql("script",i.priority)],toString:()=>`${Bt("meta",s.priority,r)} ${Bt("link",o.priority,r)} ${Bt("script",i.priority,r)}`},metaTags:s.default,linkTags:o.default,scriptTags:i.default}},tj=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:o,styleTags:i,title:a="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:h,scriptTags:f}=e,m={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:m,linkTags:d,metaTags:h,scriptTags:f}=ej(e)),{priority:m,base:Bt("base",t,r),bodyAttributes:Bt("bodyAttributes",n,r),htmlAttributes:Bt("htmlAttributes",s,r),link:Bt("link",d,r),meta:Bt("meta",h,r),noscript:Bt("noscript",o,r),script:Bt("script",f,r),style:Bt("style",i,r),title:Bt("title",{title:a,titleAttributes:l},r)}},sh=tj,_l=[],Fp=!!(typeof window<"u"&&window.document&&window.document.createElement),oh=class{constructor(e,t){zt(this,"instances",[]);zt(this,"canUseDOM",Fp);zt(this,"context");zt(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?_l:this.instances,add:e=>{(this.canUseDOM?_l:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?_l:this.instances).indexOf(e);(this.canUseDOM?_l:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=sh({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},nj=parseInt(R.version.split(".")[0],10),ih=nj>=19,rj={},kw=R.createContext(rj),us,Ew=(us=class extends p.Component{constructor(n){super(n);zt(this,"helmetData");ih?this.helmetData=null:this.helmetData=new oh(this.props.context||{},us.canUseDOM)}render(){return ih?R.createElement(R.Fragment,null,this.props.children):R.createElement(kw.Provider,{value:this.helmetData.value},this.props.children)}},zt(us,"canUseDOM",Fp),us),Bs=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${cn}]`),s=[].slice.call(r),o=[];let i;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText"){const d=a.cssText;l.appendChild(document.createTextNode(d))}else{const d=u,h=typeof a[d]>"u"?"":a[d];l.setAttribute(u,h)}l.setAttribute(cn,"true"),s.some((u,d)=>(i=d,l.isEqualNode(u)))?s.splice(i,1):o.push(l)}),s.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),o.forEach(a=>n.appendChild(a)),{oldTags:s,newTags:o}},ah=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(cn),s=r?r.split(","):[],o=[...s],i=Object.keys(t);for(const a of i){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const u=o.indexOf(a);u!==-1&&o.splice(u,1)}for(let a=o.length-1;a>=0;a-=1)n.removeAttribute(o[a]);s.length===o.length?n.removeAttribute(cn):n.getAttribute(cn)!==i.join(",")&&n.setAttribute(cn,i.join(","))},sj=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=ww(e)),ah("title",t)},uv=(e,t)=>
41{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:o,metaTags:i,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:d,title:h,titleAttributes:f}=e;ah("body",r),ah("html",s),sj(h,f);const m={baseTag:Bs("base",n),linkTags:Bs("link",o),metaTags:Bs("meta",i),noscriptTags:Bs("noscript",a),scriptTags:Bs("script",u),styleTags:Bs("style",d)},v={},g={};Object.keys(m).forEach(b=>{const{newTags:y,oldTags:x}=m[b];y.length&&(v[b]=y),x.length&&(g[b]=m[b].oldTags)}),t&&t(),l(e,v,g)},wi=null,oj=e=>{wi&&cancelAnimationFrame(wi),e.defer?wi=requestAnimationFrame(()=>{uv(e,()=>{wi=null})}):(uv(e),wi=null)},ij=oj,dv=class extends p.Component{constructor(){super(...arguments);zt(this,"rendered",!1)}shouldComponentUpdate(t){return!BC(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=KC(t.get().map(o=>{const{context:i,...a}=o.props;return a}));Ew.canUseDOM?ij(s):sh&&(r=sh(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Xl=[],fv=e=>{const t={};for(const n of Object.keys(e))t[xw[n]||n]=e[n];return t},ts=e=>{const t={};for(const n of Object.keys(e)){const r=pu[n];t[r||n]=e[n]}return t},hv=(e,t)=>{if(!Fp)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",s=n.getAttribute(r),o=s?s.split(","):[],i=Object.keys(t);for(const a of o)i.includes(a)||n.removeAttribute(a);for(const a of i){const l=t[a];l==null||l===!1?n.removeAttribute(a):l===!0?n.setAttribute(a,""):n.setAttribute(a,String(l))}i.length>0?n.setAttribute(r,i.join(",")):n.removeAttribute(r)},Ad=()=>{const e={},t={};for(const n of Xl){const{htmlAttributes:r,bodyAttributes:s}=n.props;r&&Object.assign(e,fv(r)),s&&Object.assign(t,fv(s))}hv("html",e),hv("body",t)},aj=class extends p.Component{componentDidMount(){Xl.push(this),Ad()}componentDidUpdate(){Ad()}componentWillUnmount(){const e=Xl.indexOf(this);e!==-1&&Xl.splice(e,1),Ad()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return R.createElement("title",ts(t),e)}renderBase(){const{base:e}=this.props;return e?R.createElement("base",ts(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>R.createElement("meta",{key:n,...ts(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>R.createElement("link",{key:n,...ts(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,o=ts(s);return r&&(o.dangerouslySetInnerHTML={__html:r}),R.createElement("script",{key:n,...o})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...s}=t,o=ts(s);return r&&(o.dangerouslySetInnerHTML={__html:r}),R.createElement("style",{key:n,...o})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,o=ts(s);return r&&(o.dangerouslySetInnerHTML={__html:r}),R.createElement("noscript",{key:n,...o})})}render(){return R.createElement(R.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},uf,pv=(uf=class extends p.Component{shouldComponentUpdate(e){return!$C(cv(this.props,"helmetData"),cv(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
41warnOnInvalidChildren(e,t){return av(lv.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${lv.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),av(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return R.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...o}=r.props,i=Object.keys(o).reduce((l,u)=>(l[xw[u]||u]=o[u],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,s),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,i,s);break;default:t=this.mapObjectTypeChildren(r,t,i,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof oh)){const s=r;r=new oh(s.context,!0),delete n.helmetData}return ih?R.createElement(aj,{...n}):r?R.createElement(dv,{...n,context:r.value}):R.createElement(kw.Consumer,null,s=>R.createElement(dv,{...n,context:s}))}},zt(uf,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),uf);const lj="modulepreload",cj=function(e){return"/"+e},mv={},K=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=cj(l),l in mv)return;mv[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":lj,u||(h.as="script"),h.crossOrigin="",h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),u)return new Promise((f,m)=>{h.addEventListener("load",f),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},uj=1,dj=1e6;let Rd=0;function fj(){return Rd=(Rd+1)%Number.MAX_SAFE_INTEGER,Rd.toString()}const Od=new Map,gv=e=>{if(Od.has(e))return;const t=setTimeout(()=>{Od.delete(e),Wi({type:"REMOVE_TOAST",toastId:e})},dj);Od.set(e,t)},hj=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,uj)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?gv(n):e.toasts.forEach(r=>{gv(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Jl=[];let ec={toasts:[]};function Wi(e){ec=hj(ec,e),Jl.forEach(t=>{t(ec)})}function pj({...e}){const t=fj(),n=s=>Wi({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Wi({type:"DISMISS_TOAST",toastId:t});return Wi({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function Ha(){const[e,t]=p.useState(ec);return p.useEffect(()=>(Jl.push(t),()=>{const n=Jl.indexOf(t);n>-1&&Jl.splice(n,1)}),[e]),{...e,toast:pj,dismiss:n=>Wi({type:"DISMISS_TOAST",toastId:n})}}function q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function mj(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function mu(...e){return t=>e.forEach(n=>mj(n,t))}function Re(...e){return p.useCallback(mu(...e),e)}function gj(e,t=[]){let n=[];function r(o,i){const a=p.createContext(i),l=n.length;n=[...n,i];function u(h){const{scope:f,children:m,...v}=h,g=(f==null?void 0:f[e][l])||a,b=p.useMemo(()=>v,Object.values(v));return c.jsx(g.Provider,{value:b,children:m})}function d(h,f){const m=(f==null?void 0:f[e][l])||a,v=p.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,d]}const s=()=>{const o=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,vj(s,...t)]}function vj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const h=l(o)[`__scope${u}`];return{...a,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Ur=p.forwardRef((e,t)=>
vendor: 9,156 bytes, line 41
41{const{children:n,...r}=e,s=p.Children.toArray(n),o=s.find(yj);if(o){const i=o.props.children,a=s.map(l=>l===o?p.Children.count(i)>1?p.Children.only(null):p.isValidElement(i)?i.props.children:null:l);return c.jsx(lh,{...r,ref:t,children:p.isValidElement(i)?p.cloneElement(i,void 0,a):null})}return c.jsx(lh,{...r,ref:t,children:n})});Ur.displayName="Slot";var lh=p.forwardRef((e,t)=>{const{children:n,...r}=e;if(p.isValidElement(n)){const s=wj(n);return p.cloneElement(n,{...xj(r,n.props),ref:t?mu(t,s):s})}return p.Children.count(n)>1?p.Children.only(null):null});lh.displayName="SlotClone";var Sw=({children:e})=>c.jsx(c.Fragment,{children:e});function yj(e){return p.isValidElement(e)&&e.type===Sw}function xj(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...a)=>{o(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function wj(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Up(e){const t=e+"CollectionProvider",[n,r]=gj(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:v,children:g}=m,b=R.useRef(null),y=R.useRef(new Map).current;return c.jsx(s,{scope:v,itemMap:y,collectionRef:b,children:g})};i.displayName=t;const a=e+"CollectionSlot",l=R.forwardRef((m,v)=>{const{scope:g,children:b}=m,y=o(a,g),x=Re(v,y.collectionRef);return c.jsx(Ur,{ref:x,children:b})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=R.forwardRef((m,v)=>{const{scope:g,children:b,...y}=m,x=R.useRef(null),w=Re(v,x),_=o(u,g);return R.useEffect(()=>(_.itemMap.set(x,{ref:x,...y}),()=>void _.itemMap.delete(x))),c.jsx(Ur,{[d]:"",ref:w,children:b})});h.displayName=u;function f(m){const v=o(e+"CollectionConsumer",m);return R.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((_,k)=>y.indexOf(_.ref.current)-y.indexOf(k.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:l,ItemSlot:h},f,r]}function bj(e,t){const n=p.createContext(t),r=o=>{const{children:i,...a}=o,l=p.useMemo(()=>a,Object.values(a));return c.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function s(o){const i=p.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,s]}function As(e,t=[]){let n=[];function r(o,i){const a=p.createContext(i),l=n.length;n=[...n,i];const u=h=>{var y;const{scope:f,children:m,...v}=h,g=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,b=p.useMemo(()=>v,Object.values(v));return c.jsx(g.Provider,{value:b,children:m})};u.displayName=o+"Provider";function d(h,f){var g;const m=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,v=p.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[u,d]}const s=()=>{const o=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,_j(s,...t)]}function _j(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const h=l(o)[`__scope${u}`];return{...a,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var kj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],me=kj.reduce((e,t)=>{const n=p.forwardRef((r,s)=>{const{asChild:o,...i}=r,a=o?Ur:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...i,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function zp(e,t){e&&ei.flushSync(()=>e.dispatchEvent(t))}function gt(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ej(e,t=globalThis==null?void 0:globalThis.document){const n=gt(e);p.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Sj="DismissableLayer",ch="dismissableLayer.update",Cj="dismissableLayer.pointerDownOutside",jj="dismissableLayer.focusOutside",vv,Cw=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ti=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=e,u=p.useContext(Cw),[d,h]=p.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=p.useState({}),v=Re(t,S=>h(S)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),x=d?g.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,_=x>=y,k=Pj(S=>{const C=S.target,L=[...u.branches].some(I=>I.contains(C));!_||L||(s==null||s(S),i==null||i(S),S.defaultPrevented||a==null||a())},f),E=Nj(S=>{const C=S.target;[...u.branches].some(I=>I.contains(C))||(o==null||o(S),i==null||i(S),S.defaultPrevented||a==null||a())},f);return Ej(S=>{x===u.layers.size-1&&(r==null||r(S),!S.defaultPrevented&&a&&(S.preventDefault(),a()))},f),p.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(vv=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),yv(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=vv)}},[d,f,n,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),yv())},[d,u]),p.useEffect(()=>{const S=()=>m({});return document.addEventListener(ch,S),()=>document.removeEventListener(ch,S)},[]),c.jsx(me.div,{...l,ref:v,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,E.onFocusCapture),onBlurCapture:q(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,k.onPointerDownCapture)})});ti.displayName=Sj;var Tj="DismissableLayerBranch",jw=p.forwardRef((e,t)=>{const n=p.useContext(Cw),r=p.useRef(null),s=Re(t,r);return p.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),c.jsx(me.div,{...e,ref:s})});jw.displayName=Tj;function Pj(e,t=globalThis==null?void 0:globalThis.document){const n=gt(e),r=p.useRef(!1),s=p.useRef(()=>{});return p.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){Tw(Cj,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Nj(e,t=globalThis==null?void 0:globalThis.document){const n=gt(e),r=p.useRef(!1);return p.useEffect(()=>{const s=o=>{o.target&&!r.current&&Tw(jj,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function yv(){const e=new CustomEvent(ch);document.dispatchEvent(e)}function Tw(e,t,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?zp(s,o):s.dispatchEvent(o)}var Aj=ti,Rj=jw,Jn=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},Oj="Portal",Ga=p.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,o]=p.useState(!1);Jn(()=>o(!0),[]);const i=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?gw.createPortal(c.jsx(me.div,{...r,ref:t}),i):null});Ga.displayName=Oj;function Mj(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Ft=e=>{const{present:t,children:n}=e,r=Dj(t),s=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),o=Re(r.ref,Ij(s));return typeof n=="function"||r.isPresent?p.cloneElement(s,{ref:o}):null};Ft.displayName="Presence";function Dj(e){const[t,n]=p.useState(),r=p.useRef({}),s=p.useRef(e),o=p.useRef("none"),i=e?"mounted":"unmounted",[a,l]=Mj(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=kl(r.current);o.current=a==="mounted"?u:"none"},[a]),Jn(()=>{const u=r.current,d=s.current;if(d!==e){const f=o.current,m=kl(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Jn(()=>
41{if(t){let u;const d=t.ownerDocument.defaultView??window,h=m=>{const g=kl(r.current).includes(m.animationName);if(m.target===t&&g&&(l("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=m=>{m.target===t&&(o.current=kl(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function kl(e){return(e==null?void 0:e.animationName)||"none"}function Ij(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Rs({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=Lj({defaultProp:t,onChange:n}),o=e!==void 0,i=o?e:r,a=gt(n),l=p.useCallback(u=>{if(o){const h=typeof u=="function"?u(e):u;h!==e&&a(h)}else s(u)},[o,e,s,a]);return[i,l]}function Lj({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,s=p.useRef(r),o=gt(t);return p.useEffect(()=>{s.current!==r&&(o(r),s.current=r)},[r,s,o]),n}var $j="VisuallyHidden",gu=p.forwardRef((e,t)=>c.jsx(me.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));gu.displayName=$j;var Fj=gu,Bp="ToastProvider",[Vp,Uj,zj]=Up("Toast"),[Pw,A3]=As("Toast",[zj]),[Bj,vu]=Pw(Bp),Nw=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[a,l]=p.useState(null),[u,d]=p.useState(0),h=p.useRef(!1),f=p.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Bp}\`. Expected non-empty \`string\`.`),c.jsx(Vp.Provider,{scope:t,children:c.jsx(Bj,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:p.useCallback(()=>d(m=>m+1),[]),onToastRemove:p.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:i})})};Nw.displayName=Bp;var Aw="ToastViewport",Vj=["F8"],uh="toast.viewportPause",dh="toast.viewportResume",Rw=p.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Vj,label:s="Notifications ({hotkey})",...o}=e,i=vu(Aw,n),a=Uj(n),l=p.useRef(null),u=p.useRef(null),d=p.useRef(null),h=p.useRef(null),f=Re(t,h,i.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=i.toastCount>0;p.useEffect(()=>{const b=y=>{var w;r.length!==0&&r.every(_=>y[_]||y.code===_)&&((w=h.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),p.useEffect(()=>{const b=l.current,y=h.current;if(v&&b&&y){const x=()=>{if(!i.isClosePausedRef.current){const E=new CustomEvent(uh);y.dispatchEvent(E),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(dh);y.dispatchEvent(E),i.isClosePausedRef.current=!1}},_=E=>{!b.contains(E.relatedTarget)&&w()},k=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",x),b.addEventListener("focusout",_),b.addEventListener("pointermove",x),b.addEventListener("pointerleave",k),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",x),b.removeEventListener("focusout",_),b.removeEventListener("pointermove",x),b.removeEventListener("pointerleave",k),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[v,i.isClosePausedRef]);const g=p.useCallback(({tabbingDirection:b})=>{const x=a().map(w=>{const _=w.ref.current,k=[_,...nT(_)];return b==="forwards"?k:k.reverse()});return(b==="forwards"?x.reverse():x).flat()},[a]);return p.useEffect(()=>{const b=h.current;if(b){const y=x=>{var k,E,S;const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const C=document.activeElement,L=x.shiftKey;if(x.target===b&&L){(k=u.current)==null||k.focus();return}const U=g({tabbingDirection:L?"backwards":"forwards"}),X=U.findIndex(T=>T===C);Md(U.slice(X+1))?x.preventDefault():L?(E=u.current)==null||E.focus():(S=d.current)==null||S.focus()}};return b.addEventListener("keydown",y),()=>b.removeEventListener("keydown",y)}},[a,g]),c.jsxs(Rj,{ref:l,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&c.jsx(fh,{ref:u,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"forwards"});Md(b)}}),c.jsx(Vp.Slot,{scope:n,children:c.jsx(me.ol,{tabIndex:-1,...o,ref:f})}),v&&c.jsx(fh,{ref:d,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"backwards"});Md(b)}})]})});Rw.displayName=Aw;var Ow="ToastFocusProxy",fh=p.forwardRef((e,t)=>
41{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,o=vu(Ow,n);return c.jsx(gu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&r()}})});fh.displayName=Ow;var yu="Toast",Wj="toast.swipeStart",Hj="toast.swipeMove",Gj="toast.swipeCancel",qj="toast.swipeEnd",Mw=p.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:o,...i}=e,[a=!0,l]=Rs({prop:r,defaultProp:s,onChange:o});return c.jsx(Ft,{present:n||a,children:c.jsx(Yj,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:gt(e.onPause),onResume:gt(e.onResume),onSwipeStart:q(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:q(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:q(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:q(e.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});Mw.displayName=yu;var[Kj,Zj]=Pw(yu,{onClose(){}}),Yj=p.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:m,...v}=e,g=vu(yu,n),[b,y]=p.useState(null),x=Re(t,T=>y(T)),w=p.useRef(null),_=p.useRef(null),k=s||g.duration,E=p.useRef(0),S=p.useRef(k),C=p.useRef(0),{onToastAdd:L,onToastRemove:I}=g,W=gt(()=>{var ee;(b==null?void 0:b.contains(document.activeElement))&&((ee=g.viewport)==null||ee.focus()),i()}),U=p.useCallback(T=>{!T||T===1/0||(window.clearTimeout(C.current),E.current=new Date().getTime(),C.current=window.setTimeout(W,T))},[W]);p.useEffect(()=>{const T=g.viewport;if(T){const ee=()=>{U(S.current),u==null||u()},H=()=>{const ne=new Date().getTime()-E.current;S.current=S.current-ne,window.clearTimeout(C.current),l==null||l()};return T.addEventListener(uh,H),T.addEventListener(dh,ee),()=>{T.removeEventListener(uh,H),T.removeEventListener(dh,ee)}}},[g.viewport,k,l,u,U]),p.useEffect(()=>{o&&!g.isClosePausedRef.current&&U(k)},[o,k,g.isClosePausedRef,U]),p.useEffect(()=>(L(),()=>I()),[L,I]);const X=p.useMemo(()=>b?zw(b):null,[b]);return g.viewport?c.jsxs(c.Fragment,{children:[X&&c.jsx(Qj,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:X}),c.jsx(Kj,{scope:n,onClose:W,children:ei.createPortal(c.jsx(Vp.ItemSlot,{scope:n,children:c.jsx(Aj,{asChild:!0,onEscapeKeyDown:q(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||W(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(me.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":g.swipeDirection,...v,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:q(e.onKeyDown,T=>{T.key==="Escape"&&(a==null||a(T.nativeEvent),T.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:q(e.onPointerDown,T=>{T.button===0&&(w.current={x:T.clientX,y:T.clientY})}),onPointerMove:q(e.onPointerMove,T=>{if(!w.current)return;const ee=T.clientX-w.current.x,H=T.clientY-w.current.y,ne=!!_.current,j=["left","right"].includes(g.swipeDirection),N=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,P=j?N(0,ee):0,$=j?0:N(0,H),B=T.pointerType==="touch"?10:2,te={x:P,y:$},xe={originalEvent:T,delta:te};ne?(_.current=te,El(Hj,h,xe,{discrete:!1})):xv(te,g.swipeDirection,B)?(_.current=te,El(Wj,d,xe,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs(ee)>B||Math.abs(H)>B)&&(w.current=null)}),onPointerUp:q(e.onPointerUp,T=>{const ee=_.current,H=T.target;if(H.hasPointerCapture(T.pointerId)&&H.releasePointerCapture(T.pointerId),_.current=null,w.current=null,ee){const ne=T.currentTarget,j={originalEvent:T,delta:ee};xv(ee,g.swipeDirection,g.swipeThreshold)?El(qj,m,j,{discrete:!0}):El(Gj,f,j,{discrete:!0}),ne.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),Qj=e=>{const{__scopeToast:t,children:n,...r}
41=e,s=vu(yu,t),[o,i]=p.useState(!1),[a,l]=p.useState(!1);return eT(()=>i(!0)),p.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Ga,{asChild:!0,children:c.jsx(gu,{...r,children:o&&c.jsxs(c.Fragment,{children:[s.label," ",n]})})})},Xj="ToastTitle",Dw=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(me.div,{...r,ref:t})});Dw.displayName=Xj;var Jj="ToastDescription",Iw=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(me.div,{...r,ref:t})});Iw.displayName=Jj;var Lw="ToastAction",$w=p.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(Uw,{altText:n,asChild:!0,children:c.jsx(Wp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Lw}\`. Expected non-empty \`string\`.`),null)});$w.displayName=Lw;var Fw="ToastClose",Wp=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=Zj(Fw,n);return c.jsx(Uw,{asChild:!0,children:c.jsx(me.button,{type:"button",...r,ref:t,onClick:q(e.onClick,s.onClose)})})});Wp.displayName=Fw;var Uw=p.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return c.jsx(me.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function zw(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),tT(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...zw(r))}}),t}function El(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?zp(s,o):s.dispatchEvent(o)}var xv=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),o=r>s;return t==="left"||t==="right"?o&&r>n:!o&&s>n};function eT(e=()=>{}){const t=gt(e);Jn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function tT(e){return e.nodeType===e.ELEMENT_NODE}function nT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Md(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var rT=Nw,Bw=Rw,Vw=Mw,Ww=Dw,Hw=Iw,Gw=$w,qw=Wp;function Kw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Kw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zw(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Kw(e))&&(r&&(r+=" "),r+=t);return r}const wv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bv=Zw,xu=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return bv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],h=o==null?void 0:o[u];if(d===null)return null;const f=wv(d)||wv(h);return s[u][f]}),a=n&&Object.entries(n).reduce((u,d)=>{let[h,f]=d;return f===void 0||(u[h]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:f,...m}=d;return Object.entries(m).every(v=>{let[g,b]=v;return Array.isArray(b)?b.includes({...o,...a}[g]):{...o,...a}[g]===b})?[...u,h,f]:u},[]);return bv(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 42 * @license lucide-react v0.462.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const sT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yw=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 47 * @license lucide-react v0.462.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */var oT={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"};/** 52 * @license lucide-react v0.462.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const iT=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...a},l)=>p.createElement("svg",{ref:l,...oT,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Yw("lucide",s),...a},[...i.map(([u,d])=>p.createElement(u,d)),...Array.isArray(o)?o:[o]]));/** 57 * @license lucide-react v0.462.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const ve=(e,t)=>
61{const n=p.forwardRef(({className:r,...s},o)=>p.createElement(iT,{ref:o,iconNode:t,className:Yw(`lucide-${sT(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 62 * @license lucide-react v0.462.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const fo=ve("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 67 * @license lucide-react v0.462.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const aT=ve("Atom",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]]);/** 72 * @license lucide-react v0.462.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const lT=ve("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 77 * @license lucide-react v0.462.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const wu=ve("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 82 * @license lucide-react v0.462.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const ut=ve("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 87 * @license lucide-react v0.462.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const cT=ve("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 92 * @license lucide-react v0.462.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const Qw=ve("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 97 * @license lucide-react v0.462.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const uT=ve("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 102 * @license lucide-react v0.462.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const dT=ve("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 107 * @license lucide-react v0.462.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const fT=ve("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 112 * @license lucide-react v0.462.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const Ue=ve("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 117 * @license lucide-react v0.462.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const Xw=ve("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 122 * @license lucide-react v0.462.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const hT=ve("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 127 * @license lucide-react v0.462.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const Jw=ve("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 132 * @license lucide-react v0.462.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const pT=ve("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 137 * @license lucide-react v0.462.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const eb=ve("Gem",[["path",{d:"M6 3h12l4 6-10 13L2 9Z",key:"1pcd5k"}],["path",{d:"M11 3 8 9l4 13 4-13-3-6",key:"1fcu3u"}],["path",{d:"M2 9h20",key:"16fsjt"}]]);/** 142 * @license lucide-react v0.462.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const tb=ve("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 147 * @license lucide-react v0.462.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const nb=ve("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 152 * @license lucide-react v0.462.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const rb=ve("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 157 * @license lucide-react v0.462.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const sb=ve("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** 162 * @license lucide-react v0.462.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const ob=ve("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 167 * @license lucide-react v0.462.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const Hp=ve("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 172 * @license lucide-react v0.462.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const bu=ve("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 177 * @license lucide-react v0.462.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree. 181 */const mT=ve("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 4,180 bytes, lines 181-226
181y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 182 * @license lucide-react v0.462.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const Gp=ve("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 187 * @license lucide-react v0.462.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const da=ve("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 192 * @license lucide-react v0.462.0 - ISC 193 * 194 * This source code is licensed under the ISC license. 195 * See the LICENSE file in the root directory of this source tree. 196 */const ib=ve("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/** 197 * @license lucide-react v0.462.0 - ISC 198 * 199 * This source code is licensed under the ISC license. 200 * See the LICENSE file in the root directory of this source tree. 201 */const gT=ve("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/** 202 * @license lucide-react v0.462.0 - ISC 203 * 204 * This source code is licensed under the ISC license. 205 * See the LICENSE file in the root directory of this source tree. 206 */const qp=ve("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 207 * @license lucide-react v0.462.0 - ISC 208 * 209 * This source code is licensed under the ISC license. 210 * See the LICENSE file in the root directory of this source tree. 211 */const vT=ve("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 212 * @license lucide-react v0.462.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const ab=ve("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 217 * @license lucide-react v0.462.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree. 221 */const Es=ve("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 222 * @license lucide-react v0.462.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const _v=ve("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Kp="-",yT=e=>{const t=wT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Kp);return a[0]===""&&a.length!==1&&a.shift(),lb(a,t)||xT(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},lb=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?lb(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Kp);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId}
vendor: 4,497 bytes, line 226
226,kv=/^\[(.+)\]$/,xT=e=>{if(kv.test(e)){const t=kv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},wT=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return _T(Object.entries(e.classGroups),n).forEach(([o,i])=>{hh(i,r,o,t)}),r},hh=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:Ev(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(bT(s)){hh(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{hh(i,Ev(t,o),n,r)})})},Ev=(e,t)=>{let n=e;return t.split(Kp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},bT=e=>e.isThemeGetter,_T=(e,t)=>t?e.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[n,s]}):e,kT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},cb="!",ET=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],o=t.length,i=a=>{const l=[];let u=0,d=0,h;for(let b=0;b<a.length;b++){let y=a[b];if(u===0){if(y===s&&(r||a.slice(b,b+o)===t)){l.push(a.slice(d,b)),d=b+o;continue}if(y==="/"){h=b;continue}}y==="["?u++:y==="]"&&u--}const f=l.length===0?a:a.substring(d),m=f.startsWith(cb),v=m?f.substring(1):f,g=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:i}):i},ST=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},CT=e=>({cache:kT(e.cacheSize),parseClassName:ET(e),...yT(e)}),jT=/\s+/,TT=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(jT);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}=n(u);let v=!!m,g=r(v?f.substring(0,m):f);if(!g){if(!v){a=u+(a.length>0?" "+a:a);continue}if(g=r(f),!g){a=u+(a.length>0?" "+a:a);continue}v=!1}const b=ST(d).join(":"),y=h?b+cb:b,x=y+g;if(o.includes(x))continue;o.push(x);const w=s(g,v);for(let _=0;_<w.length;++_){const k=w[_];o.push(y+k)}a=u+(a.length>0?" "+a:a)}return a};function PT(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ub(t))&&(r&&(r+=" "),r+=n);return r}const ub=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ub(e[r]))&&(n&&(n+=" "),n+=t);return n};function NT(e,...t){let n,r,s,o=i;function i(l){const u=t.reduce((d,h)=>h(d),e());return n=CT(u),r=n.cache.get,s=n.cache.set,o=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=TT(l,n);return s(l,d),d}return function(){return o(PT.apply(null,arguments))}}const Te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},db=/^\[(?:([a-z-]+):)?(.+)\]$/i,AT=/^\d+\/\d+$/,RT=new Set(["px","full","screen"]),OT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,MT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,DT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,IT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,LT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$n=e=>_o(e)||RT.has(e)||AT.test(e),lr=e=>ni(e,"length",HT),_o=e=>!!e&&!Number.isNaN(Number(e)),Dd=e=>ni(e,"number",_o),bi=e=>!!e&&Number.isInteger(Number(e)),$T=e=>e.endsWith("%")&&_o(e.slice(0,-1)),ae=e=>db.test(e),cr=e=>OT.test(e),FT=new Set(["length","size","percentage"]),UT=e=>ni(e,FT,fb),zT=e=>ni(e,"position",fb),BT=new Set(["image","url"]),VT=e=>ni(e,BT,qT),WT=e=>ni(e,"",GT),_i=()=>!0,ni=(e,t,n)=>{const r=db.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},HT=e=>MT.test(e)&&!DT.test(e),fb=()=>!1,GT=e=>IT.test(e),qT=e=>LT.test(e),KT=()=>{const e=Te("colors"),t=Te("spacing"),n=Te("blur"),r=Te("brightness"),s=Te("borderColor"),o=Te("borderRadius"),i=Te("borderSpacing"),a=Te("borderWidth"),l=Te("contrast"),u=Te("grayscale"),d=Te("hueRotate"),h=Te("invert"),f=Te("gap"),m=Te("gradientColorStops"),v=Te("gradientColorStopPositions"),g=Te("inset"),b=Te("margin"),y=Te("opacity"),x=Te("padding"),w=Te("saturate"),_=Te("scale"),k=Te("sepia"),E=Te("skew"),S=Te
vendor: 12,356 bytes, line 226
226("space"),C=Te("translate"),L=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",ae,t],U=()=>[ae,t],X=()=>["",$n,lr],T=()=>["auto",_o,ae],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",ae],P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[_o,ae];return{cacheSize:500,separator:":",theme:{colors:[_i],spacing:[$n,lr],blur:["none","",cr,ae],brightness:$(),borderColor:[e],borderRadius:["none","","full",cr,ae],borderSpacing:U(),borderWidth:X(),contrast:$(),grayscale:N(),hueRotate:$(),invert:N(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[$T,lr],inset:W(),margin:W(),opacity:$(),padding:U(),saturate:$(),scale:$(),sepia:N(),skew:$(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",ae]}],container:["container"],columns:[{columns:[cr]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ee(),ae]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bi,ae]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ae]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",bi,ae]}],"grid-cols":[{"grid-cols":[_i]}],"col-start-end":[{col:["auto",{span:["full",bi,ae]},ae]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[_i]}],"row-start-end":[{row:["auto",{span:[bi,ae]},ae]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ae]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ae,t]}],"min-w":[{"min-w":[ae,t,"min","max","fit"]}],"max-w":[{"max-w":[ae,t,"none","full","min","max","fit","prose",{screen:[cr]},cr]}],h:[{h:[ae,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ae,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ae,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ae,t,"auto","min","max","fit"]}],"font-size":[{text:["base",cr,lr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Dd]}],"font-family":[{font:[_i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ae]}],"line-clamp":[{"line-clamp":["none",_o,Dd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$n,ae]}],"list-image":[{"list-image":["none",ae]}],"list-style-type":[{list:["none","disc","decimal",ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$n,lr]}],"underline-offset":[{"underline-offset":["auto",$n,ae]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),zT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",UT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},VT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:H()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[$n,ae]}],"outline-w":[{outline:[$n,lr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[$n,lr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",cr,WT]}],"shadow-color":[{shadow:[_i]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",cr,ae]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[w]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ae]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",ae]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[bi,ae]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ae]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ae]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
226],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$n,lr,Dd]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},ZT=NT(KT);function de(...e){return ZT(Zw(e))}const YT=rT,hb=p.forwardRef(({className:e,...t},n)=>c.jsx(Bw,{ref:n,className:de("fixed top-4 right-4 z-[100] flex max-h-screen w-full flex-col gap-2 p-4 md:max-w-[420px]",e),...t}));hb.displayName=Bw.displayName;const QT=xu("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-right data-[state=open]:duration-200",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),pb=p.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(Vw,{ref:r,className:de(QT({variant:t}),e),...n}));pb.displayName=Vw.displayName;const XT=p.forwardRef(({className:e,...t},n)=>c.jsx(Gw,{ref:n,className:de("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));
226XT.displayName=Gw.displayName;const mb=p.forwardRef(({className:e,...t},n)=>c.jsx(qw,{ref:n,className:de("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(Es,{className:"h-4 w-4"})}));mb.displayName=qw.displayName;const gb=p.forwardRef(({className:e,...t},n)=>c.jsx(Ww,{ref:n,className:de("text-sm font-semibold",e),...t}));gb.displayName=Ww.displayName;const vb=p.forwardRef(({className:e,...t},n)=>c.jsx(Hw,{ref:n,className:de("text-sm opacity-90",e),...t}));vb.displayName=Hw.displayName;function JT(){try{const{toasts:e}=Ha();return c.jsxs(YT,{children:[e.map(function({id:t,title:n,description:r,action:s,...o}){return c.jsxs(pb,{...o,className:"bg-gradient-to-r from-[#7e3ff2] to-[#ec4899] text-white border-none shadow-md shadow-black/20 rounded-lg max-w-80 text-sm",children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(gb,{className:"text-white",children:n}),r&&c.jsx(vb,{className:"text-white/90",children:r})]}),s,c.jsx(mb,{className:"text-white/80 hover:text-white"})]},t)}),c.jsx(hb,{})]})}catch(e){return console.error("Toaster error:",e),null}}var Sv=["light","dark"],e2="(prefers-color-scheme: dark)",t2=p.createContext(void 0),n2={setTheme:e=>{},themes:[]},r2=()=>{var e;return(e=p.useContext(t2))!=null?e:n2};p.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let u=o==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;
226${`c.remove(${a.map(v=>`'${v}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?Sv.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(v,g=!1,b=!0)=>{let y=i?i[v]:v,x=g?v+"|| ''":`'${y}'`,w="";return s&&b&&!g&&Sv.includes(v)&&(w+=`d.style.colorScheme = '${v}';`),n==="class"?g||y?w+=`c.add(${x})`:w+="null":y&&(w+=`d[s](n,${x})`),w},m=e?`!function(){${d}${f(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${e2}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${u?"":"else{"+f(o,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${h}}catch(t){}}();`;return p.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})});var s2=e=>{switch(e){case"success":return a2;case"info":return c2;case"warning":return l2;case"error":return u2;default:return null}},o2=Array(12).fill(0),i2=({visible:e})=>R.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},R.createElement("div",{className:"sonner-spinner"},o2.map((t,n)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),a2=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),l2=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c2=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),u2=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),d2=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ph=1,f2=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ph++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:s}),s},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>
226this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0;return r.then(async o=>{if(p2(o)&&!o.ok){s=!1;let i=typeof t.error=="function"?await t.error(`HTTP error! status: ${o.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${o.status}`):t.description;this.create({id:n,type:"error",message:i,description:a})}else if(t.success!==void 0){s=!1;let i=typeof t.success=="function"?await t.success(o):t.success,a=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"success",message:i,description:a})}}).catch(async o=>{if(t.error!==void 0){s=!1;let i=typeof t.error=="function"?await t.error(o):t.error,a=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"error",message:i,description:a})}}).finally(()=>{var o;s&&(this.dismiss(n),n=void 0),(o=t.finally)==null||o.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ph++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Pt=new f2,h2=(e,t)=>{let n=(t==null?void 0:t.id)||ph++;return Pt.addToast({title:e,...t,id:n}),n},p2=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",m2=h2,g2=()=>Pt.toasts,v2=Object.assign(m2,{success:Pt.success,info:Pt.info,warning:Pt.warning,error:Pt.error,custom:Pt.custom,message:Pt.message,promise:Pt.promise,dismiss:Pt.dismiss,loading:Pt.loading},{getHistory:g2});function y2(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}y2(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
226left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
226:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 227`);function Sl(e){return e.label!==void 0}var x2=3,w2="32px",b2=4e3,_2=356,k2=14,E2=20,S2=200;function C2(...e){return e.filter(Boolean).join(" ")}var j2=e=>{var t,n,r,s,o,i,a,l,u,d;let{invert:h,toast:f,unstyled:m,interacting:v,setHeights:g,visibleToasts:b,heights:y,index:x,toasts:w,expanded:_,removeToast:k,defaultRichColors:E,closeButton:S,style:C,cancelButtonStyle:L,actionButtonStyle:I,className:W="",descriptionClassName:U="",duration:X,position:T,ga
227p:ee,loadingIcon:H,expandByDefault:ne,classNames:j,icons:N,closeButtonAriaLabel:P="Close toast",pauseWhenPageIsHidden:$,cn:B}=e,[te,xe]=R.useState(!1),[Be,he]=R.useState(!1),[Ge,Xt]=R.useState(!1),[qe,Jt]=R.useState(!1),[el,Ls]=R.useState(0),[es,ui]=R.useState(0),tl=R.useRef(null),or=R.useRef(null),Qu=x===0,Xu=x+1<=b,Qe=f.type,$s=f.dismissible!==!1,Qk=f.className||"",Xk=f.descriptionClassName||"",nl=R.useMemo(()=>y.findIndex(ie=>ie.toastId===f.id)||0,[y,f.id]),Jk=R.useMemo(()=>{var ie;return(ie=f.closeButton)!=null?ie:S},[f.closeButton,S]),Gm=R.useMemo(()=>f.duration||X||b2,[f.duration,X]),Ju=R.useRef(0),Fs=R.useRef(0),qm=R.useRef(0),Us=R.useRef(null),[Km,eE]=T.split("-"),Zm=R.useMemo(()=>y.reduce((ie,je,ke)=>ke>=nl?ie:ie+je.height,0),[y,nl]),Ym=d2(),tE=f.invert||h,ed=Qe==="loading";Fs.current=R.useMemo(()=>nl*ee+Zm,[nl,Zm]),R.useEffect(()=>{xe(!0)},[]),R.useLayoutEffect(()=>{if(!te)return;let ie=or.current,je=ie.style.height;ie.style.height="auto";let ke=ie.getBoundingClientRect().height;ie.style.height=je,ui(ke),g(xn=>xn.find(wn=>wn.toastId===f.id)?xn.map(wn=>wn.toastId===f.id?{...wn,height:ke}:wn):[{toastId:f.id,height:ke,position:f.position},...xn])},[te,f.title,f.description,g,f.id]);let ir=R.useCallback(()=>{he(!0),Ls(Fs.current),g(ie=>ie.filter(je=>je.toastId!==f.id)),setTimeout(()=>{k(f)},S2)},[f,k,g,Fs]);R.useEffect(()=>{if(f.promise&&Qe==="loading"||f.duration===1/0||f.type==="loading")return;let ie,je=Gm;return _||v||$&&Ym?(()=>{if(qm.current<Ju.current){let ke=new Date().getTime()-Ju.current;je=je-ke}qm.current=new Date().getTime()})():je!==1/0&&(Ju.current=new Date().getTime(),ie=setTimeout(()=>{var ke;(ke=f.onAutoClose)==null||ke.call(f,f),ir()},je)),()=>clearTimeout(ie)},[_,v,ne,f,Gm,ir,f.promise,Qe,$,Ym]),R.useEffect(()=>{let ie=or.current;if(ie){let je=ie.getBoundingClientRect().height;return ui(je),g(ke=>[{toastId:f.id,height:je,position:f.position},...ke]),()=>g(ke=>ke.filter(xn=>xn.toastId!==f.id))}},[g,f.id]),R.useEffect(()=>{f.delete&&ir()},[ir,f.delete]);function nE(){return N!=null&&N.loading?R.createElement("div",{className:"sonner-loader","data-visible":Qe==="loading"},N.loading):H?R.createElement("div",{className:"sonner-loader","data-visible":Qe==="loading"},H):R.createElement(i2,{visible:Qe==="loading"})}return R.createElement("li",{"aria-live":f.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:or,className:B(W,Qk,j==null?void 0:j.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[Qe],(n=f==null?void 0:f.classNames)==null?void 0:n[Qe]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:E,"data-styled":!(f.jsx||f.unstyled||m),"data-mounted":te,"data-promise":!!f.promise,"data-removed":Be,"data-visible":Xu,"data-y-position":Km,"data-x-position":eE,"data-index":x,"data-front":Qu,"data-swiping":Ge,"data-dismissible":$s,"data-type":Qe,"data-invert":tE,"data-swipe-out":qe,"data-expanded":!!(_||ne&&te),style:{"--index":x,"--toasts-before":x,"--z-index":w.length-x,"--offset":`${Be?el:Fs.current}px`,"--initial-height":ne?"auto":`${es}px`,...C,...f.style},onPointerDown:ie=>{ed||!$s||(tl.current=new Date,Ls(Fs.current),ie.target.setPointerCapture(ie.pointerId),ie.target.tagName!=="BUTTON"&&(Xt(!0),Us.current={x:ie.clientX,y:ie.clientY}))},onPointerUp:()=>{var ie,je,ke,xn;if(qe||!$s)return;Us.current=null;let wn=Number(((ie=or.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount").replace("px",""))||0),rl=new Date().getTime()-((je=tl.current)==null?void 0:je.getTime()),rE=Math.abs(wn)/rl;if(Math.abs(wn)>=E2||rE>.11){Ls(Fs.current),(ke=f.onDismiss)==null||ke.call(f,f),ir(),Jt(!0);return}(xn=or.current)==null||xn.style.setProperty("--swipe-amount","0px"),Xt(!1)},onPointerMove:ie=>{var je;if(!Us.current||!$s)return;let ke=ie.clientY-Us.current.y,xn=ie.clientX-Us.current.x,wn=(Km==="top"?Math.min:Math.max)(0,ke),rl=ie.pointerType==="touch"?10:2;Math.abs(wn)>rl?(je=or.current)==null||je.style.setProperty("--swipe-amount",`${ke}px`):Math.abs(xn)>rl&&(Us.current=null)}},Jk&&!f.jsx?R.createElement("button",{"aria-label":P,"data-disabled":ed,"data-close-button":!0,onClick:ed||!$s?()=>{}:()=>{var ie;ir(),(ie=f.onDismiss)==null||ie.call(f,f)},className:B(j==null?void 0:j.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,f.jsx||R.isValidElement(f.title)?f.jsx||f.title:R.createElement(R.Fragment,null,Qe||f.icon||f.promise?R.createElement("div",{"data-icon":"",className:B(j==null?void 0:j.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||nE():null,f.type!=="loading"?f.icon||(N==null?void 0:N[Qe])||s2(Qe):null):null,R.createElement("div",{"data-content":"",className:B(j==null?void 0:j.content,(i=f==null?void 0:f.classNames)==null?void 0:i.content)},R.createElement("div",{"data-title":"",className:B(j==null?void 0:j.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},f.title),f.description?R.createElement("div",{"data-description":"",className:B(U,Xk,j==null?void 0:j.description,(l=f==null?void 0:f.classNames)==null?void 0:l.description)},f.description):null),R.isValidElement(f.cancel)?f.cancel:f.cancel&&Sl(f.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||L,onClick:ie=>{var je,ke;
227Sl(f.cancel)&&$s&&((ke=(je=f.cancel).onClick)==null||ke.call(je,ie),ir())},className:B(j==null?void 0:j.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,R.isValidElement(f.action)?f.action:f.action&&Sl(f.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||I,onClick:ie=>{var je,ke;Sl(f.action)&&(ie.defaultPrevented||((ke=(je=f.action).onClick)==null||ke.call(je,ie),ir()))},className:B(j==null?void 0:j.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function Cv(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var T2=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:s,closeButton:o,className:i,offset:a,theme:l="light",richColors:u,duration:d,style:h,visibleToasts:f=x2,toastOptions:m,dir:v=Cv(),gap:g=k2,loadingIcon:b,icons:y,containerAriaLabel:x="Notifications",pauseWhenPageIsHidden:w,cn:_=C2}=e,[k,E]=R.useState([]),S=R.useMemo(()=>Array.from(new Set([n].concat(k.filter($=>$.position).map($=>$.position)))),[k,n]),[C,L]=R.useState([]),[I,W]=R.useState(!1),[U,X]=R.useState(!1),[T,ee]=R.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=R.useRef(null),ne=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=R.useRef(null),N=R.useRef(!1),P=R.useCallback($=>{var B;(B=k.find(te=>te.id===$.id))!=null&&B.delete||Pt.dismiss($.id),E(te=>te.filter(({id:xe})=>xe!==$.id))},[k]);return R.useEffect(()=>Pt.subscribe($=>{if($.dismiss){E(B=>B.map(te=>te.id===$.id?{...te,delete:!0}:te));return}setTimeout(()=>{gw.flushSync(()=>{E(B=>{let te=B.findIndex(xe=>xe.id===$.id);return te!==-1?[...B.slice(0,te),{...B[te],...$},...B.slice(te+1)]:[$,...B]})})})}),[]),R.useEffect(()=>{if(l!=="system"){ee(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ee("dark"):ee("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:$})=>{ee($?"dark":"light")})},[l]),R.useEffect(()=>{k.length<=1&&W(!1)},[k]),R.useEffect(()=>{let $=B=>{var te,xe;r.every(Be=>B[Be]||B.code===Be)&&(W(!0),(te=H.current)==null||te.focus()),B.code==="Escape"&&(document.activeElement===H.current||(xe=H.current)!=null&&xe.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[r]),R.useEffect(()=>{if(H.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,N.current=!1)}},[H.current]),k.length?R.createElement("section",{"aria-label":`${x} ${ne}`,tabIndex:-1},S.map(($,B)=>{var te;let[xe,Be]=$.split("-");return R.createElement("ol",{key:$,dir:v==="auto"?Cv():v,tabIndex:-1,ref:H,className:i,"data-sonner-toaster":!0,"data-theme":T,"data-y-position":xe,"data-x-position":Be,style:{"--front-toast-height":`${((te=C[0])==null?void 0:te.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||w2,"--width":`${_2}px`,"--gap":`${g}px`,...h},onBlur:he=>{N.current&&!he.currentTarget.contains(he.relatedTarget)&&(N.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||N.current||(N.current=!0,j.current=he.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{U||W(!1)},onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},k.filter(he=>!he.position&&B===0||he.position===$).map((he,Ge)=>{var Xt,qe;return R.createElement(j2,{key:he.id,icons:y,index:Ge,toast:he,defaultRichColors:u,duration:(Xt=m==null?void 0:m.duration)!=null?Xt:d,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:t,visibleToasts:f,closeButton:(qe=m==null?void 0:m.closeButton)!=null?qe:o,interacting:U,position:$,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:P,toasts:k.filter(Jt=>Jt.position==he.position),heights:C.filter(Jt=>Jt.position==he.position),setHeights:L,expandByDefault:s,gap:g,loadingIcon:b,expanded:I,pauseWhenPageIsHidden:w,cn:_})}))})):null};const P2=({...e})=>{const{theme:t="system"}=r2();return c.jsx(T2,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var N2=h0.useId||(()=>{}),A2=0;function Kn(e){const[t,n]=p.useState(N2());return Jn(()=>{n(r=>r??String(A2++))},[e]),t?`radix-${t}`:""}const R2=["top","right","bottom","left"],zr=Math.min,At=Math.max,Pc=Math.round,Cl=Math.floor,Br=e=>({x:e,y:e}
vendor: 11,519 bytes, line 227
227),O2={left:"right",right:"left",bottom:"top",top:"bottom"},M2={start:"end",end:"start"};function mh(e,t,n){return At(e,zr(t,n))}function er(e,t){return typeof e=="function"?e(t):e}function tr(e){return e.split("-")[0]}function ri(e){return e.split("-")[1]}function Zp(e){return e==="x"?"y":"x"}function Yp(e){return e==="y"?"height":"width"}function Vr(e){return["top","bottom"].includes(tr(e))?"y":"x"}function Qp(e){return Zp(Vr(e))}function D2(e,t,n){n===void 0&&(n=!1);const r=ri(e),s=Qp(e),o=Yp(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Nc(i)),[i,Nc(i)]}function I2(e){const t=Nc(e);return[gh(e),t,gh(t)]}function gh(e){return e.replace(/start|end/g,t=>M2[t])}function L2(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:i;default:return[]}}function $2(e,t,n,r){const s=ri(e);let o=L2(tr(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(gh)))),o}function Nc(e){return e.replace(/left|right|bottom|top/g,t=>O2[t])}function F2(e){return{top:0,right:0,bottom:0,left:0,...e}}function yb(e){return typeof e!="number"?F2(e):{top:e,right:e,bottom:e,left:e}}function Ac(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function jv(e,t,n){let{reference:r,floating:s}=e;const o=Vr(t),i=Qp(t),a=Yp(i),l=tr(t),u=o==="y",d=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-s.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-s.width,y:h};break;default:m={x:r.x,y:r.y}}switch(ri(t)){case"start":m[i]-=f*(n&&u?-1:1);break;case"end":m[i]+=f*(n&&u?-1:1);break}return m}const U2=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=jv(u,r,l),f=r,m={},v=0;for(let g=0;g<a.length;g++){const{name:b,fn:y}=a[g],{x,y:w,data:_,reset:k}=await y({x:d,y:h,initialPlacement:r,placement:f,strategy:s,middlewareData:m,rects:u,platform:i,elements:{reference:e,floating:t}});d=x??d,h=w??h,m={...m,[b]:{...m[b],..._}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:d,y:h}=jv(u,f,l)),g=-1)}return{x:d,y:h,placement:f,strategy:s,middlewareData:m}};async function fa(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:m=0}=er(t,e),v=yb(m),b=a[f?h==="floating"?"reference":"floating":h],y=Ac(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),x=h==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Ac(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:l}):x);return{top:(y.top-k.top+v.top)/_.y,bottom:(k.bottom-y.bottom+v.bottom)/_.y,left:(y.left-k.left+v.left)/_.x,right:(k.right-y.right+v.right)/_.x}}const z2=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=er(e,t)||{};if(u==null)return{};const h=yb(d),f={x:n,y:r},m=Qp(s),v=Yp(m),g=await i.getDimensions(u),b=m==="y",y=b?"top":"left",x=b?"bottom":"right",w=b?"clientHeight":"clientWidth",_=o.reference[v]+o.reference[m]-f[m]-o.floating[v],k=f[m]-o.reference[m],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let S=E?E[w]:0;(!S||!await(i.isElement==null?void 0:i.isElement(E)))&&(S=a.floating[w]||o.floating[v]);const C=_/2-k/2,L=S/2-g[v]/2-1,I=zr(h[y],L),W=zr(h[x],L),U=I,X=S-g[v]-W,T=S/2-g[v]/2+C,ee=mh(U,T,X),H=!l.arrow&&ri(s)!=null&&T!==ee&&o.reference[v]/2-(T<U?I:W)-g[v]/2<0,ne=H?T<U?T-U:T-X:0;return{[m]:f[m]+ne,data:{[m]:ee,centerOffset:T-ee-ne,...H&&{alignmentOffset:ne}},reset:H}}}),B2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...b}=er(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=tr(s),x=Vr(a),w=tr(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=f||(w||!g?[Nc(a)]:I2(a)),E=v!=="none";!f&&E&&k.push(...$2(a,g,v,_));const S=[a,...k],C=await fa(t,b),L=[];let I=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&L.push(C[y]),h){const T=D2(s,i,_);L.push(C[T[0]],C[T[1]])}if(I=[...I,{placement:s,overflows:L}],!L.every(T=>T<=0)){var W,U;const T=(((W=o.flip)==null?void 0:W.index)||0)+1,ee=S[T];if(ee)return{data:{index:T,overflows:I},reset:{placement:ee}};let H=(U=I.filter(ne=>ne.overflows[0]<=0).sort((ne,j)=>ne.overflows[1]-j.overflows[1])[0])==null?void 0:U.placement;if(!H)switch(m){case"bestFit":{var X;const ne=(X=I.filter(j=>{if(E){const N=Vr(j.placement);return N===x||N==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(N=>N>0).reduce((N,P)=>N+P,0)]).sort((j,N)=>j[1]-N[1])[0])==null?void 0:X[0];ne&&(H=ne);break}case"initialPlacement":H=a;break}if(s!==H)return{reset:{placement:H}}}return{}}}};function Tv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pv(e){return R2.some(t=>e[t]>=0)}const V2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=er(e,t);switch(r){case"referenceHidden":{const o=await fa(t,{...s,elementContext:"reference"}),i=Tv(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Pv(i)}}}case"escaped":{const o=await fa(t,{...s,altBoundary:!0}),i=Tv(o,n.floating);return{data:{escapedOffsets:i,escaped:Pv(i)}}}default:return{}}}}};async function W2(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=tr(n),a=ri(n),l=Vr(n)==="y",u=["left","top"].includes(i)?-1:1,d=o&&l?-1:1,h=er(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),l?{x:m*d,y:f*u}:{x:f*u,y:m*d}}const H2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await W2(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},G2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=er(e,t),u={x:n,y:r},d=await fa(t,l),h=Vr(tr(s)),f=Zp(h);let m=u[f],v=u[h];if(o){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=m+d[b],w=m-d[y];m=mh(x,m,w)}if(i){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=v+d[b],w=v-d[y];v=mh(x,v,w)}const g=a.fn({...t,[f]:m,[h]:v});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:o,[h]:i}}}}}},q2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=er(e,t),d={x:n,y:r},h=Vr(s),f=Zp(h);let m=d[f],v=d[h];const g=er(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=f==="y"?"height":"width",_=o.reference[f]-o.floating[w]+b.mainAxis,k=o.reference[f]+o.reference[w]-b.mainAxis;m<_?m=_:m>k&&(m=k)}if(u){var y,x;const w=f==="y"?"width":"height",_=["top","left"].includes(tr(s)),k=o.reference[h]-o.floating[w]+(_&&((y=i.offset)==null?void 0:y[h])||0)+(_?0:b.crossAxis),E=o.reference[h]+o.reference[w]+(_?0:((x=i.offset)==null?void 0:x[h])||0)-(_?b.crossAxis:0);v<k?v=k:v>E&&(v=E)}return{[f]:m,[h]:v}}}},K2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...u}=er(e,t),d=await fa(t,u),h=tr(s),f=ri(s),m=Vr(s)==="y",{width:v,height:g}=o.floating;let b,y;h==="top"||h==="bottom"?(b=h,y=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,b=f==="end"?"top":"bottom");const x=g-d.top-d.bottom,w=v-d.left-d.right,_=zr(g-d[b],x),k=zr(v-d[y],w),E=!t.middlewareData.shift;let S=_,C=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=x),E&&!f){const I=At(d.left,0),W=At(d.right,0),U=At(d.top,0),X=At(d.bottom,0);m?C=v-2*(I!==0||W!==0?I+W:At(d.left,d.right)):S=g-2*(U!==0||X!==0?U+X:At(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:S});const L=await i.getDimensions(a.floating);return v!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function _u(){return typeof window<"u"}function si(e){return xb(e)?(e.nodeName||"").toLowerCase():"#document"}function Mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dn(e){var t;return(t=(xb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xb(e){return _u()?e instanceof Node||e instanceof Mt(e).Node:!1}function mn(e){return _u()?e instanceof Element||e instanceof Mt(e).Element:!1}function Rn(e){return _u()?e instanceof HTMLElement||e instanceof Mt(e).HTMLElement:!1}function Nv(e){return!_u()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mt(e).ShadowRoot}function qa(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=gn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Z2(e){return["table","td","th"].includes(si(e))}function ku(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Xp(e){const t=Jp(),n=mn(e)?gn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Y2(e){let t=Wr(e);for(;Rn(t)&&!Vo(t);){if(Xp(t))return t;if(ku(t))return null;t=Wr(t)}return null}function Jp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vo(e){return["html","body","#document"].includes(si(e))}function gn(e){return Mt(e).getComputedStyle(e)}function Eu(e){return mn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wr(e){if(si(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nv(e)&&e.host||Dn(e);return Nv(t)?t.host:t}function wb(e){const t=Wr(e);return Vo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rn(t)&&qa(t)?t:wb(t)}
vendor: 4,748 bytes, line 227
227function ha(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=wb(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),i=Mt(s);if(o){const a=vh(i);return t.concat(i,i.visualViewport||[],qa(s)?s:[],a&&n?ha(a):[])}return t.concat(s,ha(s,[],n))}function vh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bb(e){const t=gn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Rn(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,a=Pc(n)!==o||Pc(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function em(e){return mn(e)?e:e.contextElement}function ko(e){const t=em(e);if(!Rn(t))return Br(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=bb(t);let i=(o?Pc(n.width):n.width)/r,a=(o?Pc(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Q2=Br(0);function _b(e){const t=Mt(e);return!Jp()||!t.visualViewport?Q2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function X2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mt(e)?!1:t}function Ss(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=em(e);let i=Br(1);t&&(r?mn(r)&&(i=ko(r)):i=ko(e));const a=X2(o,n,r)?_b(o):Br(0);let l=(s.left+a.x)/i.x,u=(s.top+a.y)/i.y,d=s.width/i.x,h=s.height/i.y;if(o){const f=Mt(o),m=r&&mn(r)?Mt(r):r;let v=f,g=vh(v);for(;g&&r&&m!==v;){const b=ko(g),y=g.getBoundingClientRect(),x=gn(g),w=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,_=y.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,h*=b.y,l+=w,u+=_,v=Mt(g),g=vh(v)}}return Ac({width:d,height:h,x:l,y:u})}function J2(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",i=Dn(r),a=t?ku(t.floating):!1;if(r===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Br(1);const d=Br(0),h=Rn(r);if((h||!h&&!o)&&((si(r)!=="body"||qa(i))&&(l=Eu(r)),Rn(r))){const f=Ss(r);u=ko(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x,y:n.y*u.y-l.scrollTop*u.y+d.y}}function eP(e){return Array.from(e.getClientRects())}function yh(e,t){const n=Eu(e).scrollLeft;return t?t.left+n:Ss(Dn(e)).left+n}function tP(e){const t=Dn(e),n=Eu(e),r=e.ownerDocument.body,s=At(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=At(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+yh(e);const a=-n.scrollTop;return gn(r).direction==="rtl"&&(i+=At(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}function nP(e,t){const n=Mt(e),r=Dn(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const u=Jp();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}function rP(e,t){const n=Ss(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Rn(e)?ko(e):Br(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,u=r*o.y;return{width:i,height:a,x:l,y:u}}function Av(e,t,n){let r;if(t==="viewport")r=nP(e,n);else if(t==="document")r=tP(Dn(e));else if(mn(t))r=rP(t,n);else{const s=_b(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return Ac(r)}function kb(e,t){const n=Wr(e);return n===t||!mn(n)||Vo(n)?!1:gn(n).position==="fixed"||kb(n,t)}function sP(e,t){const n=t.get(e);if(n)return n;let r=ha(e,[],!1).filter(a=>mn(a)&&si(a)!=="body"),s=null;const o=gn(e).position==="fixed";let i=o?Wr(e):e;for(;mn(i)&&!Vo(i);){const a=gn(i),l=Xp(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||qa(i)&&!l&&kb(e,i))?r=r.filter(d=>d!==i):s=a,i=Wr(i)}return t.set(e,r),r}function oP(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?ku(t)?[]:sP(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,d)=>{const h=Av(t,d,s);return u.top=At(h.top,u.top),u.right=zr(h.right,u.right),u.bottom=zr(h.bottom,u.bottom),u.left=At(h.left,u.left),u},Av(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function iP(e){const{width:t,height:n}=bb(e);return{width:t,height:n}}function aP(e,t,n){const r=Rn(t),s=Dn(t),o=n==="fixed",i=Ss(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Br(0);if(r||!r&&!o)if((si(t)!=="body"||qa(s))&&(a=Eu(t)),r){const m=Ss(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else s&&(l.x=yh(s));let u=0,d=0;if(s&&!r&&!o){const m=s.getBoundingClientRect();d=m.top+a.scrollTop,u=m.left+a.scrollLeft-yh(s,m)}const h=i.left+a.scrollLeft-l.x-u,f=i.top+a.scrollTop-l.y-d;return{x:h,y:f,width:i.width,height:i.height}}function Id(e){return gn(e).position==="static"}function Rv(e,t){if(!Rn(e)||gn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Dn(e)===n&&(n=n.ownerDocument.body),n}function Eb(e,t){const n=Mt(e);
vendor: 8,532 bytes, line 227
227if(ku(e))return n;if(!Rn(e)){let s=Wr(e);for(;s&&!Vo(s);){if(mn(s)&&!Id(s))return s;s=Wr(s)}return n}let r=Rv(e,t);for(;r&&Z2(r)&&Id(r);)r=Rv(r,t);return r&&Vo(r)&&Id(r)&&!Xp(r)?n:r||Y2(e)||n}const lP=async function(e){const t=this.getOffsetParent||Eb,n=this.getDimensions,r=await n(e.floating);return{reference:aP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cP(e){return gn(e).direction==="rtl"}const uP={convertOffsetParentRelativeRectToViewportRelativeRect:J2,getDocumentElement:Dn,getClippingRect:oP,getOffsetParent:Eb,getElementRects:lP,getClientRects:eP,getDimensions:iP,getScale:ko,isElement:mn,isRTL:cP};function dP(e,t){let n=null,r;const s=Dn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const{left:u,top:d,width:h,height:f}=e.getBoundingClientRect();if(a||t(),!h||!f)return;const m=Cl(d),v=Cl(s.clientWidth-(u+h)),g=Cl(s.clientHeight-(d+f)),b=Cl(u),x={rootMargin:-m+"px "+-v+"px "+-g+"px "+-b+"px",threshold:At(0,zr(1,l))||1};let w=!0;function _(k){const E=k[0].intersectionRatio;if(E!==l){if(!w)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(_,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return i(!0),o}function fP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=em(e),d=s||o?[...u?ha(u):[],...ha(t)]:[];d.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const h=u&&a?dP(u,n):null;let f=-1,m=null;i&&(m=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let v,g=l?Ss(e):null;l&&b();function b(){const y=Ss(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,v=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(x=>{s&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),h==null||h(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(v)}}const hP=H2,pP=G2,mP=B2,gP=K2,vP=V2,Ov=z2,yP=q2,xP=(e,t,n)=>{const r=new Map,s={platform:uP,...n},o={...s.platform,_c:r};return U2(e,t,{...s,platform:o})};var tc=typeof document<"u"?p.useLayoutEffect:p.useEffect;function Rc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Rc(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!Rc(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Sb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mv(e,t){const n=Sb(e);return Math.round(t*n)/n}function Ld(e){const t=p.useRef(e);return tc(()=>{t.current=e}),t}function wP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,h]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=p.useState(r);Rc(f,r)||m(r);const[v,g]=p.useState(null),[b,y]=p.useState(null),x=p.useCallback(j=>{j!==E.current&&(E.current=j,g(j))},[]),w=p.useCallback(j=>{j!==S.current&&(S.current=j,y(j))},[]),_=o||v,k=i||b,E=p.useRef(null),S=p.useRef(null),C=p.useRef(d),L=l!=null,I=Ld(l),W=Ld(s),U=Ld(u),X=p.useCallback(()=>{if(!E.current||!S.current)return;const j={placement:t,strategy:n,middleware:f};W.current&&(j.platform=W.current),xP(E.current,S.current,j).then(N=>{const P={...N,isPositioned:U.current!==!1};T.current&&!Rc(C.current,P)&&(C.current=P,ei.flushSync(()=>{h(P)}))})},[f,t,n,W,U]);tc(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,h(j=>({...j,isPositioned:!1})))},[u]);const T=p.useRef(!1);tc(()=>(T.current=!0,()=>{T.current=!1}),[]),tc(()=>{if(_&&(E.current=_),k&&(S.current=k),_&&k){if(I.current)return I.current(_,k,X);X()}},[_,k,X,I,L]);const ee=p.useMemo(()=>({reference:E,floating:S,setReference:x,setFloating:w}),[x,w]),H=p.useMemo(()=>({reference:_,floating:k}),[_,k]),ne=p.useMemo(()=>{const j={position:n,left:0,top:0};if(!H.floating)return j;const N=Mv(H.floating,d.x),P=Mv(H.floating,d.y);return a?{...j,transform:"translate("+N+"px, "+P+"px)",...Sb(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:P}},[n,a,H.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:X,refs:ee,elements:H,floatingStyles:ne}),[d,X,ee,H,ne])}const bP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ov({element:r.current,padding:s}).fn(n):{}:r?Ov({element:r,padding:s}).fn(n):{}}}},_P=(e,t)=>({...hP(e),options:[e,t]}),kP=(e,t)=>({...pP(e),options:[e,t]}),EP=(e,t)=>({...yP(e),options:[e,t]}),SP=(e,t)=>({...mP(e),options:[e,t]}),CP=(e,t)=>({...gP(e),options:[e,t]}),jP=(e,t)=>({...vP(e),options:[e,t]}),TP=(e,t)=>({...bP(e),options:[e,t]});var PP="Arrow",Cb=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...o}=e;return c.jsx(me.svg,{...o,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Cb.displayName=PP;var NP=Cb;function AP(e,t=[]){let n=[];function r(o,i){const a=p.createContext(i),l=n.length;n=[...n,i];function u(h){const{scope:f,children:m,...v}=h,g=(f==null?void 0:f[e][l])||a,b=p.useMemo(()=>v,Object.values(v));return c.jsx(g.Provider,{value:b,children:m})}function d(h,f){const m=(f==null?void 0:f[e][l])||a,v=p.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,d]}const s=()=>{const o=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,RP(s,...t)]}function RP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const h=l(o)[`__scope${u}`];return{...a,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function OP(e){const[t,n]=p.useState(void 0);return Jn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var tm="Popper",[jb,oi]=AP(tm),[MP,Tb]=jb(tm),Pb=e=>{const{__scopePopper:t,children:n}=e,[r,s]=p.useState(null);return c.jsx(MP,{scope:t,anchor:r,onAnchorChange:s,children:n})};Pb.displayName=tm;var Nb="PopperAnchor",Ab=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,o=Tb(Nb,n),i=p.useRef(null),a=Re(t,i);return p.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.jsx(me.div,{...s,ref:a})});Ab.displayName=Nb;var nm="PopperContent",[DP,IP]=jb(nm),Rb=p.forwardRef((e,t)=>{var Ge,Xt,qe,Jt,el,Ls;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:v,...g}=e,b=Tb(nm,n),[y,x]=p.useState(null),w=Re(t,es=>x(es)),[_,k]=p.useState(null),E=OP(_),S=(E==null?void 0:E.width)??0,C=(E==null?void 0:E.height)??0,L=r+(o!=="center"?"-"+o:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},W=Array.isArray(u)?u:[u],U=W.length>0,X={padding:I,boundary:W.filter($P),altBoundary:U},{refs:T,floatingStyles:ee,placement:H,isPositioned:ne,middlewareData:j}=wP({strategy:"fixed",placement:L,whileElementsMounted:(...es)=>fP(...es,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[_P({mainAxis:s+C,alignmentAxis:i}
227),l&&kP({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?EP():void 0,...X}),l&&SP({...X}),CP({...X,apply:({elements:es,rects:ui,availableWidth:tl,availableHeight:or})=>{const{width:Qu,height:Xu}=ui.reference,Qe=es.floating.style;Qe.setProperty("--radix-popper-available-width",`${tl}px`),Qe.setProperty("--radix-popper-available-height",`${or}px`),Qe.setProperty("--radix-popper-anchor-width",`${Qu}px`),Qe.setProperty("--radix-popper-anchor-height",`${Xu}px`)}}),_&&TP({element:_,padding:a}),FP({arrowWidth:S,arrowHeight:C}),f&&jP({strategy:"referenceHidden",...X})]}),[N,P]=Db(H),$=gt(v);Jn(()=>{ne&&($==null||$())},[ne,$]);const B=(Ge=j.arrow)==null?void 0:Ge.x,te=(Xt=j.arrow)==null?void 0:Xt.y,xe=((qe=j.arrow)==null?void 0:qe.centerOffset)!==0,[Be,he]=p.useState();return Jn(()=>{y&&he(window.getComputedStyle(y).zIndex)},[y]),c.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:ne?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Be,"--radix-popper-transform-origin":[(Jt=j.transformOrigin)==null?void 0:Jt.x,(el=j.transformOrigin)==null?void 0:el.y].join(" "),...((Ls=j.hide)==null?void 0:Ls.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(DP,{scope:n,placedSide:N,onArrowChange:k,arrowX:B,arrowY:te,shouldHideArrow:xe,children:c.jsx(me.div,{"data-side":N,"data-align":P,...g,ref:w,style:{...g.style,animation:ne?void 0:"none"}})})})});Rb.displayName=nm;var Ob="PopperArrow",LP={top:"bottom",right:"left",bottom:"top",left:"right"},Mb=p.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,o=IP(Ob,r),i=LP[o.placedSide];return c.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:c.jsx(NP,{...s,ref:n,style:{...s.style,display:"block"}})})});Mb.displayName=Ob;function $P(e){return e!==null}var FP=e=>({name:"transformOrigin",options:e,fn(t){var b,y,x;const{placement:n,rects:r,middlewareData:s}=t,i=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=Db(n),h={start:"0%",center:"50%",end:"100%"}[d],f=(((y=s.arrow)==null?void 0:y.x)??0)+a/2,m=(((x=s.arrow)==null?void 0:x.y)??0)+l/2;let v="",g="";return u==="bottom"?(v=i?h:`${f}px`,g=`${-l}px`):u==="top"?(v=i?h:`${f}px`,g=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,g=i?h:`${m}px`):u==="left"&&(v=`${r.floating.width+l}px`,g=i?h:`${m}px`),{data:{x:v,y:g}}}});function Db(e){const[t,n="center"]=e.split("-");return[t,n]}var rm=Pb,Su=Ab,sm=Rb,om=Mb,[Cu,R3]=As("Tooltip",[oi]),ju=oi(),Ib="TooltipProvider",UP=700,xh="tooltip.open",[zP,im]=Cu(Ib),Lb=e=>{const{__scopeTooltip:t,delayDuration:n=UP,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=e,[i,a]=p.useState(!0),l=p.useRef(!1),u=p.useRef(0);return p.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),c.jsx(zP,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:p.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:p.useCallback(d=>{l.current=d},[]),disableHoverableContent:s,children:o})};Lb.displayName=Ib;var Tu="Tooltip",[BP,Pu]=Cu(Tu),$b=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:s=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:a}=e,l=im(Tu,e.__scopeTooltip),u=ju(t),[d,h]=p.useState(null),f=Kn(),m=p.useRef(0),v=i??l.disableHoverableContent,g=a??l.delayDuration,b=p.useRef(!1),[y=!1,x]=Rs({prop:r,defaultProp:s,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(xh))):l.onClose(),o==null||o(S)}}),w=p.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),_=p.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b.current=!1,x(!0)},[x]),k=p.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),E=p.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{b.current=!0,x(!0),m.current=0},g)},[g,x]);return p.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),c.jsx(rm,{...u,children:c.jsx(BP,{scope:t,contentId:f,open:y,stateAttribute:w,trigger:d,onTriggerChange:h,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayed?E():_()},[l.isOpenDelayed,E,_]),onTriggerLeave:p.useCallback(()=>{v?k():(window.clearTimeout(m.current),m.current=0)},[k,v]),onOpen:_,onClose:k,disableHoverableContent:v,children:n})})};$b.displayName=Tu;var wh="TooltipTrigger",Fb=p.forwardRef((e,t)=>
vendor: 5,198 bytes, line 227
227{const{__scopeTooltip:n,...r}=e,s=Pu(wh,n),o=im(wh,n),i=ju(n),a=p.useRef(null),l=Re(t,a,s.onTriggerChange),u=p.useRef(!1),d=p.useRef(!1),h=p.useCallback(()=>u.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(Su,{asChild:!0,...i,children:c.jsx(me.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:q(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:q(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:q(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:q(e.onBlur,s.onClose),onClick:q(e.onClick,s.onClose)})})});Fb.displayName=wh;var VP="TooltipPortal",[O3,WP]=Cu(VP,{forceMount:void 0}),Wo="TooltipContent",Ub=p.forwardRef((e,t)=>{const n=WP(Wo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=e,i=Pu(Wo,e.__scopeTooltip);return c.jsx(Ft,{present:r||i.open,children:i.disableHoverableContent?c.jsx(zb,{side:s,...o,ref:t}):c.jsx(HP,{side:s,...o,ref:t})})}),HP=p.forwardRef((e,t)=>{const n=Pu(Wo,e.__scopeTooltip),r=im(Wo,e.__scopeTooltip),s=p.useRef(null),o=Re(t,s),[i,a]=p.useState(null),{trigger:l,onClose:u}=n,d=s.current,{onPointerInTransitChange:h}=r,f=p.useCallback(()=>{a(null),h(!1)},[h]),m=p.useCallback((v,g)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},x=ZP(y,b.getBoundingClientRect()),w=YP(y,x),_=QP(g.getBoundingClientRect()),k=JP([...w,..._]);a(k),h(!0)},[h]);return p.useEffect(()=>()=>f(),[f]),p.useEffect(()=>{if(l&&d){const v=b=>m(b,d),g=b=>m(b,l);return l.addEventListener("pointerleave",v),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",v),d.removeEventListener("pointerleave",g)}}},[l,d,m,f]),p.useEffect(()=>{if(i){const v=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},x=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),w=!XP(y,i);x?f():w&&(f(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,d,i,u,f]),c.jsx(zb,{...e,ref:o})}),[GP,qP]=Cu(Tu,{isInside:!1}),zb=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=e,l=Pu(Wo,n),u=ju(n),{onClose:d}=l;return p.useEffect(()=>(document.addEventListener(xh,d),()=>document.removeEventListener(xh,d)),[d]),p.useEffect(()=>{if(l.trigger){const h=f=>{const m=f.target;m!=null&&m.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),c.jsx(ti,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:c.jsxs(sm,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(Sw,{children:r}),c.jsx(GP,{scope:n,isInside:!0,children:c.jsx(Fj,{id:l.contentId,role:"tooltip",children:s||r})})]})})});Ub.displayName=Wo;var Bb="TooltipArrow",KP=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=ju(n);return qP(Bb,n).isInside?null:c.jsx(om,{...s,...r,ref:t})});KP.displayName=Bb;function ZP(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function YP(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function QP(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function XP(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o].x,l=t[o].y,u=t[i].x,d=t[i].y;l>r!=d>r&&n<(u-a)*(r-l)/(d-l)+a&&(s=!s)}return s}function JP(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),eN(t)}function eN(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var tN=Lb,nN=$b,rN=Fb,Vb=Ub;const am=tN,Wb=nN,Hb=rN,lm=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
vendor: 23,302 bytes, line 227
227c.jsx(Vb,{ref:r,sideOffset:t,className:de("z-[100] overflow-hidden rounded-md bg-gray-900 px-3 py-2 text-sm text-white shadow-lg border border-gray-700 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),style:{boxShadow:"0px 4px 12px rgba(0, 0, 0, 0.3)"},...n}));lm.displayName=Vb.displayName;var Nu=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(){}},Au=typeof window>"u"||"Deno"in globalThis;function rn(){}function sN(e,t){return typeof e=="function"?e(t):e}function oN(e){return typeof e=="number"&&e>=0&&e!==1/0}function iN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Dv(e,t){return typeof e=="function"?e(t):e}function aN(e,t){return typeof e=="function"?e(t):e}function Iv(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==cm(i,t.options))return!1}else if(!ma(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function Lv(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(pa(t.options.mutationKey)!==pa(o))return!1}else if(!ma(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function cm(e,t){return((t==null?void 0:t.queryKeyHashFn)||pa)(e)}function pa(e){return JSON.stringify(e,(t,n)=>bh(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function ma(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ma(e[n],t[n])):!1}function Gb(e,t){if(e===t)return e;const n=$v(e)&&$v(t);if(n||bh(e)&&bh(t)){const r=n?e:Object.keys(e),s=r.length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let l=0;for(let u=0;u<i;u++){const d=n?u:o[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=Gb(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return s===i&&l===s?e:a}return t}function $v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function bh(e){if(!Fv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Fv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Fv(e){return Object.prototype.toString.call(e)==="[object Object]"}function lN(e){return new Promise(t=>{setTimeout(t,e)})}function cN(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Gb(e,t):t}function uN(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function dN(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var um=Symbol();function qb(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===um?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ds,br,jo,Zy,fN=(Zy=class extends Nu{constructor(){super();be(this,ds);be(this,br);be(this,jo);le(this,jo,t=>{if(!Au&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,br)||this.setEventListener(A(this,jo))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,br))==null||t.call(this),le(this,br,void 0))}setEventListener(t){var n;le(this,jo,t),(n=A(this,br))==null||n.call(this),le(this,br,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){A(this,ds)!==t&&(le(this,ds,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof A(this,ds)=="boolean"?A(this,ds):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ds=new WeakMap,br=new WeakMap,jo=new WeakMap,Zy),Kb=new fN,To,_r,Po,Yy,hN=(Yy=class extends Nu{constructor(){super();be(this,To,!0);be(this,_r);be(this,Po);le(this,Po,t=>{if(!Au&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){A(this,_r)||this.setEventListener(A(this,Po))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,_r))==null||t.call(this),le(this,_r,void 0))}setEventListener(t){var n;le(this,Po,t),(n=A(this,_r))==null||n.call(this),le(this,_r,t(this.setOnline.bind(this)))}setOnline(t){A(this,To)!==t&&(le(this,To,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return A(this,To)}},To=new WeakMap,_r=new WeakMap,Po=new WeakMap,Yy),Oc=new hN;function pN(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function mN(e){return Math.min(1e3*2**e,3e4)}function Zb(e){return(e??"online")==="online"?Oc.isOnline():!0}var Yb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $d(e){return e instanceof Yb}function Qb(e){let t=!1,n=0,r=!1,s;const o=pN(),i=g=>{var b;r||(f(new Yb(g)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Kb.isFocused()&&(e.networkMode==="always"||Oc.isOnline())&&e.canRun(),d=()=>Zb(e.networkMode)&&e.canRun(),h=g=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,g),s==null||s(),o.resolve(g))},f=g=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,g),s==null||s(),o.reject(g))},m=()=>new Promise(g=>{var b;s=y=>{(r||u())&&g(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;s=void 0,r||(g=e.onContinue)==null||g.call(e)}),v=()=>{if(r)return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(h).catch(y=>{var E;if(r)return;const x=e.retry??(Au?0:3),w=e.retryDelay??mN,_=typeof w=="function"?w(n,y):w,k=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,y);if(t||!k){f(y);return}n++,(E=e.onFail)==null||E.call(e,n,y),lN(_).then(()=>u()?void 0:m()).then(()=>{t?f(y):v()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?v():m().then(v),o)}}function gN(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=a=>setTimeout(a,0);const o=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var pt=gN(),fs,Qy,Xb=(Qy=class{constructor(){be(this,fs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),oN(this.gcTime)&&le(this,fs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Au?1/0:5*60*1e3))}clearGcTimeout(){A(this,fs)&&(clearTimeout(A(this,fs)),le(this,fs,void 0))}},fs=new WeakMap,Qy),No,Ao,Vt,it,La,hs,sn,Fn,Xy,vN=(Xy=class extends Xb{constructor(t){super();be(this,sn);be(this,No);be(this,Ao);be(this,Vt);be(this,it);be(this,La);be(this,hs);le(this,hs,!1),le(this,La,t.defaultOptions),this.setOptions(t.options),this.observers=[],le(this,Vt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,le(this,No,xN(this.options)),this.state=t.state??A(this,No),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=A(this,it))==null?void 0:t.promise}setOptions(t){this.options={...A(this,La),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,Vt).remove(this)}setData(t,n){const r=cN(this.state.data,t,this.options);return nt(this,sn,Fn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){nt(this,sn,Fn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=A(this,it))==null?void 0:r.promise;return(s=A(this,it))==null||s.cancel(t),n?n.then(rn).catch(rn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,No))}isActive(){return this.observers.some(t=>aN(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===um||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!iN(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,it))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,it))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),A(this,Vt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(A(this,it)&&(A(this,hs)?A(this,it).cancel({revert:!0}):A(this,it).cancelRetry()),this.scheduleGc()),A(this,Vt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||nt(this,sn,Fn).call(this,{type:"invalidate"})}fetch(t,n){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,it))return A(this,it).continueRetry(),A(this,it).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(le(this,hs,!0),r.signal)})},o=()=>{const h=qb(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return s(f),le(this,hs,!1),this.options.persister?this.options.persister(h,f,this):h(f)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};s(i),(l=this.options.behavior)==null||l.onFetch(i,this),le(this,Ao,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=i.fetchOptions)==null?void 0:u.meta))&&nt(this,sn,Fn).call(this,{type:"fetch",meta:(d=i.fetchOptions)==null?void 0:d.meta});const a=h=>{var f,m,v,g;$d(h)&&h.silent||nt(this,sn,Fn).call(this,{type:"error",error:h}),$d(h)||((m=(f=A(this,Vt).config).onError)==null||m.call(f,h,this),(g=(v=A(this,Vt).config).onSettled)==null||g.call(v,this.state.data,h,this)),this.scheduleGc()};return le(this,it,Qb({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,m,v,g;if(h===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(b){a(b);return}(m=(f=A(this,Vt).config).onSuccess)==null||m.call(f,h,this),(g=(v=A(this,Vt).config).onSettled)==null||g.call(v,h,this.state.error,this),this.scheduleGc()},onError:a,onFail:(h,f)=>{nt(this,sn,Fn).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{nt(this,sn,Fn).call(this,{type:"pause"})},onContinue:()=>{nt(this,sn,Fn).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),A(this,it).start()}},No=new WeakMap,Ao=new WeakMap,Vt=new WeakMap,it=new WeakMap,La=new WeakMap,hs=new WeakMap,sn=new WeakSet,Fn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yN(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return $d(s)&&s.revert&&A(this,Ao)?{...A(this,Ao),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),pt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),A(this,Vt).notify({query:this,type:"updated",action:t})})},Xy);function yN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zb(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xN(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var En,Jy,wN=(Jy=class extends Nu{constructor(t={}){super();be(this,En);this.config=t,le(this,En,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??cm(s,n);let i=this.get(o);return i||(i=new vN({cache:this,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){A(this,En).has(t.queryHash)||(A(this,En).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=A(this,En).get(t.queryHash);n&&(t.destroy(),n===t&&A(this,En).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){pt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return A(this,En).get(t)}getAll(){return[...A(this,En).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Iv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Iv(t,r)):n}notify(t){pt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){pt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){pt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},En=new WeakMap,Jy),Sn,ft,ps,Cn,ur,e0,bN=(e0=class extends Xb{constructor(t){super();be(this,Cn);be(this,Sn);be(this,ft);be(this,ps);this.mutationId=t.mutationId,le(this,ft,t.mutationCache),le(this,Sn,[]),this.state=t.state||_N(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){A(this,Sn).includes(t)||(A(this,Sn).push(t),this.clearGcTimeout(),A(this,ft).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){le(this,Sn,A(this,Sn).filter(n=>n!==t)),this.scheduleGc(),A(this,ft).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){A(this,Sn).length||(this.state.status==="pending"?this.scheduleGc():A(this,ft).remove(this))}continue(){var t;return((t=A(this,ps))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,i,a,l,u,d,h,f,m,v,g,b,y,x,w,_,k,E,S;le(this,ps,Qb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,L)=>{nt(this,Cn,ur).call(this,{type:"failed",failureCount:C,error:L})},onPause:()=>{nt(this,Cn,ur).call(this,{type:"pause"})},onContinue:()=>{nt(this,Cn,ur).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,ft).canRun(this)}));const n=this.state.status==="pending",r=!A(this,ps).canStart();try{if(!n){nt(this,Cn,ur).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(s=A(this,ft).config).onMutate)==null?void 0:o.call(s,t,this));const L=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));L!==this.state.context&&nt(this,Cn,ur).call(this,{type:"pending",context:L,variables:t,isPaused:r})}const C=await A(this,ps).start();return await((u=(l=A(this,ft).config).onSuccess)==null?void 0:u.call(l,C,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,C,t,this.state.context)),await((m=(f=A(this,ft).config).onSettled)==null?void 0:m.call(f,C,null,this.state.variables,this.state.context,this)),await((g=(v=this.options).onSettled)==null?void 0:g.call(v,C,null,t,this.state.context)),nt(this,Cn,ur).call(this,{type:"success",data:C}),C}catch(C){try{throw await((y=(b=A(this,ft).config).onError)==null?void 0:y.call(b,C,t,this.state.context,this)),await((w=(x=this.options).onError)==null?void 0:w.call(x,C,t,this.state.context)),await((k=(_=A(this,ft).config).onSettled)==null?void 0:k.call(_,void 0,C,this.state.variables,this.state.context,this)),await((S=(E=this.options).onSettled)==null?void 0:S.call(E,void 0,C,t,this.state.context)),C}finally{nt(this,Cn,ur).call(this,{type:"error",error:C})}}finally{A(this,ft).runNext(this)}}},Sn=new WeakMap,ft=new WeakMap,ps=new WeakMap,Cn=new WeakSet,ur=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),pt.batch(()=>{A(this,Sn).forEach(r=>{r.onMutationUpdate(t)}),A(this,ft).notify({mutation:this,type:"updated",action:t})})},e0);function _N(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Tt,$a,t0,kN=(t0=class extends Nu{constructor(t={}){super();be(this,Tt);be(this,$a);this.config=t,le(this,Tt,new Map),le(this,$a,Date.now())}build(t,n,r){const s=new bN({mutationCache:this,mutationId:++sl(this,$a)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){const n=jl(t),r=A(this,Tt).get(n)??[];r.push(t),A(this,Tt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=jl(t);if(A(this,Tt).has(n)){const s=(r=A(this,Tt).get(n))==null?void 0:r.filter(o=>o!==t);s&&(s.length===0?A(this,Tt).delete(n):A(this,Tt).set(n,s))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=A(this,Tt).get(jl(t)))==null?void 0:r.find(s=>s.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=A(this,Tt).get(jl(t)))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){pt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...A(this,Tt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Lv(n,r))}findAll(t={}){return this.getAll().filter(n=>Lv(t,n))}notify(t){pt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return pt.batch(()=>Promise.all(t.map(n=>n.continue().catch(rn))))}},Tt=new WeakMap,$a=new WeakMap,t0);function jl(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Uv(e){return{onFetch:(t,n)=>{var d,h,f,m,v;const r=t.options,s=(f=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],i=((v=t.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=qb(t.options,t.fetchOptions),x=async(w,_,k)=>{if(g)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const E={queryKey:t.queryKey,pageParam:_,direction:k?"backward":"forward",meta:t.options.meta};b(E);const S=await y(E),{maxPages:C}=t.options,L=k?dN:uN;return{pages:L(w.pages,S,C),pageParams:L(w.pageParams,_,C)}};if(s&&o.length){const w=s==="backward",_=w?EN:zv,k={pages:o,pageParams:i},E=_(r,k);a=await x(k,E,w)}else{const w=e??o.length;do{const _=l===0?i[0]??r.initialPageParam:zv(r,a);if(l>0&&_==null)break;a=await x(a,_),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var g,b;return(b=(g=t.options).persister)==null?void 0:b.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function zv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function EN(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var $e,kr,Er,Ro,Oo,Sr,Mo,Do,n0,SN=(n0=class{constructor(e={}){be(this,$e);be(this,kr);be(this,Er);be(this,Ro);be(this,Oo);be(this,Sr);be(this,Mo);be(this,Do);le(this,$e,e.queryCache||new wN),le(this,kr,e.mutationCache||new kN),le(this,Er,e.defaultOptions||{}),le(this,Ro,new Map),le(this,Oo,new Map),le(this,Sr,0)}mount(){sl(this,Sr)._++,A(this,Sr)===1&&(le(this,Mo,Kb.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,$e).onFocus())})),le(this,Do,Oc.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,$e).onOnline())})))}unmount(){var e,t;sl(this,Sr)._--,A(this,Sr)===0&&((e=A(this,Mo))==null||e.call(this),le(this,Mo,void 0),(t=A(this,Do))==null||t.call(this),le(this,Do,void 0))}isFetching(e){return A(this,$e).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return A(this,kr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,$e).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=A(this,$e).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Dv(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return A(this,$e).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=A(this,$e).get(r.queryHash),o=s==null?void 0:s.state.data,i=sN(t,o);if(i!==void 0)return A(this,$e).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return pt.batch(()=>A(this,$e).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,$e).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=A(this,$e);pt.batch(()=>
227{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=A(this,$e),r={type:"active",...e};return pt.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=pt.batch(()=>A(this,$e).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(rn).catch(rn)}invalidateQueries(e={},t={}){return pt.batch(()=>{if(A(this,$e).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=pt.batch(()=>A(this,$e).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(rn)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(rn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=A(this,$e).build(this,t);return n.isStaleByTime(Dv(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(rn).catch(rn)}fetchInfiniteQuery(e){return e.behavior=Uv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(rn).catch(rn)}ensureInfiniteQueryData(e){return e.behavior=Uv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Oc.isOnline()?A(this,kr).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,$e)}getMutationCache(){return A(this,kr)}getDefaultOptions(){return A(this,Er)}setDefaultOptions(e){le(this,Er,e)}setQueryDefaults(e,t){A(this,Ro).set(pa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...A(this,Ro).values()];let n={};return t.forEach(r=>{ma(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){A(this,Oo).set(pa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...A(this,Oo).values()];let n={};return t.forEach(r=>{ma(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...A(this,Er).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=cm(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.enabled!==!0&&t.queryFn===um&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...A(this,Er).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){A(this,$e).clear(),A(this,kr).clear()}},$e=new WeakMap,kr=new WeakMap,Er=new WeakMap,Ro=new WeakMap,Oo=new WeakMap,Sr=new WeakMap,Mo=new WeakMap,Do=new WeakMap,n0),CN=p.createContext(void 0),jN=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(CN.Provider,{value:e,children:t}));/** 228 * @remix-run/router v1.20.0 229 * 230 * Copyright (c) Remix Software Inc. 231 * 232 * This source code is licensed under the MIT license found in the 233 * LICENSE.md file in the root directory of this source tree. 234 * 235 * @license MIT 236 */function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ga.apply(this,arguments)}var Tr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Tr||(Tr={}));const Bv="popstate";function TN(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:i,hash:a}=r.location;return _h("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Mc(s)}return NN(t,n,null,e)}function Ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Jb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function PN(){return Math.random().toString(36).substr(2,8)}function Vv(e,t){return{usr:e.state,key:e.key,idx:t}}function _h(e,t,n,r){return n===void 0&&(n=null),ga({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ii(t):t,{state:n,key:t&&t.key||r||PN()})}function Mc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ii(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function NN(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=Tr.Pop,l=null,u=d();u==null&&(u=0,i.replaceState(ga({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function h(){a=Tr.Pop;let b=d(),y=b==null?null:b-u;u=b,l&&l({action:a,location:g.location,delta:y})}function f(b,y){a=Tr.Push;let x=_h(g.location,b,y);u=d()+1;let w=Vv(x,u),_=g.createHref(x);try{i.pushState(w,"",_)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(_)}o&&l&&l({action:a,location:g.location,delta:1})}function m(b,y){a=Tr.Replace;let x=_h(g.location,b,y);u=d();let w=Vv(x,u),_=g.createHref(x);i.replaceState(w,"",_),o&&l&&l({action:a,location:g.location,delta:0})}function v(b){let y=s.location.origin!=="null"?s.location.origin:s.location.href,x=typeof b=="string"?b:Mc(b);return x=x.replace(/ $/,"%20"),Ie(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let g={get action(){return a},get location(){return e(s,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Bv,h),l=b,()=>{s.removeEventListener(Bv,h),l=null}},createHref(b){return t(s,b)},createURL:v,encodeLocation(b){let y=v(b);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:m,go(b){return i.go(b)}};return g}var Wv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wv||(Wv={}));
vendor: 2,287 bytes, line 236
236function AN(e,t,n){return n===void 0&&(n="/"),RN(e,t,n,!1)}function RN(e,t,n,r){let s=typeof t=="string"?ii(t):t,o=Ho(s.pathname||"/",n);if(o==null)return null;let i=e_(e);ON(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=WN(o);a=BN(i[l],u,r)}return a}function e_(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(Ie(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Lr([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(Ie(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),e_(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:UN(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of t_(o.path))s(o,i,l)}),t}function t_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=t_(r.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function ON(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:zN(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const MN=/^:[\w-]+$/,DN=3,IN=2,LN=1,$N=10,FN=-2,Hv=e=>e==="*";function UN(e,t){let n=e.split("/"),r=n.length;return n.some(Hv)&&(r+=FN),t&&(r+=IN),n.filter(s=>!Hv(s)).reduce((s,o)=>s+(MN.test(o)?DN:o===""?LN:$N),r)}function zN(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function BN(e,t,n){let{routesMeta:r}=e,s={},o="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",h=Dc({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),f=l.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=Dc({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
vendor: 6,081 bytes, lines 236-245
236Object.assign(s,h.params),i.push({params:s,pathname:Lr([o,h.pathname]),pathnameBase:KN(Lr([o,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(o=Lr([o,h.pathnameBase]))}return i}function Dc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=VN(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:f,isOptional:m}=d;if(f==="*"){let g=a[h]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const v=a[h];return m&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function VN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function WN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Jb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ho(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function HN(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?ii(e):e;return{pathname:n?n.startsWith("/")?n:GN(n,t):t,search:ZN(r),hash:YN(s)}}function GN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Fd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function qN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function dm(e,t){let n=qN(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function fm(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=ii(e):(s=ga({},e),Ie(!s.pathname||!s.pathname.includes("?"),Fd("?","pathname","search",s)),Ie(!s.pathname||!s.pathname.includes("#"),Fd("#","pathname","hash",s)),Ie(!s.search||!s.search.includes("#"),Fd("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let h=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),h-=1;s.pathname=f.join("/")}a=h>=0?t[h]:"/"}let l=HN(s,a),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Lr=e=>e.join("/").replace(/\/\/+/g,"/"),KN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ZN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,YN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function QN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const n_=["post","put","patch","delete"];new Set(n_);const XN=["get",...n_];new Set(XN);/** 237 * React Router v6.27.0 238 * 239 * Copyright (c) Remix Software Inc. 240 * 241 * This source code is licensed under the MIT license found in the 242 * LICENSE.md file in the root directory of this source tree. 243 * 244 * @license MIT 245 */function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},va.apply(this,arguments)}const Ru=p.createContext(null),r_=p.createContext(null),sr=p.createContext(null),Ou=p.createContext(null),In=p.createContext({outlet:null,matches:[],isDataRoute:!1}),s_=p.createContext(null);function JN(e,t){let{relative:n}=t===void 0?{}:t;ai()||Ie(!1);let{basename:r,navigator:s}=p.useContext(sr),{hash:o,pathname:i,search:a}=Mu(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:Lr([r,i])),s.createHref({pathname:l,search:a,hash:o})}function ai(){return p.useContext(Ou)!=null}function Ut(){return ai()||Ie(!1),p.useContext(Ou).location}function o_(e){p.useContext(sr).static||p.useLayoutEffect(e)}function Os(){let{isDataRoute:e}=p.useContext(In);return e?pA():eA()}function eA(){ai()||Ie(!1);let e=p.useContext(Ru),{basename:t,future:n,navigator:r}=p.useContext(sr),{matches:s}=p.useContext(In),{pathname:o}=Ut(),i=JSON.stringify(dm(s,n.v7_relativeSplatPath)),a=p.useRef(!1);return o_(()=>{a.current=!0}),p.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let h=fm(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Lr([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,i,o,e])}const i_=p.createContext(null);function tA(){return p.useContext(i_)}function nA(e){let t=p.useContext(In).outlet;return t&&p.createElement(i_.Provider,{value:e},t)}function M3(){let{matches:e}=p.useContext(In),t=e[e.length-1];return t?t.params:{}}function Mu(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(sr),{matches:s}=p.useContext(In),{pathname:o}=Ut(),i=JSON.stringify(dm(s,r.v7_relativeSplatPath));return p.useMemo(()=>fm(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function rA(e,t){return sA(e,t)}function sA(e,t,n,r){ai()||Ie(!1);let{navigator:s}=p.useContext(sr),{matches:o}=p.useContext(In),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=Ut(),d;
vendor: 4,551 bytes, line 245
245if(t){var h;let b=typeof t=="string"?ii(t):t;l==="/"||(h=b.pathname)!=null&&h.startsWith(l)||Ie(!1),d=b}else d=u;let f=d.pathname||"/",m=f;if(l!=="/"){let b=l.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let v=AN(e,{pathname:m}),g=cA(v&&v.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:Lr([l,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Lr([l,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,n,r);return t&&g?p.createElement(Ou.Provider,{value:{location:va({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Tr.Pop}},g):g}function oA(){let e=hA(),t=QN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:s},n):null,null)}const iA=p.createElement(oA,null);class aA extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(In.Provider,{value:this.props.routeContext},p.createElement(s_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lA(e){let{routeContext:t,match:n,children:r}=e,s=p.useContext(Ru);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(In.Provider,{value:t},r)}function cA(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=i.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||Ie(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let h=i[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:m}=n,v=h.route.loader&&f[h.route.id]===void 0&&(!m||m[h.route.id]===void 0);if(h.route.lazy||v){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,h,f)=>{let m,v=!1,g=null,b=null;n&&(m=a&&h.route.id?a[h.route.id]:void 0,g=h.route.errorElement||iA,l&&(u<0&&f===0?(v=!0,b=null):u===f&&(v=!0,b=h.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,f+1)),x=()=>{let w;return m?w=g:v?w=b:h.route.Component?w=p.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=d,p.createElement(lA,{match:h,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:w})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?p.createElement(aA,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}var a_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(a_||{}),Ic=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ic||{});function uA(e){let t=p.useContext(Ru);return t||Ie(!1),t}function dA(e){let t=p.useContext(r_);return t||Ie(!1),t}function fA(e){let t=p.useContext(In);return t||Ie(!1),t}function l_(e){let t=fA(),n=t.matches[t.matches.length-1];return n.route.id||Ie(!1),n.route.id}function hA(){var e;let t=p.useContext(s_),n=dA(Ic.UseRouteError),r=l_(Ic.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function pA(){let{router:e}
245=uA(a_.UseNavigateStable),t=l_(Ic.UseNavigateStable),n=p.useRef(!1);return o_(()=>{n.current=!0}),p.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,va({fromRouteId:t},o)))},[e,t])}function we(e){let{to:t,replace:n,state:r,relative:s}=e;ai()||Ie(!1);let{future:o,static:i}=p.useContext(sr),{matches:a}=p.useContext(In),{pathname:l}=Ut(),u=Os(),d=fm(t,dm(a,o.v7_relativeSplatPath),l,s==="path"),h=JSON.stringify(d);return p.useEffect(()=>u(JSON.parse(h),{replace:n,state:r,relative:s}),[u,h,s,n,r]),null}function mA(e){return nA(e.context)}function M(e){Ie(!1)}function gA(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Tr.Pop,navigator:o,static:i=!1,future:a}=e;ai()&&Ie(!1);let l=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:l,navigator:o,static:i,future:va({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof r=="string"&&(r=ii(r));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=r,g=p.useMemo(()=>{let b=Ho(d,l);return b==null?null:{location:{pathname:b,search:h,hash:f,state:m,key:v},navigationType:s}},[l,d,h,f,m,v,s]);return g==null?null:p.createElement(sr.Provider,{value:u},p.createElement(Ou.Provider,{children:n,value:g}))}function vA(e){let{children:t,location:n}=e;return rA(kh(t),n)}new Promise(()=>{});
245function kh(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,s)=>{if(!p.isValidElement(r))return;let o=[...t,s];if(r.type===p.Fragment){n.push.apply(n,kh(r.props.children,o));return}r.type!==M&&Ie(!1),!r.props.index||!r.props.children||Ie(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=kh(r.props.children,o)),n.push(i)}),n}/** 246 * React Router DOM v6.27.0 247 * 248 * Copyright (c) Remix Software Inc. 249 * 250 * This source code is licensed under the MIT license found in the 251 * LICENSE.md file in the root directory of this source tree. 252 * 253 * @license MIT 254 */function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lc.apply(this,arguments)}function c_(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function yA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xA(e,t){return e.button===0&&(!t||t==="_self")&&!yA(e)}function Eh(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function wA(e,t){let n=Eh(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(o=>{n.append(s,o)})}),n}const bA=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_A=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],kA="6";try{window.__reactRouterVersion=kA}catch{}const EA=p.createContext({isTransitioning:!1}),SA="startTransition",Gv=h0[SA];function CA(e){let{basename:t,children:n,future:r,window:s}=e,o=p.useRef();o.current==null&&(o.current=TN({window:s,v5Compat:!0}));let i=o.current,[a,l]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=p.useCallback(h=>{u&&Gv?Gv(()=>l(h)):l(h)},[l,u]);return p.useLayoutEffect(()=>i.listen(d),[i,d]),p.createElement(gA,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const jA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",TA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,G=p.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:u,preventScrollReset:d,viewTransition:h}=t,f=c_(t,bA),{basename:m}=p.useContext(sr),v,g=!1;if(typeof u=="string"&&TA.test(u)&&(v=u,jA))try{let w=new URL(window.location.href),_=u.startsWith("//")?new URL(w.protocol+u):new URL(u),k=Ho(_.pathname,m);_.origin===w.origin&&k!=null?u=k+_.search+_.hash:g=!0}catch{}let b=JN(u,{relative:s}),y=NA(u,{replace:i,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:h});function x(w){r&&r(w),w.defaultPrevented||y(w)}return p.createElement("a",Lc({},f,{href:v||b,onClick:g||o?r:x,ref:n,target:l}))}),yr=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:o="",end:i=!1,style:a,to:l,viewTransition:u,children:d}=t,h=c_(t,_A),f=Mu(l,{relative:h.relative}),m=Ut(),v=p.useContext(r_),{navigator:g,basename:b}=p.useContext(sr),y=v!=null&&AA(f)&&u===!0,x=g.encodeLocation?g.encodeLocation(f).pathname:f.pathname,w=m.pathname,_=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;s||(w=w.toLowerCase(),_=_?_.toLowerCase():null,x=x.toLowerCase()),_&&b&&(_=Ho(_,b)||_);const k=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let E=w===x||!i&&w.startsWith(x)&&w.charAt(k)==="/",S=_!=null&&(_===x||!i&&_.startsWith(x)&&_.charAt(x.length)==="/"),C={isActive:E,isPending:S,isTransitioning:y},L=E?r:void 0,I;typeof o=="function"?I=o(C):I=[o,E?"active":null,S?"pending":null,y?"transitioning":null].filter(
254Boolean).join(" ");let W=typeof a=="function"?a(C):a;return p.createElement(G,Lc({},h,{"aria-current":L,className:I,ref:n,style:W,to:l,viewTransition:u}),typeof d=="function"?d(C):d)});var Sh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Sh||(Sh={}));var qv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(qv||(qv={}));function PA(e){let t=p.useContext(Ru);return t||Ie(!1),t}function NA(e,t){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,viewTransition:a}=t===void 0?{}:t,l=Os(),u=Ut(),d=Mu(e,{relative:i});return p.useCallback(h=>{if(xA(h,n)){h.preventDefault();let f=r!==void 0?r:Mc(u)===Mc(d);l(e,{replace:f,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[u,l,d,r,s,n,e,o,i,a])}function D3(e){let t=p.useRef(Eh(e)),n=p.useRef(!1),r=Ut(),s=p.useMemo(()=>wA(r.search,n.current?null:t.current),[r.search]),o=Os(),i=p.useCallback((a,l)=>{const u=Eh(typeof a=="function"?a(s):a);n.current=!0,o("?"+u,l)},[o,s]);return[s,i]}function AA(e,t){t===void 0&&(t={});let n=p.useContext(EA);n==null&&Ie(!1);let{basename:r}=PA(Sh.useViewTransitionState),s=Mu(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Ho(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Ho(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Dc(s.pathname,i)!=null||Dc(s.pathname,o)!=null}const RA=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>K(async()=>{const{default:r}=await Promise.resolve().then(()=>li);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class hm extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class OA extends hm{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class MA extends hm{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class DA extends hm{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Ch;(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"})(Ch||(Ch={}));var IA=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(h){i(h)}}function l(d){try{u(r.throw(d))}catch(h){i(h)}}function u(d){d.done?o(d.value):s(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class LA{constructor(t,{headers:n={},customFetch:r,region:s=Ch.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=RA(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return IA(this,void 0,void 0,function*(){try{const{headers:s,method:o,body:i}=n;let a={},{region:l}=n;l||(l=this.region),l&&l!=="any"&&(a["x-region"]=l);let u;i&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&i instanceof Blob||i instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",u=i):typeof i=="string"?(a["Content-Type"]="text/plain",u=i):typeof FormData<"u"&&i instanceof FormData?u=i:(a["Content-Type"]="application/json",u=JSON.stringify(i)));const d=yield this.fetch(`${this.url}/${t}`,{method:o||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:u}).catch(v=>{throw new OA(v)}),h=d.headers.get("x-relay-error");if(h&&h==="true")throw new MA(d);if(!d.ok)throw new DA(d);let f=((r=d.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),m;return f==="application/json"?m=yield d.json():f==="application/octet-stream"?m=yield d.blob():f==="text/event-stream"?m=d:f==="multipart/form-data"?m=yield d.formData():m=yield d.text(),{data:m,error:null}}catch(s){return{data:null,error:s}}})}}var kt={},pm={},Du={},Ka={},Iu={},Lu={},$A=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Go=$A();const FA=Go.fetch,u_=Go.fetch.bind(Go),d_=Go.Headers,UA=Go.Request,zA=Go.Response,li=Object.freeze(Object.defineProperty({__proto__:null,Headers:d_,Request:UA,Response:zA,default:u_,fetch:FA},Symbol.toStringTag,{value:"Module"})),BA=aE(li);var $u={};
254Object.defineProperty($u,"__esModule",{value:!0});let VA=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}};$u.default=VA;var f_=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lu,"__esModule",{value:!0});const WA=f_(BA),HA=f_($u);let GA=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=WA.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=Object.assign({},this.headers),this.headers[t]=n,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{var i,a,l;let u=null,d=null,h=null,f=o.status,m=o.statusText;if(o.ok){if(this.method!=="HEAD"){const y=await o.text();y===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?d=y:d=JSON.parse(y))}const g=(i=this.headers.Prefer)===null||i===void 0?void 0:i.match(/count=(exact|planned|estimated)/),b=(a=o.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");g&&b&&b.length>1&&(h=parseInt(b[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(u={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,h=null,f=406,m="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const g=await o.text();try{u=JSON.parse(g),Array.isArray(u)&&o.status===404&&(d=[],u=null,f=200,m="OK")}catch{o.status===404&&g===""?(f=204,m="No Content"):u={message:g}}if(u&&this.isMaybeSingle&&(!((l=u==null?void 0:u.details)===null||l===void 0)&&l.includes("0 rows"))&&(u=null,f=200,m="OK"),u&&this.shouldThrowOnError)throw new HA.default(u)}return{error:u,data:d,count:h,status:f,statusText:m}});return this.shouldThrowOnError||(s=s.catch(o=>{var i,a,l;return{error:{message:`${(i=o==null?void 0:o.name)!==null&&i!==void 0?i:"FetchError"}: ${o==null?void 0:o.message}`,details:`${(a=o==null?void 0:o.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=o==null?void 0:o.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,n)}returns(){return this}overrideTypes(){return this}};Lu.default=GA;var qA=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Iu,"__esModule",{value:!0});const KA=qA(Lu);let ZA=class extends KA.default{select(t){let n=!1;const r=(t??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:o=s}={}){const i=o?`${o}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:s=r}={}){const o=typeof s>"u"?"offset":`${s}.offset`,i=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(o,`${t}`),this.url.searchParams.set(i,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
254explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:o=!1,format:i="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,o?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${i}; for="${u}"; options=${l};`,i==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};Iu.default=ZA;var YA=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ka,"__esModule",{value:!0});const QA=YA(Iu);let XA=class extends QA.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:s}={}){let o="";s==="plain"?o="pl":s==="phrase"?o="ph":s==="websearch"&&(o="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${o}fts${i}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};Ka.default=XA;var JA=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Du,"__esModule",{value:!0});const ki=JA(Ka);let eR=class{constructor(t,{headers:n={},schema:r,fetch:s}){this.url=t,this.headers=n,this.schema=r,this.fetch=s}select(t,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let o=!1;const i=(t??"*").split("").map(a=>/\s/.test(a)&&!o?"":(a==='"'&&(o=!o),a)).join("");return this.url.searchParams.set("select",i),r&&(this.headers.Prefer=`count=${r}`),new ki.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const s="POST",o=[];if(this.headers.Prefer&&o.push(this.headers.Prefer),n&&o.push(`count=${n}`),r||o.push("missing=default"),this.headers.Prefer=o.join(","),Array.isArray(t)){const i=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(i.length>
2540){const a=[...new Set(i)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new ki.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:o=!0}={}){const i="POST",a=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&a.push(this.headers.Prefer),s&&a.push(`count=${s}`),o||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const l=t.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(l.length>0){const u=[...new Set(l)].map(d=>`"${d}"`);this.url.searchParams.set("columns",u.join(","))}}return new ki.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",s=[];return this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),this.headers.Prefer=s.join(","),new ki.default({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new ki.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};Du.default=eR;var Fu={},Uu={};Object.defineProperty(Uu,"__esModule",{value:!0});Uu.version=void 0;Uu.version="0.0.0-automated";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.DEFAULT_HEADERS=void 0;const tR=Uu;Fu.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${tR.version}`};var h_=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pm,"__esModule",{value:!0});const nR=h_(Du),rR=h_(Ka),sR=Fu;let oR=class p_{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=Object.assign(Object.assign({},sR.DEFAULT_HEADERS),n),this.schemaName=r,this.fetch=s}from(t){const n=new URL(`${this.url}/${t}`);return new nR.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new p_(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:o}={}){let i;const a=new URL(`${this.url}/rpc/${t}`);let l;r||s?(i=r?"HEAD":"GET",Object.entries(n).filter(([d,h])=>h!==void 0).map(([d,h])=>[d,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([d,h])=>{a.searchParams.append(d,h)})):(i="POST",l=n);const u=Object.assign({},this.headers);return o&&(u.Prefer=`count=${o}`),new rR.default({method:i,url:a,headers:u,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}};pm.default=oR;var ci=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kt,"__esModule",{value:!0});kt.PostgrestError=kt.PostgrestBuilder=kt.PostgrestTransformBuilder=kt.PostgrestFilterBuilder=kt.PostgrestQueryBuilder=kt.PostgrestClient=void 0;const m_=ci(pm);kt.PostgrestClient=m_.default;const g_=ci(Du);kt.PostgrestQueryBuilder=g_.default;const v_=ci(Ka);kt.PostgrestFilterBuilder=v_.default;const y_=ci(Iu);kt.PostgrestTransformBuilder=y_.default;const x_=ci(Lu);kt.PostgrestBuilder=x_.default;const w_=ci($u);kt.PostgrestError=w_.default;var iR=kt.default={PostgrestClient:m_.default,PostgrestQueryBuilder:g_.default,PostgrestFilterBuilder:v_.default,PostgrestTransformBuilder:y_.default,PostgrestBuilder:x_.default,PostgrestError:w_.default};const{PostgrestClient:aR,PostgrestQueryBuilder:z3,PostgrestFilterBuilder:B3,PostgrestTransformBuilder:V3,PostgrestBuilder:W3,PostgrestError:H3}=iR;let jh;typeof window>"u"?jh=require("ws"):jh=window.WebSocket;const lR=jh,cR="2.11.10",uR={"X-Client-Info":`realtime-js/${cR}`},dR="1.0.0",b_=1e4,fR=1e3;var Eo;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Eo||(Eo={}));var dt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(dt||(dt={}));var an;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(an||(an={}));var Th;(function(e){e.websocket="websocket"})(Th||(Th={}));var is;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(is||(is={}));class hR{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),o=n.getUint8(2);let i=this.HEADER_LENGTH+2;const a=r.decode(t.slice(i,i+s));i=i+s;const l=r.decode(t.slice(i,i+o));i=i+o;const u=JSON.parse(r.decode(t.slice(i,t.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class __{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}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))}}var Ee;(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"})(Ee||(Ee={}));const Kv=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((o,i)=>(o[i]=pR(i,e,t,s),o),{})},pR=(e,t,n,r)=>{const s=t.find(a=>a.name===e),o=s==null?void 0:s.type,i=n[e];return o&&!r.includes(o)?k_(o,i):Ph(i)},k_=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return yR(t,n)}switch(e){case Ee.bool:return mR(t);case Ee.float4:case Ee.float8:case Ee.int2:case Ee.int4:case Ee.int8:case Ee.numeric:case Ee.oid:return gR(t);case Ee.json:case Ee.jsonb:return vR(t);case Ee.timestamp:return xR(t);case Ee.abstime:case Ee.date:case Ee.daterange:case Ee.int4range:case Ee.int8range:case Ee.money:case Ee.reltime:case Ee.text:case Ee.time:case Ee.timestamptz:case Ee.timetz:case Ee.tsrange:case Ee.tstzrange:return Ph(t);default:return Ph(t)}},Ph=e=>e,mR=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},gR=e=>{if(typeof e=="string"){const t=parseFloat(e);
254if(!Number.isNaN(t))return t}return e},vR=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},yR=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let o;const i=e.slice(1,n);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>k_(t,a))}return e},xR=e=>typeof e=="string"?e.replace(" ","T"):e,E_=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class Ud{constructor(t,n,r={},s=b_){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Zv;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Zv||(Zv={}));class Hi{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Hi.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=Hi.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Hi.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const o=this.cloneDeep(t),i=this.transformState(n),a={},l={};return this.map(o,(u,d)=>{i[u]||(l[u]=d)}),this.map(i,(u,d)=>{const h=o[u];if(h){const f=d.map(b=>b.presence_ref),m=h.map(b=>b.presence_ref),v=d.filter(b=>m.indexOf(b.presence_ref)<0),g=h.filter(b=>f.indexOf(b.presence_ref)<0);v.length>0&&(a[u]=v),g.length>0&&(l[u]=g)}else a[u]=d}),this.syncDiff(o,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:o,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(o,(a,l)=>{var u;const d=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),d.length>0){const h=t[a].map(m=>m.presence_ref),f=d.filter(m=>h.indexOf(m.presence_ref)<0);t[a].unshift(...f)}r(a,d,l)}),this.map(i,(a,l)=>{let u=t[a];if(!u)return;const d=l.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),t[a]=u,s(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Yv;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Yv||(Yv={}));var Qv;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Qv||(Qv={}));var Vn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Vn||(Vn={}));class mm{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=dt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Ud(this,an.join,this.params,this.timeout),this.rejoinTimer=new __(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=dt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=dt.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=dt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=dt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(an.reply,{},(s,o)=>{this._trigger(this._replyEventName(o),s)}),this.presence=new Hi(this),this.broadcastEndpointURL=E_(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,s;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:o,presence:i,private:a}}=this.params;this._onError(d=>t==null?void 0:t(Vn.CHANNEL_ERROR,d)),this._onClose(()=>t==null?void 0:t(Vn.CLOSED));const l={},u={broadcast:o,presence:i,postgres_changes:(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(d=>d.filter))!==null&&s!==void 0?s:[],private:a};this.socket.accessTokenValue&&(l.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:u},l)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:d})=>{var h;if(this.socket.setAuth(),d===void 0){t==null||t(Vn.SUBSCRIBED);return}else{const f=this.bindings.postgres_changes,m=(h=f==null?void 0:f.length)!==null&&h!==void 0?h:0,v=[];for(let g=0;g<m;g++){const b=f[g],{filter:{event:y,schema:x,table:w,filter:_}}=b,k=d&&d[g];if(k&&k.event===y&&k.schema===x&&k.table===w&&k.filter===_)v.push(Object.assign(Object.assign({},b),{id:k.id}));else{this.unsubscribe(),this.state=dt.errored,t==null||t(Vn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(Vn.SUBSCRIBED);return}}).receive("error",d=>{this.state=dt.errored,t==null||t(Vn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(d).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Vn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){const{event:o,payload:i}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),u.receive("ok",()=>o("ok")),u.receive("error",()=>o("error")),u.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=dt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(an.close,"leave",this._joinRef())};return this.joinPush.destroy(),new Promise(r=>{const s=new Ud(this,an.leave,{},t);s.receive("ok",()=>{n(),r("ok")}).receive("timeout",()=>{n(),r("timed out")}).receive("error",()=>{r("error")}),s.send(),this._canPush()||s.trigger("ok",{})})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.rejoinTimer&&clearTimeout(this.rejoinTimer.timer),this.joinPush.destroy()}async _fetchWithTimeout(t,n,r){const s=new AbortController,o=setTimeout(()=>s.abort(),r),i=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(o),i}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Ud(this,t,n,r);return this._canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,o;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:d}=an;if(r&&[a,l,u,d].indexOf(i)>=0&&r!==this._joinRef())return;let f=this._onMessage(i,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(m=>{var v,g,b;return((v=m.filter)===null||v===void 0?void 0:v.event)==="*"||((b=(g=m.filter)===null||g===void 0?void 0:g.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===i}).map(m=>m.callback(f,r)):(o=this.bindings[i])===null||o===void 0||o.filter(m=>{var v,g,b,y,x,w;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in m){const _=m.id,k=(v=m.filter)===null||v===void 0?void 0:v.event;return _&&((g=n.ids)===null||g===void 0?void 0:g.includes(_))&&(k==="*"||(k==null?void 0:k.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const _=(x=(y=m==null?void 0:m.filter)===null||y===void 0?void 0:y.event)===null||x===void 0?void 0:x.toLocaleLowerCase();return _==="*"||_===((w=n==null?void 0:n.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===i}).map(m=>{if(typeof f=="object"&&"ids"in f){const v=f.data,{schema:g,table:b,commit_timestamp:y,type:x,errors:w}=v;f=Object.assign(Object.assign({},{schema:g,table:b,commit_timestamp:y,eventType:x,new:{},old:{},errors:w}),this._getPayloadRecords(v))}m.callback(f,r)}
254)}_isClosed(){return this.state===dt.closed}_isJoined(){return this.state===dt.joined}_isJoining(){return this.state===dt.joining}_isLeaving(){return this.state===dt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),o={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===r&&mm.isEqual(s.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(an.close,{},t)}_onError(t){this._on(an.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=dt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Kv(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Kv(t.columns,t.old_record)),n}}const Xv=()=>{},wR=` 255 addEventListener("message", (e) => { 256 if (e.data.event === "start") { 257 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 258 } 259 });`;class bR{constructor(t,n){var r;this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers=uR,this.params={},this.timeout=b_,this.heartbeatIntervalMs=25e3,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Xv,this.ref=0,this.logger=Xv,this.conn=null,this.sendBuffer=[],this.serializer=new hR,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=o=>{let i;return o?i=o:typeof fetch>"u"?i=(...a)=>K(async()=>{const{default:l}=await Promise.resolve().then(()=>li);return{default:l}},void 0).then(({default:l})=>l(...a)):i=fetch,(...a)=>i(...a)},this.endPoint=`${t}/${Th.websocket}`,this.httpEndpoint=E_(t),n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),(n!=null&&n.logLevel||n!=null&&n.log_level)&&(this.logLevel=n.logLevel||n.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const s=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;if(s&&(this.accessTokenValue=s,this.apiKey=s),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:o=>[1e3,2e3,5e3,1e4][o-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(o,i)=>i(JSON.stringify(o)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new __(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch),n!=null&&n.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(n==null?void 0:n.worker)||!1,this.workerUrl=n==null?void 0:n.workerUrl}this.accessToken=(n==null?void 0:n.accessToken)||null}connect(){if(!this.conn){if(this.transport||(this.transport=lR),this.transport){typeof window<"u"&&this.transport===window.WebSocket?this.conn=new this.transport(this.endpointURL()):this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection();return}this.conn=new _R(this.endpointURL(),void 0,{close:()=>{this.conn=null}})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:dR}))}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset(),this.channels.forEac
259h(r=>r.teardown()))}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels=this.channels.filter(r=>r._joinRef!==t._joinRef),this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Eo.connecting:return is.Connecting;case Eo.open:return is.Open;case Eo.closing:return is.Closing;default:return is.Closed}}isConnected(){return this.connectionState()===is.Open}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(o=>o.topic===r);if(s)return s;{const o=new mm(`realtime:${t}`,n,this);return this.channels.push(o),o}}push(t){const{topic:n,event:r,payload:s,ref:o}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){let n=t||this.accessToken&&await this.accessToken()||this.accessTokenValue;this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{n&&r.updateJoinPayload({access_token:n,version:this.headers&&this.headers["X-Client-Info"]}),r.joinedOnce&&r._isJoined()&&r._push(an.access_token,{access_token:n})}))}async sendHeartbeat(){var t;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),(t=this.conn)===null||t===void 0||t.close(fR,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),await this.setAuth()}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:s,payload:o,ref:i}=n;r==="phoenix"&&s==="phx_reply"&&this.heartbeatCallback(n.payload.status=="ok"?"ok":"error"),i&&i===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${o.status||""} ${r} ${s} ${i&&"("+i+")"||""}`,o),Array.from(this.channels).filter(a=>a._isMember(r)).forEach(a=>a._trigger(s,o,i)),this.stateChangeCallbacks.message.forEach(a=>a(n))})}_onConnOpen(){if(this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs);else{this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}
259_triggerChanError(){this.channels.forEach(t=>t._trigger(an.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([wR],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}}class _R{constructor(t,n,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=Eo.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class gm extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Ke(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class kR extends gm{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Nh extends gm{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var ER=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(h){i(h)}}function l(d){try{u(r.throw(d))}catch(h){i(h)}}function u(d){d.done?o(d.value):s(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const S_=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>K(async()=>{const{default:r}=await Promise.resolve().then(()=>li);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},SR=()=>ER(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield K(()=>Promise.resolve().then(()=>li),void 0)).Response:Response}),Ah=e=>{if(Array.isArray(e))return e.map(n=>Ah(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[s]=Ah(r)}),t};var Ms=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(h){i(h)}}function l(d){try{u(r.throw(d))}catch(h){i(h)}}function u(d){d.done?o(d.value):s(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const zd=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),CR=(e,t,n)=>Ms(void 0,void 0,void 0,function*(){const r=yield SR();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(s=>{t(new kR(zd(s),e.status||500))}).catch(s=>{t(new Nh(zd(s),s))}):t(new Nh(zd(e),e))}),jR=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),r&&(s.body=JSON.stringify(r)),Object.assign(Object.assign({},s),n))};function Za(e,t,n,r,s,o){return Ms(this,void 0,void 0,function*(){return new Promise((i,a)=>{e(n,jR(t,r,s,o)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>CR(l,a,r))})})}function $c(e,t,n,r){return Ms(this,void 0,void 0,function*(){return Za(e,"GET",t,n,r)})}function mr(e,t,n,r,s){return Ms(this,void 0,void 0,function*(){return Za(e,"POST",t,r,s,n)})}function TR(e,t,n,r,s){return Ms(this,void 0,void 0,function*(){return Za(e,"PUT",t,r,s,n)})}function PR(e,t,n,r){return Ms(this,void 0,void 0,function*(){return Za(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function C_(e,t,n,r,s){return Ms(this,void 0,void 0,function*(){return Za(e,"DELETE",t,r,s,n)})}var bt=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(h){i(h)}}function l(d){try{u(r.throw(d))}catch(h){i(h)}}function u(d){d.done?o(d.value):s(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const NR={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Jv={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class AR{constructor(t,n={},r,s){this.url=t,this.headers=n,this.bucketId=r,this.fetch=S_(s)}uploadOrUpdate(t,n,r,s){return bt(this,void 0,void 0,function*(){try{let o;const i=Object.assign(Object.assign({},Jv),s);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&r instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l))):(o=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(n),d=this._getFinalPath(u),h=yield this.fetch(`${this.url}/object/${d}`,Object.assign({method:t,body:o,headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{})),f=yield h.json();return h.ok?{data:{path:u,id:f.Id,fullPath:f.Key},error:null}:{data:null,error:f}}catch(o){if(Ke(o))return{data:null,error:o};throw o}})}upload(t,n,r){return bt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,s){return bt(this,void 0,void 0,function*(){const o=this._removeEmptyFolders(t),i=this._getFinalPath(o),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:Jv.upsert},s),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType);const h=yield this.fetch(a.toString(),{method:"PUT",body:l,headers:d}),f=yield h.json();return h.ok?{data:{path:o,fullPath:f.Key},error:null}:{data:null,error:f}}catch(l){if(Ke(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return bt(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const o=yield mr(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),i=new URL(this.url+o.url),a=i.searchParams.get("token");if(!a)throw new gm("No token returned by API");return{data:{signedUrl:i.toString(),path:t,token:a},error:null}}catch(r){if(Ke(r))return{data:null,error:r};throw r}})}update(t,n,r){return bt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return bt(this,void 0,void 0,function*(){try{return{data:yield mr(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(Ke(s))return{data:null,error:s};throw s}})}copy(t,n,r){return bt(this,void 0,void 0,function*(){try{return{data:{path:(yield mr(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(Ke(s))return{data:null,error:s};throw s}})}createSignedUrl(t,n,r){return bt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),o=yield mr(this.fetch,`${this.url}/object/sign/${s}
259`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return o={signedUrl:encodeURI(`${this.url}${o.signedURL}${i}`)},{data:o,error:null}}catch(s){if(Ke(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,r){return bt(this,void 0,void 0,function*(){try{const s=yield mr(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${o}`):null})),error:null}}catch(s){if(Ke(s))return{data:null,error:s};throw s}})}download(t,n){return bt(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",o=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),i=o?`?${o}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield $c(this.fetch,`${this.url}/${s}/${a}${i}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(Ke(a))return{data:null,error:a};throw a}})}info(t){return bt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield $c(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:Ah(r),error:null}}catch(r){if(Ke(r))return{data:null,error:r};throw r}})}exists(t){return bt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield PR(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(Ke(r)&&r instanceof Nh){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),s=[],o=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";o!==""&&s.push(o);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return bt(this,void 0,void 0,function*(){try{return{data:yield C_(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(Ke(n))return{data:null,error:n};throw n}})}list(t,n,r){return bt(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},NR),n),{prefix:t||""});return{data:yield mr(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(Ke(s))return{data:null,error:s};throw s}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const RR="2.7.1",OR={"X-Client-Info":`storage-js/${RR}`};var Vs=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(h){i(h)}}function l(d){try{u(r.throw(d))}catch(h){i(h)}}function u(d){d.done?o(d.value):s(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class MR{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},OR),n),this.fetch=S_(r)}listBuckets(){return Vs(this,void 0,void 0,function*(){try{return{data:yield $c(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(Ke(t))return{data:null,error:t};throw t}})}getBucket(t){return Vs(this,void 0,void 0,function*(){try{return{data:yield $c(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(Ke(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return Vs(this,void 0,void 0,function*(){try{return{data:yield mr(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Ke(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return Vs(this,void 0,void 0,function*(){try{return{data:yield TR(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Ke(r))return{data:null,error:r};throw r}})}emptyBucket(t){return Vs(this,void 0,void 0,function*(){try{return{data:yield mr(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(Ke(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Vs(this,void 0,void 0,function*(){try{return{data:yield C_(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(Ke(n))return{data:null,error:n};throw n}})}}class DR extends MR{constructor(t,n={},r){super(t,n,r)}from(t){return new AR(this.url,this.headers,t,this.fetch)}}const IR="2.50.0";let Ai="";typeof Deno<"u"?Ai="deno":typeof document<"u"?Ai="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Ai="react-native":Ai="node";const LR={"X-Client-Info":`supabase-js-${Ai}/${IR}`},$R={headers:LR},FR={schema:"public"},UR={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},zR={};var BR=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}
259return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(h){i(h)}}function l(d){try{u(r.throw(d))}catch(h){i(h)}}function u(d){d.done?o(d.value):s(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const VR=e=>{let t;return e?t=e:typeof fetch>"u"?t=u_:t=fetch,(...n)=>t(...n)},WR=()=>typeof Headers>"u"?d_:Headers,HR=(e,t,n)=>{const r=VR(n),s=WR();return(o,i)=>BR(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let u=new s(i==null?void 0:i.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(o,Object.assign(Object.assign({},i),{headers:u}))})};var GR=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(h){i(h)}}function l(d){try{u(r.throw(d))}catch(h){i(h)}}function u(d){d.done?o(d.value):s(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};function qR(e){return e.endsWith("/")?e:e+"/"}function KR(e,t){var n,r;const{db:s,auth:o,realtime:i,global:a}=e,{db:l,auth:u,realtime:d,global:h}=t,f={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},u),o),realtime:Object.assign(Object.assign({},d),i),global:Object.assign(Object.assign(Object.assign({},h),a),{headers:Object.assign(Object.assign({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>GR(this,void 0,void 0,function*(){return""})};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}const j_="2.70.0",Qs=30*1e3,Rh=3,Bd=Rh*Qs,ZR="http://localhost:9999",YR="supabase.auth.token",QR={"X-Client-Info":`gotrue-js/${j_}`},Oh="X-Supabase-Api-Version",T_={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},XR=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,JR=6e5;class vm extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function se(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class eO extends vm{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function tO(e){return se(e)&&e.name==="AuthApiError"}class P_ extends vm{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Xr extends vm{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class dr extends Xr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function nO(e){return se(e)&&e.name==="AuthSessionMissingError"}class Tl extends Xr{constructor(){super("Auth session or user missing","AuthInvalidToken
259ResponseError",500,void 0)}}class Pl extends Xr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Nl extends Xr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function rO(e){return se(e)&&e.name==="AuthImplicitGrantRedirectError"}class ey extends Xr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Mh extends Xr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Vd(e){return se(e)&&e.name==="AuthRetryableFetchError"}class ty extends Xr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Gi extends Xr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Fc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),ny=` 260\r=`.split(""),sO=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<ny.length;t+=1)e[ny[t].charCodeAt(0)]=-2;for(let t=0;t<Fc.length;t+=1)e[Fc[t].charCodeAt(0)]=t;return e})();function ry(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Fc[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Fc[r]),t.queuedBits-=6}}function N_(e,t,n){const r=sO[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function sy(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{aO(i,r,n)};for(let i=0;i<e.length;i+=1)N_(e.charCodeAt(i),s,o);return t.join("")}function oO(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 iO(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}oO(r,t)}}function aO(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function lO(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)N_(e.charCodeAt(s),n,r);return new Uint8Array(t)}function cO(e){const t=[];return iO(e,n=>t.push(n)),new Uint8Array(t)}function uO(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>ry(s,n,r)),ry(null,n,r),t.join("")}function dO(e){return Math.round(Date.now()/1e3)+e}function fO(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const tn=()=>typeof window<"u"&&typeof document<"u",ns={tested:!1,writable:!1},qi=()=>{if(!tn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ns.tested)return ns.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ns.tested=!0,ns.writable=!0}catch{ns.tested=!0,ns.writable=!1}return ns.writable};function hO(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,o)=>{t[o]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const A_=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>K(async()=>{const{default:r}=await Promise.resolve().then(()=>li);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},pO=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",R_=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Al=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Rl=async(e,t)=>{await e.removeItem(t)};class zu{constructor(){this.promise=new zu.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}zu.promiseConstructor=Promise;function Wd(e){const t=e.split(".");if(t.length!==3)throw new Gi("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!XR.test(t[r]))throw new Gi("JWT not in base64url format");return{header:JSON.parse(sy(t[0])),payload:JSON.parse(sy(t[1])),signature:lO(t[2]),raw:{header:t[0],payload:t[1]}}}async function mO(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function gO(e,t){return new Promise((r,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await e(o);if(!t(o,null,i)){r(i);return}}catch(i){if(!t(o,i)){s(i);return}}})()})}function vO(e){return("0"+e.toString(16)).substr(-2)}function yO(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let o=0;o<56;o++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,vO).join("")}async function xO(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
260n),s=new Uint8Array(r);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function wO(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await xO(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Ws(e,t,n=!1){const r=yO();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await R_(e,`${t}-code-verifier`,s);const o=await wO(r);return[o,r===o?"plain":"s256"]}const bO=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function _O(e){const t=e.headers.get(Oh);if(!t||!t.match(bO))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function kO(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 EO(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 SO=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Hs(e){if(!SO.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}var CO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};const os=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),jO=[502,503,504];async function oy(e){var t;if(!pO(e))throw new Mh(os(e),0);if(jO.includes(e.status))throw new Mh(os(e),e.status);let n;try{n=await e.json()}catch(o){throw new P_(os(o),o)}let r;const s=_O(e);if(s&&s.getTime()>=T_["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new ty(os(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new dr}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new ty(os(n),e.status,n.weak_password.reasons);throw new eO(os(n),e.status||500,r)}const TO=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function ue(e,t,n,r){var s;const o=Object.assign({},r==null?void 0:r.headers);o[Oh]||(o[Oh]=T_["2024-01-01"].name),r!=null&&r.jwt&&(o.Authorization=`Bearer ${r.jwt}`);const i=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await PO(e,t,n+a,{headers:o,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function PO(e,t,n,r,s,o){const i=TO(t,r,s,o);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new Mh(os(l),0)}if(a.ok||await oy(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await oy(l)}}function Un(e){var t;let n=null;OO(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=dO(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function iy(e){const t=Un(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function xr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function NO(e){return{data:e,error:null}}function AO(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o}=e,i=CO(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function RO(e){return e}function OO(e){return e.access_token&&e.refresh_token&&e.expires_in}const Hd=["global","local","others"];var MO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};class DO{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=A_(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}
260async signOut(t,n=Hd[0]){if(Hd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Hd.join(", ")}`);try{return await ue(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(se(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await ue(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:xr})}catch(r){if(se(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=MO(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await ue(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:AO,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(se(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await ue(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:xr})}catch(n){if(se(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,o,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await ue(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:RO});if(d.error)throw d.error;const h=await d.json(),f=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,m=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return m.length>0&&(m.forEach(v=>{const g=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(v.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(se(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Hs(t);try{return await ue(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:xr})}catch(n){if(se(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Hs(t);try{return await ue(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:xr})}catch(r){if(se(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Hs(t);try{return await ue(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:xr})}catch(r){if(se(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Hs(t.userId);try{const{data:n,error:r}=await ue(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(se(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Hs(t.userId),Hs(t.id);try{return{data:await ue(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(se(n))return{data:null,error:n};throw n}}}const IO={getItem:e=>qi()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{qi()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{qi()&&globalThis.localStorage.removeItem(e)}};function ay(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function LO(){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)}}const Gs={debug:!!(globalThis&&qi()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class O_ extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class $O extends O_{}async function FO(e,t,n){Gs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Gs.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>
260globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){Gs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{Gs.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Gs.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new $O(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Gs.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null," "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}LO();const UO={url:ZR,storageKey:YR,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:QR,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function ly(e,t,n){return await n()}class ya{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=ya.nextInstanceID,ya.nextInstanceID+=1,this.instanceID>0&&tn()&&console.warn("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.");const s=Object.assign(Object.assign({},UO),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new DO({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=A_(s.fetch),this.lock=s.lock||ly,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:tn()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=FO:this.lock=ly,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)},this.persistSession?s.storage?this.storage=s.storage:qi()?this.storage=IO:(this.memoryStorage={},this.storage=ay(this.memoryStorage)):(this.memoryStorage={},this.storage=ay(this.memoryStorage)),tn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${j_}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=hO(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),tn()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:o}=await this._getSessionFromURL(n,r);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),rO(o)){const l=(t=o.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:o}}return await this._removeSession(),{error:o}}const{session:i,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return se(n)?{error:n}:{error:new P_("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const o=await ue(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Un}),{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(o){if(se(o))return{data:{user:null,session:null},error:o};throw o}}async signUp(t){var n,r,s;try{let o;if("email"in t){const{email:d,password:h,options:f}=t;let m=null,v=null;this.flowType==="pkce"&&([m,v]=await Ws(this.storage,this.storageKey)),o=await ue(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:d,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:m,code_challenge_method:v},xform:Un})}else if("phone"in t){const{phone:d,password:h,options:f}=t;o=await ue(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Un})}else throw new Pl("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(o){if(se(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithPassword(t){try{let n;if("email"in t){const{email:o,password:i,options:a}=t;n=await ue(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:iy})}else if("phone"in t){const{phone:o,password:i,options:a}=t;n=await ue(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:iy})}else throw new Pl("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Tl}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(se(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,s,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=t.o
260ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;if(n==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(t){var n,r,s,o,i,a,l,u,d,h,f,m;let v,g;if("message"in t)v=t.message,g=t.signature;else{const{chain:b,wallet:y,statement:x,options:w}=t;let _;if(tn())if(typeof y=="object")_=y;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))_=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=y}const k=new URL((n=w==null?void 0:w.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const E=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:k.host,uri:k.href}),x?{statement:x}:null));let S;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")S=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)S=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in S&&"signature"in S&&(typeof S.signedMessage=="string"||S.signedMessage instanceof Uint8Array)&&S.signature instanceof Uint8Array)v=typeof S.signedMessage=="string"?S.signedMessage:new TextDecoder().decode(S.signedMessage),g=S.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");v=[`${k.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...x?["",x,""]:[""],"Version: 1",`URI: ${k.href}`,`Issued At: ${(s=(r=w==null?void 0:w.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((u=w==null?void 0:w.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((h=(d=w==null?void 0:w.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...w.signInWithSolana.resources.map(S=>`- ${S}`)]:[]].join(` 261`);const E=await _.signMessage(new TextEncoder().encode(v),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=E}}try{const{data:b,error:y}=await ue(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:v,signature:uO(g)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:Un});if(y)throw y;return!b||!b.session||!b.user?{data:{user:null,session:null},error:new Tl}:(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),{data:Object.assign({},b),error:y})}catch(b){if(se(b))return{data:{user:null,session:null},error:b};throw b}}async _exchangeCodeForSession(t){const n=await Al(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:o,error:i}=await ue(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Un});if(await Rl(this.storage,`${this.storageKey}-code-verifier`),i)throw i;return!o||!o.session||!o.user?{data:{user:null,session:null,redirectType:null},error:new Tl}:(o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),{data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(se(o))return{data:{user:null,session:null,redirectType:null},error:o};throw o}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:o,nonce:i}=t,a=await ue(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Un}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Tl}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(se(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,o,i;try{if("email"in t){const{email:a,options:l}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Ws(this.storage,this.storageKey));const{error:h}=await ue(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:h}}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:d}=await ue(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d}}throw new Pl("You must provide either an email or phone number.")}catch(a){if(se(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let s,o;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,o=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await ue(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:Un});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,u=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(se(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var n,r,s;try{let o=null,i=null;return this.flowType==="pkce"&&([o,i]=await Ws(this.storage,this.storageKey)),await ue(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}
261:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:i}),headers:this.headers,xform:NO})}catch(o){if(se(o))return{data:null,error:o};throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new dr;const{error:s}=await ue(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(se(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:o}=t,{error:i}=await ue(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return{data:{user:null,session:null},error:i}}else if("phone"in t){const{phone:r,type:s,options:o}=t,{data:i,error:a}=await ue(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return{data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a}}throw new Pl("You must provide either an email or phone number and a type")}catch(n){if(se(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Al(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Bd:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.storage.isServer){let i=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,u,d)=>(!i&&u==="user"&&(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."),i=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,u,d))})}return{data:{session:t},error:null}}const{session:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?{data:{session:null},error:o}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await ue(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:xr}):await this._useSession(async n=>{var r,s,o;const{data:i,error:a}=n;
261if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new dr}:await ue(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:xr})})}catch(n){if(se(n))return nO(n)&&(await this._removeSession(),await Rl(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:o}=r;if(o)throw o;if(!s.session)throw new dr;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Ws(this.storage,this.storageKey));const{data:u,error:d}=await ue(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:xr});if(d)throw d;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}})}catch(r){if(se(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new dr;const n=Date.now()/1e3;let r=n,s=!0,o=null;const{payload:i}=Wd(t.access_token);if(i.exp&&(r=i.exp,s=r<=n),s){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;o={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return{data:{user:o.user,session:o},error:null}}catch(n){if(se(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:i,error:a}=n;if(a)throw a;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new dr;const{session:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?{data:{user:null,session:null},error:o}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(se(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!tn())throw new Nl("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Nl(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new ey("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Nl("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new ey("No code detected.");const{data:x,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:x.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:u}=t;if(!o||!a||!i||!u)throw new Nl("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(a);let f=d+h;l&&(f=parseInt(l));const m=f-d;m*1e3<=Qs&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${h}s`);const v=f-h;d-v>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",v,f,d):d-v<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",v,f,d);const{data:g,error:b}=await this._getUser(o);if(b)throw b;const y={provider_token:r,provider_refresh_token:s,access_token:o,expires_in:h,expires_at:f,refresh_token:i,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:t.type},error:null}}catch(r){if(se(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Al(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:o}=n;
261if(o)return{error:o};const i=(r=s.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(tO(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await Rl(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=fO(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:o},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",o),console.error(o)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Ws(this.storage,this.storageKey,!0));try{return await ue(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(se(o))return{data:null,error:o};throw o}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(se(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:s}=await this._useSession(async o=>{var i,a,l,u,d;const{data:h,error:f}=o;if(f)throw f;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await ue(this.fetch,"GET",m,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return tn()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(se(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)throw i;return await ue(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=o.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(se(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await gO(async s=>(s>0&&await mO(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await ue(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Un})),(s,o)=>{const i=200*Math.pow(2,s);return o&&Vd(o)&&Date.now()+i-r<Qs})}catch(r){if(this._debug(n,"error",r),se(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),tn()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const r=await Al(this.storage,this.storageKey);if(this._debug(n,"session from storage",r),!this._isValidSession(r)){this._debug(n,"session is not val
261id"),r!==null&&await this._removeSession();return}const s=((t=r.expires_at)!==null&&t!==void 0?t:1/0)*1e3-Date.now()<Bd;if(this._debug(n,`session has${s?"":" not"} expired with margin of ${Bd}s`),s){if(this.autoRefreshToken&&r.refresh_token){const{error:o}=await this._callRefreshToken(r.refresh_token);o&&(console.error(o),Vd(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(r){this._debug(n,"error",r),console.error(r);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new dr;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new zu;const{data:o,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!o.session)throw new dr;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={session:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),se(o)){const i={session:null,error:o};return Vd(o)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){o.push(l)}});if(await Promise.all(i),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await R_(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await Rl(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&tn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Qs);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Qs);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Qs}ms, refresh threshold is ${Rh} ticks`),s<=Rh&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof O_)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!tn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>
261{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[o,i]=await Ws(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const o=new URLSearchParams(r.queryParams);s.push(o.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await ue(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(se(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)return{data:null,error:i};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:l,error:u}=await ue(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(se(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;if(o)return{data:null,error:o};const{data:i,error:a}=await ue(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:a})})}catch(n){if(se(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await ue(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(se(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],s=r.filter(i=>i.factor_type==="totp"&&i.status==="verified"),o=r.filter(i=>i.factor_type==="phone"&&i.status==="verified");return{data:{all:r,totp:s,phone:o},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:s},error:o}=t;if(o)return{data:null,error:o};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=Wd(s.access_token);let a=null;i.aal&&(a=i.aal);let l=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(h=>h.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const d=i.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(i=>i.kid===t);if(r||(r=this.jwks.keys.find(i=>i.kid===t),r&&this.jwks_cached_at+JR>Date.now()))return r;const{data:s,error:o}=await ue(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;if(!s.keys||s.keys.length===0)throw new Gi("JWKS is empty");if(this.jwks=s,this.jwks_cached_at=Date.now(),r=s.keys.find(i=>i.kid===t),!r)throw new Gi("No matching signing key found in JWKS");return r}async getClaims(t,n={keys:[]}){try{let r=t;if(!r){const{data:m,error:v}
261=await this.getSession();if(v||!m.session)return{data:null,error:v};r=m.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:l}}=Wd(r);if(kO(o.exp),!s.kid||s.alg==="HS256"||!("crypto"in globalThis&&"subtle"in globalThis.crypto)){const{error:m}=await this.getUser(r);if(m)throw m;return{data:{claims:o,header:s,signature:i},error:null}}const u=EO(s.alg),d=await this.fetchJwk(s.kid,n),h=await crypto.subtle.importKey("jwk",d,u,!0,["verify"]);if(!await crypto.subtle.verify(u,h,i,cO(`${a}.${l}`)))throw new Gi("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(r){if(se(r))return{data:null,error:r};throw r}}}ya.nextInstanceID=0;const zO=ya;class BO extends zO{constructor(t){super(t)}}var VO=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(h){i(h)}}function l(d){try{u(r.throw(d))}catch(h){i(h)}}function u(d){d.done?o(d.value):s(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class WO{constructor(t,n,r){var s,o,i;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const a=qR(t),l=new URL(a);this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const u=`sb-${l.hostname.split(".")[0]}-auth-token`,d={db:FR,realtime:zR,auth:Object.assign(Object.assign({},UR),{storageKey:u}),global:$R},h=KR(r??{},d);this.storageKey=(s=h.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=h.global.headers)!==null&&o!==void 0?o:{},h.accessToken?(this.accessToken=h.accessToken,this.auth=new Proxy({},{get:(f,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=h.auth)!==null&&i!==void 0?i:{},this.headers,h.global.fetch),this.fetch=HR(n,this._getAccessToken.bind(this),h.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},h.realtime)),this.rest=new aR(new URL("rest/v1",l).href,{headers:this.headers,schema:h.db.schema,fetch:this.fetch}),h.accessToken||this._listenForAuthEvents()}get functions(){return new LA(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}get storage(){return new DR(this.storageUrl.href,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return VO(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,storageKey:o,flowType:i,lock:a,debug:l},u,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new BO({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),u),storageKey:o,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,flowType:i,lock:a,debug:l,fetch:d,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new bR(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}
vendor: 5,450 bytes, line 261
261const HO=(e,t,n)=>new WO(e,t,n),GO="https://pfobdkfuroorboiuhwxg.supabase.co",qO="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBmb2Jka2Z1cm9vcmJvaXVod3hnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTA0NTAzNzQsImV4cCI6MjA2NjAyNjM3NH0.kJw19OeNcRZr9Js7nW64LI9D9oLzTJHdmo1gc7tRDu4",re=HO(GO,qO);var Gd="focusScope.autoFocusOnMount",qd="focusScope.autoFocusOnUnmount",cy={bubbles:!1,cancelable:!0},KO="FocusScope",Bu=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[a,l]=p.useState(null),u=gt(s),d=gt(o),h=p.useRef(null),f=Re(t,g=>l(g)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let g=function(w){if(m.paused||!a)return;const _=w.target;a.contains(_)?h.current=_:fr(h.current,{select:!0})},b=function(w){if(m.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||fr(h.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&fr(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const x=new MutationObserver(y);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),x.disconnect()}}},[r,a,m.paused]),p.useEffect(()=>{if(a){dy.add(m);const g=document.activeElement;if(!a.contains(g)){const y=new CustomEvent(Gd,cy);a.addEventListener(Gd,u),a.dispatchEvent(y),y.defaultPrevented||(ZO(eM(M_(a)),{select:!0}),document.activeElement===g&&fr(a))}return()=>{a.removeEventListener(Gd,u),setTimeout(()=>{const y=new CustomEvent(qd,cy);a.addEventListener(qd,d),a.dispatchEvent(y),y.defaultPrevented||fr(g??document.body,{select:!0}),a.removeEventListener(qd,d),dy.remove(m)},0)}}},[a,u,d,m]);const v=p.useCallback(g=>{if(!n&&!r||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const x=g.currentTarget,[w,_]=YO(x);w&&_?!g.shiftKey&&y===_?(g.preventDefault(),n&&fr(w,{select:!0})):g.shiftKey&&y===w&&(g.preventDefault(),n&&fr(_,{select:!0})):y===x&&g.preventDefault()}},[n,r,m.paused]);return c.jsx(me.div,{tabIndex:-1,...i,ref:f,onKeyDown:v})});Bu.displayName=KO;function ZO(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fr(r,{select:t}),document.activeElement!==n)return}function YO(e){const t=M_(e),n=uy(t,e),r=uy(t.reverse(),e);return[n,r]}function M_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function uy(e,t){for(const n of e)if(!QO(n,{upTo:t}))return n}function QO(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function XO(e){return e instanceof HTMLInputElement&&"select"in e}function fr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&XO(e)&&t&&e.select()}}var dy=JO();function JO(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=fy(e,t),e.unshift(t)},remove(t){var n;e=fy(e,t),(n=e[0])==null||n.resume()}}}function fy(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function eM(e){return e.filter(t=>t.tagName!=="A")}var Kd=0;function ym(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hy()),document.body.insertAdjacentElement("beforeend",e[1]??hy()),Kd++,()=>{Kd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Kd--}},[])}function hy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Tn=function(){return Tn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Tn.apply(this,arguments)};function D_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function tM(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var nc="right-scroll-bar-position",rc="width-before-scroll-bar",nM="with-scroll-bars-hidden",rM="--removed-body-scroll-bar-size";function Zd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sM(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var oM=typeof window<"u"?p.useLayoutEffect:p.useEffect,py=new WeakMap;function iM(e,t){var n=sM(null,function(r){return e.forEach(function(s){return Zd(s,r)})});return oM(function(){var r=py.get(n);if(r){var s=new Set(r),o=new Set(e),i=n.current;
vendor: 4,155 bytes, lines 261-276
261s.forEach(function(a){o.has(a)||Zd(a,null)}),o.forEach(function(a){s.has(a)||Zd(a,i)})}py.set(n,e)},[e]),n}function aM(e){return e}function lM(e,t){t===void 0&&(t=aM);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var i=t(o,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(o){for(r=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(o),i=n}var l=function(){var d=i;i=[],d.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return s}function cM(e){e===void 0&&(e={});var t=lM(null);return t.options=Tn({async:!0,ssr:!1},e),t}var I_=function(e){var t=e.sideCar,n=D_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,Tn({},n))};I_.isSideCarExport=!0;function uM(e,t){return e.useMedium(t),I_}var L_=cM(),Yd=function(){},Vu=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:Yd,onWheelCapture:Yd,onTouchMoveCapture:Yd}),s=r[0],o=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,m=e.noIsolation,v=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,w=D_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,k=iM([n,t]),E=Tn(Tn({},w),s);return p.createElement(p.Fragment,null,d&&p.createElement(_,{sideCar:L_,removeScrollBar:u,shards:h,noIsolation:m,inert:v,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:x}),i?p.cloneElement(p.Children.only(a),Tn(Tn({},E),{ref:k})):p.createElement(y,Tn({},E,{className:l,ref:k}),a))});Vu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vu.classNames={fullWidth:rc,zeroRight:nc};var dM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dM();return t&&e.setAttribute("nonce",t),e}function hM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mM=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fM())&&(hM(t,n),pM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gM=function(){var e=mM();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$_=function(){var e=gM(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},vM={left:0,top:0,right:0,gap:0},Qd=function(e){return parseInt(e||"",10)||0},yM=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Qd(n),Qd(r),Qd(s)]},xM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vM;var t=yM(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wM=$_(),So="data-scroll-locked",bM=function(e,t,n,r){var s=e.left,o=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` 262 .`.concat(nM,` { 263 overflow: hidden `).concat(r,`; 264 padding-right: `).concat(a,"px ").concat(r,`; 265 } 266 body[`).concat(So,`] { 267 overflow: hidden `).concat(r,`; 268 overscroll-behavior: contain; 269 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 270 padding-left: `.concat(s,`px; 271 padding-top: `).concat(o,`px; 272 padding-right: `).concat(i,`px; 273 margin-left:0; 274 margin-top:0; 275 margin-right: `).concat(a,"px ").concat(r,`; 276 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
276")].filter(Boolean).join(""),` 277 } 278 279 .`).concat(nc,` { 280 right: `).concat(a,"px ").concat(r,`; 281 } 282 283 .`).concat(rc,` { 284 margin-right: `).concat(a,"px ").concat(r,`; 285 } 286 287 .`).concat(nc," .").concat(nc,` { 288 right: 0 `).concat(r,`; 289 } 290 291 .`).concat(rc," .").concat(rc,` { 292 margin-right: 0 `).concat(r,`; 293 } 294 295 body[`).concat(So,`] { 296 `).concat(rM,": ").concat(a,`px; 297 } 298`)},my=function(){var e=parseInt(document.body.getAttribute(So)||"0",10);return isFinite(e)?e:0},_M=function(){p.useEffect(function(){return document.body.setAttribute(So,(my()+1).toString()),function(){var e=my()-1;e<=0?document.body.removeAttribute(So):document.body.setAttribute(So,e.toString())}},[])},kM=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;_M();var o=p.useMemo(function(){return xM(s)},[s]);return p.createElement(wM,{styles:bM(o,!t,s,n?"":"!important")})},Dh=!1;if(typeof window<"u")try{var Ol=Object.defineProperty({},"passive",{get:function(){return Dh=!0,!0}});window.addEventListener("test",Ol,Ol),window.removeEventListener("test",Ol,Ol)}catch{Dh=!1}var qs=Dh?{passive:!1}:!1,EM=function(e){return e.tagName==="TEXTAREA"},F_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!EM(e)&&n[t]==="visible")},SM=function(e){return F_(e,"overflowY")},CM=function(e){return F_(e,"overflowX")},gy=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=U_(e,r);if(s){var o=z_(e,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},jM=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},TM=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},U_=function(e,t){return e==="v"?SM(t):CM(t)},z_=function(e,t){return e==="v"?jM(t):TM(t)},PM=function(e,t){return e==="h"&&t==="rtl"?-1:1},NM=function(e,t,n,r,s){var o=PM(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,l=t.contains(a),u=!1,d=i>0,h=0,f=0;do{var m=z_(e,a),v=m[0],g=m[1],b=m[2],y=g-b-o*v;(v||y)&&U_(e,a)&&(h+=y,f+=v),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(f)<1||!s))&&(u=!0),u},Ml=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vy=function(e){return[e.deltaX,e.deltaY]},yy=function(e){return e&&"current"in e?e.current:e},AM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},RM=function(e){return` 299 .block-interactivity-`.concat(e,` {pointer-events: none;} 300 .allow-interactivity-`).concat(e,` {pointer-events: all;} 301`)},OM=0,Ks=[];function MM(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),s=p.useState(OM++)[0],o=p.useState($_)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=tM([e.lockRef.current],(e.shards||[]).map(yy),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var y=Ml(g),x=n.current,w="deltaX"in g?g.deltaX:x[0]-y[0],_="deltaY"in g?g.deltaY:x[1]-y[1],k,E=g.target,S=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in g&&S==="h"&&E.type==="range")return!1;var C=gy(S,E);if(!C)return!0;if(C?k=S:(k=S==="v"?"h":"v",C=gy(S,E)),!C)return!1;if(!r.current&&"changedTouches"in g&&(w||_)&&(r.current=k),!k)return!0;var L=r.current||k;return NM(L,b,g,L==="h"?w:_,!0)},[]),l=p.useCallback(function(g){var b=g;if(!(!Ks.length||Ks[Ks.length-1]!==o)){var y="deltaY"in b?vy(b):Ml(b),x=t.current.filter(function(k){return k.name===b.type&&(k.target===b.target||b.target===k.shadowParent)&&AM(k.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}
vendor: 8,976 bytes, lines 301-305
301if(!x){var w=(i.current.shards||[]).map(yy).filter(Boolean).filter(function(k){return k.contains(b.target)}),_=w.length>0?a(b,w[0]):!i.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),u=p.useCallback(function(g,b,y,x){var w={name:g,delta:b,target:y,should:x,shadowParent:DM(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),d=p.useCallback(function(g){n.current=Ml(g),r.current=void 0},[]),h=p.useCallback(function(g){u(g.type,vy(g),g.target,a(g,e.lockRef.current))},[]),f=p.useCallback(function(g){u(g.type,Ml(g),g.target,a(g,e.lockRef.current))},[]);p.useEffect(function(){return Ks.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,qs),document.addEventListener("touchmove",l,qs),document.addEventListener("touchstart",d,qs),function(){Ks=Ks.filter(function(g){return g!==o}),document.removeEventListener("wheel",l,qs),document.removeEventListener("touchmove",l,qs),document.removeEventListener("touchstart",d,qs)}},[]);var m=e.removeScrollBar,v=e.inert;return p.createElement(p.Fragment,null,v?p.createElement(o,{styles:RM(s)}):null,m?p.createElement(kM,{gapMode:e.gapMode}):null)}function DM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const IM=uM(L_,MM);var Wu=p.forwardRef(function(e,t){return p.createElement(Vu,Tn({},e,{ref:t,sideCar:IM}))});Wu.classNames=Vu.classNames;var LM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zs=new WeakMap,Dl=new WeakMap,Il={},Xd=0,B_=function(e){return e&&(e.host||B_(e.parentNode))},$M=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=B_(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},FM=function(e,t,n,r){var s=$M(t,Array.isArray(e)?e:[e]);Il[n]||(Il[n]=new WeakMap);var o=Il[n],i=[],a=new Set,l=new Set(s),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};s.forEach(u);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(f){if(a.has(f))d(f);else try{var m=f.getAttribute(r),v=m!==null&&m!=="false",g=(Zs.get(f)||0)+1,b=(o.get(f)||0)+1;Zs.set(f,g),o.set(f,b),i.push(f),g===1&&v&&Dl.set(f,!0),b===1&&f.setAttribute(n,"true"),v||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return d(t),a.clear(),Xd++,function(){i.forEach(function(h){var f=Zs.get(h)-1,m=o.get(h)-1;Zs.set(h,f),o.set(h,m),f||(Dl.has(h)||h.removeAttribute(r),Dl.delete(h)),m||h.removeAttribute(n)}),Xd--,Xd||(Zs=new WeakMap,Zs=new WeakMap,Dl=new WeakMap,Il={})}},xm=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=LM(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),FM(r,s,n,"aria-hidden")):function(){return null}},wm="Dialog",[V_,G3]=As(wm),[UM,yn]=V_(wm),W_=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,a=p.useRef(null),l=p.useRef(null),[u=!1,d]=Rs({prop:r,defaultProp:s,onChange:o});return c.jsx(UM,{scope:t,triggerRef:a,contentRef:l,contentId:Kn(),titleId:Kn(),descriptionId:Kn(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(h=>!h),[d]),modal:i,children:n})};W_.displayName=wm;var H_="DialogTrigger",G_=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=yn(H_,n),o=Re(t,s.triggerRef);return c.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":km(s.open),...r,ref:o,onClick:q(e.onClick,s.onOpenToggle)})});G_.displayName=H_;var bm="DialogPortal",[zM,q_]=V_(bm,{forceMount:void 0}),K_=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,o=yn(bm,t);return c.jsx(zM,{scope:t,forceMount:n,children:p.Children.map(r,i=>c.jsx(Ft,{present:n||o.open,children:c.jsx(Ga,{asChild:!0,container:s,children:i})}))})};K_.displayName=bm;var Uc="DialogOverlay",Z_=p.forwardRef((e,t)=>{const n=q_(Uc,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=yn(Uc,e.__scopeDialog);return o.modal?c.jsx(Ft,{present:r||o.open,children:c.jsx(BM,{...s,ref:t})}):null});Z_.displayName=Uc;var BM=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=yn(Uc,n);return c.jsx(Wu,{as:Ur,allowPinchZoom:!0,shards:[s.contentRef],children:c.jsx(me.div,{"data-state":km(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Cs="DialogContent",Y_=p.forwardRef((e,t)=>{const n=q_(Cs,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=yn(Cs,e.__scopeDialog);return c.jsx(Ft,{present:r||o.open,children:o.modal?c.jsx(VM,{...s,ref:t}):c.jsx(WM,{...s,ref:t})})});Y_.displayName=Cs;var VM=p.forwardRef((e,t)=>{const n=yn(Cs,e.__scopeDialog),r=p.useRef(null),s=Re(t,n.contentRef,r);return p.useEffect(()=>{const o=r.current;if(o)return xm(o)},[]),c.jsx(Q_,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&o.preventDefault()}),onFocusOutside:q(e.onFocusOutside,o=>o.preventDefault())})}),WM=p.forwardRef((e,t)=>{const n=yn(Cs,e.__scopeDialog),r=p.useRef(!1),s=p.useRef(!1);return c.jsx(Q_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:o=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),Q_=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,a=yn(Cs,n),l=p.useRef(null),u=Re(t,l);return ym(),c.jsxs(c.Fragment,{children:[c.jsx(Bu,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:c.jsx(ti,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":km(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(HM,{titleId:a.titleId}),c.jsx(qM,{contentRef:l,descriptionId:a.descriptionId})]})]})}),_m="DialogTitle",X_=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=yn(_m,n);return c.jsx(me.h2,{id:s.titleId,...r,ref:t})});X_.displayName=_m;var J_="DialogDescription",e1=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=yn(J_,n);return c.jsx(me.p,{id:s.descriptionId,...r,ref:t})});e1.displayName=J_;var t1="DialogClose",n1=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=yn(t1,n);return c.jsx(me.button,{type:"button",...r,ref:t,onClick:q(e.onClick,()=>s.onOpenChange(!1))})});n1.displayName=t1;function km(e){return e?"open":"closed"}var r1="DialogTitleWarning",[q3,s1]=bj(r1,{contentName:Cs,titleName:_m,docsSlug:"dialog"}),HM=({titleId:e})=>{const t=s1(r1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 302 303If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 304 305For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},GM="DialogDescriptionWarning",qM=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${s1(GM).contentName}}.`;return p.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},KM=W_,ZM=G_,YM=K_,o1=Z_,i1=Y_,a1=X_,l1=e1,QM=n1;const Em=KM,K3=ZM,XM=YM,c1=p.forwardRef(({className:e,...t},n)=>c.jsx(o1,{ref:n,className:de("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));c1.displayName=o1.displayName;const Hu=p.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(XM,{children:[c.jsx(c1,{}),c.jsxs(i1,{ref:r,className:de("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-modal",e),...n,children:[t,c.jsxs(QM,{className:"absolute right-4 top-4 roun
305ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[c.jsx(Es,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Hu.displayName=i1.displayName;const Sm=({className:e,...t})=>c.jsx("div",{className:de("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Sm.displayName="DialogHeader";const u1=({className:e,...t})=>c.jsx("div",{className:de("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});u1.displayName="DialogFooter";const Gu=p.forwardRef(({className:e,...t},n)=>c.jsx(a1,{ref:n,className:de("text-lg font-semibold leading-none tracking-tight",e),...t}));Gu.displayName=a1.displayName;const Cm=p.forwardRef(({className:e,...t},n)=>c.jsx(l1,{ref:n,className:de("text-sm text-muted-foreground",e),...t}));Cm.displayName=l1.displayName;const JM=xu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-button text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-button px-3",lg:"h-11 rounded-button px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Se=p.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},o)=>{const i=r?Ur:"button";return c.jsx(i,{className:de(JM({variant:t,size:n,className:e})),ref:o,...s})});Se.displayName="Button";const xy=({isOpen:e,onClose:t,favorites:n,favoritesLimit:r,onRemoveFavorite:s})=>{const{toast:o}=Ha(),i=a=>{navigator.clipboard.writeText(a),o({title:"Domain copied!"})};return c.jsx(Em,{open:e,onOpenChange:t,children:c.jsxs(Hu,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[c.jsx(Sm,{children:c.jsxs(Gu,{children:["Your Favorite Domains (",n.length,"/",r===-1?"∞":r,")"]})}),n.length===0?c.jsx("div",{className:"text-center py-8 text-gray-500",children:"No favorite domains yet. Start generating and save the ones you like!"}):c.jsx("div",{className:"space-y-2",children:n.map(a=>c.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[c.jsx("span",{className:"font-medium",children:a.domain}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Se,{size:"sm",variant:"ghost",onClick:()=>i(a.domain),className:"h-8 w-8 p-0",title:"Copy domain",children:c.jsx(fT,{className:"w-4 h-4"})}),c.jsx(Se,{size:"sm",variant:"ghost",onClick:()=>s(a.id),className:"h-8 w-8 p-0 text-red-500 hover:text-red-600 hover:bg-red-50",title:"Delete from favorites",children:c.jsx(gT,{className:"w-4 h-4"})})]})]},a.id))})]})})},Jd={accent:"#2563EB",inkMuted:"#6B6B68"},wy=({isOpen:e,onClose:t})=>{const n=Os();return c.jsx(Em,{open:e,onOpenChange:t,children:c.jsxs(Hu,{className:"max-w-md",children:[c.jsxs(Sm,{children:[c.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium mb-3 self-start",style:{backgroundColor:"#EEF2FF",color:Jd.accent},children:[c.jsx(Gp,{className:"w-3.5 h-3.5"}),"GX PRO feature"]}),c.jsx(Gu,{className:"text-3xl leading-tight tracking-tight",style:{fontFamily:"Cormorant, serif",fontWeight:600},children:"Upgrade to GX PRO to unlock this."}),c.jsx(Cm,{className:"text-base pt-2",style:{color:Jd.inkMuted},children:"Filters, super categories, custom prefixes and custom suffixes are part of GX PRO. Upgrade to unlock the full Name Generator and the rest of the pro toolset."})]}),c.jsxs(u1,{className:"flex-col sm:flex-row gap-2 sm:gap-2",children:[c.jsx(Se,{variant:"outline",onClick:t,className:"w-full sm:w-auto",children:"Maybe later"}),c.jsx(Se,{onClick:()=>{t(),n("/gxpro")},className:"w-full sm:w-auto text-white",style:{backgroundColor:Jd.accent},children:"Upgrade to GX PRO"})]})]})})},eD=xu("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function zc({className:e,variant:t,...n}){return c.jsx("div",{className:de(eD({variant:t}),e),...n})}var jm="Collapsible",[tD,Z3]=As(jm),[nD,Tm]=tD(jm),d1=p.forwardRef((e,t)=>
305{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:o,onOpenChange:i,...a}=e,[l=!1,u]=Rs({prop:r,defaultProp:s,onChange:i});return c.jsx(nD,{scope:n,disabled:o,contentId:Kn(),open:l,onOpenToggle:p.useCallback(()=>u(d=>!d),[u]),children:c.jsx(me.div,{"data-state":Rm(l),"data-disabled":o?"":void 0,...a,ref:t})})});d1.displayName=jm;var f1="CollapsibleTrigger",Pm=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,s=Tm(f1,n);return c.jsx(me.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Rm(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:q(e.onClick,s.onOpenToggle)})});Pm.displayName=f1;var Nm="CollapsibleContent",Am=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=Tm(Nm,e.__scopeCollapsible);return c.jsx(Ft,{present:n||s.open,children:({present:o})=>c.jsx(rD,{...r,ref:t,present:o})})});Am.displayName=Nm;var rD=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:s,...o}=e,i=Tm(Nm,n),[a,l]=p.useState(r),u=p.useRef(null),d=Re(t,u),h=p.useRef(0),f=h.current,m=p.useRef(0),v=m.current,g=i.open||a,b=p.useRef(g),y=p.useRef();return p.useEffect(()=>{const x=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(x)},[]),Jn(()=>{const x=u.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();h.current=w.height,m.current=w.width,b.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(r)}},[i.open,r]),c.jsx(me.div,{"data-state":Rm(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...o,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&s})});function Rm(e){return e?"open":"closed"}var sD=d1,Y3=Pm,Q3=Am;const h1=sD,p1=Pm,m1=Am,oD=e=>!e||e.tier==="free",iD=e=>(e==null?void 0:e.tier)==="plus",aD=e=>(e==null?void 0:e.tier)==="pro",vs=e=>(e==null?void 0:e.tier)||"free",g1=(e,t)=>{const n=vs(e),r={free:1,plus:2,pro:3};return r[n]>=r[t]},Ih=async e=>{const{data:t,error:n}=await re.from("profiles").select("*").eq("id",e).single();return n?(console.error("Error fetching user profile:",n),null):{...t,tier:t.tier||"free"}},v1=e=>({free:{favorites:10,domains:50,wholesaleListings:5,monthlyTokens:30,generations:100},plus:{favorites:100,domains:100,wholesaleListings:20,monthlyTokens:100,generations:500},pro:{favorites:-1,domains:-1,wholesaleListings:-1,monthlyTokens:-1,generations:1e3}})[e],by=e=>{const t=vs(e);return v1(t).favorites},X3=e=>{const t=vs(e);return v1(t).generations},lD=(e,t)=>{const r={spin_wheel:"plus",premium_categories:"plus",brandable_generation:"plus",cvcvcv_generation:"plus",atom_optimized_words:"plus",csv_import:"plus",csv_export:"plus",custom_tld_selection:"plus"}[t];return r?g1(e,r):!0},cD=e=>({free:"Free",plus:"Plus",pro:"GX PRO"})[e],uD=e=>({free:"#ffffff",plus:"#3b82f6",pro:"#fbbf24"})[e],Ln=e=>{const[t,n]=p.useState(null),[r,s]=p.useState(!0);return p.useEffect(()=>{(async()=>{if(!e){n(null),s(!1);return}try{const i=await Ih(e.id);n(i)}catch(i){console.error("Error fetching user profile:",i),n({id:e.id,tier:"free",created_at:new Date().toISOString(),updated_at:new Date().toISOString(),onboarding_completed:!1})}finally{s(!1)}})()},[e==null?void 0:e.id]),{userProfile:t,loading:r,isFree:oD(t),isPlus:iD(t),isPro:aD(t),currentTier:vs(t),hasTierAccess:o=>g1(t,o),canAccessFeature:o=>lD(t,o),tierDisplayName:cD(vs(t)),tierColor:uD(vs(t)),refreshProfile:async()=>{if(e){const o=await Ih(e.id);n(o)}}}},Ys={path:"/dashboard",icon:Jw,label:"Dashboard"},_y=[{title:"APPRAISALS",icon:qp,items:[{path:"/appraise-your-domain",label:"Appraise Domain"},{path:"/appraisal-history",label:"Appraisal History"}]},{title:"DOMAIN SEARCH",icon:Hp,path:"/domainsearch",items:[]},{title:"AUCTIONS",icon:ib,items:[{path:"/premiumexpired",label:"Premium Expired"},{path:"/expired-auctions",label:"Expired"},{path:"/4-letter-domains",label:"4-Letter Domains"},{path:"/endingsoon",label:"Ending Soon"},{path:"/expired-brandables",label:"Brandable Expired"},{path:"/expired-alt-auctions",label:"Alt Expired"}]},{title:"CLOSEOUTS",icon:Xw,items:[{path:"/premium-closeouts",label:"Premium Closeouts"},{path:"/5-dollar-closeouts",label:"$5 Closeouts"},{path:"/expired-closeouts",label:"Closeouts"},{path:"/alt-closeouts",label:"Alt Closeouts"},{path:"/geo-closeouts",label:"Geo Closeouts"}]},{title:"Drops",icon:eb,items:[{path:"/premiumdrops",label:"Premium Drops"},{path:"/dailydrops",label:"Curated Drops"},{path:"/brandables",label:"Brandable Drops"},{path:"/altdrops",label:"Alt Drops"}]},{title:"Tools",icon:bu,items:[{path:"/app",label:"Name Generator"},{path:"/manage",label:"Domain Manager"},{path:"/favorites",label:"Favorites"},{path:"/domainer-tools",label:"Domainer Tools"}]},{title:"GX PRO",icon:Ue,items:[{path:"/gxpro",label:"GX PRO"},{path:"/submit-your-domain",label:"Submit Your Domain"},{path:"/pricing",label:"Pricing"}]}],dD=({onWidthChange:e,user:t,onLogout:n,isPro:r})=>{const s=Ut();Ln(t);const[o,i]=p.useState({});p.useState(!1);
305const[a,l]=p.useState(!1),u=256,d=f=>{for(const m of _y)if(m.items.some(v=>v.path===f))return m.title;return null};p.useEffect(()=>{const f=d(s.pathname);f&&i({[f]:!0})},[s.pathname]),p.useEffect(()=>{e==null||e(u)},[e,u]);const h=f=>{i(m=>m[f]?{}:{[f]:!0})};return c.jsxs("div",{className:de("fixed left-0 top-[60px] bottom-0 z-20 flex flex-col transition-all duration-300","bg-[hsl(220_24%_12%)] border-r border-[hsl(220_22%_20%)]","text-foreground w-64 h-[calc(100vh-60px)]"),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[c.jsxs("div",{className:"flex flex-col px-3 flex-1 mt-6 lg:mt-6 overflow-y-auto",children:[c.jsx("div",{className:"mb-4",children:c.jsxs(yr,{to:Ys.path,className:de("flex items-center gap-2 w-full px-3 pt-4 pb-2 text-[11px] font-semibold tracking-widest uppercase transition-colors rounded-lg",s.pathname===Ys.path?"bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5":"text-muted-foreground hover:text-foreground hover:bg-[hsl(220_24%_18%)]"),"aria-label":Ys.label,"aria-current":s.pathname===Ys.path?"page":void 0,children:[c.jsx(Ys.icon,{className:"w-3.5 h-3.5"}),Ys.label]})}),_y.map((f,m)=>c.jsx("div",{className:de("mb-1",(f.title==="APPRAISALS"||f.title==="DOMAIN SEARCH"||f.title==="Drops"||f.title==="AUCTIONS"||f.title==="CLOSEOUTS"||f.title==="Tools")&&"mb-4"),children:f.items.length===0&&"path"in f?c.jsxs(yr,{to:f.path,className:de("flex items-center gap-2 w-full px-3 pt-4 pb-2 text-[11px] font-semibold tracking-widest uppercase transition-colors rounded-lg",s.pathname===f.path?"bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5":"text-muted-foreground hover:text-foreground hover:bg-[hsl(220_24%_18%)]"),children:[c.jsx(f.icon,{className:"w-3.5 h-3.5"}),f.title,"isNew"in f&&f.isNew&&c.jsx(zc,{className:"ml-auto bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5 text-[9px] px-1.5 py-0.5",children:"NEW"})]}):c.jsxs(h1,{open:o[f.title]??!1,onOpenChange:()=>h(f.title),children:[c.jsxs(p1,{className:"flex items-center justify-between w-full px-3 pt-4 pb-2 text-[11px] font-semibold tracking-widest uppercase text-muted-foreground hover:text-foreground transition-colors",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(f.icon,{className:"w-3.5 h-3.5"}),f.title]}),c.jsx(ut,{className:de("w-3 h-3 transition-transform duration-200",o[f.title]?"rotate-180":"")})]}),c.jsx(m1,{className:"space-y-0 mt-0.5",children:f.items.map(v=>{const g=s.pathname===v.path,b=v.label==="Premium Drops"||v.label==="Premium Expired"||v.label==="Premium Closeouts",y=!t&&v.label==="Appraisal History"?"/public-pricing":v.path;return c.jsxs(yr,{to:y,className:de("group relative w-full flex items-center gap-3 rounded-lg px-3 py-2 text-[15px] font-medium transition-colors ml-6","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(218_100%_70%/.35)]",g?"bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5":"text-foreground/80 hover:text-foreground hover:bg-[hsl(220_24%_18%)]",b&&"pr-8"),"aria-label":v.label,"aria-current":g?"page":void 0,children:[c.jsx("span",{className:"truncate",children:v.label}),b&&c.jsx(Ue,{className:"pointer-events-none absolute right-6 w-4 h-4 text-yellow-500","aria-hidden":"true"}),"isNew"in v&&v.isNew&&c.jsx(zc,{className:"ml-auto bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5 text-xs px-1.5 py-0.5",children:"NEW"})]},v.path)})})]})},f.title))]}),t&&!r&&c.jsx("div",{className:"hidden lg:block px-4 mb-4",children:c.jsx(am,{children:c.jsxs(Wb,{children:[c.jsx(Hb,{asChild:!0,children:c.jsxs(Se,{onClick:()=>window.location.href="/pricing",className:"mx-2 mt-3 mb-3 inline-flex w-[calc(100%-1rem)] items-center justify-center rounded-xl bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5 hover:from-purple-600 hover:to-pink-600 py-2.5 text-sm font-semibold focus-visible:ring-2 focus-visible:ring-[hsl(218_100%_70%/.35)]",children:[c.jsx(Ue,{className:"w-4 h-4 mr-2"}),c.jsx("span",{children:"Upgrade"})]})}),c.jsx(lm,{className:"bg-card border border-border text-foreground",children:c.jsx("p",{children:"Unlock premium features and supercharge your domain generation"})})]})})})]})},xa=e=>{var t,n,r;
305return e?(t=e.user_metadata)!=null&&t.display_name?e.user_metadata.display_name:(n=e.user_metadata)!=null&&n.full_name?e.user_metadata.full_name:(r=e.user_metadata)!=null&&r.name?e.user_metadata.name:null:null},J3=async e=>{const{error:t}=await re.auth.updateUser({data:{display_name:e}});return{error:t}},Om=e=>e&&(xa(e)||e.email)||"",fD="/assets/goexpired-icon-DhRXLxjN.png",ef={path:"/dashboard",icon:Jw,label:"Dashboard"},hD=[{title:"APPRAISALS",icon:qp,items:[{path:"/appraise-your-domain",label:"Appraise Domain"},{path:"/appraisal-history",label:"Appraisal History"}]},{title:"DOMAIN SEARCH",icon:Hp,path:"/domainsearch",items:[]},{title:"AUCTIONS",icon:ib,items:[{path:"/premiumexpired",label:"Premium Expired"},{path:"/expired-auctions",label:"Expired"},{path:"/4-letter-domains",label:"4-Letter Domains"},{path:"/expired-brandables",label:"Brandable Expired"},{path:"/ending-soon",label:"Ending Soon"},{path:"/expired-alt-auctions",label:"Alt Expired"}]},{title:"CLOSEOUTS",icon:Xw,items:[{path:"/premium-closeouts",label:"Premium Closeouts"},{path:"/5-dollar-closeouts",label:"$5 Closeouts"},{path:"/expired-closeouts",label:"Closeouts"},{path:"/alt-closeouts",label:"Alt Closeouts"},{path:"/geo-closeouts",label:"Geo Closeouts",isNew:!0}]},{title:"Drops",icon:eb,items:[{path:"/premiumdrops",label:"Premium Drops"},{path:"/dailydrops",label:"Curated Drops"},{path:"/brandables",label:"Brandable Drops"},{path:"/altdrops",label:"Alt Drops"}]},{title:"Tools",icon:bu,items:[{path:"/app",label:"Name Generator"},{path:"/brandable-generator",label:"Brandable Generator"},{path:"/manage",label:"Domain Manager"},{path:"/favorites",label:"Favorites"},{path:"/domainer-tools",label:"Domainer Tools"}]},{title:"GX PRO",icon:Ue,items:[{path:"/gxpro",label:"GX PRO"},{path:"/submit-your-domain",label:"Submit Your Domain"},{path:"/pricing",label:"Pricing"}]}];function pD({user:e,onLogout:t,favoritesCount:n,favoritesLimit:r,onUpgrade:s,onShowFavorites:o}){const[i,a]=p.useState(!1),[l,u]=p.useState({APPRAISALS:!0,Drops:!0,Tools:!0,AUCTIONS:!0,CLOSEOUTS:!0,"GX PRO":!0}),d=Ut(),{currentTier:h,isPro:f,isPlus:m,isFree:v}=Ln(e);d.pathname;const g=()=>a(!i),b=_=>{u(k=>({...k,[_]:!k[_]}))},y=()=>{a(!1)},x=()=>{s&&s("plus"),a(!1)},w=()=>{t(),a(!1)};return p.useEffect(()=>(i?(document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"):(document.body.style.overflow="",document.body.style.position="",document.body.style.width=""),()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.width=""}),[i]),c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50 bg-[hsl(220_24%_12%)] backdrop-blur-md border-b border-[hsl(220_22%_20%)]",children:[c.jsxs("div",{className:"flex items-center justify-between p-4",children:[c.jsx("div",{className:"flex items-center gap-3",children:c.jsx(Se,{variant:"ghost",size:"icon",onClick:g,className:"h-8 w-8 text-foreground hover:bg-[hsl(220_24%_18%)] focus-visible:ring-2 focus-visible:ring-[hsl(218_100%_70%/.35)]",children:i?c.jsx(Es,{className:"h-4 w-4"}):c.jsx(ob,{className:"h-4 w-4"})})}),c.jsx("div",{className:"flex items-center justify-center flex-1",children:c.jsx(G,{to:"/appraisal",className:"block",children:c.jsx("img",{src:fD,alt:"GoExpired logo",className:"h-8 w-auto hover:opacity-80 transition-opacity"})})}),c.jsx("div",{className:"flex items-center gap-2",children:e?c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("div",{className:`flex items-center justify-center w-6 h-6 rounded-full border shadow-sm ${f?"bg-yellow-500 text-yellow-900 border-yellow-400":"bg-primary text-primary-foreground border-border"}`,children:f?c.jsx(Ue,{className:"w-3 h-3"}):m?c.jsx(da,{className:"w-3 h-3"}):c.jsx(_v,{className:"w-3 h-3"})}),c.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:f?"PRO":m?"PLUS":"FREE"})]}):c.jsxs(c.Fragment,{children:[c.jsx(G,{to:"/auth?mode=signin",children:c.jsx(Se,{variant:"ghost",size:"sm",className:"text-foreground/80 hover:text-foreground text-xs",children:"Login"})}),c.jsx(G,{to:"/auth",children:c.jsx(Se,{size:"sm",className:"bg-primary hover:bg-primary/90 text-primary-foreground text-xs",children:"Sign Up"})})]})})]}),c.jsxs("div",{className:"flex items-center justify-center gap-2 px-4 pb-2 overflow-x-auto",children:[c.jsxs(G,{to:"/premiumexpired",className:"inline-flex items-center gap-1 text-xs font-semibold rounded-2xl text-amber-950 bg-gradient-to-r from-amber-300 via-yellow-400 to-amber-500 transition-all px-2 py-1
305whitespace-nowrap",children:[c.jsx(Ue,{className:"w-3 h-3"}),"Premium Expired Auctions"]}),c.jsx(G,{to:"/blog",className:"inline-flex items-center gap-1 text-xs font-semibold rounded-2xl text-foreground border border-border bg-background hover:bg-accent transition-all px-2 py-1 whitespace-nowrap",children:"Articles"}),c.jsx(G,{to:"/appraisal",className:"inline-flex items-center gap-1 text-xs font-semibold rounded-2xl text-foreground border border-border bg-background hover:bg-accent transition-all px-2 py-1 whitespace-nowrap",children:"Appraisal"})]})]}),i&&c.jsx("div",{className:"fixed inset-0 z-[9999] bg-[hsl(220_24%_12%)]",onClick:_=>_.stopPropagation(),onTouchMove:_=>_.preventDefault(),onScroll:_=>_.stopPropagation(),children:c.jsxs("div",{className:"pt-6 px-4 pb-4 max-h-screen overflow-y-auto",children:[c.jsx("div",{className:"flex justify-end mb-6",children:c.jsx("button",{onClick:g,className:"p-2 text-foreground hover:text-muted-foreground transition-colors focus-visible:ring-2 focus-visible:ring-[hsl(218_100%_70%/.35)] rounded-lg","aria-label":"Close menu",children:c.jsx(Es,{className:"h-6 w-6"})})}),c.jsxs("nav",{className:"space-y-1",children:[c.jsxs(yr,{to:ef.path,onClick:y,className:({isActive:_})=>`flex items-center gap-2 w-full px-3 pt-4 pb-2 text-[11px] font-semibold tracking-widest uppercase transition-colors rounded-lg border-b border-[hsl(220_22%_20%)]/40 mb-1 ${_?"bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5":"text-muted-foreground hover:text-foreground hover:bg-[hsl(220_24%_18%)]"}`,children:[c.jsx(ef.icon,{className:"w-3.5 h-3.5"}),ef.label]}),hD.map(_=>_.items.length===0&&"path"in _?c.jsxs(yr,{to:_.path,onClick:y,className:({isActive:k})=>`flex items-center gap-2 w-full px-3 pt-4 pb-2 text-[11px] font-semibold tracking-widest uppercase transition-colors rounded-lg border-b border-[hsl(220_22%_20%)]/40 ${k?"bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5":"text-muted-foreground hover:text-foreground hover:bg-[hsl(220_24%_18%)]"}`,children:[c.jsx(_.icon,{className:"w-3.5 h-3.5"}),_.title,"isNew"in _&&_.isNew&&c.jsx(zc,{className:"ml-auto bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5 text-[9px] px-1.5 py-0.5",children:"NEW"})]},_.title):c.jsxs(h1,{open:l[_.title],onOpenChange:()=>b(_.title),className:"border-b border-[hsl(220_22%_20%)]/40 pb-1",children:[c.jsxs(p1,{className:"flex items-center justify-between w-full px-3 pt-4 pb-2 text-[11px] font-semibold tracking-widest uppercase text-muted-foreground hover:text-foreground transition-colors",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(_.icon,{className:"w-3.5 h-3.5"}),_.title]}),c.jsx(ut,{className:de("w-3 h-3 transition-transform duration-200",l[_.title]?"rotate-180":"")})]}),c.jsx(m1,{className:"space-y-1 mt-1",children:_.items.map(k=>{const E=k.label==="Premium Drops"||k.label==="Premium Expired"||k.label==="Premium Closeouts",S=!e&&k.label==="Appraisal History"?"/public-pricing":k.path;return c.jsx(yr,{to:S,onClick:y,className:({isActive:C})=>`group relative w-full flex items-center gap-3 rounded-lg px-3 py-2 text-[15px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(218_100%_70%/.35)] ml-6 ${C?"bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5":"text-foreground/80 hover:text-foreground hover:bg-[hsl(220_24%_18%)]"} ${E?"pr-8":""}`,children:({isActive:C})=>c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"truncate",children:k.label}),E&&c.jsx(Ue,{className:"pointer-events-none absolute right-6 w-4 h-4 text-yellow-500","aria-hidden":"true"}),k.isNew&&c.jsx(zc,{className:"ml-auto bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5 text-xs px-1.5 py-0.5",children:"NEW"})]})},k.path)})})]},_.title))]}),c.jsx("div",{className:"my-2 h-px bg-[hsl(220_22%_20%)]/40 mx-3"}),c.jsx("div",{className:"mt-2 pt-2",children:e?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"px-3 pt-2 pb-4 border-b border-[hsl(220_22%_20%)]/40 mb-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:`flex items-center justify-center w-8 h-8 rounded-full border shadow-sm ${f?"bg-yellow-500 text-yellow-900 border-yellow-400":"bg-primary text-primary-foreground border-border"}`,children:c.jsx(ab,{className:"w-4 h-4"})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx(G,{to:"/settings",onClick:y,children:c.jsx("div",{className:"text-sm font-medium text-foreground truncate hover:text-primary transition-colors cursor-pointer",children:Om(e)}
305)}),c.jsx("div",{className:"flex items-center gap-2 mt-1",children:c.jsxs("div",{className:"flex items-center gap-1",children:[f?c.jsx(Ue,{className:"w-3 h-3 text-yellow-500"}):m?c.jsx(da,{className:"w-3 h-3 text-blue-500"}):c.jsx(_v,{className:"w-3 h-3 text-gray-500"}),c.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:f?"PRO Member":m?"PLUS Member":"FREE Member"})]})})]})]}),!xa(e)&&c.jsx(G,{to:"/settings",onClick:y,children:c.jsxs("div",{className:"flex items-center gap-2 mt-3 p-2 bg-orange-500/20 border border-orange-500/30 rounded-lg",children:[c.jsx(Qw,{className:"w-3 h-3 text-orange-300"}),c.jsx("span",{className:"text-xs text-orange-300",children:"Add your name"})]})})]}),c.jsx("div",{className:"px-3 pt-2 pb-2 text-[11px] font-semibold tracking-widest uppercase text-muted-foreground mb-1",children:"Account"}),c.jsxs("div",{className:"space-y-1",children:[c.jsx(yr,{to:"/newsletter",onClick:y,className:({isActive:_})=>`group relative w-full flex items-center gap-3 rounded-lg px-3 py-2 text-[15px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(218_100%_70%/.35)] ${_?"bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5":"text-foreground/80 hover:text-foreground hover:bg-[hsl(220_24%_18%)]"}`,children:c.jsx("span",{className:"truncate",children:"Newsletter"})}),c.jsx(yr,{to:"/settings",onClick:y,className:({isActive:_})=>`group relative w-full flex items-center gap-3 rounded-lg px-3 py-2 text-[15px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(218_100%_70%/.35)] ${_?"bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5":"text-foreground/80 hover:text-foreground hover:bg-[hsl(220_24%_18%)]"}`,children:({isActive:_})=>c.jsxs(c.Fragment,{children:[c.jsx(bu,{className:`size-4 transition-colors ${_?"text-white":"text-muted-foreground group-hover:text-foreground"}`}),c.jsx("span",{className:"truncate",children:"Settings"})]})}),c.jsxs("button",{onClick:w,className:"group relative w-full flex items-center gap-3 rounded-lg px-3 py-2 text-[15px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(218_100%_70%/.35)] text-foreground/80 hover:text-foreground hover:bg-[hsl(220_24%_18%)]",children:[c.jsx(nb,{className:"size-4 transition-colors text-muted-foreground group-hover:text-foreground"}),c.jsx("span",{className:"truncate",children:"Log out"})]}),!f&&s&&c.jsxs(Se,{onClick:x,className:"mx-2 mb-3 inline-flex w-[calc(100%-1rem)] items-center justify-center rounded-xl bg-gradient-to-r from-purple-600/80 to-pink-600/80 text-white shadow-lg shadow-purple-500/25 backdrop-blur-sm ring-1 ring-white/5 hover:from-purple-600 hover:to-pink-600 py-2.5 text-sm font-semibold focus-visible:ring-2 focus-visible:ring-[hsl(218_100%_70%/.35)]",children:[c.jsx(Ue,{className:"h-4 w-4 mr-2"}),"Upgrade"]})]})]}):c.jsxs("div",{className:"px-3 pt-2 pb-4 space-y-2",children:[c.jsx(G,{to:"/newsletter",onClick:y,children:c.jsx(Se,{variant:"outline",className:"w-full",children:"Newsletter"})}),c.jsx(G,{to:"/auth",onClick:y,children:c.jsx(Se,{className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground",children:"Sign Up Free"})}),c.jsx(G,{to:"/auth?mode=signin",onClick:y,children:c.jsx(Se,{variant:"outline",className:"w-full",children:"Login"})})]})})]})})]})}const tf=768;function y1(){const[e,t]=p.useState(void 0);return p.useEffect(()=>{const n=window.matchMedia(`(max-width: ${tf-1}px)`),r=()=>{t(window.innerWidth<tf)};return n.addEventListener("change",r),t(window.innerWidth<tf),()=>n.removeEventListener("change",r)},[]),!!e}const mD=e=>{const{toast:t}=Ha(),n=p.useRef(new Set);return p.useEffect(()=>{if(!e)return;const s=`bulk_notifications_${e.id}_${Date.now()}`,o=re.channel(s).on("postgres_changes",{event:"UPDATE",schema:"public",table:"bulk_appraisal_jobs",filter:`user_id=eq.${e.id}`},async i=>{const a=i.new;if(a.status==="completed"&&!n.current.has(a.id)){n.current.add(a.id);try{const{data:l,error:u}=await re.from("bulk_appraisal_jobs").select("*").eq("id",a.id).single();if(u){console.error("Error fetching fresh job data:",u);return}t({title:"Bulk appraisal completed!",description:`${l.completed_domains} domains appraised successfully, ${l.failed_domains} failed.`})}catch(l){console.error("Error in global bulk notification:",l),t({title:"Bulk appraisal completed!",description:"Your bulk appraisal job has finished processing."})}}}).subscribe();return()=>{re.removeChannel(o)}},[e==null?void 0:e.id,t]),{resetCompletedJobs:()=>{n.current.clear()}}},x1=()=>{const[e,t]=p.useState([]),[n,r]=p.useState(!0),s=async()=>{try{const{data:d,error:h}=await re.from("banner_config").select("*").order("created_at",{ascending:!1});if(h)return console.error("Error fetching banner configs:",h),[];const f=d.map(m=>m.expires_at&&new Date(m.expires_at)<new Date?{...m,enabled:!1}:m);return t(f),f}catch(d){return console.error("Error fetching banner configs:",d),[]}finally{r(!1)}},o=async d=>{try{const{data:h,error:f}=await re.from("banner_config").insert(d).select().single();if(f)throw f;const m=h;return t(v=>[m,...v]),m}catch(h){throw console.error("Error creating banner config:",h),h}},i=async(d,h)=>{try{const{data:f,error:m}=await re.from("banner_config").update(h).eq("id",d).select().single();if(m)throw m;const v=f;return t(g=>g.map(b=>b.id===d?v:b)),v}catch(f){throw console.error("Error updating banner config:",f),f}},a=async d=>{try{const{error:h}=await re.from("banner_config").delete().eq("id",d);if(h)throw h;t(f=>f.filter(m=>m.id!==d))}catch(h){throw console.error("Error deleting banner config:",h),h}},l=async()=>{try{const{data:d,error:h}=await re.from("expired_auctions_hot").select("domain, expires").gte("expires",new Date().toISOString()).order("expires",{ascending:!0}).limit(1).single();return h?(console.error("Error fetching next hot auction:",h),null):(d==null?void 0:d.domain)||null}catch(d){return console.error("Error fetching next hot auction:",d),null}},u=async d=>{const h=e.find(f=>f.enabled&&f.target_tiers.includes(d)&&(!f.expires_at||new Date(f.expires_at)>new Date));if(!h)return null;if(h.type==="dynamic_hot_auction"){const f=await l();return{...h,dynamic_domain:f||void 0}}return h};return p.useEffect(()=>{s()},[]),{bannerConfigs:e,loading:n,createBannerConfig:o,updateBannerConfig:i,deleteBannerConfig:a,getActiveBannerForTier:u,refetch:s}},ky=({user:e,sidebarWidth:t=0})=>{const{currentTier:n,loading:r}=Ln(e),{getActiveBannerForTier:s,loading:o}=x1(),[i,a]=p.useState(null);if(p.useEffect(()=>{(async()=>
305{if(!e||r||o)return;const h=await s(n);a(h)})()},[e,n,r,o,s]),!e||r||o||!i)return null;const l=i.dynamic_domain?i.message.replace("{domain}",i.dynamic_domain):i.message,u=i.dynamic_domain&&i.link_url?i.link_url.replace("{domain}",i.dynamic_domain.toLowerCase()):i.link_url;return c.jsx("div",{className:"bg-gradient-to-r from-blue-600 via-purple-600 to-indigo-600 text-white py-4 md:py-3 px-4 text-center shadow-sm transition-all duration-300 md:static md:z-auto fixed top-[56px] left-0 right-0 z-40 flex items-center justify-center",style:{marginLeft:t>0?`${t}px`:void 0},children:c.jsx("div",{className:"max-w-6xl mx-auto",children:c.jsxs("p",{className:"text-sm md:text-base font-medium leading-relaxed",children:[l," ",u&&i.link_text&&c.jsx(G,{to:u,className:"underline font-bold hover:text-yellow-200 transition-colors",target:i.link_target||"_self",rel:i.link_target==="_blank"?"noopener noreferrer":void 0,children:i.link_text})]})})})},gD=({children:e,user:t,onLogout:n,favoritesCount:r,favoritesLimit:s,favorites:o,onRemoveFavorite:i,onUpgrade:a,bgVariant:l="brand",contentClassName:u,showTopBanner:d=!0})=>{const[h,f]=p.useState(!1),[m,v]=p.useState(!1),[g,b]=p.useState(56),{isPro:y,currentTier:x}=Ln(t),{getActiveBannerForTier:w}=x1(),_=Ut(),k=!!w(x),E=y1(),S=_.pathname==="/dashboard",C=_.pathname==="/appraisal",L=_.pathname==="/recent-appraisals",I=_.pathname==="/recentlysold",W=_.pathname==="/app",U=_.pathname==="/generator-plus",X=_.pathname==="/favorites",T=_.pathname==="/manage",ee=_.pathname==="/pricehunter",H=_.pathname==="/dailydrops",ne=_.pathname==="/marketplace",j=_.pathname==="/upload",N=_.pathname==="/buy-tokens",P=_.pathname==="/pricing"||_.pathname==="/pricing-v2",$=_.pathname==="/trendtracker",B=_.pathname==="/trendyfavorites",xe=l==="light"||(S||I||C||L||W||U||X||T||ee||H||ne||j||N||P||$||B);return mD(t),E?c.jsxs("div",{className:"min-h-screen overflow-x-hidden ga-theme bg-background",children:[d&&c.jsx(ky,{user:t,sidebarWidth:0}),c.jsx(pD,{user:t,onLogout:n,favoritesCount:r,favoritesLimit:s,onUpgrade:a,onShowFavorites:()=>f(!0)}),c.jsx("main",{className:de("px-2 pb-6 pt-4",u),style:{paddingTop:k&&d?"130px":"80px"},children:c.jsx("div",{className:"w-full max-w-none",children:e})}),c.jsx(xy,{isOpen:h,onClose:()=>f(!1),favorites:o,favoritesLimit:s,onRemoveFavorite:i}),c.jsx(wy,{isOpen:m,onClose:()=>v(!1),currentTier:x,onUpgrade:Be=>{a&&a(Be),v(!1)}})]}):c.jsxs("div",{className:"min-h-screen overflow-x-hidden ga-theme bg-background",children:[d&&c.jsx(ky,{user:t,sidebarWidth:g}),c.jsx(dD,{onWidthChange:b,user:t,onLogout:n,isPro:y}),c.jsx("main",{className:de("px-4 lg:px-6 pb-6 pt-4 transition-all duration-300",xe&&"ga-theme bg-transparent",u),style:{marginLeft:`${g}px`,"--sidebar-width":`${g}px`},children:c.jsx("div",{className:"w-full max-w-none",children:e})}),c.jsx(xy,{isOpen:h,onClose:()=>f(!1),favorites:o,favoritesLimit:s,onRemoveFavorite:i}),c.jsx(wy,{isOpen:m,onClose:()=>v(!1),currentTier:x,onUpgrade:Be=>{a&&a(Be),v(!1)}})]})};var vD=p.createContext(void 0);function w1(e){const t=p.useContext(vD);return e||t||"ltr"}function yD(e,t=[]){let n=[];function r(o,i){const a=p.createContext(i),l=n.length;n=[...n,i];function u(h){const{scope:f,children:m,...v}=h,g=(f==null?void 0:f[e][l])||a,b=p.useMemo(()=>v,Object.values(v));return c.jsx(g.Provider,{value:b,children:m})}function d(h,f){const m=(f==null?void 0:f[e][l])||a,v=p.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,d]}const s=()=>{const o=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,xD(s,...t)]}function xD(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const h=l(o)[`__scope${u}`];return{...a,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var nf="rovingFocusGroup.onEntryFocus",wD={bubbles:!1,cancelable:!0},qu="RovingFocusGroup",[Lh,b1,bD]=Up(qu),[_D,_1]=yD(qu,[bD]),[kD,ED]=_D(qu),k1=p.forwardRef((e,t)=>
vendor: 15,843 bytes, line 305
305c.jsx(Lh.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Lh.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(SD,{...e,ref:t})})}));k1.displayName=qu;var SD=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...h}=e,f=p.useRef(null),m=Re(t,f),v=w1(o),[g=null,b]=Rs({prop:i,defaultProp:a,onChange:l}),[y,x]=p.useState(!1),w=gt(u),_=b1(n),k=p.useRef(!1),[E,S]=p.useState(0);return p.useEffect(()=>{const C=f.current;if(C)return C.addEventListener(nf,w),()=>C.removeEventListener(nf,w)},[w]),c.jsx(kD,{scope:n,orientation:r,dir:v,loop:s,currentTabStopId:g,onItemFocus:p.useCallback(C=>b(C),[b]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>S(C=>C+1),[]),onFocusableItemRemove:p.useCallback(()=>S(C=>C-1),[]),children:c.jsx(me.div,{tabIndex:y||E===0?-1:0,"data-orientation":r,...h,ref:m,style:{outline:"none",...e.style},onMouseDown:q(e.onMouseDown,()=>{k.current=!0}),onFocus:q(e.onFocus,C=>{const L=!k.current;if(C.target===C.currentTarget&&L&&!y){const I=new CustomEvent(nf,wD);if(C.currentTarget.dispatchEvent(I),!I.defaultPrevented){const W=_().filter(H=>H.focusable),U=W.find(H=>H.active),X=W.find(H=>H.id===g),ee=[U,X,...W].filter(Boolean).map(H=>H.ref.current);C1(ee,d)}}k.current=!1}),onBlur:q(e.onBlur,()=>x(!1))})})}),E1="RovingFocusGroupItem",S1=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:o,...i}=e,a=Kn(),l=o||a,u=ED(E1,n),d=u.currentTabStopId===l,h=b1(n),{onFocusableItemAdd:f,onFocusableItemRemove:m}=u;return p.useEffect(()=>{if(r)return f(),()=>m()},[r,f,m]),c.jsx(Lh.ItemSlot,{scope:n,id:l,focusable:r,active:s,children:c.jsx(me.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:q(e.onMouseDown,v=>{r?u.onItemFocus(l):v.preventDefault()}),onFocus:q(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:q(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const g=TD(v,u.orientation,u.dir);if(g!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let y=h().filter(x=>x.focusable).map(x=>x.ref.current);if(g==="last")y.reverse();else if(g==="prev"||g==="next"){g==="prev"&&y.reverse();const x=y.indexOf(v.currentTarget);y=u.loop?PD(y,x+1):y.slice(x+1)}setTimeout(()=>C1(y))}})})})});S1.displayName=E1;var CD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jD(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function TD(e,t,n){const r=jD(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return CD[r]}function C1(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function PD(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ND=k1,AD=S1,$h=["Enter"," "],RD=["ArrowDown","PageUp","Home"],j1=["ArrowUp","PageDown","End"],OD=[...RD,...j1],MD={ltr:[...$h,"ArrowRight"],rtl:[...$h,"ArrowLeft"]},DD={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ya="Menu",[wa,ID,LD]=Up(Ya),[Ds,T1]=As(Ya,[LD,oi,_1]),Ku=oi(),P1=_1(),[$D,Is]=Ds(Ya),[FD,Qa]=Ds(Ya),N1=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:s,onOpenChange:o,modal:i=!0}=e,a=Ku(t),[l,u]=p.useState(null),d=p.useRef(!1),h=gt(o),f=w1(s);return p.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),c.jsx(rm,{...a,children:c.jsx($D,{scope:t,open:n,onOpenChange:h,content:l,onContentChange:u,children:c.jsx(FD,{scope:t,onClose:p.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:f,modal:i,children:r})})})};N1.displayName=Ya;var UD="MenuAnchor",Mm=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,s=Ku(n);return c.jsx(Su,{...s,...r,ref:t})});Mm.displayName=UD;var Dm="MenuPortal",[zD,A1]=Ds(Dm,{forceMount:void 0}),R1=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:s}=e,o=Is(Dm,t);return c.jsx(zD,{scope:t,forceMount:n,children:c.jsx(Ft,{present:n||o.open,children:c.jsx(Ga,{asChild:!0,container:s,children:r})})})};R1.displayName=Dm;var Kt="MenuContent",[BD,Im]=Ds(Kt),O1=p.forwardRef((e,t)=>{const n=A1(Kt,e.__scopeMenu),{forceMount:r=n.forceMount,...s}=e,o=Is(Kt,e.__scopeMenu),i=Qa(Kt,e.__scopeMenu);return c.jsx(wa.Provider,{scope:e.__scopeMenu,children:c.jsx(Ft,{present:r||o.open,children:c.jsx(wa.Slot,{scope:e.__scopeMenu,children:i.modal?c.jsx(VD,{...s,ref:t}):c.jsx(WD,{...s,ref:t})})})})}),VD=p.forwardRef((e,t)=>{const n=Is(Kt,e.__scopeMenu),r=p.useRef(null),s=Re(t,r);return p.useEffect(()=>{const o=r.current;if(o)return xm(o)},[]),c.jsx(Lm,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:q(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),WD=p.forwardRef((e,t)=>{const n=Is(Kt,e.__scopeMenu);return c.jsx(Lm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Lm=p.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:f,onDismiss:m,disableOutsideScroll:v,...g}=e,b=Is(Kt,n),y=Qa(Kt,n),x=Ku(n),w=P1(n),_=ID(n),[k,E]=p.useState(null),S=p.useRef(null),C=Re(t,S,b.onContentChange),L=p.useRef(0),I=p.useRef(""),W=p.useRef(0),U=p.useRef(null),X=p.useRef("right"),T=p.useRef(0),ee=v?Wu:p.Fragment,H=v?{as:Ur,allowPinchZoom:!0}:void 0,ne=N=>{var Ge,Xt;const P=I.current+N,$=_().filter(qe=>!qe.disabled),B=document.activeElement,te=(Ge=$.find(qe=>qe.ref.current===B))==null?void 0:Ge.textValue,xe=$.map(qe=>qe.textValue),Be=nI(xe,P,te),he=(Xt=$.find(qe=>qe.textValue===Be))==null?void 0:Xt.ref.current;(function qe(Jt){I.current=Jt,window.clearTimeout(L.current),Jt!==""&&(L.current=window.setTimeout(()=>qe(""),1e3))})(P),he&&setTimeout(()=>he.focus())};p.useEffect(()=>()=>window.clearTimeout(L.current),[]),ym();const j=p.useCallback(N=>{var $,B;return X.current===(($=U.current)==null?void 0:$.side)&&sI(N,(B=U.current)==null?void 0:B.area)},[]);return c.jsx(BD,{scope:n,searchRef:I,onItemEnter:p.useCallback(N=>{j(N)&&N.preventDefault()},[j]),onItemLeave:p.useCallback(N=>{var P;j(N)||((P=S.current)==null||P.focus(),E(null))},[j]),onTriggerLeave:p.useCallback(N=>{j(N)&&N.preventDefault()},[j]),pointerGraceTimerRef:W,onPointerGraceIntentChange:p.useCallback(N=>{U.current=N},[]),children:c.jsx(ee,{...H,children:c.jsx(Bu,{asChild:!0,trapped:s,onMountAutoFocus:q(o,N=>{var P;N.preventDefault(),(P=S.current)==null||P.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:c.jsx(ti,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:f,onDismiss:m,children:c.jsx(ND,{asChild:!0,...w,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:E,onEntryFocus:q(l,N=>{y.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(sm,{role:"menu","aria-orientation":"vertical","data-state":Z1(b.open),"data-radix-menu-content":"",dir:y.dir,...x,...g,ref:C,style:{outline:"none",...g.style},onKeyDown:q(g.onKeyDown,N=>{const $=N.target.closest("[data-radix-menu-content]")===N.currentTarget,B=N.ctrlKey||N.altKey||N.metaKey,te=N.key.length===1;$&&(N.key==="Tab"&&N.preventDefault(),!B&&te&&ne(N.key));const xe=S.current;if(N.target!==xe||!OD.includes(N.key))return;N.preventDefault();const he=_().filter(Ge=>!Ge.disabled).map(Ge=>Ge.ref.current);j1.includes(N.key)&&he.reverse(),eI(he)}),onBlur:q(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(L.current),I.current="")}),onPointerMove:q(e.onPointerMove,ba(N=>{const P=N.target,$=T.current!==N.clientX;if(N.currentTarget.contains(P)&&$){const B=N.clientX>T.current?"right":"left";X.current=B,T.current=N.clientX}}))})})})})})})});O1.displayName=Kt;var HD="MenuGroup",$m=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(me.div,{role:"group",...r,ref:t})});$m.displayName=HD;var GD="MenuLabel",M1=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(me.div,{...r,ref:t})});M1.displayName=GD;var Bc="MenuItem",Ey="menu.itemSelect",Zu=p.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...s}=e,o=p.useRef(null),i=Qa(Bc,e.__scopeMenu),a=Im(Bc,e.__scopeMenu),l=Re(t,o),u=p.useRef(!1),d=()=>{const h=o.current;if(!n&&h){const f=new CustomEvent(Ey,{bubbles:!0,cancelable:!0});h.addEventListener(Ey,m=>r==null?void 0:r(m),{once:!0}),zp(h,f),f.defaultPrevented?u.current=!1:i.onClose()}};return c.jsx(D1,{...s,ref:l,disabled:n,onClick:q(e.onClick,d),onPointerDown:h=>{var f;(f=e.onPointerDown)==null||f.call(e,h),u.current=!0},onPointerUp:q(e.onPointerUp,h=>{var f;u.current||(f=h.currentTarget)==null||f.click()}),onKeyDown:q(e.onKeyDown,h=>{const f=a.searchRef.current!=="";n||f&&h.key===" "||$h.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Zu.displayName=Bc;var D1=p.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:s,...o}=e,i=Im(Bc,n),a=P1(n),l=p.useRef(null),u=Re(t,l),[d,h]=p.useState(!1),[f,m]=p.useState("");return p.useEffect(()=>{const v=l.current;v&&m((v.textContent??"").trim())},[o.children]),c.jsx(wa.ItemSlot,{scope:n,disabled:r,textValue:s??f,children:c.jsx(AD,{asChild:!0,...a,focusable:!r,children:c.jsx(me.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:u,onPointerMove:q(e.onPointerMove,ba(v=>{r?i.onItemLeave(v):(i.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:q(e.onPointerLeave,ba(v=>i.onItemLeave(v))),onFocus:q(e.onFocus,()=>h(!0)),onBlur:q(e.onBlur,()=>h(!1))})})})}),qD="MenuCheckboxItem",I1=p.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...s}=e;return c.jsx(z1,{scope:e.__scopeMenu,checked:n,children:c.jsx(Zu,{role:"menuitemcheckbox","aria-checked":Vc(n)?"mixed":n,...s,ref:t,"data-state":Um(n),onSelect:q(s.onSelect,()=>r==null?void 0:r(Vc(n)?!0:!n),{checkForDefaultPrevented:!1})})})});I1.displayName=qD;var L1="MenuRadioGroup",[KD,ZD]=Ds(L1,{value:void 0,onValueChange:()=>{}}),$1=p.forwardRef((e,t)=>{const{value:n,onValueChange:r,...s}=e,o=gt(r);return c.jsx(KD,{scope:e.__scopeMenu,value:n,onValueChange:o,children:c.jsx($m,{...s,ref:t})})});$1.displayName=L1;var F1="MenuRadioItem",U1=p.forwardRef((e,t)=>{const{value:n,...r}=e,s=ZD(F1,e.__scopeMenu),o=n===s.value;return c.jsx(z1,{scope:e.__scopeMenu,checked:o,children:c.jsx(Zu,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":Um(o),onSelect:q(r.onSelect,()=>{var i;return(i=s.onValueChange)==null?void 0:i.call(s,n)},{checkForDefaultPrevented:!1})})})});U1.displayName=F1;var Fm="MenuItemIndicator",[z1,YD]=Ds(Fm,{checked:!1}),B1=p.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...s}=e,o=YD(Fm,n);return c.jsx(Ft,{present:r||Vc(o.checked)||o.checked===!0,children:c.jsx(me.span,{...s,ref:t,"data-state":Um(o.checked)})})});B1.displayName=Fm;var QD="MenuSeparator",V1=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(me.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});V1.displayName=QD;var XD="MenuArrow",W1=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,s=Ku(n);return c.jsx(om,{...s,...r,ref:t})});W1.displayName=XD;var JD="MenuSub",[eF,H1]=Ds(JD),Ri="MenuSubTrigger",G1=p.forwardRef((e,t)=>{const n=Is(Ri,e.__scopeMenu),r=Qa(Ri,e.__scopeMenu),s=H1(Ri,e.__scopeMenu),o=Im(Ri,e.__scopeMenu),i=p.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},d=p.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return p.useEffect(()=>d,[d]),p.useEffect(()=>{const h=a.current;return()=>{window.clearTimeout(h),l(null)}},[a,l]),c.jsx(Mm,{asChild:!0,...u,children:c.jsx(D1,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":Z1(n.open),...e,ref:mu(t,s.onTriggerChange),onClick:h=>{var f;(f=e.onClick)==null||f.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:q(e.onPointerMove,ba(h=>{o.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:q(e.onPointerLeave,ba(h=>{var m,v;d();const f=(m=n.content)==null?void 0:m.getBoundingClientRect();if(f){const g=(v=n.content)==null?void 0:v.dataset.side,b=g==="right",y=b?-5:5,x=f[b?"left":"right"],w=f[b?"right":"left"];o.onPointerGraceIntentChange({area:[{x:h.clientX+y,y:h.clientY},{x,y:f.top},{x:w,y:f.top},{x:w,y:f.bottom},{x,y:f.bottom}],side:g}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(h),h.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:q(e.onKeyDown,h=>{var m;const f=o.searchRef.current!=="";e.disabled||f&&h.key===" "||MD[r.dir].includes(h.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),h.preventDefault())})})})});G1.displayName=Ri;var q1="MenuSubContent",K1=p.forwardRef((e,t)=>{const n=A1(Kt,e.__scopeMenu),{forceMount:r=n.forceMount,...s}=e,o=Is(Kt,e.__scopeMenu),i=Qa(Kt,e.__scopeMenu),a=H1(q1,e.__scopeMenu),l=p.useRef(null),u=Re(t,l);return c.jsx(wa.Provider,{scope:e.__scopeMenu,children:c.jsx(Ft,{present:r||o.open,children:c.jsx(wa.Slot,{scope:e.__scopeMenu,children:c.jsx(Lm,{id:a.contentId,"aria-labelledby":a.triggerId,...s,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var h;i.isUsingKeyboardRef.current&&((h=l.current)==null||h.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:q(e.onFocusOutside,d=>{d.target!==a.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:q(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:q(e.onKeyDown,d=>{var m;const h=d.currentTarget.contains(d.target),f=DD[i.dir].includes(d.key);h&&f&&(o.onOpenChange(!1),(m=a.trigger)==null||m.focus(),d.preventDefault())})})})})})});K1.displayName=q1;function Z1(e){return e?"open":"closed"}function Vc(e){return e==="indeterminate"}function Um(e){return Vc(e)?"indeterminate":e?"checked":"unchecked"}function eI(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function tI(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function nI(e,t,n){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=tI(e,Math.max(o,0));s.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.toLowerCase().startsWith(s.toLowerCase()));return l!==n?l:void 0}function rI(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o].x,l=t[o].y,u=t[i].x,d=t[i].y;l>r!=d>r&&n<(u-a)*(r-l)/(d-l)+a&&(s=!s)}return s}function sI(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return rI(n,t)}function ba(e){return t=>t.pointerType==="mouse"?e(t):void 0}var oI=N1,iI=Mm,aI=R1,lI=O1,cI=$m,uI=M1,dI=Zu,fI=I1,hI=$1,pI=U1,mI=B1,gI=V1,vI=W1,yI=G1,xI=K1,zm="DropdownMenu",[wI,tF]=As(zm,[T1]),wt=T1(),[bI,Y1]=wI(zm),Q1=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:s,defaultOpen:o,onOpenChange:i,modal:
305a=!0}=e,l=wt(t),u=p.useRef(null),[d=!1,h]=Rs({prop:s,defaultProp:o,onChange:i});return c.jsx(bI,{scope:t,triggerId:Kn(),triggerRef:u,contentId:Kn(),open:d,onOpenChange:h,onOpenToggle:p.useCallback(()=>h(f=>!f),[h]),modal:a,children:c.jsx(oI,{...l,open:d,onOpenChange:h,dir:r,modal:a,children:n})})};Q1.displayName=zm;var X1="DropdownMenuTrigger",J1=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...s}=e,o=Y1(X1,n),i=wt(n);return c.jsx(iI,{asChild:!0,...i,children:c.jsx(me.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...s,ref:mu(t,o.triggerRef),onPointerDown:q(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(o.onOpenToggle(),o.open||a.preventDefault())}),onKeyDown:q(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&o.onOpenToggle(),a.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});J1.displayName=X1;var _I="DropdownMenuPortal",ek=e=>{const{__scopeDropdownMenu:t,...n}=e,r=wt(t);return c.jsx(aI,{...r,...n})};ek.displayName=_I;var tk="DropdownMenuContent",nk=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=Y1(tk,n),o=wt(n),i=p.useRef(!1);return c.jsx(lI,{id:s.contentId,"aria-labelledby":s.triggerId,...o,...r,ref:t,onCloseAutoFocus:q(e.onCloseAutoFocus,a=>{var l;i.current||(l=s.triggerRef.current)==null||l.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:q(e.onInteractOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!s.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nk.displayName=tk;var kI="DropdownMenuGroup",EI=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=wt(n);return c.jsx(cI,{...s,...r,ref:t})});EI.displayName=kI;var SI="DropdownMenuLabel",rk=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=wt(n);return c.jsx(uI,{...s,...r,ref:t})});rk.displayName=SI;var CI="DropdownMenuItem",sk=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=wt(n);return c.jsx(dI,{...s,...r,ref:t})});sk.displayName=CI;var jI="DropdownMenuCheckboxItem",ok=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=wt(n);return c.jsx(fI,{...s,...r,ref:t})});ok.displayName=jI;var TI="DropdownMenuRadioGroup",PI=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=wt(n);return c.jsx(hI,{...s,...r,ref:t})});PI.displayName=TI;var NI="DropdownMenuRadioItem",ik=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=wt(n);return c.jsx(pI,{...s,...r,ref:t})});ik.displayName=NI;var AI="DropdownMenuItemIndicator",ak=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=wt(n);return c.jsx(mI,{...s,...r,ref:t})});ak.displayName=AI;var RI="DropdownMenuSeparator",lk=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=wt(n);return c.jsx(gI,{...s,...r,ref:t})});lk.displayName=RI;var OI="DropdownMenuArrow",MI=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=wt(n);return c.jsx(vI,{...s,...r,ref:t})});MI.displayName=OI;var DI="DropdownMenuSubTrigger",ck=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=wt(n);return c.jsx(yI,{...s,...r,ref:t})});ck.displayName=DI;var II="DropdownMenuSubContent",uk=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=wt(n);return c.jsx(xI,{...s,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});uk.displayName=II;var LI=Q1,$I=J1,FI=ek,dk=nk,fk=rk,hk=sk,pk=ok,mk=ik,gk=ak,vk=lk,yk=ck,xk=uk;const wk=LI,bk=$I,UI=p.forwardRef(({className:e,inset:t,children:n,...r},s)=>c.jsxs(yk,{ref:s,className:de("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,c.jsx(cT,{className:"ml-auto h-4 w-4"})]}));UI.displayName=yk.displayName;const zI=p.forwardRef(({className:e,...t},n)=>c.jsx(xk,{ref:n,className:de("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
305de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));zI.displayName=xk.displayName;const Bm=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(FI,{children:c.jsx(dk,{ref:r,sideOffset:t,className:de("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Bm.displayName=dk.displayName;const _a=p.forwardRef(({className:e,inset:t,...n},r)=>c.jsx(hk,{ref:r,className:de("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));_a.displayName=hk.displayName;const BI=p.forwardRef(({className:e,children:t,checked:n,...r},s)=>c.jsxs(pk,{ref:s,className:de("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(gk,{children:c.jsx(wu,{className:"h-4 w-4"})})}),t]}));BI.displayName=pk.displayName;const VI=p.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(mk,{ref:r,className:de("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(gk,{children:c.jsx(uT,{className:"h-2 w-2 fill-current"})})}),t]}));VI.displayName=mk.displayName;const WI=p.forwardRef(({className:e,inset:t,...n},r)=>c.jsx(fk,{ref:r,className:de("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));WI.displayName=fk.displayName;const _k=p.forwardRef(({className:e,...t},n)=>c.jsx(vk,{ref:n,className:de("-mx-1 my-1 h-px bg-muted",e),...t}));_k.displayName=vk.displayName;const HI=({user:e,onLogout:t})=>{const{isPlus:n,isPro:r,isFree:s}=Ln(e);return y1()?null:c.jsxs("header",{className:"sticky top-0 z-50 flex items-center justify-between py-4 border-b border-border bg-background/80 backdrop-blur-md text-foreground -mx-4 lg:-mx-6 px-4 lg:px-6",children:[c.jsx("div",{className:"flex items-center shrink-0",style:{width:"256px",justifyContent:"center"},children:c.jsx(G,{to:"/",children:c.jsx("img",{src:"/lovable-uploads/goexpired-final-logo-hvidt.png",alt:"GoExpired logo",className:"h-8 w-auto hover:opacity-80 transition-opacity"})})}),c.jsxs("div",{className:"flex items-center gap-4 px-6",children:[c.jsxs(G,{to:"/premiumexpired",className:"inline-flex items-center gap-1.5 text-sm font-semibold rounded-2xl text-amber-950 bg-gradient-to-r from-amber-300 via-yellow-400 to-amber-500 hover:scale-[1.02] transition-all px-3 py-1.5",children:[c.jsx(Ue,{className:"w-4 h-4"}),"Premium Expired Auctions"]}),c.jsx(G,{to:"/appraisal",children:c.jsx(Se,{variant:"ghost",size:"sm",className:"text-muted-foreground hover:text-foreground",children:"Appraisal"})}),c.jsx(G,{to:"/pricing",children:c.jsx(Se,{variant:"ghost",size:"sm",className:"text-muted-foreground hover:text-foreground",children:"Pricing"})}),c.jsx(G,{to:"/newsletter",children:c.jsx(Se,{variant:"ghost",size:"sm",className:"text-muted-foreground hover:text-foreground",children:"Newsletter"})}),!e&&c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(G,{to:"/auth?mode=signin",children:c.jsx(Se,{variant:"ghost",size:"sm",className:"text-muted-foreground hover:text-foreground",children:"Login"})}),c.jsx(G,{to:"/auth",children:c.jsx(Se,{size:"sm",className:"bg-primary hover:bg-primary/90 text-primary-foreground",children:"Sign Up Free"})})]}),e&&!s&&c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:`flex items-center justify-center w-6 h-6 rounded-full border shadow-sm ${r?"bg-yellow-500 text-yellow-900 border-yellow-400":"bg-primary text-primary-foreground border-border"}`,children:r?c.jsx(Ue,{className:"w-3 h-3"}):c.jsx(da,{className:"w-3 h-3"})}),c.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:r?"PRO Member":"PLUS Member"})]}),e&&s&&c.jsx(G,{to:"/pricing",children:c.jsxs(Se,{variant:"outline",size:"sm",className:"flex items-center gap-2 bg-yellow-500/20 border-yellow-500/50 text-yellow-500 hover:bg-yellow-500/30 hover:border-yellow-500/70 font-semibold",children:[c.jsx(Ue,{className:"w-4 h-4"}),"Upgrade to PRO"]})}),e&&!s&&!xa(e)&&c.jsx(G,{to:"/settings",children:c.jsxs(Se,{variant:"outline",size:"sm",className:"flex items-center gap-2 bg-orange-500/20 border-orange-500/30 text-orange-300 hover:bg-orange-500/30 text-xs px-3 py-1",children:[c.jsx(Qw,{className:"w-3 h-3"}),c.jsx("span",{className:"hidden sm:block",children:"Add your name"})]})}),e&&c.jsxs(wk,{children:[c.jsx(bk,{asChild:!0,children:c.jsxs(Se,{variant:"ghost",size:"sm",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground",children:[c.jsx(ab,{className:"w-4 h-4"}),c.jsx("span",{className:"hidden sm:block text-sm text-muted-foreground",children:Om(e)}
305)]})}),c.jsxs(Bm,{align:"end",className:"w-48 bg-slate-800 border-slate-700 text-white",children:[c.jsx(_a,{asChild:!0,className:"text-white hover:bg-slate-700 focus:bg-slate-700",children:c.jsxs(G,{to:"/settings",className:"flex items-center gap-2 cursor-pointer text-white",children:[c.jsx(bu,{className:"w-4 h-4"}),c.jsx("span",{children:"Settings"})]})}),c.jsxs(_a,{onClick:t,className:"flex items-center gap-2 cursor-pointer text-white hover:bg-slate-700 focus:bg-slate-700",children:[c.jsx(nb,{className:"w-4 h-4"}),c.jsx("span",{children:"Log out"})]})]})]})]})]})},GI=e=>{const[t,n]=p.useState([]),[r,s]=p.useState({}),{toast:o}=Ha(),{userProfile:i}=Ln(e);p.useEffect(()=>{e&&(a(),l())},[e==null?void 0:e.id]);const a=async()=>{if(!e){console.log("loadFavorites: No user found"),n([]);return}console.log("loadFavorites: Loading favorites for user:",e.id);try{const{data:f,error:m}=await re.from("favorites").select("*").order("created_at",{ascending:!1});if(m){console.error("loadFavorites: Supabase error:",m),n([]),o({title:"Fejl ved indlæsning af favoritter",description:"Prøv at genindlæse siden.",variant:"destructive"});return}if(console.log("loadFavorites: Raw data from Supabase:",f),console.log("loadFavorites: Number of favorites found:",(f==null?void 0:f.length)||0),f&&f.length>0){console.log("loadFavorites: First favorite example:",f[0]);const v=f.filter(g=>g.user_id===e.id).length;console.log(`loadFavorites: ${v} out of ${f.length} favorites belong to current user`)}n(f||[])}catch(f){console.error("loadFavorites: Error in catch block:",f),n([]),o({title:"Kunne ikke indlæse favoritter",description:"Der opstod en uventet fejl. Prøv at genindlæse siden.",variant:"destructive"})}},l=async()=>{if(!e){console.log("loadExistingAppraisals: No user found"),s({});return}console.log("loadExistingAppraisals: Loading appraisals for user:",e.id);try{const{data:f,error:m}=await re.from("user_appraisal_history").select("domain, appraisal_value, appraisal_source").eq("user_id",e.id).order("appraised_at",{ascending:!1});if(m){console.error("loadExistingAppraisals: Supabase error:",m),s({});return}console.log("loadExistingAppraisals: Found appraisals:",f);const v={};f&&f.length>0&&f.forEach(g=>{const b=g.domain.toLowerCase();v[b]||(v[b]={value:Number(g.appraisal_value),source:g.appraisal_source||"appraisal"})}),console.log("loadExistingAppraisals: Processed appraisals map:",v),s(v)}catch(f){console.error("loadExistingAppraisals: Error in catch block:",f),s({})}};return{favorites:t,existingAppraisals:r,handleSaveFavorite:async f=>{if(!e){console.error("handleSaveFavorite: No user found"),o({title:"Du skal være logget ind for at gemme favoritter",variant:"destructive"});return}const m=by(i);if(m!==-1&&t.length>=m){o({title:"Favorites limit reached",description:`You can only have ${m} favorites on your current plan. Upgrade to get more favorites.`,variant:"destructive"});return}if(t.some(g=>g.domain===f)){o({title:"Dette domæne er allerede gemt som favorit",variant:"destructive"});return}console.log("handleSaveFavorite: Saving domain:",f,"for user:",e.id);try{const g={domain:f,user_id:e.id};console.log("handleSaveFavorite: Insert data:",g);const{data:b,error:y}=await re.from("favorites").insert(g).select();if(y)throw console.error("handleSaveFavorite: Supabase error:",y),o({title:"Fejl ved lagring af favorit",description:`Database fejl: ${y.message}`,variant:"destructive"}),y;console.log("handleSaveFavorite: Successfully inserted:",b),await a()}catch(g){console.error("handleSaveFavorite: Error in catch block:",g),o({title:"Kunne ikke gemme favorit",description:"Der opstod en uventet fejl. Prøv igen.",variant:"destructive"})}},handleRemoveFavorite:async f=>{if(!e){console.error("handleRemoveFavorite: No user found");return}console.log("handleRemoveFavorite: Removing favorite with id:",f,"for user:",e.id);try{const{error:m}=await re.from("favorites").delete().eq("id",f);if(m)throw console.error("handleRemoveFavorite: Supabase error:",m),o({title:"Fejl ved fjernelse af favorit",description:`Database fejl: ${m.message}`,variant:"destructive"}),m;console.log("handleRemoveFavorite: Successfully deleted favorite"),await a(),o({title:"Fjernet fra favoritter"})}catch(m){console.error("handleRemoveFavorite: Error in catch block:",m),o({title:"Kunne ikke fjerne favorit",description:"Der opstod en uventet fejl. Prøv igen.",variant:"destructive"})}},handleUpdateFavoriteNote:async(f,m)=>{if(!e){console.error("handleUpdateFavoriteNote: No user found");return}
305console.log("handleUpdateFavoriteNote: Updating note for favorite:",f,"with note:",m);try{const{error:v}=await re.from("favorites").update({notes:m}).eq("id",f);if(v)throw console.error("handleUpdateFavoriteNote: Supabase error:",v),o({title:"Fejl ved opdatering af note",description:`Database fejl: ${v.message}`,variant:"destructive"}),v;console.log("handleUpdateFavoriteNote: Successfully updated note"),await a(),o({title:"Note gemt!"})}catch(v){console.error("handleUpdateFavoriteNote: Error in catch block:",v),o({title:"Kunne ikke gemme note",description:"Der opstod en uventet fejl. Prøv igen.",variant:"destructive"})}},loadFavorites:a,favoritesLimit:by(i)}};function nF(){return tA()}const qI=()=>{const[e,t]=p.useState(null),[n,r]=p.useState(!0),s=Os(),{favorites:o,handleSaveFavorite:i,handleRemoveFavorite:a,favoritesLimit:l}=GI(e),{isPro:u,isFree:d,currentTier:h}=Ln(e),f=o.length;p.useEffect(()=>{let b=!0;const{data:{subscription:y}}=re.auth.onAuthStateChange((w,_)=>{b&&(t(k=>{var C;const E=((C=_==null?void 0:_.user)==null?void 0:C.id)??null,S=(k==null?void 0:k.id)??null;return E===S?k:(_==null?void 0:_.user)??null}),r(!1))}),x=setTimeout(()=>{b&&n&&(console.warn("Auth check timed out after 3s - continuing as anonymous"),t(null),r(!1))},3e3);return re.auth.getSession().then(({data:{session:w},error:_})=>{b&&(clearTimeout(x),_?(console.error("Session check error:",_.message),t(null)):t(k=>{var C;const E=((C=w==null?void 0:w.user)==null?void 0:C.id)??null,S=(k==null?void 0:k.id)??null;return E===S?k:(w==null?void 0:w.user)??null}),r(!1))}).catch(w=>{b&&(clearTimeout(x),console.error("Unexpected auth error:",w),t(null),r(!1))}),()=>{b=!1,clearTimeout(x),y.unsubscribe()}},[]);const m=async()=>{await re.auth.signOut(),s("/")},v=()=>{s("/pricing")};if(n)return c.jsx("div",{className:"min-h-screen bg-background text-foreground flex items-center justify-center",children:c.jsx("div",{className:"text-muted-foreground text-lg",children:"Loading..."})});const g={user:e,onLogout:m,favorites:o,handleSaveFavorite:i,handleRemoveFavorite:a,favoritesCount:f,favoritesLimit:l,isPro:u,isFree:d,currentTier:h};return c.jsxs("div",{className:"min-h-screen ga-theme bg-background text-foreground",children:[c.jsx(HI,{user:e,onLogout:m}),c.jsx(gD,{user:e,onLogout:m,favoritesCount:f,favoritesLimit:l,favorites:o,onRemoveFavorite:a,onUpgrade:v,children:c.jsx(mA,{context:g})})]})};var Vm="Popover",[kk,rF]=As(Vm,[oi]),Xa=oi(),[KI,Jr]=kk(Vm),Ek=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!1}=e,a=Xa(t),l=p.useRef(null),[u,d]=p.useState(!1),[h=!1,f]=Rs({prop:r,defaultProp:s,onChange:o});return c.jsx(rm,{...a,children:c.jsx(KI,{scope:t,contentId:Kn(),triggerRef:l,open:h,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:u,onCustomAnchorAdd:p.useCallback(()=>d(!0),[]),onCustomAnchorRemove:p.useCallback(()=>d(!1),[]),modal:i,children:n})})};Ek.displayName=Vm;var Sk="PopoverAnchor",ZI=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Jr(Sk,n),o=Xa(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=s;return p.useEffect(()=>(i(),()=>a()),[i,a]),c.jsx(Su,{...o,...r,ref:t})});ZI.displayName=Sk;var Ck="PopoverTrigger",jk=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Jr(Ck,n),o=Xa(n),i=Re(t,s.triggerRef),a=c.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Rk(s.open),...r,ref:i,onClick:q(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:c.jsx(Su,{asChild:!0,...o,children:a})});jk.displayName=Ck;var Wm="PopoverPortal",[YI,QI]=kk(Wm,{forceMount:void 0}),Tk=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,o=Jr(Wm,t);return c.jsx(YI,{scope:t,forceMount:n,children:c.jsx(Ft,{present:n||o.open,children:c.jsx(Ga,{asChild:!0,container:s,children:r})})})};Tk.displayName=Wm;var qo="PopoverContent",Pk=p.forwardRef((e,t)=>{const n=QI(qo,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,o=Jr(qo,e.__scopePopover);return c.jsx(Ft,{present:r||o.open,children:o.modal?c.jsx(XI,{...s,ref:t}):c.jsx(JI,{...s,ref:t})})});Pk.displayName=qo;var XI=p.forwardRef((e,t)=>
305{const n=Jr(qo,e.__scopePopover),r=p.useRef(null),s=Re(t,r),o=p.useRef(!1);return p.useEffect(()=>{const i=r.current;if(i)return xm(i)},[]),c.jsx(Wu,{as:Ur,allowPinchZoom:!0,children:c.jsx(Nk,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),o.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,u=a.button===2||l;o.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:q(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),JI=p.forwardRef((e,t)=>{const n=Jr(qo,e.__scopePopover),r=p.useRef(!1),s=p.useRef(!1);return c.jsx(Nk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:o=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),Nk=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...h}=e,f=Jr(qo,n),m=Xa(n);return ym(),c.jsx(Bu,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:c.jsx(ti,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(sm,{"data-state":Rk(f.open),role:"dialog",id:f.contentId,...m,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ak="PopoverClose",e5=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Jr(Ak,n);return c.jsx(me.button,{type:"button",...r,ref:t,onClick:q(e.onClick,()=>s.onOpenChange(!1))})});e5.displayName=Ak;var t5="PopoverArrow",n5=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Xa(n);return c.jsx(om,{...s,...r,ref:t})});n5.displayName=t5;function Rk(e){return e?"open":"closed"}var r5=Ek,s5=jk,o5=Tk,Ok=Pk;const i5=r5,a5=s5,Mk=p.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>c.jsx(o5,{children:c.jsx(Ok,{ref:s,align:t,sideOffset:n,className:de("z-50 w-72 rounded-modal border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Mk.displayName=Ok.displayName;const l5=e=>{const[t,n]=p.useState([]),[r,s]=p.useState(!1),o=p.useCallback(async()=>{if(!e){n([]);return}s(!0);try{const{data:l}=await re.from("profiles").select("tier, subscription_status").eq("id",e.id).maybeSingle(),d=(l==null?void 0:l.tier)==="pro"||(l==null?void 0:l.tier)==="plus"||(l==null?void 0:l.tier)==="platinum"||(l==null?void 0:l.subscription_status)==="active"||(l==null?void 0:l.subscription_status)==="trialing"||(l==null?void 0:l.subscription_status)==="lifetime"||(l==null?void 0:l.subscription_status)==="comp"?"pro":"free",{data:h,error:f}=await re.from("notifications").select("id,title,body,link_url,target_tiers,created_at").contains("target_tiers",[d]).order("created_at",{ascending:!1});if(f)throw f;const m=(h??[]).map(g=>g.id);let v=new Set;if(m.length>0){const{data:g}=await re.from("notification_reads").select("notification_id").eq("user_id",e.id).in("notification_id",m);
305v=new Set((g??[]).map(b=>b.notification_id))}n((h??[]).map(g=>({...g,is_read:v.has(g.id)})))}catch(l){console.error("Failed to load notifications",l)}finally{s(!1)}},[e==null?void 0:e.id]);p.useEffect(()=>{o()},[e==null?void 0:e.id,o]);const i=p.useCallback(async l=>{if(!e||l.length===0)return;const u=l.map(d=>({notification_id:d,user_id:e.id}));await re.from("notification_reads").upsert(u,{onConflict:"notification_id,user_id",ignoreDuplicates:!0}),n(d=>d.map(h=>l.includes(h.id)?{...h,is_read:!0}:h))},[e==null?void 0:e.id]),a=t.filter(l=>!l.is_read).length;return{notifications:t,unreadCount:a,loading:r,markAsRead:i,refetch:o}};function Je(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function c5(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const sF=6048e5,oF=864e5,Ll=43200,Sy=1440;let u5={};function d5(){return u5}function Cy(e){const t=Je(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function sc(e,t){const n=Je(e),r=Je(t),s=n.getTime()-r.getTime();return s<0?-1:s>0?1:s}function f5(e){return c5(e,Date.now())}function h5(e,t){const n=Je(e),r=Je(t),s=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return s*12+o}function p5(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function m5(e,t){return+Je(e)-+Je(t)}function g5(e){const t=Je(e);return t.setHours(23,59,59,999),t}function v5(e){const t=Je(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function y5(e){const t=Je(e);return+g5(t)==+v5(t)}function x5(e,t){const n=Je(e),r=Je(t),s=sc(n,r),o=Math.abs(h5(n,r));let i;if(o<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-s*o);let a=sc(n,r)===-s;y5(Je(e))&&o===1&&sc(e,r)===1&&(a=!1),i=s*(o-Number(a))}return i===0?0:i}function w5(e,t,n){const r=m5(e,t)/1e3;return p5(n==null?void 0:n.roundingMethod)(r)}const b5={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_5=(e,t,n)=>{let r;const s=b5[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function rf(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const k5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},E5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},S5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},C5={date:rf({formats:k5,defaultWidth:"full"}),time:rf({formats:E5,defaultWidth:"full"}),dateTime:rf({formats:S5,defaultWidth:"full"})},j5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},T5=(e,t,n,r)=>j5[e];function Ei(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;s=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[a]||e.values[i]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const P5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},N5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},A5={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},R5={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
305ay","Saturday"]},O5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},M5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},D5=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},I5={ordinalNumber:D5,era:Ei({values:P5,defaultWidth:"wide"}),quarter:Ei({values:N5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ei({values:A5,defaultWidth:"wide"}),day:Ei({values:R5,defaultWidth:"wide"}),dayPeriod:Ei({values:O5,defaultWidth:"wide",formattingValues:M5,defaultFormattingWidth:"wide"})};function Si(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const i=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?$5(a,h=>h.test(i)):L5(a,h=>h.test(i));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function L5(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function $5(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function F5(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=n.valueCallback?n.valueCallback(i):i;const a=t.slice(s.length);return{value:i,rest:a}}}const U5=/^(\d+)(th|st|nd|rd)?/i,z5=/\d+/i,B5={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},V5={any:[/^b/i,/^(a|c)/i]},W5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},H5={any:[/1/i,/2/i,/3/i,/4/i]},G5={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},q5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},K5={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Z5={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Y5={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Q5={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},X5={ordinalNumber:F5({matchPattern:U5,parsePattern:z5,valueCallback:e=>parseInt(e,10)}),era:Si({matchPatterns:B5,defaultMatchWidth:"wide",parsePatterns:V5,defaultParseWidth:"any"}),quarter:Si({matchPatterns:W5,defaultMatchWidth:"wide",parsePatterns:H5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Si({matchPatterns:G5,defaultMatchWidth:"wide",parsePatterns:q5,defaultParseWidth:"any"}),day:Si({matchPatterns:K5,defaultMatchWidth:"wide",parsePatterns:Z5,defaultParseWidth:"any"}),dayPeriod:Si({matchPatterns:Y5,defaultMatchWidth:"any",parsePatterns:Q5,defaultParseWidth:"any"})},J5={code:"en-US",formatDistance:_5,formatLong:C5,formatRelative:T5,localize:I5,match:X5,options:{weekStartsOn:0,firstWeekContainsDate:1}};
305function eL(e,t,n){const r=d5(),s=(n==null?void 0:n.locale)??r.locale??J5,o=2520,i=sc(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i});let l,u;i>0?(l=Je(t),u=Je(e)):(l=Je(e),u=Je(t));const d=w5(u,l),h=(Cy(u)-Cy(l))/1e3,f=Math.round((d-h)/60);let m;if(f<2)return n!=null&&n.includeSeconds?d<5?s.formatDistance("lessThanXSeconds",5,a):d<10?s.formatDistance("lessThanXSeconds",10,a):d<20?s.formatDistance("lessThanXSeconds",20,a):d<40?s.formatDistance("halfAMinute",0,a):d<60?s.formatDistance("lessThanXMinutes",1,a):s.formatDistance("xMinutes",1,a):f===0?s.formatDistance("lessThanXMinutes",1,a):s.formatDistance("xMinutes",f,a);if(f<45)return s.formatDistance("xMinutes",f,a);if(f<90)return s.formatDistance("aboutXHours",1,a);if(f<Sy){const v=Math.round(f/60);return s.formatDistance("aboutXHours",v,a)}else{if(f<o)return s.formatDistance("xDays",1,a);if(f<Ll){const v=Math.round(f/Sy);return s.formatDistance("xDays",v,a)}else if(f<Ll*2)return m=Math.round(f/Ll),s.formatDistance("aboutXMonths",m,a)}if(m=x5(u,l),m<12){const v=Math.round(f/Ll);return s.formatDistance("xMonths",v,a)}else{const v=m%12,g=Math.trunc(m/12);return v<3?s.formatDistance("aboutXYears",g,a):v<9?s.formatDistance("overXYears",g,a):s.formatDistance("almostXYears",g+1,a)}}function tL(e,t){return eL(e,f5(e),t)}const nL=({user:e,inkColor:t="#1A1A1A"})=>{const[n,r]=p.useState(!1),{notifications:s,unreadCount:o,markAsRead:i}=l5(e),a=s.slice(0,5),l=u=>{if(r(u),u){const d=a.filter(h=>!h.is_read).map(h=>h.id);d.length>0&&i(d)}};return c.jsxs(i5,{open:n,onOpenChange:l,children:[c.jsx(a5,{asChild:!0,children:c.jsxs("button",{"aria-label":"Notifications",className:"relative inline-flex items-center justify-center w-9 h-9 rounded-full hover:bg-black/5 transition-colors",style:{color:t},children:[c.jsx(rb,{className:"w-5 h-5",strokeWidth:1.25}),o>0&&c.jsx("span",{className:"absolute top-1.5 right-1.5 block w-2 h-2 rounded-full",style:{backgroundColor:"#EF4444",boxShadow:"0 0 0 2px #FAF9F5"}})]})}),c.jsxs(Mk,{align:"end",className:"w-80 p-0",children:[c.jsx("div",{className:"px-4 py-3 border-b border-border",children:c.jsx("div",{className:"text-sm font-semibold",children:"Notifications"})}),c.jsx("div",{className:"max-h-96 overflow-y-auto",children:a.length===0?c.jsx("div",{className:"px-4 py-6 text-sm text-muted-foreground text-center",children:"No notifications yet."}):a.map(u=>c.jsx(G,{to:"/notifications",onClick:()=>r(!1),className:"block",children:c.jsx("div",{className:`px-4 py-3 border-b border-border hover:bg-muted/40 transition-colors ${u.is_read?"":"bg-blue-50/40"}`,children:c.jsxs("div",{className:"flex items-start gap-2",children:[!u.is_read&&c.jsx("span",{className:"mt-1.5 w-2 h-2 rounded-full shrink-0",style:{backgroundColor:"#2563EB"}}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-sm font-medium leading-snug",children:u.title}),c.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:u.body}),c.jsx("div",{className:"text-[10px] text-muted-foreground mt-1",children:tL(new Date(u.created_at),{addSuffix:!0})})]})]})})},u.id))}),c.jsx("div",{className:"px-4 py-2 border-t border-border",children:c.jsx(G,{to:"/notifications",onClick:()=>r(!1),className:"block text-center text-sm font-medium py-1.5 rounded hover:bg-muted/60 transition-colors",style:{color:"#2563EB"},children:"View all notifications"})})]})]})};function Dk(e,t,n){if(n&&n.trim())return n.trim();const r=e.toLowerCase();return t==="namecheap"?`https://www.namecheap.com/market/search/?q=${encodeURIComponent(r)}`:t==="backorder"?`https://www.dynadot.com/market/backorder-auction/${r}?rscbo=domaindingo`:t==="gname"?`https://www.gname.com/en/auction/search?keyword=${encodeURIComponent(r)}`:`https://www.dynadot.com/market/auction/${r}?rsc=domaindingo`}const jy="gx-banner-dismissed:",rL=()=>{const[e,t]=p.useState(null),[n,r]=p.useState(null),[s,o]=p.useState(null),[i,a]=p.useState(!1);if(p.useEffect(()=>{let g=!1;return(async()=>{let y="guest";const{data:{session:x}}=await re.auth.getSession();if(x!=null&&x.user)try{const C=await Ih(x.user.id);y=vs(C)}catch{y="free"}const w=new Date().toISOString(),{data:_,error:k}=await re.from("banner_config").select("id, enabled, message, target_tiers, link_url, link_text, link_target, expires_at, type").eq("enabled",!0).contains("target_tiers",[y]).or(`expires_at.is.null,expires_at.gt.${w}`).order("created_at",{ascending:!1}).limit(1);if(g||k||!_||_.length===0)return;const E=_[0];if(E.type==="dynamic_hot_auction"){const{data:C}=await re.from("expired_auctions_hot").select("domain, source_type, auction_url, expires").gte("expires",w).order("expires",{ascending:!0}).limit(1).maybeSingle();if(g)return;if(C!=null&&C.domain){const L=C.domain.toLowerCase();r(L),o(Dk(L,C.source_type,C.auction_url))}else return}t(E);const S=typeof window<"u"&&window.localStorage.getItem(jy+E.id)==="1";a(S)})(),()=>{g=!0}},[]),!e||i)return null;const l=()=>{a(!0);try{window.localStorage.setItem(jy+e.id,"1")}catch{}},u=e.type==="dynamic_hot_auction",d=u&&n?e.message.replace(/\{domain\}/g,n):e.message,h=u&&n&&e.link_text?e.link_text.replace(/\{domain\}/g,n):e.link_text,f=u&&s||e.link_url,m=c.jsxs("span",{className:"font-medium",children:[d,h?` ${h}`:""]}),v=f?f.startsWith("http")?c.jsx("a",{href:f,target:e.link_target||"_blank",rel:"noopener noreferrer",className:"font-semibold hover:opacity-80 transition-opacity",children:m}):c.jsx(G,{to:f,target:e.link_target==="_blank"?"_blank":void 0,className:"font-semibold hover:opacity-80 transition-opacity",children:m}):m;return c.jsxs("div",{className:"relative w-full text-white text-center text-sm px-10 py-2.5",style:{backgroundColor:"#0B1A3A"},children:[v,c.jsx("button",{type:"button","aria-label":"Dismiss banner",onClick:l,className:"absolute right-3 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-white/10 transition-colors",children:c.jsx(Es,{className:"w-4 h-4"})})]})},sL=1,oL="a531173c-422e-4c86-beb6-f7106644c4d8",iL="25210763-c93
3051-4df9-aca0-d42b22c5597f",aL="/__l5e/assets-v1/a531173c-422e-4c86-beb6-f7106644c4d8/goexpired-four-leaf-logo.webp",lL="a/v1/25210763-c931-4df9-aca0-d42b22c5597f/a531173c-422e-4c86-beb6-f7106644c4d8/goexpired-four-leaf-logo.webp",cL="goexpired-four-leaf-logo.webp",uL=20460,dL="image/webp",fL="2026-07-24T16:18:07Z",Fh={version:sL,asset_id:oL,project_id:iL,url:aL,r2_key:lL,original_filename:cL,size:uL,content_type:dL,created_at:fL},hL={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",accent:"#C96442",accentDark:"#B25438",border:"#E8E5DD",borderStrong:"#D8D3C5"},Ty=[{to:"/gxpro",label:"GX PRO",premium:!0},{to:"/pricing",label:"Pricing"}],Py=[{to:"/premiumauctions",label:"Premium Auctions",premium:!0},{to:"/todays-picks",label:"Today's Picks"},{to:"/endingsoon",label:"Ending Soon"}],Ny=[{to:"/top100alttlds",label:"Top 100 Alt TLDs"},{to:"/top100backorders",label:"Top 100 Backorder Auctions"},{to:"/top100brandabledrops",label:"Top 100 Brandable Drops"},{to:"/top100brandables",label:"Top 100 Brandables"},{to:"/top100closeouts",label:"Top 100 Closeouts"},{to:"/top100drops",label:"Top 100 Drops"},{to:"/top100dynadot",label:"Top 100 Dynadot Auctions"}],Ay=[{to:"/advertise-your-domain",label:"Advertise Your Domain"},{to:"/sponsors",label:"Advertise Your Business"}],Ry=[{to:"/appraise-your-domain",label:"Appraise Your Domain"},{to:"/blog",label:"Articles"},{to:"/brandable-generator",label:"Brandable Generator"},{to:"/domainertools",label:"Domainer Tools"},{to:"/namegenerator",label:"Name Generator"},{to:"/newsletter",label:"Newsletter"},{to:"/submit-your-domain",label:"Submit Your Domain"},{to:"/watchlist",label:"Watchlist"}],Oy=[{to:"/faq",label:"FAQ"},{to:"/about",label:"About"},{to:"/contact",label:"Contact"}];function pL({activeLink:e}){const[t,n]=p.useState(!1),[r,s]=p.useState(!1),[o,i]=p.useState(!1),[a,l]=p.useState(!1),[u,d]=p.useState(!1),[h,f]=p.useState(!1),[m,v]=p.useState(!1),[g,b]=p.useState(!1),[y,x]=p.useState(!1),[w,_]=p.useState(!1),[k,E]=p.useState(!1),[S,C]=p.useState(!1),[L,I]=p.useState(!1),[W,U]=p.useState(null),X=Os(),T=hL;p.useEffect(()=>{let P=!0;re.auth.getSession().then(({data:{session:B}})=>{P&&U((B==null?void 0:B.user)??null)});const{data:{subscription:$}}=re.auth.onAuthStateChange((B,te)=>{P&&U((te==null?void 0:te.user)??null)});return()=>{P=!1,$.unsubscribe()}},[]);const ee=async()=>{await re.auth.signOut(),n(!1),X("/")},H=Om(W),{isPro:ne,loading:j}=Ln(W),N=!j&≠return c.jsxs(c.Fragment,{children:[c.jsx(rL,{}),c.jsx("header",{className:"sticky top-0 z-40 backdrop-blur-xl",style:{backgroundColor:"rgba(250, 249, 245, 0.78)",borderBottom:`1px solid ${T.border}`},children:c.jsxs("div",{className:"w-full px-6 lg:px-10 h-16 flex items-center justify-between",children:[c.jsx(G,{to:"/",className:"flex items-center",children:c.jsx("img",{src:Fh.url,alt:"GoExpired",className:"h-[32px] w-auto mt-[3px]"})}),c.jsxs("nav",{className:"hidden xl:flex items-center gap-5 2xl:gap-8 text-base",style:{color:T.inkMuted},children:[c.jsxs("div",{className:"relative",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[c.jsxs("button",{className:"relative flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm font-semibold transition-all hover:bg-[#2563EB]/10 border border-[#2563EB]/10 bg-[#2563EB]/5",style:{color:"#2563EB"},children:["Premium Auctions",c.jsx(ut,{className:"w-3.5 h-3.5",style:{color:"#2563EB"}}),c.jsxs("span",{className:"absolute -top-0.5 -right-0.5 flex h-2 w-2",children:[c.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"}),c.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-[#2563EB]"})]})]}),r&&c.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 pt-2",style:{minWidth:"180px"},children:c.jsx("div",{className:"rounded-xl shadow-lg border py-2",style:{backgroundColor:T.surface,borderColor:T.border},children:Py.map(P=>c.jsxs(G,{to:P.to,className:"flex items-center gap-2 px-4 py-2 text-sm hover:bg-[color:var(--gx-bg)] transition-colors",style:{color:T.ink,"--gx-bg":T.bg},children:[P.label,P.premium&&c.jsx(Ue,{className:"w-3.5 h-3.5",style:{color:"#2563EB"}})]},P.label))})})]}),c.jsxs("div",{className:"relative",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[c.jsxs("button",{className:"flex items-center gap-1 hover:text-[color:var(--gx-ink)] transition-colors",style:{"--gx-ink":T.ink,color:e==="top100"?T.ink:void 0},children:["Top 100",c.jsx(ut,{className:"w-3.5 h-3.5"})]}),o&&c.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 pt-2",style:{minWidth:"440px"},children:c.jsx("div",{className:"rounded-xl shadow-lg border p-4",style:{backgroundColor:T.surface,borderColor:T.border},children:c.jsx("div",{className:"grid grid-cols-2 grid-rows-2 gap-x-6 gap-y-2",children:Ny.map(P=>c.jsx(G,{to:P.to,className:"flex items-center gap-2 py-1.5 text-sm hover:bg-[color:var(--gx-bg)] transition-colors rounded-md whitespace-nowrap",style:{color:T.ink,"
305--gx-bg":T.bg},children:P.label},P.label))})})})]}),c.jsx(G,{to:"/4letterdomains",className:"flex items-center gap-1 hover:text-[color:var(--gx-ink)] transition-colors text-sm font-medium",style:{"--gx-ink":T.ink,color:e==="auctions"||e==="aftermarket"||e==="markets"?T.ink:void 0},children:"4L Auctions"}),c.jsxs("div",{className:"relative",onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[c.jsxs("button",{className:"flex items-center gap-1 hover:opacity-70 transition-opacity",style:{color:"#2563EB"},children:["GX PRO",c.jsx(ut,{className:"w-3.5 h-3.5"})]}),h&&c.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 pt-2",style:{minWidth:"180px"},children:c.jsx("div",{className:"rounded-xl shadow-lg border py-2",style:{backgroundColor:T.surface,borderColor:T.border},children:Ty.map(P=>c.jsxs(G,{to:P.to,className:"flex items-center gap-2 px-4 py-2 text-sm hover:bg-[color:var(--gx-bg)] transition-colors",style:{color:T.ink,"--gx-bg":T.bg},children:[P.label,"premium"in P&&P.premium&&c.jsx(Ue,{className:"w-3.5 h-3.5",style:{color:"#c9a84c"}})]},P.label))})})]}),c.jsxs("div",{className:"relative",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[c.jsxs("button",{className:"flex items-center gap-1 hover:text-[color:var(--gx-ink)] transition-colors",style:{"--gx-ink":T.ink,color:e==="advertise"?T.ink:void 0},children:["Advertise",c.jsx(ut,{className:"w-3.5 h-3.5"})]}),u&&c.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 pt-2",style:{minWidth:"220px"},children:c.jsx("div",{className:"rounded-xl shadow-lg border py-2",style:{backgroundColor:T.surface,borderColor:T.border},children:Ay.map(P=>c.jsx(G,{to:P.to,className:"block px-4 py-2 text-sm hover:bg-[color:var(--gx-bg)] transition-colors",style:{color:T.ink,"--gx-bg":T.bg},children:P.label},P.label))})})]}),c.jsxs("div",{className:"relative",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[c.jsxs("button",{className:"flex items-center gap-1 hover:text-[color:var(--gx-ink)] transition-colors",style:{"--gx-ink":T.ink,color:e==="resources"?T.ink:void 0},children:["Tools",c.jsx(ut,{className:"w-3.5 h-3.5"})]}),a&&c.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 pt-2",children:c.jsx("div",{className:"rounded-xl shadow-lg border p-4",style:{backgroundColor:T.surface,borderColor:T.border},children:c.jsx("div",{className:"grid grid-cols-[auto_auto] grid-rows-4 gap-x-6 gap-y-2",children:Ry.map(P=>c.jsx(G,{to:P.to,className:"flex items-center gap-2 py-1.5 text-sm hover:bg-[color:var(--gx-bg)] transition-colors rounded-md whitespace-nowrap",style:{color:T.ink,"--gx-bg":T.bg},children:P.label},P.label))})})})]}),c.jsxs("div",{className:"relative",onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[c.jsxs("button",{className:"flex items-center gap-1 hover:text-[color:var(--gx-ink)] transition-colors",style:{"--gx-ink":T.ink,color:e==="more"?T.ink:void 0},children:["More",c.jsx(ut,{className:"w-3.5 h-3.5"})]}),m&&c.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 pt-2",style:{minWidth:"180px"},children:c.jsx("div",{className:"rounded-xl shadow-lg border py-2",style:{backgroundColor:T.surface,borderColor:T.border},children:Oy.map(P=>c.jsx(G,{to:P.to,className:"block px-4 py-2 text-sm hover:bg-[color:var(--gx-bg)] transition-colors",style:{color:T.ink,"--gx-bg":T.bg},children:P.label},P.label))})})]}),!N&&c.jsxs(G,{to:"/gxpro",className:"hidden xl:inline-flex items-center gap-1.5 px-4 py-2 rounded-full text-sm font-semibold transition-all duration-200 hover:-translate-y-[1px]",style:{backgroundColor:"#c9a84c",color:"#1a1a1a",boxShadow:"0 4px 14px -4px rgba(201, 168, 76, 0.45), inset 0 1px 0 rgba(255,255,255,0.25)"},children:[c.jsx(Ue,{className:"w-3.5 h-3.5"}),"Upgrade"]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[W&&c.jsx(nL,{user:W,inkColor:T.ink}),W?c.jsxs(wk,{children:[c.jsx(bk,{asChild:!0,children:c.jsxs("button",{className:"hidden sm:flex items-center gap-1.5 text-sm px-3 py-1.5 rounded-full hover:bg-black/5 transition-colors",style:{color:T.ink,border:`1px solid ${T.border}`},children:[c.jsx("span",{className:"max-w-[110px] truncate",children:H}),!j&&(N?c.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-semibold tracking-wide px-2 py-0.5 rounded-full",style:{backgroundColor:"#2563EB",color:"#FFFFFF",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.2)"},children:[c.jsx(Ue,{className:"w-2.5 h-2.5"}),"GX PRO"]}):c.jsx("span",{className:"inline-flex items-center text-[10px] font-semibold tracking-wide px-2 py-0.5 rounded-full",style:{backgroundColor:T.border,color:T.inkMuted},children:"Free"})),c.jsx(ut,{className:"w-3.5 h-3.5"})]})}),c.jsxs(Bm,{align:"end",className:"w-44",children:[c.jsx(_a,{asChild:!0,children:c.jsx(G,{to:"/settings",children:"Settings"})}),c.jsx(_k,{}),c.jsx(_a,{onClick:ee,children:"Log out"})]})]}):c.jsxs(c.Fragment,{children:[c.jsx(G,{to:"/auth",className:"text-sm hidden sm:inline-block hover:opacity-70 transition-opacity",style:{color:T.ink},children:"Log in"}),c.jsx(G,{to:"/auth",children:c.jsx("button",{className:"px-4 py-2 rounded-full text-sm font-medium transition-all duration-200 hover:-translate-y-[1px]",style:{backgroundColor:"#2563EB",color:"#FFFFFF",boxShadow:"0 4px 14px -4px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255,255,255,0.25)"},children:"Sign up"})})]}),c.jsx("button",{className:"xl:hidden p-2 -mr-2",onClick:()=>n(!0),"aria-label":"Open menu",style:{color:T.ink},children:c.jsx(ob,{className:"w-6 h-6"})})]})]})}),t&&c.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col",style:{backgroundColor:T.bg},children:[c.jsxs("div",{className:"max-w-6xl mx-auto px-6 md:px-8 h-16 flex items-center justify-between w-full",children:[c.jsx("img",{src:Fh.url,alt:"GoExpired",className:"h-[32px] w-auto mt-[3px]"}),c.jsx("button",{className:"p-2 -mr-2",onClick:()=>n(!1),"aria-label":"Close menu",style:{color:T.ink},children:c.jsx(Es,{className:"w-6 h-6"})})]}),c.jsxs("nav",{className:"flex flex-col items-center justify-center flex-1 gap-6 px-6",children:[c.jsxs("div",{className:"w-full max-w-xs",children:[c.jsxs("button",{onClick:()=>b(!g),className:"flex items-center justify-center gap-2 text-2xl w-full",style:{fontFamily:"'Cormorant', serif",color:"#2563EB"},children:["Premium Auctions",c.jsx(ut,{className:"w-5 h-5 transition-transform",style:{transform:g?"rotate(180deg)":void 0}})]}),g&&c.jsx("div",{className:"flex flex-col items-center gap-3 mt-3",children:Py.map(P=>c.jsxs(G,{to:P.to,onClick:()=>n(!1),className:"flex items-center gap-2 text-lg",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:[P.label,P.premium&&c.jsx(Ue,{className:"w-4 h-4",style:{color:"#2563EB"}})]},P.label))})]}),c.jsxs("div",{className:"w-full max-w-xs",children:[c.jsxs("button",{onClick:()=>x(!y),className:"flex items-center justify-center gap-1 text-2xl w-full",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:["Top 100",c.jsx(ut,{className:"w-5 h-5 transition-transform",style:{transform:y?"rotate(180deg)":void 0}})]}),y&&c.jsx("div",{className:"flex flex-col items-center gap-3 mt-3",children:Ny.map(P=>c.jsx(G,{to:P.to,onClick:()=>n(!1),className:"text-lg",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:P.label},P.label))})]}),c.jsx(G,{to:"/4letterdomains",onClick:()=>n(!1),className:"text-2xl",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:"4L Auctions"}),c.jsxs("div",{className:"w-full max-w-xs",children:[c.jsxs("button",{onClick:()=>C(!S),className:"flex items-center justify-center gap-1 text-2xl w-full",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:["GX PRO",c.jsx(ut,{className:"w-5 h-5 transition-transform",style:{transform:S?"rotate(180deg)":void 0}})]}),S&&c.jsx("div",{className:"flex flex-col items-center gap-3 mt-3",children:Ty.map(P=>c.jsxs(G,{to:P.to,onClick:()=>n(!1),className:"flex items-center gap-2 text-lg",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:[P.label,"premium"in P&&P.premium&&c.jsx(Ue,{className:"w-4 h-4",style:{color:"#c9a84c"}})]},P.label))})]}),c.jsxs("div",{className:"w-full max-w-xs",children:[c.jsxs("button",{onClick:()=>E(!k),className:"flex items-center justify-center gap-1 text-2xl w-full",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:["Advertise",c.jsx(ut,{className:"w-5 h-5 transition-transform",style:{transform:k?"rotate(180deg)":void 0}})]}),k&&c.jsx("div",{className:"flex flex-col items-center gap-3 mt-3",children:Ay.map(P=>c.jsx(G,{to:P.to,onClick:()=>n(!1),className:"text-lg",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:P.label},P.label))})]}),c.jsxs("div",{className:"w-full max-w-xs",children:[c.jsxs("button",{onClick:()=>_(!w),className:"flex items-center justify-center gap-1 text-2xl w-full",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:["Tools",c.jsx(ut,{className:"w-5 h-5 transition-transform",style:{transform:w?"rotate(180deg)":void 0}})]}),w&&c.jsx("div",{className:"flex flex-col items-center gap-3 mt-3",children:Ry.map(P=>c.jsx(G,{to:P.to,onClick:()=>n(!1),className:"text-lg",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:P.label},P.label))})]}),c.jsxs("div",{className:"w-full max-w-xs",children:[c.jsxs("button",{onClick:()=>I(!L),className:"flex items-center justify-center gap-1 text-2xl w-full",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:["More",c.jsx(ut,{className:"w-5 h-5 transition-transform",style:{transform:L?"rotate(180deg)":void 0}})]}),L&&c.jsx("div",{className:"flex flex-col items-center gap-3 mt-3",children:Oy.map(P=>c.jsx(G,{to:P.to,onClick:()=>n(!1),className:"text-lg",style:{fontFamily:"'Cormorant', serif",color:T.ink},children:P.label},P.label))})]}),!N&&c.jsxs(G,{to:"/gxpro",onClick:()=>n(!1),className:"inline-flex items-center justify-center gap-1.5 w-full max-w-xs px-4 py-2 rounded-full text-xl font-semibold transition-all duration-200",style:{backgroundColor:"#c9a84c",color:"#1a1a1a",boxShadow:"0 4px 14px -4px rgba(201, 168, 76, 0.45), inset 0 1px 0 rgba(255,255,255,0.25)"},children:[c.jsx(Ue,{className:"w-4 h-4"}),"Upgrade"]}),c.jsx("div",{className:"flex flex-col items-center gap-4 mt-8 w-full max-w-xs",children:W?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"text-sm text-center",style:{color:T.inkMuted},children:["Signed in as",c.jsx("div",{className:"text-base mt-1",style:{color:T.ink},children:H})]}),c.jsx(G,{to:"/settings",onClick:()=>n(!1),className:"w-full text-center py-3 rounded-full text-lg font-medium",style:{backgroundColor:"transparent",border:`1px solid ${T.borderStrong}`,color:T.ink},children:"Settings"}),c.jsx("button",{onClick:ee,className:"w-full text-center py-3 rounded-full text-lg font-medium",style:{backgroundColor:"#2563EB",color:"#FFFFFF"},children:"Log out"})]}):c.jsxs(c.Fragment,{children:[c.jsx(G,{to:"/auth",onClick:()=>n(!1),className:"w-full text-center py-3 rounded-full text-lg font-medium",style:{backgroundColor:"transparent",border:`1px solid ${T.borderStrong}`,color:T.ink},children:"Log in"}),c.jsx(G,{to:"/auth",onClick:()=>n(!1),className:"w-full text-center py-3 rounded-full text-lg font-medium",style:{backgroundColor:"#2563EB",color:"#FFFFFF"},children:"Sign up"})]})})]})]})]})}const mL="https://goexpired.com",gL="https://storage.googleapis.com/gpt-engineer-file-uploads/st82XTKZSJQdqnpRO3pgyUij8np2/social-images/social-1781120134471-go-expired-com-open-graph.webp";function Ik({title:e,description:t,path:n,image:r=gL,type:s="website",noindex:o=!1}){const i=`${mL}${n.startsWith("/")?n:`/${n}`}`;return o?c.jsxs(pv,{children:[c.jsx("title",{children:e}),c.jsx("meta",{name:"description",content:t}),c.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}):c.jsxs(pv,{children:[c.jsx("title",{children:e}),c.jsx("meta",{name:"description",content:t}),c.jsx("link",{rel:"canonical",href:i}),c.jsx("meta",{property:"og:type",content:s}),c.jsx("meta",{property:"og:url",content:i}),c.jsx("meta",{property:"og:title",content:e}),c.jsx("meta",{property:"og:description",content:t}),c.jsx("meta",{property:"og:image",content:r}),c.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{name:"twitter:url",content:i}),c.jsx("meta",{name:"twitter:title",content:e}),c.jsx("meta",{name:"twitter:description",content:t}),c.jsx("meta",{name:"twitter:image",content:r})]})}const sf={inkMuted:"#6B6B68",border:"#E8E5DD"};function vL(){return c.jsxs("footer",{className:"py-12",style:{borderTop:`1px solid ${sf.border}`,color:sf.inkMuted},children:[c.jsxs("div",{className:"max-w-6xl mx-auto px-6 md:px-8 flex flex-wrap items-center justify-between gap-4 text-sm",children:[c.jsxs("div",{style:{fontFamily:"'Cormorant', serif"},children:["© ",new Date().getFullYear()," GoExpired.com"]}),c.jsxs("div",{className:"flex gap-6",children:[c.jsx(G,{to:"/newsletter",children:"Newsletter"}),c.jsx(G,{to:"/advertise-your-domain",children:"Advertise your domain"})]})]}),c.jsx("div",{className:"max-w-6xl mx-auto px-6 md:px-8 mt-8",children:c.jsx("p",{className:"text-xs leading-relaxed",style:{color:sf.inkMuted,opacity:.65}
305,children:"Disclaimer: GoExpired is an independent publication and is not affiliated with, endorsed by, or sponsored by Dynadot, Namecheap, GoDaddy, or any other registrar. Some links are affiliate links; if you click and make a purchase, we may earn a commission at no extra cost to you. The content is for informational purposes only and is not financial, investment, legal, or tax advice. Prices, availability, and closeout status can change without notice, and accuracy isn't guaranteed. Domain investing involves risk, and you can lose money. Past performance is not indicative of future results. All trademarks belong to their respective owners. Dynadot appraisal values shown are based on Dynadot data at the time of sending. These values are subject to change without prior notice, and GoExpired is not responsible for any subsequent updates."})})]})}const yL=1,xL="20df3ac5-15ce-4558-bc1a-78fc1bcce960",wL="25210763-c931-4df9-aca0-d42b22c5597f",bL="/__l5e/assets-v1/20df3ac5-15ce-4558-bc1a-78fc1bcce960/goexpired-gold-logo.webp",_L="a/v1/25210763-c931-4df9-aca0-d42b22c5597f/20df3ac5-15ce-4558-bc1a-78fc1bcce960/goexpired-gold-logo.webp",kL="goexpired-gold-logo.webp",EL=18760,SL="image/webp",CL="2026-07-24T16:18:02Z",jL={version:yL,asset_id:xL,project_id:wL,url:bL,r2_key:_L,original_filename:kL,size:EL,content_type:SL,created_at:CL},TL=e=>!e||e<=0?"------":String(e).padStart(6,"0"),PL=e=>{const t=new Date(e),n=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getFullYear()).slice(-2);return`${n}/${r}`},NL=({user:e,isPro:t,demoName:n,demoMemberNumber:r,demoMemberSince:s,compactShadow:o})=>{var g;const i=p.useRef(null),a=!e,[l,u]=p.useState(a?r??1234:null),[d,h]=p.useState(a?n??"Alex Morgan":xa(e)||((g=e.email)==null?void 0:g.split("@")[0])||"Member");p.useEffect(()=>{if(!e)return;let b=!0;return(async()=>{const{data:x}=await re.from("profiles").select("member_number").eq("id",e.id).maybeSingle();b&&x&&u(x.member_number??null)})(),()=>{b=!1}},[e==null?void 0:e.id]),p.useEffect(()=>{var b;e&&h(xa(e)||((b=e.email)==null?void 0:b.split("@")[0])||"Member")},[e]);const f=(b,y)=>{const x=i.current;if(!x)return;const w=x.getBoundingClientRect(),_=(b-w.left)/w.width,k=(y-w.top)/w.height,E=(.5-k)*10,S=(_-.5)*14;x.style.setProperty("--rx",`${E}deg`),x.style.setProperty("--ry",`${S}deg`),x.style.setProperty("--mx",`${_*100}%`),x.style.setProperty("--my",`${k*100}%`)},m=()=>{const b=i.current;b&&(b.style.setProperty("--rx","0deg"),b.style.setProperty("--ry","0deg"),b.style.setProperty("--mx","50%"),b.style.setProperty("--my","50%"))},v=PL((e==null?void 0:e.created_at)||s||new Date().toISOString());return c.jsxs("div",{className:"w-full",style:{perspective:"1200px"},children:[c.jsxs("div",{ref:i,onMouseMove:b=>f(b.clientX,b.clientY),onMouseLeave:m,onTouchMove:b=>{const y=b.touches[0];y&&f(y.clientX,y.clientY)},onTouchEnd:m,className:"relative mx-auto w-full max-w-[420px] aspect-[1.586/1] rounded-2xl overflow-hidden select-none transition-transform duration-200 ease-out will-change-transform",style:{transform:"rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0)",transformStyle:"preserve-3d",backgroundColor:"#0A0A0A",backgroundImage:["radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.10), rgba(255,255,255,0) 45%)","repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px)","radial-gradient(120% 80% at 0% 0%, #1a1a1a 0%, #0a0a0a 60%, #050505 100%)"].join(", "),boxShadow:o?"0 6px 16px -8px rgba(0,0,0,0.55), 0 3px 8px -6px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(201,168,76,0.18)":"0 20px 50px -20px rgba(0,0,0,0.7), 0 8px 20px -10px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(201,168,76,0.18)"},children:[c.jsx("div",{className:"pointer-events-none absolute inset-3 rounded-xl",style:{border:"1px solid rgba(201,168,76,0.18)"}}),c.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-60 mix-blend-screen",style:{background:"linear-gradient(115deg, transparent 30%, rgba(255,236,170,0.10) 48%, rgba(255,255,255,0.18) 50%, rgba(255,236,170,0.10) 52%, transparent 70%)",backgroundSize:"200% 100%",animation:"gxShimmer 6s ease-in-out infinite"}}),c.jsxs("div",{className:"absolute top-5 left-5 right-5 flex items-start justify-between",children:[c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx("img",{src:jL.url,alt:"GoExpired",className:"w-9 h-9 object-contain drop-shadow-[0_2px_4px_rgba(0,0,0,0.5)]",draggable:!1}),c.jsxs("div",{className:"leading-tight",children:[c.jsx("div",{className:"text-[10px] tracking-[0.22em] uppercase",style:{color:"#C9A84C",fontFamily:"'Inter', sans-serif"},children:"GoExpired"}),c.jsx("div",{className:"text-[9px] tracking-[0.28em] uppercase",style:{color:"rgba(201,168,76,0.65)"},children:"Full Access"})]})]}),t&&c.jsx("div",{className:"px-2.5 py-1 rounded-md text-[10px] font-semibold tracking-[0.18em] uppercase",style:{background:"linear-gradient(135deg, #f3d57a 0%, #c9a84c 50%, #8a6f2e 100%)",color:"#1a1100",boxShadow:"0 1px 2px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3)"},children:"GX PRO"})]}),c.jsx("div",{className:"absolute left-5 top-[38%] -translate-y-1/2 w-11 h-8 rounded-[6px] overflow-hidden",style:{background:"linear-gradient(135deg, #e8c97a 0%, #c9a84c 45%, #8a6f2e 100%)",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.4)"},children:c.jsx("div",{className:"w-full h-full",style:{background:"repeating-linear-gradient(0deg, rgba(0,0,0,0.25) 0px, rgba(0,0,0,0.25) 1px, transparent 1px, transparent 6px), repeating-linear-gradient(90deg, rgba(0,0,0,0.25) 0px, rgba(0,0,0,0.25) 1px, transparent 1px, transparent 6px)"}})}),c.jsxs("div",{className:"absolute left-5 right-5 bottom-[68px]",children:[c.jsx("div",{className:"text-[10px] tracking-[0.22em] uppercase mb-1",style:{color:"rgba(201,168,76,0.7)"},children:"Member No."}),c.jsxs("div",{className:"text-xl md:text-2xl tracking-[0.18em] font-medium",style:{color:"#f3d57a",fontFamily:"'JetBrains Mono', 'Menlo', monospace",textShadow:"0 1px 2px rgba(0,0,0,0.5)"},children:["#",TL(l)]})]}),c.jsxs("div",{className:"absolute left-5 right-5 bottom-4 flex items-end justify-between gap-3",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"text-[9px] tracking-[0.22em] uppercase mb-0.5",style:{color:"rgba(201,168,76,0.6)"},children:"Member Name"}),c.jsx("div",{className:"text-sm md:text-[15px] font-semibold uppercase tracking-[0.06em] truncate",style:{color:"#f3e9c8"},children:d})]}),c.jsxs("div",{className:"text-right",children:[c.jsx("div",{className:"text-[9px] tracking-[0.22em] uppercase mb-0.5",style:{color:"rgba(201,168,76,0.6)"},children:"Member Since"}),c.jsx("div",{className:"text-sm font-semibold",style:{color:"#f3e9c8",fontFamily:"'JetBrains Mono', 'Menlo', monospace"},children:v})]})]})]}),c.jsx("style",{children:` 306 @keyframes gxShimmer { 307 0% { background-position: 200% 0; } 308 50% { background-position: -200% 0; } 309 100% { background-position: 200% 0; } 310 } 311 `})]})},of={surface:"#FAF9F5",ink:"#4A4A4A",inkMuted:"#6B6B68",border:"#EDE9DD",bg:"#FAF9F5"},My="#2563EB",AL=[{id:"s1",domain:"snowfox.org",won_at:new Date().toISOString()},{id:"s2",domain:"vibelab.org",won_at:new Date().toISOString()},{id:"s3",domain:"biobeans.com",won_at:new Date().toISOString()},{id:"s4",domain:"bazoto.com",won_at:new Date().toISOString()},{id:"s5",domain:"rwascale.com",won_at:new Date().toISOString()}];function RL(){const[e,t]=p.useState(AL);p.useEffect(()=>{let s=!0;return(async()=>{const{data:o,error:i}=await re.from("won_auctions").select("id, domain, won_at").eq("is_visible",!0).order("sort_order",{ascending:!0}).order("won_at",{ascending:!1}).limit(50);s&&!i&&o&&o.length>0&&t(o)})(),()=>{s=!1}},[]);const n=[...e,...e],r=Math.max(28,e.length*6);return c.jsxs("div",{className:"rounded-2xl overflow-hidden",style:{backgroundColor:of.surface,border:`1px solid ${of.border}`,boxShadow:"0 1px 2px rgba(0,0,0,0.02)"},children:[c.jsxs("div",{className:"flex items-center gap-3 px-5 py-3.5 border-b",style:{backgroundColor:"#EFF4FF",borderColor:"#DBEAFE"},children:[c.jsx("div",{className:"text-[11px] sm:text-xs font-semibold uppercase tracking-[0.14em]",style:{color:"#3D3D3A"},children:"Recent auctions won by our members"}),c.jsxs("span",{className:"ml-auto inline-flex items-center gap-1.5 text-[10px] font-semibold tracking-wide px-2 py-1 rounded-full shadow-sm",style:{backgroundColor:"#FFFFFF",color:My},children:[c.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full",style:{backgroundColor:My,animation:"pulse 2s infinite"}}),"LIVE"]})]}),c.jsx("div",{"aria-label":"Recently won domains",className:"relative",style:{height:"260px",maskImage:"linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.15) 30px, black 78px, black calc(100% - 78px), rgba(0,0,0,0.15) calc(100% - 30px), transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.15) 30px, black 78px, black calc(100% - 78px), rgba(0,0,0,0.15) calc(100% - 30px), transparent 100%)"},children:c.jsx("div",{className:"gx-won-track",style:{animationDuration:`${r}s`},children:n.map((s,o)=>c.jsx("div",{className:"flex items-center px-5 py-4 sm:py-5",children:c.jsx("span",{className:"truncate text-[26px] sm:text-[32px] leading-none",style:{fontFamily:"'Cormorant', serif",fontWeight:600,color:of.ink,letterSpacing:"-0.01em"},children:s.domain})},`${s.id}-${o}`))})}),c.jsx("style",{children:` 312 .gx-won-track { 313 animation: gx-won-marquee linear infinite; 314 will-change: transform; 315 } 316 .gx-won-track:hover { animation-play-state: paused; } 317 @keyframes gx-won-marquee { 318 0% { transform: translateY(0); } 319 100% { transform: translateY(-50%); } 320 } 321 @media (prefers-reduced-motion: reduce) { 322 .gx-won-track { animation: none; } 323 } 324 `})]})}const OL=({className:e,size:t="md"})=>{const n=t==="sm"?"px-1.5 py-0.5 text-[10px] gap-1":"px-2 py-0.5 text-xs gap-1",r=t==="sm"?"w-2.5 h-2.5":"w-3 h-3";return c.jsx(am,{delayDuration:200,children:c.jsxs(Wb,{children:[c.jsx(Hb,{asChild:!0,children:c.jsxs("span",{className:de("inline-flex items-center rounded-md font-semibold whitespace-nowrap","bg-[#2563EB] opacity-100","border border-solid border-white text-white",n,e),onClick:s=>{s.preventDefault(),s.stopPropagation()},children:[c.jsx(aT,{className:de(r,"text-white")}),"Atom"]})}),c.jsxs(lm,{className:"flex flex-col gap-0.5",children:[c.jsx("p",{className:"font-semibold text-xs",children:"Atom.com"}),c.jsx("p",{className:"text-[11px] opacity-90",children:"Instant Premium Eligible"})]})]})})},_n={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",border:"#E8E5DD",borderStrong:"#D8D3C5"},Ci="#2563EB",Dy="#1D4FD8",Iy=6,Ly="id, domain, expires, logo_url, atom_premium, formatted_domain, description, source_type, auction_url, current_bid_price, bid_count, auction_price_currency, created_at",ML=e=>{const t=e.split(".");return t.length>1?t.slice(1).join(".").toLowerCase():""},DL=e=>{const t=e.domain.split(".")[0],n=ML(e.domain),r=e.formatted_domain&&e.formatted_domain.toLowerCase()===t.toLowerCase()?e.formatted_domain:t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();return n?`${r}.${n}`:r},IL=e=>{const t=new Date(e).getTime()-Date.now();if(t<=0)return"Expired";const n=Math.floor(t/864e5),r=Math.floor(t%864e5/36e5),s=Math.floor(t%36e5/6e4);if(n>0)return`${n}d ${r}h ${s}m`;const o=Math.floor(t%6e4/1e3);return r>0?`${r}h ${s}m ${o}s`:`${s}m ${o}s`},LL=(e,t,n)=>{if(e==null)return null;
324const r=(n||"usd").toLowerCase()==="usd"?"$":"",s=Math.abs(e-Math.trunc(e))>1e-4,o=`${r}${e.toLocaleString("en-US",{minimumFractionDigits:s?2:0,maximumFractionDigits:2})}`;return t&&t>0?`${o} · ${t} bid${t===1?"":"s"}`:o};function $L(){const[e,t]=p.useState([]),[n,r]=p.useState(!1),[s,o]=p.useState(!0),[,i]=p.useState(0);return p.useEffect(()=>{const a=setInterval(()=>i(l=>l+1),1e3);return()=>clearInterval(a)},[]),p.useEffect(()=>{let a=!1;return(async()=>{try{const u=new Date,d=new Date(Date.UTC(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate(),0,0,0,0)),h=new Date(d);h.setUTCDate(h.getUTCDate()+1);const f=x=>(x||[]).filter(w=>!w.expires||new Date(w.expires).getTime()>Date.now()),{data:m,error:v}=await re.from("expired_auctions_hot").select(Ly).gte("created_at",d.toISOString()).lt("created_at",h.toISOString()).order("expires",{ascending:!0}).limit(30);if(v)throw v;const g=f(m||[]).slice(0,Iy);if(g.length>0){a||(t(g),r(!1));return}const{data:b,error:y}=await re.from("expired_auctions_hot").select(Ly).order("created_at",{ascending:!1}).limit(40);if(y)throw y;a||(t(f(b||[]).slice(0,Iy)),r(!0))}catch(u){console.error("Error loading picks preview:",u),a||t([])}finally{a||o(!1)}})(),()=>{a=!0}},[]),s||e.length===0?null:c.jsx("section",{className:"py-14 px-6 md:px-8",style:{backgroundColor:_n.surface,borderTop:`1px solid ${_n.border}`},children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"flex flex-col md:flex-row md:items-end md:justify-between gap-4 mb-10",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] mb-2",style:{color:Ci},children:n?"Latest picks":"Today's Picks"}),c.jsx("h2",{className:"text-3xl md:text-4xl mb-2",style:{fontFamily:"'Cormorant', serif",color:_n.ink},children:n?"The latest auctions we picked":"A look at today's picks"}),c.jsx("p",{style:{color:_n.inkMuted},children:n?"Our most recent shortlist, while today's picks are being prepared.":"A small selection from the auctions we picked out today."})]}),c.jsxs(G,{to:"/todays-picks",className:"inline-flex items-center gap-2 text-sm font-medium transition-colors self-start md:self-auto",style:{color:Ci},onMouseEnter:a=>a.currentTarget.style.color=Dy,onMouseLeave:a=>a.currentTarget.style.color=Ci,children:["See all picks",c.jsx(fo,{className:"w-4 h-4"})]})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5",children:e.map(a=>{const l=Dk(a.domain,a.source_type,a.auction_url),u=LL(a.current_bid_price,a.bid_count,a.auction_price_currency);return c.jsx("article",{className:"rounded-xl overflow-hidden flex flex-col",style:{backgroundColor:_n.bg,border:`1px solid ${_n.border}`},children:c.jsxs("div",{className:"p-5 flex-1 flex flex-col gap-3",children:[c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsx("h3",{className:"text-lg tracking-tight truncate",style:{fontWeight:600,color:_n.ink},title:a.domain,children:DL(a)}),a.atom_premium&&c.jsx(OL,{size:"sm"})]}),c.jsx("p",{className:"text-sm line-clamp-2 min-h-[2.5rem]",style:{color:_n.inkMuted},children:a.description||" "}),c.jsxs("div",{className:"flex items-center justify-between text-sm",style:{color:_n.inkMuted},children:[c.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c.jsx(dT,{className:"w-3.5 h-3.5"}),IL(a.expires)]}),u&&c.jsx("span",{className:"tabular-nums",style:{color:_n.ink,fontWeight:600},children:u})]}),c.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"mt-auto inline-flex items-center justify-center gap-2 w-full py-2.5 rounded-full text-sm font-medium text-white transition-colors",style:{backgroundColor:Ci},onMouseEnter:d=>d.currentTarget.style.backgroundColor=Dy,onMouseLeave:d=>d.currentTarget.style.backgroundColor=Ci,children:["View Auction",c.jsx(hT,{className:"w-3.5 h-3.5"})]})]})},a.id)})})]})})}const FL="/assets/homepage-domain-investors-dXVE03ge.jpg",Z={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",border:"#E8E5DD",borderStrong:"#D8D3C5"},ot="#2563EB",af="#1D4FD8",UL=[{icon:qp,title:"Find undervalued domains faster",body:"Skip the noise. See only the auctions worth your time - ranked, appraised, and ready to bid on."},{icon:pT,title:"Make decisions with real data",body:"Instant appraisals, wholesale and retail estimates, age, TLD count and GX Score - all on one screen."},{icon:lT,title:"Never miss the good drops",body:"Curated lists refresh daily, plus a watchlist and notifications so you catch the ones that matter."},{icon:mT,title:"Bid with more confidence",body:"Independent research and transparent scoring help you avoid emotional bidding and overpaying."}],zL=[{icon:Ue,label:"Premium Expired Auctions",desc:"Hand-picked drops with the highest upside."},{icon:Gp,label:"Curated Drops & Closeouts",desc:"AI-curated lists refreshed every day."},{icon:Hp,label:"Instant Domain Appraisal",desc:"Wholesale & retail estimates in seconds."},{icon:da,label:"Watchlist",desc:"Track the auctions you care about."}],BL=[{quote:"It is one of the best sites for acquiring wonderful domains. I recommend it to everyone.",name:"AlexDomain",handle:"@zeus_store7"},{quote:"Love what you built and I think I'm getting addicted to appraisals.",name:"Hertzel Betito",handle:"@HertzelBetito"},{quote:"A beautiful tool... I found the ratings and pricing very reasonable.",name:"wiz",handle:"@youh12818"},{quote:"With GoExpired, I feel myself spending more time with the family. Great job with the site.",name:"Aaron (DomainNamescape)",handle:"@DomainNamescape"}],VL=["Unlimited domain appraisals","Access to Premium Expired Auctions (hand-picked)","Ending Soon, 4-letter domains & full Alt TLD lists","Advanced filters, search, and unlimited watchlist","Priority updates and new tools first"];function $y(){return p.useEffect(()=>{document.title="Welcome to GoExpired - Find undervalued expired domains"},[]),c.jsxs("div",{className:"min-h-screen",style:{backgroundColor:Z.bg,color:Z.ink},children:[c.jsx(pL,{}),c.jsxs("main",{children:[c.jsx(Ik,{title:"GoExpired | Hand-picked expired domain auctions",description:"From hand-picked expired auctions to instant appraisals - GoExpired
324is your shortcut to smarter domain investing.",path:"/"}),c.jsx("section",{className:"pt-14 pb-14 md:pt-20 md:pb-20 px-6 md:px-8",children:c.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-12 gap-10 lg:gap-12 items-center",children:[c.jsxs("div",{className:"lg:col-span-7 text-center lg:text-left lg:py-6",children:[c.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full text-xs mb-8",style:{border:`1px solid ${Z.border}`,backgroundColor:Z.surface,color:Z.inkMuted},children:[c.jsx(Gp,{className:"w-3.5 h-3.5",style:{color:ot}}),"The smarter way to hunt expired domains"]}),c.jsxs("h1",{className:"text-5xl md:text-7xl leading-[1.02] tracking-tight mb-6",style:{fontFamily:"'Cormorant', serif",fontWeight:600,color:Z.ink},children:["The auctions worth winning.",c.jsx("br",{}),"Delivered every morning."]}),c.jsx("p",{className:"text-lg md:text-xl mb-8 leading-relaxed lg:max-w-xl mx-auto lg:mx-0",style:{color:Z.inkMuted},children:"GoExpired filters more than 100,000 expiring domains every day and surfaces the ones with real potential - so you can invest with confidence."}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-3",children:[c.jsxs(G,{to:"/auth",className:"inline-flex items-center gap-2 px-5 py-3 rounded-lg text-sm font-medium text-white transition-colors",style:{backgroundColor:ot},onMouseEnter:e=>e.currentTarget.style.backgroundColor=af,onMouseLeave:e=>e.currentTarget.style.backgroundColor=ot,children:["Create your free account",c.jsx(fo,{className:"w-4 h-4"})]}),c.jsx(G,{to:"/todays-picks",className:"inline-flex items-center gap-2 px-5 py-3 rounded-lg text-sm font-medium transition-colors",style:{border:`1px solid ${Z.borderStrong}`,color:Z.ink,backgroundColor:Z.surface},children:"See Today's Picks"})]}),c.jsx("p",{className:"text-xs mt-5",style:{color:Z.inkMuted},children:"Free forever. No credit card required."})]}),c.jsx("div",{className:"lg:col-span-5",children:c.jsxs("figure",{className:"overflow-hidden rounded-2xl",style:{backgroundColor:Z.surface,border:`1px solid ${Z.border}`,boxShadow:"0 12px 32px -16px rgba(26,26,26,0.12)"},children:[c.jsx("img",{src:FL,alt:"Two domain investors discovering an auction opportunity together",width:1024,height:1280,className:"aspect-[5/4] w-full object-cover object-[center_38%] lg:aspect-square"}),c.jsxs("figcaption",{className:"p-5",children:[c.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.18em]",style:{color:ot},children:"Better domains. Less searching."}),c.jsx("p",{className:"mt-2 text-sm leading-relaxed",style:{color:Z.inkMuted},children:"Start each day with a focused shortlist of domain auctions worth a closer look."})]})]})})]})}),c.jsx($L,{}),c.jsx("section",{className:"py-14 px-6 md:px-8",style:{borderTop:`1px solid ${Z.border}`},children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-10",children:[c.jsx("h2",{className:"text-3xl md:text-4xl mb-3",style:{fontFamily:"'Cormorant', serif",color:Z.ink},children:"What GoExpired does for you"}),c.jsx("p",{style:{color:Z.inkMuted},children:"Built for domain investors who want signal, not noise."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:UL.map(e=>{const t=e.icon;return c.jsxs("div",{className:"p-6 rounded-xl",style:{backgroundColor:Z.surface,border:`1px solid ${Z.border}`},children:[c.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center mb-4",style:{backgroundColor:"#EFF4FF",color:ot},children:c.jsx(t,{className:"w-5 h-5"})}),c.jsx("h3",{className:"text-lg font-semibold mb-2",style:{color:Z.ink},children:e.title}),c.jsx("p",{className:"text-sm leading-relaxed",style:{color:Z.inkMuted},children:e.body})]},e.title)})})]})}),c.jsx("section",{className:"py-14 px-6 md:px-8",style:{backgroundColor:Z.surface,borderTop:`1px solid ${Z.border}`,borderBottom:`1px solid ${Z.border}`},children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-10",children:[c.jsx("h2",{className:"text-3xl md:text-4xl mb-3",style:{fontFamily:"'Cormorant', serif",color:Z.ink},children:"Everything in one place"}),c.jsx("p",{style:{color:Z.inkMuted},children:"The tools serious domainers use every day."})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:zL.map(e=>{const t=e.icon;return c.jsxs("div",{className:"p-5 rounded-xl",style:{border:`1px solid ${Z.border}`,backgroundColor:Z.bg},children:[c.jsx(t,{className:"w-5 h-5 mb-3",style:{color:ot}}),c.jsx("div",{className:"font-semibold text-sm mb-1",style:{color:Z.ink},children:e.label}),c.jsx("div",{className:"text-xs",style:{color:Z.inkMuted},children:e.desc})]},e.label)})})]})}),c.jsx("section",{className:"py-16 px-6 md:px-8",style:{backgroundColor:Z.surface,borderBottom:`1px solid ${Z.border}`},children:c.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-12 gap-10 lg:gap-14 items-center",children:[c.jsxs("div",{className:"lg:col-span-5",children:[c.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full text-xs mb-5",style:{border:`1px solid ${Z.border}`,backgroundColor:Z.bg,color:ot},children:[c.jsxs("span",{className:"relative flex h-2 w-2","aria-hidden":"true",children:[c.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-primary opacity-50"}),c.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-primary"})]}),"Member activity"]}),c.jsx("h2",{className:"text-3xl md:text-4xl mb-4",style:{fontFamily:"'Cormorant', serif",color:Z.ink},children:"Recent auctions won by our members"}),c.jsx("p",{className:"leading-relaxed mb-6",style:{color:Z.inkMuted},children:"These are real domains recently secured by GoExpired members. Every win started with spotting the right opportunity before the auction ended."}),c.jsxs(G,{to:"/premiumauctions",className:"inline-flex items-center gap-2 text-sm font-medium transition-colors",style:{color:ot},children:["Explore today's premium auctions",c.jsx(fo,{className:"w-4 h-4"})]})]}),c.jsx("div",{className:"lg:col-span-7",children:c.jsx(RL,{})})]})}),c.jsx("section",{className:"py-14 px-6 md:px-8",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-10",children:[c.jsx("h2",{className:"text-3xl md:text-4xl mb-3",style:{fontFamily:"'Cormorant', serif",color:Z.ink},children:"Loved by domain investors"}),c.jsx("p",{style:{color:Z.inkMuted},children:"Real feedback from people using GoExpired every week."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:BL.map(e=>c.jsxs("figure",{className:"p-6 rounded-xl",style:{backgroundColor:Z.surface,border:`1px solid ${Z.border}`},children:[c.jsx("div",{className:"flex gap-1 mb-3",children:[0,1,2,3,4].map(t=>c.jsx(da,{className:"w-4 h-4",fill:ot,style:{color:ot}},t))}),c.jsxs("blockquote",{className:"text-lg leading-relaxed mb-4",style:{fontFamily:"'Cormorant', serif",color:Z.ink},children:['"',e.quote,'"']}),c.jsxs("figcaption",{className:"text-sm",style:{color:Z.inkMuted},children:["— ",e.name," ",c.jsx("span",{style:{opacity:.7},children:e.handle})]})]},e.handle))})]})}),c.jsx("section",{className:"py-16 px-6 md:px-8",style:{borderTop:`1px solid ${Z.border}`,borderBottom:`1px solid ${Z.border}`,backgroundColor:Z.surface},children:c.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-10 items-center",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full text-xs mb-5",style:{border:`1px solid ${Z.border}`,backgroundColor:Z.bg,color:ot},children:[c.jsx(Ue,{className:"w-3.5 h-3.5"}),"GX PRO"]}),c.jsx("h2",{className:"text-3xl md:text-4xl mb-4",style:{fontFamily:"'Cormorant', serif",color:Z.ink},children:"Go PRO when you're ready to move faster"}),c.jsx("p",{className:"mb-6",style:{color:Z.inkMuted},children:"Upgrade unlocks the full engine: unlimited appraisals, every premium list, advanced filters, and the hand-picked auctions our team curates by hand."}),c.jsx("ul",{className:"space-y-3 mb-8",children:VL.map(e=>c.jsxs("li",{className:"flex items-start gap-3 text-sm",style:{color:Z.ink}
324,children:[c.jsx("span",{className:"mt-0.5 w-5 h-5 rounded-full flex items-center justify-center shrink-0",style:{backgroundColor:"#EFF4FF",color:ot},children:c.jsx(wu,{className:"w-3 h-3"})}),e]},e))}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[c.jsxs(G,{to:"/gxpro",className:"inline-flex items-center gap-2 px-5 py-3 rounded-lg text-sm font-medium text-white transition-colors",style:{backgroundColor:ot},onMouseEnter:e=>e.currentTarget.style.backgroundColor=af,onMouseLeave:e=>e.currentTarget.style.backgroundColor=ot,children:["See GX PRO",c.jsx(fo,{className:"w-4 h-4"})]}),c.jsx(G,{to:"/pricing",className:"inline-flex items-center gap-2 px-5 py-3 rounded-lg text-sm font-medium transition-colors",style:{border:`1px solid ${Z.borderStrong}`,color:Z.ink,backgroundColor:Z.bg},children:"View pricing"})]})]}),c.jsx("div",{className:"flex justify-center",children:c.jsx(NL,{isPro:!0,demoName:"Alex Morgan",demoMemberNumber:1234})})]})}),c.jsx("section",{className:"py-16 px-6 md:px-8",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center p-10 md:p-14 rounded-2xl",style:{backgroundColor:Z.surface,border:`1px solid ${Z.border}`},children:[c.jsx("h2",{className:"text-3xl md:text-4xl mb-4",style:{fontFamily:"'Cormorant', serif",color:Z.ink},children:"Start finding better domains today"}),c.jsx("p",{className:"mb-8 max-w-xl mx-auto",style:{color:Z.inkMuted},children:"Sign up free and see today's curated expired auctions in under a minute."}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[c.jsxs(G,{to:"/auth",className:"inline-flex items-center gap-2 px-6 py-3 rounded-lg text-sm font-medium text-white transition-colors",style:{backgroundColor:ot},onMouseEnter:e=>e.currentTarget.style.backgroundColor=af,onMouseLeave:e=>e.currentTarget.style.backgroundColor=ot,children:["Create your free account",c.jsx(fo,{className:"w-4 h-4"})]}),c.jsx(G,{to:"/premiumauctions",className:"inline-flex items-center gap-2 px-6 py-3 rounded-lg text-sm font-medium transition-colors",style:{border:`1px solid ${Z.borderStrong}`,color:Z.ink},children:"Explore auctions first"})]})]})})]}),c.jsx(vL,{})]})}const WL=8e3;function HL(){const[e,t]=p.useState(!1),[n,r]=p.useState(null),[s,o]=p.useState(null),i=p.useRef(null),a=p.useRef(null);return p.useEffect(()=>{function l(){const d=window.getSelection();if(!d||d.isCollapsed||d.toString().trim().length===0)return;const h=d.anchorNode,f=h&&h.nodeType===Node.TEXT_NODE?h.parentElement:h,m=f==null?void 0:f.closest("a[href]");if(!m)return;const g=d.getRangeAt(0).getBoundingClientRect(),b=Math.min(360,window.innerWidth-32);let y=g.left;y+b>window.innerWidth-16&&(y=window.innerWidth-b-16),y<16&&(y=16);let x=g.bottom+12,w="below";x+160>window.innerHeight&&(x=g.top-12,w="above"),o(m.href),r({left:y,top:x,placement:w}),t(!0),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>t(!1),WL)}function u(d){e&&i.current&&!i.current.contains(d.target)&&t(!1)}return document.addEventListener("copy",l),document.addEventListener("mousedown",u),()=>{document.removeEventListener("copy",l),document.removeEventListener("mousedown",u),a.current&&clearTimeout(a.current)}},[e]),n?c.jsxs("div",{ref:i,role:"status","aria-live":"polite",className:["fixed z-[999999] w-[360px] max-w-[calc(100vw-32px)]","rounded-2xl border border-[#E3E0D8] bg-[#FAF9F5] p-4 shadow-lg","transition-all duration-200 ease-out",e?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-2 pointer-events-none"].join(" "),style:{left:n.left,top:n.placement==="below"?n.top:void 0,bottom:n.placement==="above"?window.innerHeight-n.top:void 0},children:[c.jsx("div",{className:["absolute h-3.5 w-3.5 rotate-45 bg-[#FAF9F5]",n.placement==="below"?"-top-[7px] border-l border-t border-[#E3E0D8]":"-bottom-[7px] border-r border-b border-[#E3E0D8]"].join(" "),style:{left:24}}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full bg-[#E8EFFD]",children:c.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#3B6FE0",strokeWidth:"2","aria-hidden":"true",children:[c.jsx("rect",{x:"8",y:"2",width:"8",he
324ight:"4",rx:"1"}),c.jsx("path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2"})]})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("p",{className:"m-0 mb-1 text-sm font-semibold text-[#1F1D17]",children:"You copied a domain name"}),c.jsx("p",{className:"m-0 mb-3 text-[13px] leading-relaxed text-[#6B6859]",children:"Click the name instead of copy-pasting — it supports GoExpired at no extra cost to you."}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{type:"button",onClick:()=>{s&&window.open(s,"_blank","noopener,noreferrer"),t(!1)},className:"rounded-full border border-[#3B6FE0] bg-[#3B6FE0] px-4 py-1.5 text-[13px] font-medium text-white transition-colors hover:bg-[#2F5BC4]",children:"Go to auction"}),c.jsx("button",{type:"button",onClick:()=>t(!1),className:"rounded-full border border-[#E3E0D8] bg-[#FAF9F5] px-4 py-1.5 text-[13px] font-medium text-[#6B6859] transition-colors hover:bg-[#F0EEE5]",children:"Dismiss"})]})]})]})]}):null}const GL=()=>{const[e,t]=p.useState(null),[n,r]=p.useState(null),[s,o]=p.useState(!0),{toast:i}=Ha();return p.useEffect(()=>{let l=!0;const{data:{subscription:u}}=re.auth.onAuthStateChange((d,h)=>{var f;if(l){if(console.log("Auth state changed:",{event:d,hasSession:!!h,userId:(f=h==null?void 0:h.user)==null?void 0:f.id,timestamp:new Date().toISOString()}),r(h),t((h==null?void 0:h.user)??null),o(!1),d==="PASSWORD_RECOVERY"){window.location.pathname!=="/reset-password"&&(window.location.href="/reset-password");return}if(d==="SIGNED_OUT"){const m=window.location.pathname;m!=="/"&&m!=="/auth"&&sessionStorage.setItem("returnUrl",m),i({title:"Session expired",description:"Your session has expired. Please log in again.",variant:"destructive"}),setTimeout(()=>{window.location.pathname!=="/auth"&&window.location.pathname!=="/"&&(window.location.href="/auth")},1500)}if(d==="SIGNED_IN"){const m=sessionStorage.getItem("returnUrl");m&&(sessionStorage.removeItem("returnUrl"),setTimeout(()=>{window.location.href=m},500))}}});return re.auth.getSession().then(({data:{session:d},error:h})=>{l&&(h?(console.error("Error getting session:",h),r(null),t(null)):(r(d),t((d==null?void 0:d.user)??null)),o(!1))}).catch(d=>{console.error("Unexpected error getting session:",d),l&&(r(null),t(null),o(!1))}),()=>{l=!1,u.unsubscribe()}},[i]),{user:e,session:n,isLoading:s,handleLogout:async()=>{await re.auth.signOut(),window.location.href="/"},isAuthenticated:!!(n!=null&&n.user)}},qL="/favicon.ico?v=8",KL="/favicon.png?v=8",ZL="/favicon-gold-v1.png?v=1",Fy=e=>{Array.from(document.head.querySelectorAll('link[rel="icon"], link[rel="shortcut icon"]')).forEach(n=>{if(e)n.type="image/png",n.href=ZL;else{const r=n.rel==="shortcut icon"||n.getAttribute("sizes")==="any";n.type=r?"image/x-icon":"image/png",n.href=r?qL:KL}})},YL=e=>{p.useEffect(()=>(Fy(e),()=>{Fy(!1)}),[e])},QL=()=>{const{user:e}=GL(),{isPro:t}=Ln(e);return YL(!!e&&t),null},Uy="G-25NED9B8P3";let zy=!1;function XL(){if(zy||typeof window>"u")return;zy=!0,window.dataLayer=window.dataLayer||[],window.gtag=function(...n){window.dataLayer.push(n)},window.gtag("js",new Date),window.gtag("config",Uy,{send_page_view:!0});const e=document.createElement("script");e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${Uy}`,document.head.appendChild(e)}function JL(e){typeof window>"u"||!window.gtag||window.gtag("event","page_view",{page_path:e,page_location:window.location.href,page_title:document.title})}const e4=()=>{const e=Ut(),t=p.useRef(!0);return p.useEffect(()=>{if(t.current){t.current=!1;return}JL(e.pathname+e.search)},[e.pathname,e.search]),null};function t4(){const[e,t]=p.useState(null),[n,r]=p.useState(!1);return p.useEffect(()=>{re.auth.getSession().then(({data:o})=>{var i,a,l,u;t(((a=(i=o.session)==null?void 0:i.user)==null?void 0:a.id)??null),r(!!((u=(l=o.session)==null?void 0:l.user)!=null&&u.email_confirmed_at))});const{data:s}=re.auth.onAuthStateChange((o,i)=>{var a,l;t(((a=i==null?void 0:i.user)==null?void 0:a.id)??null),r(!!((l=i==null?void 0:i.user)!=null&&l.email_confirmed_at))});return()=>s.subscription.unsubscribe()},[]),p.useEffect(()=>{if(!e||!n)return;const s=`nl_auto_sub_${e}`;localStorage.getItem(s)||re.functions.invoke("newsletter-auto-subscribe",{body:{}}).then(({error:o})=>{o||localStorage.setItem(s,"1")}).catch(()=>{})},[e,n]),null}const n4={"/":{title:"GoExpired - Hand-Picked Expiring Domain Auctions",description:"Every day we scan thous
324ands of expiring domain auctions and hand-pick the few worth your time."},"/premiumauctions":{title:"Premium Auctions - Hand-Picked Domain Drops | GoExpired",description:"The shortlist domain investors check first: hand-picked premium expiring domain auctions, updated daily."},"/appraise-your-domain":{title:"Free Domain Appraisal Tool - Wholesale & Retail Value | GoExpired",description:"Get an instant AI domain appraisal with wholesale, retail and moonshot values, liquidity and GX Score."},"/pricehunter":{title:"Price Hunter - Compare Domain Registration Prices | GoExpired",description:"Compare registration, renewal and transfer prices across registrars and find the cheapest place to buy your domain."},"/blog":{title:"Domain Investing Blog - Guides & Strategies | GoExpired",description:"Practical guides on domain flipping, auction strategy and building a profitable domain portfolio."},"/top100dynadot":{title:"Top 100 Dynadot Expired Auctions | GoExpired",description:"From thousands of expired Dynadot domains down to 100 serious opportunities, refreshed every day."},"/top100backorders":{title:"Top 100 Backorder Auctions by Bids | GoExpired",description:"The 100 most contested backorder domain auctions right now, ranked by number of bids."},"/top100brandables":{title:"Top 100 Brandable Expiring Domains | GoExpired",description:"Short, pronounceable brandable domains expiring soon - curated down to the best 100 auctions."},"/top100alttlds":{title:"Top 100 Alt TLD Expired Auctions | GoExpired",description:"Expiring auctions on alternative TLDs - the 100 ending soonest, curated daily by GoExpired."},"/top100closeouts":{title:"Top 100 Domain Closeouts | GoExpired",description:"Fixed-price closeout domains worth a second look - the best 100, updated continuously."},"/top100drops":{title:"Top 100 Curated Domain Drops | GoExpired",description:"Freshly dropped domains still available to register, with live availability checks."},"/top100brandabledrops":{title:"Top 100 Brandable Domain Drops | GoExpired",description:"Brandable domains that just dropped and are still registerable, with live availability checks."},"/4letterdomains":{title:"4 Letter Domain Auctions (4L) | GoExpired",description:"Every expiring four-letter .com auction in one place, sorted and ready to bid."},"/endingsoon":{title:"Domain Auctions Ending Soon | GoExpired",description:"Curated expiring domain auctions closing within hours - last chance to place a bid."},"/brandables":{title:"Brandable Domain Auctions | GoExpired",description:"Hand-picked brandable domain auctions: short, memorable names built for startups."},"/namegenerator":{title:"Domain Name Generator - Available Brand Names | GoExpired",description:"Generate available brandable domain names in seconds and check availability instantly."},"/brandable-generator":{title:"Brandable Name Generator with Availability Check | GoExpired",description:"Build brandable .com names from real word fragments and check Dynadot availability live."},"/domainertools":{title:"Domainer Tools - Essential Tools for Domain Investors | GoExpired",description:"A curated library of the tools domain investors actually use for research, valuation and sales."},"/gxpro":{title:"GX PRO Membership - Full Access to Every Auction List | GoExpired",description:"Unlock all premium auctions, unlimited appraisals, filters and watchlist alerts with GX PRO."},"/public-pricing":{title:"Pricing - GX PRO Plans | GoExpired",description:"Simple pricing for domain investors: free access plus GX PRO for full auction data and tools."},"/submit-your-domain":{title:"Submit Your Domain for Free Exposure | GoExpired",description:"List a domain priced at $99 or less and get it in front of thousands of domain investors."},"/newsletter":{title:"The GoExpired Newsletter - Daily Premium Domain Picks",description:"A daily email with hand-picked premium domain auctions and drops worth your attention."},"/stay-in-touch":{title:"Stay in Touch with GoExpired",description:"Join the GoExpired list and get hand-picked expiring domain auctions in your inbox."},"/about":{title:"About GoExpired - Who Curates the Lists",description:"GoExpired
324is built by a domain investor to cut thousands of daily expiring auctions down to a usable shortlist."},"/contact":{title:"Contact GoExpired",description:"Questions, feedback or partnership ideas? Get in touch with the GoExpired team."},"/faq":{title:"FAQ - How GoExpired Works",description:"Answers about auction sources, curation, GX PRO membership and the domain appraisal tool."},"/gname-auctions":{title:"Gname Live Domain Auctions | GoExpired",description:"Live Gname auctions with bids and end times, refreshed throughout the day."},"/todays-picks":{title:"Today's Domain Picks | GoExpired",description:"The domains we would bid on today, hand-picked from thousands of expiring auctions."}};function r4(){const{pathname:e}=Ut(),t=e.length>1?e.replace(/\/+$/,""):"/",n=n4[t];return n?c.jsx(Ik,{title:n.title,description:n.description,path:t}):null}const By="gx_promo_popup_session",Wc="gx_promo_popup_daily",s4=["/auth","/reset-password","/check-email","/confirm-email","/confirm-account","/complete-upgrade","/thank-you","/newsletter-guide","/admin"],Vy=e=>{const t=e.trim().toLowerCase();if(!t)return"";const n=t.startsWith("/")?t:`/${t}`;return n.length>1&&n.endsWith("/")?n.slice(0,-1):n},lf=(e,t)=>{const n=Vy(e);return t.some(r=>{const s=Vy(r);return s?s==="/"?n==="/":n===s||n.startsWith(`${s}/`):!1})},Uh=(e,t)=>{try{const n=e==null?void 0:e.getItem(t);if(!n)return 0;const r=JSON.parse(n);return typeof(r==null?void 0:r.count)!="number"||t===Wc&&Date.now()-r.ts>24*60*60*1e3?0:r.count}catch{return 0}},Wy=(e,t)=>{try{const n=Uh(e,t),r=(()=>{try{const o=e==null?void 0:e.getItem(t);return o?JSON.parse(o).ts:Date.now()}catch{return Date.now()}})(),s=t===Wc&&n>0?r:Date.now();e==null||e.setItem(t,JSON.stringify({count:n+1,ts:s}))}catch{}},o4=e=>{if(Array.isArray(e))return e.filter(t=>typeof t=="string");if(typeof e=="string")try{const t=JSON.parse(e);return Array.isArray(t)?t.filter(n=>typeof n=="string"):[]}catch{return[]}return[]},i4=(e,t)=>{const n=Ut(),{currentTier:r,loading:s}=Ln(e),[o,i]=p.useState(null),[a,l]=p.useState(!1),[u,d]=p.useState(!1),h=(o==null?void 0:o.cta_mode)==="ebook";p.useEffect(()=>{let y=!0;return re.from("promo_popup_config").select("*").limit(1).maybeSingle().then(({data:x,error:w})=>{!y||w||!x||i({...x,bullets:o4(x.bullets)})}),()=>{y=!1}},[]);const f=e?r:"guest",m=lf(n.pathname,s4);p.useEffect(()=>{m&&l(!1)},[m]);const v=p.useMemo(()=>{if(m||!o||!o.enabled)return!1;if(h){if(e!=null&&e.email_confirmed_at)return!1;try{if(localStorage.getItem("gx_ebook_signed_up")==="true")return!1;const y=Number(localStorage.getItem("gx_ebook_dismissed_at"));if(y&&Date.now()-y<7*864e5)return!1}catch{}}return!(!t||e&&s||new Date(o.deadline_at).getTime()<=Date.now()||!o.target_tiers.includes(f)||lf(n.pathname,o.exclude_paths)||o.page_mode==="include"&&!lf(n.pathname,o.include_paths))},[m,o,t,e==null?void 0:e.id,e==null?void 0:e.email_confirmed_at,s,f,n.pathname,h]);p.useEffect(()=>{if(!v||!o||u||a)return;const y=Uh(typeof window<"u"?window.sessionStorage:void 0,By),x=Uh(typeof window<"u"?window.localStorage:void 0,Wc);if(y>=o.max_per_session||x>=o.max_per_day)return;let w=!1,_=!1;const k=()=>{if(!_){if(h){const S=document.documentElement.scrollHeight-window.innerHeight;if(!w||S>0&&window.scrollY/S<.35||document.querySelector('[role="dialog"], [role="alertdialog"]'))return}_=!0,Wy(window.sessionStorage,By),Wy(window.localStorage,Wc),d(!0),l(!0)}},E=setTimeout(()=>{w=!0,k()},h?2e4:400);return h&&window.addEventListener("scroll",k,{passive:!0}),()=>{clearTimeout(E),window.removeEventListener("scroll",k)}},[v,o,u,a,h]);const g=p.useCallback(()=>{if(l(!1),h)try{localStorage.setItem("gx_ebook_dismissed_at",String(Date.now()))}catch{}},[h]),b=p.useCallback(()=>l(!0),[]);return{config:o,isOpen:a&&!m,close:g,open:b,eligible:v,audienceTier:f}},ye={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",border:"#E8E5DD",blue:"#2563EB",blueDark:"#1D4FD8",gold:"#B7912F",goldSoft:"#FBF4DE"},a4=e=>String(e).padStart(2,"0"),l4=e=>{const[t,n]=p.useState(()=>Date.now());return p.useEffect(()=>{const r=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(r)},[]),p.useMemo(()=>{const r=Math.max(0,new Date(e).getTime()-t),s=Math.floor(r/1e3);return{expired:r<=0,days:Math.floor(s/86400),hours:Math.floor(s%86400/3600),minutes:Math.floor(s%3600/60),seconds:s%60}},[e,t])},c4=({config:e,user:t,onClose:n,previewMode:r=!1})=>{const s=Os(),o=l4(e.deadline_at),[i,a]=p.useState(Math.max(0,e.close_delay_seconds)),[l,u]=p.useState(!1);p.useEffect(()=>{if(i<=0)return;const v=setInterval(()=>{a(g=>g>0?g-1:0)},1e3);return()=>clearInterval(v)},[i]);const d=i<=0;p.useEffect(()=>{const v=b=>{b.key==="Escape"&&d&&n()};document.addEventListener("keydown",v);const g=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",v),document.body.style.overflow=g}},[d,n]);const h=async()=>
324{if(r)return;if(e.cta_mode==="url"){n(),e.cta_url.startsWith("http")?window.open(e.cta_url,"_blank","noopener"):s(e.cta_url);return}if(!t){n();try{localStorage.setItem("pendingTier","pro"),e.promo_code&&localStorage.setItem("pendingPromoCode",e.promo_code)}catch{}s(`/auth?returnUrl=${encodeURIComponent("/gxpro")}`);return}u(!0);const v=window.open("","_blank");try{const{data:g,error:b}=await re.functions.invoke("create-checkout",{body:e.promo_code?{tier:"pro",promoCode:e.promo_code}:{tier:"pro"}});if(b)throw b;if(g!=null&&g.url)v&&!v.closed?v.location.href=g.url:window.location.href=g.url,n();else throw new Error("No checkout URL returned")}catch(g){v&&!v.closed&&v.close(),console.error("Promo checkout error:",g),v2.error("Could not start checkout. Please try again from the pricing page."),n(),s("/gxpro")}finally{u(!1)}},f=[{label:"Days",value:o.days},{label:"Hours",value:o.hours},{label:"Min",value:o.minutes},{label:"Sec",value:o.seconds}],m=c.jsxs("div",{className:"fixed inset-0 z-[100] flex items-start justify-center overflow-y-auto p-4 sm:items-center",role:"dialog","aria-modal":"true","aria-labelledby":"gx-promo-headline",children:[c.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-[2px]",onClick:()=>d&&n()}),c.jsxs("div",{className:"relative my-auto w-full max-w-lg overflow-hidden rounded-2xl shadow-2xl animate-in fade-in zoom-in-95 duration-200",style:{backgroundColor:ye.surface,border:`1px solid ${ye.border}`},children:[c.jsx("div",{className:"absolute right-3 top-3 z-10",children:d?c.jsx("button",{onClick:n,"aria-label":"Close",className:"flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:bg-black/5",style:{color:ye.inkMuted},children:c.jsx(Es,{className:"h-4 w-4"})}):c.jsxs("div",{className:"flex h-8 items-center gap-1.5 rounded-full px-3 text-xs font-medium tabular-nums",style:{backgroundColor:ye.bg,color:ye.inkMuted,border:`1px solid ${ye.border}`},"aria-live":"polite",children:["Close in ",i]})}),c.jsxs("div",{className:"px-6 pt-7 pb-5 text-center",style:{background:`linear-gradient(180deg, ${ye.bg} 0%, ${ye.surface} 100%)`},children:[c.jsx("img",{src:Fh.url,alt:"GoExpired",className:"mx-auto mb-3 h-10 w-auto",loading:"lazy"}),e.badge_text&&c.jsxs("div",{className:"mx-auto mb-3 inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-[11px] font-semibold uppercase tracking-wider",style:{backgroundColor:ye.goldSoft,color:ye.gold},children:[e.cta_mode==="url"?c.jsx(sb,{className:"h-3.5 w-3.5"}):c.jsx(Ue,{className:"h-3.5 w-3.5"}),e.badge_text]}),c.jsx("h2",{id:"gx-promo-headline",className:"text-3xl leading-tight tracking-tight sm:text-4xl",style:{fontFamily:"Cormorant, serif",fontWeight:600,color:ye.ink},children:e.headline}),e.subheadline&&c.jsx("p",{className:"mx-auto mt-2 max-w-sm text-sm sm:text-base",style:{color:ye.inkMuted},children:e.subheadline})]}),e.countdown_enabled&&!o.expired&&c.jsxs("div",{className:"px-6 pb-4",children:[c.jsx("p",{className:"mb-2 text-center text-[11px] font-semibold uppercase tracking-[0.18em]",style:{color:ye.inkMuted},children:"Offer ends in"}),c.jsx("div",{className:"grid grid-cols-4 gap-2",children:f.map(v=>c.jsxs("div",{className:"rounded-xl py-2 text-center",style:{backgroundColor:ye.bg,border:`1px solid ${ye.border}`},children:[c.jsx("div",{className:"text-xl font-bold tabular-nums sm:text-2xl",style:{color:ye.ink},children:a4(v.value)}),c.jsx("div",{className:"text-[10px] uppercase tracking-wider",style:{color:ye.inkMuted},children:v.label})]},v.label))})]}),c.jsxs("div",{className:"px-6 pb-2",children:[c.jsxs("div",{className:"flex flex-col items-center justify-center gap-1 rounded-xl px-4 py-3 text-center sm:flex-row sm:items-baseline sm:gap-2",style:{backgroundColor:"#EEF2FF"},children:[c.jsx("span",{className:"whitespace-nowrap text-3xl font-bold",style:{color:ye.blue},children:e.price_display}),c.jsx("span",{className:"text-sm",style:{color:ye.inkMuted},children:e.price_caption?e.price_caption:`first month, then ${e.regular_price_display}`})]}),e.body_text&&c.jsx("p",{className:"mt-4 text-sm leading-relaxed",style:{color:ye.inkMuted},children:e.body_text}),e.bullets.length>0&&c.jsx("ul",{className:"mt-4 space-y-2",children:e.bullets.map((v,g)=>c.jsxs("li",{className:"flex items-start gap-2 text-sm",style:{color:ye.ink},children:[c.jsx(wu,{className:"mt-0.5 h-4 w-4 shrink-0",style:{color:ye.blue}}),c.jsx("span",{children:v})]},g))}),e.anchor_text&&c.jsx("p",{className:"mt-4 rounded-xl px-4 py-3 text-sm italic",style:{backgroundColor:ye.bg,color:ye.ink,border:`1px solid ${ye.border}`},children:e.anchor_text})]}),c.jsxs("div",{className:"px-6 pb-6 pt-4",children:[c.jsxs("button",{onClick:h,disabled:l,className:"flex w-full items-center justify-center gap-2 rounded-xl px-5 py-3.5 text-base font-semibold text-white transition-colors disabled:opacity-70",style:{backgroundColor:ye.blue},onMouseEnter:v=>v.currentTarget.style.backgroundColor=ye.blueDark,onMouseLeave:v=>v.currentTarget.style.backgroundColor=ye.blue,children:[l&&c.jsx(tb,{className:"h-4 w-4 animate-spin"}),e.cta_label]}),e.promo_code&&c.jsxs("p",{className:"mt-3 text-center text-sm",style:{color:ye.inkMuted},children:["Code"," ",c.jsx("span",{className:"font-semibold tracking-wide",style:{color:ye.ink},children:e.promo_code}
324)," ","is applied automatically at checkout"]}),c.jsx("button",{onClick:()=>d&&n(),disabled:!d,className:"mx-auto mt-3 block text-xs underline-offset-2 transition-opacity hover:underline disabled:opacity-40",style:{color:ye.inkMuted},children:e.dismiss_label}),e.fine_print&&c.jsx("p",{className:"mt-4 text-center text-[11px] leading-relaxed",style:{color:ye.inkMuted},children:e.fine_print})]})]})]});return typeof document>"u"?null:ei.createPortal(m,document.body)};var pe;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},e.getValidEnumValues=s=>{const o=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),i={};for(const a of o)i[a]=s[a];return e.objectValues(i)},e.objectValues=s=>e.objectKeys(s).map(function(o){return s[o]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},e.find=(s,o)=>{for(const i of s)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(pe||(pe={}));var zh;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(zh||(zh={}));const z=pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wr=e=>{switch(typeof e){case"undefined":return z.undefined;case"string":return z.string;case"number":return isNaN(e)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(e)?z.array:e===null?z.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?z.promise:typeof Map<"u"&&e instanceof Map?z.map:typeof Set<"u"&&e instanceof Set?z.set:typeof Date<"u"&&e instanceof Date?z.date:z.object;default:return z.unknown}}
vendor: 4,628 bytes, line 324
324,D=pe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),u4=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Dt extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;l<i.path.length;){const u=i.path[l];l===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(i))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return s(this),r}static assert(t){if(!(t instanceof Dt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,pe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Dt.create=e=>new Dt(e);const Ko=(e,t)=>{let n;switch(e.code){case D.invalid_type:e.received===z.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case D.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,pe.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:n=`Unrecognized key(s) in object: ${pe.joinValues(e.keys,", ")}`;break;case D.invalid_union:n="Invalid input";break;case D.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${pe.joinValues(e.options)}`;break;case D.invalid_enum_value:n=`Invalid enum value. Expected ${pe.joinValues(e.options)}, received '${e.received}'`;break;case D.invalid_arguments:n="Invalid function arguments";break;case D.invalid_return_type:n="Invalid function return type";break;case D.invalid_date:n="Invalid date";break;case D.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:pe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case D.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case D.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case D.custom:n="Invalid input";break;case D.invalid_intersection_types:n="Intersection results could not be merged";break;case D.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case D.not_finite:n="Number must be finite";break;default:n=t.defaultError,pe.assertNever(e)}return{message:n}};let Lk=Ko;function d4(e){Lk=e}function Hc(){return Lk}const Gc=e=>
vendor: 7,022 bytes, line 324
324{const{data:t,path:n,errorMaps:r,issueData:s}=e,o=[...n,...s.path||[]],i={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(i,{data:t,defaultError:a}).message;return{...s,path:o,message:a}},f4=[];function F(e,t){const n=Hc(),r=Gc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ko?void 0:Ko].filter(s=>!!s)});e.common.issues.push(r)}class ct{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return J;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const o=await s.key,i=await s.value;r.push({key:o,value:i})}return ct.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:o,value:i}=s;if(o.status==="aborted"||i.status==="aborted")return J;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[o.value]=i.value)}return{status:t.value,value:r}}}const J=Object.freeze({status:"aborted"}),ho=e=>({status:"dirty",value:e}),vt=e=>({status:"valid",value:e}),Bh=e=>e.status==="aborted",Vh=e=>e.status==="dirty",ka=e=>e.status==="valid",Ea=e=>typeof Promise<"u"&&e instanceof Promise;function qc(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function $k(e,t,n,r,s){if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Y;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Y||(Y={}));var Oi,Mi;class On{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Hy=(e,t)=>{if(ka(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Dt(e.common.issues);return this._error=n,this._error}}};function oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(i,a)=>{var l,u;const{message:d}=e;return i.code==="invalid_enum_value"?{message:d??a.defaultError}:typeof a.data>"u"?{message:(l=d??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(u=d??n)!==null&&u!==void 0?u:a.defaultError}},description:s}}class ce{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return wr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ct,ctx:{common:t.parent.common,data:t.data,parsedType:wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ea(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const s={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wr(t)},o=this._parseSync({data:t,path:s.path,parent:s});return Hy(s,o)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wr(t)},s=this._parse({data:t,path:r.path,parent:r}),o=await(Ea(s)?s:Promise.resolve(s));return Hy(r,o)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,o)=>{const i=t(s),a=()=>o.addIssue({code:D.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new vn({schema:this,typeName:Q.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return An.create(this,this._def)}nullable(){return Kr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return hn.create(this,this._def)}promise(){return Yo.create(this,this._def)}or(t){return Ta.create([this,t],this._def)}and(t){return Pa.create(this,t,this._def)}transform(t){return new vn({...oe(this._def),schema:this,typeName:Q.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Ma({...oe(this._def),innerType:this,defaultValue:n,typeName:Q.ZodDefault})}brand(){return new Hm({typeName:Q.ZodBranded,type:this,...oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Da({...oe(this._def),innerType:this,catchValue:n,typeName:Q.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ja.create(this,t)}readonly(){return Ia.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const h4=/^c[^\s-]{8,}
vendor: 40,538 bytes, line 324
324$/i,p4=/^[0-9a-z]+$/,m4=/^[0-9A-HJKMNP-TV-Z]{26}$/,g4=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,v4=/^[a-z0-9_-]{21}$/i,y4=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,x4=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,w4="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let cf;const b4=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_4=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,k4=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Fk="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",E4=new RegExp(`^${Fk}$`);function Uk(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function S4(e){return new RegExp(`^${Uk(e)}$`)}function zk(e){let t=`${Fk}T${Uk(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function C4(e,t){return!!((t==="v4"||!t)&&b4.test(e)||(t==="v6"||!t)&&_4.test(e))}class un extends ce{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==z.string){const o=this._getOrReturnCtx(t);return F(o,{code:D.invalid_type,expected:z.string,received:o.parsedType}),J}const r=new ct;let s;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:D.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:D.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=t.data.length>o.value,a=t.data.length<o.value;(i||a)&&(s=this._getOrReturnCtx(t,s),i?F(s,{code:D.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&F(s,{code:D.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")x4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"email",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")cf||(cf=new RegExp(w4,"u")),cf.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"emoji",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")g4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"uuid",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")v4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"nanoid",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")h4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"cuid",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")p4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"cuid2",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")m4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"ulid",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),F(s,{validation:"url",code:D.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"regex",code:D.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?zk(o).test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?E4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?S4(o).test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?y4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"duration",code:D.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?C4(t.data,o.version)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"ip",code:D.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?k4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"base64",code:D.invalid_string,message:o.message}),r.dirty()):pe.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:D.invalid_string,...Y.errToObj(r)})}_addCheck(t){return new un({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Y.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Y.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Y.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Y.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Y.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Y.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Y.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Y.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Y.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Y.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...Y.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Y.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Y.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Y.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Y.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Y.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Y.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Y.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Y.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Y.errToObj(n)})}nonempty(t){return this.min(1,Y.errToObj(t))}trim(){return new un({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new un({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new un({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}un.create=e=>{var t;return new un({checks:[],typeName:Q.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};function j4(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,o=parseInt(e.toFixed(s).replace(".","")),i=parseInt(t.toFixed(s).replace(".",""));return o%i/Math.pow(10,s)}class Hr extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==z.number){const o=this._getOrReturnCtx(t);return F(o,{code:D.invalid_type,expected:z.number,received:o.parsedType}),J}let r;const s=new ct;for(const o of this._def.checks)o.kind==="int"?pe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),F(r,{code:D.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?j4(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),F(r,{code:D.not_finite,message:o.message}),s.dirty()):pe.assertNever(o);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Y.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Y.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Y.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Y.toString(n))}setLimit(t,n,r,s){return new Hr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Y.toString(s)}]})}_addCheck(t){return new Hr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Y.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Y.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Y.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Y.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Y.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Y.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&pe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Hr.create=e=>new Hr({checks:[],typeName:Q.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Gr extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==z.bigint){const o=this._getOrReturnCtx(t);return F(o,{code:D.invalid_type,expected:z.bigint,received:o.parsedType}),J}let r;const s=new ct;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):pe.assertNever(o);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Y.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Y.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Y.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Y.toString(n))}setLimit(t,n,r,s){return new Gr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Y.toString(s)}]})}_addCheck(t){return new Gr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Y.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Y.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Gr.create=e=>{var t;return new Gr({checks:[],typeName:Q.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};class Sa extends ce{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==z.boolean){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:z.boolean,received:r.parsedType}),J}return vt(t.data)}}Sa.create=e=>new Sa({typeName:Q.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class js extends ce{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==z.date){const o=this._getOrReturnCtx(t);return F(o,{code:D.invalid_type,expected:z.date,received:o.parsedType}),J}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return F(o,{code:D.invalid_date}),J}const r=new ct;let s;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:D.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:D.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):pe.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new js({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Y.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Y.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}js.create=e=>new js({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Q.ZodDate,...oe(e)});class Kc extends ce{_parse(t){if(this._getType(t)!==z.symbol){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:z.symbol,received:r.parsedType}),J}return vt(t.data)}}Kc.create=e=>new Kc({typeName:Q.ZodSymbol,...oe(e)});class Ca extends ce{_parse(t){if(this._getType(t)!==z.undefined){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:z.undefined,received:r.parsedType}),J}return vt(t.data)}}Ca.create=e=>new Ca({typeName:Q.ZodUndefined,...oe(e)});class ja extends ce{_parse(t){if(this._getType(t)!==z.null){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:z.null,received:r.parsedType}),J}return vt(t.data)}}ja.create=e=>new ja({typeName:Q.ZodNull,...oe(e)});class Zo extends ce{constructor(){super(...arguments),this._any=!0}_parse(t){return vt(t.data)}}Zo.create=e=>new Zo({typeName:Q.ZodAny,...oe(e)});class ys extends ce{constructor(){super(...arguments),this._unknown=!0}_parse(t){return vt(t.data)}}ys.create=e=>new ys({typeName:Q.ZodUnknown,...oe(e)});class nr extends ce{_parse(t){const n=this._getOrReturnCtx(t);return F(n,{code:D.invalid_type,expected:z.never,received:n.parsedType}),J}}nr.create=e=>new nr({typeName:Q.ZodNever,...oe(e)});class Zc extends ce{_parse(t){if(this._getType(t)!==z.undefined){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:z.void,received:r.parsedType}),J}return vt(t.data)}}Zc.create=e=>new Zc({typeName:Q.ZodVoid,...oe(e)});class hn extends ce{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==z.array)return F(n,{code:D.invalid_type,expected:z.array,received:n.parsedType}),J;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(i||a)&&(F(n,{code:i?D.too_big:D.too_small,minimum:a?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(F(n,{code:D.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(F(n,{code:D.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>s.type._parseAsync(new On(n,i,n.path,a)))).then(i=>ct.mergeArray(r,i));const o=[...n.data].map((i,a)=>s.type._parseSync(new On(n,i,n.path,a)));return ct.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new hn({...this._def,minLength:{value:t,message:Y.toString(n)}})}max(t,n){return new hn({...this._def,maxLength:{value:t,message:Y.toString(n)}})}length(t,n){return new hn({...this._def,exactLength:{value:t,message:Y.toString(n)}})}nonempty(t){return this.min(1,t)}}hn.create=(e,t)=>new hn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Q.ZodArray,...oe(t)});function Xs(e){if(e instanceof Oe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=An.create(Xs(r))}return new Oe({...e._def,shape:()=>t})}else return e instanceof hn?new hn({...e._def,type:Xs(e.element)}):e instanceof An?An.create(Xs(e.unwrap())):e instanceof Kr?Kr.create(Xs(e.unwrap())):e instanceof Mn?Mn.create(e.items.map(t=>Xs(t))):e}class Oe extends ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=pe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==z.object){const u=this._getOrReturnCtx(t);return F(u,{code:D.invalid_type,expected:z.object,received:u.parsedType}),J}const{status:r,ctx:s}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof nr&&this._def.unknownKeys==="strip"))for(const u in s.data)i.includes(u)||a.push(u);const l=[];for(const u of i){const d=o[u],h=s.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new On(s,h,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof nr){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of a)l.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(u==="strict")a.length>0&&(F(s,{code:D.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of a){const h=s.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new On(s,h,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of l){const h=await d.key,f=await d.value;u.push({key:h,value:f,alwaysSet:d.alwaysSet})}return u}).then(u=>ct.mergeObjectSync(r,u)):ct.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Y.errToObj,new Oe({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,o,i,a;const l=(i=(o=(s=this._def).errorMap)===null||o===void 0?void 0:o.call(s,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=Y.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Oe({...this._def,unknownKeys:"strip"})}passthrough(){return new Oe({...this._def,unknownKeys:"passthrough"})}extend(t){return new Oe({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Oe({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Q.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Oe({...this._def,catchall:t})}pick(t){const n={};return pe.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Oe({...this._def,shape:()=>n})}omit(t){const n={};return pe.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Oe({...this._def,shape:()=>n})}deepPartial(){return Xs(this)}partial(t){const n={};return pe.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}),new Oe({...this._def,shape:()=>n})}required(t){const n={};return pe.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof An;)o=o._def.innerType;n[r]=o}}),new Oe({...this._def,shape:()=>n})}keyof(){return Bk(pe.objectKeys(this.shape))}}Oe.create=(e,t)=>new Oe({shape:()=>e,unknownKeys:"strip",catchall:nr.create(),typeName:Q.ZodObject,...oe(t)});Oe.strictCreate=(e,t)=>new Oe({shape:()=>e,unknownKeys:"strict",catchall:nr.create(),typeName:Q.ZodObject,...oe(t)});Oe.lazycreate=(e,t)=>new Oe({shape:e,unknownKeys:"strip",catchall:nr.create(),typeName:Q.ZodObject,...oe(t)});class Ta extends ce{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=o.map(a=>new Dt(a.ctx.common.issues));return F(n,{code:D.invalid_union,unionErrors:i}),J}if(n.common.async)return Promise.all(r.map(async o=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let o;const i=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(l=>new Dt(l));return F(n,{code:D.invalid_union,unionErrors:a}),J}}get options(){return this._def.options}}Ta.create=(e,t)=>new Ta({options:e,typeName:Q.ZodUnion,...oe(t)});const zn=e=>e instanceof Aa?zn(e.schema):e instanceof vn?zn(e.innerType()):e instanceof Ra?[e.value]:e instanceof qr?e.options:e instanceof Oa?pe.objectValues(e.enum):e instanceof Ma?zn(e._def.innerType):e instanceof Ca?[void 0]:e instanceof ja?[null]:e instanceof An?[void 0,...zn(e.unwrap())]:e instanceof Kr?[null,...zn(e.unwrap())]:e instanceof Hm||e instanceof Ia?zn(e.unwrap()):e instanceof Da?zn(e._def.innerType):[];class Yu extends ce{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==z.object)return F(n,{code:D.invalid_type,expected:z.object,received:n.parsedType}),J;const r=this.discriminator,s=n.data[r],o=this.optionsMap.get(s);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(F(n,{code:D.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const s=new Map;for(const o of n){const i=zn(o.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,o)}}return new Yu({typeName:Q.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...oe(r)})}}function Wh(e,t){const n=wr(e),r=wr(t);if(e===t)return{valid:!0,data:e};if(n===z.object&&r===z.object){const s=pe.objectKeys(t),o=pe.objectKeys(e).filter(a=>s.indexOf(a)!==-1),i={...e,...t};for(const a of o){const l=Wh(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===z.array&&r===z.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let o=0;o<e.length;o++){const i=e[o],a=t[o],l=Wh(i,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===z.date&&r===z.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Pa extends ce{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(o,i)=>{if(Bh(o)||Bh(i))return J;const a=Wh(o.value,i.value);return a.valid?((Vh(o)||Vh(i))&&n.dirty(),{status:n.value,value:a.data}):(F(r,{code:D.invalid_intersection_types}),J)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>s(o,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Pa.create=(e,t,n)=>new Pa({left:e,right:t,typeName:Q.ZodIntersection,...oe(n)});class Mn extends ce{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==z.array)return F(r,{code:D.invalid_type,expected:z.array,received:r.parsedType}),J;if(r.data.length<this._def.items.length)return F(r,{code:D.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&r.data.length>this._def.items.length&&(F(r,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new On(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>ct.mergeArray(n,i)):ct.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Mn({...this._def,rest:t})}}Mn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Mn({items:e,typeName:Q.ZodTuple,rest:null,...oe(t)})};class Na extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==z.object)return F(r,{code:D.invalid_type,expected:z.object,received:r.parsedType}),J;const s=[],o=this._def.keyType,i=this._def.valueType;for(const a in r.data)s.push({key:o._parse(new On(r,a,r.path,a)),value:i._parse(new On(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ct.mergeObjectAsync(n,s):ct.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ce?new Na({keyType:t,valueType:n,typeName:Q.ZodRecord,...oe(r)}):new Na({keyType:un.create(),valueType:t,typeName:Q.ZodRecord,...oe(n)})}}class Yc extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==z.map)return F(r,{code:D.invalid_type,expected:z.map,received:r.parsedType}),J;const s=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([a,l],u)=>({key:s._parse(new On(r,a,r.path,[u,"key"])),value:o._parse(new On(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return J;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return J;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}}Yc.create=(e,t,n)=>new Yc({valueType:t,keyType:e,typeName:Q.ZodMap,...oe(n)});class Ts extends ce{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==z.set)return F(r,{code:D.invalid_type,expected:z.set,received:r.parsedType}),J;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(F(r,{code:D.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(F(r,{code:D.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const o=this._def.valueType;function i(l){const u=new Set;for(const d of l){if(d.status==="aborted")return J;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>o._parse(new On(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new Ts({...this._def,minSize:{value:t,message:Y.toString(n)}})}max(t,n){return new Ts({...this._def,maxSize:{value:t,message:Y.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ts.create=(e,t)=>new Ts({valueType:e,minSize:null,maxSize:null,typeName:Q.ZodSet,...oe(t)});class Co extends ce{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==z.function)return F(n,{code:D.invalid_type,expected:z.function,received:n.parsedType}),J;function r(a,l){return Gc({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Hc(),Ko].filter(u=>!!u),issueData:{code:D.invalid_arguments,argumentsError:l}})}function s(a,l){return Gc({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Hc(),Ko].filter(u=>!!u),issueData:{code:D.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Yo){const a=this;return vt(async function(...l){const u=new Dt([]),d=await a._def.args.parseAsync(l,o).catch(m=>{throw u.addIssue(r(l,m)),u}),h=await Reflect.apply(i,this,d);return await a._def.returns._def.type.parseAsync(h,o).catch(m=>{throw u.addIssue(s(h,m)),u})})}else{const a=this;return vt(function(...l){const u=a._def.args.safeParse(l,o);if(!u.success)throw new Dt([r(l,u.error)]);const d=Reflect.apply(i,this,u.data),h=a._def.returns.safeParse(d,o);if(!h.success)throw new Dt([s(d,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Co({...this._def,args:Mn.create(t).rest(ys.create())})}returns(t){return new Co({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Co({args:t||Mn.create([]).rest(ys.create()),returns:n||ys.create(),typeName:Q.ZodFunction,...oe(r)})}}class Aa extends ce{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Aa.create=(e,t)=>new Aa({getter:e,typeName:Q.ZodLazy,...oe(t)});class Ra extends ce{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return F(n,{received:n.data,code:D.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ra.create=(e,t)=>new Ra({value:e,typeName:Q.ZodLiteral,...oe(t)});function Bk(e,t){return new qr({values:e,typeName:Q.ZodEnum,...oe(t)})}class qr extends ce{constructor(){super(...arguments),Oi.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return F(n,{expected:pe.joinValues(r),received:n.parsedType,code:D.invalid_type}),J}if(qc(this,Oi)||$k(this,Oi,new Set(this._def.values)),!qc(this,Oi).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return F(n,{received:n.data,code:D.invalid_enum_value,options:r}),J}return vt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return qr.create(t,{...this._def,...n})}exclude(t,n=this._def){return qr.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Oi=new WeakMap;qr.create=Bk;class Oa extends ce{constructor(){super(...arguments),Mi.set(this,void 0)}_parse(t){const n=pe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==z.string&&r.parsedType!==z.number){const s=pe.objectValues(n);return F(r,{expected:pe.joinValues(s),received:r.parsedType,code:D.invalid_type}),J}if(qc(this,Mi)||$k(this,Mi,new Set(pe.getValidEnumValues(this._def.values))),!qc(this,Mi).has(t.data)){const s=pe.objectValues(n);return F(r,{received:r.data,code:D.invalid_enum_value,options:s}),J}return vt(t.data)}get enum(){return this._def.values}}Mi=new WeakMap;Oa.create=(e,t)=>new Oa({values:e,typeName:Q.ZodNativeEnum,...oe(t)});class Yo extends ce{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==z.promise&&n.common.async===!1)return F(n,{code:D.invalid_type,expected:z.promise,received:n.parsedType}),J;const r=n.parsedType===z.promise?n.data:Promise.resolve(n.data);return vt(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Yo.create=(e,t)=>new Yo({type:e,typeName:Q.ZodPromise,...oe(t)});class vn extends ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,o={addIssue:i=>{F(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const i=s.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return J;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?J:l.status==="dirty"||n.value==="dirty"?ho(l.value):l});{if(n.value==="aborted")return J;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?J:a.status==="dirty"||n.value==="dirty"?ho(a.value):a}}if(s.type==="refinement"){const i=a=>{const l=s.refinement(a,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ka(i))return i;const a=s.transform(i.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>ka(i)?Promise.resolve(s.transform(i.value,o)).then(a=>({status:n.value,value:a})):i);pe.assertNever(s)}}vn.create=(e,t,n)=>new vn({schema:e,typeName:Q.ZodEffects,effect:t,...oe(n)});vn.createWithPreprocess=(e,t,n)=>new vn({schema:t,effect:{type:"preprocess",transform:e},typeName:Q.ZodEffects,...oe(n)});class An extends ce{_parse(t){return this._getType(t)===z.undefined?vt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}An.create=(e,t)=>new An({innerType:e,typeName:Q.ZodOptional,...oe(t)});class Kr extends ce{_parse(t){return this._getType(t)===z.null?vt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Kr.create=(e,t)=>new Kr({innerType:e,typeName:Q.ZodNullable,...oe(t)});class Ma extends ce{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===z.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ma.create=(e,t)=>new Ma({innerType:e,typeName:Q.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...oe(t)});class Da extends ce{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ea(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Dt(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Dt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Da.create=(e,t)=>new Da({innerType:e,typeName:Q.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...oe(t)});class Qc extends ce{_parse(t){if(this._getType(t)!==z.nan){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:z.nan,received:r.parsedType}),J}return{status:"valid",value:t.data}}}Qc.create=e=>new Qc({typeName:Q.ZodNaN,...oe(e)});const T4=Symbol("zod_brand");class Hm extends ce{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ja extends ce{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?J:o.status==="dirty"?(n.dirty(),ho(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?J:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new Ja({in:t,out:n,typeName:Q.ZodPipeline})}}class Ia extends ce{_parse(t){const n=this._def.innerType._parse(t),r=s=>(ka(s)&&(s.value=Object.freeze(s.value)),s);return Ea(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Ia.create=(e,t)=>
324new Ia({innerType:e,typeName:Q.ZodReadonly,...oe(t)});function Vk(e,t={},n){return e?Zo.create().superRefine((r,s)=>{var o,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(o=a.fatal)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:!0,u=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...u,fatal:l})}}):Zo.create()}const P4={object:Oe.lazycreate};var Q;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Q||(Q={}));const N4=(e,t={message:`Input not instance of ${e.name}`})=>Vk(n=>n instanceof e,t),Wk=un.create,Hk=Hr.create,A4=Qc.create,R4=Gr.create,Gk=Sa.create,O4=js.create,M4=Kc.create,D4=Ca.create,I4=ja.create,L4=Zo.create,$4=ys.create,F4=nr.create,U4=Zc.create,z4=hn.create,B4=Oe.create,V4=Oe.strictCreate,W4=Ta.create,H4=Yu.create,G4=Pa.create,q4=Mn.create,K4=Na.create,Z4=Yc.create,Y4=Ts.create,Q4=Co.create,X4=Aa.create,J4=Ra.create,e$=qr.create,t$=Oa.create,n$=Yo.create,Gy=vn.create,r$=An.create,s$=Kr.create,o$=vn.createWithPreprocess,i$=Ja.create,a$=()=>Wk().optional(),l$=()=>Hk().optional(),c$=()=>Gk().optional(),u$={string:e=>un.create({...e,coerce:!0}),number:e=>Hr.create({...e,coerce:!0}),boolean:e=>Sa.create({...e,coerce:!0}),bigint:e=>Gr.create({...e,coerce:!0}),date:e=>js.create({...e,coerce:!0})},d$=J;var f$=Object.freeze({__proto__:null,defaultErrorMap:Ko,setErrorMap:d4,getErrorMap:Hc,makeIssue:Gc,EMPTY_PATH:f4,addIssueToContext:F,ParseStatus:ct,INVALID:J,DIRTY:ho,OK:vt,isAborted:Bh,isDirty:Vh,isValid:ka,isAsync:Ea,get util(){return pe},get objectUtil(){return zh},ZodParsedType:z,getParsedType:wr,ZodType:ce,datetimeRegex:zk,ZodString:un,ZodNumber:Hr,ZodBigInt:Gr,ZodBoolean:Sa,ZodDate:js,ZodSymbol:Kc,ZodUndefined:Ca,ZodNull:ja,ZodAny:Zo,ZodUnknown:ys,ZodNever:nr,ZodVoid:Zc,ZodArray:hn,ZodObject:Oe,ZodUnion:Ta,ZodDiscriminatedUnion:Yu,ZodIntersection:Pa,ZodTuple:Mn,ZodRecord:Na,ZodMap:Yc,ZodSet:Ts,ZodFunction:Co,ZodLazy:Aa,ZodLiteral:Ra,ZodEnum:qr,ZodNativeEnum:Oa,ZodPromise:Yo,ZodEffects:vn,ZodTransformer:vn,ZodOptional:An,ZodNullable:Kr,ZodDefault:Ma,ZodCatch:Da,ZodNaN:Qc,BRAND:T4,ZodBranded:Hm,ZodPipeline:Ja,ZodReadonly:Ia,custom:Vk,Schema:ce,ZodSchema:ce,late:P4,get ZodFirstPartyTypeKind(){return Q},coerce:u$,any:L4,array:z4,bigint:R4,boolean:Gk,date:O4,discriminatedUnion:H4,effect:Gy,enum:e$,function:Q4,instanceof:N4,intersection:G4,lazy:X4,literal:J4,map:Z4,nan:A4,nativeEnum:t$,never:F4,null:I4,nullable:s$,number:Hk,object:B4,oboolean:c$,onumber:l$,optional:r$,ostring:a$,pipeline:i$,preprocess:o$,promise:n$,record:K4,set:Y4,strictObject:V4,string:Wk,symbol:M4,transformer:Gy,tuple:q4,undefined:D4,union:W4,unknown:$4,void:U4,NEVER:d$,ZodIssueCode:D,quotelessJson:u4,ZodError:Dt});const qk=p.forwardRef(({className:e,type:t,enableBrowserFeatures:n=!1,...r},s)=>c.jsx("input",{type:t,className:de("flex h-10 w-full rounded-input border border-input bg-background px-3 py-2 text-base sm:text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),autoComplete:n?"on":"off",autoCorrect:n?"on":"off",spellCheck:n,ref:s,...r}));qk.displayName="Input";var h$="Label",Kk=p.forwardRef((e,t)=>
324c.jsx(me.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Kk.displayName=h$;var Zk=Kk;const p$=xu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Yk=p.forwardRef(({className:e,...t},n)=>c.jsx(Zk,{ref:n,className:de(p$(),e),...t}));Yk.displayName=Zk.displayName;const m$=1,g$="be557b2e-96c3-4913-82f6-754449f98d48",v$="25210763-c931-4df9-aca0-d42b22c5597f",y$="/__l5e/assets-v1/be557b2e-96c3-4913-82f6-754449f98d48/goexpired-ebook-cover.png",x$="a/v1/25210763-c931-4df9-aca0-d42b22c5597f/be557b2e-96c3-4913-82f6-754449f98d48/goexpired-ebook-cover.png",w$="goexpired-ebook-cover.png",b$=147228,_$="image/png",k$="2026-10-09T22:21:38Z",E$={version:m$,asset_id:g$,project_id:v$,url:y$,r2_key:x$,original_filename:w$,size:b$,content_type:_$,created_at:k$};function S$({onClose:e}){const[t,n]=p.useState(""),[r,s]=p.useState(!1),[o,i]=p.useState(!1),[a,l]=p.useState(""),u=async d=>{if(d.preventDefault(),r)return;const h=f$.string().trim().email().max(254).safeParse(t);if(!h.success){l("Please enter a valid email address.");return}s(!0),l("");try{const{data:f,error:m}=await re.functions.invoke("newsletter-ebook",{body:{action:"request",email:h.data,website:""}});if(m||!(f!=null&&f.success))throw new Error("We could not send your confirmation email. Please try again shortly.");i(!0);try{localStorage.setItem("gx_ebook_signed_up","true")}catch{}}catch(f){l(f instanceof Error?f.message:"Please try again shortly.")}finally{s(!1)}};return c.jsx(Em,{open:!0,onOpenChange:d=>{d||e()},children:c.jsxs(Hu,{className:"gx-ebook-theme ebook-dialog w-[calc(100%-24px)] max-w-[760px] max-h-[calc(100dvh-24px)] overflow-y-auto overflow-x-hidden p-0 gap-0 rounded-modal grid grid-cols-[40%_60%] max-[560px]:grid-cols-1 max-[560px]:max-w-[390px] bg-background text-foreground motion-reduce:animate-none",onOpenAutoFocus:d=>d.preventDefault(),children:[c.jsxs("div",{className:"flex flex-col items-center justify-center gap-7 bg-secondary px-6 py-11 max-[560px]:flex-row max-[560px]:justify-start max-[560px]:gap-5 max-[560px]:py-5",children:[c.jsx("img",{src:E$.url,alt:"Sounds Like a Great Domain. But Will It Sell? Free e-book cover",className:"ebook-cover w-full max-w-[218px] -rotate-6 rounded-sm max-[560px]:w-24 max-[560px]:shrink-0"}),c.jsxs("p",{className:"text-xs font-semibold text-muted-foreground text-center max-[560px]:text-left max-[560px]:max-w-[130px] leading-relaxed",children:["20 PAGES.",c.jsx("br",{}),"SMARTER DOMAIN BIDS."]})]}),c.jsxs("div",{className:"px-8 pt-12 pb-7 max-[560px]:px-6 max-[560px]:pt-6",children:[c.jsx("p",{className:"mb-4 text-xs font-bold text-primary",children:o?"ONE LAST STEP":"YOUR FREE DOMAIN INVESTING GUIDE"}),c.jsx(Gu,{className:"mb-4 text-[32px] max-[560px]:text-[29px] leading-[1.12] font-bold tracking-normal",children:o?"Check your inbox.":c.jsxs(c.Fragment,{children:["Great name.",c.jsx("br",{}),"But will it sell?"]})}),c.jsx(Cm,{className:"text-sm leading-relaxed mb-5 text-muted-foreground",children:o?"Confirm your email to get your free e-book and start receiving GoExpired's daily auction picks.":"Before your next bid, learn how to spot a domain worth buying - and one worth skipping."}),o?c.jsxs("div",{className:"space-y-5",children:[c.jsx(rb,{className:"h-9 w-9 text-primary"}),c.jsx("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Your confirmation link is valid for 48 hours. After confirmation, we'll email your private e-book download link. Check spam if you don't see our email."}),c.jsx(Se,{className:"ebook-primary w-full",onClick:e,children:"Done"})]}):c.jsxs(c.Fragment,{children:[c.jsx("ul",{className:"grid gap-3 mb-6 text-sm leading-relaxed",children:["10 questions to ask before you bid","The math behind a smarter max bid","A printable before-you-bid scorecard"].map(d=>c.jsxs("li",{className:"flex gap-2",children:[c.jsx(wu,{className:"mt-1 h-4 w-4 text-primary shrink-0"}),c.jsx("span",{children:d})]},d))}),c.jsxs("form",{onSubmit:u,children:[c.jsx(Yk,{htmlFor:"ebook-email",className:"block mb-2",children:"Your email address"}),c.jsx(qk,{id:"ebook-email",type:"email",autoComplete:"email",enableBrowserFeatures:!0,required:!0,maxLength:254,value:t,onChange:d=>n(d.target.value),placeholder:"[email protected]",disabled:r,"aria-invalid":!!a,"aria-describedby":a?"ebook-error":"ebook-consent",className:"h-12 text-base bg-background"}),c.jsx("p",{id:"ebook-consent",className:"text-xs leading-relaxed text-muted-foreground mt-3 mb-2",children:"Join the GoExpired newsletter for daily domain auction picks and get the e-book free. Unsubscribe anytime."}),c.jsx(G,{to:"/privacy",onClick:e,className:"inline-block text-xs text-primary underline underline-offset-4 mb-4",children:"Privacy policy"}
324),a&&c.jsx("p",{id:"ebook-error",role:"alert",className:"text-sm text-destructive mb-3",children:a}),c.jsx(Se,{type:"submit",disabled:r,className:"ebook-primary w-full min-h-[50px] whitespace-normal font-semibold",children:r?c.jsxs(c.Fragment,{children:[c.jsx(tb,{className:"animate-spin"}),"Sending..."]}):c.jsxs(c.Fragment,{children:["Join & get the free e-book",c.jsx(fo,{})]})})]}),c.jsx(Se,{variant:"link",className:"block mx-auto mt-3 min-h-11 text-xs",onClick:e,children:"Maybe later"})]})]})]})})}const C$=()=>{const[e,t]=p.useState(null),[n,r]=p.useState(!1);p.useEffect(()=>{let u=!0;const{data:{subscription:d}}=re.auth.onAuthStateChange((h,f)=>{u&&(t((f==null?void 0:f.user)??null),r(!0))});return re.auth.getSession().then(({data:{session:h}})=>{u&&(t((h==null?void 0:h.user)??null),r(!0))}),()=>{u=!1,d.unsubscribe()}},[]);const{config:s,isOpen:o,close:i,eligible:a}=i4(e,n),l=!!s&&a&&!o;return c.jsxs(c.Fragment,{children:[l&&c.jsxs(G,{to:"/advertise-your-domain","aria-label":"Want to sell your domain?",className:"fixed bottom-5 right-5 z-[90] flex items-center gap-2 rounded-full px-4 py-2.5 text-sm font-semibold text-white shadow-lg transition-transform hover:scale-105 animate-fade-in",style:{backgroundColor:"#2563EB"},onMouseEnter:u=>u.currentTarget.style.backgroundColor="#1D4FD8",onMouseLeave:u=>u.currentTarget.style.backgroundColor="#2563EB",children:[c.jsx(sb,{className:"h-4 w-4"}),"Want to sell your domain?"]}),o&&s&&(s.cta_mode==="ebook"?c.jsx(S$,{onClose:i}):c.jsx(c4,{config:s,user:e,onClose:i}))]})},j$=p.lazy(()=>K(()=>import("./GoExpiredFrontpage-DQf8pEBv.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),T$=p.lazy(()=>K(()=>import("./TodaysPicks-Cu84VTY_.js"),__vite__mapDeps([7,4,5,8,9,10]))),qy=p.lazy(()=>K(()=>import("./AppraiseYourDomain-DEzO_PMw.js"),__vite__mapDeps([11,12,13,14,15,16]))),P$=p.lazy(()=>K(()=>import("./Contact-CDEkPAqA.js"),__vite__mapDeps([17,15]))),N$=p.lazy(()=>K(()=>import("./About-COSHNoaE.js"),[])),A$=p.lazy(()=>K(()=>import("./Auth-FFnbKL_F.js"),[])),R$=p.lazy(()=>K(()=>import("./AuthCallback-JE3lpbNP.js"),[])),O$=p.lazy(()=>K(()=>import("./ResetPassword-BLbhQrtJ.js"),[])),M$=p.lazy(()=>K(()=>import("./BrandableDropsContent-Dxn_bUAn.js"),__vite__mapDeps([18,19,20,1,2,21,22,23,24]))),D$=p.lazy(()=>K(()=>import("./ThankYou-q4JBxRZT.js"),__vite__mapDeps([25,15]))),I$=p.lazy(()=>K(()=>import("./ConfirmEmail-CDYHcuuQ.js"),[])),L$=p.lazy(()=>K(()=>import("./ConfirmAccount-CJiq9T2r.js"),[])),$$=p.lazy(()=>K(()=>import("./Updates-CU96--nC.js"),__vite__mapDeps([26,19]))),F$=p.lazy(()=>K(()=>import("./Settings-B6Q49oZq.js"),__vite__mapDeps([27,28,29,30,13,31,22,16,32]))),U$=p.lazy(()=>K(()=>import("./Pricing-BoF-eK-H.js"),__vite__mapDeps([33,28,34,29]))),z$=p.lazy(()=>K(()=>import("./PublicPricing-DLgJeWJf.js"),__vite__mapDeps([35,34]))),B$=p.lazy(()=>K(()=>import("./FAQ-xxwQhwXV.js"),__vite__mapDeps([36,37,16,38]))),V$=p.lazy(()=>K(()=>import("./PriceHunter-BqAYyHHN.js"),__vite__mapDeps([39,19,20,10]))),W$=p.lazy(()=>K(()=>import("./Privacy-DUDk3xRL.js"),__vite__mapDeps([40,22,10,41,42,43,44]))),H$=p.lazy(()=>K(()=>import("./Terms-U7Xt4YUa.js"),__vite__mapDeps([45,10,41,44,30,22]))),Ky=p.lazy(()=>K(()=>import("./NotFound-DmdM2t4L.js"),[])),G$=p.lazy(()=>K(()=>import("./Go-DLEmemSg.js"),[])),q$=p.lazy(()=>K(()=>import("./Admin-S3LvAwx3.js"),__vite__mapDeps([46,19,22,20,42,13,21,1,2,47,41,48,30,10,43,3,49,8,9,29,31,16,50,15,23,14,38]))),K$=p.lazy(()=>K(()=>import("./Notifications-B9DGCFog.js"),[])),Z$=p.lazy(()=>K(()=>import("./StayInTouch-Cxk-HpAA.js"),__vite__mapDeps([51,15]))),Y$=p.lazy(()=>K(()=>import("./Newsletter-2VddqKTL.js"),[])),Q$=p.lazy(()=>K(()=>import("./NewsletterGuide-CxTw67dS.js"),__vite__mapDeps([52,47,38]))),X$=p.lazy(()=>K(()=>import("./Blog-C22_tzEG.js"),__vite__mapDeps([53,54]))),J$=p.lazy(()=>K(()=>import("./DomainFlippingBeginners2026-B0M_zZjF.js"),__vite__mapDeps([55,54,37]))),e3=p.lazy(()=>K(()=>import("./StopEmotionalBidding-BQpu7SEq.js"),__vite__mapDeps([56,54,37]))),t3=p.lazy(()=>K(()=>import("./DomainRentalsRevenueOrProblems-BuTwYCdN.js"),__vite__mapDeps([57,54,37]))),n3=p.lazy(()=>K(()=>import("./FreeDomainAppraisalTools-oE_6ibZQ.js"),__vite__mapDeps([58,54,37]))),r3=p.lazy(()=>K(()=>import("./DynamicBlogPost-BOBfcwfr.js"),__vite__mapDeps([59,37]))),s3=p.lazy(()=>K(()=>import("./SavedAppraisals-D2DLL_SL.js"),__vite__mapDeps([60,29,61,47,31]))),o3=p.lazy(()=>K(()=>import("./ExpiredAuctionsNew-B3z6F7q9.js"),__vite__mapDeps([62,4,5,63,9]))),i3=p.lazy(()=>K(()=>import("./ExpiredBrandablesNew-FrikVdcG.js"),__vite__mapDeps([64,4,5,63,9]))),a3=p.lazy(()=>K(()=>import("./FourLetterDomainsNew-DNtBKQ7H.js"),__vite__mapDeps([65,4,5,63,9]))),l3=p.lazy(()=>K(()=>import("./ExpiredAltTLDsNew-DHvgOO9L.js"),__vite__mapDeps([66,4,5,63,9]))),c3=p.lazy(()=>K(()=>import("./CuratedCloseoutsNew-C7HgN0Av.js"),__vite__mapDeps([67,63,9]))),u3=p.lazy(()=>K(()=>import("./CuratedDropsNew-BDXu8Np2.js"),__vite__mapDeps([68,63,9]))),d3=p.lazy(()=>K(()=>import("./BrandableDropsTop100-CGQAAnNh.js"),__vite__mapDeps([69,63,9]))),f3=p.lazy(()=>K(()=>
324import("./DomainerToolsNew-Cba9vWUU.js"),[])),h3=p.lazy(()=>K(()=>import("./NameGenerator-Dho_oORG.js"),__vite__mapDeps([70,19,2,32,31,49,21,43,23]))),p3=p.lazy(()=>K(()=>import("./BrandableGenerator-ZRCZtlej.js"),__vite__mapDeps([71,21,61,24]))),m3=p.lazy(()=>K(()=>import("./GxPro-D3N9LDQx.js"),__vite__mapDeps([72,28]))),g3=p.lazy(()=>K(()=>import("./CompleteUpgrade-CGS-WfAs.js"),__vite__mapDeps([73,28]))),v3=p.lazy(()=>K(()=>import("./CheckEmail-BAqqWl3n.js"),[])),y3=p.lazy(()=>K(()=>import("./SubmitYourDomain-DOYIeOXn.js"),__vite__mapDeps([74,28,75,15,48,24]))),x3=p.lazy(()=>K(()=>import("./AdvertiseYourDomain-B1na-87M.js"),__vite__mapDeps([76,75,15]))),w3=p.lazy(()=>K(()=>import("./Sponsors-CIVukr-x.js"),__vite__mapDeps([77,15,50]))),b3=p.lazy(()=>K(()=>import("./BackorderAuctions-BXBggBL0.js"),__vite__mapDeps([78,4,5,63,9]))),_3=p.lazy(()=>K(()=>import("./GnameAuctions-CgWowAOm.js"),__vite__mapDeps([79,63,9]))),k3=p.lazy(()=>K(()=>import("./AppraisalHistory-Cz5cNSC5.js"),__vite__mapDeps([80,29,12,15,31]))),E3=p.lazy(()=>K(()=>import("./Watchlist-Bb5mxdW3.js"),__vite__mapDeps([81,5,31]))),S3=p.lazy(()=>K(()=>import("./EndingSoonNew-D-MwLpDC.js"),__vite__mapDeps([82,4,5,6]))),C3=new SN,j3=()=>c.jsx("div",{className:"min-h-screen bg-background"}),T3=()=>c.jsx(jN,{client:C3,children:c.jsxs(am,{children:[c.jsx(JT,{}),c.jsx(P2,{}),c.jsxs(CA,{children:[c.jsx(HL,{}),c.jsx(QL,{}),c.jsx(e4,{}),c.jsx(t4,{}),c.jsx(r4,{}),c.jsx(C$,{}),c.jsx(p.Suspense,{fallback:c.jsx(j3,{}),children:c.jsxs(vA,{children:[c.jsx(M,{path:"/",element:c.jsx($y,{})}),c.jsx(M,{path:"/premiumauctions",element:c.jsx(j$,{})}),c.jsx(M,{path:"/hand-picked",element:c.jsx(we,{to:"/premiumauctions",replace:!0})}),c.jsx(M,{path:"/goexpired-frontpage",element:c.jsx(we,{to:"/premiumauctions",replace:!0})}),c.jsx(M,{path:"/appraise-your-domain",element:c.jsx(qy,{})}),c.jsx(M,{path:"/appraise-your-domain/:domainParam",element:c.jsx(qy,{})}),c.jsx(M,{path:"/contact",element:c.jsx(P$,{})}),c.jsx(M,{path:"/about",element:c.jsx(N$,{})}),c.jsx(M,{path:"/auth",element:c.jsx(A$,{})}),c.jsx(M,{path:"/reset-password",element:c.jsx(O$,{})}),c.jsx(M,{path:"/results",element:c.jsx(we,{to:"/appraise-your-domain",replace:!0})}),c.jsxs(M,{element:c.jsx(qI,{}),children:[c.jsx(M,{path:"/appraisal",element:c.jsx(we,{to:"/appraise-your-domain",replace:!0})}),c.jsx(M,{path:"/recent-appraisals",element:c.jsx(we,{to:"/appraisal-history",replace:!0})}),c.jsx(M,{path:"/premiumexpired",element:c.jsx(we,{to:"/premiumauctions",replace:!0})}),c.jsx(M,{path:"/featured-auctions",element:c.jsx(we,{to:"/premiumauctions",replace:!0})}),c.jsx(M,{path:"/expired-auctions",element:c.jsx(we,{to:"/top100dynadot",replace:!0})}),c.jsx(M,{path:"/4-letter-domains",element:c.jsx(we,{to:"/4letterdomains",replace:!0})}),c.jsx(M,{path:"/expired-brandables",element:c.jsx(we,{to:"/top100brandables",replace:!0})}),c.jsx(M,{path:"/ending-soon",element:c.jsx(we,{to:"/endingsoon",replace:!0})}),c.jsx(M,{path:"/expired-alt-auctions",element:c.jsx(we,{to:"/top100alttlds",replace:!0})}),c.jsx(M,{path:"/geo-expired-auctions",element:c.jsx(we,{to:"/top100dynadot",replace:!0})}),c.jsx(M,{path:"/premium-closeouts",element:c.jsx(we,{to:"/top100closeouts",replace:!0})}),c.jsx(M,{path:"/expired-closeouts",element:c.jsx(we,{to:"/top100closeouts",replace:!0})}),c.jsx(M,{path:"/geo-closeouts",element:c.jsx(we,{to:"/top100closeouts",replace:!0})}),c.jsx(M,{path:"/premiumdrops",element:c.jsx(we,{to:"/top100drops",replace:!0})}),c.jsx(M,{path:"/brandables",element:c.jsx(M$,{})}),c.jsx(M,{path:"/manage",element:c.jsx(we,{to:"/watchlist",replace:!0})}),c.jsx(M,{path:"/favorites",element:c.jsx(we,{to:"/watchlist",replace:!0})}),c.jsx(M,{path:"/trendtracker",element:c.jsx(we,{to:"/expired-auctions",replace:!0})}),c.jsx(M,{path:"/trendyfavorites",element:c.jsx(we,{to:"/expired-auctions",replace:!0})}),c.jsx(M,{path:"/domain-appraisal",element:c.jsx(we,{to:"/appraise-your-domain",replace:!0})}),c.jsx(M,{path:"/domainer-tools",element:c.jsx(we,{to:"/domainertools",replace:!0})})]}),c.jsx(M,{path:"/notifications",element:c.jsx(K$,{})}),c.jsx(M,{path:"/confirm-email",element:c.jsx(I$,{})}),c.jsx(M,{path:"/check-email",element:c.jsx(v3,{})}),c.jsx(M,{path:"/confirm-account",element:c.jsx(L$,{})}),c.jsx(M,{path:"/thank-you",element:c.jsx(D$,{})}),c.jsx(M,{path:"/updates",element:c.jsx($$,{})}),c.jsx(M,{path:"/settings",element:c.jsx(F$,{})}),c.jsx(M,{path:"/pricing",element:c.jsx(U$,{})}),c.jsx(M,{path:"/pricing-v2",element:c.jsx(we,{to:"/pricing",replace:!0})}),c.jsx(M,{path:"/public-pricing",element:c.jsx(z$,{})}),c.jsx(M,{path:"/welcome-appraisal",element:c.jsx(we,{to:"/appraise-your-domain",replace:!0})}),c.jsx(M,{path:"/faq",element:c.jsx(B$,{})}),c.jsx(M,{path:"/pricehunter",element:c.jsx(V$,{})}),c.jsx(M,{path:"/privacy",element:c.jsx(W$,{})}),c.jsx(M,{path:"/terms",element:c.jsx(H$,{})}),c.jsx(M,{path:"/go",element:c.jsx(G$,{})}),c.jsx(M,{path:"/admin",element:c.jsx(q$,{})}),c.jsx(M,{path:"/stay-in-touch",element:c.jsx(Z$,{})}),c.jsx(M,{path:"/newsletter",element:c.jsx(Y$,{})}),c.jsx(M,{path:"/newsletter-guide",element:c.jsx(Q$,{})}),c.jsx(M,{path:"/blog",element:c.jsx(X$,{})}),c.jsx(M,{path:"/blog/domain-flipping-for-beginners-2026",element:c.jsx(J$,{})}),c.jsx(M,{path:"/blog/stop-emotional-bidding-domain-auctions",element:c.jsx(e3,{})}),c.jsx(M,{path:"/blog/domain-rentals-new-revenue-stream-or-problems",element:c.jsx(t3,{})}),c.jsx(M,{path:"/blog/free-domain-appraisal-tools",element:c.jsx(n3,{})}),c.jsx(M,{path:"/blog/:slug",element:c.jsx(r3,{})}),c.jsx(M,{path:"/saved-appraisals",element:c.jsx(s3,{})}),c.jsx(M,{path:"/top100dynadot",element:c.jsx(o3,{})}),c.jsx(M,{path:"/expiredauctions",element:c.jsx(we,{to:"/top100dynadot",replace:!0})}),c.jsx(M,{path:"/4letterdomains",element:c.jsx(a3,{})}),c.jsx(M,{path:"/todays-picks",element:c.jsx(T$,{})}),c.jsx(M,{path:"/endingsoon",element:c.jsx(S3,{})}),c.jsx(M,{path:"/top100brandables",element:c.jsx(i3,{})}),c.jsx(M,{path:"/expiredbrandables",element:c.jsx(we,{to:"/top100brandables",replace:!0})}),c.jsx(M,{path:"/top100alttlds",element:c.jsx(l3,{})}),c.jsx(M,{path:"/expiredalttlds",element:c.jsx(we,{to:"/top100alttlds",replace:!0})}),c.jsx(M,{path:"/top100closeouts",element:c.jsx(c3,{})}),c.jsx(M,{path:"/curatedcloseouts",element:c.jsx(we,{to:"/top100closeouts",replace:!0})}),c.jsx(M,{path:"/top100drops",element:c.jsx(u3,{})}),c.jsx(M,{path:"/top100brandabledrops",element:c.jsx(d3,{})}),c.jsx(M,{path:"/curateddrops",element:c.jsx(we,{to:"/top100drops",replace:!0})}),c.jsx(M,{path:"/domainertools",element:c.jsx(f3,{})}),c.jsx(M,{path:"/namegenerator",element:c.jsx(h3,{})}),c.jsx(M,{path:"/brandable-generator",element:c.jsx(p3,{})}),c.jsx(M,{path:"/gxpro",element:c.jsx(m3,{})}),c.jsx(M,{path:"/complete-upgrade",element:c.jsx(g3,{})}),c.jsx(M,{path:"/auth/callback",element:c.jsx(R$,{})}),c.jsx(M,{path:"/submit-your-domain",element:c.jsx(y3,{})}),c.jsx(M,{path:"/advertise-your-domain",element:c.jsx(x3,{})}),c.jsx(M,{path:"/sponsors",element:c.jsx(w3,{})}),c.jsx(M,{path:"/top100backorders",element:c.jsx(b3,{})}),c.jsx(M,{path:"/backorder-auctions",element:c.jsx(we,{to:"/top100backorders",replace:!0})}),c.jsx(M,{path:"/gname-auctions",element:c.jsx(_3,{})}),c.jsx(M,{path:"/namepros",element:c.jsx(Ky,{})}),c.jsx(M,{path:"/appraisal-history",element:c.jsx(k3,{})}),c.jsx(M,{path:"/watchlist",element:c.jsx(E3,{})}),c.jsx(M,{path:"/welcome",element:c.jsx($y,{})}),c.jsx(M,{path:"*",element:c.jsx(Ky,{})})]})})]})]})});class P3 extends p.Component{constructor(){super(...arguments);zt(this,"state",{hasError:!1,error:null,errorInfo:null});zt(this,"handleReload",()=>{window.location.reload()});zt(this,"handleGoHome",()=>{window.location.href="/"})}static getDerivedStateFromError(n){return{hasError:!0,error:n,errorInfo:null}}componentDidCatch(n,r){console.error("ErrorBoundary caught an error:",{error:n.toString(),errorInfo:r.componentStack,timestamp:new Date().toISOString(),userAgent:navigator.userAgent,url:window.location.href}),this.setState({error:n,errorInfo:r})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:c.jsx("div",{className:"min-h-screen bg-gradient-to-br from-indigo-500 via-purple-500 to-pink-500 flex items-center justify-center p-4",children:c.jsxs("div",{className:"bg-white/90 backdrop-blur-sm rounded-2xl shadow-2xl p-8 max-w-2xl w-full",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[c.jsx("div",{className:"p-3 bg-red-100 rounded-full",children:c.jsx(vT,{className:"h-8 w-8 text-red-600"})}),c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-900",children:"Something went wrong"}),c.jsx("p",{className:"text-slate-600",children:"We're working on it"})]})]}),c.jsxs("div",{className:"mb-6 p-4 bg-slate-50 rounded-lg",children:[c.jsx("p",{className:"text-slate-700 mb-2",children:"We ap
324ologize for the inconvenience. Please try to:"}),c.jsxs("ul",{className:"list-disc list-inside text-slate-600 space-y-1",children:[c.jsx("li",{children:"Reload the page"}),c.jsx("li",{children:"Go back to the home page"}),c.jsx("li",{children:"Contact support if the problem persists"})]})]}),!1,c.jsxs("div",{className:"flex gap-3",children:[c.jsx(Se,{onClick:this.handleReload,className:"flex-1",children:"Reload Page"}),c.jsx(Se,{onClick:this.handleGoHome,variant:"outline",className:"flex-1",children:"Go to Home Page"})]})]})}):this.props.children}}XL();vw(document.getElementById("root")).render(c.jsx(P3,{children:c.jsx(Ew,{children:c.jsx(T3,{})})}));export{zc as $,OL as A,Se as B,dT as C,Em as D,hT as E,Hp as F,pL as G,Xw as H,qp as I,da as J,vT as K,G as L,rb as M,f$ as N,pj as O,Ik as P,v2 as Q,y1 as R,Gp as S,Wb as T,Ue as U,nF as V,RL as W,Es as X,qk as Y,_v as Z,D3 as _,Ln as a,ei as a$,sb as a0,GI as a1,gD as a2,NL as a3,ab as a4,bu as a5,nb as a6,Yk as a7,Jw as a8,xa as a9,u1 as aA,Zt as aB,Fa as aC,Zw as aD,x1 as aE,Qw as aF,lT as aG,aT as aH,DA as aI,o4 as aJ,S$ as aK,c4 as aL,ob as aM,OP as aN,Je as aO,c5 as aP,d5 as aQ,Cy as aR,oF as aS,sF as aT,J5 as aU,v5 as aV,h5 as aW,JM as aX,oi as aY,Su as aZ,Jn as a_,J3 as aa,wu as ab,Up as ac,As as ad,Z3 as ae,R as af,Rs as ag,Re as ah,w1 as ai,q as aj,me as ak,Kn as al,sD as am,Y3 as an,Q3 as ao,fT as ap,HI as aq,hL as ar,Ut as as,xu as at,tL as au,_1 as av,ND as aw,AD as ax,Ft as ay,K3 as az,Ha as b,xm as b0,ym as b1,Wu as b2,Ur as b3,Bu as b4,ti as b5,sm as b6,om as b7,gu as b8,gt as b9,rm as ba,Ga as bb,l5 as bc,E$ as bd,G3 as be,ZM as bf,o1 as bg,q3 as bh,i1 as bi,Sw as bj,a1 as bk,l1 as bl,QM as bm,KM as bn,YM as bo,ib as bp,wy as bq,uT as br,am as bs,X3 as bt,fo as bu,Os as c,Hb as d,lm as e,ut as f,Dk as g,vL as h,Hu as i,c as j,Sm as k,Gu as l,Cm as m,f5 as n,i5 as o,a5 as p,Mk as q,p as r,re as s,de as t,GL as u,cT as v,ve as w,M3 as x,tb as y,mT 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.