PageSourceSearch

https://donodozap.com.br/assets/index-DpB6CMz4.js

js donodozap.com.br collected 2026-10-06 04:44:21 UTC 743,758 bytes, 62 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CwII6Xkd.js","assets/input-BchsV92G.js","assets/alert-dialog-x0HU9YyH.js","assets/index-D_5yL6Dp.js","assets/index-DRxN6Y5t.js","assets/index-BorF29gS.js","assets/index-abL7Q9bm.js","assets/index-mnAFqTs_.js","assets/phone-DwO8wbti.js","assets/accordion-B1d5ORbj.js","assets/index-BN5G0vX4.js","assets/index-BWN0pUB4.js","assets/chevron-down-A73DE0iE.js","assets/shield-check-KRRAX9zm.js","assets/arrow-right-DItAfVwD.js","assets/loader-circle-CVNQt2KF.js","assets/sparkles-CEwD9eVz.js","assets/shield-CBBsnm7l.js","assets/users-HtCDBwhI.js","assets/triangle-alert-fGbAvdUJ.js","assets/file-text-pwRJlYE7.js","assets/search-D_lvSxYl.js","assets/blocked-numbers.functions-BMzEuUmO.js","assets/phone-Dsn1_u7D.js","assets/zap-C8gAk6Ei.js","assets/lock-DHGy0F_R.js","assets/circle-check-DT9mTl0N.js","assets/file-search-Dxzr-ARd.js","assets/credit-card-1ZeEA0aE.js","assets/ban-dPwPPZAh.js","assets/admin-D6o5cKmf.js","assets/admin.functions-D3a8XiO7.js","assets/messages.functions-wC8ZAKgc.js","assets/ConfirmDialog-CunLsLmS.js","assets/shield-alert-Cvzrpqvf.js","assets/bell-CfqPShGT.js","assets/arrow-left-BPGlUpnz.js","assets/inbox-CIwsztwu.js","assets/message-square-Dbsm60tD.js","assets/activity-BugTECNg.js","assets/share-2-BLzmLLat.js","assets/mail-zpFYQoG5.js","assets/arrow-right-left-O-DTEIsg.js","assets/map-CV0b_WS0.js","assets/external-link-tTVCDKLw.js","assets/consultar-meus-relatorios-DPe6WqQC.js","assets/label-DU2NRwHV.js","assets/my-reports.functions-eyk_xxrw.js","assets/circle-x-Bs3TH-Tk.js","assets/clock-B9QNTChW.js","assets/contato-DnTeVEm5.js","assets/textarea-SrVK-eKT.js","assets/checkbox-C2QBwQ3e.js","assets/index-CcgKKF6L.js","assets/check-mUcHQcpO.js","assets/dialog-BdACKwXf.js","assets/select-Deb1w68r.js","assets/contact.functions-e_jCVjmG.js","assets/send-BVwEAsah.js","assets/lgpd-CQmI3DDf.js","assets/LegalShell-EMDURk2L.js","assets/login-XmRPWFde.js","assets/circle-alert-flzXaJCy.js","assets/privacidade-C_fMnMm8.js","assets/resultado-2-iM1Jb9.js","assets/payments.functions-BdJgUe8z.js","assets/consultation.functions-IN3_tCD6.js","assets/pencil-DuSlZFdr.js","assets/qr-code-B9bOjyDi.js","assets/copy-Bmdk8MWl.js","assets/termos-BL0ntUD7.js","assets/admin.index-v2-HAPJD.js","assets/use-supabase-token-P5lrOYRP.js","assets/calendar-BlzZT1ON.js","assets/calendar-days-BtSCsoMC.js","assets/badge-check-k1sWT4UH.js","assets/admin.ai-pages-C2fsMZ4P.js","assets/layout-list-BSDAweJ0.js","assets/settings-2-DYPL8oCW.js","assets/admin.apis-CfbwMetu.js","assets/switch-BI0NwolV.js","assets/badge-BBER-pVV.js","assets/tabs-BcHXhvWZ.js","assets/eye-B1GclmXp.js","assets/plus-DPoFii7T.js","assets/arrow-up-CNWaW4UV.js","assets/rotate-ccw-DwQ7Vu5Z.js","assets/trash-2-BKyEyhHc.js","assets/eye-off-CGR2qspE.js","assets/admin.bloqueados-CuhVikzk.js","assets/useMutation-BspQ9VNU.js","assets/table-BP_E469d.js","assets/admin.campos-wHc2NlId.js","assets/custom-fields-B19fCCWh.js","assets/save-CL0Sqc7d.js","assets/admin.consultas-internas-DKh6Rpat.js","assets/chevron-right-Dwn6r-fw.js","assets/admin.cpfs-DzQrnUgI.js","assets/upload-BqKpCQi9.js","assets/refresh-cw-WWVUFhd5.js","assets/admin.email-aws-5T2NT5BO.js","assets/download-C0rabnUZ.js","assets/admin.login-D09a_zB8.js","assets/admin.mensagens-C_ljW27U.js","assets/archive-D6XGiF2L.js","assets/globe-BA74zj9-.js","assets/admin.numero-pages-BxDeo0r4.js","assets/admin.pagamentos-CsBceY8l.js","assets/admin.redirecionamentos-DujkzrWp.js","assets/admin.relatorios-api-CdWu8XDt.js","assets/admin.site-B4bOB6Zi.js","assets/admin.sitemap-3uL8GGrw.js","assets/admin.social-hfg6fXjI.js","assets/admin.telemetria-vFTLEUJi.js","assets/blog.index-g3ccrmbF.js","assets/blog._slug-Fe6tioJ8.js","assets/consultar._numero-SBZCt5vv.js","assets/map-pin-e67iPWqD.js","assets/pedido._token-BemBJt9-.js","assets/relatorio._id-CSUxCCag.js","assets/admin.ai-pages.index-C8MlmQp3.js","assets/admin.ai-pages.batch-BEY34ANb.js","assets/admin.ai-pages.list-DWCSsNve.js","assets/admin.ai-pages.queue-BWlVX9Zn.js","assets/admin.ai-pages.settings-DqluTctw.js","assets/admin.consultas.index-IIWZhSc7.js","assets/ConsultaDetalheView-Cdt3h74_.js","assets/admin.consultas._id-CvpqSsuj.js","assets/admin.numero-pages.index-BbEVtuWA.js","assets/admin.numero-pages.settings-CNug6yci.js","assets/admin.ai-pages.edit._id-D2TX_wyj.js","assets/admin.numero-pages.edit._id-tB8Vd_Ia.js"])))=>i.map(i=>d[i]);
2function gT(t,e){for(var n=0;n<e.length;n++){const a=e[n];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const l=Object.getOwnPropertyDescriptor(a,o);l&&Object.defineProperty(t,o,l.get?l:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var fz=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function p_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var hh={exports:{}},Vo={};var Xv;
vendor: 8,155 bytes, line 2
2function yT(){if(Xv)return Vo;Xv=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(a,o,l){var u=null;if(l!==void 0&&(u=""+l),o.key!==void 0&&(u=""+o.key),"key"in o){l={};for(var d in o)d!=="key"&&(l[d]=o[d])}else l=o;return o=l.ref,{$$typeof:t,type:a,key:u,ref:o!==void 0?o:null,props:l}}return Vo.Fragment=e,Vo.jsx=n,Vo.jsxs=n,Vo}var Wv;function vT(){return Wv||(Wv=1,hh.exports=yT()),hh.exports}var D=vT(),ph={exports:{}},Oe={};var e0;function bT(){if(e0)return Oe;e0=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function _(k){return k===null||typeof k!="object"?null:(k=v&&k[v]||k["@@iterator"],typeof k=="function"?k:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,x={};function T(k,H,V){this.props=k,this.context=H,this.refs=x,this.updater=V||w}T.prototype.isReactComponent={},T.prototype.setState=function(k,H){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,H,"setState")},T.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function C(){}C.prototype=T.prototype;function R(k,H,V){this.props=k,this.context=H,this.refs=x,this.updater=V||w}var B=R.prototype=new C;B.constructor=R,E(B,T.prototype),B.isPureReactComponent=!0;var Q=Array.isArray;function I(){}var j={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function X(k,H,V){var W=V.ref;return{$$typeof:t,type:k,key:H,ref:W!==void 0?W:null,props:V}}function ce(k,H){return X(k.type,H,k.props)}function Z(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function F(k){var H={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return H[V]})}var te=/\/+/g;function _e(k,H){return typeof k=="object"&&k!==null&&k.key!=null?F(""+k.key):H.toString(36)}function ie(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(I,I):(k.status="pending",k.then(function(H){k.status==="pending"&&(k.status="fulfilled",k.value=H)},function(H){k.status==="pending"&&(k.status="rejected",k.reason=H)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function N(k,H,V,W,se){var le=typeof k;(le==="undefined"||le==="boolean")&&(k=null);var pe=!1;if(k===null)pe=!0;else switch(le){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(k.$$typeof){case t:case e:pe=!0;break;case y:return pe=k._init,N(pe(k._payload),H,V,W,se)}}if(pe)return se=se(k),pe=W===""?"."+_e(k,0):W,Q(se)?(V="",pe!=null&&(V=pe.replace(te,"$&/")+"/"),N(se,H,V,"",function(kt){return kt})):se!=null&&(Z(se)&&(se=ce(se,V+(se.key==null||k&&k.key===se.key?"":(""+se.key).replace(te,"$&/")+"/")+pe)),H.push(se)),1;pe=0;var be=W===""?".":W+":";if(Q(k))for(var Se=0;Se<k.length;Se++)W=k[Se],le=be+_e(W,Se),pe+=N(W,H,V,le,se);else if(Se=_(k),typeof Se=="function")for(k=Se.call(k),Se=0;!(W=k.next()).done;)W=W.value,le=be+_e(W,Se++),pe+=N(W,H,V,le,se);else if(le==="object"){if(typeof k.then=="function")return N(ie(k),H,V,W,se);throw H=String(k),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return pe}function Y(k,H,V){if(k==null)return k;var W=[],se=0;return N(k,W,"","",function(le){return H.call(V,le,se++)}),W}function ue(k){if(k._status===-1){var H=k._result;H=H(),H.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=H)}if(k._status===1)return k._result.default;throw k._result}var je=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},J={map:Y,forEach:function(k,H,V){Y(k,function(){H.apply(this,arguments)},V)},count:function(k){var H=0;return Y(k,function(){H++}),H},toArray:function(k){return Y(k,function(H){return H})||[]},only:function(k){if(!Z(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Oe.Activity=g,Oe.Children=J,Oe.Component=T,Oe.Fragment=n,Oe.Profiler=o,Oe.PureComponent=R,Oe.StrictMode=a,Oe.Suspense=h,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,Oe.__COMPILER_RUNTIME={__proto__:null,c:function(k){return j.H.useMemoCache(k)}},Oe.cache=function(k){return function(){return k.apply(null,arguments)}},Oe.cacheSignal=function(){return null},Oe.cloneElement=function(k,H,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var W=E({},k.props),se=k.key;if(H!=null)for(le in H.key!==void 0&&(se=""+H.key),H)!M.call(H,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&H.ref===void 0||(W[le]=H[le]);var le=arguments.length-2;if(le===1)W.children=V;else if(1<le){for(var pe=Array(le),be=0;be<le;be++)pe[be]=arguments[be+2];W.children=pe}return X(k.type,se,W)},Oe.createContext=function(k){return k={$$typeof:u,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:l,_context:k},k},Oe.createElement=function(k,H,V){var W,se={},le=null;if(H!=null)for(W in H.key!==void 0&&(le=""+H.key),H)M.call(H,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(se[W]=H[W]);var pe=arguments.length-2;if(pe===1)se.children=V;else if(1<pe){for(var be=Array(pe),Se=0;Se<pe;Se++)be[Se]=arguments[Se+2];se.children=be}if(k&&k.defaultProps)for(W in pe=k.defaultProps,pe)se[W]===void 0&&(se[W]=pe[W]);return X(k,le,se)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(k){return{$$typeof:d,render:k}},Oe.isValidElement=Z,Oe.lazy=function(k){return{$$typeof:y,_payload:{_status:-1,_result:k},_init:ue}},Oe.memo=function(k,H){return{$$typeof:p,type:k,compare:H===void 0?null:H}},Oe.startTransition=function(k){var H=j.T,V={};j.T=V;try{var W=k(),se=j.S;se!==null&&se(V,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(I,je)}catch(le){je(le)}finally{H!==null&&V.types!==null&&(H.types=V.types),j.T=H}},Oe.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},Oe.use=function(k){return j.H.use(k)},Oe.useActionState=function(k,H,V){return j.H.useActionState(k,H,V)},Oe.useCallback=function(k,H){return j.H.useCallback(k,H)},Oe.useContext=function(k){return j.H.useContext(k)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(k,H){return j.H.useDeferredValue(k,H)},Oe.useEffect=function(k,H){return j.H.useEffect(k,H)},Oe.useEffectEvent=function(k){return j.H.useEffectEvent(k)},Oe.useId=function(){return j.H.useId()},Oe.useImperativeHandle=function(k,H,V){return j.H.useImperativeHandle(k,H,V)},Oe.useInsertionEffect=function(k,H){return j.H.useInsertionEffect(k,H)},Oe.useLayoutEffect=function(k,H){return j.H.useLayoutEffect(k,H)},Oe.useMemo=function(k,H){return j.H.useMemo(k,H)},Oe.useOptimistic=function(k,H){return j.H.useOptimistic(k,H)},Oe.useReducer=function(k,H,V){return j.H.useReducer(k,H,V)},Oe.useRef=function(k){return j.H.useRef(k)},Oe.useState=function(k){return j.H.useState(k)},Oe.useSyncExternalStore=function(k,H,V){return j.H.useSyncExternalStore(k,H,V)},Oe.useTransition=function(){return j.H.useTransition()},Oe.version="19.2.5",Oe}var t0;
vendor: 6,050 bytes, line 2
2function Rl(){return t0||(t0=1,ph.exports=bT()),ph.exports}var ee=Rl();const re=p_(ee),_T=gT({__proto__:null,default:re},[ee]);var mh={exports:{}},Go={},gh={exports:{}},yh={};var n0;function wT(){return n0||(n0=1,(function(t){function e(N,Y){var ue=N.length;N.push(Y);e:for(;0<ue;){var je=ue-1>>>1,J=N[je];if(0<o(J,Y))N[je]=Y,N[ue]=J,ue=je;else break e}}function n(N){return N.length===0?null:N[0]}function a(N){if(N.length===0)return null;var Y=N[0],ue=N.pop();if(ue!==Y){N[0]=ue;e:for(var je=0,J=N.length,k=J>>>1;je<k;){var H=2*(je+1)-1,V=N[H],W=H+1,se=N[W];if(0>o(V,ue))W<J&&0>o(se,V)?(N[je]=se,N[W]=ue,je=W):(N[je]=V,N[H]=ue,je=H);else if(W<J&&0>o(se,ue))N[je]=se,N[W]=ue,je=W;else break e}}return Y}function o(N,Y){var ue=N.sortIndex-Y.sortIndex;return ue!==0?ue:N.id-Y.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var h=[],p=[],y=1,g=null,v=3,_=!1,w=!1,E=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function B(N){for(var Y=n(p);Y!==null;){if(Y.callback===null)a(p);else if(Y.startTime<=N)a(p),Y.sortIndex=Y.expirationTime,e(h,Y);else break;Y=n(p)}}function Q(N){if(E=!1,B(N),!w)if(n(h)!==null)w=!0,I||(I=!0,F());else{var Y=n(p);Y!==null&&ie(Q,Y.startTime-N)}}var I=!1,j=-1,M=5,X=-1;function ce(){return x?!0:!(t.unstable_now()-X<M)}function Z(){if(x=!1,I){var N=t.unstable_now();X=N;var Y=!0;try{e:{w=!1,E&&(E=!1,C(j),j=-1),_=!0;var ue=v;try{t:{for(B(N),g=n(h);g!==null&&!(g.expirationTime>N&&ce());){var je=g.callback;if(typeof je=="function"){g.callback=null,v=g.priorityLevel;var J=je(g.expirationTime<=N);if(N=t.unstable_now(),typeof J=="function"){g.callback=J,B(N),Y=!0;break t}g===n(h)&&a(h),B(N)}else a(h);g=n(h)}if(g!==null)Y=!0;else{var k=n(p);k!==null&&ie(Q,k.startTime-N),Y=!1}}break e}finally{g=null,v=ue,_=!1}Y=void 0}}finally{Y?F():I=!1}}}var F;if(typeof R=="function")F=function(){R(Z)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,_e=te.port2;te.port1.onmessage=Z,F=function(){_e.postMessage(null)}}else F=function(){T(Z,0)};function ie(N,Y){j=T(function(){N(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(N){N.callback=null},t.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<N?Math.floor(1e3/N):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(N){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var ue=v;v=Y;try{return N()}finally{v=ue}},t.unstable_requestPaint=function(){x=!0},t.unstable_runWithPriority=function(N,Y){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var ue=v;v=N;try{return Y()}finally{v=ue}},t.unstable_scheduleCallback=function(N,Y,ue){var je=t.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?je+ue:je):ue=je,N){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=ue+J,N={id:y++,callback:Y,priorityLevel:N,startTime:ue,expirationTime:J,sortIndex:-1},ue>je?(N.sortIndex=ue,e(p,N),n(h)===null&&N===n(p)&&(E?(C(j),j=-1):E=!0,ie(Q,ue-je))):(N.sortIndex=J,e(h,N),w||_||(w=!0,I||(I=!0,F()))),N},t.unstable_shouldYield=ce,t.unstable_wrapCallback=function(N){var Y=v;return function(){var ue=v;v=Y;try{return N.apply(this,arguments)}finally{v=ue}}}})(yh)),yh}var r0;function ST(){return r0||(r0=1,gh.exports=wT()),gh.exports}var vh={exports:{}},Kt={};var s0;function ET(){if(s0)return Kt;s0=1;var t=Rl();function e(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function l(h,p,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:h,containerInfo:p,implementation:y}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Kt.createPortal=function(h,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(e(299));return l(h,p,null,y)},Kt.flushSync=function(h){var p=u.T,y=a.p;try{if(u.T=null,a.p=2,h)return h()}finally{u.T=p,a.p=y,a.d.f()}},Kt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(h,p))},Kt.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},Kt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,_=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?a.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:_}):y==="script"&&a.d.X(h,{crossOrigin:g,integrity:v,fetchPriority:_,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Kt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=d(p.as,p.crossOrigin);a.d.M(h,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}
vendor: 6,360 bytes, lines 2-4
2else p==null&&a.d.M(h)},Kt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin);a.d.L(h,y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Kt.preloadModule=function(h,p){if(typeof h=="string")if(p){var y=d(p.as,p.crossOrigin);a.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(h)},Kt.requestFormReset=function(h){a.d.r(h)},Kt.unstable_batchedUpdates=function(h,p){return h(p)},Kt.useFormState=function(h,p,y){return u.H.useFormState(h,p,y)},Kt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Kt.version="19.2.5",Kt}var a0;function m_(){if(a0)return vh.exports;a0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),vh.exports=ET(),vh.exports}var i0;function TT(){if(i0)return Go;i0=1;var t=ST(),e=Rl(),n=m_();function a(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)s+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var s=r,i=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(i=s.return),r=s.return;while(r)}return s.tag===3?i:null}function u(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function d(r){if(r.tag===31){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function h(r){if(l(r)!==r)throw Error(a(188))}function p(r){var s=r.alternate;if(!s){if(s=l(r),s===null)throw Error(a(188));return s!==r?null:r}for(var i=r,c=s;;){var f=i.return;if(f===null)break;var m=f.alternate;if(m===null){if(c=f.return,c!==null){i=c;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===i)return h(f),r;if(m===c)return h(f),s;m=m.sibling}throw Error(a(188))}if(i.return!==c.return)i=f,c=m;else{for(var b=!1,S=f.child;S;){if(S===i){b=!0,i=f,c=m;break}if(S===c){b=!0,c=f,i=m;break}S=S.sibling}if(!b){for(S=m.child;S;){if(S===i){b=!0,i=m,c=f;break}if(S===c){b=!0,c=m,i=f;break}S=S.sibling}if(!b)throw Error(a(189))}}if(i.alternate!==c)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?r:s}function y(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=y(r),s!==null)return s;r=r.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),R=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function F(r){return r===null||typeof r!="object"?null:(r=Z&&r[Z]||r["@@iterator"],typeof r=="function"?r:null)}var te=Symbol.for("react.client.reference");function _e(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===te?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case E:return"Fragment";case T:return"Profiler";case x:return"StrictMode";case Q:return"Suspense";case I:return"SuspenseList";case X:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case R:return r.displayName||"Context";case C:return(r._context.displayName||"Context")+".Consumer";case B:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case j:return s=r.displayName||null,s!==null?s:_e(r.type)||"Memo";case M:s=r._payload,r=r._init;try{return _e(r(s))}catch{}}return null}var ie=Array.isArray,N=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},je=[],J=-1;function k(r){return{current:r}}function H(r){0>J||(r.current=je[J],je[J]=null,J--)}function V(r,s){J++,je[J]=r.current,r.current=s}var W=k(null),se=k(null),le=k(null),pe=k(null);function be(r,s){switch(V(le,s),V(se,r),V(W,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?wv(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=wv(s),r=Sv(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}H(W),V(W,r)}function Se(){H(W),H(se),H(le)}function kt(r){r.memoizedState!==null&&V(pe,r);var s=W.current,i=Sv(s,r.type);s!==i&&(V(se,r),V(W,i))}function Lt(r){se.current===r&&(H(W),H(se)),pe.current===r&&(H(pe),Bo._currentValue=ue)}var ht,Zr;function Gt(r){if(ht===void 0)try{throw Error()}catch(i){var s=i.stack.trim().match(/\n( *(at )?)/);ht=s&&s[1]||"",Zr=-1<i.stack.indexOf(`
3    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
4`+ht+r+Zr}var Ki=!1;function Ca(r,s){if(!r||Ki)return"";Ki=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(s){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch($){var P=$}Reflect.construct(r,[],K)}else{try{K.call()}catch($){P=$}r.call(K.prototype)}}else{try{throw Error()}catch($){P=$}(K=r())&&typeof K.catch=="function"&&K.catch(function(){})}}
vendor: 5,214 bytes, lines 4-9
4catch($){if($&&P&&typeof $.stack=="string")return[$.stack,P.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=c.DetermineComponentFrameRoot(),b=m[0],S=m[1];if(b&&S){var A=b.split(`
5`),U=S.split(`
6`);for(f=c=0;c<A.length&&!A[c].includes("DetermineComponentFrameRoot");)c++;for(;f<U.length&&!U[f].includes("DetermineComponentFrameRoot");)f++;if(c===A.length||f===U.length)for(c=A.length-1,f=U.length-1;1<=c&&0<=f&&A[c]!==U[f];)f--;for(;1<=c&&0<=f;c--,f--)if(A[c]!==U[f]){if(c!==1||f!==1)do if(c--,f--,0>f||A[c]!==U[f]){var q=`
7`+A[c].replace(" at new "," at ");return r.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",r.displayName)),q}while(1<=c&&0<=f);break}}}finally{Ki=!1,Error.prepareStackTrace=i}return(i=r?r.displayName||r.name:"")?Gt(i):""}function Hs(r,s){switch(r.tag){case 26:case 27:case 5:return Gt(r.type);case 16:return Gt("Lazy");case 13:return r.child!==s&&s!==null?Gt("Suspense Fallback"):Gt("Suspense");case 19:return Gt("SuspenseList");case 0:case 15:return Ca(r.type,!1);case 11:return Ca(r.type.render,!1);case 1:return Ca(r.type,!0);case 31:return Gt("Activity");default:return""}}function Yi(r){try{var s="",i=null;do s+=Hs(r,i),i=r,r=r.return;while(r);return s}catch(c){return`
8Error generating stack: `+c.message+`
9`+c.stack}}var gn=Object.prototype.hasOwnProperty,Qi=t.unstable_scheduleCallback,Ji=t.unstable_cancelCallback,Qt=t.unstable_shouldYield,Kr=t.unstable_requestPaint,Jt=t.unstable_now,ed=t.unstable_getCurrentPriorityLevel,Vs=t.unstable_ImmediatePriority,Dl=t.unstable_UserBlockingPriority,Gs=t.unstable_NormalPriority,Xi=t.unstable_LowPriority,hr=t.unstable_IdlePriority,Ll=t.log,Yr=t.unstable_setDisableYieldValue,Fs=null,Xt=null;function In(r){if(typeof Ll=="function"&&Yr(r),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(Fs,r)}catch{}}var Ft=Math.clz32?Math.clz32:Xn,td=Math.log,Wi=Math.LN2;function Xn(r){return r>>>=0,r===0?32:31-(td(r)/Wi|0)|0}var Na=256,ja=262144,Zs=4194304;function Wn(r){var s=r&42;if(s!==0)return s;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Re(r,s,i){var c=r.pendingLanes;if(c===0)return 0;var f=0,m=r.suspendedLanes,b=r.pingedLanes;r=r.warmLanes;var S=c&134217727;return S!==0?(c=S&~m,c!==0?f=Wn(c):(b&=S,b!==0?f=Wn(b):i||(i=S&~r,i!==0&&(f=Wn(i))))):(S=c&~m,S!==0?f=Wn(S):b!==0?f=Wn(b):i||(i=c&~r,i!==0&&(f=Wn(i)))),f===0?0:s!==0&&s!==f&&(s&m)===0&&(m=f&-f,i=s&-s,m>=i||m===32&&(i&4194048)!==0)?s:f}function ot(r,s){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&s)===0}function Ot(r,s){switch(r){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zt(){var r=Zs;return Zs<<=1,(Zs&62914560)===0&&(Zs=4194304),r}function Qr(r){for(var s=[],i=0;31>i;i++)s.push(r);return s}function ct(r,s){r.pendingLanes|=s,s!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function tn(r,s,i,c,f,m){var b=r.pendingLanes;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=i,r.entangledLanes&=i,r.errorRecoveryDisabledLanes&=i,r.shellSuspendCounter=0;var S=r.entanglements,A=r.expirationTimes,U=r.hiddenUpdates;for(i=b&~i;0<i;){var q=31-Ft(i),K=1<<q;S[q]=0,A[q]=-1;var P=U[q];if(P!==null)for(U[q]=null,q=0;q<P.length;q++){var $=P[q];$!==null&&($.lane&=-536870913)}i&=~K}c!==0&&Ks(r,c,0),m!==0&&f===0&&r.tag!==0&&(r.suspendedLanes|=m&~(b&~s))}function Ks(r,s,i){r.pendingLanes|=s,r.suspendedLanes&=~s;var c=31-Ft(s);r.entangledLanes|=s,r.entanglements[c]=r.entanglements[c]|1073741824|i&261930}function nn(r,s){var i=r.entangledLanes|=s;for(r=r.entanglements;i;){var c=31-Ft(i),f=1<<c;f&s|r[c]&s&&(r[c]|=s),i&=~f}}function rn(r,s){var i=s&-s;return i=(i&42)!==0?1:Da(i),(i&(r.suspendedLanes|s))!==0?0:i}function Da(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Bn(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}
vendor: 8,009 bytes, line 9
9function nd(){var r=Y.p;return r!==0?r:(r=window.event,r===void 0?32:Gv(r.type))}function om(r,s){var i=Y.p;try{return Y.p=r,s()}finally{Y.p=i}}var Jr=Math.random().toString(36).slice(2),Mt="__reactFiber$"+Jr,sn="__reactProps$"+Jr,La="__reactContainer$"+Jr,rd="__reactEvents$"+Jr,a1="__reactListeners$"+Jr,i1="__reactHandles$"+Jr,lm="__reactResources$"+Jr,eo="__reactMarker$"+Jr;function sd(r){delete r[Mt],delete r[sn],delete r[rd],delete r[a1],delete r[i1]}function Ma(r){var s=r[Mt];if(s)return s;for(var i=r.parentNode;i;){if(s=i[La]||i[Mt]){if(i=s.alternate,s.child!==null||i!==null&&i.child!==null)for(r=Ov(r);r!==null;){if(i=r[Mt])return i;r=Ov(r)}return s}r=i,i=r.parentNode}return null}function za(r){if(r=r[Mt]||r[La]){var s=r.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return r}return null}function to(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r.stateNode;throw Error(a(33))}function Ua(r){var s=r[lm];return s||(s=r[lm]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ct(r){r[eo]=!0}var cm=new Set,um={};function Ys(r,s){Pa(r,s),Pa(r+"Capture",s)}function Pa(r,s){for(um[r]=s,r=0;r<s.length;r++)cm.add(s[r])}var o1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dm={},fm={};function l1(r){return gn.call(fm,r)?!0:gn.call(dm,r)?!1:o1.test(r)?fm[r]=!0:(dm[r]=!0,!1)}function Ml(r,s,i){if(l1(s))if(i===null)r.removeAttribute(s);else{switch(typeof i){case"undefined":case"function":case"symbol":r.removeAttribute(s);return;case"boolean":var c=s.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(s);return}}r.setAttribute(s,""+i)}}function zl(r,s,i){if(i===null)r.removeAttribute(s);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttribute(s,""+i)}}function pr(r,s,i,c){if(c===null)r.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttributeNS(s,i,""+c)}}function Rn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function hm(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function c1(r,s,i){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,s);if(!r.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,m=c.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return f.call(this)},set:function(b){i=""+b,m.call(this,b)}}),Object.defineProperty(r,s,{enumerable:c.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function ad(r){if(!r._valueTracker){var s=hm(r)?"checked":"value";r._valueTracker=c1(r,s,""+r[s])}}function pm(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var i=s.getValue(),c="";return r&&(c=hm(r)?r.checked?"true":"false":r.value),r=c,r!==i?(s.setValue(r),!0):!1}function Ul(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var u1=/[\n"\\]/g;function kn(r){return r.replace(u1,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function id(r,s,i,c,f,m,b,S){r.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?r.type=b:r.removeAttribute("type"),s!=null?b==="number"?(s===0&&r.value===""||r.value!=s)&&(r.value=""+Rn(s)):r.value!==""+Rn(s)&&(r.value=""+Rn(s)):b!=="submit"&&b!=="reset"||r.removeAttribute("value"),s!=null?od(r,b,Rn(s)):i!=null?od(r,b,Rn(i)):c!=null&&r.removeAttribute("value"),f==null&&m!=null&&(r.defaultChecked=!!m),f!=null&&(r.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?r.name=""+Rn(S):r.removeAttribute("name")}function mm(r,s,i,c,f,m,b,S){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(r.type=m),s!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||s!=null)){ad(r);return}i=i!=null?""+Rn(i):"",s=s!=null?""+Rn(s):i,S||s===r.value||(r.value=s),r.defaultValue=s}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=S?r.checked:!!c,r.defaultChecked=!!c,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(r.name=b),ad(r)}function od(r,s,i){s==="number"&&Ul(r.ownerDocument)===r||r.defaultValue===""+i||(r.defaultValue=""+i)}function Ia(r,s,i,c){if(r=r.options,s){s={};for(var f=0;f<i.length;f++)s["$"+i[f]]=!0;for(i=0;i<r.length;i++)f=s.hasOwnProperty("$"+r[i].value),r[i].selected!==f&&(r[i].selected=f),f&&c&&(r[i].defaultSelected=!0)}else{for(i=""+Rn(i),s=null,f=0;f<r.length;f++){if(r[f].value===i){r[f].selected=!0,c&&(r[f].defaultSelected=!0);return}s!==null||r[f].disabled||(s=r[f])}s!==null&&(s.selected=!0)}}function gm(r,s,i){if(s!=null&&(s=""+Rn(s),s!==r.value&&(r.value=s),i==null)){r.defaultValue!==s&&(r.defaultValue=s);return}r.defaultValue=i!=null?""+Rn(i):""}function ym(r,s,i,c){if(s==null){if(c!=null){if(i!=null)throw Error(a(92));if(ie(c)){if(1<c.length)throw Error(a(93));c=c[0]}i=c}i==null&&(i=""),s=i}i=Rn(s),r.defaultValue=i,c=r.textContent,c===i&&c!==""&&c!==null&&(r.value=c),ad(r)}function Ba(r,s){if(s){var i=r.firstChild;if(i&&i===r.lastChild&&i.nodeType===3){i.nodeValue=s;return}}r.textContent=s}var d1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vm(r,s,i){var c=s.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?c?r.setProperty(s,""):s==="float"?r.cssFloat="":r[s]="":c?r.setProperty(s,i):typeof i!="number"||i===0||d1.has(s)?s==="float"?r.cssFloat=i:r[s]=(""+i).trim():r[s]=i+"px"}function bm(r,s,i){if(s!=null&&typeof s!="object")throw Error(a(62));if(r=r.style,i!=null){for(var c in i)!i.hasOwnProperty(c)||s!=null&&s.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var f in s)c=s[f],s.hasOwnProperty(f)&&i[f]!==c&&vm(r,f,c)}else for(var m in s)s.hasOwnProperty(m)&&vm(r,m,s[m])}function ld(r){if(r.indexOf("-")===-1)return!1;switch(r){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 f1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
9dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),h1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pl(r){return h1.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function mr(){}var cd=null;function ud(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var $a=null,qa=null;function _m(r){var s=za(r);if(s&&(r=s.stateNode)){var i=r[sn]||null;e:switch(r=s.stateNode,s.type){case"input":if(id(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),s=i.name,i.type==="radio"&&s!=null){for(i=r;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+kn(""+s)+'"][type="radio"]'),s=0;s<i.length;s++){var c=i[s];if(c!==r&&c.form===r.form){var f=c[sn]||null;if(!f)throw Error(a(90));id(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(s=0;s<i.length;s++)c=i[s],c.form===r.form&&pm(c)}break e;case"textarea":gm(r,i.value,i.defaultValue);break e;case"select":s=i.value,s!=null&&Ia(r,!!i.multiple,s,!1)}}}var dd=!1;function wm(r,s,i){if(dd)return r(s,i);dd=!0;try{var c=r(s);return c}finally{if(dd=!1,($a!==null||qa!==null)&&(xc(),$a&&(s=$a,r=qa,qa=$a=null,_m(s),r)))for(s=0;s<r.length;s++)_m(r[s])}}function no(r,s){var i=r.stateNode;if(i===null)return null;var c=i[sn]||null;if(c===null)return null;i=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(i&&typeof i!="function")throw Error(a(231,s,typeof i));return i}var gr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fd=!1;if(gr)try{var ro={};Object.defineProperty(ro,"passive",{get:function(){fd=!0}}),window.addEventListener("test",ro,ro),window.removeEventListener("test",ro,ro)}catch{fd=!1}var Xr=null,hd=null,Il=null;
vendor: 3,315 bytes, line 9
9function Sm(){if(Il)return Il;var r,s=hd,i=s.length,c,f="value"in Xr?Xr.value:Xr.textContent,m=f.length;for(r=0;r<i&&s[r]===f[r];r++);var b=i-r;for(c=1;c<=b&&s[i-c]===f[m-c];c++);return Il=f.slice(r,1<c?1-c:void 0)}function Bl(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function $l(){return!0}function Em(){return!1}function an(r){function s(i,c,f,m,b){this._reactName=i,this._targetInst=f,this.type=c,this.nativeEvent=m,this.target=b,this.currentTarget=null;for(var S in r)r.hasOwnProperty(S)&&(i=r[S],this[S]=i?i(m):m[S]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?$l:Em,this.isPropagationStopped=Em,this}return g(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=$l)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=$l)},persist:function(){},isPersistent:$l}),s}var Qs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ql=an(Qs),so=g({},Qs,{view:0,detail:0}),p1=an(so),pd,md,ao,Hl=g({},so,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yd,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ao&&(ao&&r.type==="mousemove"?(pd=r.screenX-ao.screenX,md=r.screenY-ao.screenY):md=pd=0,ao=r),pd)},movementY:function(r){return"movementY"in r?r.movementY:md}}),Tm=an(Hl),m1=g({},Hl,{dataTransfer:0}),g1=an(m1),y1=g({},so,{relatedTarget:0}),gd=an(y1),v1=g({},Qs,{animationName:0,elapsedTime:0,pseudoElement:0}),b1=an(v1),_1=g({},Qs,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),w1=an(_1),S1=g({},Qs,{data:0}),xm=an(S1),E1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},x1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function A1(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=x1[r])?!!s[r]:!1}function yd(){return A1}var R1=g({},so,{key:function(r){if(r.key){var s=E1[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Bl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?T1[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yd,charCo
vendor: 4,938 bytes, line 9
9de:function(r){return r.type==="keypress"?Bl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Bl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),k1=an(R1),O1=g({},Hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Am=an(O1),C1=g({},so,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yd}),N1=an(C1),j1=g({},Qs,{propertyName:0,elapsedTime:0,pseudoElement:0}),D1=an(j1),L1=g({},Hl,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),M1=an(L1),z1=g({},Qs,{newState:0,oldState:0}),U1=an(z1),P1=[9,13,27,32],vd=gr&&"CompositionEvent"in window,io=null;gr&&"documentMode"in document&&(io=document.documentMode);var I1=gr&&"TextEvent"in window&&!io,Rm=gr&&(!vd||io&&8<io&&11>=io),km=" ",Om=!1;function Cm(r,s){switch(r){case"keyup":return P1.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nm(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ha=!1;function B1(r,s){switch(r){case"compositionend":return Nm(s);case"keypress":return s.which!==32?null:(Om=!0,km);case"textInput":return r=s.data,r===km&&Om?null:r;default:return null}}function $1(r,s){if(Ha)return r==="compositionend"||!vd&&Cm(r,s)?(r=Sm(),Il=hd=Xr=null,Ha=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Rm&&s.locale!=="ko"?null:s.data;default:return null}}var q1={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 jm(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!q1[r.type]:s==="textarea"}function Dm(r,s,i,c){$a?qa?qa.push(c):qa=[c]:$a=c,s=jc(s,"onChange"),0<s.length&&(i=new ql("onChange","change",null,i,c),r.push({event:i,listeners:s}))}var oo=null,lo=null;function H1(r){mv(r,0)}function Vl(r){var s=to(r);if(pm(s))return r}function Lm(r,s){if(r==="change")return s}var Mm=!1;if(gr){var bd;if(gr){var _d="oninput"in document;if(!_d){var zm=document.createElement("div");zm.setAttribute("oninput","return;"),_d=typeof zm.oninput=="function"}bd=_d}else bd=!1;Mm=bd&&(!document.documentMode||9<document.documentMode)}function Um(){oo&&(oo.detachEvent("onpropertychange",Pm),lo=oo=null)}function Pm(r){if(r.propertyName==="value"&&Vl(lo)){var s=[];Dm(s,lo,r,ud(r)),wm(H1,s)}}function V1(r,s,i){r==="focusin"?(Um(),oo=s,lo=i,oo.attachEvent("onpropertychange",Pm)):r==="focusout"&&Um()}function G1(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Vl(lo)}function F1(r,s){if(r==="click")return Vl(s)}function Z1(r,s){if(r==="input"||r==="change")return Vl(s)}function K1(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var yn=typeof Object.is=="function"?Object.is:K1;function co(r,s){if(yn(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var i=Object.keys(r),c=Object.keys(s);if(i.length!==c.length)return!1;for(c=0;c<i.length;c++){var f=i[c];if(!gn.call(s,f)||!yn(r[f],s[f]))return!1}return!0}function Im(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Bm(r,s){var i=Im(r);r=0;for(var c;i;){if(i.nodeType===3){if(c=r+i.textContent.length,r<=s&&c>=s)return{node:i,offset:s-r};r=c}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Im(i)}}function $m(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?$m(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function qm(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var s=Ul(r.document);s instanceof r.HTMLIFrameElement;){try{var i=typeof s.contentWindow.location.href=="string"}catch{i=!1}if(i)r=s.contentWindow;else break;s=Ul(r.document)}return s}function wd(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}var Y1=gr&&"documentMode"in document&&11>=document.documentMode,Va=null,Sd=null,uo=null,Ed=!1;function Hm(r,s,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ed||Va==null||Va!==Ul(c)||(c=Va,"selectionStart"in c&&wd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focu
vendor: 16,665 bytes, line 9
9sNode:c.focusNode,focusOffset:c.focusOffset}),uo&&co(uo,c)||(uo=c,c=jc(Sd,"onSelect"),0<c.length&&(s=new ql("onSelect","select",null,s,i),r.push({event:s,listeners:c}),s.target=Va)))}function Js(r,s){var i={};return i[r.toLowerCase()]=s.toLowerCase(),i["Webkit"+r]="webkit"+s,i["Moz"+r]="moz"+s,i}var Ga={animationend:Js("Animation","AnimationEnd"),animationiteration:Js("Animation","AnimationIteration"),animationstart:Js("Animation","AnimationStart"),transitionrun:Js("Transition","TransitionRun"),transitionstart:Js("Transition","TransitionStart"),transitioncancel:Js("Transition","TransitionCancel"),transitionend:Js("Transition","TransitionEnd")},Td={},Vm={};gr&&(Vm=document.createElement("div").style,"AnimationEvent"in window||(delete Ga.animationend.animation,delete Ga.animationiteration.animation,delete Ga.animationstart.animation),"TransitionEvent"in window||delete Ga.transitionend.transition);function Xs(r){if(Td[r])return Td[r];if(!Ga[r])return r;var s=Ga[r],i;for(i in s)if(s.hasOwnProperty(i)&&i in Vm)return Td[r]=s[i];return r}var Gm=Xs("animationend"),Fm=Xs("animationiteration"),Zm=Xs("animationstart"),Q1=Xs("transitionrun"),J1=Xs("transitionstart"),X1=Xs("transitioncancel"),Km=Xs("transitionend"),Ym=new Map,xd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");xd.push("scrollEnd");function $n(r,s){Ym.set(r,s),Ys(s,[r])}var Gl=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},On=[],Fa=0,Ad=0;function Fl(){for(var r=Fa,s=Ad=Fa=0;s<r;){var i=On[s];On[s++]=null;var c=On[s];On[s++]=null;var f=On[s];On[s++]=null;var m=On[s];if(On[s++]=null,c!==null&&f!==null){var b=c.pending;b===null?f.next=f:(f.next=b.next,b.next=f),c.pending=f}m!==0&&Qm(i,f,m)}}function Zl(r,s,i,c){On[Fa++]=r,On[Fa++]=s,On[Fa++]=i,On[Fa++]=c,Ad|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function Rd(r,s,i,c){return Zl(r,s,i,c),Kl(r)}function Ws(r,s){return Zl(r,null,null,s),Kl(r)}function Qm(r,s,i){r.lanes|=i;var c=r.alternate;c!==null&&(c.lanes|=i);for(var f=!1,m=r.return;m!==null;)m.childLanes|=i,c=m.alternate,c!==null&&(c.childLanes|=i),m.tag===22&&(r=m.stateNode,r===null||r._visibility&1||(f=!0)),r=m,m=m.return;return r.tag===3?(m=r.stateNode,f&&s!==null&&(f=31-Ft(i),r=m.hiddenUpdates,c=r[f],c===null?r[f]=[s]:c.push(s),s.lane=i|536870912),m):null}function Kl(r){if(50<Do)throw Do=0,Uf=null,Error(a(185));for(var s=r.return;s!==null;)r=s,s=r.return;return r.tag===3?r.stateNode:null}var Za={};function W1(r,s,i,c){this.tag=r,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vn(r,s,i,c){return new W1(r,s,i,c)}function kd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function yr(r,s){var i=r.alternate;return i===null?(i=vn(r.tag,s,r.key,r.mode),i.elementType=r.elementType,i.type=r.type,i.stateNode=r.stateNode,i.alternate=r,r.alternate=i):(i.pendingProps=s,i.type=r.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=r.flags&65011712,i.childLanes=r.childLanes,i.lanes=r.lanes,i.child=r.child,i.memoizedProps=r.memoizedProps,i.memoizedState=r.memoizedState,i.updateQueue=r.updateQueue,s=r.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},i.sibling=r.sibling,i.index=r.index,i.ref=r.ref,i.refCleanup=r.refCleanup,i}function Jm(r,s){r.flags&=65011714;var i=r.alternate;return i===null?(r.childLanes=0,r.lanes=s,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=i.childLanes,r.lanes=i.lanes,r.child=i.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=i.memoizedProps,r.memoizedState=i.memoizedState,r.updateQueue=i.updateQueue,r.type=i.type,s=i.dependencies,r.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),r}function Yl(r,s,i,c,f,m){var b=0;if(c=r,typeof r=="function")kd(r)&&(b=1);else if(typeof r=="string")b=sT(r,i,W.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case X:return r=vn(31,i,s,f),r.elementType=X,r.lanes=m,r;case E:return ea(i.children,f,m,s);case x:b=8,f|=24;break;case T:return r=vn(12,i,s,f|2),r.elementType=T,r.lanes=m,r;case Q:return r=vn(13,i,s,f),r.elementType=Q,r.lanes=m,r;case I:return r=vn(19,i,s,f),r.elementType=I,r.lanes=m,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case R:b=10;break e;case C:b=9;break e;case B:b=11;break e;case j:b=14;break e;case M:b=16,c=null;break e}b=29,i=Error(a(130,r===null?"null":typeof r,"")),c=null}return s=vn(b,i,s,f),s.elementType=r,s.type=c,s.lanes=m,s}function ea(r,s,i,c){return r=vn(7,r,c,s),r.lanes=i,r}function Od(r,s,i){return r=vn(6,r,null,s),r.lanes=i,r}function Xm(r){var s=vn(18,null,null,0);return s.stateNode=r,s}function Cd(r,s,i){return s=vn(4,r.children!==null?r.children:[],r.key,s),s.lanes=i,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}var Wm=new WeakMap;function Cn(r,s){if(typeof r=="object"&&r!==null){var i=Wm.get(r);return i!==void 0?i:(s={value:r,source:s,stack:Yi(s)},Wm.set(r,s),s)}return{value:r,source:s,stack:Yi(s)}}var Ka=[],Ya=0,Ql=null,fo=0,Nn=[],jn=0,Wr=null,er=1,tr="";function vr(r,s){Ka[Ya++]=fo,Ka[Ya++]=Ql,Ql=r,fo=s}function eg(r,s,i){Nn[jn++]=er,Nn[jn++]=tr,Nn[jn++]=Wr,Wr=r;var c=er;r=tr;var f=32-Ft(c)-1;c&=~(1<<f),i+=1;var m=32-Ft(s)+f;if(30<m){var b=f-f%5;m=(c&(1<<b)-1).toString(32),c>>=b,f-=b,er=1<<32-Ft(s)+f|i<<f|c,tr=m+r}else er=1<<m|i<<f|c,tr=r}function Nd(r){r.return!==null&&(vr(r,1),eg(r,1,0))}function jd(r){for(;r===Ql;)Ql=Ka[--Ya],Ka[Ya]=null,fo=Ka[--Ya],Ka[Ya]=null;for(;r===Wr;)Wr=Nn[--jn],Nn[jn]=null,tr=Nn[--jn],Nn[jn]=null,er=Nn[--jn],Nn[jn]=null}function tg(r,s){Nn[jn++]=er,Nn[jn++]=tr,Nn[jn++]=Wr,er=s.id,tr=s.overflow,Wr=r}var zt=null,at=null,$e=!1,es=null,Dn=!1,Dd=Error(a(519));function ts(r){var s=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ho(Cn(s,r)),Dd}function ng(r){var s=r.stateNode,i=r.type,c=r.memoizedProps;switch(s[Mt]=r,s[sn]=c,i){case"dialog":Pe("cancel",s),Pe("close",s);break;case"iframe":case"object":case"embed":Pe("load",s);break;case"video":case"audio":for(i=0;i<Mo.length;i++)Pe(Mo[i],s);break;case"source":Pe("error",s);break;case"img":case"image":case"link":Pe("error",s),Pe("load",s);break;case"details":Pe("toggle",s);break;case"input":Pe("invalid",s),mm(s,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Pe("invalid",s);break;case"textarea":Pe("invalid",s),ym(s,c.value,c.defaultValue,c.children)}i=c.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||s.textContent===""+i||c.suppressHydrationWarning===!0||bv(s.textContent,i)?(c.popover!=null&&(Pe("beforetoggle",s),Pe("toggle",s)),c.onScroll!=null&&Pe("scroll",s),c.onScrollEnd!=null&&Pe("scrollend",s),c.onClick!=null&&(s.onclick=mr),s=!0):s=!1,s||ts(r,!0)}function rg(r){for(zt=r.return;zt;)switch(zt.tag){case 5:case 31:case 13:Dn=!1;return;case 27:case 3:Dn=!0;return;default:zt=zt.return}}function Qa(r){if(r!==zt)return!1;if(!$e)return rg(r),$e=!0,!1;var s=r.tag,i;if((i=s!==3&&s!==27)&&((i=s===5)&&(i=r.type,i=!(i!=="form"&&i!=="button")||Xf(r.type,r.memoizedProps)),i=!i),i&&at&&ts(r),rg(r),s===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));at=kv(r)}else if(s===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));at=kv(r)}else s===27?(s=at,ms(r.type)?(r=rh,rh=null,at=r):at=s):at=zt?Mn(r.stateNode.nextSibling):null;return!0}function ta(){at=zt=null,$e=!1}function Ld(){var r=es;return r!==null&&(un===null?un=r:un.push.apply(un,r),es=null),r}function ho(r){es===null?es=[r]:es.push(r)}var Md=k(null),na=null,br=null;function ns(r,s,i){V(Md,s._currentValue),s._currentValue=i}function _r(r){r._currentValue=Md.current,H(Md)}function zd(r,s,i){for(;r!==null;){var c=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),r===i)break;r=r.return}}function Ud(r,s,i,c){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var m=f.dependencies;if(m!==null){var b=f.child;m=m.firstContext;e:for(;m!==null;){var S=m;m=f;for(var A=0;A<s.length;A++)if(S.context===s[A]){m.lanes|=i,S=m.alternate,S!==null&&(S.lanes|=i),zd(m.return,i,r),c||(b=null);break e}m=S.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(a(341));b.lanes|=i,m=b.alternate,m!==null&&(m.lanes|=i),zd(b,i,r),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===r){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function Ja(r,s,i,c){r=null;for(var f=s,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var S=f.type;yn(f.pendingProps.value,b.value)||(r!==null?r.push(S):r=[S])}}else if(f===pe.current){if(b=f.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(r!==null?r.push(Bo):r=[Bo])}f=f.return}r!==null&&Ud(s,r,i,c),s.flags|=262144}function Jl(r){for(r=r.firstContext;r!==null;){if(!yn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ra(r){na=r,br=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ut(r){return sg(na,r)}function Xl(r,s){return na===null&&ra(r),sg(r,s)}function sg(r,s){var i=s._currentValue;if(s={context:s,memoizedValue:i,next:null},br===null){if(r===null)throw Error(a(308));br=s,r.dependencies={lanes:0,firstContext:s},r.flags|=524288}else br=br.next=s;return i}var eE=typeof AbortController<"u"?AbortController:function(){var r=[],s=this.signal={aborted:!1,addEventListener:function(i,c){r.push(c)}};this.abort=function(){s.aborted=!0,r.forEach(function(i){return i()})}},tE=t.unstable_scheduleCallback,nE=t.unstable_NormalPriority,yt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pd(){return{controller:new eE,data:new Map,refCount:0}}function po(r){r.refCount--,r.refCount===0&&tE(nE,function(){r.controller.abort()})}var mo=null,Id=0,Xa=0,Wa=null;function rE(r,s){if(mo===null){var i=mo=[];Id=0,Xa=Hf(),Wa={status:"pending",value:void 0,then:function(c){i.push(c)}}}return Id++,s.then(ag,ag),s}function ag(){if(--Id===0&&mo!==null){Wa!==null&&(Wa.status="fulfilled");var r=mo;mo=null,Xa=0,Wa=null;for(var s=0;s<r.length;s++)(0,r[s])()}}function sE(r,s){var i=[],c={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return r.then(function(){c.status="fulfilled",c.value=s;for(var f=0;f<i.length;f++)(0,i[f])(s)},function(f){for(c.status="rejected",c.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),c}var ig=N.S;N.S=function(r,s){Hy=Jt(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&rE(r,s),ig!==null&&ig(r,s)};var sa=k(null);function Bd(){var r=sa.current;return r!==null?r:nt.pooledCache}function Wl(r,s){s===null?V(sa,sa.current):V(sa,s.pool)}function og(){var r=Bd();return r===null?null:{parent:yt._currentValue,pool:r}}var ei=Error(a(460)),$d=Error(a(474)),ec=Error(a(542)),tc={then:function(){}};function lg(r){return r=r.status,r==="fulfilled"||r==="rejected"}function cg(r,s,i){switch(i=r[i],i===void 0?r.push(s):i!==s&&(s.then(mr,mr),s=i),s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,dg(r),r;default:if(typeof s.status=="string")s.then(mr,mr);else{if(r=nt,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=s,r.status="pending",r.then(function(c){if(s.status==="pending"){var f=s;f.status="fulfilled",f.value=c}},function(c){if(s.status==="pending"){var f=s;f.status="rejected",f.reason=c}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,dg(r),r}throw ia=s,ei}}function aa(r){try{var s=r._init;return s(r._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ia=i,ei):i}}var ia=null;function ug(){if(ia===null)throw Error(a(459));var r=ia;return ia=null,r}function dg(r){if(r===ei||r===ec)throw Error(a(483))}var ti=null,go=0;function nc(r){var s=go;return go+=1,ti===null&&(ti=[]),cg(ti,r,s)}function yo(r,s){s=s.props.ref,r.ref=s!==void 0?s:null}function rc(r,s){throw s.$$typeof===v?Error(a(525)):(r=Object.prototype.toString.call(s),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r)))}function fg(r){function s(L,O){if(r){var z=L.deletions;z===null?(L.deletions=[O],L.flags|=16):z.push(O)}}function i(L,O){if(!r)return null;for(;O!==null;)s(L,O),O=O.sibling;return null}function c(L){for(var O=new Map;L!==null;)L.key!==null?O.set(L.key,L):O.set(L.index,L),L=L.sibling;return O}function f(L,O){return L=yr(L,O),L.index=0,L.sibling=null,L}function m(L,O,z){return L.index=z,r?(z=L.alternate,z!==null?(z=z.index,z<O?(L.flags|=67108866,O):z):(L.flags|=67108866,O)):(L.flags|=1048576,O)}function b(L){return r&&L.alternate===null&&(L.flags|=67108866),L}function S(L,O,z,G){return O===null||O.tag!==6?(O=Od(z,L.mode,G),O.return=L,O):(O=f(O,z),O.return=L,O)}function A(L,O,z,G){var we=z.type;return we===E?q(L,O,z.props.children,G,z.key):O!==null&&(O.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===M&&aa(we)===O.type)?(O=f(O,z.props),yo(O,z),O.return=L,O):(O=Yl(z.type,z.key,z.props,null,L.mode,G),yo(O,z),O.return=L,O)}function U(L,O,z,G){return O===null||O.tag!==4||O.stateNode.containerInfo!==z.containerInfo||O.stateNode.implementation!==z.implementation?(O=Cd(z,L.mode,G),O.return=L,O):(O=f(O,z.children||[]),O.return=L,O)}function q(L,O,z,G,we){return O===null||O.tag!==7?(O=ea(z,L.mode,G,we),O.return=L,O):(O=f(O,z),O.return=L,O)}function K(L,O,z){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Od(""+O,L.mode,z),O.return=L,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case _:return z=Yl(O.type,O.key,O.props,null,L.mode,z),yo(z,O),z.return=L,z;case w:return O=Cd(O,L.mode,z),O.return=L,O;case M:return O=aa(O),K(L,O,z)}if(ie(O)||F(O))return O=ea(O,L.mode,z,null),O.return=L,O;if(typeof O.then=="function")return K(L,nc(O),z);if(O.$$typeof===R)return K(L,Xl(L,O),z);rc(L,O)}return null}function P(L,O,z,G){var we=O!==null?O.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return we!==null?null:S(L,O,""+z,G);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case _:return z.key===we?A(L,O,z,G):null;case w:return z.key===we?U(L,O,z,G):null;case M:return z=aa(z),P(L,O,z,G)}if(ie(z)||F(z))return we!==null?null:q(L,O,z,G,null);if(typeof z.then=="function")return P(L,O,nc(z),G);if(z.$$typeof===R)return P(L,O,Xl(L,z),G);rc(L,z)}return null}function $(L,O,z,G,we){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return L=L.get(z)||null,S(O,L,""+G,we);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case _:return L=L.get(G.key===null?z:G.key)||null,A(O,L,G,we);case w:return L=L.get(G.key===null?z:G.key)||null,U(O,L,G,we);case M:return G=aa(G),$(L,O,z,G,we)}if(ie(G)||F(G))return L=L.get(z)||null,q(O,L,G,we,null);if(typeof G.then=="function")return $(L,O,z,nc(G),we);if(G.$$typeof===R)return $(L,O,z,Xl(O,G),we);rc(O,G)}return null}function de(L,O,z,G){for(var we=null,Ve=null,ye=O,Le=O=0,Be=null;ye!==null&&Le<z.length;Le++){ye.index>Le?(Be=ye,ye=null):Be=ye.sibling;var Ge=P(L,ye,z[Le],G);if(Ge===null){ye===null&&(ye=Be);break}r&&ye&&Ge.alternate===null&&s(L,ye),O=m(Ge,O,Le),Ve===null?we=Ge:Ve.sibling=Ge,Ve=Ge,ye=Be}if(Le===z.length)return i(L,ye),$e&&vr(L,Le),we;if(ye===null){for(;Le<z.length;
vendor: 3,930 bytes, line 9
9Le++)ye=K(L,z[Le],G),ye!==null&&(O=m(ye,O,Le),Ve===null?we=ye:Ve.sibling=ye,Ve=ye);return $e&&vr(L,Le),we}for(ye=c(ye);Le<z.length;Le++)Be=$(ye,L,Le,z[Le],G),Be!==null&&(r&&Be.alternate!==null&&ye.delete(Be.key===null?Le:Be.key),O=m(Be,O,Le),Ve===null?we=Be:Ve.sibling=Be,Ve=Be);return r&&ye.forEach(function(_s){return s(L,_s)}),$e&&vr(L,Le),we}function Ee(L,O,z,G){if(z==null)throw Error(a(151));for(var we=null,Ve=null,ye=O,Le=O=0,Be=null,Ge=z.next();ye!==null&&!Ge.done;Le++,Ge=z.next()){ye.index>Le?(Be=ye,ye=null):Be=ye.sibling;var _s=P(L,ye,Ge.value,G);if(_s===null){ye===null&&(ye=Be);break}r&&ye&&_s.alternate===null&&s(L,ye),O=m(_s,O,Le),Ve===null?we=_s:Ve.sibling=_s,Ve=_s,ye=Be}if(Ge.done)return i(L,ye),$e&&vr(L,Le),we;if(ye===null){for(;!Ge.done;Le++,Ge=z.next())Ge=K(L,Ge.value,G),Ge!==null&&(O=m(Ge,O,Le),Ve===null?we=Ge:Ve.sibling=Ge,Ve=Ge);return $e&&vr(L,Le),we}for(ye=c(ye);!Ge.done;Le++,Ge=z.next())Ge=$(ye,L,Le,Ge.value,G),Ge!==null&&(r&&Ge.alternate!==null&&ye.delete(Ge.key===null?Le:Ge.key),O=m(Ge,O,Le),Ve===null?we=Ge:Ve.sibling=Ge,Ve=Ge);return r&&ye.forEach(function(mT){return s(L,mT)}),$e&&vr(L,Le),we}function We(L,O,z,G){if(typeof z=="object"&&z!==null&&z.type===E&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case _:e:{for(var we=z.key;O!==null;){if(O.key===we){if(we=z.type,we===E){if(O.tag===7){i(L,O.sibling),G=f(O,z.props.children),G.return=L,L=G;break e}}else if(O.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===M&&aa(we)===O.type){i(L,O.sibling),G=f(O,z.props),yo(G,z),G.return=L,L=G;break e}i(L,O);break}else s(L,O);O=O.sibling}z.type===E?(G=ea(z.props.children,L.mode,G,z.key),G.return=L,L=G):(G=Yl(z.type,z.key,z.props,null,L.mode,G),yo(G,z),G.return=L,L=G)}return b(L);case w:e:{for(we=z.key;O!==null;){if(O.key===we)if(O.tag===4&&O.stateNode.containerInfo===z.containerInfo&&O.stateNode.implementation===z.implementation){i(L,O.sibling),G=f(O,z.children||[]),G.return=L,L=G;break e}else{i(L,O);break}else s(L,O);O=O.sibling}G=Cd(z,L.mode,G),G.return=L,L=G}return b(L);case M:return z=aa(z),We(L,O,z,G)}if(ie(z))return de(L,O,z,G);if(F(z)){if(we=F(z),typeof we!="function")throw Error(a(150));return z=we.call(z),Ee(L,O,z,G)}if(typeof z.then=="function")return We(L,O,nc(z),G);if(z.$$typeof===R)return We(L,O,Xl(L,z),G);rc(L,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,O!==null&&O.tag===6?(i(L,O.sibling),G=f(O,z),G.return=L,L=G):(i(L,O),G=Od(z,L.mode,G),G.return=L,L=G),b(L)):i(L,O)}return function(L,O,z,G){try{go=0;var we=We(L,O,z,G);return ti=null,we}catch(ye){if(ye===ei||ye===ec)throw ye;var Ve=vn(29,ye,null,L.mode);return Ve.lanes=G,Ve.return=L,Ve}}}var oa=fg(!0),hg=fg(!1),rs=!1;function qd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hd(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ss(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function as(r,s,i){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Ze&2)!==0){var f=c.pending;return f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s,s=Kl(r),Qm(r,null,i),s}return Zl(r,c,s,i),Kl(r)}function vo(r,s,i){if(s=s.updateQueue,s!==null&&(s=s.shared,(i&4194048)!==0)){var c=s.lanes;c&=r.pendingLanes,i|=c,s.lanes=i,nn(r,i)}}function Vd(r,s){var i=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,i===c)){var f=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?f=m=b:m=m.next=b,i=i.next}while(i!==null);m===null?f=m=s:m=m.next=s}else f=m=s;i={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:c.shared,callbacks:c.callbacks},r.updateQueue=i;return}
vendor: 4,141 bytes, line 9
9r=i.lastBaseUpdate,r===null?i.firstBaseUpdate=s:r.next=s,i.lastBaseUpdate=s}var Gd=!1;function bo(){if(Gd){var r=Wa;if(r!==null)throw r}}function _o(r,s,i,c){Gd=!1;var f=r.updateQueue;rs=!1;var m=f.firstBaseUpdate,b=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var A=S,U=A.next;A.next=null,b===null?m=U:b.next=U,b=A;var q=r.alternate;q!==null&&(q=q.updateQueue,S=q.lastBaseUpdate,S!==b&&(S===null?q.firstBaseUpdate=U:S.next=U,q.lastBaseUpdate=A))}if(m!==null){var K=f.baseState;b=0,q=U=A=null,S=m;do{var P=S.lane&-536870913,$=P!==S.lane;if($?(Ie&P)===P:(c&P)===P){P!==0&&P===Xa&&(Gd=!0),q!==null&&(q=q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var de=r,Ee=S;P=s;var We=i;switch(Ee.tag){case 1:if(de=Ee.payload,typeof de=="function"){K=de.call(We,K,P);break e}K=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=Ee.payload,P=typeof de=="function"?de.call(We,K,P):de,P==null)break e;K=g({},K,P);break e;case 2:rs=!0}}P=S.callback,P!==null&&(r.flags|=64,$&&(r.flags|=8192),$=f.callbacks,$===null?f.callbacks=[P]:$.push(P))}else $={lane:P,tag:S.tag,payload:S.payload,callback:S.callback,next:null},q===null?(U=q=$,A=K):q=q.next=$,b|=P;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;$=S,S=$.next,$.next=null,f.lastBaseUpdate=$,f.shared.pending=null}}while(!0);q===null&&(A=K),f.baseState=A,f.firstBaseUpdate=U,f.lastBaseUpdate=q,m===null&&(f.shared.lanes=0),us|=b,r.lanes=b,r.memoizedState=K}}function pg(r,s){if(typeof r!="function")throw Error(a(191,r));r.call(s)}function mg(r,s){var i=r.callbacks;if(i!==null)for(r.callbacks=null,r=0;r<i.length;r++)pg(i[r],s)}var ni=k(null),sc=k(0);function gg(r,s){r=Or,V(sc,r),V(ni,s),Or=r|s.baseLanes}function Fd(){V(sc,Or),V(ni,ni.current)}function Zd(){Or=sc.current,H(ni),H(sc)}var bn=k(null),Ln=null;function is(r){var s=r.alternate;V(pt,pt.current&1),V(bn,r),Ln===null&&(s===null||ni.current!==null||s.memoizedState!==null)&&(Ln=r)}function Kd(r){V(pt,pt.current),V(bn,r),Ln===null&&(Ln=r)}function yg(r){r.tag===22?(V(pt,pt.current),V(bn,r),Ln===null&&(Ln=r)):os()}function os(){V(pt,pt.current),V(bn,bn.current)}function _n(r){H(bn),Ln===r&&(Ln=null),H(pt)}var pt=k(0);function ac(r){for(var s=r;s!==null;){if(s.tag===13){var i=s.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||th(i)||nh(i)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var wr=0,De=null,Je=null,vt=null,ic=!1,ri=!1,la=!1,oc=0,wo=0,si=null,aE=0;function ut(){throw Error(a(321))}function Yd(r,s){if(s===null)return!1;for(var i=0;i<s.length&&i<r.length;i++)if(!yn(r[i],s[i]))return!1;return!0}function Qd(r,s,i,c,f,m){return wr=m,De=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,N.H=r===null||r.memoizedState===null?ey:ff,la=!1,m=i(c,f),la=!1,ri&&(m=bg(s,i,c,f)),vg(r),m}function vg(r){N.H=To;var s=Je!==null&&Je.next!==null;if(wr=0,vt=Je=De=null,ic=!1,wo=0,si=null,s)throw Error(a(300));r===null||bt||(r=r.dependencies,r!==null&&Jl(r)&&(bt=!0))}function bg(r,s,i,c){De=r;var f=0;do{if(ri&&(si=null),wo=0,ri=!1,25<=f)throw Error(a(301));if(f+=1,vt=Je=null,r.updateQueue!=null){var m=r.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}N.H=ty,m=s(i,c)}while(ri);return m}function iE(){var r=N.H,s=r.useState()[0];return s=typeof s.then=="function"?So(s):s,r=r.useState()[0],(Je!==null?Je.memoizedState:null)!==r&&(De.flags|=1024),s}function Jd(){var r=oc!==0;return oc=0,r}function Xd(r,s,i){s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~i}function Wd(r){if(ic){for(r=r.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}ic=!1}wr=0,vt=Je=De=null,ri=!1,wo=oc=0,si=null}function Wt(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};
vendor: 9,762 bytes, line 9
9return vt===null?De.memoizedState=vt=r:vt=vt.next=r,vt}function mt(){if(Je===null){var r=De.alternate;r=r!==null?r.memoizedState:null}else r=Je.next;var s=vt===null?De.memoizedState:vt.next;if(s!==null)vt=s,Je=r;else{if(r===null)throw De.alternate===null?Error(a(467)):Error(a(310));Je=r,r={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},vt===null?De.memoizedState=vt=r:vt=vt.next=r}return vt}function lc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function So(r){var s=wo;return wo+=1,si===null&&(si=[]),r=cg(si,r,s),s=De,(vt===null?s.memoizedState:vt.next)===null&&(s=s.alternate,N.H=s===null||s.memoizedState===null?ey:ff),r}function cc(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return So(r);if(r.$$typeof===R)return Ut(r)}throw Error(a(438,String(r)))}function ef(r){var s=null,i=De.updateQueue;if(i!==null&&(s=i.memoCache),s==null){var c=De.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(s={data:c.data.map(function(f){return f.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),i===null&&(i=lc(),De.updateQueue=i),i.memoCache=s,i=s.data[s.index],i===void 0)for(i=s.data[s.index]=Array(r),c=0;c<r;c++)i[c]=ce;return s.index++,i}function Sr(r,s){return typeof s=="function"?s(r):s}function uc(r){var s=mt();return tf(s,Je,r)}function tf(r,s,i){var c=r.queue;if(c===null)throw Error(a(311));c.lastRenderedReducer=i;var f=r.baseQueue,m=c.pending;if(m!==null){if(f!==null){var b=f.next;f.next=m.next,m.next=b}s.baseQueue=f=m,c.pending=null}if(m=r.baseState,f===null)r.memoizedState=m;else{s=f.next;var S=b=null,A=null,U=s,q=!1;do{var K=U.lane&-536870913;if(K!==U.lane?(Ie&K)===K:(wr&K)===K){var P=U.revertLane;if(P===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),K===Xa&&(q=!0);else if((wr&P)===P){U=U.next,P===Xa&&(q=!0);continue}else K={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(S=A=K,b=m):A=A.next=K,De.lanes|=P,us|=P;K=U.action,la&&i(m,K),m=U.hasEagerState?U.eagerState:i(m,K)}else P={lane:K,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(S=A=P,b=m):A=A.next=P,De.lanes|=K,us|=K;U=U.next}while(U!==null&&U!==s);if(A===null?b=m:A.next=S,!yn(m,r.memoizedState)&&(bt=!0,q&&(i=Wa,i!==null)))throw i;r.memoizedState=m,r.baseState=b,r.baseQueue=A,c.lastRenderedState=m}return f===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function nf(r){var s=mt(),i=s.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=r;var c=i.dispatch,f=i.pending,m=s.memoizedState;if(f!==null){i.pending=null;var b=f=f.next;do m=r(m,b.action),b=b.next;while(b!==f);yn(m,s.memoizedState)||(bt=!0),s.memoizedState=m,s.baseQueue===null&&(s.baseState=m),i.lastRenderedState=m}return[m,c]}function _g(r,s,i){var c=De,f=mt(),m=$e;if(m){if(i===void 0)throw Error(a(407));i=i()}else i=s();var b=!yn((Je||f).memoizedState,i);if(b&&(f.memoizedState=i,bt=!0),f=f.queue,af(Eg.bind(null,c,f,r),[r]),f.getSnapshot!==s||b||vt!==null&&vt.memoizedState.tag&1){if(c.flags|=2048,ai(9,{destroy:void 0},Sg.bind(null,c,f,i,s),null),nt===null)throw Error(a(349));m||(wr&127)!==0||wg(c,s,i)}return i}function wg(r,s,i){r.flags|=16384,r={getSnapshot:s,value:i},s=De.updateQueue,s===null?(s=lc(),De.updateQueue=s,s.stores=[r]):(i=s.stores,i===null?s.stores=[r]:i.push(r))}function Sg(r,s,i,c){s.value=i,s.getSnapshot=c,Tg(s)&&xg(r)}function Eg(r,s,i){return i(function(){Tg(s)&&xg(r)})}function Tg(r){var s=r.getSnapshot;r=r.value;try{var i=s();return!yn(r,i)}catch{return!0}}function xg(r){var s=Ws(r,2);s!==null&&dn(s,r,2)}function rf(r){var s=Wt();if(typeof r=="function"){var i=r;if(r=i(),la){In(!0);try{i()}finally{In(!1)}}}return s.memoizedState=s.baseState=r,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:r},s}function Ag(r,s,i,c){return r.baseState=i,tf(r,Je,typeof c=="function"?c:Sr)}function oE(r,s,i,c,f){if(hc(r))throw Error(a(485));if(r=s.action,r!==null){var m={payload:f,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){m.listeners.push(b)}};N.T!==null?i(!0):m.isTransition=!1,c(m),i=s.pending,i===null?(m.next=s.pending=m,Rg(s,m)):(m.next=i.next,s.pending=i.next=m)}}function Rg(r,s){var i=s.action,c=s.payload,f=r.state;if(s.isTransition){var m=N.T,b={};N.T=b;try{var S=i(f,c),A=N.S;A!==null&&A(b,S),kg(r,s,S)}catch(U){sf(r,s,U)}finally{m!==null&&b.types!==null&&(m.types=b.types),N.T=m}}else try{m=i(f,c),kg(r,s,m)}catch(U){sf(r,s,U)}}function kg(r,s,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(c){Og(r,s,c)},function(c){return sf(r,s,c)}):Og(r,s,i)}function Og(r,s,i){s.status="fulfilled",s.value=i,Cg(s),r.state=i,s=r.pending,s!==null&&(i=s.next,i===s?r.pending=null:(i=i.next,s.next=i,Rg(r,i)))}function sf(r,s,i){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do s.status="rejected",s.reason=i,Cg(s),s=s.next;while(s!==c)}r.action=null}function Cg(r){r=r.listeners;for(var s=0;s<r.length;s++)(0,r[s])()}function Ng(r,s){return s}function jg(r,s){if($e){var i=nt.formState;if(i!==null){e:{var c=De;if($e){if(at){t:{for(var f=at,m=Dn;f.nodeType!==8;){if(!m){f=null;break t}if(f=Mn(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){at=Mn(f.nextSibling),c=f.data==="F!";break e}}ts(c)}c=!1}c&&(s=i[0])}}return i=Wt(),i.memoizedState=i.baseState=s,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ng,lastRenderedState:s},i.queue=c,i=Jg.bind(null,De,c),c.dispatch=i,c=rf(!1),m=df.bind(null,De,!1,c.queue),c=Wt(),f={state:s,dispatch:null,action:r,pending:null},c.queue=f,i=oE.bind(null,De,f,m,i),f.dispatch=i,c.memoizedState=r,[s,i,!1]}function Dg(r){var s=mt();return Lg(s,Je,r)}function Lg(r,s,i){if(s=tf(r,s,Ng)[0],r=uc(Sr)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var c=So(s)}catch(b){throw b===ei?ec:b}else c=s;s=mt();var f=s.queue,m=f.dispatch;return i!==s.memoizedState&&(De.flags|=2048,ai(9,{destroy:void 0},lE.bind(null,f,i),null)),[c,m,r]}function lE(r,s){r.action=s}function Mg(r){var s=mt(),i=Je;if(i!==null)return Lg(s,i,r);mt(),s=s.memoizedState,i=mt();var c=i.queue.dispatch;return i.memoizedState=r,[s,c,!1]}function ai(r,s,i,c){return r={tag:r,create:i,deps:c,inst:s,next:null},s=De.updateQueue,s===null&&(s=lc(),De.updateQueue=s),i=s.lastEffect,i===null?s.lastEffect=r.next=r:(c=i.next,i.next=r,r.next=c,s.lastEffect=r),r}function zg(){return mt().memoizedState}function dc(r,s,i,c){var f=Wt();De.flags|=r,f.memoizedState=ai(1|s,{destroy:void 0},i,c===void 0?null:c)}function fc(r,s,i,c){var f=mt();c=c===void 0?null:c;var m=f.memoizedState.inst;Je!==null&&c!==null&&Yd(c,Je.memoizedState.deps)?f.memoizedState=ai(s,m,i,c):(De.flags|=r,f.memoizedState=ai(1|s,m,i,c))}function Ug(r,s){dc(8390656,8,r,s)}function af(r,s){fc(2048,8,r,s)}function cE(r){De.flags|=4;var s=De.updateQueue;if(s===null)s=lc(),De.updateQueue=s,s.events=[r];else{var i=s.events;i===null?s.events=[r]:i.push(r)}}function Pg(r){var s=mt().memoizedState;return cE({ref:s,nextImpl:r}),function(){if((Ze&2)!==0)throw Error(a(440));return s.impl.apply(void 0,arguments)}}function Ig(r,s){return fc(4,2,r,s)}function Bg(r,s){return fc(4,4,r,s)}function $g(r,s){if(typeof s=="function"){r=r();var i=s(r);return function(){typeof i=="function"?i():s(null)}}if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function qg(r,s,i){i=i!=null?i.concat([r]):null,fc(4,4,$g.bind(null,s,r),i)}function of(){}function Hg(r,s){var i=mt();s=s===void 0?null:s;var c=i.memoizedState;return s!==null&&Yd(s,c[1])?c[0]:(i.memoizedState=[r,s],r)}function Vg(r,s){var i=mt();s=s===void 0?null:s;var c=i.memoizedState;if(s!==null&&Yd(s,c[1]))return c[0];if(c=r(),la){In(!0);try{r()}finally{In(!1)}}return i.memoizedState=[c,s],c}function lf(r,s,i){return i===void 0||(wr&1073741824)!==0&&(Ie&261930)===0?r.memoizedState=s:(r.memoizedState=i,r=Gy(),De.lanes|=r,us|=r,i)}function Gg(r,s,i,c){return yn(i,s)?i:ni.current!==null?(r=lf(r,i,c),yn(r,s)||(bt=!0),r):(wr&42)===0||(wr&1073741824)!==0&&(Ie&261930)===0?(bt=!0,r.memoizedState=i):(r=Gy(),De.lanes|=r,us|=r,s)}function Fg(r,s,i,c,f){var m=Y.p;Y.p=m!==0&&8>m?m:8;var b=N.T,S={};N.T=S,df(r,!1,s,i);try{var A=f(),U=N.S;if(U!==null&&U(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var q=sE(A,c);Eo(r,s,q,En(r))}else Eo(r,s,c,En(r))}catch(K){Eo(r,s,{then:function(){},status:"rejected",reason:K},En())}finally{Y.p=m,b!==null&&S.types!==null&&(b.types=S.types),N.T=b}}function uE(){}function cf(r,s,i,c){if(r.tag!==5)throw Error(a(476));var f=Zg(r).queue;Fg(r,f,s,ue,i===null?uE:function(){return Kg(r),i(c)})}function Zg(r){var s=r.memoizedState;if(s!==null)return s;s={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:ue},next:null};var i={};return s.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:i},next:null},r.memoizedState=s,r=r.alternate,r!==null&&(r.memoizedState=s),s}function Kg(r){var s=Zg(r);s.next===null&&(s=r.alternate.memoizedState),Eo(r,s.next.queue,{},En())}function uf(){return Ut(Bo)}function Yg(){return mt().memoizedState}function Qg(){return mt().memoizedState}function dE(r){for(var s=r.return;s!==null;){switch(s.tag){case 24:case 3:var i=En();r=ss(i);var c=as(s,r,i);c!==null&&(dn(c,s,i),vo(c,s,i)),s={cache:Pd()},r.payload=s;return}s=s.return}}function fE(r,s,i){var c=En();i={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null}
vendor: 5,956 bytes, line 9
9,hc(r)?Xg(s,i):(i=Rd(r,s,i,c),i!==null&&(dn(i,r,c),Wg(i,s,c)))}function Jg(r,s,i){var c=En();Eo(r,s,i,c)}function Eo(r,s,i,c){var f={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(hc(r))Xg(s,f);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var b=s.lastRenderedState,S=m(b,i);if(f.hasEagerState=!0,f.eagerState=S,yn(S,b))return Zl(r,s,f,0),nt===null&&Fl(),!1}catch{}if(i=Rd(r,s,f,c),i!==null)return dn(i,r,c),Wg(i,s,c),!0}return!1}function df(r,s,i,c){if(c={lane:2,revertLane:Hf(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},hc(r)){if(s)throw Error(a(479))}else s=Rd(r,i,c,2),s!==null&&dn(s,r,2)}function hc(r){var s=r.alternate;return r===De||s!==null&&s===De}function Xg(r,s){ri=ic=!0;var i=r.pending;i===null?s.next=s:(s.next=i.next,i.next=s),r.pending=s}function Wg(r,s,i){if((i&4194048)!==0){var c=s.lanes;c&=r.pendingLanes,i|=c,s.lanes=i,nn(r,i)}}var To={readContext:Ut,use:cc,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};To.useEffectEvent=ut;var ey={readContext:Ut,use:cc,useCallback:function(r,s){return Wt().memoizedState=[r,s===void 0?null:s],r},useContext:Ut,useEffect:Ug,useImperativeHandle:function(r,s,i){i=i!=null?i.concat([r]):null,dc(4194308,4,$g.bind(null,s,r),i)},useLayoutEffect:function(r,s){return dc(4194308,4,r,s)},useInsertionEffect:function(r,s){dc(4,2,r,s)},useMemo:function(r,s){var i=Wt();s=s===void 0?null:s;var c=r();if(la){In(!0);try{r()}finally{In(!1)}}return i.memoizedState=[c,s],c},useReducer:function(r,s,i){var c=Wt();if(i!==void 0){var f=i(s);if(la){In(!0);try{i(s)}finally{In(!1)}}}else f=s;return c.memoizedState=c.baseState=f,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:f},c.queue=r,r=r.dispatch=fE.bind(null,De,r),[c.memoizedState,r]},useRef:function(r){var s=Wt();return r={current:r},s.memoizedState=r},useState:function(r){r=rf(r);var s=r.queue,i=Jg.bind(null,De,s);return s.dispatch=i,[r.memoizedState,i]},useDebugValue:of,useDeferredValue:function(r,s){var i=Wt();return lf(i,r,s)},useTransition:function(){var r=rf(!1);return r=Fg.bind(null,De,r.queue,!0,!1),Wt().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,s,i){var c=De,f=Wt();if($e){if(i===void 0)throw Error(a(407));i=i()}else{if(i=s(),nt===null)throw Error(a(349));(Ie&127)!==0||wg(c,s,i)}f.memoizedState=i;var m={value:i,getSnapshot:s};return f.queue=m,Ug(Eg.bind(null,c,m,r),[r]),c.flags|=2048,ai(9,{destroy:void 0},Sg.bind(null,c,m,i,s),null),i},useId:function(){var r=Wt(),s=nt.identifierPrefix;if($e){var i=tr,c=er;i=(c&~(1<<32-Ft(c)-1)).toString(32)+i,s="_"+s+"R_"+i,i=oc++,0<i&&(s+="H"+i.toString(32)),s+="_"}else i=aE++,s="_"+s+"r_"+i.toString(32)+"_";return r.memoizedState=s},useHostTransitionStatus:uf,useFormState:jg,useActionState:jg,useOptimistic:function(r){var s=Wt();s.memoizedState=s.baseState=r;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=i,s=df.bind(null,De,!0,i),i.dispatch=s,[r,s]},useMemoCache:ef,useCacheRefresh:function(){return Wt().memoizedState=dE.bind(null,De)},useEffectEvent:function(r){var s=Wt(),i={impl:r};return s.memoizedState=i,function(){if((Ze&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},ff={readContext:Ut,use:cc,useCallback:Hg,useContext:Ut,useEffect:af,useImperativeHandle:qg,useInsertionEffect:Ig,useLayoutEffect:Bg,useMemo:Vg,useReducer:uc,useRef:zg,useState:function(){return uc(Sr)},useDebugValue:of,useDeferredValue:function(r,s){var i=mt();return Gg(i,Je.memoizedState,r,s)},useTransition:function(){var r=uc(Sr)[0],s=mt().memoizedState;return[typeof r=="boolean"?r:So(r),s]},useSyncExternalStore:_g,useId:Yg,useHostTransitionStatus:uf,useFormState:Dg,useActionState:Dg,useOptimistic:function(r,s){var i=mt();return Ag(i,Je,r,s)},useMemoCache:ef,useCacheRefresh:Qg};ff.useEffectEvent=Pg;var ty={readContext:Ut,use:cc,useCallback:Hg,useContext:Ut,useEffect:af,useImperativeHandle:qg,useInsertionEffect:Ig,useLayoutEffect:Bg,useMemo:Vg,useReducer:nf,useRef:zg,useState:function(){return nf(Sr)},useDebugValue:of,useDeferredValue:function(r,s){var i=mt();return Je===null?lf(i,r,s):Gg(i,Je.memoizedState,r,s)},useTransition:function(){var r=nf(Sr)[0],s=mt().memoizedState;return[typeof r=="boolean"?r:So(r),s]},useSyncExternalStore:_g,useId:Yg,useHostTransitionStatus:uf,useFormState:Mg,useActionState:Mg,useOptimistic:function(r,s){var i=mt();return Je!==null?Ag(i,Je,r,s):(i.baseState=r,[r,i.queue.dispatch])},useMemoCache:ef,useCacheRefresh:Qg};ty.useEffectEvent=Pg;function hf(r,s,i,c){s=r.memoizedState,i=i(c,s),i=i==null?s:g({},s,i),r.memoizedState=i,r.lanes===0&&(r.updateQueue.baseState=i)}var pf={enqueueSetState:function(r,s,i){r=r._reactInternals;var c=En(),f=ss(c);f.payload=s,i!=null&&(f.callback=i),s=as(r,f,c),s!==null&&(dn(s,r,c),vo(s,r,c))},enqueueReplaceState:function(r,s,i){r=r._reactInternals;var c=En(),f=ss(c);f.tag=1,f.payload=s,i!=null&&(f.callback=i),s=as(r,f,c),s!==null&&(dn(s,r,c),vo(s,r,c))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var i=En(),c=ss(i);c.tag=2,s!=null&&(c.callback=s),s=as(r,c,i),s!==null&&(dn(s,r,i),vo(s,r,i))}};function ny(r,s,i,c,f,m,b){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,m,b):s.prototype&&s.prototype.isPureReactComponent?!co(i,c)||!co(f,m):!0}function ry(r,s,i,c){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(i,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(i,c),s.state!==r&&pf.enqueueReplaceState(s,s.state,null)}function ca(r,s){var i=s;
vendor: 5,627 bytes, line 9
9if("ref"in s){i={};for(var c in s)c!=="ref"&&(i[c]=s[c])}if(r=r.defaultProps){i===s&&(i=g({},i));for(var f in r)i[f]===void 0&&(i[f]=r[f])}return i}function sy(r){Gl(r)}function ay(r){console.error(r)}function iy(r){Gl(r)}function pc(r,s){try{var i=r.onUncaughtError;i(s.value,{componentStack:s.stack})}catch(c){setTimeout(function(){throw c})}}function oy(r,s,i){try{var c=r.onCaughtError;c(i.value,{componentStack:i.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function mf(r,s,i){return i=ss(i),i.tag=3,i.payload={element:null},i.callback=function(){pc(r,s)},i}function ly(r){return r=ss(r),r.tag=3,r}function cy(r,s,i,c){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=c.value;r.payload=function(){return f(m)},r.callback=function(){oy(s,i,c)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(r.callback=function(){oy(s,i,c),typeof f!="function"&&(ds===null?ds=new Set([this]):ds.add(this));var S=c.stack;this.componentDidCatch(c.value,{componentStack:S!==null?S:""})})}function hE(r,s,i,c,f){if(i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(s=i.alternate,s!==null&&Ja(s,i,f,!0),i=bn.current,i!==null){switch(i.tag){case 31:case 13:return Ln===null?Ac():i.alternate===null&&dt===0&&(dt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,c===tc?i.flags|=16384:(s=i.updateQueue,s===null?i.updateQueue=new Set([c]):s.add(c),Bf(r,c,f)),!1;case 22:return i.flags|=65536,c===tc?i.flags|=16384:(s=i.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([c])},i.updateQueue=s):(i=s.retryQueue,i===null?s.retryQueue=new Set([c]):i.add(c)),Bf(r,c,f)),!1}throw Error(a(435,i.tag))}return Bf(r,c,f),Ac(),!1}if($e)return s=bn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=f,c!==Dd&&(r=Error(a(422),{cause:c}),ho(Cn(r,i)))):(c!==Dd&&(s=Error(a(423),{cause:c}),ho(Cn(s,i))),r=r.current.alternate,r.flags|=65536,f&=-f,r.lanes|=f,c=Cn(c,i),f=mf(r.stateNode,c,f),Vd(r,f),dt!==4&&(dt=2)),!1;var m=Error(a(520),{cause:c});if(m=Cn(m,i),jo===null?jo=[m]:jo.push(m),dt!==4&&(dt=2),s===null)return!0;c=Cn(c,i),i=s;do{switch(i.tag){case 3:return i.flags|=65536,r=f&-f,i.lanes|=r,r=mf(i.stateNode,c,r),Vd(i,r),!1;case 1:if(s=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ds===null||!ds.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=ly(f),cy(f,r,i,c),Vd(i,f),!1}i=i.return}while(i!==null);return!1}var gf=Error(a(461)),bt=!1;function Pt(r,s,i,c){s.child=r===null?hg(s,null,i,c):oa(s,r.child,i,c)}function uy(r,s,i,c,f){i=i.render;var m=s.ref;if("ref"in c){var b={};for(var S in c)S!=="ref"&&(b[S]=c[S])}else b=c;return ra(s),c=Qd(r,s,i,b,m,f),S=Jd(),r!==null&&!bt?(Xd(r,s,f),Er(r,s,f)):($e&&S&&Nd(s),s.flags|=1,Pt(r,s,c,f),s.child)}function dy(r,s,i,c,f){if(r===null){var m=i.type;return typeof m=="function"&&!kd(m)&&m.defaultProps===void 0&&i.compare===null?(s.tag=15,s.type=m,fy(r,s,m,c,f)):(r=Yl(i.type,null,c,s,s.mode,f),r.ref=s.ref,r.return=s,s.child=r)}if(m=r.child,!Tf(r,f)){var b=m.memoizedProps;if(i=i.compare,i=i!==null?i:co,i(b,c)&&r.ref===s.ref)return Er(r,s,f)}return s.flags|=1,r=yr(m,c),r.ref=s.ref,r.return=s,s.child=r}function fy(r,s,i,c,f){if(r!==null){var m=r.memoizedProps;if(co(m,c)&&r.ref===s.ref)if(bt=!1,s.pendingProps=c=m,Tf(r,f))(r.flags&131072)!==0&&(bt=!0);else return s.lanes=r.lanes,Er(r,s,f)}return yf(r,s,i,c,f)}function hy(r,s,i,c){var f=c.children,m=r!==null?r.memoizedState:null;if(r===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((s.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,r!==null){for(c=s.child=r.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~m}else c=0,s.child=null;return py(r,s,m,i,c)}if((i&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},r!==null&&Wl(s,m!==null?m.cachePool:null),m!==null?gg(s,m):Fd(),yg(s);else return c=s.lanes=536870912,py(r,s,m!==null?m.baseLanes|i:i,i,c)}else m!==null?(Wl(s,m.cachePool),gg(s,m),os(),s.memoizedState=null):(r!==null&&Wl(s,null),Fd(),os());return Pt(r,s,f,i),s.child}function xo(r,s){return r!==null&&r.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function py(r,s,i,c,f){var m=Bd();return m=m===null?null:{parent:yt._currentValue,pool:m},s.memoizedState={baseLanes:i,cachePool:m},r!==null&&Wl(s,null),Fd(),yg(s),r!==null&&Ja(r,s,c,!0),s.childLanes=f,null}function mc(r,s){return s=yc({mode:s.mode,children:s.children},r.mode),s.ref=r.ref,r.child=s,s.return=r,s}function my(r,s,i){return oa(s,r.child,null,i),r=mc(s,s.pendingProps),r.flags|=2,_n(s),s.memoizedState=null,r}function pE(r,s,i){var c=s.pendingProps,f=(s.flags&128)!==0;if(s.flags&=-129,r===null){if($e){if(c.mode==="hidden")return r=mc(s,c),s.lanes=536870912,xo(null,r);if(Kd(s),(r=at)?(r=Rv(r,Dn),r=r!==null&&r.data==="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Wr!==null?{id:er,overflow:tr}:null,retryLane:536870912,hydrationErrors:null},i=Xm(r),i.return=s,s.child=i,zt=s,at=null)):r=null,r===null)throw ts(s);return s.lanes=536870912,null}return mc(s,c)}var m=r.memoizedState;if(m!==null){var b=m.dehydrated;if(Kd(s),f)if(s.flags&256)s.flags&=-257,s=my(r,s,i);else if(s.memoizedState!==null)s.child=r.child,s.flags|=128,s=null;else throw Error(a(558));else if(bt||Ja(r,s,i,!1),f=(i&r.childLanes)!==0,bt||f){if(c=nt,c!==null&&(b=rn(c,i),b!==0&&b!==m.retryLane))throw m.retryLane=b,Ws(r,b),dn(c,r,b),gf;Ac(),s=my(r,s,i)}
vendor: 1,110 bytes, line 9
9else r=m.treeContext,at=Mn(b.nextSibling),zt=s,$e=!0,es=null,Dn=!1,r!==null&&tg(s,r),s=mc(s,c),s.flags|=4096;return s}return r=yr(r.child,{mode:c.mode,children:c.children}),r.ref=s.ref,s.child=r,r.return=s,r}function gc(r,s){var i=s.ref;if(i===null)r!==null&&r.ref!==null&&(s.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(r===null||r.ref!==i)&&(s.flags|=4194816)}}function yf(r,s,i,c,f){return ra(s),i=Qd(r,s,i,c,void 0,f),c=Jd(),r!==null&&!bt?(Xd(r,s,f),Er(r,s,f)):($e&&c&&Nd(s),s.flags|=1,Pt(r,s,i,f),s.child)}function gy(r,s,i,c,f,m){return ra(s),s.updateQueue=null,i=bg(s,c,i,f),vg(r),c=Jd(),r!==null&&!bt?(Xd(r,s,m),Er(r,s,m)):($e&&c&&Nd(s),s.flags|=1,Pt(r,s,i,m),s.child)}function yy(r,s,i,c,f){if(ra(s),s.stateNode===null){var m=Za,b=i.contextType;typeof b=="object"&&b!==null&&(m=Ut(b)),m=new i(c,m),s.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=pf,s.stateNode=m,m._reactInternals=s,m=s.stateNode,m.props=c,m.state=s.memoizedState,m.refs={},qd(s),b=i.contextType,m.context=typeof b=="object"&&b!==null?Ut(b):Za,m.state=s.memoizedState,b
vendor: 9,552 bytes, line 9
9=i.getDerivedStateFromProps,typeof b=="function"&&(hf(s,i,b,c),m.state=s.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(b=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),b!==m.state&&pf.enqueueReplaceState(m,m.state,null),_o(s,c,m,f),bo(),m.state=s.memoizedState),typeof m.componentDidMount=="function"&&(s.flags|=4194308),c=!0}else if(r===null){m=s.stateNode;var S=s.memoizedProps,A=ca(i,S);m.props=A;var U=m.context,q=i.contextType;b=Za,typeof q=="object"&&q!==null&&(b=Ut(q));var K=i.getDerivedStateFromProps;q=typeof K=="function"||typeof m.getSnapshotBeforeUpdate=="function",S=s.pendingProps!==S,q||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S||U!==b)&&ry(s,m,c,b),rs=!1;var P=s.memoizedState;m.state=P,_o(s,c,m,f),bo(),U=s.memoizedState,S||P!==U||rs?(typeof K=="function"&&(hf(s,i,K,c),U=s.memoizedState),(A=rs||ny(s,i,A,c,P,U,b))?(q||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(s.flags|=4194308)):(typeof m.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=U),m.props=c,m.state=U,m.context=b,c=A):(typeof m.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{m=s.stateNode,Hd(r,s),b=s.memoizedProps,q=ca(i,b),m.props=q,K=s.pendingProps,P=m.context,U=i.contextType,A=Za,typeof U=="object"&&U!==null&&(A=Ut(U)),S=i.getDerivedStateFromProps,(U=typeof S=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(b!==K||P!==A)&&ry(s,m,c,A),rs=!1,P=s.memoizedState,m.state=P,_o(s,c,m,f),bo();var $=s.memoizedState;b!==K||P!==$||rs||r!==null&&r.dependencies!==null&&Jl(r.dependencies)?(typeof S=="function"&&(hf(s,i,S,c),$=s.memoizedState),(q=rs||ny(s,i,q,c,P,$,A)||r!==null&&r.dependencies!==null&&Jl(r.dependencies))?(U||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(c,$,A),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(c,$,A)),typeof m.componentDidUpdate=="function"&&(s.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof m.componentDidUpdate!="function"||b===r.memoizedProps&&P===r.memoizedState||(s.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===r.memoizedProps&&P===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=$),m.props=c,m.state=$,m.context=A,c=q):(typeof m.componentDidUpdate!="function"||b===r.memoizedProps&&P===r.memoizedState||(s.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===r.memoizedProps&&P===r.memoizedState||(s.flags|=1024),c=!1)}return m=c,gc(r,s),c=(s.flags&128)!==0,m||c?(m=s.stateNode,i=c&&typeof i.getDerivedStateFromError!="function"?null:m.render(),s.flags|=1,r!==null&&c?(s.child=oa(s,r.child,null,f),s.child=oa(s,null,i,f)):Pt(r,s,i,f),s.memoizedState=m.state,r=s.child):r=Er(r,s,f),r}function vy(r,s,i,c){return ta(),s.flags|=256,Pt(r,s,i,c),s.child}var vf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bf(r){return{baseLanes:r,cachePool:og()}}function _f(r,s,i){return r=r!==null?r.childLanes&~i:0,s&&(r|=Sn),r}function by(r,s,i){var c=s.pendingProps,f=!1,m=(s.flags&128)!==0,b;if((b=m)||(b=r!==null&&r.memoizedState===null?!1:(pt.current&2)!==0),b&&(f=!0,s.flags&=-129),b=(s.flags&32)!==0,s.flags&=-33,r===null){if($e){if(f?is(s):os(),(r=at)?(r=Rv(r,Dn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Wr!==null?{id:er,overflow:tr}:null,retryLane:536870912,hydrationErrors:null},i=Xm(r),i.return=s,s.child=i,zt=s,at=null)):r=null,r===null)throw ts(s);return nh(r)?s.lanes=32:s.lanes=536870912,null}var S=c.children;return c=c.fallback,f?(os(),f=s.mode,S=yc({mode:"hidden",children:S},f),c=ea(c,f,i,null),S.return=s,c.return=s,S.sibling=c,s.child=S,c=s.child,c.memoizedState=bf(i),c.childLanes=_f(r,b,i),s.memoizedState=vf,xo(null,c)):(is(s),wf(s,S))}var A=r.memoizedState;if(A!==null&&(S=A.dehydrated,S!==null)){if(m)s.flags&256?(is(s),s.flags&=-257,s=Sf(r,s,i)):s.memoizedState!==null?(os(),s.child=r.child,s.flags|=128,s=null):(os(),S=c.fallback,f=s.mode,c=yc({mode:"visible",children:c.children},f),S=ea(S,f,i,null),S.flags|=2,c.return=s,S.return=s,c.sibling=S,s.child=c,oa(s,r.child,null,i),c=s.child,c.memoizedState=bf(i),c.childLanes=_f(r,b,i),s.memoizedState=vf,s=xo(null,c));else if(is(s),nh(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,c=Error(a(419)),c.stack="",c.digest=b,ho({value:c,source:null,stack:null}),s=Sf(r,s,i)}else if(bt||Ja(r,s,i,!1),b=(i&r.childLanes)!==0,bt||b){if(b=nt,b!==null&&(c=rn(b,i),c!==0&&c!==A.retryLane))throw A.retryLane=c,Ws(r,c),dn(b,r,c),gf;th(S)||Ac(),s=Sf(r,s,i)}else th(S)?(s.flags|=192,s.child=r.child,s=null):(r=A.treeContext,at=Mn(S.nextSibling),zt=s,$e=!0,es=null,Dn=!1,r!==null&&tg(s,r),s=wf(s,c.children),s.flags|=4096);return s}return f?(os(),S=c.fallback,f=s.mode,A=r.child,U=A.sibling,c=yr(A,{mode:"hidden",children:c.children}),c.subtreeFlags=A.subtreeFlags&65011712,U!==null?S=yr(U,S):(S=ea(S,f,i,null),S.flags|=2),S.return=s,c.return=s,c.sibling=S,s.child=c,xo(null,c),c=s.child,S=r.child.memoizedState,S===null?S=bf(i):(f=S.cachePool,f!==null?(A=yt._currentValue,f=f.parent!==A?{parent:A,pool:A}:f):f=og(),S={baseLanes:S.baseLanes|i,cachePool:f}),c.memoizedState=S,c.childLanes=_f(r,b,i),s.memoizedState=vf,xo(r.child,c)):(is(s),i=r.child,r=i.sibling,i=yr(i,{mode:"visible",children:c.children}),i.return=s,i.sibling=null,r!==null&&(b=s.deletions,b===null?(s.deletions=[r],s.flags|=16):b.push(r)),s.child=i,s.memoizedState=null,i)}function wf(r,s){return s=yc({mode:"visible",children:s},r.mode),s.return=r,r.child=s}function yc(r,s){return r=vn(22,r,null,s),r.lanes=0,r}function Sf(r,s,i){return oa(s,r.child,null,i),r=wf(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function _y(r,s,i){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),zd(r.return,s,i)}function Ef(r,s,i,c,f,m){var b=r.memoizedState;b===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:i,tailMode:f,treeForkCount:m}:(b.isBackwards=s,b.rendering=null,b.renderingStartTime=0,b.last=c,b.tail=i,b.tailMode=f,b.treeForkCount=m)}function wy(r,s,i){var c=s.pendingProps,f=c.revealOrder,m=c.tail;c=c.children;var b=pt.current,S=(b&2)!==0;if(S?(b=b&1|2,s.flags|=128):b&=1,V(pt,b),Pt(r,s,c,i),c=$e?fo:0,!S&&r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&_y(r,i,s);else if(r.tag===19)_y(r,i,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(f){case"forwards":for(i=s.child,f=null;i!==null;)r=i.alternate,r!==null&&ac(r)===null&&(f=i),i=i.sibling;i=f,i===null?(f=s.child,s.child=null):(f=i.sibling,i.sibling=null),Ef(s,!1,f,i,m,c);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=s.child,s.child=null;f!==null;){if(r=f.alternate,r!==null&&ac(r)===null){s.child=f;break}r=f.sibling,f.sibling=i,i=f,f=r}Ef(s,!0,i,null,m,c);break;case"together":Ef(s,!1,null,null,void 0,c);break;default:s.memoizedState=null}return s.child}function Er(r,s,i){if(r!==null&&(s.dependencies=r.dependencies),us|=s.lanes,(i&s.childLanes)===0)if(r!==null){if(Ja(r,s,i,!1),(i&s.childLanes)===0)return null}else return null;if(r!==null&&s.child!==r.child)throw Error(a(153));if(s.child!==null){for(r=s.child,i=yr(r,r.pendingProps),s.child=i,i.return=s;r.sibling!==null;)r=r.sibling,i=i.sibling=yr(r,r.pendingProps),i.return=s;i.sibling=null}return s.child}function Tf(r,s){return(r.lanes&s)!==0?!0:(r=r.dependencies,!!(r!==null&&Jl(r)))}function mE(r,s,i){switch(s.tag){case 3:be(s,s.stateNode.containerInfo),ns(s,yt,r.memoizedState.cache),ta();break;case 27:case 5:kt(s);break;case 4:be(s,s.stateNode.containerInfo);break;case 10:ns(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Kd(s),null;break;case 13:var c=s.memoizedState;if(c!==null)return c.dehydrated!==null?(is(s),s.flags|=128,null):(i&s.child.childLanes)!==0?by(r,s,i):(is(s),r=Er(r,s,i),r!==null?r.sibling:null);is(s);break;case 19:var f=(r.flags&128)!==0;if(c=(i&s.childLanes)!==0,c||(Ja(r,s,i,!1),c=(i&s.childLanes)!==0),f){if(c)return wy(r,s,i);s.flags|=128}if(f=s.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),V(pt,pt.current),c)break;return null;case 22:return s.lanes=0,hy(r,s,i,s.pendingProps);case 24:ns(s,yt,r.memoizedState.cache)}return Er(r,s,i)}function Sy(r,s,i){if(r!==null)if(r.memoizedProps!==s.pendingProps)bt=!0;else{if(!Tf(r,i)&&(s.flags&128)===0)return bt=!1,mE(r,s,i);bt=(r.flags&131072)!==0}else bt=!1,$e&&(s.flags&1048576)!==0&&eg(s,fo,s.index);switch(s.lanes=0,s.tag){case 16:e:{var c=s.pendingProps;if(r=aa(s.elementType),s.type=r,typeof r=="function")kd(r)?(c=ca(r,c),s.tag=1,s=yy(null,s,r,c,i)):(s.tag=0,s=yf(null,s,r,c,i));else{if(r!=null){var f=r.$$typeof;if(f===B){s.tag=11,s=uy(null,s,r,c,i);break e}
vendor: 6,004 bytes, line 9
9else if(f===j){s.tag=14,s=dy(null,s,r,c,i);break e}}throw s=_e(r)||r,Error(a(306,s,""))}}return s;case 0:return yf(r,s,s.type,s.pendingProps,i);case 1:return c=s.type,f=ca(c,s.pendingProps),yy(r,s,c,f,i);case 3:e:{if(be(s,s.stateNode.containerInfo),r===null)throw Error(a(387));c=s.pendingProps;var m=s.memoizedState;f=m.element,Hd(r,s),_o(s,c,null,i);var b=s.memoizedState;if(c=b.cache,ns(s,yt,c),c!==m.cache&&Ud(s,[yt],i,!0),bo(),c=b.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:b.cache},s.updateQueue.baseState=m,s.memoizedState=m,s.flags&256){s=vy(r,s,c,i);break e}else if(c!==f){f=Cn(Error(a(424)),s),ho(f),s=vy(r,s,c,i);break e}else for(r=s.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,at=Mn(r.firstChild),zt=s,$e=!0,es=null,Dn=!0,i=hg(s,null,c,i),s.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(ta(),c===f){s=Er(r,s,i);break e}Pt(r,s,c,i)}s=s.child}return s;case 26:return gc(r,s),r===null?(i=Dv(s.type,null,s.pendingProps,null))?s.memoizedState=i:$e||(i=s.type,r=s.pendingProps,c=Dc(le.current).createElement(i),c[Mt]=s,c[sn]=r,It(c,i,r),Ct(c),s.stateNode=c):s.memoizedState=Dv(s.type,r.memoizedProps,s.pendingProps,r.memoizedState),null;case 27:return kt(s),r===null&&$e&&(c=s.stateNode=Cv(s.type,s.pendingProps,le.current),zt=s,Dn=!0,f=at,ms(s.type)?(rh=f,at=Mn(c.firstChild)):at=f),Pt(r,s,s.pendingProps.children,i),gc(r,s),r===null&&(s.flags|=4194304),s.child;case 5:return r===null&&$e&&((f=c=at)&&(c=GE(c,s.type,s.pendingProps,Dn),c!==null?(s.stateNode=c,zt=s,at=Mn(c.firstChild),Dn=!1,f=!0):f=!1),f||ts(s)),kt(s),f=s.type,m=s.pendingProps,b=r!==null?r.memoizedProps:null,c=m.children,Xf(f,m)?c=null:b!==null&&Xf(f,b)&&(s.flags|=32),s.memoizedState!==null&&(f=Qd(r,s,iE,null,null,i),Bo._currentValue=f),gc(r,s),Pt(r,s,c,i),s.child;case 6:return r===null&&$e&&((r=i=at)&&(i=FE(i,s.pendingProps,Dn),i!==null?(s.stateNode=i,zt=s,at=null,r=!0):r=!1),r||ts(s)),null;case 13:return by(r,s,i);case 4:return be(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=oa(s,null,c,i):Pt(r,s,c,i),s.child;case 11:return uy(r,s,s.type,s.pendingProps,i);case 7:return Pt(r,s,s.pendingProps,i),s.child;case 8:return Pt(r,s,s.pendingProps.children,i),s.child;case 12:return Pt(r,s,s.pendingProps.children,i),s.child;case 10:return c=s.pendingProps,ns(s,s.type,c.value),Pt(r,s,c.children,i),s.child;case 9:return f=s.type._context,c=s.pendingProps.children,ra(s),f=Ut(f),c=c(f),s.flags|=1,Pt(r,s,c,i),s.child;case 14:return dy(r,s,s.type,s.pendingProps,i);case 15:return fy(r,s,s.type,s.pendingProps,i);case 19:return wy(r,s,i);case 31:return pE(r,s,i);case 22:return hy(r,s,i,s.pendingProps);case 24:return ra(s),c=Ut(yt),r===null?(f=Bd(),f===null&&(f=nt,m=Pd(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),s.memoizedState={parent:c,cache:f},qd(s),ns(s,yt,f)):((r.lanes&i)!==0&&(Hd(r,s),_o(s,null,null,i),bo()),f=r.memoizedState,m=s.memoizedState,f.parent!==c?(f={parent:c,cache:c},s.memoizedState=f,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=f),ns(s,yt,c)):(c=m.cache,ns(s,yt,c),c!==f.cache&&Ud(s,[yt],i,!0))),Pt(r,s,s.pendingProps.children,i),s.child;case 29:throw s.pendingProps}throw Error(a(156,s.tag))}function Tr(r){r.flags|=4}function xf(r,s,i,c,f){if((s=(r.mode&32)!==0)&&(s=!1),s){if(r.flags|=16777216,(f&335544128)===f)if(r.stateNode.complete)r.flags|=8192;else if(Yy())r.flags|=8192;else throw ia=tc,$d}else r.flags&=-16777217}function Ey(r,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!Pv(s))if(Yy())r.flags|=8192;else throw ia=tc,$d}function vc(r,s){s!==null&&(r.flags|=4),r.flags&16384&&(s=r.tag!==22?Zt():536870912,r.lanes|=s,ci|=s)}function Ao(r,s){if(!$e)switch(r.tailMode){case"hidden":s=r.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?r.tail=null:i.sibling=null;break;case"collapsed":i=r.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function it(r){var s=r.alternate!==null&&r.alternate.child===r.child,i=0,c=0;if(s)for(var f=r.child;f!==null;)i|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)i|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=c,r.childLanes=i,s}function gE(r,s,i){var c=s.pendingProps;switch(jd(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(s),null;case 1:return it(s),null;case 3:return i=s.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),_r(yt),Se(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(r===null||r.child===null)&&(Qa(s)?Tr(s):r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Ld())),it(s),null;case 26:var f=s.type,m=s.memoizedState;return r===null?(Tr(s),m!==null?(it(s),Ey(s,m)):(it(s),xf(s,f,null,c,i))):m?m!==r.memoizedState?(Tr(s),it(s),Ey(s,m)):(it(s),s.flags&=-16777217):(r=r.memoizedProps,r!==c&&Tr(s),it(s),xf(s,f,r,c,i)),null;case 27:if(Lt(s),i=le.current,f=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==c&&Tr(s);else{if(!c){if(s.stateNode===null)throw Error(a(166));return it(s),null}r=W.current,Qa(s)?ng(s):(r=Cv(f,c,i),s.stateNode=r,Tr(s))}return it(s),null;case 5:if(Lt(s),f=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==c&&Tr(s);else{if(!c){if(s.stateNode===null)throw Error(a(166));return it(s),null}if(m=W.current,Qa(s))ng(s);else{var b=Dc(le.current);switch(m){case 1:m=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:m=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":m=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":m=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":m=b.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;
vendor: 24,092 bytes, line 9
9case"select":m=typeof c.is=="string"?b.createElement("select",{is:c.is}):b.createElement("select"),c.multiple?m.multiple=!0:c.size&&(m.size=c.size);break;default:m=typeof c.is=="string"?b.createElement(f,{is:c.is}):b.createElement(f)}}m[Mt]=s,m[sn]=c;e:for(b=s.child;b!==null;){if(b.tag===5||b.tag===6)m.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===s)break e;for(;b.sibling===null;){if(b.return===null||b.return===s)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}s.stateNode=m;e:switch(It(m,f,c),f){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Tr(s)}}return it(s),xf(s,s.type,r===null?null:r.memoizedProps,s.pendingProps,i),null;case 6:if(r&&s.stateNode!=null)r.memoizedProps!==c&&Tr(s);else{if(typeof c!="string"&&s.stateNode===null)throw Error(a(166));if(r=le.current,Qa(s)){if(r=s.stateNode,i=s.memoizedProps,c=null,f=zt,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}r[Mt]=s,r=!!(r.nodeValue===i||c!==null&&c.suppressHydrationWarning===!0||bv(r.nodeValue,i)),r||ts(s,!0)}else r=Dc(r).createTextNode(c),r[Mt]=s,s.stateNode=r}return it(s),null;case 31:if(i=s.memoizedState,r===null||r.memoizedState!==null){if(c=Qa(s),i!==null){if(r===null){if(!c)throw Error(a(318));if(r=s.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));r[Mt]=s}else ta(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;it(s),r=!1}else i=Ld(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=i),r=!0;if(!r)return s.flags&256?(_n(s),s):(_n(s),null);if((s.flags&128)!==0)throw Error(a(558))}return it(s),null;case 13:if(c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(f=Qa(s),c!==null&&c.dehydrated!==null){if(r===null){if(!f)throw Error(a(318));if(f=s.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[Mt]=s}else ta(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;it(s),f=!1}else f=Ld(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=f),f=!0;if(!f)return s.flags&256?(_n(s),s):(_n(s),null)}return _n(s),(s.flags&128)!==0?(s.lanes=i,s):(i=c!==null,r=r!==null&&r.memoizedState!==null,i&&(c=s.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==f&&(c.flags|=2048)),i!==r&&i&&(s.child.flags|=8192),vc(s,s.updateQueue),it(s),null);case 4:return Se(),r===null&&Zf(s.stateNode.containerInfo),it(s),null;case 10:return _r(s.type),it(s),null;case 19:if(H(pt),c=s.memoizedState,c===null)return it(s),null;if(f=(s.flags&128)!==0,m=c.rendering,m===null)if(f)Ao(c,!1);else{if(dt!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(m=ac(r),m!==null){for(s.flags|=128,Ao(c,!1),r=m.updateQueue,s.updateQueue=r,vc(s,r),s.subtreeFlags=0,r=i,i=s.child;i!==null;)Jm(i,r),i=i.sibling;return V(pt,pt.current&1|2),$e&&vr(s,c.treeForkCount),s.child}r=r.sibling}c.tail!==null&&Jt()>Ec&&(s.flags|=128,f=!0,Ao(c,!1),s.lanes=4194304)}else{if(!f)if(r=ac(m),r!==null){if(s.flags|=128,f=!0,r=r.updateQueue,s.updateQueue=r,vc(s,r),Ao(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!$e)return it(s),null}else 2*Jt()-c.renderingStartTime>Ec&&i!==536870912&&(s.flags|=128,f=!0,Ao(c,!1),s.lanes=4194304);c.isBackwards?(m.sibling=s.child,s.child=m):(r=c.last,r!==null?r.sibling=m:s.child=m,c.last=m)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=Jt(),r.sibling=null,i=pt.current,V(pt,f?i&1|2:i&1),$e&&vr(s,c.treeForkCount),r):(it(s),null);case 22:case 23:return _n(s),Zd(),c=s.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(s.flags|=8192):c&&(s.flags|=8192),c?(i&536870912)!==0&&(s.flags&128)===0&&(it(s),s.subtreeFlags&6&&(s.flags|=8192)):it(s),i=s.updateQueue,i!==null&&vc(s,i.retryQueue),i=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==i&&(s.flags|=2048),r!==null&&H(sa),null;case 24:return i=null,r!==null&&(i=r.memoizedState.cache),s.memoizedState.cache!==i&&(s.flags|=2048),_r(yt),it(s),null;case 25:return null;case 30:return null}throw Error(a(156,s.tag))}function yE(r,s){switch(jd(s),s.tag){case 1:return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return _r(yt),Se(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 26:case 27:case 5:return Lt(s),null;case 31:if(s.memoizedState!==null){if(_n(s),s.alternate===null)throw Error(a(340));ta()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 13:if(_n(s),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(a(340));ta()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return H(pt),null;case 4:return Se(),null;case 10:return _r(s.type),null;case 22:case 23:return _n(s),Zd(),r!==null&&H(sa),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 24:return _r(yt),null;case 25:return null;default:return null}}function Ty(r,s){switch(jd(s),s.tag){case 3:_r(yt),Se();break;case 26:case 27:case 5:Lt(s);break;case 4:Se();break;case 31:s.memoizedState!==null&&_n(s);break;case 13:_n(s);break;case 19:H(pt);break;case 10:_r(s.type);break;case 22:case 23:_n(s),Zd(),r!==null&&H(sa);break;case 24:_r(yt)}}function Ro(r,s){try{var i=s.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var f=c.next;i=f;do{if((i.tag&r)===r){c=void 0;var m=i.create,b=i.inst;c=m(),b.destroy=c}i=i.next}while(i!==f)}}catch(S){Qe(s,s.return,S)}}function ls(r,s,i){try{var c=s.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var m=f.next;c=m;do{if((c.tag&r)===r){var b=c.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,f=s;var A=i,U=S;try{U()}catch(q){Qe(f,A,q)}}}c=c.next}while(c!==m)}}catch(q){Qe(s,s.return,q)}}function xy(r){var s=r.updateQueue;if(s!==null){var i=r.stateNode;try{mg(s,i)}catch(c){Qe(r,r.return,c)}}}function Ay(r,s,i){i.props=ca(r.type,r.memoizedProps),i.state=r.memoizedState;try{i.componentWillUnmount()}catch(c){Qe(r,s,c)}}function ko(r,s){try{var i=r.ref;if(i!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof i=="function"?r.refCleanup=i(c):i.current=c}}catch(f){Qe(r,s,f)}}function nr(r,s){var i=r.ref,c=r.refCleanup;if(i!==null)if(typeof c=="function")try{c()}catch(f){Qe(r,s,f)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){Qe(r,s,f)}else i.current=null}function Ry(r){var s=r.type,i=r.memoizedProps,c=r.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":i.autoFocus&&c.focus();break e;case"img":i.src?c.src=i.src:i.srcSet&&(c.srcset=i.srcSet)}}catch(f){Qe(r,r.return,f)}}function Af(r,s,i){try{var c=r.stateNode;IE(c,r.type,i,s),c[sn]=s}catch(f){Qe(r,r.return,f)}}function ky(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&ms(r.type)||r.tag===4}function Rf(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||ky(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&ms(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function kf(r,s,i){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(r,s):(s=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,s.appendChild(r),i=i._reactRootContainer,i!=null||s.onclick!==null||(s.onclick=mr));else if(c!==4&&(c===27&&ms(r.type)&&(i=r.stateNode,s=null),r=r.child,r!==null))for(kf(r,s,i),r=r.sibling;r!==null;)kf(r,s,i),r=r.sibling}function bc(r,s,i){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?i.insertBefore(r,s):i.appendChild(r);else if(c!==4&&(c===27&&ms(r.type)&&(i=r.stateNode),r=r.child,r!==null))for(bc(r,s,i),r=r.sibling;r!==null;)bc(r,s,i),r=r.sibling}function Oy(r){var s=r.stateNode,i=r.memoizedProps;try{for(var c=r.type,f=s.attributes;f.length;)s.removeAttributeNode(f[0]);It(s,c,i),s[Mt]=r,s[sn]=i}catch(m){Qe(r,r.return,m)}}var xr=!1,_t=!1,Of=!1,Cy=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function vE(r,s){if(r=r.containerInfo,Qf=Bc,r=qm(r),wd(r)){if("selectionStart"in r)var i={start:r.selectionStart,end:r.selectionEnd};else e:{i=(i=r.ownerDocument)&&i.defaultView||window;var c=i.getSelection&&i.getSelection();if(c&&c.rangeCount!==0){i=c.anchorNode;var f=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var b=0,S=-1,A=-1,U=0,q=0,K=r,P=null;t:for(;;){for(var $;K!==i||f!==0&&K.nodeType!==3||(S=b+f),K!==m||c!==0&&K.nodeType!==3||(A=b+c),K.nodeType===3&&(b+=K.nodeValue.length),($=K.firstChild)!==null;)P=K,K=$;for(;;){if(K===r)break t;if(P===i&&++U===f&&(S=b),P===m&&++q===c&&(A=b),($=K.nextSibling)!==null)break;K=P,P=K.parentNode}K=$}i=S===-1||A===-1?null:{start:S,end:A}}else i=null}i=i||{start:0,end:0}}else i=null;for(Jf={focusedElem:r,selectionRange:i},Bc=!1,Nt=s;Nt!==null;)if(s=Nt,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,Nt=r;else for(;Nt!==null;){switch(s=Nt,m=s.alternate,r=s.flags,s.tag){case 0:if((r&4)!==0&&(r=s.updateQueue,r=r!==null?r.events:null,r!==null))for(i=0;i<r.length;i++)f=r[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&m!==null){r=void 0,i=s,f=m.memoizedProps,m=m.memoizedState,c=i.stateNode;try{var de=ca(i.type,f);r=c.getSnapshotBeforeUpdate(de,m),c.__reactInternalSnapshotBeforeUpdate=r}catch(Ee){Qe(i,i.return,Ee)}}break;case 3:if((r&1024)!==0){if(r=s.stateNode.containerInfo,i=r.nodeType,i===9)eh(r);else if(i===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":eh(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=s.sibling,r!==null){r.return=s.return,Nt=r;break}Nt=s.return}}function Ny(r,s,i){var c=i.flags;switch(i.tag){case 0:case 11:case 15:Rr(r,i),c&4&&Ro(5,i);break;case 1:if(Rr(r,i),c&4)if(r=i.stateNode,s===null)try{r.componentDidMount()}catch(b){Qe(i,i.return,b)}else{var f=ca(i.type,s.memoizedProps);s=s.memoizedState;try{r.componentDidUpdate(f,s,r.__reactInternalSnapshotBeforeUpdate)}catch(b){Qe(i,i.return,b)}}c&64&&xy(i),c&512&&ko(i,i.return);break;case 3:if(Rr(r,i),c&64&&(r=i.updateQueue,r!==null)){if(s=null,i.child!==null)switch(i.child.tag){case 27:case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}try{mg(r,s)}catch(b){Qe(i,i.return,b)}}break;case 27:s===null&&c&4&&Oy(i);case 26:case 5:Rr(r,i),s===null&&c&4&&Ry(i),c&512&&ko(i,i.return);break;case 12:Rr(r,i);break;case 31:Rr(r,i),c&4&&Ly(r,i);break;case 13:Rr(r,i),c&4&&My(r,i),c&64&&(r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(i=RE.bind(null,i),ZE(r,i))));break;case 22:if(c=i.memoizedState!==null||xr,!c){s=s!==null&&s.memoizedState!==null||_t,f=xr;var m=_t;xr=c,(_t=s)&&!m?kr(r,i,(i.subtreeFlags&8772)!==0):Rr(r,i),xr=f,_t=m}break;case 30:break;default:Rr(r,i)}}function jy(r){var s=r.alternate;s!==null&&(r.alternate=null,jy(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&sd(s)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var lt=null,on=!1;function Ar(r,s,i){for(i=i.child;i!==null;)Dy(r,s,i),i=i.sibling}function Dy(r,s,i){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Fs,i)}catch{}switch(i.tag){case 26:_t||nr(i,s),Ar(r,s,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:_t||nr(i,s);var c=lt,f=on;ms(i.type)&&(lt=i.stateNode,on=!1),Ar(r,s,i),Uo(i.stateNode),lt=c,on=f;break;case 5:_t||nr(i,s);case 6:if(c=lt,f=on,lt=null,Ar(r,s,i),lt=c,on=f,lt!==null)if(on)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(i.stateNode)}catch(m){Qe(i,s,m)}else try{lt.removeChild(i.stateNode)}catch(m){Qe(i,s,m)}break;case 18:lt!==null&&(on?(r=lt,xv(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,i.stateNode),yi(r)):xv(lt,i.stateNode));break;case 4:c=lt,f=on,lt=i.stateNode.containerInfo,on=!0,Ar(r,s,i),lt=c,on=f;break;case 0:case 11:case 14:case 15:ls(2,i,s),_t||ls(4,i,s),Ar(r,s,i);break;case 1:_t||(nr(i,s),c=i.stateNode,typeof c.componentWillUnmount=="function"&&Ay(i,s,c)),Ar(r,s,i);break;case 21:Ar(r,s,i);break;case 22:_t=(c=_t)||i.memoizedState!==null,Ar(r,s,i),_t=c;break;default:Ar(r,s,i)}}function Ly(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{yi(r)}catch(i){Qe(s,s.return,i)}}}function My(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{yi(r)}catch(i){Qe(s,s.return,i)}}function bE(r){switch(r.tag){case 31:case 13:case 19:var s=r.stateNode;return s===null&&(s=r.stateNode=new Cy),s;case 22:return r=r.stateNode,s=r._retryCache,s===null&&(s=r._retryCache=new Cy),s;default:throw Error(a(435,r.tag))}}function _c(r,s){var i=bE(r);s.forEach(function(c){if(!i.has(c)){i.add(c);var f=kE.bind(null,r,c);c.then(f,f)}})}function ln(r,s){var i=s.deletions;if(i!==null)for(var c=0;c<i.length;c++){var f=i[c],m=r,b=s,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(ms(S.type)){lt=S.stateNode,on=!1;break e}break;case 5:lt=S.stateNode,on=!1;break e;case 3:case 4:lt=S.stateNode.containerInfo,on=!0;break e}S=S.return}if(lt===null)throw Error(a(160));Dy(m,b,f),lt=null,on=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)zy(s,r),s=s.sibling}var qn=null;function zy(r,s){var i=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:ln(s,r),cn(r),c&4&&(ls(3,r,r.return),Ro(3,r),ls(5,r,r.return));break;case 1:ln(s,r),cn(r),c&512&&(_t||i===null||nr(i,i.return)),c&64&&xr&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(i=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=i===null?c:i.concat(c))));break;case 26:var f=qn;if(ln(s,r),cn(r),c&512&&(_t||i===null||nr(i,i.return)),c&4){var m=i!==null?i.memoizedState:null;if(c=r.memoizedState,i===null)if(c===null)if(r.stateNode===null){e:{c=r.type,i=r.memoizedProps,f=f.ownerDocument||f;t:switch(c){case"title":m=f.getElementsByTagName("title")[0],(!m||m[eo]||m[Mt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(c),f.head.insertBefore(m,f.querySelector("head > title"))),It(m,c,i),m[Mt]=r,Ct(m),c=m;break e;case"link":var b=zv("link","href",f).get(c+(i.href||""));if(b){for(var S=0;S<b.length;S++)if(m=b[S],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(S,1);break t}}m=f.createElement(c),It(m,c,i),f.head.appendChild(m);break;case"meta":if(b=zv("meta","content",f).get(c+(i.content||""))){for(S=0;S<b.length;S++)if(m=b[S],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(S,1);break t}}m=f.createElement(c),It(m,c,i),f.head.appendChild(m);break;default:throw Error(a(468,c))}m[Mt]=r,Ct(m),c=m}r.stateNode=c}else Uv(f,r.type,r.stateNode);else r.stateNode=Mv(f,c,r.memoizedProps);else m!==c?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,c===null?Uv(f,r.type,r.stateNode):Mv(f,c,r.memoizedProps)):c===null&&r.stateNode!==null&&Af(r,r.memoizedProps,i.memoizedProps)}break;case 27:ln(s,r),cn(r),c&512&&(_t||i===null||nr(i,i.return)),i!==null&&c&4&&Af(r,r.memoizedProps,i.memoizedProps);break;case 5:if(ln(s,r),cn(r),c&512&&(_t||i===null||nr(i,i.return)),r.flags&32){f=r.stateNode;try{Ba(f,"")}catch(de){Qe(r,r.return,de)}}c&4&&r.stateNode!=null&&(f=r.memoizedProps,Af(r,f,i!==null?i.memoizedProps:f)),c&1024&&(Of=!0);break;case 6:if(ln(s,r),cn(r),c&4){if(r.stateNode===null)throw Error(a(162));c=r.memoizedProps,i=r.stateNode;try{i.nodeValue=c}catch(de){Qe(r,r.return,de)}}break;case 3:if(zc=null,f=qn,qn=Lc(s.containerInfo),ln(s,r),qn=f,cn(r),c&4&&i!==null&&i.memoizedState.isDehydrated)try{yi(s.containerInfo)}catch(de){Qe(r,r.return,de)}Of&&(Of=!1,Uy(r));break;case 4:c=qn,qn=Lc(r.stateNode.containerInfo),ln(s,r),cn(r),qn=c;break;case 12:ln(s,r),cn(r);break;case 31:ln(s,r),cn(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,_c(r,c)));break;case 13:ln(s,r),cn(r),r.child.flags&8192&&r.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Sc=Jt()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,_c(r,c)));break;case 22:f=r.memoizedState!==null;var A=i!==null&&i.memoizedState!==null,U=xr,q=_t;if(xr=U||f,_t=q||A,ln(s,r),_t=q,xr=U,cn(r),c&8192)e:for(s=r.stateNode,s._visibility=f?s._visibility&-2:s._visibility|1,f&&(i===null||A||xr||_t||ua(r)),i=null,s=r;;){if(s.tag===5||s.tag===26){if(i===null){A=i=s;try{if(m=A.stateNode,f)b=m.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=A.stateNode;var K=A.memoizedProps.style,P=K!=null&&K.hasOwnProperty("display")?K.display:null;S.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(de){Qe(A,A.return,de)}}}else if(s.tag===6){if(i===null){A=s;try{A.stateNode.nodeValue=f?"":A.memoizedProps}catch(de){Qe(A,A.return,de)}}}else if(s.tag===18){if(i===null){A=s;try{var $=A.stateNode;f?Av($,!0):Av(A.stateNode,!1)}catch(de){Qe(A,A.return,de)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===r)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break e;for(;s.sibling===null;){if(s.return===null||s.return===r)break e;i===s&&(i=null),s=s.return}i===s&&(i=null),s.sibling.return=s.return,s=s.sibling}c&4&&(c=r.updateQueue,c!==null&&(i=c.retryQueue,i!==null&&(c.retryQueue=null,_c(r,i))));break;case 19:ln(s,r),cn(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,_c(r,c)));break;case 30:break;case 21:break;default:ln(s,r),cn(r)}}function cn(r){var s=r.flags;if(s&2){try{for(var i,c=r.return;c!==null;){if(ky(c)){i=c;break}c=c.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var f=i.stateNode,m=Rf(r);bc(r,m,f);break;case 5:var b=i.stateNode;i.flags&32&&(Ba(b,""),i.flags&=-33);var S=Rf(r);bc(r,S,b);break;case 3:case 4:var A=i.stateNode.containerInfo,U=Rf(r);kf(r,U,A);break;default:throw Error(a(161))}}catch(q){Qe(r,r.return,q)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function Uy(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var s=r;Uy(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),r=r.sibling}}function Rr(r,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Ny(r,s.alternate,s),s=s.sibling}function ua(r){for(r=r.child;r!==null;){var s=r;switch(s.tag){case 0:case 11:case 14:case 15:ls(4,s,s.return),ua(s);break;case 1:nr(s,s.return);var i=s.stateNode;typeof i.componentWillUnmount=="function"&&Ay(s,s.return,i),ua(s);break;case 27:Uo(s.stateNode);case 26:case 5:nr(s,s.return),ua(s);break;case 22:s.memoizedState===null&&ua(s);break;case 30:ua(s);break;default:ua(s)}r=r.sibling}}function kr(r,s,i){for(i=i&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var c=s.alternate,f=r,m=s,b=m.flags;switch(m.tag){case 0:case 11:case 15:kr(f,m,i),Ro(4,m);break;case 1:if(kr(f,m,i),c=m,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(U){Qe(c,c.return,U)}if(c=m,f=c.updateQueue,f!==null){var S=c.stateNode;try{var A=f.shared.hiddenCallbacks;if(A!==null)for(f.shared.hiddenCallbacks=null,f=0;f<A.length;f++)pg(A[f],S)}catch(U){Qe(c,c.return,U)}}i&&b&64&&xy(m),ko(m,m.return);break;case 27:Oy(m);case 26:case 5:kr(f,m,i),i&&c===null&&b&4&&Ry(m),ko(m,m.return);break;case 12:kr(f,m,i);break;case 31:kr(f,m,i),i&&b&4&&Ly(f,m);break;case 13:kr(f,m,i),i&&b&4&&My(f,m);break;case 22:m.memoizedState===null&&kr(f,m,i),ko(m,m.return);break;case 30:break;default:kr(f,m,i)}s=s.sibling}}function Cf(r,s){var i=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),r=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(r=s.memoizedState.cachePool.pool),r!==i&&(r!=null&&r.refCount++,i!=null&&po(i))}function Nf(r,s){r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&po(r))}function Hn(r,s,i,c){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Py(r,s,i,c),s=s.sibling}function Py(r,s,i,c){var f=s.flags;switch(s.tag){case 0:case 11:case 15:Hn(r,s,i,c),f&2048&&Ro(9,s);break;case 1:Hn(r,s,i,c);break;case 3:Hn(r,s,i,c),f&2048&&(r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&po(r)));break;case 12:if(f&2048){Hn(r,s,i,c),r=s.stateNode;try{var m=s.memoizedProps,b=m.id,S=m.onPostCommit;typeof S=="function"&&S(b,s.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(A){Qe(s,s.return,A)}}else Hn(r,s,i,c);break;case 31:Hn(r,s,i,c);break;case 13:Hn(r,s,i,c);break;case 23:break;case 22:m=s.stateNode,b=s.alternate,s.memoizedState!==null?m._visibility&2?Hn(r,s,i,c):Oo(r,s):m._visibility&2?Hn(r,s,i,c):(m._visibility|=2,ii(r,s,i,c,(s.subtreeFlags&10256)!==0||!1)),f&2048&&Cf(b,s);break;case 24:Hn(r,s,i,c),f&2048&&Nf(s.alternate,s);break;default:Hn(r,s,i,c)}}function ii(r,s,i,c,f){for(f=f&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var m=r,b=s,S=i,A=c,U=b.flags;switch(b.tag){case 0:case 11:case 15:ii(m,b,S,A,f),Ro(8,b);break;case 23:break;case 22:var q=b.stateNode;b.memoizedState!==null?q._visibility&2?ii(m,b,S,A,f):Oo(m,b):(q._visibility|=2,ii(m,b,S,A,f)),f&&U&2048&&Cf(b.alternate,b);break;case 24:ii(m,b,S,A,f),f&&U&2048&&Nf(b.alternate,b);break;default:ii(m,b,S,A,f)}s=s.sibling}}function Oo(r,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var i=r,c=s,f=c.flags;switch(c.tag){case 22:Oo(i,c),f&2048&&Cf(c.alternate,c);break;case 24:Oo(i,c),f&2048&&Nf(c.alternate,c);break;default:Oo(i,c)}s=s.sibling}}var Co=8192;function oi(r,s,i){if(r.subtreeFlags&Co)for(r=r.child;r!==null;)Iy(r,s,i),r=r.sibling}function Iy(r,s,i){switch(r.tag){case 26:oi(r,s,i),r.flags&Co&&r.memoizedState!==null&&aT(i,qn,r.memoizedState,r.memoizedProps);break;case 5:oi(r,s,i);break;case 3:case 4:var c=qn;qn=Lc(r.stateNode.containerInfo),oi(r,s,i),qn=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=Co,Co=16777216,oi(r,s,i),Co=c):oi(r,s,i));break;default:oi(r,s,i)}}function By(r){var s=r.alternate;if(s!==null&&(r=s.child,r!==null)){s.child=null;do s=r.sibling,r.sibling=null,r=s;while(r!==null)}}function No(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var i=0;i<s.length;i++){var c=s[i];Nt=c,qy(c,r)}By(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)$y(r),r=r.sibling}function $y(r){switch(r.tag){case 0:case 11:case 15:No(r),r.flags&2048&&ls(9,r,r.return);break;case 3:No(r);break;case 12:No(r);break;case 22:var s=r.stateNode;r.memoizedState!==null&&s._visibility&2&&(r.return===null||r.return.tag!==13)?(s._visibility&=-3,wc(r)):No(r);break;default:No(r)}}function wc(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var i=0;i<s.length;i++){var c=s[i];Nt=c,qy(c,r)}By(r)}for(r=r.child;r!==null;){switch(s=r,s.tag){case 0:case 11:case 15:ls(8,s,s.return),wc(s);break;case 22:i=s.stateNode,i._visibility&2&&(i._visibility&=-3,wc(s));break;default:wc(s)}r=r.sibling}}function qy(r,s){for(;Nt!==null;){var i=Nt;switch(i.tag){case 0:case 11:case 15:ls(8,i,s);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var c=i.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:po(i.memoizedState.cache)}if(c=i.child,c!==null)c.return=i,Nt=c;else e:for(i=r;
vendor: 3,197 bytes, line 9
9Nt!==null;){c=Nt;var f=c.sibling,m=c.return;if(jy(c),c===i){Nt=null;break e}if(f!==null){f.return=m,Nt=f;break e}Nt=m}}}var _E={getCacheForType:function(r){var s=Ut(yt),i=s.data.get(r);return i===void 0&&(i=r(),s.data.set(r,i)),i},cacheSignal:function(){return Ut(yt).controller.signal}},wE=typeof WeakMap=="function"?WeakMap:Map,Ze=0,nt=null,Ue=null,Ie=0,Ye=0,wn=null,cs=!1,li=!1,jf=!1,Or=0,dt=0,us=0,da=0,Df=0,Sn=0,ci=0,jo=null,un=null,Lf=!1,Sc=0,Hy=0,Ec=1/0,Tc=null,ds=null,xt=0,fs=null,ui=null,Cr=0,Mf=0,zf=null,Vy=null,Do=0,Uf=null;function En(){return(Ze&2)!==0&&Ie!==0?Ie&-Ie:N.T!==null?Hf():nd()}function Gy(){if(Sn===0)if((Ie&536870912)===0||$e){var r=ja;ja<<=1,(ja&3932160)===0&&(ja=262144),Sn=r}else Sn=536870912;return r=bn.current,r!==null&&(r.flags|=32),Sn}function dn(r,s,i){(r===nt&&(Ye===2||Ye===9)||r.cancelPendingCommit!==null)&&(di(r,0),hs(r,Ie,Sn,!1)),ct(r,i),((Ze&2)===0||r!==nt)&&(r===nt&&((Ze&2)===0&&(da|=i),dt===4&&hs(r,Ie,Sn,!1)),rr(r))}function Fy(r,s,i){if((Ze&6)!==0)throw Error(a(327));var c=!i&&(s&127)===0&&(s&r.expiredLanes)===0||ot(r,s),f=c?TE(r,s):If(r,s,!0),m=c;do{if(f===0){li&&!c&&hs(r,s,0,!1);break}else{if(i=r.current.alternate,m&&!SE(i)){f=If(r,s,!1),m=!1;continue}if(f===2){if(m=s,r.errorRecoveryDisabledLanes&m)var b=0;else b=r.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){s=b;e:{var S=r;f=jo;var A=S.current.memoizedState.isDehydrated;if(A&&(di(S,b).flags|=256),b=If(S,b,!1),b!==2){if(jf&&!A){S.errorRecoveryDisabledLanes|=m,da|=m,f=4;break e}m=un,un=f,m!==null&&(un===null?un=m:un.push.apply(un,m))}f=b}if(m=!1,f!==2)continue}}if(f===1){di(r,0),hs(r,s,0,!0);break}e:{switch(c=r,m=f,m){case 0:case 1:throw Error(a(345));case 4:if((s&4194048)!==s)break;case 6:hs(c,s,Sn,!cs);break e;case 2:un=null;break;case 3:case 5:break;default:throw Error(a(329))}if((s&62914560)===s&&(f=Sc+300-Jt(),10<f)){if(hs(c,s,Sn,!cs),Re(c,0,!0)!==0)break e;Cr=s,c.timeoutHandle=Ev(Zy.bind(null,c,i,un,Tc,Lf,s,Sn,da,ci,cs,m,"Throttled",-0,0),f);break e}Zy(c,i,un,Tc,Lf,s,Sn,da,ci,cs,m,null,-0,0)}}break}while(!0);rr(r)}function Zy(r,s,i,c,f,m,b,S,A,U,q,K,P,$){if(r.timeoutHandle=-1,K=s.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mr},Iy(s,m,K);var de=(m&62914560)===m?Sc-Jt():(m&4194048)===m?Hy-Jt():0;if(de=iT(K,de),de!==null){Cr=m,r.cancelPendingCommit=de(tv.bind(null,r,s,m,i,c,f,b,S,A,q,K,null,P,$)),hs(r,m,b,!U);return}}tv(r,s,m,i,c,f,b,S,A)}function SE(r){for(var s=r;;){var i=s.tag;if((i===0||i===11||i===15)&&s.flags&16384&&(i=s.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var c=0;c<i.length;c++){var f=i[c],m=f.getSnapshot;f=f.value;try{if(!yn(m(),f))return!1}catch{return!1}}if(i=s.child,s.subtreeFlags&16384&&i!==null)i.return=s,s=i;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function hs(r,s,i,c){s&=~Df,s&=~da,r.suspendedLanes|=s,r.pingedLanes&=~s,c&&(r.warmLanes|=s),c=r.expirationTimes;for(var f=s;0<f;){var m=31-Ft(f),b=1<<m;c[m]=-1,f&=~b}i!==0&&Ks(r,i,s)}function xc(){return(Ze&6)===0?(Lo(0),!1):!0}
vendor: 5,217 bytes, line 9
9function Pf(){if(Ue!==null){if(Ye===0)var r=Ue.return;else r=Ue,br=na=null,Wd(r),ti=null,go=0,r=Ue;for(;r!==null;)Ty(r.alternate,r),r=r.return;Ue=null}}function di(r,s){var i=r.timeoutHandle;i!==-1&&(r.timeoutHandle=-1,qE(i)),i=r.cancelPendingCommit,i!==null&&(r.cancelPendingCommit=null,i()),Cr=0,Pf(),nt=r,Ue=i=yr(r.current,null),Ie=s,Ye=0,wn=null,cs=!1,li=ot(r,s),jf=!1,ci=Sn=Df=da=us=dt=0,un=jo=null,Lf=!1,(s&8)!==0&&(s|=s&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=s;0<c;){var f=31-Ft(c),m=1<<f;s|=r[f],c&=~m}return Or=s,Fl(),i}function Ky(r,s){De=null,N.H=To,s===ei||s===ec?(s=ug(),Ye=3):s===$d?(s=ug(),Ye=4):Ye=s===gf?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,wn=s,Ue===null&&(dt=1,pc(r,Cn(s,r.current)))}function Yy(){var r=bn.current;return r===null?!0:(Ie&4194048)===Ie?Ln===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?r===Ln:!1}function Qy(){var r=N.H;return N.H=To,r===null?To:r}function Jy(){var r=N.A;return N.A=_E,r}function Ac(){dt=4,cs||(Ie&4194048)!==Ie&&bn.current!==null||(li=!0),(us&134217727)===0&&(da&134217727)===0||nt===null||hs(nt,Ie,Sn,!1)}function If(r,s,i){var c=Ze;Ze|=2;var f=Qy(),m=Jy();(nt!==r||Ie!==s)&&(Tc=null,di(r,s)),s=!1;var b=dt;e:do try{if(Ye!==0&&Ue!==null){var S=Ue,A=wn;switch(Ye){case 8:Pf(),b=6;break e;case 3:case 2:case 9:case 6:bn.current===null&&(s=!0);var U=Ye;if(Ye=0,wn=null,fi(r,S,A,U),i&&li){b=0;break e}break;default:U=Ye,Ye=0,wn=null,fi(r,S,A,U)}}EE(),b=dt;break}catch(q){Ky(r,q)}while(!0);return s&&r.shellSuspendCounter++,br=na=null,Ze=c,N.H=f,N.A=m,Ue===null&&(nt=null,Ie=0,Fl()),b}function EE(){for(;Ue!==null;)Xy(Ue)}function TE(r,s){var i=Ze;Ze|=2;var c=Qy(),f=Jy();nt!==r||Ie!==s?(Tc=null,Ec=Jt()+500,di(r,s)):li=ot(r,s);e:do try{if(Ye!==0&&Ue!==null){s=Ue;var m=wn;t:switch(Ye){case 1:Ye=0,wn=null,fi(r,s,m,1);break;case 2:case 9:if(lg(m)){Ye=0,wn=null,Wy(s);break}s=function(){Ye!==2&&Ye!==9||nt!==r||(Ye=7),rr(r)},m.then(s,s);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:lg(m)?(Ye=0,wn=null,Wy(s)):(Ye=0,wn=null,fi(r,s,m,7));break;case 5:var b=null;switch(Ue.tag){case 26:b=Ue.memoizedState;case 5:case 27:var S=Ue;if(b?Pv(b):S.stateNode.complete){Ye=0,wn=null;var A=S.sibling;if(A!==null)Ue=A;else{var U=S.return;U!==null?(Ue=U,Rc(U)):Ue=null}break t}}Ye=0,wn=null,fi(r,s,m,5);break;case 6:Ye=0,wn=null,fi(r,s,m,6);break;case 8:Pf(),dt=6;break e;default:throw Error(a(462))}}xE();break}catch(q){Ky(r,q)}while(!0);return br=na=null,N.H=c,N.A=f,Ze=i,Ue!==null?0:(nt=null,Ie=0,Fl(),dt)}function xE(){for(;Ue!==null&&!Qt();)Xy(Ue)}function Xy(r){var s=Sy(r.alternate,r,Or);r.memoizedProps=r.pendingProps,s===null?Rc(r):Ue=s}function Wy(r){var s=r,i=s.alternate;switch(s.tag){case 15:case 0:s=gy(i,s,s.pendingProps,s.type,void 0,Ie);break;case 11:s=gy(i,s,s.pendingProps,s.type.render,s.ref,Ie);break;case 5:Wd(s);default:Ty(i,s),s=Ue=Jm(s,Or),s=Sy(i,s,Or)}r.memoizedProps=r.pendingProps,s===null?Rc(r):Ue=s}function fi(r,s,i,c){br=na=null,Wd(s),ti=null,go=0;var f=s.return;try{if(hE(r,f,s,i,Ie)){dt=1,pc(r,Cn(i,r.current)),Ue=null;return}}catch(m){if(f!==null)throw Ue=f,m;dt=1,pc(r,Cn(i,r.current)),Ue=null;return}s.flags&32768?($e||c===1?r=!0:li||(Ie&536870912)!==0?r=!1:(cs=r=!0,(c===2||c===9||c===3||c===6)&&(c=bn.current,c!==null&&c.tag===13&&(c.flags|=16384))),ev(s,r)):Rc(s)}function Rc(r){var s=r;do{if((s.flags&32768)!==0){ev(s,cs);return}r=s.return;var i=gE(s.alternate,s,Or);if(i!==null){Ue=i;return}if(s=s.sibling,s!==null){Ue=s;return}Ue=s=r}while(s!==null);dt===0&&(dt=5)}function ev(r,s){do{var i=yE(r.alternate,r);if(i!==null){i.flags&=32767,Ue=i;return}if(i=r.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!s&&(r=r.sibling,r!==null)){Ue=r;return}Ue=r=i}while(r!==null);dt=6,Ue=null}function tv(r,s,i,c,f,m,b,S,A){r.cancelPendingCommit=null;do kc();while(xt!==0);if((Ze&6)!==0)throw Error(a(327));if(s!==null){if(s===r.current)throw Error(a(177));if(m=s.lanes|s.childLanes,m|=Ad,tn(r,i,m,b,S,A),r===nt&&(Ue=nt=null,Ie=0),ui=s,fs=r,Cr=i,Mf=m,zf=f,Vy=c,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,OE(Gs,function(){return iv(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||c){c=N.T,N.T=null,f=Y.p,Y.p=2,b=Ze,Ze|=4;try{vE(r,s,i)}finally{Ze=b,Y.p=f,N.T=c}}xt=1,nv(),rv(),sv()}}function nv(){if(xt===1){xt=0;var r=fs,s=ui,i=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||i){i=N.T,N.T=null;var c=Y.p;Y.p=2;var f=Ze;Ze|=4;try{zy(s,r);var m=Jf,b=qm(r.containerInfo),S=m.focusedElem,A=m.selectionRange;if(b!==S&&S&&S.ownerDocument&&$m(S.ownerDocument.documentElement,S)){if(A!==null&&wd(S)){var U=A.start,q=A.end;if(q===void 0&&(q=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(q,S.value.length);else{var K=S.ownerDocument||document,P=K&&K.defaultView||window;if(P.getSelection){var $=P.getSelection(),de=S.textContent.length,Ee=Math.min(A.start,de),We=A.end===void 0?Ee:Math.min(A.end,de);!$.extend&&Ee>We&&(b=We,We=Ee,Ee=b);var L=Bm(S,Ee),O=Bm(S,We);if(L&&O&&($.rangeCount!==1||$.anchorNode!==L.node||$.anchorOffset!==L.offset||$.focusNode!==O.node||$.focusOffset!==O.offset)){var z=K.createRange();z.setStart(L.node,L.offset),$.removeAllRanges(),Ee>
vendor: 6,710 bytes, line 9
9We?($.addRange(z),$.extend(O.node,O.offset)):(z.setEnd(O.node,O.offset),$.addRange(z))}}}}for(K=[],$=S;$=$.parentNode;)$.nodeType===1&&K.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<K.length;S++){var G=K[S];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Bc=!!Qf,Jf=Qf=null}finally{Ze=f,Y.p=c,N.T=i}}r.current=s,xt=2}}function rv(){if(xt===2){xt=0;var r=fs,s=ui,i=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||i){i=N.T,N.T=null;var c=Y.p;Y.p=2;var f=Ze;Ze|=4;try{Ny(r,s.alternate,s)}finally{Ze=f,Y.p=c,N.T=i}}xt=3}}function sv(){if(xt===4||xt===3){xt=0,Kr();var r=fs,s=ui,i=Cr,c=Vy;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?xt=5:(xt=0,ui=fs=null,av(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&(ds=null),Bn(i),s=s.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(Fs,s,void 0,(s.current.flags&128)===128)}catch{}if(c!==null){s=N.T,f=Y.p,Y.p=2,N.T=null;try{for(var m=r.onRecoverableError,b=0;b<c.length;b++){var S=c[b];m(S.value,{componentStack:S.stack})}}finally{N.T=s,Y.p=f}}(Cr&3)!==0&&kc(),rr(r),f=r.pendingLanes,(i&261930)!==0&&(f&42)!==0?r===Uf?Do++:(Do=0,Uf=r):Do=0,Lo(0)}}function av(r,s){(r.pooledCacheLanes&=s)===0&&(s=r.pooledCache,s!=null&&(r.pooledCache=null,po(s)))}function kc(){return nv(),rv(),sv(),iv()}function iv(){if(xt!==5)return!1;var r=fs,s=Mf;Mf=0;var i=Bn(Cr),c=N.T,f=Y.p;try{Y.p=32>i?32:i,N.T=null,i=zf,zf=null;var m=fs,b=Cr;if(xt=0,ui=fs=null,Cr=0,(Ze&6)!==0)throw Error(a(331));var S=Ze;if(Ze|=4,$y(m.current),Py(m,m.current,b,i),Ze=S,Lo(0,!1),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(Fs,m)}catch{}return!0}finally{Y.p=f,N.T=c,av(r,s)}}function ov(r,s,i){s=Cn(i,s),s=mf(r.stateNode,s,2),r=as(r,s,2),r!==null&&(ct(r,2),rr(r))}function Qe(r,s,i){if(r.tag===3)ov(r,r,i);else for(;s!==null;){if(s.tag===3){ov(s,r,i);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ds===null||!ds.has(c))){r=Cn(i,r),i=ly(2),c=as(s,i,2),c!==null&&(cy(i,c,s,r),ct(c,2),rr(c));break}}s=s.return}}function Bf(r,s,i){var c=r.pingCache;if(c===null){c=r.pingCache=new wE;var f=new Set;c.set(s,f)}else f=c.get(s),f===void 0&&(f=new Set,c.set(s,f));f.has(i)||(jf=!0,f.add(i),r=AE.bind(null,r,s,i),s.then(r,r))}function AE(r,s,i){var c=r.pingCache;c!==null&&c.delete(s),r.pingedLanes|=r.suspendedLanes&i,r.warmLanes&=~i,nt===r&&(Ie&i)===i&&(dt===4||dt===3&&(Ie&62914560)===Ie&&300>Jt()-Sc?(Ze&2)===0&&di(r,0):Df|=i,ci===Ie&&(ci=0)),rr(r)}function lv(r,s){s===0&&(s=Zt()),r=Ws(r,s),r!==null&&(ct(r,s),rr(r))}function RE(r){var s=r.memoizedState,i=0;s!==null&&(i=s.retryLane),lv(r,i)}function kE(r,s){var i=0;switch(r.tag){case 31:case 13:var c=r.stateNode,f=r.memoizedState;f!==null&&(i=f.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(a(314))}c!==null&&c.delete(s),lv(r,i)}function OE(r,s){return Qi(r,s)}var Oc=null,hi=null,$f=!1,Cc=!1,qf=!1,ps=0;function rr(r){r!==hi&&r.next===null&&(hi===null?Oc=hi=r:hi=hi.next=r),Cc=!0,$f||($f=!0,NE())}function Lo(r,s){if(!qf&&Cc){qf=!0;do for(var i=!1,c=Oc;c!==null;){if(r!==0){var f=c.pendingLanes;if(f===0)var m=0;else{var b=c.suspendedLanes,S=c.pingedLanes;m=(1<<31-Ft(42|r)+1)-1,m&=f&~(b&~S),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,fv(c,m))}else m=Ie,m=Re(c,c===nt?m:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(m&3)===0||ot(c,m)||(i=!0,fv(c,m));c=c.next}while(i);qf=!1}}function CE(){cv()}function cv(){Cc=$f=!1;var r=0;ps!==0&&$E()&&(r=ps);for(var s=Jt(),i=null,c=Oc;c!==null;){var f=c.next,m=uv(c,s);m===0?(c.next=null,i===null?Oc=f:i.next=f,f===null&&(hi=i)):(i=c,(r!==0||(m&3)!==0)&&(Cc=!0)),c=f}xt!==0&&xt!==5||Lo(r),ps!==0&&(ps=0)}function uv(r,s){for(var i=r.suspendedLanes,c=r.pingedLanes,f=r.expirationTimes,m=r.pendingLanes&-62914561;0<m;){var b=31-Ft(m),S=1<<b,A=f[b];A===-1?((S&i)===0||(S&c)!==0)&&(f[b]=Ot(S,s)):A<=s&&(r.expiredLanes|=S),m&=~S}if(s=nt,i=Ie,i=Re(r,r===s?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,i===0||r===s&&(Ye===2||Ye===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&Ji(c),r.callbackNode=null,r.callbackPriority=0;if((i&3)===0||ot(r,i)){if(s=i&-i,s===r.callbackPriority)return s;switch(c!==null&&Ji(c),Bn(i)){case 2:case 8:i=Dl;break;case 32:i=Gs;break;case 268435456:i=hr;break;default:i=Gs}return c=dv.bind(null,r),i=Qi(i,c),r.callbackPriority=s,r.callbackNode=i,s}return c!==null&&c!==null&&Ji(c),r.callbackPriority=2,r.callbackNode=null,2}function dv(r,s){if(xt!==0&&xt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var i=r.callbackNode;if(kc()&&r.callbackNode!==i)return null;var c=Ie;return c=Re(r,r===nt?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(Fy(r,c,s),uv(r,Jt()),r.callbackNode!=null&&r.callbackNode===i?dv.bind(null,r):null)}function fv(r,s){if(kc())return null;Fy(r,s,!0)}function NE(){HE(function(){(Ze&6)!==0?Qi(Vs,CE):cv()})}function Hf(){if(ps===0){var r=Xa;r===0&&(r=Na,Na<<=1,(Na&261888)===0&&(Na=256)),ps=r}return ps}function hv(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Pl(""+r)}function pv(r,s){var i=s.ownerDocument.createElement("input");return i.name=s.name,i.value=s.value,r.id&&i.setAttribute("form",r.id),s.parentNode.insertBefore(i,s),r=new FormData(r),i.parentNode.removeChild(i),r}function jE(r,s,i,c,f){if(s==="submit"&&i&&i.stateNode===f){var m=hv((f[sn]||null).action),b=c.submitter;b&&(s=(s=b[sn]||null)?hv(s.formAction):b.getAttribute("formAction"),s!==null&&(m=s,b=null));var S=new ql("action","action",null,c,f);r.push({event:S,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(ps!==0){var A=b?pv(f,b):new FormData(f);cf(i,{pending:!0,data:A,method:f.method,action:m},null,A)}}else typeof m=="function"&&(S.preventDefault(),A=b?pv(f,b):new FormData(f),cf(i,{pending:!0,data:A,method:f.method,action:m},m,A))},currentTarget:f}]})}}for(var Vf=0;Vf<xd.length;Vf++){var Gf=xd[Vf],DE=Gf.toLowerCase(),LE=Gf[0].toUpperCase()+Gf.slice(1);$n(DE,"on"+LE)}$n(Gm,"onAnimationEnd"),$n(Fm,"onAnimationIteration"),$n(Zm,"onAnimationStart"),$n("dblclick","onDoubleClick"),$n("focusin","onFocus"),$n("focusout","onBlur"),$n(Q1,"onTransitionRun"),$n(J1,"onTransitionStart"),$n(X1,"onTransitionCancel"),$n(Km,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),Ys("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ys("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),Ys("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ys("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ys("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ys("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mo="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(" "),ME=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mo));function mv(r,s){s=(s&4)!==0;for(var i=0;i<r.length;i++){var c=r[i],f=c.event;c=c.listeners;e:{var m=void 0;if(s)for(var b=c.length-1;0<=b;b--){var S=c[b],A=S.instance,U=S.currentTarget;if(S=S.listener,A!==m&&f.isPropagationStopped())break e;m=S,f.currentTarget=U;try{m(f)}catch(q){Gl(q)}f.currentTarget=null,m=A}else for(b=0;b<c.length;b++){if(S=c[b],A=S.instance,U=S.currentTarget,S=S.listener,A!==m&&f.isPropagationStopped())break e;m=S,f.currentTarget=U;try{m(f)}catch(q){Gl(q)}f.currentTarget=null,m=A}}}}function Pe(r,s){var i=s[rd];i===void 0&&(i=s[rd]=new Set);var c=r+"__bubble";i.has(c)||(gv(s,r,2,!1),i.add(c))}function Ff(r,s,i){var c=0;s&&(c|=4),gv(i,r,c,s)}var Nc="_reactListening"+Math.random().toString(36).slice(2);function Zf(r){if(!r[Nc]){r[Nc]=!0,cm.forEach(function(i){i!=="selectionchange"&&(ME.has(i)||Ff(i,!1,r),Ff(i,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[Nc]||(s[Nc]=!0,Ff("selectionchange",!1,s))}}function gv(r,s,i,c){switch(Gv(s)){case 2:var f=cT;break;case 8:f=uT;break;default:f=lh}i=f.bind(null,s,i,r),f=void 0,!fd||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(f=!0),c?f!==void 0?r.addEventListener(s,i,{capture:!0,passive:f}):r.addEventListener(s,i,!0):f!==void 0?r.addEventListener(s,i,{passive:f}):r.addEventListener(s,i,!1)}function Kf(r,s,i,c,f){var m=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var S=c.stateNode.containerInfo;if(S===f)break;if(b===4)for(b=c.return;b!==null;){var A=b.tag;if((A===3||A===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;S!==null;){if(b=Ma(S),b===null)return;if(A=b.tag,A===5||A===6||A===26||A===27){c=m=b;continue e}S=S.parentNode}}c=c.return}wm(function(){var U=m,q=ud(i),K=[];e:{var P=Ym.get(r);if(P!==void 0){var $=ql,de=r;switch(r){case"keypress":if(Bl(i)===0)break e;case"keydown":case"keyup":$=k1;break;case"focusin":de="focus",$=gd;break;case"focusout":de="blur",$=gd;break;case"beforeblur":case"afterblur":$=gd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Tm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=g1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=N1;break;case Gm:case Fm:case Zm:$=b1;break;case Km:$=D1;break;case"scroll":case"scrollend":$=p1;break;case"wheel":$=M1;break;case"copy":case"cut":case"paste":$=w1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Am;break;case"toggle":case"beforetoggle":$=U1}var Ee=(s&4)!==0,We=!Ee&&(r==="scroll"||r==="scrollend"),L=Ee?P!==null?P+"Capture":null:P;Ee=[];for(var O=U,z;O!==null;){var G=O;if(z=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||z===null||L===null||(G=no(O,L),G!=null&&Ee.push(zo(O,G,z))),We)break;O=O.return}0<Ee.length&&(P=new $(P,de,null,i,q),K.push({event:P,listeners:Ee}))}}if((s&7)===0){e:{if(P=r==="mouseover"||r==="pointerover",$=r==="mouseout"||r==="pointerout",P&&i!==cd&&(de=i.relatedTarget||i.fromElement)&&(Ma(de)||de[La]))break e;if(($||P)&&(P=q.window===q?q:(P=q.ownerDocument)?P.defaultView||P.parentWindow:window,$?(de=i.relatedTarget||i.toElement,$=U,de=
vendor: 5,940 bytes, lines 9-10
9de?Ma(de):null,de!==null&&(We=l(de),Ee=de.tag,de!==We||Ee!==5&&Ee!==27&&Ee!==6)&&(de=null)):($=null,de=U),$!==de)){if(Ee=Tm,G="onMouseLeave",L="onMouseEnter",O="mouse",(r==="pointerout"||r==="pointerover")&&(Ee=Am,G="onPointerLeave",L="onPointerEnter",O="pointer"),We=$==null?P:to($),z=de==null?P:to(de),P=new Ee(G,O+"leave",$,i,q),P.target=We,P.relatedTarget=z,G=null,Ma(q)===U&&(Ee=new Ee(L,O+"enter",de,i,q),Ee.target=z,Ee.relatedTarget=We,G=Ee),We=G,$&&de)t:{for(Ee=zE,L=$,O=de,z=0,G=L;G;G=Ee(G))z++;G=0;for(var we=O;we;we=Ee(we))G++;for(;0<z-G;)L=Ee(L),z--;for(;0<G-z;)O=Ee(O),G--;for(;z--;){if(L===O||O!==null&&L===O.alternate){Ee=L;break t}L=Ee(L),O=Ee(O)}Ee=null}else Ee=null;$!==null&&yv(K,P,$,Ee,!1),de!==null&&We!==null&&yv(K,We,de,Ee,!0)}}e:{if(P=U?to(U):window,$=P.nodeName&&P.nodeName.toLowerCase(),$==="select"||$==="input"&&P.type==="file")var Ve=Lm;else if(jm(P))if(Mm)Ve=Z1;else{Ve=G1;var ye=V1}else $=P.nodeName,!$||$.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?U&&ld(U.elementType)&&(Ve=Lm):Ve=F1;if(Ve&&(Ve=Ve(r,U))){Dm(K,Ve,i,q);break e}ye&&ye(r,P,U),r==="focusout"&&U&&P.type==="number"&&U.memoizedProps.value!=null&&od(P,"number",P.value)}switch(ye=U?to(U):window,r){case"focusin":(jm(ye)||ye.contentEditable==="true")&&(Va=ye,Sd=U,uo=null);break;case"focusout":uo=Sd=Va=null;break;case"mousedown":Ed=!0;break;case"contextmenu":case"mouseup":case"dragend":Ed=!1,Hm(K,i,q);break;case"selectionchange":if(Y1)break;case"keydown":case"keyup":Hm(K,i,q)}var Le;if(vd)e:{switch(r){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else Ha?Cm(r,i)&&(Be="onCompositionEnd"):r==="keydown"&&i.keyCode===229&&(Be="onCompositionStart");Be&&(Rm&&i.locale!=="ko"&&(Ha||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&Ha&&(Le=Sm()):(Xr=q,hd="value"in Xr?Xr.value:Xr.textContent,Ha=!0)),ye=jc(U,Be),0<ye.length&&(Be=new xm(Be,r,null,i,q),K.push({event:Be,listeners:ye}),Le?Be.data=Le:(Le=Nm(i),Le!==null&&(Be.data=Le)))),(Le=I1?B1(r,i):$1(r,i))&&(Be=jc(U,"onBeforeInput"),0<Be.length&&(ye=new xm("onBeforeInput","beforeinput",null,i,q),K.push({event:ye,listeners:Be}),ye.data=Le)),jE(K,r,U,i,q)}mv(K,s)})}function zo(r,s,i){return{instance:r,listener:s,currentTarget:i}}function jc(r,s){for(var i=s+"Capture",c=[];r!==null;){var f=r,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=no(r,i),f!=null&&c.unshift(zo(r,f,m)),f=no(r,s),f!=null&&c.push(zo(r,f,m))),r.tag===3)return c;r=r.return}return[]}function zE(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function yv(r,s,i,c,f){for(var m=s._reactName,b=[];i!==null&&i!==c;){var S=i,A=S.alternate,U=S.stateNode;if(S=S.tag,A!==null&&A===c)break;S!==5&&S!==26&&S!==27||U===null||(A=U,f?(U=no(i,m),U!=null&&b.unshift(zo(i,U,A))):f||(U=no(i,m),U!=null&&b.push(zo(i,U,A)))),i=i.return}b.length!==0&&r.push({event:s,listeners:b})}var UE=/\r\n?/g,PE=/\u0000|\uFFFD/g;function vv(r){return(typeof r=="string"?r:""+r).replace(UE,`
10`).replace(PE,"")}function bv(r,s){return s=vv(s),vv(r)===s}function Xe(r,s,i,c,f,m){switch(i){case"children":typeof c=="string"?s==="body"||s==="textarea"&&c===""||Ba(r,c):(typeof c=="number"||typeof c=="bigint")&&s!=="body"&&Ba(r,""+c);break;case"className":zl(r,"class",c);break;case"tabIndex":zl(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":zl(r,i,c);break;case"style":bm(r,c,m);break;case"data":if(s!=="object"){zl(r,"data",c);break}case"src":case"href":if(c===""&&(s!=="a"||i!=="href")){r.removeAttribute(i);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(i);break}c=Pl(""+c),r.setAttribute(i,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(s!=="input"&&Xe(r,s,"name",f.name,f,null),Xe(r,s,"formEncType",f.formEncType,f,null),Xe(r,s,"formMethod",f.formMethod,f,null),Xe(r,s,"formTarget",f.formTarget,f,null)):(Xe(r,s,"encType",f.encType,f,null),Xe(r,s,"method",f.method,f,null),Xe(r,s,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(i);break}c=Pl(""+c),r.setAttribute(i,c);break;case"onClick":c!=null&&(r.onclick=mr);break;case"onScroll":c!=null&&Pe("scroll",r);break;case"onScrollEnd":c!=null&&Pe("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(i=c.__html,i!=null){if(f.children!=null)throw Error(a(60));r.innerHTML=i}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}i=Pl(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(i,""+c):r.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(i,""):r.removeAttribute(i);break;case"capture":case"download":c===!0?r.setAttribute(i,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(i,c):r.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(i,c):r.removeAttribute(i);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(i):r.setAttribute(i,c);break;case"popover":Pe("beforetoggle",r),Pe("toggle",r),Ml(r,"popover",c);break;case"xlinkActuate":pr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":pr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":pr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":pr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":pr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":pr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":pr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":pr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":pr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Ml(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=f1.get(i)||i,Ml(r,i,c))}}function Yf(r,s,i,c,f,m){switch(i){case"style":bm(r,c,m);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(i=c.__html,i!=null){if(f.children!=null)throw Error(a(60));r.innerHTML=i}}break;case"children":typeof c=="string"?Ba(r,c):(typeof c=="number"||typeof c=="bigint")&&Ba(r,""+c);break;case"onScroll":c!=null&&Pe("scroll",r);break;case"onScrollEnd":c!=null&&Pe("scrollend",r);break;case"onClick":c!=null&&(r.onclick=mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!um.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),s=i.slice(2,f?i.length-7:void 0),m=r[sn]||null,m=m!=null?m[i]:null,typeof m=="function"&&r.removeEventListener(s,m,f),typeof c=="function")){typeof m!="function"&&m!==null&&(i in r?r[i]=null:r.hasAttribute(i)&&r.removeAttribute(i)),r.addEventListener(s,c,f);break e}i in r?r[i]=c:c===!0?r.setAttribute(i,""):Ml(r,i,c)}}}function It(r,s,i){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",r),Pe("load",r);var c=!1,f=!1,m;for(m in i)if(i.hasOwnProperty(m)){var b=i[m];if(b!=null)switch(m){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,s));default:Xe(r,s,m,b,i,null)}}f&&Xe(r,s,"srcSet",i.srcSet,i,null),c&&Xe(r,s,"src",i.src,i,null);return;case"input":Pe("invalid",r);var S=m=b=f=null,A=null,U=null;for(c in i)if(i.hasOwnProperty(c)){var q=i[c];if(q!=null)switch(c){case"name":f=q;break;case"type":b=q;break;case"checked":A=q;break;case"defaultChecked":U=q;break;case"value":m=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(a(137,s));break;default:Xe(r,s,c,q,i,null)}}mm(r,m,S,A,U,b,f,!1);return;case"select":Pe("invalid",r),c=b=m=null;for(f in i)if(i.hasOwnProperty(f)&&(S=i[f],S!=null))switch(f){case"value":m=S;break;case"defaultValue":b=S;break;case"multiple":c=S;default:Xe(r,s,f,S,i,null)}s=m,i=b,r.multiple=!!c,s!=null?Ia(r,!!c,s,!1):i!=null&&Ia(r,!!c,i,!0);return;case"textarea":Pe("invalid",r),m=f=c=null;for(b in i)if(i.hasOwnProperty(b)&&(S=i[b],S!=null))switch(b){case"value":c=S;break;case"defaultValue":f=S;break;case"children":m=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(a(91));break;default:Xe(r,s,b,S,i,null)}ym(r,c,f,m);return;case"option":for(A in i)i.hasOwnProperty(A)&&(c=i[A],c!=null)&&(A==="selected"?r.selected=c&&typeof c!="function"&&typeof c!="symbol":Xe(r,s,A,c,i,null));return;case"dialog":Pe("beforetoggle",r),Pe("toggle",r),Pe("cancel",r),Pe("close",r);break;case"iframe":case"object":Pe("load",r);break;case"video":case"audio":for(c=0;c<Mo.length;c++)Pe(Mo[c],r);break;case"image":Pe("error",r),Pe("load",r);break;case"details":Pe("toggle",r);break;case"embed":case"source":case"link":Pe("error",r),Pe("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in i)if(i.hasOwnProperty(U)&&(c=i[U],c!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,s));default:Xe(r,s,U,c,i,null)}return;default:if(ld(s)){for(q in i)i.hasOwnProperty(q)&&(c=i[q],c!==void 0&&Yf(r,s,q,c,i,void 0));return}}for(S in i)i.hasOwnProperty(S)&&(c=i[S],c!=null&&Xe(r,s,S,c,i,null))}function IE(r,s,i,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,b=null,S=null,A=null,U=null,q=null;for($ in i){var K=i[$];if(i.hasOwnProperty($)&&K!=null)switch($){case"checked":break;case"value":break;case"defaultValue":A=K;default:c.hasOwnProperty($)||Xe(r,s,$,null,c,K)}}for(var P in c){var $=c[P];
vendor: 7,471 bytes, line 10
10if(K=i[P],c.hasOwnProperty(P)&&($!=null||K!=null))switch(P){case"type":m=$;break;case"name":f=$;break;case"checked":U=$;break;case"defaultChecked":q=$;break;case"value":b=$;break;case"defaultValue":S=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,s));break;default:$!==K&&Xe(r,s,P,$,c,K)}}id(r,b,S,A,U,q,m,f);return;case"select":$=b=S=P=null;for(m in i)if(A=i[m],i.hasOwnProperty(m)&&A!=null)switch(m){case"value":break;case"multiple":$=A;default:c.hasOwnProperty(m)||Xe(r,s,m,null,c,A)}for(f in c)if(m=c[f],A=i[f],c.hasOwnProperty(f)&&(m!=null||A!=null))switch(f){case"value":P=m;break;case"defaultValue":S=m;break;case"multiple":b=m;default:m!==A&&Xe(r,s,f,m,c,A)}s=S,i=b,c=$,P!=null?Ia(r,!!i,P,!1):!!c!=!!i&&(s!=null?Ia(r,!!i,s,!0):Ia(r,!!i,i?[]:"",!1));return;case"textarea":$=P=null;for(S in i)if(f=i[S],i.hasOwnProperty(S)&&f!=null&&!c.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Xe(r,s,S,null,c,f)}for(b in c)if(f=c[b],m=i[b],c.hasOwnProperty(b)&&(f!=null||m!=null))switch(b){case"value":P=f;break;case"defaultValue":$=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==m&&Xe(r,s,b,f,c,m)}gm(r,P,$);return;case"option":for(var de in i)P=i[de],i.hasOwnProperty(de)&&P!=null&&!c.hasOwnProperty(de)&&(de==="selected"?r.selected=!1:Xe(r,s,de,null,c,P));for(A in c)P=c[A],$=i[A],c.hasOwnProperty(A)&&P!==$&&(P!=null||$!=null)&&(A==="selected"?r.selected=P&&typeof P!="function"&&typeof P!="symbol":Xe(r,s,A,P,c,$));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in i)P=i[Ee],i.hasOwnProperty(Ee)&&P!=null&&!c.hasOwnProperty(Ee)&&Xe(r,s,Ee,null,c,P);for(U in c)if(P=c[U],$=i[U],c.hasOwnProperty(U)&&P!==$&&(P!=null||$!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(a(137,s));break;default:Xe(r,s,U,P,c,$)}return;default:if(ld(s)){for(var We in i)P=i[We],i.hasOwnProperty(We)&&P!==void 0&&!c.hasOwnProperty(We)&&Yf(r,s,We,void 0,c,P);for(q in c)P=c[q],$=i[q],!c.hasOwnProperty(q)||P===$||P===void 0&&$===void 0||Yf(r,s,q,P,c,$);return}}for(var L in i)P=i[L],i.hasOwnProperty(L)&&P!=null&&!c.hasOwnProperty(L)&&Xe(r,s,L,null,c,P);for(K in c)P=c[K],$=i[K],!c.hasOwnProperty(K)||P===$||P==null&&$==null||Xe(r,s,K,P,c,$)}function _v(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function BE(){if(typeof performance.getEntriesByType=="function"){for(var r=0,s=0,i=performance.getEntriesByType("resource"),c=0;c<i.length;c++){var f=i[c],m=f.transferSize,b=f.initiatorType,S=f.duration;if(m&&S&&_v(b)){for(b=0,S=f.responseEnd,c+=1;c<i.length;c++){var A=i[c],U=A.startTime;if(U>S)break;var q=A.transferSize,K=A.initiatorType;q&&_v(K)&&(A=A.responseEnd,b+=q*(A<S?1:(S-U)/(A-U)))}if(--c,s+=8*(m+b)/(f.duration/1e3),r++,10<r)break}}if(0<r)return s/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Qf=null,Jf=null;function Dc(r){return r.nodeType===9?r:r.ownerDocument}function wv(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sv(r,s){if(r===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&s==="foreignObject"?0:r}function Xf(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Wf=null;function $E(){var r=window.event;return r&&r.type==="popstate"?r===Wf?!1:(Wf=r,!0):(Wf=null,!1)}var Ev=typeof setTimeout=="function"?setTimeout:void 0,qE=typeof clearTimeout=="function"?clearTimeout:void 0,Tv=typeof Promise=="function"?Promise:void 0,HE=typeof queueMicrotask=="function"?queueMicrotask:typeof Tv<"u"?function(r){return Tv.resolve(null).then(r).catch(VE)}:Ev;function VE(r){setTimeout(function(){throw r})}function ms(r){return r==="head"}function xv(r,s){var i=s,c=0;do{var f=i.nextSibling;if(r.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(c===0){r.removeChild(f),yi(s);return}c--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")c++;else if(i==="html")Uo(r.ownerDocument.documentElement);else if(i==="head"){i=r.ownerDocument.head,Uo(i);for(var m=i.firstChild;m;){var b=m.nextSibling,S=m.nodeName;m[eo]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=b}}else i==="body"&&Uo(r.ownerDocument.body);i=f}while(i);yi(s)}function Av(r,s){var i=r;r=0;do{var c=i.nextSibling;if(i.nodeType===1?s?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(s?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(r===0)break;r--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||r++;i=c}while(i)}function eh(r){var s=r.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var i=s;switch(s=s.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":eh(i),sd(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}r.removeChild(i)}}function GE(r,s,i,c){for(;r.nodeType===1;){var f=i;if(r.nodeName.toLowerCase()!==s.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[eo])switch(s){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(m=r.getAttribute("rel"),m==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(m!==f.rel||r.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||r.getAttribute("title")!==(f.title==null?null:f.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(m=r.getAttribute("src"),(m!==(f.src==null?null:f.src)||r.getAttribute("type")!==(f.type==null?null:f.type)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(s==="input"&&r.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&r.getAttribute("name")===m)return r}else return r;if(r=Mn(r.nextSibling),r===null)break}return null}function FE(r,s,i){if(s==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=Mn(r.nextSibling),r===null))return null;return r}function Rv(r,s){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=Mn(r.nextSibling),r===null))return null;return r}function th(r){return r.data==="$?"||r.data==="$~"}function nh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function ZE(r,s){var i=r.ownerDocument;if(r.data==="$~")r._reactRetry=s;else if(r.data!=="$?"||i.readyState!=="loading")s();else{var c=function(){s(),i.removeEventListener("DOMContentLoaded",c)};i.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function Mn(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;
vendor: 5,062 bytes, line 10
10if(s==="/$"||s==="/&")return null}}return r}var rh=null;function kv(r){r=r.nextSibling;for(var s=0;r;){if(r.nodeType===8){var i=r.data;if(i==="/$"||i==="/&"){if(s===0)return Mn(r.nextSibling);s--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||s++}r=r.nextSibling}return null}function Ov(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var i=r.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(s===0)return r;s--}else i!=="/$"&&i!=="/&"||s++}r=r.previousSibling}return null}function Cv(r,s,i){switch(s=Dc(i),r){case"html":if(r=s.documentElement,!r)throw Error(a(452));return r;case"head":if(r=s.head,!r)throw Error(a(453));return r;case"body":if(r=s.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function Uo(r){for(var s=r.attributes;s.length;)r.removeAttributeNode(s[0]);sd(r)}var zn=new Map,Nv=new Set;function Lc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Nr=Y.d;Y.d={f:KE,r:YE,D:QE,C:JE,L:XE,m:WE,X:tT,S:eT,M:nT};function KE(){var r=Nr.f(),s=xc();return r||s}function YE(r){var s=za(r);s!==null&&s.tag===5&&s.type==="form"?Kg(s):Nr.r(r)}var pi=typeof document>"u"?null:document;function jv(r,s,i){var c=pi;if(c&&typeof s=="string"&&s){var f=kn(s);f='link[rel="'+r+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Nv.has(f)||(Nv.add(f),r={rel:r,crossOrigin:i,href:s},c.querySelector(f)===null&&(s=c.createElement("link"),It(s,"link",r),Ct(s),c.head.appendChild(s)))}}function QE(r){Nr.D(r),jv("dns-prefetch",r,null)}function JE(r,s){Nr.C(r,s),jv("preconnect",r,s)}function XE(r,s,i){Nr.L(r,s,i);var c=pi;if(c&&r&&s){var f='link[rel="preload"][as="'+kn(s)+'"]';s==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+kn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+kn(i.imageSizes)+'"]')):f+='[href="'+kn(r)+'"]';var m=f;switch(s){case"style":m=mi(r);break;case"script":m=gi(r)}zn.has(m)||(r=g({rel:"preload",href:s==="image"&&i&&i.imageSrcSet?void 0:r,as:s},i),zn.set(m,r),c.querySelector(f)!==null||s==="style"&&c.querySelector(Po(m))||s==="script"&&c.querySelector(Io(m))||(s=c.createElement("link"),It(s,"link",r),Ct(s),c.head.appendChild(s)))}}function WE(r,s){Nr.m(r,s);var i=pi;if(i&&r){var c=s&&typeof s.as=="string"?s.as:"script",f='link[rel="modulepreload"][as="'+kn(c)+'"][href="'+kn(r)+'"]',m=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=gi(r)}if(!zn.has(m)&&(r=g({rel:"modulepreload",href:r},s),zn.set(m,r),i.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Io(m)))return}c=i.createElement("link"),It(c,"link",r),Ct(c),i.head.appendChild(c)}}}function eT(r,s,i){Nr.S(r,s,i);var c=pi;if(c&&r){var f=Ua(c).hoistableStyles,m=mi(r);s=s||"default";var b=f.get(m);if(!b){var S={loading:0,preload:null};if(b=c.querySelector(Po(m)))S.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":s},i),(i=zn.get(m))&&sh(r,i);var A=b=c.createElement("link");Ct(A),It(A,"link",r),A._p=new Promise(function(U,q){A.onload=U,A.onerror=q}),A.addEventListener("load",function(){S.loading|=1}),A.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Mc(b,s,c)}b={type:"stylesheet",instance:b,count:1,state:S},f.set(m,b)}}}function tT(r,s){Nr.X(r,s);var i=pi;if(i&&r){var c=Ua(i).hoistableScripts,f=gi(r),m=c.get(f);m||(m=i.querySelector(Io(f)),m||(r=g({src:r,async:!0},s),(s=zn.get(f))&&ah(r,s),m=i.createElement("script"),Ct(m),It(m,"link",r),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(f,m))}}function nT(r,s){Nr.M(r,s);var i=pi;if(i&&r){var c=Ua(i).hoistableScripts,f=gi(r),m=c.get(f);m||(m=i.querySelector(Io(f)),m||(r=g({src:r,async:!0,type:"module"},s),(s=zn.get(f))&&ah(r,s),m=i.createElement("script"),Ct(m),It(m,"link",r),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(f,m))}}function Dv(r,s,i,c){var f=(f=le.current)?Lc(f):null;if(!f)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(s=mi(i.href),i=Ua(f).hoistableStyles,c=i.get(s),c||(c={type:"style",instance:null,count:0,state:null},i.set(s,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){r=mi(i.href);var m=Ua(f).hoistableStyles,b=m.get(r);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(r,b),(m=f.querySelector(Po(r)))&&!m._p&&(b.instance=m,b.state.loading=5),zn.has(r)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},zn.set(r,i),m||rT(f,r,i,b.state))),s&&c===null)throw Error(a(528,""));return b}if(s&&c!==null)throw Error(a(529,""));return null;case"script":return s=i.async,i=i.src,typeof i=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?
vendor: 4,600 bytes, line 10
10(s=gi(i),i=Ua(f).hoistableScripts,c=i.get(s),c||(c={type:"script",instance:null,count:0,state:null},i.set(s,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function mi(r){return'href="'+kn(r)+'"'}function Po(r){return'link[rel="stylesheet"]['+r+"]"}function Lv(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function rT(r,s,i,c){r.querySelector('link[rel="preload"][as="style"]['+s+"]")?c.loading=1:(s=r.createElement("link"),c.preload=s,s.addEventListener("load",function(){return c.loading|=1}),s.addEventListener("error",function(){return c.loading|=2}),It(s,"link",i),Ct(s),r.head.appendChild(s))}function gi(r){return'[src="'+kn(r)+'"]'}function Io(r){return"script[async]"+r}function Mv(r,s,i){if(s.count++,s.instance===null)switch(s.type){case"style":var c=r.querySelector('style[data-href~="'+kn(i.href)+'"]');if(c)return s.instance=c,Ct(c),c;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),Ct(c),It(c,"style",f),Mc(c,i.precedence,r),s.instance=c;case"stylesheet":f=mi(i.href);var m=r.querySelector(Po(f));if(m)return s.state.loading|=4,s.instance=m,Ct(m),m;c=Lv(i),(f=zn.get(f))&&sh(c,f),m=(r.ownerDocument||r).createElement("link"),Ct(m);var b=m;return b._p=new Promise(function(S,A){b.onload=S,b.onerror=A}),It(m,"link",c),s.state.loading|=4,Mc(m,i.precedence,r),s.instance=m;case"script":return m=gi(i.src),(f=r.querySelector(Io(m)))?(s.instance=f,Ct(f),f):(c=i,(f=zn.get(m))&&(c=g({},i),ah(c,f)),r=r.ownerDocument||r,f=r.createElement("script"),Ct(f),It(f,"link",c),r.head.appendChild(f),s.instance=f);case"void":return null;default:throw Error(a(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(c=s.instance,s.state.loading|=4,Mc(c,i.precedence,r));return s.instance}function Mc(r,s,i){for(var c=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,m=f,b=0;b<c.length;b++){var S=c[b];if(S.dataset.precedence===s)m=S;else if(m!==f)break}m?m.parentNode.insertBefore(r,m.nextSibling):(s=i.nodeType===9?i.head:i,s.insertBefore(r,s.firstChild))}function sh(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.title==null&&(r.title=s.title)}function ah(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.integrity==null&&(r.integrity=s.integrity)}var zc=null;function zv(r,s,i){if(zc===null){var c=new Map,f=zc=new Map;f.set(i,c)}else f=zc,c=f.get(i),c||(c=new Map,f.set(i,c));if(c.has(r))return c;for(c.set(r,null),i=i.getElementsByTagName(r),f=0;f<i.length;f++){var m=i[f];if(!(m[eo]||m[Mt]||r==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var b=m.getAttribute(s)||"";b=r+b;var S=c.get(b);S?S.push(m):c.set(b,[m])}}return c}function Uv(r,s,i){r=r.ownerDocument||r,r.head.insertBefore(i,s==="title"?r.querySelector("head > title"):null)}function sT(r,s,i){if(i===1||s.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(r=s.disabled,typeof s.precedence=="string"&&r==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Pv(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function aT(r,s,i,c){if(i.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=mi(c.href),m=s.querySelector(Po(f));if(m){s=m._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(r.count++,r=Uc.bind(r),s.then(r,r)),i.state.loading|=4,i.instance=m,Ct(m);return}m=s.ownerDocument||s,c=Lv(c),(f=zn.get(f))&&sh(c,f),m=m.createElement("link"),Ct(m);var b=m;b._p=new Promise(function(S,A){b.onload=S,b.onerror=A}),It(m,"link",c),i.instance=m}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(i,s),(s=i.state.preload)&&(i.state.loading&3)===0&&(r.count++,i=Uc.bind(r),s.addEventListener("load",i),s.addEventListener("error",i))}}var ih=0;function iT(r,s){return r.stylesheets&&r.count===0&&Ic(r,r.stylesheets),0<r.count||0<r.imgCount?function(i){var c=setTimeout(function(){if(r.stylesheets&&Ic(r,r.stylesheets),r.unsuspend){var m=r.unsu
vendor: 10,507 bytes, line 10
10spend;r.unsuspend=null,m()}},6e4+s);0<r.imgBytes&&ih===0&&(ih=62500*BE());var f=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Ic(r,r.stylesheets),r.unsuspend)){var m=r.unsuspend;r.unsuspend=null,m()}},(r.imgBytes>ih?50:800)+s);return r.unsuspend=i,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function Uc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ic(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Pc=null;function Ic(r,s){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Pc=new Map,s.forEach(oT,r),Pc=null,Uc.call(r))}function oT(r,s){if(!(s.state.loading&4)){var i=Pc.get(r);if(i)var c=i.get(null);else{i=new Map,Pc.set(r,i);for(var f=r.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var b=f[m];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),c=b)}c&&i.set(null,c)}f=s.instance,b=f.getAttribute("data-precedence"),m=i.get(b)||c,m===c&&i.set(null,f),i.set(b,f),this.count++,c=Uc.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),m?m.parentNode.insertBefore(f,m.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(f,r.firstChild)),s.state.loading|=4}}var Bo={$$typeof:R,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function lT(r,s,i,c,f,m,b,S,A){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qr(0),this.hiddenUpdates=Qr(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Iv(r,s,i,c,f,m,b,S,A,U,q,K){return r=new lT(r,s,i,b,A,U,q,K,S),s=1,m===!0&&(s|=24),m=vn(3,null,null,s),r.current=m,m.stateNode=r,s=Pd(),s.refCount++,r.pooledCache=s,s.refCount++,m.memoizedState={element:c,isDehydrated:i,cache:s},qd(m),r}function Bv(r){return r?(r=Za,r):Za}function $v(r,s,i,c,f,m){f=Bv(f),c.context===null?c.context=f:c.pendingContext=f,c=ss(s),c.payload={element:i},m=m===void 0?null:m,m!==null&&(c.callback=m),i=as(r,c,s),i!==null&&(dn(i,r,s),vo(i,r,s))}function qv(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var i=r.retryLane;r.retryLane=i!==0&&i<s?i:s}}function oh(r,s){qv(r,s),(r=r.alternate)&&qv(r,s)}function Hv(r){if(r.tag===13||r.tag===31){var s=Ws(r,67108864);s!==null&&dn(s,r,67108864),oh(r,67108864)}}function Vv(r){if(r.tag===13||r.tag===31){var s=En();s=Da(s);var i=Ws(r,s);i!==null&&dn(i,r,s),oh(r,s)}}var Bc=!0;function cT(r,s,i,c){var f=N.T;N.T=null;var m=Y.p;try{Y.p=2,lh(r,s,i,c)}finally{Y.p=m,N.T=f}}function uT(r,s,i,c){var f=N.T;N.T=null;var m=Y.p;try{Y.p=8,lh(r,s,i,c)}finally{Y.p=m,N.T=f}}function lh(r,s,i,c){if(Bc){var f=ch(c);if(f===null)Kf(r,s,c,$c,i),Fv(r,c);else if(fT(f,r,s,i,c))c.stopPropagation();else if(Fv(r,c),s&4&&-1<dT.indexOf(r)){for(;f!==null;){var m=za(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var b=Wn(m.pendingLanes);if(b!==0){var S=m;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var A=1<<31-Ft(b);S.entanglements[1]|=A,b&=~A}rr(m),(Ze&6)===0&&(Ec=Jt()+500,Lo(0))}}break;case 31:case 13:S=Ws(m,2),S!==null&&dn(S,m,2),xc(),oh(m,2)}if(m=ch(c),m===null&&Kf(r,s,c,$c,i),m===f)break;f=m}f!==null&&c.stopPropagation()}else Kf(r,s,c,null,i)}}function ch(r){return r=ud(r),uh(r)}var $c=null;function uh(r){if($c=null,r=Ma(r),r!==null){var s=l(r);if(s===null)r=null;else{var i=s.tag;if(i===13){if(r=u(s),r!==null)return r;r=null}else if(i===31){if(r=d(s),r!==null)return r;r=null}else if(i===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null)}}return $c=r,null}function Gv(r){switch(r){case"beforetoggle":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"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ed()){case Vs:return 2;case Dl:return 8;case Gs:case Xi:return 32;case hr:return 268435456;default:return 32}default:return 32}}var dh=!1,gs=null,ys=null,vs=null,$o=new Map,qo=new Map,bs=[],dT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Fv(r,s){switch(r){case"focusin":case"focusout":gs=null;break;case"dragenter":case"dragleave":ys=null;break;case"mouseover":case"mouseout":vs=null;break;case"pointerover":case"pointerout":$o.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":qo.delete(s.pointerId)}}function Ho(r,s,i,c,f,m){return r===null||r.nativeEvent!==m?(r={blockedOn:s,domEventName:i,eventSystemFlags:c,nativeEvent:m,targetContainers:[f]},s!==null&&(s=za(s),s!==null&&Hv(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,f!==null&&s.indexOf(f)===-1&&s.push(f),r)}function fT(r,s,i,c,f){switch(s){case"focusin":return gs=Ho(gs,r,s,i,c,f),!0;case"dragenter":return ys=Ho(ys,r,s,i,c,f),!0;case"mouseover":return vs=Ho(vs,r,s,i,c,f),!0;case"pointerover":var m=f.pointerId;return $o.set(m,Ho($o.get(m)||null,r,s,i,c,f)),!0;case"gotpointercapture":return m=f.pointerId,qo.set(m,Ho(qo.get(m)||null,r,s,i,c,f)),!0}return!1}function Zv(r){var s=Ma(r.target);if(s!==null){var i=l(s);if(i!==null){if(s=i.tag,s===13){if(s=u(i),s!==null){r.blockedOn=s,om(r.priority,function(){Vv(i)});return}}else if(s===31){if(s=d(i),s!==null){r.blockedOn=s,om(r.priority,function(){Vv(i)});return}}else if(s===3&&i.stateNode.current.memoizedState.isDehydrated){r.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}r.blockedOn=null}function qc(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var i=ch(r.nativeEvent);if(i===null){i=r.nativeEvent;var c=new i.constructor(i.type,i);cd=c,i.target.dispatchEvent(c),cd=null}else return s=za(i),s!==null&&Hv(s),r.blockedOn=i,!1;s.shift()}return!0}function Kv(r,s,i){qc(r)&&i.delete(s)}function hT(){dh=!1,gs!==null&&qc(gs)&&(gs=null),ys!==null&&qc(ys)&&(ys=null),vs!==null&&qc(vs)&&(vs=null),$o.forEach(Kv),qo.forEach(Kv)}function Hc(r,s){r.blockedOn===s&&(r.blockedOn=null,dh||(dh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,hT)))}var Vc=null;function Yv(r){Vc!==r&&(Vc=r,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Vc===r&&(Vc=null);for(var s=0;s<r.length;s+=3){var i=r[s],c=r[s+1],f=r[s+2];if(typeof c!="function"){if(uh(c||i)===null)continue;break}var m=za(i);m!==null&&(r.splice(s,3),s-=3,cf(m,{pending:!0,data:f,method:i.method,action:c},c,f))}}))}function yi(r){function s(A){return Hc(A,r)}gs!==null&&Hc(gs,r),ys!==null&&Hc(ys,r),vs!==null&&Hc(vs,r),$o.forEach(s),qo.forEach(s);for(var i=0;i<bs.length;i++){var c=bs[i];c.blockedOn===r&&(c.blockedOn=null)}for(;0<bs.length&&(i=bs[0],i.blockedOn===null);)Zv(i),i.blockedOn===null&&bs.shift();if(i=(r.ownerDocument||r).$$reactFormReplay,i!=null)for(c=0;c<i.length;c+=3){var f=i[c],m=i[c+1],b=f[sn]||null;if(typeof m=="function")b||Yv(i);else if(b){var S=null;if(m&&m.hasAttribute("formAction")){if(f=m,b=m[sn]||null)S=b.formAction;else if(uh(f)!==null)continue}else S=b.action;typeof S=="function"?i[c+1]=S:(i.splice(c,3),c-=3),Yv(i)}}}function Qv(){function r(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function s(){f!==null&&(f(),f=null),c||setTimeout(i,20)}function i(){if(!c&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,f=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(i,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),f!==null&&(f(),f=null)}}}function fh(r){this._internalRoot=r}Gc.prototype.render=fh.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(a(409));var i=s.current,c=En();$v(i,c,r,s,null,null)},Gc.prototype.unmount=fh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;$v(r.current,2,null,r,null,null),xc(),s[La]=null}};function Gc(r){this._internalRoot=r}Gc.prototype.unstable_scheduleHydration=function(r){if(r){var s=nd();r={blockedOn:null,target:r,priority:s};for(var i=0;i<bs.length&&s!==0&&s<bs[i].priority;i++);bs.splice(i,0,r),i===0&&Zv(r)}};var Jv=e.version;if(Jv!=="19.2.5")throw Error(a(527,Jv,"19.2.5"));Y.findDOMNode=function(r){var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=p(s),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var pT={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.5"};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fc.isDisabled&&Fc.supportsFiber)try{Fs=Fc.inject(pT),Xt=Fc}catch{}}return Go.createRoot=function(r,s){if(!o(r))throw Error(a(299));var i=!1,c="",f=sy,m=ay,b=iy;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(f=s.onUncaughtError),s.onCaughtError!==void 0&&(m=s.onCaughtError),s.onRecoverableError!==void 0&&(b=s.onRecoverableError)),s=Iv(r,1,!1,null,null,i,c,null,f,m,b,Qv),r[La]=s.current,Zf(r),new fh(s)},Go.hydrateRoot=function(r,s,i){if(!o(r))throw Error(a(299));var c=!1,f="",m=sy,b=ay,S=iy,A=null;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError),i.formState!==void 0&&(A=i.formState)),s=Iv(r,1,!0,s,i??null,c,f,A,m,b,S,Qv),s.context=Bv(null),i=s.current,c=En(),c=Da(c),f=ss(c),f.callback=null,as(i,f,c),i=c,s.current.lanes=i,ct(s,i),rr(s),r[La]=s.current,Zf(r),new Gc(s)},Go.version="19.2.5",Go}var o0;function xT(){if(o0)return mh.exports;o0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),mh.exports=TT(),mh.exports}var AT=xT(),RT="__TSS_CONTEXT",Ih=Symbol.for("TSS_SERVER_FUNCTION"),l0=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),kT="application/x-tss-framed",kp=()=>window.__TSS_START_OPTIONS__;function Bh(t={}){if(t.isNotFound=!0,t.throw)throw t;return t}function wa(t){return t?.isNotFound===!0}function il(t){t.statusCode=t.statusCode||t.code||307;const e=new Headers(t.headers);t.href&&e.get("Location")===null&&e.set("Location",t.href);const n=new Response(null,{status:t.statusCode,headers:e});if(n.options=t,t.throw)throw n;return n}function ol(t){return t instanceof Response&&!!t.options}function g_(t){if(t!==null&&typeof t=="object"&&t.isSerializedRedirect)return il(t)}function OT(t){return t.replaceAll("\0","/").replaceAll("�","/").replace(/~([~0r])/g,(e,n)=>n==="0"?"\0":n==="r"?"�":n)}const c0=!1;function Ms(t){return t[t.length-1]}function y_(t,e){return typeof t=="function"?t(e):t}const Op=Object.prototype.hasOwnProperty;function v_(t){for(const e in t)if(Op.call(t,e))return!0;return!1}const hu=()=>Object.create(null),vi=(t,e)=>Ns(t,e,!0);function Ns(t,e,n,a=0){if(t===e)return t;if(a++>500)return e;const o=Array.isArray(t)&&Array.isArray(e);if(!o&&!(wu(t)&&wu(e)))return e;const l=Object.keys(t),u=l.length,d=Object.keys(e),h=d.length;if(o?u!==t.length||h!==e.length||u&&Ms(l)!==`${u-1}`||h&&Ms(d)!==`${h-1}`:u!==Object.getOwnPropertyNames(t).length||h!==Object.getOwnPropertyNames(e).length||Object.getOwnPropertySymbols(e).length)return e;let p=0,y,g,v;if(o){for(;p<h&&(v=p,g=t[v],y=e[v],y=g===y?g:typeof g=="object"?Ns(g,y,n,a):y,y===g);p++);if(p===h&&u===h)return t}else{let w=u===h,E=!0;for(;p<h;p++){v=d[p],g=t[v];const x=e[v];y=g===x?g:typeof g=="object"?Ns(g,x,n,a):x,w&&=y===g&&(l[p]===v||Op.call(t,v)),E&&=Object.is(y,x),l[p]=y}if(w)return Object.getOwnPropertySymbols(t).length?e:t;if(E)return e}const _=o?d.fill(0):n?hu():{};for(let w=0;w<h;w++)v=o?w:d[w],o?(g=t[v],w>p&&(y=e[v],y=g===y?g:typeof g=="object"?Ns(g,y,n,a):y),_[v]=w<p?g:y):_[v]=l[w];return _}function wu(t){return!t||typeof t!="object"?!1:(Object.getPrototypeOf(t)?.constructor??Object)===Object}function Qn(t,e,n,a){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let o=0,l=t.length;o<l;o++){const u=t[o],d=e[o];if(u!==d&&!Qn(u,d,n,a))return!1}return!0}if(wu(t)&&wu(e)){if(n){for(const l in e)if((a||e[l]!==void 0)&&!Qn(t[l],e[l],n,a))return!1;return!0}let o=0;if(a)o=Object.keys(t).length;else for(const l in t)t[l]!==void 0&&o++;for(const l in e)if((a||e[l]!==void 0)&&(o--===0||!Qn(t[l],e[l],n,a)))return!1;return o===0}return!1}function CT(t){return typeof t?.message!="string"?!1:t.message.startsWith("Failed to fetch dynamically imported module")||t.message.startsWith("error loading dynamically imported module")||t.message.startsWith("Importing a module script failed")}const NT=/[\x00-\x1f\x7f"<>`{}]/g;function jT(t){return t.replace(NT,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function u0(t){let e;try{e=decodeURI(t)}catch{e=t.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return jT(e)}const DT=["http:","https:","mailto:","tel:"];function ll(t){if(t[0]!=="/"&&t.includes(":"))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(t)?.[1]?.replace(/[\t\n\r]/g,"").toLowerCase()}const b_=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function __(t,e){if(!t)return!1;if(b_.test(t))return!0;const n=ll(t);return n?!e.has(n):!1}const LT={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"}
10,MT=/[&><\u2028\u2029]/g;function zT(t){return t.replace(MT,e=>LT[e])}function Fo(t){if(!t)return t;let e=t;if(/[%\\\x00-\x1f\x7f]/.test(t)){const n=/%25|%5C/gi;let a=0,o;for(e="";(o=n.exec(t))!==null;)e+=u0(t.slice(a,o.index))+o[0],a=n.lastIndex;e+=u0(a?t.slice(a):t)}return e}function UT(t){return/[\s\u0080-\uFFFF]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function PT(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function zi(t){return t.replace(/\/{2,}/g,"/")}function w_(t){return t==="/"?t:t.replace(/^\/+/,"")}function ur(t){const e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/+$/,""):t}function S_(t){return ur(w_(t))}function d0(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function f0(t,e,n="never",a){if(e.includes("//")&&(e=zi(e)),e.startsWith("/"))return e.length===1||n==="preserve"?e:n==="always"?e.endsWith("/")?e:`${e}/`:e.endsWith("/")?e.slice(0,-1):e;const o=e===".";let l;if(a){l=o?t:t+"\0"+e;const p=a.get(l);if(p)return p}let u;if(o)u=t.split("/");else{for(t.includes("//")&&(t=zi(t)),u=t.split("/");u.length>1&&Ms(u)==="";)u.pop();const p=e.split("/");for(let y=0,g=p.length;y<g;y++){const v=p[y];v===""?y?y===g-1&&u.push(v):u=[v]:v===".."?u.length>1?u.pop():u=[""]:v==="."||u.push(v)}}u.length>1&&(Ms(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));const d=u.join("/"),h=(o?zi(d):d)||"/";return l&&a&&a.set(l,h),h}function IT(t){const e=new Map(t.map(a=>[encodeURIComponent(a),a])),n=new RegExp([...e.keys()].join("|").replace(/[.*()]/g,"\\$&"),"g");return a=>a.replace(n,o=>e.get(o)??o)}function BT(t){return t==null||t===""}function $T(t,e,n){if(typeof e!="string")return""+(e??void 0);const a=t==="_splat";if(a&&(!e||/^[a-zA-Z0-9\-._~!/]*$/.test(e)))return e;let o=encodeURIComponent(e);return a&&(o=o.replaceAll("%2F","/")),n?n(o):o}function h0(t,e,n,a,o){const l=t.endsWith("/")?"/":"";let u="";for(const d of e){if(typeof d=="string"){u+=d;continue}const[h,p,y,g]=d,v=h===2,_=v&&g!==void 0?g+l:g;let w=n[p];if(!(h===3&&w==null)){if(o&&(o[p]=w,v&&(o["*"]=w)),v&&BT(w)){if(y==="/"&&!_)continue;w=""}u+=y+$T(p,w,a)+(_||"")}}return u+l||"/"}function Su(t){const e=new Map;let n,a;return{get(o){const l=e.get(o);if(l)return l.visited=!0,l.value},set(o,l){const u=e.get(o);if(u){u.value=l;return}if(e.size>=t){let h=n?.next().value;for(;!h||h.visited;)h?h.visited=!1:n=e.values(),h=n.next().value;h===a&&(n=void 0),e.delete(h.key)}const d={key:o,value:l,visited:!1};a=d,e.set(o,d)},clear(){e.clear(),n=void 0,a=void 0}}}function cl(){throw new Error("Invariant failed")}const ks=4,E_=5;function qT(t){const e=t.names;if(e)return e;const n=[];for(const a of t)typeof a!="string"&&n.push(a[1]);return t.names=n}function HT(t,e,n){const a=t.substring(e,n);if(a.charCodeAt(0)===36)return a.length===1?[2,"_splat","",void 0]:[1,a.substring(1),"",""];const o=a.indexOf("{");if(o>=0){const l=a.indexOf("}",o),u=a.charCodeAt(o+1)===45,d=o+(u?3:2);if(l>=0&&a.charCodeAt(d-1)===36&&(!u||d<l)){const h=a.substring(d,l);return[u?3:h?1:2,h||"_splat",a.substring(0,o),t.substring(e+l+1,h?n:t.length)]}}return a}function ul(t,e,n,a,o,l){let u=n;const d=e.fullPath??e.from,h=e.options,p=d.length,y=d.endsWith("/")?p-1:p,g=h?.caseSensitive??t,v=h?.params?.parse??h?.parseParams;let _,w=l?n-1:0;if(!a||d.includes("$")){_=l?.slice()??[];const T=Ms(_);T&&typeof T!="string"&&T[0]===2&&(_[_.length-1]=[T[0],T[1],T[2],T[3]===void 0?void 0:T[3]+d.substring(n-(d[n-2]==="/"?2:1),y)],w=p)}for(;u<p;){const T=u,C=d.indexOf("/",T);let R=C===-1?p:C;const B=HT(d,T,R);u=R+1;let Q;if(typeof B=="string"){if(!a)continue;let I=B,j;g?j=a.static??=new Map:(I=B.toLowerCase(),j=a.staticInsensitive??=new Map);const M=j.get(I);if(M)Q=M;else{const X=ga(a);Q=X,j.set(I,X)}}else{const I=B[0];let j=B[2],M=B[3]??"";if(I===2&&(R=p,u=R+1),_&&w<R&&(w<T-1&&_.push(d.substring(w,T-1)),B[2]="/"+j,I===2&&B[3]!==void 0&&y<p&&(B[3]=M.slice(0,-1)),_.push(B),w=R),!a)continue;const X=g&&!!(j||M);g||(j=j.toLowerCase(),M=M.toLowerCase());const ce=I===1?a.dynamic??=[]:I===3?a.optional??=[]:a.wildcard??=[],Z=I!==2&&!v&&ce.find(F=>!F.parse&&F.caseSensitive===X&&F.prefix===j&&F.suffix===M);if(Z)Q=Z;else{const F=ga(a,I,X,j,M);Q=F,ce.push(F),ce.length===2&&o?.push(ce)}}a=Q}_&&w<y&&_.push(d.substring(w,y));const E=_?.slice();if(!a)return E;
10if(v&&e.children&&!e.isRoot&&e.id&&e.id.charCodeAt(e.id.lastIndexOf("/")+1)===95){const T=ga(a,E_);(a.pathless??=[]).push(T),a=T}const x=(e.path||!e.children)&&!e.isRoot;if(x&&y<p){const T=ga(a,ks);a.index=T,a=T}return a.parse=v??null,a.priority=h?.params?.priority??0,a.route||(a.data=E,x&&(a.route=e)),[a,u,E]}function T_(t,e){if(t.parse&&!e.parse)return-1;if(!t.parse&&e.parse)return 1;if(t.parse&&e.parse&&(t.priority||e.priority))return e.priority-t.priority;if(t.prefix&&e.prefix&&t.prefix!==e.prefix){if(t.prefix.startsWith(e.prefix))return-1;if(e.prefix.startsWith(t.prefix))return 1}if(t.suffix&&e.suffix&&t.suffix!==e.suffix){if(t.suffix.endsWith(e.suffix))return-1;if(e.suffix.endsWith(t.suffix))return 1}return t.prefix&&!e.prefix?-1:!t.prefix&&e.prefix?1:t.suffix&&!e.suffix?-1:!t.suffix&&e.suffix?1:t.caseSensitive&&!e.caseSensitive?-1:!t.caseSensitive&&e.caseSensitive?1:0}function ga(t,e=0,n,a,o){return{kind:e,depth:t?t.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:t,parse:null,priority:0,caseSensitive:n,prefix:a,suffix:o}}function VT(t,e){const n=ga(),a=[];function o(l,u,d,h){const[p,y,g]=ul(!1,l,u,d,a,h);if(l.children)for(const v of l.children)o(v,y,p,g)}for(const l of t)o(l,1,n);for(const l of a)l.sort(T_);e.masksTree=n,e.flatCache=Su(1e3)}function GT(t,e){t||="/";const n=e.flatCache.get(t);if(n!==void 0)return n;const a=Cp(t,e.masksTree);return e.flatCache.set(t,a),a}function FT(t,e,n,a,o){t||="/",a||="/";const l=e?`case\0${t}`:t;let u=o.singleCache.get(l);return u||(u=ga(),ul(e,{from:t},1,u),o.singleCache.set(l,u)),Cp(a,u,n)}function ZT(t,e,n=!1){const a=n?t:`nofuzz\0${t}`,o=e.matchCache.get(a);if(o!==void 0)return o;t||="/";let l;try{l=Cp(t,e.segmentTree,n)}catch(u){if(u instanceof URIError)l=null;else throw u}return l&&(l.branch=A_(l.route)),e.matchCache.set(a,l),l}function KT(t,e=!1){const n=ga(),a=[],o={},l={};let u=0;function d(h,p,y,g){if(h.init(u),h.id in o&&cl(),o[h.id]=h,u!==0&&h.path){const E=ur(h.fullPath);(!l[E]||h.fullPath.endsWith("/"))&&(l[E]=h)}u++;const[v,_,w]=ul(e,h,p,y,a,g);if(h._interpolation=w,h.children)for(const E of h.children)d(E,_,v,w)}d(t,1,n);for(const h of a)h.sort(T_);return{processedTree:{segmentTree:n,singleCache:Su(1e3),matchCache:Su(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:l}}function Cp(t,e,n=!1){const a=t.split("/"),o=QT(t,a,e,n);if(!o)return null;const[l]=x_(t,a,o);return{route:o.node.route,rawParams:l}}function x_(t,e,n){const a=YT(n.node),o=n.node.data&&qT(n.node.data),l=Object.create(null);let u=n.extract?.part??0,d=n.extract?.node??0,h=n.extract?.path??0,p=n.extract?.param??0;for(;d<a.length;u++,d++,h++){const y=a[d];if(y.kind===ks)break;if(y.kind===E_){u--,h--;continue}const g=e[u],v=h;if(g&&(h+=g.length),y.kind===1||y.kind===3){const _=o[p++];if(y.kind===3&&n.skipped&1<<d){u--,h=v-1;continue}const w=y.suffix||y.prefix?g.substring(y.prefix.length,g.length-y.suffix.length):g;(w||y.kind===1)&&(l[_]=decodeURIComponent(w))}else if(y.kind===2){const _=y,w=t.substring(v+_.prefix.length,t.length-_.suffix.length),E=decodeURIComponent(w);l["*"]=E,l._splat=E;break}}return n.rawParams&&Object.assign(l,n.rawParams),[l,{part:u,node:d,path:h,param:p}]}function A_(t){const e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}function YT(t){const e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}function QT(t,e,n,a){if(t==="/"&&n.index)return{node:n.index,skipped:0};const o=!Ms(e),l=o&&t!=="/",u=e.length-(o?1:0),d=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let h=null,p=null;for(;d.length;){const y=d.pop(),{node:g,index:v,skipped:_,statics:w,dynamics:E,optionals:x}=y;let{extract:T,rawParams:C}=y;if(g.kind===2&&g.route&&!Kc(p,y))continue;if(g.parse){if(!p0(t,e,y))continue;C=y.rawParams,T=y.extract}a&&g.route&&g.kind!==ks&&Kc(h,y)&&(h=y);const R=v===u;if(R&&(g.route&&(!l||g.kind===ks||g.kind===2)&&Kc(p,y)&&(p=y),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const B=R?void 0:e[v];let Q;if(R&&g.index){const I={node:g.index,index:v,skipped:_,statics:w,dynamics:E,optionals:x,extract:T,rawParams:C};let j=!0;if(g.index.parse&&(p0(t,e,I)||(j=!1)),j){if(!E&&!x&&!_&&JT(w,u))return I;Kc(p,I)&&(p=I)}}if(g.wildcard)for(let I=g.wildcard.length-1;I>=0;I--){const j=g.wildcard[I],{prefix:M,suffix:X}=j;if(!(M&&(R||!(j.caseSensitive?B:Q??=B.toLowerCase()).startsWith(M)))){if(X){if(R)continue;const ce=e.slice(v).join("/"),Z=ce.slice(-X.length);if((j.caseSensitive?Z:Z.toLowerCase())!==X||ce.length-X.length<M.length)continue}d.push({node:j,index:u,skipped:_,statics:w,dynamics:E,optionals:x,extract:T,rawParams:C})}}if(g.optional){const I=_|1<<g.depth+1;for(let j=g.optional.length-1;j>=0;j--){const M=g.optional[j];d.push({node:M,index:v,skipped:I,statics:w,dynamics:E,optionals:x,extract:T,rawParams:C})}if(!R)for(let j=g.optional.length-1;j>=0;j--){const M=g.optional[j],{prefix:X,suffix:ce}=M;if(X||ce){const Z=M.caseSensitive?B:Q??=B.toLowerCase();if(X&&!Z.startsWith(X)||ce&&Z.indexOf(ce,Z.length-ce.length)<X.length)continue}d.push({node:M,index:v+1,skipped:_,statics:w,dynamics:E,optionals:x+Zc(u,v),extract:T,rawParams:C})}}if(!R&&g.dynamic&&B)for(let I=g.dynamic.length-1;I>=0;I--){const j=g.dynamic[I],{prefix:M,suffix:X}=j;if(M||X){const ce=j.caseSensitive?B:Q??=B.toLowerCase();if(M&&!ce.startsWith(M)||X&&ce.indexOf(X,ce.length-X.length)<M.length)continue}d.push({node:j,index:v+1,skipped:_,statics:w,dynamics:E+Zc(u,v),optionals:x,extract:T,rawParams:C})}if(!R&&g.staticInsensitive){const I=g.staticInsensitive.get(Q??=B.toLowerCase());I&&d.push({node:I,index:v+1,skipped:_,statics:w+Zc(u,v),dynamics:E,optionals:x,extract:T,rawParams:C})}if(!R&&g.static){const I=g.static.get(B);I&&d.push({node:I,index:v+1,skipped:_,statics:w+Zc(u,v),dynamics:E,optionals:x,extract:T,rawParams:C})}if(g.pathless)for(let I=g.pathless.length-1;I>=0;I--){const j=g.pathless[I];d.push({node:j,index:v,skipped:_,statics:w,dynamics:E,optionals:x,extract:T,rawParams:C})}}if(p)return p;if(a&&h){let y=h.index;for(let v=0;v<h.index;v++)y+=e[v].length;const g=y===t.length?"/":t.slice(y);return h.rawParams??=Object.create(null),h.rawParams["**"]=decodeURIComponent(g),h}return null}function Zc(t,e){return 2**(t-e-1)}function JT(t,e){return t===2**(e-1)-1}function p0(t,e,n){let a,o;try{[a,o]=x_(t,e,n)}catch{return null}if(n.rawParams=a,n.extract=o,!n.node.parse)return!0;try{if(n.node.parse(a)===!1)return null}catch{}return!0}function Kc(t,e){return t?e.statics>t.statics||e.statics===t.statics&&(e.dynamics>t.dynamics||e.dynamics===t.dynamics&&(e.optionals>t.optionals||e.optionals===t.optionals&&((e.node.kind===ks)>(t.node.kind===ks)||e.node.kind===ks==(t.node.kind===ks)&&e.node.depth>
10t.node.depth))):!0}function XT(){try{return sessionStorage}catch{return}}const WT="tsr-scroll-restoration-v1_3",R_=XT();function ex(){try{return JSON.parse(R_?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}const bi=ex(),m0="data-scroll-restoration-id",tx=t=>t.state.__TSR_key||t.href;function nx(t){const e=t.getAttribute(m0);if(e)return`[${m0}="${e}"]`;let n="",a=t,o;for(;o=a.parentNode;){let l=1,u=a;for(;u=u.previousElementSibling;)l++;const d=`${a.localName}:nth-child(${l})`;n=n?`${d} > ${n}`:d,a=o}return n}let Yc=!1;const pu="window";function $h(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function g0(t){const e=new Set;for(const n of t){if(n===pu)continue;const a=$h(n);a&&e.add(a)}return e}function rx(t,e){const n=t.options.scrollRestoration,a=t._scroll;n&&(a.e=!0);const o=t.options.getScrollRestorationKey||tx,l=new Set,u=d=>{const h=bi[d]||={};for(const p of l)p===document?h[pu]={scrollX,scrollY}:p.isConnected&&(h[nx(p)]={scrollX:p.scrollLeft,scrollY:p.scrollTop})};n&&!a.s&&(a.s=!0,Yc=!1,history.scrollRestoration="manual",document.addEventListener("scroll",d=>{Yc||l.add(d.target)},!0),t.subscribe("onBeforeLoad",d=>{d.fromLocation&&u(o(d.fromLocation)),l.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",u(o(t.stores.resolvedLocation.get()??t.stores.location.get()));try{R_?.setItem(WT,JSON.stringify(bi))}catch{}}),addEventListener("pageshow",d=>{d.persisted&&(history.scrollRestoration="manual")})),!a.r&&(a.r=!0,t.subscribe("onRendered",d=>{const h=t.options.scrollRestorationBehavior,p=t.options.scrollToTopSelectors,y=a.n,g=a.h;let v;if(l.clear(),a.n=!0,a.h=!1,typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const _=o(d.toLocation),w=d.fromLocation&&o(d.fromLocation);if(a.e&&w&&w!==_){const E=bi[w];if(E){let x=bi[_];for(const T in E){if(T===pu){if(y)continue}else{const C=$h(T);if(!C||y&&p&&(v??=g0(p),v.has(C)))continue}x||(x=bi[_]={}),x[T]??=E[T]}}}Yc=!0;try{const E=d.toLocation.hash,x=d.toLocation.state.__hashScrollIntoViewOptions??!0;let T=!1;if(y){!E&&p&&(v??=g0(p));const C=E&&x&&g,R=a.e?bi[_]:void 0;if(R)for(const B in R){const{scrollX:Q,scrollY:I}=R[B];if(B===pu){if(C)continue;scrollTo({top:I,left:Q,behavior:h}),T=!0}else{const j=$h(B);j&&(j.scrollLeft=Q,j.scrollTop=I,v?.delete(j))}}if(!E){const B={top:0,left:0,behavior:h};if(T||scrollTo(B),v)for(const Q of v)Q.scrollTo(B)}}!T&&E&&x&&document.getElementById(E)?.scrollIntoView(x)}finally{Yc=!1}}))}function k_(t,e=String){let n;for(const a in t){const o=t[a];o!==void 0&&(n||=new URLSearchParams).set(a,e(o))}return n?n.toString():""}function bh(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function sx(t){const e=new URLSearchParams(t),n=Object.create(null);for(const[a,o]of e.entries()){const l=n[a];l==null?n[a]=bh(o):Array.isArray(l)?l.push(bh(o)):n[a]=[l,bh(o)]}return n}const O_=/^(?:\s|["[{\d-]|fa|nu|tr)/,ax=ox(JSON.parse),ix=lx(JSON.stringify,JSON.parse);function ox(t){const e=t===JSON.parse;return n=>{n[0]==="?"&&(n=n.substring(1));const a=sx(n);for(const o in a){const l=a[o];if(typeof l=="string"){if(e&&!O_.test(l))continue;try{a[o]=t(l)}catch{}}}return a}}function lx(t,e){const n=e===JSON.parse;function a(o){if(o&&typeof o=="object")try{return t(o)}catch{}else if(e&&typeof o=="string"){if(n&&!O_.test(o))return o;try{return e(o),t(o)}catch{}}return o}return o=>{const l=k_(o,a);return l?`?${l}`:""}}const Ui="__root__";function cx(t,e,n){const a=S_(t),o=`/${a}`,l=e?o:o.toLowerCase(),u=`${l}/`,d={input:({url:h})=>{const p=e?h.pathname:h.pathname.toLowerCase();return p===l?h.pathname="/":p.startsWith(u)&&(h.pathname=h.pathname.slice(o.length)),h},output:({url:h})=>(h.pathname=zi(`/${a}${h.pathname}`),h)};return n?{input:({url:h})=>qh(n,d.input({url:h})),output:({url:h})=>d.output({url:C_(n,h)})}:d}function qh(t,e){const n=t?.input?.({url:e});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return e}function C_(t,e){const n=t?.output?.({url:e});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return e}function ux(t,e){const{createMutableStore:n,createReadonlyStore:a,batch:o}=e,l=new Map,u=n("idle"),d=n(t),h=n(void 0),p=n([]),y=a(()=>p.get().map(E=>l.get(E).get())),g=a(()=>({status:u.get(),isLoading:u.get()==="pending",matches:y.get(),location:d.get(),resolvedLocation:h.get()}));function v(E){let x=l.get(E);return x||(x=n(void 0),l.set(E,x)),x}const _={status:u,location:d,resolvedLocation:h,ids:p,matches:y,by
10Route:l,__store:g,getMatchStore:v,setMatches:w};function w(E){const x=p.get(),T=E.map(C=>C.routeId);o(()=>{PT(x,T)||p.set(T);for(const C of x)T.includes(C)||l.get(C).set(()=>{});for(const C of E){const R=v(C.routeId);R.get()!==C&&R.set(C)}})}return _}var js="__TSR_index",y0="popstate",v0="beforeunload",dx=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function mu(t){const e=dx.exec(t);return e?"/"+t.slice(e[0].length):t}function N_(t){return/[\x00-\x1f\x7f]/.test(t)&&(t=t.replace(/[\x00-\x1f\x7f]/g,e=>`	
11\r`.includes(e)?"":encodeURIComponent(e))),mu(t)}function fx(t){let e=t.getLocation();const n=new Set,a=u=>{e=t.getLocation(),n.forEach(d=>d({location:e,action:u}))},o=u=>{t.notifyOnIndexChange??!0?a(u):e=t.getLocation()},l=async({task:u,navigateOpts:d,...h})=>{if(d?.ignoreBlocker??!1){u();return}const p=t.getBlockers?.()??[],y=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&p.length&&y)for(const g of p){const v=Eu(h.path,h.state);if(await g.blockerFn({currentLocation:e,nextLocation:v,action:h.type})){t.onBlocked?.();return}}u()};return{get location(){return e},get length(){return t.getLength()},subscribers:n,subscribe:u=>(n.add(u),()=>{n.delete(u)}),push:(u,d,h)=>{const p=e.state[js];d=b0(p+1,d),l({task:()=>{t.pushState(u,d),a({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:u,state:d})},replace:(u,d,h)=>{const p=e.state[js];d=b0(p,d),l({task:()=>{t.replaceState(u,d),a({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:u,state:d})},go:(u,d)=>{l({task:()=>{t.go(u,d?.ignoreBlocker??!1),o({type:"GO",index:u})},navigateOpts:d,type:"GO"})},back:u=>{l({task:()=>{t.back(u?.ignoreBlocker??!1),o({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{l({task:()=>{t.forward(u?.ignoreBlocker??!1),o({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>e.state[js]!==0,createHref:u=>t.createHref(u),block:u=>{if(!t.setBlockers)return()=>{};const d=t.getBlockers?.()??[];return t.setBlockers([...d,u]),()=>{const h=t.getBlockers?.()??[];t.setBlockers?.(h.filter(p=>p!==u))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:a,_getBlockers:()=>t.getBlockers?.()??[]}}function b0(t,e){const n=Np();return{...e,key:n,__TSR_key:n,[js]:t}}function hx(t){const e=typeof document<"u"?window:void 0,n=e.history.pushState,a=e.history.replaceState;let o=[];const l=()=>o,u=j=>o=j,d=j=>N_(j),h=(()=>Eu(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){const j=Np();e.history.replaceState({[js]:0,key:j,__TSR_key:j},"")}let p=h(),y,g=!1,v=!1,_=!1,w=!1;const E=()=>p;let x;const T=()=>{x&&(I._ignoreSubscribers=!0,(x[2]?e.history.pushState:e.history.replaceState)(x[1],"",x[0]),I._ignoreSubscribers=!1,x=void 0,y=void 0)},C=(j,M,X)=>{const ce=!!x;ce||(y=p),p=Eu(M,X),x=[p.href,X,x?.[2]||j],ce||queueMicrotask(()=>T())},R=j=>{p=h(),I.notify({type:j})},B=async()=>{if(w=!1,v){v=!1;return}const j=h(),M=j.state[js]-p.state[js],X=M===1,ce=M===-1,Z=!X&&!ce||g;g=!1;const F=Z?"GO":ce?"BACK":"FORWARD",te=Z?{type:"GO",index:M}:{type:ce?"BACK":"FORWARD"};if(_)_=!1;else{const _e=l();if(typeof document<"u"&&_e.length){for(const ie of _e)if(await ie.blockerFn({currentLocation:p,nextLocation:j,action:F})){v=!0,e.history.go(-M),I.notify(te);return}}}p=h(),I.notify(te)},Q=j=>{if(w){w=!1;return}let M=!1;const X=l();if(typeof document<"u"&&X.length)for(const ce of X){const Z=ce.enableBeforeUnload??!0;if(Z===!0){M=!0;break}if(typeof Z=="function"&&Z()===!0){M=!0;break}}if(M)return j.preventDefault(),j.returnValue=""},I=fx({getLocation:E,getLength:()=>e.history.length,pushState:(j,M)=>C(!0,j,M),replaceState:(j,M)=>C(!1,j,M),back:j=>(j&&(_=!0,w=!0),e.history.back()),forward:j=>{j&&(_=!0,w=!0),e.history.forward()},go:(j,M)=>{g=!0,M&&(_=!0,w=!0),e.history.go(j)},createHref:j=>d(j),flush:T,destroy:()=>{e.history.pushState=n,e.history.replaceState=a,e.removeEventListener(v0,Q,{capture:!0}),e.removeEventListener(y0,B)},onBlocked:()=>{y&&p!==y&&(p=y)},getBlockers:l,setBlockers:u,notifyOnIndexChange:!1});return I._ignoreNextBeforeUnload=j=>{w=!1;try{j=new URL(j,e.document.baseURI).href,w=/^https?:/.test(j)&&(!j.includes("#")||j.split("#")[0]!==e.location.href.split("#")[0])}catch{}},e.addEventListener(v0,Q,{capture:!0}),e.addEventListener(y0,B),e.history.pushState=function(...j){const M=n.apply(e.history,j);return I._ignoreSubscribers||R("PUSH"),M},e.history.replaceState=function(...j){const M=a.apply(e.history,j);return I._ignoreSubscribers||R("REPLACE"),M},I}function Eu(t,e){const n=N_(t),a=n.indexOf("#"),o=n.indexOf("?");if(!e){const l=Np();e={[js]:0,key:l,__TSR_key:l}}return{href:n,pathname:n.substring(0,a>0?o>0?Math.min(a,o):a:o>0?o:n.length),hash:a>-1?n.substring(a):"",search:o>-1?n.slice(o,a===-1?void 0:a):"",state:e}}function Np(){return(Math.random()+1).toString(36).substring(7)}function _h(t,e){return t.protocol!=="http:"&&t.protocol!=="https:"||t.origin!==e||!!t.username||!!t.password}function wh(t){return t.pathname+t.search+t.hash}function _0(t){return t.options.loader||t.options.beforeLoad||t.lazyFn||t.options.component?.preload||t.options.pendingComponent?.preload}function px(t){return t instanceof Error?{name:t.name,message:t.message}:{data:t}}function qu(t,e){return{fromLocation:e,toLocation:t,pathChanged:e?.pathname!==t.pathname,hrefChanged:e?.href!==t.href,hashChanged:e?.hash!==t.hash}}function w0({key:t,__TSR_key:e,__TSR_index:n,__hashScrollIntoViewOptions:a,...o}){return o}function j_(t){return t.findIndex(e=>e.status==="error"||e.status==="notFound"||e._notFound)+1}function mx(t,e,n,a,o,l){a&&(e=e.slice(0,a)),o&&(n=n.slice(0,o));for(const u of e){if(l&&t._tx!==l)return;n.some(d=>d.routeId===u.routeId)||t.routesById[u.routeId].options.onLeave?.(u)}for(const u of n){if(l&&t._tx!==l)return;t.routesById[u.routeId].options[e.some(d=>d.routeId===u.routeId)?"onStay":"onEnter"]?.(u)}}var gx=class{constructor(t,e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async n=>(n(),!1),this.update=n=>{const a=this.options;this.options={...a,...n},this.isServer=this.options.isServer??c0??typeof document>"u",this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=hx()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost");const o=this.options.basepath??"/",l=this.options.rewrite,u=this.basepath!==o||a?.rewrite!==l||a?.caseSensitive!==this.options.caseSensitive;if(u&&(this.basepath=o,this.rewrite=o!=="/"&&S_(o)?cx(o,this.options.caseSensitive,l):l),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree||c0){this.routeTree=this.options.routeTree;let d;d=this.buildRouteTree(),this.setRoutes(d)}if(this.stores)u&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){const d=this.getStoreConfig(this);this.batch=d.batch,this.stores=ux(this.latestLocation,d),rx(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=KT(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&VT(this.options.routeMasks,n.processedTree),{...n,resolvePathCache:Su(1e3)}},this.subscribe=(n,a)=>{const o={eventType:n,fn:a};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=n=>{for(const a of this.subscribers)if(a.eventType===n.type)try{a.fn(n)}catch(o){console.error(o)}},this.parseLocation=(n,a)=>{const o=({pathname:h,search:p,hash:y,href:g},v)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(h)){const x=this.options.parseSearch(p),T=this.options.stringifySearch(x);return{href:h+T+y,publicHref:h+T+y,pathname:Fo(h),external:!1,searchStr:T,search:vi(a?.search,x),hash:Fo(y.slice(1)),state:Ns(a?.state,v)}}const _=qh(this.rewrite,new URL(g,this.origin)),w=this.options.parseSearch(_.search),E=this.options.stringifySearch(w);return _.search=E,{href:_.href.replace(_.origin,""),publicHref:g,pathname:Fo(mu(_.pathname)),external:!!this.rewrite&&_h(_,this.origin),searchStr:E,search:vi(a?.search,w),hash:Fo(_.hash.slice(1)),state:Ns(a?.state,v)}},l=o(n,n.state),{__tempLocation:u,__tempKey:d}=l.state;if(u&&(!d||d===this.tempLocationKey)){const h=o(u,{...u.state,__tempLocation:void 0,key:l.state.key,__TSR_key:l.state.__TSR_key});return h.maskedLocation=l,h}return l},this.matchRoutes=(n,a,o)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:a},o):this.matchRoutesInternal(n,a),this.getMatchedRoutes=n=>{const a=Object.create(null),o=ZT(ur(n),this.processedTree,!0);return o&&Object.assign(a,o.rawParams),[o?.branch||[this.routesById.__root__],a,o?.route]},this.buildLocation=n=>{{const u=this.staticLocations.get(n);if(u)return u}let a=!1;const o=(u={})=>
11{if(u.href){const _e=Eu(u.href,{});u={...u,to:qh(this.rewrite,new URL(_e.pathname,this.origin)).pathname,search:this.options.parseSearch(_e.search),hash:_e.hash.slice(1)}}const d=u._fromLocation||this._pendingLocation||this.latestLocation;let h;const p=()=>(a=!0,d),y=()=>(a=!0,h??=this.matchRoutesLightweight(d)),g=u.to?`${u.to}`:".",v=f0(g[0]==="/"?"":u.unsafeRelative==="path"?p().pathname:u.from??y()[1],g,this.options.trailingSlash,this.resolvePathCache),_=this.routesByPath[ur(v)],w=v.includes("$");let E;if(_)E=_._branch??=A_(_);else if(w)E=[];else{const[_e,ie,N]=this.getMatchedRoutes(v);E=_e,this.options.notFoundRoute&&(!N||N.path!=="/"&&ie["**"])&&(E=[...E,this.options.notFoundRoute])}const x=w?_?._interpolation??ul(!1,{fullPath:v},0):void 0;let T;for(const _e of E){const ie=_e.options.params?.stringify??_e.options.stringifyParams;if(ie){const N=y()[3];if(T??=Sh(u.params,N),!v_(T))break;T===N&&(T=Object.assign(hu(),T));try{Object.assign(T,ie(T))}catch{}}}T??=Sh(u.params,vx(u.params,x)?y()[3]:Eh);const C=n.leaveParams?v:mu(Fo(x?h0(v,x,T,this.pathParamsDecoder):v)),R=bx(E,n._includeValidateSearch),B=()=>{let _e=y()[2];if(n._includeValidateSearch&&this.options.search?.strict){const ie={};E.forEach(N=>{if(N.options.validateSearch)try{Object.assign(ie,gu(N.options.validateSearch,{...ie,..._e}))}catch{}}),_e=ie}return _e},Q=R.length?_x(R,B(),u):u.search===!0?B():typeof u.search=="function"?u.search(B()):u.search||Eh,I=this.options.stringifySearch(Q),j=u.hash===!0?p().hash:typeof u.hash=="function"?u.hash(p().hash):u.hash||void 0,M=j?`#${j}`:"",X=u.state?u.state===!0?p().state:typeof u.state=="function"?u.state(p().state):u.state:Eh,ce=`${C}${I}${M}`;let Z,F,te=!1;if(this.rewrite){const _e=new URL(ce,this.origin),ie=_e.origin,N=C_(this.rewrite,_e);Z=wh(_e),_h(N,ie)?(F=N.href,te=!0):F=mu(wh(N))}else Z=UT(ce),F=Z;return{publicHref:F,href:Z,pathname:C,search:Q,searchStr:I,state:X,hash:j??"",external:te,unmaskOnReload:u.unmaskOnReload}},l=o(n);if(n.mask)l.maskedLocation=o({from:n.from,...n.mask});else if(this.options.routeMasks){const u=GT(l.pathname,this.processedTree);if(u){const d=Object.assign(hu(),u.rawParams),{from:h,params:p,...y}=u.route,g=Sh(p,d);l.maskedLocation=o({from:n.from,...y,params:g})}}return!a&&n._fromLocation&&!l.maskedLocation&&this.staticLocations.set(n,l),l},this.commitLocation=async({viewTransition:n,ignoreBlocker:a,...o})=>{const l=o.maskedLocation??o;if(l.external)return S0(this,l.publicHref,{replace:o.replace,ignoreBlocker:a});let u;const d=ur(this.latestLocation.href)===ur(o.href)&&Qn(w0(o.state),w0(this.latestLocation.state)),h=this._commitPromise;let p;const y=new Promise(g=>{p=g});if(y.resolve=()=>{p(),h?.resolve()},this._commitPromise=y,d)this.load();else{let{maskedLocation:g,hashScrollIntoView:v,..._}=o;g&&(_={...g,state:{...g.state,__tempKey:void 0,__tempLocation:{..._,search:_.searchStr,state:{..._.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(_.unmaskOnReload??this.options.unmaskOnReload??!1)&&(_.state.__tempKey=this.tempLocationKey)),_.state={..._.state,__hashScrollIntoViewOptions:v??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=n,u=o.replace?"REPLACE":"PUSH",this.history[u==="REPLACE"?"replace":"push"](_.publicHref,_.state,{ignoreBlocker:a}),this.history.subscribers.size||this.load({action:{type:u}})}return this._scroll.n=o.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:n,resetScroll:a,hashScrollIntoView:o,viewTransition:l,ignoreBlocker:u,...d}={})=>{const h=this.buildLocation({...d,_includeValidateSearch:!0});this._pendingLocation=h;const p=this.commitLocation({...h,viewTransition:l,replace:n,resetScroll:a,hashScrollIntoView:o,ignoreBlocker:u});return queueMicrotask(()=>{this._pendingLocation===h&&(this._pendingLocation=void 0)}),p},this.navigate=async({to:n,reloadDocument:a,href:o,publicHref:l,...u})=>{const d=o?ll(o):void 0;if(d||a){if(n!==void 0||!o){const p=this.buildLocation({to:n,...u}),y=p.maskedLocation??p;o??=y.publicHref,l??=y.publicHref}return S0(this,!d&&l?l:o,u)}return this.buildAndCommitLocation({...u,href:o,to:n,_isNavigate:!0})},this.load=async n=>{this.updateLatestLocation(),n?.action&&(this._scroll.h=n.action.type==="PUSH"||n.action.type==="REPLACE"),await kx(this,n)},this.startViewTransition=n=>
11{const a=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,a&&typeof document.startViewTransition=="function"){let o;if(typeof a=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const l=this.latestLocation,u=this.stores.resolvedLocation.get(),d=typeof a.types=="function"?a.types(qu(l,u)):a.types;if(d===!1)return n();o={update:n,types:d}}else o=n;return document.startViewTransition(o).updateCallbackDone}return n()},this.invalidate=n=>{const a=this._committed,o=n?.filter,l=this._preloads,u=new Set,d=y=>{(!o||o(y))&&u.add(y.id)};a.forEach(d),this._cache.forEach(d),l?.forEach(y=>y.forEach(d)),this._tx?.[3].forEach(d);const h=[];for(const[y,g]of l??[])g.some(v=>u.has(v.id))&&(l.delete(y),h.push(y));const p=y=>{if(u.has(y.id)){const g=this.routesById[y.routeId],v={...y,invalid:!0,...(n?.forcePending||y.status==="error"||y.status==="notFound")&&_0(g)?{status:"pending",error:void 0}:void 0};return y._flight=void 0,v}return y};this._committed=a.map(p);for(const[y,g]of this._cache)u.has(y)&&(g.invalid=!0,n?.forcePending&&(g.status="pending"));for(const y of u){const g=this._flights?.get(y);this._flights?.delete(y),g&&!g[2]&&h.push(g[1])}for(const y of h)y.abort();return this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{const a=n.options;let o=n.headers.get("Location")||a.href;if(!o){const u=this.buildLocation(a);o=(u.maskedLocation??u).publicHref||"/"}let l;if(b_.test(o)||(l=ll(o))&&!this.protocolAllowlist.has(l))throw new Error("Redirect blocked: unsafe protocol");if(l==="http:"||l==="https:"){const u=new URL(o);u.pathname.startsWith("//")?o=u.href:_h(u,this.origin)||(o=wh(u),l=void 0)}return l&&(a.reloadDocument=!0),a.href=o,n.headers.set("Location",o),n},this.clearCache=n=>{const a=this._cache,o=this._preloads,l=n?.filter,u=[],d=[];for(const[p,y]of a)(!l||l(y))&&(d.push(p),u.push(y));const h=[];for(const[p,y]of o??[])(!l||y.some(l))&&(h.push(p),u.push(...y));for(const p of d)a.delete(p);for(const p of h)o.delete(p);for(const p of u){const y=p._flight;p._flight=void 0,y&&!--y[2]&&(this._flights?.get(p.id)===y&&this._flights.delete(p.id),h.push(y[1]))}for(const p of h)p.abort()},this.loadRouteChunk=Ir,this.preloadRoute=n=>Ox(this,n),this.matchRoute=(n,a)=>{const o={...n,to:n.to?f0(n.from||"",n.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:n.params||{},leaveParams:!0},l=this.buildLocation(o),u=this.stores.status.get()==="pending";if(a?.pending&&!u)return!1;const d=a?.pending??!u?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),h=FT(l.pathname,a?.caseSensitive??!1,a?.fuzzy??!1,d.pathname,this.processedTree);return!h||n.params&&!Qn(h.rawParams,n.params,!0)?!1:a?.includeSearch??!0?Qn(d.search,l.search,!0)?h.rawParams:!1:h.rawParams},this.getStoreConfig=e,t.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=IT(t.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??ix,parseSearch:t.parseSearch??ax,protocolAllowlist:t.protocolAllowlist??DT}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(t){Object.assign(this,t),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;const e=this.options.notFoundRoute;e&&(e.init(99999999999),this.routesById[e.id]!==e&&(e._interpolation=ul(!1,e,0)),this.routesById[e.id]=e)}matchRoutesInternal(t,e){const[n,a,o]=this.getMatchedRoutes(t.pathname);let l=n,u=!1;(o?o.path!=="/"&&a["**"]:ur(t.pathname))&&(this.options.notFoundRoute?l=[...l,this.options.notFoundRoute]:u=!0);const d=u?wx(this.options.notFoundMode,l):void 0,h=new Array(l.length),p=this._committed,y=(v,_)=>{const w=p[_];return w?.routeId===v.id?w:v===this.options.notFoundRoute?p.find(E=>E.routeId===v.id):void 0};let g;for(let v=0;v<l.length;v++){const _=l[v],w=h[v-1];let E,x,T;{const te=w?.search??t.search,_e=w?._strictSearch??void 0;try{const ie=gu(_.options.validateSearch,{...te})??void 0;E={...te,...ie},x={..._e,...ie}}catch(ie){let N=ie;if(ie instanceof Tu||(N=new Tu(ie.message,{cause:ie})),e?.throwOnError)throw N;E=te,x={},T=N}}let C="",R="";try{C=_.options.loaderDeps?.({search:E})??"",R=C&&JSON.stringify(C)||""}catch(te){if(e?.throwOnError)throw te;T??=te}const B=hu(),Q=_._interpolation?h0(_.fullPath,_._interpolation,a,this.pathParamsDecoder,B):_.fullPath,I=_.id+Q+R,j=y(_,v),M=this._cache.get(I)??(j?.id===I?j:void 0);g=M?._strictParams??Object.assign(B,g);let X;if(!M)try{E0(_,g)}catch(te){if(wa(te)||ol(te)?X=te:X=new yx(te.message,{cause:te}),e?.throwOnError)throw X}const ce=j?"stay":"enter";let Z;if(M)Z={...M,cause:ce,search:vi(j?j.search:M.search,E),_strictSearch:x,searchError:T};else{const te=_0(_)?"pending":"success";Z={id:I,ssr:_.options.ssr,index:v,routeId:_.id,params:j?.params??g,_strictParams:g,pathname:Q,updatedAt:Date.now(),search:j?vi(j.search,E):E,_strictSearch:x,searchError:T,status:te,isFetching:!1,error:void 0,paramsError:X,context:{},abortController:e?._controller??new AbortController,cause:ce,loaderDeps:j?Ns(j.loaderDeps,C):C,invalid:!1,preload:!1,staticData:_.options.staticData||{},fullPath:_.fullPath}}const F=d===_.id;
11Z._notFound&&!F&&(Z.error=void 0),Z._notFound=F,h[v]=Z}for(let v=0;v<h.length;v++){const _=h[v];_.params=_.cause==="stay"?vi(_.params,g):g,e?._controller&&(_.context={})}return h}matchRoutesLightweight(t){const e=Ms(this.stores.ids.get()),n=e?this.stores.byRoute.get(e).get():void 0,a=n?.id,o=this.lightweightCache.get(t);if(o&&o[0]===a)return o[1];const[l,u]=this.getMatchedRoutes(t.pathname),d=Ms(l),h={...t.search};for(const v of l)try{Object.assign(h,gu(v.options.validateSearch,h))}catch{}const p=n&&n.routeId===d.id&&n.pathname===t.pathname;let y;if(p)y=n.params;else{const v=u;for(const _ of l)try{E0(_,v)}catch{}y=v}const g=[l,d.fullPath,h,y];return this.lightweightCache.set(t,[a,g]),g}};async function S0(t,e,{replace:n,ignoreBlocker:a}){if(!__(e,t.protocolAllowlist)){if(!a){const o=t.history._getBlockers();for(const l of o)if(l?.blockerFn&&await l.blockerFn({currentLocation:t.history.location,nextLocation:t.history.location,action:n?"REPLACE":"PUSH"}))return}t.history._ignoreNextBeforeUnload?.(e),n?window.location.replace(e):window.location.href=e}}var Tu=class extends Error{},yx=class extends Error{};function gu(t,e){if(t==null)return{};if("~standard"in t){const n=t["~standard"].validate(e);if(n instanceof Promise)throw new Tu("Async validation not supported");if(n.issues)throw new Tu(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}function Sh(t,e){if(t===void 0||t===!0)return e;const n=Object.create(null);return t===!1||t===null?n:typeof t=="function"?(Object.assign(n,e),Object.assign(n,t(n))):Object.assign(n,e,t)}function vx(t,e){return typeof t=="function"?!0:!e||t===!1||t===null?!1:t===void 0||t===!0||e.some(n=>typeof n!="string"&&!Op.call(t,n[1]))}const Eh=Object.freeze({});function bx(t,e){const n=[];for(let a=0;a<t.length;a++){const o=t[a].options;if("search"in o)o.search?.middlewares&&n.push(...o.search.middlewares);else if(o.preSearchFilters||o.postSearchFilters){const u=({search:d,next:h})=>{const p=h(o.preSearchFilters?o.preSearchFilters.reduce((y,g)=>g(y),d):d);return o.postSearchFilters?o.postSearchFilters.reduce((y,g)=>g(y),p):p};n.push(u)}const l=o.validateSearch;if(e&&l){const u=({search:d,next:h,meta:p})=>{const y=h(d);try{const g=gu(l,y);if(p&&g)for(const v in g)v in y||(p.defaulted||=new Map).set(v,g[v]);return{...y,...g}}catch{}return y};n.push(u)}}return n}function _x(t,e,n){const a=(o,l,u)=>{if(o>=t.length){if(!n.search)return{};if(n.search===!0)return l;const h=y_(n.search,l);return u&&(u.explicit=h),h}const d=(h,p)=>{if(p){const y=u||{};return{search:a(o+1,h,y),meta:y}}return a(o+1,h,u)};return t[o]({search:l,next:d,meta:u})};return a(0,e)}function wx(t,e){if(t!=="root"){let n;for(let a=e.length-1;a>=0;a--){const o=e[a];if(o.options.notFoundComponent)return o.id;n||=o.children&&o.id}if(n)return n}return Ui}function E0(t,e){const n=t.options.params?.parse??t.options.parseParams;n&&Object.assign(e,n(e))}function Hh(t,e){return t.options[e]?.preload?.()}function Sx(t,e){const n=Hh(t,"component");let a=Hh(t,"pendingComponent");return e&&(a?a=a.then(e):e()),n&&a?Promise.all([n,a]).then(()=>{}):n??a}function Ir(t,e,n){const a=()=>e===!1?void 0:e?Hh(t,e):Sx(t,n),o=t._lazy;if(o)return o===!0?a():o.then(a);if(!t.lazyFn)return a();const l=t.lazyFn().then(u=>{{const{id:d,...h}=u.options;Object.assign(t.options,h),t._lazy=!0}},u=>{throw t._lazy=void 0,u});return t._lazy=l,l.then(a)}function jp(t){const e=t.findIndex(n=>n.status!=="success"||n._notFound)+1;return e&&e<t.length?t.slice(0,e):t}function D_(t){let e=t.length;for(let n=0;n<e;n++){const a=t[n];if(a._assetEnd!==void 0){e=Math.min(e,Math.max(n+1,a._assetEnd));continue}if(a.status!=="success"||a._notFound){e=n+1;break}}return e<t.length?t.slice(0,e):t}const dr=0,Br=1,Hu=2,en=3,zs=[4];function dl(t){return typeof t[0]=="number"}function $r(t,e){return e.aborted?Promise.race([Promise.reject(e),t]):new Promise((n,a)=>{const o=()=>a(e);e.addEventListener("abort",o,{once:!0}),Promise.resolve(t).then(n,a).then(()=>e.removeEventListener("abort",o))})}function Yn(t,e){return t.routesById[e.routeId]}function fl(t,e,n){return ol(t)?[en,t]:wa(t)?(t.routeId||=n,[Hu,t]):e?(typeof t?.then=="function"&&(t=new Error("A Promise was thrown",{c
11ause:t})),[Br,t]):[dr,t]}function Dp(t,e){let n=fl(e,!0,t.id);if(n[0]!==Br)return n;try{t.options.onError?.(n[1])}catch(a){n=fl(a,!0,t.id)}return n}function tl(t,e,n,a,o){return o[0].signal.aborted?zs:zp(t,e,n,Dp(n,a),o)}async function Ex(t,e,n,a,o,l){const[u,d]=e,h=n[0].signal,p=!!n[3];for(let y=n[6]??0;y<a;y++){const g=d[y],v=Yn(t,g);g.abortController=n[0];const _=d[y-1]?.context??t.options.context??{},w={params:g.params,location:u,navigate:C=>t.navigate({...C,_fromLocation:u}),buildLocation:t.buildLocation,cause:p?"preload":g.cause,abortController:n[0],preload:p,matches:d,routeId:v.id};try{const C=g._ctx||=v.options.context?v.options.context({...w,deps:g.loaderDeps,context:_})||{}:void 0;g.context={..._,...C}}catch(C){return Pr(t,g),[y,tl(t,e,v,C,n)]}if(h.aborted)return[y,zs];const E=g.paramsError??g.searchError;if(E!==void 0)return Pr(t,g),[y,tl(t,e,v,E,n)];const x=v.options.beforeLoad;if(!x)continue;const T=g.status;y>=l&&(g.status="pending",n[7]?.());try{hl(t,g,"beforeLoad",n[0]);const C=x({...w,search:g.search,context:g.context,...t.options.additionalContext}),R=await(typeof C?.then=="function"?$r(C,h):C);if(h.aborted)return[y,zs];const B=zp(t,e,v,fl(R,!1,v.id),n);if(B[0]!==dr)return Pr(t,g),[y,B];g.context={...g.context,...R}}catch(C){return Pr(t,g),[y,tl(t,e,v,C,n)]}finally{g.status=T,hl(t,g,!1,n[0])}}o()}function Lp(t,e,n){if(!(!n||--n[2])){if(t._flights?.get(e.id)===n){const a=t._tx;if(a&&!a[0].signal.aborted&&!a[3].includes(e)&&a[3].some(o=>o.id===e.id)&&a[3].some(o=>o.isFetching==="beforeLoad"))return;t._flights.delete(e.id)}return n[1]}}function Pr(t,e){const n=e._flight;e._flight=void 0,Lp(t,e,n)?.abort()}function Yt(t,e,n,a){const o=[];for(const l of e)if(!n?.includes(l)){const u=l._flight;if(l._flight=void 0,a&&u?.[2]===1&&t._flights?.get(l.id)===u&&n?.some(d=>d.id===l.id))u[2]=0;else{const d=Lp(t,l,u);d&&o.push(d)}}for(const l of o)l.abort()}function Mp(t){for(const e of t){const n=e._flight;n&&n[2]++}}function hl(t,e,n,a){if(e.isFetching=n,a&&t._tx?.[0]!==a)return;const o=t.stores.byRoute.get(e.routeId),l=o?.get();l?.id===e.id&&o.set({...l,isFetching:n})}function L_(t,e,n,a,o,l,u){const d=e[0];return{params:n.params,location:d,navigate:h=>t.navigate({...h,_fromLocation:d}),cause:u?"preload":n.cause,abortController:o,preload:u,deps:n.loaderDeps,parentMatchPromise:l,context:n.context,route:a,...t.options.additionalContext}}async function T0(t,e,n,a,o,l,u){const d=u[0],h=d.signal;if(h.aborted)return zs;if(!o)return[dr,void 0];let p=n._flight;hl(t,n,"loader",d);try{if(!p){const y=new AbortController;p=[Promise.resolve().then(()=>o(L_(t,e,n,a,y,l,!!u[3]))).then(g=>fl(g,!1,a.id),g=>fl(g,!0,a.id)).then(g=>(g[0]!==dr&&t._flights?.get(n.id)===p&&(t._flights.delete(n.id),p[2]||y.abort()),g[0]===Br&&p[2]?Dp(a,g[1]):g)),y,1],(t._flights??=new Map).set(n.id,p)}return n._flight=p,n.abortController=p[1],zp(t,e,a,await $r(p[0],h),u)}catch(y){if(y!==h||!h.aborted)throw y;return Pr(t,n),zs}finally{hl(t,n,!1,d)}}function x0(t,e,n){e[0]!==en&&(t.status="success",t.error=void 0,e[0]===dr?(t.loaderData=e[1],t.invalid=!1,t.updatedAt=Date.now(),t.preload=n):t.invalid=!0)}function M_(t,e,n){const a=t._cache.get(e.id);if(a!==n||t._committed.some(l=>l.id===e.id&&l._flight===e._flight))return;const o={...e,_notFound:void 0,context:{}};o._flight&&o._flight[2]++,t._cache.set(e.id,o),a&&Pr(t,a)}function A0(t,e){return e[0]===Br||e[0]===Hu?{...t,status:e[0]===Br?"error":"notFound",error:e[1],_flight:void 0}:t}function Tx(t,e,n,a,o,l,u){const d=e[1][n],h=Yn(t,d),p=!!l[3],y=t._cache.get(d.id);let g,v=!1,_;try{if(d.status==="success"&&(g=h.options.shouldReload,typeof g=="function"&&(g=g(L_(t,e,d,h,l[0],o,p))),l[0].signal.aborted&&(_=zs)),!_)if(d.status!=="success")v=!0;else{const F=p||d.preload?h.options.preloadStaleTime??t.options.defaultPreloadStaleTime??3e4:h.options.staleTime??t.options.defaultStaleTime??0;v=!!(d.invalid||g||g===void 0&&Date.now()-d.updatedAt>=F&&(l[5]||d.cause==="enter"||l[2].some(te=>te.routeId===d.routeId&&te.id!==d.id)))}}catch(F){d.invalid=!0,Pr(t,d),_=tl(t,e,h,F,l)}const w=h.options.loader,E=typeof w=="function",x=E?w:w?.handler,T=!p||h.options.preload!==!1;let C=T&&w?t._flights?.get(d.id):void 0;C===d._flight||_?C=void 0:C&&!v&&!p&&g===void 0?v=!0:v||(C=void 0);const R=!!(w&&v&&d.status==="success"&&!p&&!l[4]&&((E?void 0:w.staleReloadMode)??t.options.defaultStaleReloadMode)!=="blocking"),B=v&&T,Q=B&&!R&&(d.status!=="success"||!!w),I=n>=u?l[7]:void 0,j=h.lazyFn&&h._lazy!==!0?I:void 0;if(B&&!w&&(d.invalid=!1,d.updatedAt=Date.now()),C&&C[2]++,Q){const F=d._flight;d._flight=C,Lp(t,d,F)?.abort(),n>=u&&(d.status="pending"),I?.()}B||(d.isFetching=!1);const M=!_&&Q?T0(t,e,d,h,x,o,l).then(F=>(x0(d,F,p),F[0]===dr&&(w&&!l[0].signal.aborted&&M_(t,d,y),n>=u&&(d.status="pending")),F)):Promise.resolve(_??[dr,d.loaderData]),X=(async()=>{try{const te=Ir(h,void 0,j);te&&await $r(te,l[0].signal)}catch(te){if(!e[1].some((_e,ie)=>ie<=n&&(_e.status==="error"||_e.status==="notFound"||_e._notFound)))return[n,tl(t,e,h,te,l)]}const F=await M;Q&&F[0]===dr&&d.status==="pending"&&!l[0].signal.aborted&&(d.status="success",I?.())})();if(a.push([n,M,X]),!R)return M.then(F=>A0(d,F));const ce={...d,status:"pending",preload:!1,_flight:C};d.invalid=!1,d.isFetching="loader";const Z=T0(t,e,ce,h,x,o,l).then(F=>(d.isFetching=!1,x0(ce,F,!1),F));return(e[2]??=[]).push([n,Z,X,ce]),Z.then(F=>A0(ce,F))}async function Vh(t,e,n,a,o=0){const l=n?.[1][1];let u=l?.routeId?e.findIndex(d=>d.routeId===l.routeId):n?.[0]??e.length-1;u<0&&(u=0);for(let d=u;d>=0;d--){const h=Yn(t,e[d]);try{const p=Ir(h,!1);p&&await $r(p,a)}catch(p){if(p===a&&a.aborted)throw p}if(h.options.notFoundComponent)return d}return l?.routeId?u:o}function _a(t,e){e[2]&&(Yt(t,e[2].map(n=>n[3])),e[2]=void 0)}async function R0(t,e,n,a){let o;try{await Promise.all(t.map(l=>l[1].then(async u=>{const d=l[0];if(!(a&&d>=await a)){if(u[0]>=en)throw[d,u];!o&&u[0]!==dr&&(o=[d,u],await Promise.all((n??[]).map(h=>{if(!(h[0]<=d))return h[1].then(p=>{if(p[0]===en)throw[h[0],p]})})))}})))}catch(l){return l}return e??o}function zp(t,e,n,a,o,l){for(;a[0]===en;){const u=a[1],d=u.options;try{if((d.href||u.headers.has("Location"))&&(t.resolveRedirect(u),d.reloadDocument)||(
11d.reloadDocument?o[3]:o[1]>=20))return a;const h=t.buildLocation({...d,_fromLocation:e[0],_includeValidateSearch:!0}),p=h.maskedLocation??h;if(p.external){const y=u.clone();return y.options={...d},y.headers.set("Location",p.publicHref),t.resolveRedirect(y),o[3]?[en,y]:[en,y,p]}return[en,u,h]}catch(h){a=l?[Br,h]:Dp(n,h),l=!0}}return a}async function z_(t,e,n,a,o,l){const u=e[1];let d=await o,h=!1;const p=u.findIndex(_=>_._notFound),y=_=>_[1][0]===Hu?Vh(t,u,_,a.signal):_[0];let g=p<0?u.length:p;if((d?.[1][0]??0)>=en)g=0;else if(d){g=d[2]??=await y(d);for(const _ of n){if(_[0]>=g)break;const w=await _[1];if(w[0]!==dr&&w[0]<en&&!("loaderData"in u[_[0]])){d=[_[0],w],g=d[2]=await y(d);break}}}for(const _ of n){if(_[0]>=g)break;const w=await _[2];if(w){d=w;break}}if((d?.[1][0]??0)>=en){const _=d[1];if(_[0]!==en||_[1].options.reloadDocument||_[2])return _a(t,e),_;h=!0,d=[0,[Br,new Error("Too many redirects")]]}const v=d?d[2]??await y(d):p;if(v>=0){const _=d?.[1],w=_?.[0],E=u[v],x=_?.[1],T=()=>{_&&(E._notFound=void 0,w===Br?E.status="error":(x.routeId=E.routeId,E.routeId===t.routeTree.id?(E.status="success",E._notFound=!0):E.status="notFound"),E.error=x,E.isFetching=!1)};T(),_||l?.();const C=Yn(t,E);try{await $r(_?Promise.resolve().then(()=>Ir(C,w===Br?"errorComponent":"notFoundComponent")):Promise.all([Ir(C),Ir(C,"notFoundComponent")]),a.signal)}catch(R){if(R===a.signal&&a.signal.aborted)return _a(t,e),zs}_?h&&(a.abort(),await Promise.all([...n.map(R=>R[1]),...n.map(R=>R[2]),...(e[2]??[]).map(R=>R[1])]),_a(t,e),Yt(t,u),T()):E.status="success"}return e}async function Up(t,e,n,a=0,o=e[1].length){const l=e[1];for(let u=a;u<o;u++){const d=l[u],h=Yn(t,d).options;if(h.head||h.scripts)try{const p={ssr:t.options.ssr,matches:l,match:d,params:d.params,loaderData:d.loaderData},[y,g]=await $r(Promise.all([h.head?.(p),h.scripts?.(p)]),n);d.meta=y?.meta,d.links=y?.links,d.headScripts=y?.scripts,d.styles=y?.styles,d.scripts=g}catch(p){if(p===n&&n.aborted)break;console.error(p)}if(d.status!=="success"||d._notFound)break}return e}async function U_(t,e,n,a){const o=[e,n],l=a[0].signal;let u;try{const d=t.stores.matches.get();let h=n.findIndex(T=>T._notFound);if(t.options.notFoundMode!=="root"&&h>=0){const T=await Vh(t,n,void 0,l,h);n[h]._notFound=void 0,n[T]._notFound=!0,h=T}let p=h<0?n.length:h+1,y=0;for(;y<p&&y!==h;){const T=n[y],C=a[2][y],R=d[y];if(C?.id!==T.id||C.status!=="success"||T.preload||R?.id!==T.id||R.status!=="success"||(y++,C._notFound||R._notFound))break}const g=[],v=a[6]??0;let _=v?Promise.resolve(n[v-1]):void 0;const w=()=>{for(let T=v;T<p&&!l.aborted;T++)_=Tx(t,o,T,g,_,a,y)},E=await Ex(t,o,a,p,w,y);if(E){if(a[4]=!0,p=E[0],E[1][0]===Hu){const T=await Vh(t,n,E,l);E[2]=T,p=Math.min(p,T+1)}else E[1][0]>=en&&(p=0);w()}if(!l.aborted&&!a[3]){const T=[];for(const[C,R]of t._flights??[])R[2]||(t._flights.delete(C),T.push(R[1]));for(const C of T)C.abort()}const x=z_(t,o,g,a[0],R0(g,E,o[2]),a[7]);o[2]?.length&&(o[3]=R0(o[2],void 0,void 0,x.then(T=>dl(T)?0:jp(n).length,()=>0))),u=await x}catch(d){if(_a(t,o),d===l&&l.aborted)return zs;throw d}return dl(u)?u:Up(t,u,l,a[6]===n.length?a[6]:0)}function Gh(t,e){if(t._tx!==e)return;const n=e[3],a=t.stores.matches.get();let o=t._pending;for(let l=0;l<n.length;l++){const u=n[l],d=u.status==="success"&&!u._notFound,h=a[l]?.id===u.id&&a[l]?.status==="pending";if(d&&!h)continue;const p=Yn(t,u),y=d||u.invalid?0:p.options.pendingMs??t.options.defaultPendingMs,g=p.options.pendingComponent??t.options.defaultPendingComponent;if(!g||typeof y!="number"||y===1/0){o&&(o[0]=e,o[2]=0,o[4]=!0);return}const v=p.options.pendingMinMs??t.options.defaultPendingMinMs??0;let _=!1;if(o?.[1]===u.id?(_=o[0]!==e,o[0]=e):(clearTimeout(o?.[3]),t._pending=o=void 0),o||(t._pending=o=[e,u.id,h?Date.now()+v:e[4]+y,void 0,h||void 0,g]),o[4]&&!_&&o[5]===g)return;if(o[5]=g,!o[4]){clearTimeout(o[3]);const x=o[2]-Date.now();if(x>0){o[3]=setTimeout(()=>Gh(t,e),x);return}o[2]=0}const w=n.map(x=>({...x,_flight:void 0}));w[l].status="pending";const E=o[4]=t.startTransition(()=>t.stores.setMatches(w),w).then(x=>(x&&t._pending===o&&o[4]===E&&!o[2]&&(o[2]=Date.now()+v),x));return}}function Zo(t,e){const n=t._pending;(t._tx===e||!t._tx?.[3].some(a=>a.id===n?.[1]))&&(clearTimeout(n?.[3]),t._pending=void 0)}async function k0(t,e){const n=t._pending;if(!n)return;clearTimeout(n[3]);const a=n[2]-Date.now();if(!n[4]||a<=0||!jp(e[3]).some(l=>l.id===n[1]))return;let o;try{await $r(new Promise(l=>{o=setTimeout(l,a)}),e[0].signal)}catch{}clearTimeout(o)}function P_(t,e){t._committed=e,t.stores.setMatches(e)}function xx(t,e,n,a){const o=t._committed,l=t._lifecycleEnd,u=t._cache;for(const y of n)y.preload=!1,a&&(y._assetEnd=void 0);const d=jp(n).length,h=new Map;{const y=Date.now(),g=new Set;for(let v=0;v<n.length;v++){const _=n[v];(v<d||_.status==="success")&&g.add(_.id)}for(const v of[...o,...u.values()]){if(v.status!=="success"||g.has(v.id))continue;const _=Yn(t,v);!_.options.loader||y-v.updatedAt>=(v.preload?_.options.preloadGcTime??t.options.defaultPreloadGcTime??3e5:_.options.gcTime??t.options.defaultGcTime??3e5)||h.set(v.id,u.get(v.id)===v?v:{...v,_flight:void 0,isFetching:!1,context:{}})}}e[3]=[],t._cache=h;const p=t._lifecycleEnd=j_(n);P_(t,n),Yt(t,[...u.values(),...o].filter(y=>y._flight&&h.get(y.id)!==y),n),mx(t,o,n,l,p,e)}async function Qc(t,e){let n=t._tx;for(;n&&n!==e;)e=n,await n[5],n=t._tx}function I_(t,e,n){const a=n[1].options,o=n[2];if(!o)return t.navigate({...a,replace:!0,ignoreBlocker:!0});if(a.reloadDocument)return t.navigate({href:(o.maskedLocation??o).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});o._redirects=e[1]+1,t._pendingLocation=o;const l=t.commitLocation({...o,viewTransition:a.viewTransition,replace:!0,resetScroll:a.resetScroll,hashScrollIntoView:a.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{t._pendingLocation===o&&(t._pendingLocation=void 0)}),l}async function Ax(t,e,n,a,o){const l=n.map(h=>({...h}));Mp(l);for(const h of a)Pr(t,l[h[0]]),l[h[0]]=h[3];const u=[e[2],l];let d;try{d=await z_(t,u,a,e[0],o)}catch(h){throw Yt(t,l),h}if(dl(d)){Yt(t,l),d[0]===en&&t._tx===e&&t._committed===n&&await I_(t,e,d);return}if(await Up(t,d,e[0].signal),t._tx!==e||t._committed!==n){Yt(t,l);return}for(const h of l){const p=t._cache.get(h.id);p?._flight&&p._flight===h._flight&&(t._cache.delete(h.id),Pr(t,p))}P_(t,l),Yt(t,n,l)}async function Rx(t,e,n,a,o,l){const u=await U_(t,e[2],e[3],[e[0],e[1],t._committed,void 0,o,n,l,a]);
11if(dl(u)){const g=u[0]===en&&t._tx===e;if((!g||u[1].options.reloadDocument)&&Zo(t,e),Yt(t,e[3]),e[3]=[],!g)return;if(t._tx!==e){Zo(t,e);return}await I_(t,e,u);return}const d=u[1];if(t._tx===e&&await k0(t,e),t._tx!==e){Zo(t,e),Yt(t,d),_a(t,u);return}const h=e[2],p=qu(h,t.stores.resolvedLocation.get()),y=u[2];await t.startViewTransition(async()=>{if(t._tx===e&&await k0(t,e),t._tx!==e){Zo(t,e),Yt(t,d),_a(t,u);return}const g=()=>{Zo(t,e),xx(t,e,d,l),t._tx===e&&(t.emit({type:"onLoad",...p}),t._tx===e&&t.emit({type:"onBeforeRouteMount",...p}))},v=await t.startTransition(g,d);if(t._tx!==e){_a(t,u);return}y?.length&&Ax(t,e,d,y,u[3]).catch(console.error),t.batch(()=>{t.stores.resolvedLocation.set(h),t.stores.status.set("idle"),t._tx===e&&t.emit({type:"onResolved",...p}),v&&t._tx===e&&t.emit({type:"onRendered",...p})}),t._tx===e&&(t._commitPromise?.resolve(),t._commitPromise=void 0)})}async function kx(t,e){const n=t._tx,a=t.stores.resolvedLocation.get(),o=a??t.stores.location.get(),l=t.latestLocation,u=t._pendingLocation,d=u?.href===l.href?u._redirects??0:0,h=t._handoff,p=h?.[0](),y=new AbortController,g=t._preflight;if(t._preflight=y,p||h?.[1](),g?.abort(),!y.signal.aborted){const B=qu(l,a);t.emit({type:"onBeforeNavigate",...B}),y.signal.aborted||t.emit({type:"onBeforeLoad",...B})}if(y.signal.aborted){await Qc(t,n);return}const v=o.href===l.href;let _=y;const w=t.matchRoutes(l,{_controller:y});Mp(w);const E=p?h[1](w):void 0;if(E?_=p:p?.abort(),y.signal.aborted){Yt(t,w),await Qc(t,n);return}t._preflight=void 0;let x;const T=()=>Rx(t,R,v,()=>Gh(t,R),e?.sync,E),C=e?.sync?new Promise(B=>x=B):Promise.resolve().then(T),R=[_,d,l,w,Date.now(),C.then(()=>Qc(t,R))];if(t._tx=R,n){for(const B of t.stores.matches.get()){if(t._tx!==R)break;B.isFetching&&hl(t,B,!1)}n[0].abort(),Yt(t,n[3],R[3],!0)}if(t._tx!==R){Yt(t,R[3]),R[3]=[],x?.(),await Qc(t,R);return}t.batch(()=>{t.stores.status.set("pending"),t.stores.location.set(l)}),(E||!t._committed.length&&w[0]?.status!=="success"&&!w.some(B=>B._notFound))&&Gh(t,R),x?.(T()),await R[5]}async function Ox(t,e){let n=t.buildLocation(e);for(let a=0;;a++){const o=t._committed,l=new AbortController;let u,d,h;try{try{u=t.matchRoutes(n,{_controller:l}),Mp(u),d=(t._preloads??=new Map).set(l,u),h=await U_(t,n,u,[l,a,o,!0])}finally{d&&(d=d.delete(l),Yt(t,u)),l.abort()}if(!dl(h))return h[1];if(!d||h.length<3)return;n=h[2]}catch(p){wa(p)||console.error(p);return}}}async function Cx(t){const e=window.$_TSR,n=t.options.serializationAdapters;n?.length&&(e.t=new Map(n.map(Z=>[Z.key,Z.fromSerializable])),e.buffer.forEach(Z=>Z())),e.initialized=!0;const a=e.router;t.ssr={manifest:a.manifest},t.options.ssr={nonce:document.querySelector('meta[property="csp-nonce"]')?.content};const o=a.matches,l=new AbortController,u=t._preflight;t._preflight=l,u?.abort();const d=()=>t._preflight===l;let h,p,y,g;try{if(await $r(t.options.hydrate?.(a.dehydratedData),l.signal),!d())return;const Z=t.history.location;y=Z.href,g=Z.state,t.updateLatestLocation(),h=t.latestLocation,t.stores.location.set(h),p=t.matchRoutes(h,{_controller:l})}catch(Z){if(d()&&(t._preflight=void 0),l.abort(Z),Z!==l.signal)throw Z}if(!d())return;const v=[];let _,w=0;const E=Z=>{w=Math.min(w,Z+1);const F=v.splice(Z);for(const te of F)Yn(t,te).options.loader&&(te.status==="success"||!te.invalid&&"loaderData"in te)&&M_(t,{...te,status:"success",error:void 0,preload:!0},t._cache.get(te.id));Yt(t,F)},x=o.length>p.length?p.findIndex(Z=>Z._notFound)+1:o.length;let T=!1;for(let Z=0;Z<x;Z++){const F=p[Z],te=o[Z];if(typeof te.i!="string"||OT(te.i)!==F.id){_??=Z;break}w=Z+1;const _e=Yn(t,F);if(("l"in te||te.s==="success"&&te.e===void 0&&_e.options.loader)&&(F.loaderData=te.l),F.status=te.s,F.ssr=te.ssr,_e.options.ssr=F.ssr,F.updatedAt=te.u,F.error=te.e,F._notFound||=te.g,F.status==="error"||F.status==="notFound"||F._notFound){T=!0,v.push(F),(F.ssr===!1||F.ssr==="data-only")&&(_??=Z);break}if(F.status==="pending"){_??=Z;break}v.push(F),F.ssr==="data-only"&&(_??=Z)}!T&&v.length===x&&x<p.length&&(_=x);const C=v.map(async Z=>{try{const F=Yn(t,Z);return await(Z._notFound?Promise.all([Ir(F),Ir(F,"notFoundComponent")]):Ir(F,Z.status==="error"?"errorComponent":Z.status==="notFound"?"notFoundComponent":void 0)),!0}catch{return!1}});let R=0;try{for(;R<C.length&&await $r(C[R],l.signal);)R++}catch{return}if(!d())return;R<v.length&&E(R);const B=Math.max(_===v.length?v.length+1:v.length,R<C.length?R:w);for(let Z=0;Z<B;Z++){const F=p[Z],te=Yn(t,F),_e=p[Z-1]?.context??t.options.context??{};let ie;if(te.options.context){try{ie=F._ctx=te.options.context({deps:F.loaderDeps,params:F.params,context:_e,location:h,navigate:N=>t.navigate({...N,_fromLocation:h}),buildLocation:t.buildLocation,cause:F.cause,abortController:l,preload:!1,matches:p,routeId:te.id})||{}}catch{if(!d())return;if(F.status!=="error"&&F.status!=="notFound"&&!F._notFound){_=Math.min(_??Z,Z),E(Z);break}}if(!d())return}F.context={..._e,...ie,...v[Z]&&o[Z].b}}if(await Up(t,[h,p],l.signal,0,w),!d())return;const Q=_!==void 0||v.length<x,I=T&&v.length===x?p:v;let j=Q?p:I,M;if(Q&&_!==void 0){const Z=j[_];M=Z.ssr==="data-only"&&w>_+1?w:void 0,j=j.slice(),j[_]={...Z,status:"pending",ssr:Z.ssr==="data-only"?"data-only":!1,_assetEnd:M}}const X=()=>{const Z=t.history.location;return Q&&!t._tx&&Z.href===y&&Z.state===g&&t._committed===I&&I.length&&!l.signal.aborted?l:void 0},ce=[X,Z=>{if(t._handoff!==ce)return;t._handoff=void 0;const F=I.length;if(!Z||!X()||I.some((ie,N)=>ie.id!==Z[N]?.id)){l.abort();return}let te=M;if(te!==void 0){for(let ie=F;ie<te;ie++)if(p[ie]?.id!==Z[ie]?.id){te=ie>_+1?ie:void 0;break}}const _e=I.map(ie=>({...ie}));te!==void 0&&(_e[_]._assetEnd=te),Yt(t,Z.splice(0,F,..._e));for(let ie=F;ie<Z.length;ie++){const N=Z[ie],Y=p[ie];
11Y?.id===N.id&&Y._ctx&&(N._ctx=Y._ctx),N.abortController=l}return F}];t._committed=I,t._lifecycleEnd=j_(I),t._handoff=ce,t._preflight=void 0,t.batch(()=>{t.stores.setMatches(j),t.stores.status.set("idle"),Q||t.stores.resolvedLocation.set(t.stores.location.get())})}const qr=Symbol.asyncIterator,B_=Symbol.hasInstance,Pi=Symbol.isConcatSpreadable,Hr=Symbol.iterator,$_=Symbol.match,q_=Symbol.matchAll,H_=Symbol.replace,V_=Symbol.search,G_=Symbol.species,F_=Symbol.split,Z_=Symbol.toPrimitive,Ii=Symbol.toStringTag,K_=Symbol.unscopables,Y_={[qr]:0,[B_]:1,[Pi]:2,[Hr]:3,[$_]:4,[q_]:5,[H_]:6,[V_]:7,[G_]:8,[F_]:9,[Z_]:10,[Ii]:11,[K_]:12},Nx={0:qr,1:B_,2:Pi,3:Hr,4:$_,5:q_,6:H_,7:V_,8:G_,9:F_,10:Z_,11:Ii,12:K_},jx={2:!0,3:!1,1:void 0,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:NaN},Dx={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},Lx={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function qe(t,e,n,a,o,l,u,d,h,p,y,g){return{t,i:e,s:n,c:a,m:o,p:l,e:u,a:d,f:h,b:p,o:y,l:g}}function Bs(t){return qe(2,void 0,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}const Q_=Bs(2),J_=Bs(3),Mx=Bs(1),zx=Bs(0),Ux=Bs(4),Px=Bs(5),Ix=Bs(6),Bx=Bs(7),$x=64,qx=/[\x00-\x07\x0b\x0e-\x1f<\u2028\u2029\ud800-\udfff]/;function Hx(t){switch(t){case'"':return'\\"';case"\\":return"\\\\";case`
12`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case"	":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return}}function Ea(t){if(t.length>=$x&&!qx.test(t))return JSON.stringify(t).slice(1,-1);let e="",n=0,a;for(let o=0,l=t.length;o<l;o++)a=Hx(t[o]),a&&(e+=t.slice(n,o)+a,n=o+1);return n===0?e=t:e+=t.slice(n),e}function Vx(t){switch(t){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return`
13`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return"	";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return t}}function $s(t){return typeof t=="string"&&!t.includes("\\")?t:t.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Vx)}const Gx={parsing:1,serialization:2,deserialization:3};function Fx(t){return`Seroval Error (step: ${Gx[t]})`}const Zx=(t,e)=>Fx(t);var X_=class extends Error{constructor(t,e){super(Zx(t)),this.cause=e}},O0=class extends X_{constructor(t){super("parsing",t)}},Kx=class extends X_{constructor(t){super("deserialization",t)}};function Gr(t){return`Seroval Error (specific: ${t})`}var Ta=class extends Error{constructor(t){super(Gr(1)),this.value=t}},Pp=class extends Error{constructor(t){super(Gr(2))}},Yx=class extends Error{constructor(t){super(Gr(3))}},Vu=class extends Error{constructor(t){super(Gr(4))}},Qx=class extends Error{constructor(t){super(Gr(5)),this.value=t}},Jx=class extends Error{constructor(t){super(Gr(6))}},Xx=class extends Error{constructor(t){super(Gr(7))}},Dt=class extends Error{constructor(t){super(Gr(8))}},W_=class extends Error{constructor(t){super(Gr(9))}};const Jc="__SEROVAL_REFS__",ew=new Map,ji=new Map;function tw(t){return ew.has(t)}function Wx(t){return ji.has(t)}function eA(t){if(tw(t))return ew.get(t);throw new Qx(t)}function tA(t){if(Wx(t))return ji.get(t);throw new Jx(t)}typeof globalThis<"u"?Object.defineProperty(globalThis,Jc,{value:ji,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Jc,{value:ji,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Jc,{value:ji,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Jc,{value:ji,configurable:!0,writable:!1,enumerable:!1});function Ip(t){return t instanceof EvalError?1:t instanceof RangeError?2:t instanceof ReferenceError?3:t instanceof SyntaxError?4:t instanceof TypeError?5:t instanceof URIError?6:0}function nA(t){const e=Dx[Ip(t)];return t.name!==e?{name:t.name}:t.constructor.name!==e?{name:t.constructor.name}:{}}function nw(t,e){let n=nA(t);const a=Object.getOwnPropertyNames(t);for(let o=0,l=a.length,u;o<l;o++)u=a[o],u!=="name"&&u!=="message"&&(u==="stack"?e&4&&(n=n||{},n[u]=t[u]):(n=n||{},n[u]=t[u]));return n}function rw(t){return Object.isFrozen(t)?3:Object.isSealed(t)?2:Object.isExtensible(t)?0:1}function rA(t){switch(t){case Number.POSITIVE_INFINITY:return Px;case Number.NEGATIVE_INFINITY:return Ix}return t!==t?Bx:Object.is(t,-0)?Ux:qe(0,void 0,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function sw(t){return qe(1,void 0,Ea(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function sA(t){return qe(3,void 0,""+t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function aA(t){return qe(4,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function iA(t,e){const n=e.valueOf();return qe(5,t,n!==n?"":e.toISOString(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ws(t,e,n){return qe(36,t,n.toString(),e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function oA(t,e){return qe(6,t,void 0,Ea(e.source),e.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function lA(t,e){return qe(17,t,Y_[e],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function cA(t,e){return qe(18,t,Ea(eA(e)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function uA(t,e,n){return qe(25,t,n,Ea(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function dA(t,e,n){return qe(9,t,void 0,void 0,void 0,void 0,void 0,n,void 0,void 0,rw(e),void 0)}function fA(t,e){return qe(21,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}const Bp=1e6;function hA(t,e,n){if(e.length>Bp)throw new Ta(e);return qe(15,t,void 0,e.constructor.name,void 0,void 0,void 0,void 0,n,e.byteOffset,void 0,e.length)}function pA(t,e,n){if(e.length>Bp)throw new Ta(e);return qe(16,t,void 0,e.constructor.name,void 0,void 0,void 0,void 0,n,e.byteOffset,void 0,e.length)}function mA(t,e,n){if(e.byteLength>Bp)throw new Ta(e);return qe(20,t,void 0,void 0,void 0,void 0,void 0,void 0,n,e.byteOffset,void 0,e.byteLength)}function gA(t,e,n){return qe(13,t,Ip(e),void 0,Ea(e.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function yA(t,e,n){return qe(14,t,Ip(e),void 0,Ea(e.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function vA(t,e){return qe(7,t,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0,void 0)}function bA(t,e){return qe(28,void 0,void 0,void 0,void 0,void 0,void 0,[t,e],void 0,void 0,void 0,void 0)}function _A(t,e){return qe(30,void 0,void 0,void 0,void 0,void 0,void 0,[t,e],void 0,void 0,void 0,void 0)}function wA(t,e,n){return qe(31,t,void 0,void 0,void 0,void 0,void 0,n,e,void 0,void 0,void 0)}function SA(t,e){return qe(32,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function EA(t,e){return qe(33,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function TA(t,e){return qe(34,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function xA(t,e,n,a){return qe(35,t,n,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0,a)}var AA=class{constructor(t,e){this.value=t,this.replacement=e}};const $p=()=>{const t={p:0,s:0,f:0};
13return t.p=new Promise((e,n)=>{t.s=e,t.f=n}),t},RA=t=>e=>()=>{let n=0;const a={[t](){return a},next(){if(n>e.d)return{done:!0,value:void 0};const o=n++,l=e.v[o];if(o===e.t)throw l;return{done:o===e.d,value:l}}};return a},kA=(t,e)=>n=>()=>{let a=0,o=-1,l=!1;const u=[],d=[],h={finalize(y=0,g=d.length){for(;y<g;y++)d[y].s({done:!0,value:void 0})}};n.on({next(y){const g=d.shift();g&&g.s({done:!1,value:y}),u.push(y)},throw(y){const g=d.shift();g&&g.f(y),h.finalize(),o=u.length,l=!0,u.push(y)},return(y){const g=d.shift();g&&g.s({done:!0,value:y}),h.finalize(),o=u.length,u.push(y)}});const p={[t](){return p},next(){if(o===-1){const v=a++;if(v>=u.length){const _=e();return d.push(_),_.p}return{done:!1,value:u[v]}}if(a>o)return{done:!0,value:void 0};const y=a++,g=u[y];if(y!==o)return{done:!1,value:g};if(l)throw g;return{done:!0,value:g}}};return p},OA=t=>{const e=atob(t),n=e.length,a=new Uint8Array(n);for(let o=0;o<n;o++)a[o]=e.charCodeAt(o);return a.buffer};var aw=class{constructor(t,e,n){this.v=t,this.t=e,this.d=n}};function iw(t){return t instanceof aw}function ow(t,e,n){return new aw(t,e,n)}function CA(t){const e=[];let n=-1,a=-1;const o=t[Hr]();for(;;)try{const l=o.next();if(e.push(l.value),l.done){a=e.length-1;break}}catch(l){n=e.length,a=n,e.push(l);break}return ow(e,n,a)}const NA=RA(Hr);function jA(t){return NA(t)}const DA={},LA={},MA={0:{},1:{},2:{},3:{},4:{},5:{}};function lw(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zA(t,e){lw(t,e),e.add(t)}function Ko(t,e,n){lw(t,e),e.set(t,n)}function Di(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function et(t,e){return t.get(Di(t,e))}function _i(t,e,n){return t.set(Di(t,e),n),n}var Li=new WeakMap,Lr=new WeakMap,Mr=new WeakMap,yu=new WeakMap,Vn=new WeakMap,Yo=new WeakSet,cw=class{constructor(){zA(this,Yo),Ko(this,Li,[]),Ko(this,Lr,[]),Ko(this,Mr,!0),Ko(this,yu,!1),Ko(this,Vn,0)}on(t){let e=et(Mr,this),n=0;if(e){for(;n<et(Vn,this)&&et(Lr,this)[n];n++);if(n===et(Vn,this)){var a;_i(Vn,this,(a=et(Vn,this),a++,a))}et(Lr,this)[n]=t}return Di(Yo,this,UA).call(this,t),()=>{if(et(Mr,this)&&e){for(e=!1,et(Lr,this)[n]=void 0;et(Vn,this)>0&&!et(Lr,this)[et(Vn,this)-1];){var o;_i(Vn,this,(o=et(Vn,this),o--,o))}et(Lr,this).length=et(Vn,this)}}}next(t){et(Mr,this)&&(et(Li,this).push(t),Di(Yo,this,Th).call(this,t,"next"))}throw(t){et(Mr,this)&&(et(Li,this).push(t),Di(Yo,this,Th).call(this,t,"throw"),_i(Mr,this,!1),_i(yu,this,!1),et(Lr,this).length=0)}return(t){et(Mr,this)&&(et(Li,this).push(t),Di(Yo,this,Th).call(this,t,"return"),_i(Mr,this,!1),_i(yu,this,!0),et(Lr,this).length=0)}};function Th(t,e){for(let a=0;a<et(Vn,this);a++){var n;(n=et(Lr,this)[a])===null||n===void 0||n[e](t)}}function UA(t){for(let e=0,n=et(Li,this).length;e<n;e++){const a=et(Li,this)[e];!et(Mr,this)&&e===n-1?t[et(yu,this)?"return":"throw"](a):t.next(a)}}function qp(t){return t instanceof cw}function kl(){return new cw}function PA(t,e){const n=kl(),a=t[qr]();let o=!1,l=!1;async function u(){try{for(;!o;){const d=await a.next();if(d.done){l=!0,n.return(d.value);break}n.next(d.value)}}catch(d){l=!0,n.throw(d)}}return u().catch(()=>{}),n}const IA=kA(qr,$p);function BA(t){return IA(t)}async function $A(t){try{return[1,await t]}catch(e){return[0,e]}}function qA(t,e){var n;return{plugins:e.plugins,mode:t,marked:new Set,features:127^(e.disabledFeatures||0),refs:e.refs||new Map,depthLimit:e.depthLimit||1e3,compactArrayBufferViews:(n=e.compactArrayBufferViews)!==null&&n!==void 0?n:!1}}function vu(t,e){t.marked.add(e)}function HA(t,e){const n=t.refs.size;return t.refs.set(e,n),n}function Gu(t,e){const n=t.refs.get(e);return n!=null?(vu(t,n),{type:1,value:aA(n)}):{type:0,value:HA(t,e)}}function Hp(t,e){const n=Gu(t,e);return n.type===1?n:tw(e)?{type:2,value:cA(n.value,e)}:n}function ya(t,e){const n=Hp(t,e);if(n.type!==0)return n.value;if(e in Y_)return lA(n.value,e);throw new Ta(e)}function Fu(t,e){const n=Gu(t,MA[e]);return n.type===1?n.value:qe(26,n.value,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function VA(t){const e=Gu(t,DA);return e.type===1?e.value:qe(27,e.value,void 0,void 0,void 0,void 0,void 0,void 0,ya(t,Hr),void 0,void 0,void 0)}function GA(t){const e=Gu(t,LA);return e.type===1?e.value:qe(29,e.value,void 0,void 0,void 0,void 0,void 0,[Fu(t,1),ya(t,qr)],void 0,void 0,void 0,void 0)}function FA(t,e,n,a){return qe(n?11:10,t,void 0,void 0,void 0,a,void 0,void 0,void 0,void 0,rw(e),void 0)}function ZA(t,e,n,a){return qe(8,e,void 0,void 0,void 0,void 0,{k:n,v:a},void 0,Fu(t,0),void 0,void 0,void 0)}function Vp(t,e){if(!t.compactArrayBufferViews)return e;const n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength).slice().buffer,a=e.constructor;return new a(n)}function KA(t){if(typeof Buffer<"u")return Buffer.from(t).toString("base64");const e=new Uint8Array(t);if(typeof e.toBase64=="function")return e.toBase64();let n="";for(let a=0,o=e.length;a<o;a++)n+=String.fromCharCode(e[a]);return btoa(n)}function YA(t,e,n){return qe(19,e,KA(n),void 0,void 0,void 0,void 0,void 0,Fu(t,5),void 0,void 0,void 0)}function QA(t,e){return{base:qA(t,e),child:void 0}}var JA=class{constructor(t,e){this._p=t,this.depth=e}parse(t){return Rt(this._p,this.depth,t)}};async function XA(t,e,n){const a=[];for(let o=0,l=n.length;o<l;o++)o in n?a[o]=await Rt(t,e,n[o]):a[o]=0;return a}
13async function WA(t,e,n,a){return dA(n,a,await XA(t,e,a))}async function Gp(t,e,n){const a=Object.entries(n),o=[],l=[];for(let u=0,d=a.length;u<d;u++)o.push(Ea(a[u][0])),l.push(await Rt(t,e,a[u][1]));return Hr in n&&(o.push(ya(t.base,Hr)),l.push(bA(VA(t.base),await Rt(t,e,CA(n))))),qr in n&&(o.push(ya(t.base,qr)),l.push(_A(GA(t.base),await Rt(t,e,PA(n))))),Ii in n&&(o.push(ya(t.base,Ii)),l.push(sw(n[Ii]))),Pi in n&&(o.push(ya(t.base,Pi)),l.push(n[Pi]?Q_:J_)),{k:o,v:l}}async function xh(t,e,n,a,o){return FA(n,a,o,await Gp(t,e,a))}async function eR(t,e,n,a){return fA(n,await Rt(t,e,a.valueOf()))}async function tR(t,e,n,a){return a=Vp(t.base,a),hA(n,a,await Rt(t,e,a.buffer))}async function nR(t,e,n,a){return a=Vp(t.base,a),pA(n,a,await Rt(t,e,a.buffer))}async function rR(t,e,n,a){return a=Vp(t.base,a),mA(n,a,await Rt(t,e,a.buffer))}async function C0(t,e,n,a){const o=nw(a,t.base.features);return gA(n,a,o?await Gp(t,e,o):void 0)}async function sR(t,e,n,a){const o=nw(a,t.base.features);return yA(n,a,o?await Gp(t,e,o):void 0)}async function aR(t,e,n,a){const o=[],l=[];for(const[u,d]of a.entries())o.push(await Rt(t,e,u)),l.push(await Rt(t,e,d));return ZA(t.base,n,o,l)}async function iR(t,e,n,a){const o=[];for(const l of a.keys())o.push(await Rt(t,e,l));return vA(n,o)}async function uw(t,e,n,a){const o=t.base.plugins;if(o)for(let l=0,u=o.length;l<u;l++){const d=o[l];if(d.parse.async&&d.test(a))return uA(n,d.tag,await d.parse.async(a,new JA(t,e),{id:n}))}}async function oR(t,e,n,a){const[o,l]=await $A(a);return qe(12,n,o,void 0,void 0,void 0,void 0,void 0,await Rt(t,e,l),void 0,void 0,void 0)}function lR(t,e,n,a,o){const l=[],u=n.on({next:d=>{vu(this.base,e),Rt(this,t,d).then(h=>{l.push(SA(e,h))},h=>{o(h),u()})},throw:d=>{vu(this.base,e),Rt(this,t,d).then(h=>{l.push(EA(e,h)),a(l),u()},h=>{o(h),u()})},return:d=>{vu(this.base,e),Rt(this,t,d).then(h=>{l.push(TA(e,h)),a(l),u()},h=>{o(h),u()})}})}async function cR(t,e,n,a){return wA(n,Fu(t.base,4),await new Promise(lR.bind(t,e,n,a)))}async function uR(t,e,n,a){const o=[];for(let l=0,u=a.v.length;l<u;l++)o[l]=await Rt(t,e,a.v[l]);return xA(n,o,a.t,a.d)}async function dR(t,e,n,a){if(Array.isArray(a))return WA(t,e,n,a);if(qp(a))return cR(t,e,n,a);if(iw(a))return uR(t,e,n,a);let o=a.constructor;if(o!==void 0&&typeof o!="function"){const d=Object.getPrototypeOf(a);o=d===null?void 0:d.constructor}if(o===AA)return Rt(t,e,a.replacement);const l=await uw(t,e,n,a);if(l)return l;switch(o){case Object:return xh(t,e,n,a,!1);case void 0:return xh(t,e,n,a,!0);case Date:return iA(n,a);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return C0(t,e,n,a);case Number:case Boolean:case String:case BigInt:return eR(t,e,n,a);case ArrayBuffer:return YA(t.base,n,a);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return tR(t,e,n,a);case DataView:return rR(t,e,n,a);case Map:return aR(t,e,n,a);case Set:return iR(t,e,n,a)}if(o===Promise||a instanceof Promise)return oR(t,e,n,a);const u=t.base.features;if(u&32&&o===RegExp)return oA(n,a);if(u&16)switch(o){case BigInt64Array:case BigUint64Array:return nR(t,e,n,a)}if(u&1&&typeof AggregateError<"u"&&(o===AggregateError||a instanceof AggregateError))return sR(t,e,n,a);if(u&64&&typeof Temporal<"u")switch(o){case Temporal.Instant:return ws(n,0,a);case Temporal.Duration:return ws(n,1,a);case Temporal.PlainDate:return ws(n,2,a);case Temporal.PlainDateTime:return ws(n,3,a);case Temporal.PlainMonthDay:return ws(n,4,a);case Temporal.PlainTime:return ws(n,5,a);case Temporal.PlainYearMonth:return ws(n,6,a);case Temporal.ZonedDateTime:return ws(n,7,a)}if(a instanceof Error)return C0(t,e,n,a);if(Hr in a||qr in a)return xh(t,e,n,a,!!o);throw new Ta(a)}async function fR(t,e,n){const a=Hp(t.base,n);if(a.type!==0)return a.value;const o=await uw(t,e,a.value,n);if(o)return o;throw new Ta(n)}async function Rt(t,e,n){if(e>=t.base.depthLimit)throw new W_(t.base.depthLimit);switch(typeof n){case"boolean":return n?Q_:J_;case"undefined":return Mx;case"string":return sw(n);case"number":return rA(n);case"bigint":return sA(n);case"object":if(n){const a=Hp(t.base,n);
13return a.type===0?await dR(t,e+1,a.value,n):a.value}return zx;case"symbol":return ya(t.base,n);case"function":return fR(t,e,n);default:throw new Ta(n)}}async function hR(t,e){try{return await Rt(t,0,e)}catch(n){throw n instanceof O0?n:new O0(n)}}function dw(t,e){for(let n=0,a=e.length;n<a;n++){const o=e[n];t.has(o)||(t.add(o),o.extends&&dw(t,o.extends))}}function fw(t){if(t){const e=new Set;return dw(e,t),[...e]}}function pR(t){switch(t){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new Xx(t)}}function mR(t){switch(t){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function gR(t){switch(t){case qr:case Pi:case Ii:case Hr:return!0;default:return!1}}const yR=1e6,vR=512,bR=1e4,_R=2e4;function hw(t,e){switch(e){case 3:return Object.freeze(t);case 1:return Object.preventExtensions(t);case 2:return Object.seal(t);default:return t}}const wR=1e3;function SR(t,e){var n,a;const o=(n=e.maxBase64Length)!==null&&n!==void 0?n:yR;if(!Number.isSafeInteger(o)||o<0)throw new RangeError("maxBase64Length must be a non-negative safe integer");const l=e.refs||new Map;return"types"in l||Object.assign(l,{types:new Map}),{mode:t,plugins:e.plugins,refs:l,features:(a=e.features)!==null&&a!==void 0?a:127^(e.disabledFeatures||0),depthLimit:e.depthLimit||wR,maxBase64Length:o}}function ER(t){return{mode:2,base:SR(2,t),child:void 0}}var TR=class{constructor(t,e){this._p=t,this.depth=e}deserialize(t){return st(this._p,this.depth,t)}};function pw(t,e){if(e<0||!Number.isFinite(e)||!Number.isInteger(e))throw new Dt({t:4,i:e});if(t.refs.has(e))throw new Error("Conflicted ref id: "+e)}function mw(t){return!!t&&(typeof t=="object"||typeof t=="function")&&"then"in t&&typeof t.then=="function"}function xR(t,e,n){return pw(t.base,e),t.state.marked.has(e)&&t.base.refs.set(e,n),n}function AR(t,e,n){return pw(t.base,e),t.base.refs.set(e,n),n}function Et(t,e,n){return t.mode===1?xR(t,e,n):AR(t,e,n)}function Fh(t,e,n){if(Object.hasOwn(e,n))return e[n];throw new Dt(t)}function RR(t,e){return Et(t,e.i,tA($s(e.s)))}function Us(t,e){if(!Array.isArray(e))throw new Dt(t)}function kR(t,e,n){const a=n.a;Us(n,a);const o=a.length,l=Et(t,n.i,new Array(o));for(let u=0,d;u<o;u++)d=a[u],d&&(l[u]=st(t,e,d));return hw(l,n.o),l}function N0(t,e,n){mR(e)?t[e]=n:Object.defineProperty(t,e,{value:n,configurable:!0,enumerable:!0,writable:!0})}function OR(t,e,n,a,o){if(typeof a=="string")N0(n,$s(a),st(t,e,o));else{const l=st(t,e,a);switch(typeof l){case"string":N0(n,l,st(t,e,o));break;case"symbol":gR(l)&&(n[l]=st(t,e,o));break;default:throw new Dt(a)}}}function gw(t,e,n){t.base.refs.types.set(e,n)}function Zu(t,e,n,a){if(t.base.refs.types.get(n)!==a)throw new Dt(e)}function yw(t,e,n,a){const o=n.k;if(Us(n,o),Us(n,n.v),o.length>0)for(let l=0,u=n.v,d=o.length;l<d;l++)OR(t,e,a,o[l],u[l]);return a}function CR(t,e,n){const a=Et(t,n.i,n.t===10?{}:Object.create(null));return yw(t,e,n.p,a),hw(a,n.o),a}function NR(t,e){return Et(t,e.i,new Date(e.s))}function jR(t,e){if(!(t.base.features&64))throw new Pp(e);let n;switch(e.c){case 0:n=Temporal.Instant.from(e.s);break;case 1:n=Temporal.Duration.from(e.s);break;case 2:n=Temporal.PlainDate.from(e.s);break;case 3:n=Temporal.PlainDateTime.from(e.s);break;case 4:n=Temporal.PlainMonthDay.from(e.s);break;case 5:n=Temporal.PlainTime.from(e.s);break;case 6:n=Temporal.PlainYearMonth.from(e.s);break;case 7:n=Temporal.ZonedDateTime.from(e.s);break;default:throw new Dt(e)}return Et(t,e.i,n)}function DR(t,e){if(t.base.features&32){const n=$s(e.c);if(n.length>_R)throw new Dt(e);return Et(t,e.i,new RegExp(n,e.m))}throw new Pp(e)}function LR(t,e,n){const a=Et(t,n.i,new Set);Us(n,n.a);for(let o=0,l=n.a,u=l.length;o<u;o++)a.add(st(t,e,l[o]));return a}function MR(t,e,n){const a=Et(t,n.i,new Map);Us(n,n.e.k),Us(n,n.e.v);for(let o=0,l=n.e.k,u=n.e.v,d=l.length;o<d;o++)a.set(st(t,e,l[o]),st(t,e,u[o]));return a}function zR(t,e){if(typeof e.s!="string")throw new Dt(e);if(e.s.length>t.base.maxBase64Length)throw new RangeError("ArrayBuffer exceeds maxBase64Length ("+t.base.maxBase64Length+")");const n=$s(e.s);let a;
13if(n.length<vR||typeof Buffer>"u")a=OA(n);else{const o=atob(n);a=new ArrayBuffer(o.length),Buffer.from(a).write(o,"latin1")}return Et(t,e.i,a)}function UR(t,e,n){var a;const o=pR(n.c),l=st(t,e,n.f);if(!(l instanceof ArrayBuffer))throw new Dt(n);const u=(a=n.b)!==null&&a!==void 0?a:0;if(u<0||u>l.byteLength)throw new Dt(n);return Et(t,n.i,new o(l,u,n.l))}function PR(t,e,n){var a;const o=st(t,e,n.f);if(!(o instanceof ArrayBuffer))throw new Dt(n);const l=(a=n.b)!==null&&a!==void 0?a:0;if(l<0||l>o.byteLength)throw new Dt(n);return Et(t,n.i,new DataView(o,l,n.l))}function vw(t,e,n,a){if(n.p){const o=yw(t,e,n.p,{});Object.defineProperties(a,Object.getOwnPropertyDescriptors(o))}return a}function IR(t,e,n){return vw(t,e,n,Et(t,n.i,new AggregateError([],$s(n.m))))}function BR(t,e,n){const a=Fh(n,Lx,n.s);return vw(t,e,n,Et(t,n.i,new a($s(n.m))))}function $R(t,e,n){const a=$p(),o=Et(t,n.i,a.p),l=st(t,e,n.f);if(mw(l))throw new Dt(n.f);return n.s?a.s(l):a.f(l),o}function qR(t,e,n){return Et(t,n.i,Object(st(t,e,n.f)))}function HR(t,e,n){const a=t.base.plugins;if(a){const o=$s(n.c);for(let l=0,u=a.length;l<u;l++){const d=a[l];if(d.tag===o)return Et(t,n.i,d.deserialize(n.s,new TR(t,e),{id:n.i}))}}throw new Yx(n.c)}function VR(t,e){const n=Et(t,e.i,Et(t,e.s,$p()).p);return gw(t,e.s,22),n}function GR(t,e,n){const a=t.base.refs.get(n.i);if(a){Zu(t,n,n.i,22);const o=st(t,e,n.a[1]);if(mw(o))throw new Dt(n.a[1]);n.t===23?a.s(o):a.f(o);return}throw new Vu("Promise")}function FR(t,e,n){st(t,e,n.a[0]);const a=st(t,e,n.a[1]);if(!iw(a))throw new Dt(n.a[1]);return jA(a)}function ZR(t,e,n){st(t,e,n.a[0]);const a=st(t,e,n.a[1]);if(!qp(a))throw new Dt(n.a[1]);return BA(a)}function KR(t,e,n){const a=Et(t,n.i,kl());gw(t,n.i,31);const o=n.a;Us(n,o);const l=o.length;if(l)for(let u=0;u<l;u++)st(t,e,o[u]);return a}function YR(t,e,n){const a=t.base.refs.get(n.i);if(a){Zu(t,n,n.i,31),a.next(st(t,e,n.f));return}throw new Vu("Stream")}function QR(t,e,n){const a=t.base.refs.get(n.i);if(a){Zu(t,n,n.i,31),a.throw(st(t,e,n.f));return}throw new Vu("Stream")}function JR(t,e,n){const a=t.base.refs.get(n.i);if(a){Zu(t,n,n.i,31),a.return(st(t,e,n.f));return}throw new Vu("Stream")}function XR(t,e,n){st(t,e,n.f)}function WR(t,e,n){st(t,e,n.a[1])}function j0(t,e){return Number.isInteger(t)&&t>=-1&&t<e}function ek(t,e,n){Us(n,n.a);const a=n.a.length;if(!(j0(n.s,a)&&j0(n.l,a)))throw new Dt(n);const o=Et(t,n.i,ow([],n.s,n.l));for(let l=0;l<a;l++)o.v[l]=st(t,e,n.a[l]);return o}function st(t,e,n){if(e>t.base.depthLimit)throw new W_(t.base.depthLimit);switch(e+=1,n.t){case 2:return Fh(n,jx,n.s);case 0:return Number(n.s);case 1:return $s(String(n.s));case 3:if(String(n.s).length>bR)throw new Dt(n);return BigInt(n.s);case 4:return t.base.refs.get(n.i);case 18:return RR(t,n);case 9:return kR(t,e,n);case 10:case 11:return CR(t,e,n);case 5:return NR(t,n);case 6:return DR(t,n);case 7:return LR(t,e,n);case 8:return MR(t,e,n);case 19:return zR(t,n);case 16:case 15:return UR(t,e,n);case 20:return PR(t,e,n);case 14:return IR(t,e,n);case 13:return BR(t,e,n);case 12:return $R(t,e,n);case 17:return Fh(n,Nx,n.s);case 21:return qR(t,e,n);case 25:return HR(t,e,n);case 22:return VR(t,n);case 23:case 24:return GR(t,e,n);case 28:return FR(t,e,n);case 30:return ZR(t,e,n);case 31:return KR(t,e,n);case 32:return YR(t,e,n);case 33:return QR(t,e,n);case 34:return JR(t,e,n);case 27:return XR(t,e,n);case 29:return WR(t,e,n);case 35:return ek(t,e,n);case 36:return jR(t,n);default:throw new Pp(n)}}function tk(t,e){try{return st(t,0,e)}catch(n){throw new Kx(n)}}function nk(t,e){const n=fw(e.plugins);return tk(ER({maxBase64Length:e.maxBase64Length,plugins:n,refs:e.refs,features:e.features,disabledFeatures:e.disabledFeatures,depthLimit:e.depthLimit}),t)}async function rk(t,e={}){const n=fw(e.plugins),a=QA(1,{compactArrayBufferViews:e.compactArrayBufferViews,plugins:n,disabledFeatures:e.disabledFeatures});return{t:await hR(a,t),f:a.base.features,m:Array.from(a.base.marked)}}function sk(t){return{tag:"$TSR/t/"+t.key,test:t.test,parse:{sync(e,n){return{v:n.parse(t.toSerializable(e))}},async async(e,n){return{v:await n.parse(t.toSerializable(e))}},stream(e,n){return{v:n.parse(t.toSerializable(e))}}},serialize:void 0,deserialize(e,n){return t.fromSerializable(n.deserialize(e.v))}}}function bw(t){if(Array.isArray(t))return t.flatMap(y=>bw(y));if(typeof t!="string")return[];const e=[];let n=0,a,o,l,u,d;const h=()=>{for(;n<t.length&&/\s/.test(t.charAt(n));)n+=1;return n<t.length},p=()=>(o=t.charAt(n),o!=="="&&o!==";"&&o!==",");for(;n<t.length;){for(a=n,d=!1;h();)if(o=t.charAt(n),o===","){for(l=n,n+=1,h(),u=n;n<t.length&&p();)n+=1;n<t.length&&t.charAt(n)==="="?(d=!0,n=u,e.push(t.slice(a,l)),a=n):n=l+1}else n+=1;(!d||n>=t.length)&&e.push(t.slice(a))}return e}function ak(t){return t instanceof Headers?t:Array.isArray(t)?new Headers(t):typeof t=="object"?new Headers(t):null}function ik(...t){return t.reduce((e,n)=>{const a=ak(n);if(!a)return e;for(const[o,l]of a.entries())o==="set-cookie"?bw(l).forEach(u=>e.append("set-cookie",u)):e.set(o,l);return e},new Headers)}const ok={tag:"$TSR/Error",test(t){return t instanceof Error},parse:{sync(t,e){return{message:e.parse(t.message)}},async async(t,e){return{message:await e.parse(t.message)}},stream(t,e){return{message:e.parse(t.message)}}},serialize(t,e){return"new Error("+e.serialize(t.message)+")"},deserialize(t,e){return new Error(e.deserialize(t.message))}};var lk=class{constructor(t,e){this.stream=t,this.hint=e?.hint??"binary"}};function _w(t){const e=[];for(let n=0;n<t.length;n+=32768)e.push(String.fromCharCode.apply(null,t.subarray(n,n+32768)));return btoa(e.join(""))}function ww(t){const e=atob(t),n=new Uint8Array(e.length);for(let a=0;a<e.length;a++)n[a]=e.charCodeAt(a);return n}const ck=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});function uk(t){try{return"t"+ck.decode(t)}catch{return"b"+_w(t)}}const dk=new TextEncoder;function fk(t){const e=t.slice(1);return t[0]==="t"?dk.encode(e):ww(e)}function hk(t,e,n){n?.throwIfAborted();const a=kl(),o=t.getReader();let l=!0;const u=()=>{l=!1,n?.removeEventListener("abort",h),o.releaseLock()},d=p=>l?(o.cancel(p).catch(()=>{}),u(),!0):!1,h=()=>{d(n.reason)&&a.throw(n.reason)};return n?.addEventListener("abort",h),(async()=>{try{for(;l;){const{done:p,value:y}=await o.read();if(!l)return;if(p){u(),a.return(void 0);return}a.next(e(y))}}catch(p){d(p)&&a.throw(p)}})(),[a,d]}function pk(t,e){let n,a=!1;return new ReadableStream({start(o){const l=t.on({next(u){if(!a)try{o.enqueue(e(u))}catch(d){a=!0;const h=n;n=void 0,h?.(),o.error(d)}},throw(u){a||(a=!0,n=void 0,o.error(u))},return(){a||(a=!0,n=void 0,o.close())}});a?l():n=l},cancel(){const o=n;n=void 0,o?.()}})}function Sw(t){return{tag:"tss/RawStream",test:e=>e instanceof lk,parse:{async:async(e,n)=>{const a=await n.parse(e.hint==="text"),[o]=hk(e.stream,e.hint==="text"?uk:_w,t);return{text:a,stream:await n.parse(o)}}},serialize:void 0,deserialize:void 0}}const mk=Sw(),gk={tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(t,e){return pk(e.deserialize(t.stream),e.deserialize(t.text)?fk:ww)}},xs={},Ew=t=>new ReadableStream({start(e){t.on({next(n){try{e.enqueue(n)}catch{}},throw(n){e.error(n)},return(){try{e.close()}catch{}}})}}),yk={tag:"seroval-plugins/web/ReadableStreamFactory",test(t){return t===xs},parse:{sync(){return xs},async async(){return await Promise.resolve(xs)},stream(){return xs}},serialize(){return Ew.toString()},deserialize(){return xs}};async function vk(t,e){try{for(;;){const n=await e.read();if(n.done){t.return(n.value),e.releaseLock();break}t.next(n.value)}}catch(n){e.releaseLock(),t.throw(n)}}function bk(t){t.cancel().catch(()=>{}),t.releaseLock()}function D0(t){const e=kl(),n=t.getReader(),a=bk.bind(null,n);return vk(e,n).catch(a),[e,a]}const _k={tag:"seroval/plugins/web/ReadableStream",extends:[yk],test(t){return typeof ReadableStream>"u"?!1:t instanceof ReadableStream},parse:{sync(t,e){return{factory:e.parse(xs),stream:e.parse(kl())}},async async(t,e){return{factory:await e.parse(xs),stream:await e.parse(D0(t)[0])}},stream(t,e){const[n,a]=D0(t);return e.addCleanup(a),{factory:e.parse(xs),stream:e.parse(n)}}},serialize(t,e){return"("+e.serialize(t.factory)+")("+e.serialize(t.stream)+")"},deserialize(t,e){const n=e.deserialize(t.stream);if(!n||typeof n!="object"||!qp(n))throw new Error("Expected a stream source.");return Ew(n)}};function Tw(t){return[ok,t?Sw(t):mk,_k]}const wk=Tw();[...wk];function Sk(t){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(e,n){return t(n.deserialize(e.streamId))}}}function Ek(t){return[...kp()?.serializationAdapters?.map(sk)??[],...t]}function xw(t){return Ek(Tw(t))}var L0=new TextDecoder,sr=new Uint8Array,Tk=new ByteLengthQueuingStrategy({highWaterMark:0});function xk(t){const e=t.getReader(),n=new Map;let a=0,o,l;const u=()=>{o?.(),o=void 0},d=(g,v)=>{const _=g[1];g[1]=!1,_&&(v===1?_.close():_.error(v[0]))},h=new ReadableStream({start(g){l=g},pull:u,cancel(g){const v=[g===void 0?new Error("Framed response cancelled"):g];a=v,u(),e.cancel(g).catch(()=>{});for(const _ of n.values())d(_,v)}});function p(g){const v=n.get(g);if(v)return v;if(n.size>=1024)throw new Error("Too many raw streams");let _;const w=[new ReadableStream({start(E){_=E},cancel(){w[1]!==!1&&(w[1]=null)}},Tk),_];return n.set(g,w),a!==0&&d(w,a),w}function y(g){if(g===0||g>>>0!==g)throw new RangeError("Invalid raw stream ID");return p(g)[0]}return(async()=>{let g=sr,v=0;async function _(){for(;v===g.byteLength;){g=sr,v=0;const E=await e.read();if(a!==0||E.done)return!1;g=E.value}return!0}async function w(E,x){if(E===0)return sr;if(!await _()){if(x)return;throw new Error("Incomplete frame")}if(g.byteLength-v>=E){const R=g.subarray(v,v+E);return v+=E,v===g.byteLength&&(g=sr,v=0),R}const T=new Uint8Array(E);let C=0;for(;C<E;){if(!await _())throw new Error("Incomplete frame");const R=Math.min(E-C,g.byteLength-v);T.set(g.subarray(v,v+R),C),v+=R,C+=R}return v===g.byteLength&&(g=sr,v=0),T}try{for(;a===0;){let E=await w(9,!0);if(a!==0)return;if(!E){for(const Q of n.values())if(Q[1])throw new Error("Incomplete raw 
13stream");a=1,l.close();return}const x=E[0],T=(E[1]<<24|E[2]<<16|E[3]<<8|E[4])>>>0,C=(E[5]<<24|E[6]<<16|E[7]<<8|E[8])>>>0;if(E=sr,x>3||x===0!=(T===0)||C>16777216||x===2&&C!==0)throw new Error("Invalid frame");const R=x===0?void 0:p(T);if(R?.[1]===!1)throw new Error("Raw stream already ended");let B=await w(C);if(a!==0)return;if(!R){const Q=L0.decode(B);for(B=sr,l.enqueue(Q);a===0&&l.desiredSize<=0;)await new Promise(I=>{o=I});continue}if(x===1){const Q=R[1];if(Q){if(-Q.desiredSize>134217728){Q.error(new Error(`Raw stream ${T} has too many unread bytes`)),R[1]=null,B=sr;continue}const I=B.byteLength*4<B.buffer.byteLength?B.slice():B;B=sr,Q.enqueue(I)}}else d(R,x===2?1:[new Error(L0.decode(B))])}}catch(E){if(a===0){const x=[E];a=x,e.cancel(E).catch(()=>{}),l.error(E);for(const T of n.values())d(T,x)}}finally{g=sr,e.releaseLock()}})(),[h,y]}const lr=Symbol.for("TSR_DEFERRED_PROMISE");function Ak(t,e){const n=t;return n[lr]||(n[lr]={status:"pending"},n.then(a=>{n[lr].status="success",n[lr].data=a}).catch(a=>{n[lr].status="error",n[lr].error={data:px(a),__isServerError:!0}})),n}const Rk="Error preloading route! ☝️";function Aw(t,e){if(t)return typeof t=="string"?t:t[e]}function kk(t){return t?.scriptFormat??"module"}function Ok(t,e,n){const a=Ck(e),o=Aw(n,"script")??a.crossOrigin;return{...kk(t)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:a.href,...o?{crossOrigin:o}:{}}}function Ck(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function Xc(t,e){if(e.length===0)return;if(e.length===1){t.push(e[0]);return}const n=new Set;for(const a of e){const o=JSON.stringify(a);n.has(o)||(n.add(o),t.push(a))}}function Nk(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function jk(t,e,n,a){const o=D_(t),l=[],u=[];for(const d of o)for(const h of Array.isArray(d.scripts)?d.scripts:[]){if(!h)continue;const{children:p,...y}=h;l.push({tag:"script",attrs:{...y,...a,nonce:n},children:p})}if(e)for(const d of o)for(const h of e.routes[d.routeId]?.scripts??[])u.push({tag:"script",attrs:{...h.attrs,nonce:n},children:h.children});return[l,u]}function Dk([t,e],n){return[...t,...e]}var Rw=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;const n=this.options,a=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),a?this._path=Ui:this.parentRoute||cl();let o=a?Ui:n?.path;o&&o!=="/"&&(o=w_(o));const l=n?.id||o,u=a?Ui:zi((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(l??""));o==="__root__"&&(o="/");const d=u==="__root__"?"/":o===void 0?this.parentRoute.fullPath:zi(this.parentRoute.fullPath+"/"+o);this._path=o,this._id=u,this._fullPath=d,this._to=ur(d)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e=="object"&&e!==null&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>il({from:this.fullPath,...e}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},Lk=class extends Rw{constructor(t){super(t)}};var pl;function Zh(t,e,n){try{return nk(t,e)}catch(a){throw Ow(n),a}}async function kw(t){t.length>0&&(await Promise.allSettled(t),t.length=0)}function Ow(t){for(const e of t)e.catch(()=>{});t.length=0}var Mk=Object.prototype.hasOwnProperty;function Cw(t){for(const e in t)if(Mk.call(t,e))return!0;return!1}async function zk(t,e,n){pl||(pl=xw());const a=e[0],o=a.fetch??n,l=a.data instanceof FormData,u=new Headers(a.headers);if(u.set("x-tsr-serverFn","true"),l||u.set("accept",`${kT}, application/x-ndjson, application/json`),a.method==="GET"){if(l)throw new Error("FormData is not supported with GET requests");const h=await Nw(a);if(h!==void 0){const p=k_({payload:h});t.includes("?")?t+=`&${p}`:t+=`?${p}`}}let d;
13return a.method==="POST"&&(d=await Uk(a),typeof d=="string"&&u.set("content-type","application/json")),Pk(()=>o(t,{method:a.method,headers:u,signal:a.signal,body:d}))}async function Nw(t){let e;return t.data!==void 0&&(e={data:t.data}),t.context&&Cw(t.context)&&((e??={}).context=t.context),e?jw(e,t.signal):void 0}async function jw(t,e){e?.throwIfAborted();let n;try{n=await rk(t,{plugins:e?xw(e):pl})}finally{e?.throwIfAborted()}return JSON.stringify(n)}async function Uk(t){if(t.data instanceof FormData){let e;return t.context&&Cw(t.context)&&(e=await jw(t.context,t.signal)),e!==void 0&&t.data.set(RT,e),t.data}return Nw(t)}async function Pk(t){let e;try{e=await t()}catch(a){if(a instanceof Response)e=a;else throw a}if(e.headers.get("x-tss-raw")==="true")return e;const n=e.headers.get("content-type");if(n||cl(),e.headers.get("x-tss-serialized")){let a;if(n.includes("application/x-tss-framed")){const o=/;\s*v=(\d+)/.exec(n)?.[1];if(o&&+o!=1)throw new Error(`Unsupported framed protocol version ${o}`);if(!e.body)throw new Error("No response body for framed response");const[l,u]=xk(e.body);a=await Ik(l,[Sk(u),...pl])}else if(n.includes("application/json")){const o=await e.json(),l=[];a=Zh(o,{plugins:pl},l),await kw(l)}if(a||cl(),a instanceof Error)throw a;return a}if(n.includes("application/json")){const a=await e.json(),o=g_(a);if(o)throw o;if(wa(a))throw a;return a}if(!e.ok)throw new Error(await e.text());return e}async function Ik(t,e){const n=t.getReader(),a={refs:new Map,plugins:e},o=d=>{n.cancel(d).catch(()=>{})};let l;const u=[];try{const d=await n.read();if(d.done)throw new Error("Stream ended before first object");l=Zh(JSON.parse(d.value),a,u)}catch(d){throw o(d),n.releaseLock(),d}return(async()=>{const d=[];try{for(;;){const h=await n.read();if(h.done)return;Zh(JSON.parse(h.value),a,d),Ow(d)}}catch(h){o(h),console.error("Stream processing error:",h)}finally{n.releaseLock()}})(),await kw(u),l}function tt(t){const e="/_serverFn/"+t;return Object.assign((...o)=>{const l=kp()?.serverFns?.fetch;return zk(e,o,l??fetch)},{url:e,serverFnMeta:{id:t},[Ih]:!0})}var Bk={key:"$TSS/serverfn",test:t=>typeof t!="function"||!(Ih in t)?!1:!!t[Ih],toSerializable:({serverFnMeta:t})=>({functionId:t.id}),fromSerializable:({functionId:t})=>tt(t)},xu=ee.use,Dw=ee.useLayoutEffect;function $k({promise:t}){if(xu)return xu(t);const e=Ak(t);if(e[lr].status==="pending")throw e;if(e[lr].status==="error")throw e[lr].error;return e[lr].data}function qk(t){const e=D.jsx(Hk,{...t});return t.fallback?D.jsx(ee.Suspense,{fallback:t.fallback,children:e}):e}function Hk(t){const e=$k(t);return t.children(e)}var Fp=class extends ee.Component{constructor(...t){super(...t),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(t,e){const n=t.getResetKey();return e.error&&e.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(t){return{error:[t]}}componentDidCatch(t,e){this.props.onCatch?.(t,e)}render(){const t=this.state.error;return t?ee.createElement(this.props.errorComponent??Vk,{error:t[0],reset:this.reset}):this.props.children}};function Vk({error:t}){const[e,n]=ee.useState(!1);return D.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[D.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),D.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(a=>!a),children:e?"Hide Error":"Show Error"})]}),D.jsx("div",{style:{height:".25rem"}}),e?D.jsx("div",{children:D.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t?.message?D.jsx("code",{children:t.message}):null})}):null]})}var M0=()=>!0,Gk=()=>!1;function Fk({children:t,fallback:e=null}){return D.jsx(re.Fragment,{children:Zp()?t:e})}function Zp(t=!0){return re.useSyncExternalStore(Zk,M0,t?Gk:M0)}function Zk(){return()=>{}}var Lw=ee.createContext(null);function Ht(t){return ee.useContext(Lw)}var Kp=ee.createContext(void 0),Kk=ee.createContext(void 0);function Yk({update:t,notify:e,unwatched:n}){return{link:a,unlink:o,propagate:l,checkDirty:u,shallowPropagate:d};function a(p,y,g){const v=y.depsTail;if(v!==void 0&&v.dep===p)return;const _=v!==void 0?v.nextDep:y.deps;if(_!==void 0&&_.dep===p){_.version=g,y.depsTail=_;return}const w=p.subsTail;if(w!==void 0&&w.version===g&&w.sub===y)return;const E=y.depsTail=p.subsTail={version:g,dep:p,sub:y,prevDep:v,nextDep:_,prevSub:w,nextSub:void 0};_!==void 0&&(_.prevDep=E),v!==void 0?v.nextDep=E:y.deps=E,w!==void 0?w.nextSub=E:p.subs=E}function o(p,y=p.sub){const g=p.dep,v=p.prevDep,_=p.nextDep,w=p.nextSub,E=p.prevSub;return _!==void 0?_.prevDep=v:y.depsTail=v,v!==void 0?v.nextDep=_:y.deps=_,w!==void 0?w.prevSub=E:g.subsTail=E,E!==void 0?E.nextSub=w:(g.subs=w)===void 0&&n(g),_}function l(p){let y=p.nextSub,g;e:do{const v=p.sub;let _=v.flags;if(_&60?_&12?_&4?!(_&48)&&h(p,v)?(v.flags=_|40,_&=1):_=0:v.flags=_&-9|32:_=0:v.flags=_|32,_&2&&e(v),_&1){const w=v.subs;if(w!==void 0){const E=(p=w).nextSub;E!==void 0&&(g={value:y,prev:g},y=E);continue}}if((p=y)!==void 0){y=p.nextSub;continue}for(;g!==void 0;)if(p=g.value,g=g.prev,p!==void 0){y=p.nextSub;continue e}break}while(!0)}function u(p,y){let g,v=0,_=!1;e:do{const w=p.dep,E=w.flags;if(y.flags&16)_=!0;else if((E&17)===17){if(t(w)){const x=w.subs;x.nextSub!==void 0&&d(x),_=!0}}else if((E&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(g={value:p,prev:g}),p=w.deps,y=w,++v;continue}if(!_){const x=p.nextDep;if(x!==void 0){p=x;continue}}for(;v--;){const x=y.subs,T=x.nextSub!==void 0;if(T?(p=g.value,g=g.prev):p=x,_){if(t(y)){T&&d(x),y=p.sub;continue}_=!1}else y.flags&=-33;y=p.sub;const C=p.nextDep;if(C!==void 0){p=C;continue e}}return _}while(!0)}function d(p){do{const y=p.sub,g=y.flags;(g&48)===32&&(y.flags=g|16,(g&6)===2&&e(y))}while((p=p.nextSub)!==void 0)}function h(p,y){let g=y.depsTail;for(;g!==void 0;){if(g===p)return!0;g=g.prevDep}return!1}}function Qk(t,e,n){const a=typeof t=="object",o=a?t:void 0;return{next:(a?t.next:t)?.bind(o),error:(a?t.error:e)?.bind(o),c
13omplete:(a?t.complete:n)?.bind(o)}}const Kh=[];let bu=0;const{link:z0,unlink:Jk,propagate:Xk,checkDirty:Mw,shallowPropagate:U0}=Yk({update(t){return t._update()},notify(t){Kh[Yh++]=t,t.flags&=-3},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=17,Au(t))}});let Wc=0,Yh=0,Fn,Qh=0;function Wk(t){try{++Qh,t()}finally{--Qh||zw()}}function Au(t){const e=t.depsTail;let n=e!==void 0?e.nextDep:t.deps;for(;n!==void 0;)n=Jk(n,t)}function zw(){if(!(Qh>0)){for(;Wc<Yh;){const t=Kh[Wc];Kh[Wc++]=void 0,t.notify()}Wc=0,Yh=0}}function P0(t,e){const n=typeof t=="function",a=t,o={_snapshot:n?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?0:1,get(){return Fn!==void 0&&z0(o,Fn,bu),o._snapshot},subscribe(l){const u=Qk(l),d={current:!1},h=eO(()=>{o.get(),d.current?(Fn=void 0,u.next?.(o._snapshot)):d.current=!0});return{unsubscribe:()=>{h.stop()}}},_update(l){const u=Fn,d=e?.compare??Object.is;if(n)Fn=o,++bu,o.depsTail=void 0;else if(l===void 0)return!1;n&&(o.flags=5);try{const h=o._snapshot,p=typeof l=="function"?l(h):l===void 0&&n?a(h):l;return h===void 0||!d(h,p)?(o._snapshot=p,!0):!1}finally{Fn=u,n&&(o.flags&=-5),Au(o)}}};return n?(o.flags=17,o.get=function(){const l=o.flags;if(l&16||l&32&&Mw(o.deps,o)){if(o._update()){const u=o.subs;u!==void 0&&U0(u)}}else l&32&&(o.flags=l&-33);return Fn!==void 0&&z0(o,Fn,bu),o._snapshot}):o.set=function(l){if(o._update(l)){const u=o.subs;u!==void 0&&(Xk(u),U0(u),zw())}},o}function eO(t){const e=()=>{const a=Fn;Fn=n,++bu,n.depsTail=void 0,n.flags=6;try{return t()}finally{Fn=a,n.flags&=-5,Au(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){const a=this.flags;a&16||a&32&&Mw(this.deps,this)?e():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Au(this)}};return e(),n}var Ah={exports:{}},Rh={},kh={exports:{}},Oh={};var I0;function tO(){if(I0)return Oh;I0=1;var t=Rl();function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var n=typeof Object.is=="function"?Object.is:e,a=t.useState,o=t.useEffect,l=t.useLayoutEffect,u=t.useDebugValue;function d(g,v){var _=v(),w=a({inst:{value:_,getSnapshot:v}}),E=w[0].inst,x=w[1];return l(function(){E.value=_,E.getSnapshot=v,h(E)&&x({inst:E})},[g,_,v]),o(function(){return h(E)&&x({inst:E}),g(function(){h(E)&&x({inst:E})})},[g]),u(_),_}function h(g){var v=g.getSnapshot;g=g.value;try{var _=v();return!n(g,_)}catch{return!0}}function p(g,v){return v()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return Oh.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:y,Oh}var B0;function nO(){return B0||(B0=1,kh.exports=tO()),kh.exports}var $0;function rO(){if($0)return Rh;$0=1;var t=Rl(),e=nO();function n(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var a=typeof Object.is=="function"?Object.is:n,o=e.useSyncExternalStore,l=t.useRef,u=t.useEffect,d=t.useMemo,h=t.useDebugValue;return Rh.useSyncExternalStoreWithSelector=function(p,y,g,v,_){var w=l(null);if(w.current===null){var E={hasValue:!1,value:null};w.current=E}else E=w.current;w=d(function(){function T(I){if(!C){if(C=!0,R=I,I=v(I),_!==void 0&&E.hasValue){var j=E.value;if(_(j,I))return B=j}return B=I}if(j=B,a(R,I))return j;var M=v(I);return _!==void 0&&_(j,M)?(R=I,j):(R=I,B=M)}var C=!1,R,B,Q=g===void 0?null:g;return[function(){return T(y())},Q===null?void 0:function(){return T(Q())}]},[y,g,v,_]);var x=o(p,w[0],w[1]);return u(function(){E.hasValue=!0,E.value=x},[x]),h(x),x},Rh}var q0;function sO(){return q0||(q0=1,Ah.exports=rO()),Ah.exports}var aO=sO();function iO(t,e){return t===e}function Jn(t,e=a=>a,n){const a=n?.compare??iO,o=ee.useCallback(u=>{const{unsubscribe:d}=t.subscribe(u);return d},[t]),l=ee.useCallback(()=>t.get(),[t]);return aO.useSyncExternalStoreWithSelector(o,l,l,e,a)}var H0={};function Uw(t,e){const n=ee.useRef();return a=>{const o=t?.select?t.select(a):a;return t?.structuralSharing??e.options.defaultStructuralSharing?n.current=Ns(n.current,o):o}}function xa(t){const e=Ht(),n=ee.useContext(t.from?Kk:Kp),a=t.from??n,o=e.stores.getMatchStore(a),l=Uw(t,e),u=Jn(o,d=>
13d?l(d):H0);if(u!==H0)return u;(t.shouldThrow??!0)&&cl()}function Pw(t){return xa({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function Iw(t){const{select:e,...n}=t;return xa({...n,select:a=>e?e(a.loaderDeps):a.loaderDeps})}function Bw(t){return xa({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:e=>{const n=t.strict===!1?e.params:e._strictParams;return t.select?t.select(n):n}})}function $w(t){return xa({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}function qw(t){const e=Ht();return ee.useCallback(n=>e.navigate({...n,from:n.from??t?.from}),[t?.from,e])}function Hw(t){return xa({...t,select:e=>t.select?t.select(e.context):e.context})}function oO(...t){const e=ee.useRef(t),n=e.current;return t.forEach((a,o)=>{Qn(n[o],a,!1,!0)||(n[o]=a)}),e.current}function eu(t,e){t.preloadRoute(e).catch(n=>{console.warn(n),console.warn(Rk)})}var lO={compare:(t,e)=>t[0]===e[0]&&t[1]===e[1]};function cO(t,e){const n=typeof t=="string"&&ll(t);if(n)return e.has(n)?t:null}function uO(t,e,n,a,o){const l=d0(t.pathname,a),u=d0(e.pathname,a);return(n?.exact?l!==u:!(l.startsWith(u)&&(l.length===u.length||l[u.length]==="/")))||(n?.includeSearch??!0)&&!Qn(t.search,e.search,!n?.exact,n?.explicitUndefined)?!1:n?.includeHash?o&&t.hash===e.hash:!0}function dO(t,e,n){const a=Ht(),o=ee.useRef(null),l=ee.useCallback(pe=>{if(o.current=pe,typeof e=="function")return e(pe);e&&(e.current=pe)},[e]),{activeOptions:u,to:d,preload:h,preloadDelay:p,hashScrollIntoView:y,replace:g,startTransition:v,resetScroll:_,viewTransition:w,ignoreBlocker:E,disabled:x,target:T,onClick:C,onBlur:R,onFocus:B,onMouseEnter:Q,onMouseLeave:I,onTouchStart:j}=t,M=Zp(!!u?.includeHash),[X,ce,Z]=oO(t.search,t.params,u),[F,te]=ee.useMemo(()=>[t,{...t}],[a,t.from,t._fromLocation,t.hash,t.to,X,ce,t.state,t.mask,t.unsafeRelative]),_e=ee.useMemo(()=>{const pe=cO(d,a.protocolAllowlist);if(pe!==void 0){const kt=[pe??void 0];return()=>kt}let be,Se;return kt=>{F._fromLocation||(te._fromLocation=kt);const Lt=a.buildLocation(te),ht=gO(Lt,a,x);return(!be||be[0]!==ht)&&(be=[ht,!(x||ht&&!ll(ht))&&void 0],Se=[ht,!0]),be[1]!==void 0&&uO(kt,Lt,Z,a.basepath,M)?Se:be}},[Z,x,M,F,te,a,d]),[ie,N]=Jn(a.stores.location,_e,lO),Y=N===void 0&&ie,ue=x||ie===void 0,je=ee.useRef(!1),J=t.reloadDocument||Y||ue?!1:h??a.options.defaultPreload,k=p??a.options.defaultPreloadDelay??0,H=ee.useCallback(pe=>{const be=pe?.isIntersecting;if(!(be??J==="intent")){be===!1&&Ch(o);return}if(!k){eu(a,F);return}nl.has(o)||nl.set(o,setTimeout(()=>{nl.delete(o),eu(a,F)},k))},[a,F,o,J,k]);ee.useEffect(()=>{if(!J)return;J==="render"&&!je.current&&(je.current=!0,eu(a,F));let pe=!0,be;return J==="viewport"&&o.current&&typeof IntersectionObserver=="function"&&(be=new IntersectionObserver(Se=>{pe&&H(Se.pop())},{rootMargin:"100px"}),be.observe(o.current)),()=>{pe=!1,be?.disconnect(),Ch(o)}},[a,F,J,H,o]);const V=pO(t,n);if(V.ref=e?l:o,Y)return V.href=Y,V;const W=pe=>{const be=T??pe.currentTarget.getAttribute("target");!ue&&!(pe.metaKey||pe.altKey||pe.ctrlKey||pe.shiftKey)&&!pe.defaultPrevented&&(!be||be==="_self")&&pe.button===0&&(pe.preventDefault(),a.navigate({...F,replace:g,resetScroll:_,hashScrollIntoView:y,startTransition:v,viewTransition:w,ignoreBlocker:E}))},se=()=>{J==="intent"&&eu(a,F)},le=()=>{J==="intent"&&Ch(o)};
13return V.onClick=wi(C,W),V.onBlur=wi(R,le),V.onFocus=wi(B,H),V.onMouseEnter=wi(Q,H),V.onMouseLeave=wi(I,le),V.onTouchStart=wi(j,se),mO(V,t,N,ie,ue,n)}var fO={},hO={className:"active"},Vw=new Set(["to","params","search","hash","state","mask","from","unsafeRelative","_fromLocation","reloadDocument","preload","preloadDelay","preloadIntentProximity","hashScrollIntoView","replace","startTransition","resetScroll","viewTransition","ignoreBlocker","activeProps","inactiveProps","activeOptions","_asChild"]);function pO(t,e){const n={};for(const a in t)Vw.has(a)||a==="type"&&e!==void 0||a==="disabled"&&e==="a"||(n[a]=t[a]);return n}function mO(t,e,n,a,o,l){const{activeProps:u,inactiveProps:d,className:h,style:p,target:y}=e,g=y_(n?u:d,{})??(n?hO:fO);Object.assign(t,g),t.href=a,l!=="a"&&(t.disabled=o),t.target=y;const v=g.style;(p||v)&&(t.style=p&&v?{...p,...v}:p||v);const _=g.className;return(h||_)&&(t.className=h?_?`${h} ${_}`:h:_),o&&(t.role="link",t["aria-disabled"]=!0),n&&(t["data-status"]="active",t["aria-current"]="page"),t}var nl=new WeakMap,Ch=t=>{clearTimeout(nl.get(t)),nl.delete(t)},wi=(t,e)=>t?n=>n.defaultPrevented||(t(n),n.defaultPrevented||e(n)):e;function gO(t,e,n){if(n)return;const a=t.maskedLocation??t,o=a.external?a.publicHref:e.history.createHref(a.publicHref)||"/";if(!((a.external||o!==a.publicHref)&&__(o,e.protocolAllowlist)))return o}var mn=ee.memo(ee.forwardRef((t,e)=>{const n=t._asChild||"a",a=dO(t,e,n),o=typeof t.children=="function"?t.children({isActive:a["data-status"]==="active"}):t.children;return ee.createElement(n,a,o)}),yO);function yO(t,e){let n=0;for(const a in e)if(n++,t[a]!==e[a]&&(!Vw.has(a)||!Qn(t[a],e[a],!1,!0)))return!1;for(const a in t)n--;return n===0}var vO=class extends Rw{constructor(e){super(e),this.useMatch=n=>xa({...n,from:this.id}),this.useRouteContext=n=>Hw({...n,from:this.id}),this.useSearch=n=>$w({...n,from:this.id}),this.useParams=n=>Bw({...n,from:this.id}),this.useLoaderDeps=n=>Iw({...n,from:this.id}),this.useLoaderData=n=>Pw({...n,from:this.id}),this.useNavigate=()=>qw({from:this.fullPath}),this.Link=re.forwardRef((n,a)=>D.jsx(mn,{ref:a,from:this.fullPath,...n}))}};function bO(t){return new vO(t)}function _O(){return t=>SO(t)}var wO=class extends Lk{constructor(t){super(t),this.useMatch=e=>xa({...e,from:this.id}),this.useRouteContext=e=>Hw({...e,from:this.id}),this.useSearch=e=>$w({...e,from:this.id}),this.useParams=e=>Bw({...e,from:this.id}),this.useLoaderDeps=e=>Iw({...e,from:this.id}),this.useLoaderData=e=>Pw({...e,from:this.id}),this.useNavigate=()=>qw({from:this.fullPath}),this.Link=re.forwardRef((e,n)=>D.jsx(mn,{ref:n,from:this.fullPath,...e}))}};function SO(t){return new wO(t)}function ke(t){return e=>{const n=bO(e);return n.isRoot=!1,n}}function xe(t,e){let n,a,o;const l=()=>(n||(o=void 0,n=t().then(d=>{n=void 0,u.preload=void 0,a=d[e??"default"]}).catch(d=>{n=void 0,o=d})),n),u=function(h){if(o){if(CT(o)&&typeof sessionStorage<"u"){const p=`tanstack_router_reload:${o.message}`;if(!sessionStorage.getItem(p))throw sessionStorage.setItem(p,"1"),window.location.reload(),new Promise(()=>{})}throw o}if(!a)if(xu)xu(l());else throw l();return ee.createElement(a,h)};return u.preload=l,u}function EO(t){const e=Ht(),n=`not-found-${Jn(e.stores.location,a=>a.pathname)}-${Jn(e.stores.status)}`;return D.jsx(Fp,{getResetKey:()=>n,onCatch:(a,o)=>{if(wa(a))t.onCatch?.(a,o);else throw a},errorComponent:({error:a})=>{if(wa(a))return t.fallback?.(a);throw a},children:t.children})}function TO(){return D.jsx("p",{children:"Not Found"})}function Gw(t,e,n){return e.options.notFoundComponent?D.jsx(e.options.notFoundComponent,{...n}):t.options.defaultNotFoundComponent?D.jsx(t.options.defaultNotFoundComponent,{...n}):D.jsx(TO,{})}function Ku(t,e){const n=e?.options.pendingComponent??t.options.defaultPendingComponent;return n?D.jsx(n,{}):null}var xO=(t,e)=>t[0]===e[0]&&t[1]===e[1],Fw=(t,e,n)=>!e.isRoot||e.options.shellComponent||e.options.wrapInSuspense||n===!1||n==="data-only"||!t.ssr,Zw=ee.memo(function({routeId:e}){const n=Ht();return D.jsx(AO,{router:n,match:Jn(n.stores.getMatchStore(e))})});function AO({router:t,match:e}){const n=t.routesById[e.routeId],a=Ku(t,n),o=n.options.errorComponent??t.options.defaultErrorComponent,l=n.options.onCatch??t.options.defaultOnCatch,u=n.isRoot?n.options.notFoundComponent??t.options.notFoundRoute?.options.component:n.options.notFoundComponent,d=e.ssr===!1||e.ssr==="data-only",h=Fw(t,n,e.ssr)&&(n.options.wrapInSuspense??a??(n.options.errorComponent?.preload||d));let p=D.jsx(RO,{match:e});d&&(p=D.jsx(Fk,{fallback:a,children:p})),u&&(p=D.jsx(EO,{fallback:v=>{if(v.routeId??=e.routeId,v.routeId!==e.routeId)throw v;return ee.createElement(u,v)}
13,children:p})),o&&(p=D.jsx(Fp,{getResetKey:()=>e,errorComponent:o,onCatch:(v,_)=>{if(wa(v))throw v.routeId??=e.routeId,v;l?.(v,_)},children:p})),h&&(p=D.jsx(ee.Suspense,{fallback:a,children:p}));const y=null,g=n.isRoot?n.options.shellComponent:void 0;return D.jsx(Kp.Provider,{value:e.routeId,children:g?D.jsxs(g,{children:[p,y]}):D.jsxs(D.Fragment,{children:[p,y]})})}var RO=ee.memo(function({match:e}){const n=Ht(),a=e.routeId,o=n.routesById[a],l=ee.useMemo(()=>{const d=(o.options.remountDeps??n.options.defaultRemountDeps)?.({routeId:a,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return d?JSON.stringify(d):void 0},[a,e.loaderDeps,e._strictParams,e._strictSearch,o.options.remountDeps,n.options.defaultRemountDeps]),u=ee.useMemo(()=>{const d=o.options.component??n.options.defaultComponent;return d?D.jsx(d,{},l):D.jsx(Kw,{})},[l,o.options.component,n.options.defaultComponent]);if(e.status==="pending"){if(n.ssr&&!Fw(n,o,e.ssr))return u;if(n._tx)throw n._tx[5];return Ku(n,o)}if(e.status==="notFound")return Gw(n,o,e.error);if(e.status==="error")throw e.error;return u}),Kw=ee.memo(function(){const e=Ht(),n=ee.useContext(Kp);let a,o,l;{const d=e.stores.getMatchStore(n);[a,o]=Jn(d,h=>[!!h._notFound,h.error],{compare:xO}),l=Jn(e.stores.ids,h=>h[h.indexOf(n)+1])}if(a)return Gw(e,e.routesById[n],o);if(!l)return null;const u=D.jsx(Zw,{routeId:l});return n===Ui?D.jsx(ee.Suspense,{fallback:Ku(e),children:u}):u});function Yw(t,e){const n=t[1];t.length=0,n?.(e)}function kO({t}){const e=Ht(),n=e._rendered??=[];return e.startTransition=(a,o)=>new Promise(l=>{Yw(n,!1),n.push(o,l),t(e),ee.startTransition(a)}),Dw(()=>{const a=e.history.subscribe(e.load);e.updateLatestLocation();const o=e.latestLocation,l=e.buildLocation({to:o.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(ur(o.publicHref)!==ur(l.publicHref))return e.commitLocation({...l,replace:!0,ignoreBlocker:!0}),a;const u=e.stores.resolvedLocation.get();return u?.href===o.href&&u.state.__TSR_key===o.state.__TSR_key?n.push(e.stores.matches.get(),d=>{d&&e.emit({type:"onRendered",...qu(u,u)})}):e._tx||e.load({sync:!0}).catch(console.error),a},[e,e.history]),null}function OO(){const t=Ht(),e=t.routesById[Ui],n=Ku(t,e),a=D.jsxs(D.Fragment,{children:[D.jsx(kO,{t:ee.useState()[1]}),t.ssr?D.jsx(V0,{}):D.jsx(ee.Suspense,{fallback:n,children:D.jsx(V0,{})})]});return t.options.InnerWrap?D.jsx(t.options.InnerWrap,{children:a}):a}function V0(){const t=Ht(),e=t._rendered,n=Jn(t.stores.matches,u=>e[0]??u),a=n[0],o=a?.routeId;Dw(()=>{e[0]===n&&Yw(e,!0)},[e,n]);const l=o?D.jsx(Zw,{routeId:o}):null;return t.options.disableGlobalCatchBoundary?l:D.jsx(Fp,{getResetKey:()=>a,onCatch:void 0,children:l})}var CO=t=>({createMutableStore:P0,createReadonlyStore:P0,batch:Wk}),NO=t=>new jO(t),jO=class extends gx{constructor(t){super(t,CO)}};function DO({router:t,children:e,...n}
13){v_(n)&&t.update({...t.options,...n,context:{...t.options.context,...n.context}});const a=D.jsx(Lw.Provider,{value:t,children:e});return t.options.Wrap?D.jsx(t.options.Wrap,{children:a}):a}function LO({router:t,...e}){return D.jsx(DO,{router:t,...e,children:D.jsx(OO,{})})}function Qw(t){const e=Ht({warn:t?.router===void 0}),n=t?.router||e;return Jn(n.stores.__store,Uw(t,n))}function G0(t,e){if(e)for(const[n,a]of Object.entries(e))n!=="suppressHydrationWarning"&&a!==void 0&&a!==!1&&t.setAttribute(n,typeof a=="boolean"?"":String(a))}function Jw(t){const{attrs:e,children:n,nonce:a,preventScriptHoist:o}=t,l=ee.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(t.tag){case"title":return D.jsx("title",{...e,suppressHydrationWarning:!0,children:n});case"meta":return D.jsx("meta",{...e,suppressHydrationWarning:!0});case"link":return D.jsx("link",{...e,precedence:e?.precedence??(e?.rel==="stylesheet"?"default":void 0),nonce:a,suppressHydrationWarning:!0});case"style":return t.inlineCss,D.jsx("style",{...e,dangerouslySetInnerHTML:l,nonce:a});case"script":return D.jsx(MO,{attrs:e,preventScriptHoist:o,children:n});default:return null}}function MO({attrs:t,children:e,preventScriptHoist:n}){Ht();const a=Zp(),o=ee.useMemo(()=>e===void 0?void 0:{__html:e},[e]),l=typeof t?.type=="string"&&t.type!==""&&t.type!=="text/javascript"&&t.type!=="module";if(ee.useEffect(()=>{if(!l){if(t?.src){const u=document.createElement("a");u.href=t.src;const d=u.href;for(const p of document.scripts)if(p.src===d)return;const h=document.createElement("script");return G0(h,t),document.head.appendChild(h),()=>h.remove()}if(typeof e=="string"){const u=typeof t?.type=="string"?t.type:"text/javascript",d=typeof t?.nonce=="string"?t.nonce:void 0;for(const p of document.scripts){if(p.hasAttribute("src"))continue;const y=p.getAttribute("type")??"text/javascript",g=p.getAttribute("nonce")??void 0;if(p.textContent===e&&y===u&&g===d)return}const h=document.createElement("script");return h.textContent=e,G0(h,t),document.head.appendChild(h),()=>h.remove()}}},[t,e,l]),l&&typeof e=="string")return D.jsx("script",{...t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:o});if(!a){if(t?.src)return D.jsx("script",{...t,suppressHydrationWarning:!0});if(typeof e=="string")return D.jsx("script",{...t,dangerouslySetInnerHTML:o,suppressHydrationWarning:!0})}return null}function zO(t,e,n,a){n=D_(n);const o=n.map(E=>E.meta).filter(E=>E!==void 0),l=[],u={};let d;for(let E=o.length-1;E>=0;E--){const x=o[E];for(let T=x.length-1;T>=0;T--){const C=x[T];if(C)if(C.title)d||(d={tag:"title",children:C.title});else if("script:ld+json"in C)try{const R=JSON.stringify(C["script:ld+json"]);l.push({tag:"script",attrs:{type:"application/ld+json"},children:zT(R)})}catch{}else{const R=C.name??C.property;if(R){if(u[R])continue;u[R]=!0}l.push({tag:"meta",attrs:{...C,nonce:e}})}}}d&&l.push(d),e&&l.push({tag:"meta",attrs:{property:"csp-nonce",content:e}}),l.reverse();const h=n.flatMap(E=>E.links??[]).filter(E=>E!==void 0).map(E=>({tag:"link",attrs:{...E,nonce:e}})),p=t.ssr?.manifest,y=[];p&&(n.forEach(E=>{p.routes[E.routeId]?.css?.forEach(x=>{const T=Nk(x);y.push({tag:"link",attrs:{rel:"stylesheet",...T,crossOrigin:Aw(a,"stylesheet")??T.crossOrigin,suppressHydrationWarning:!0,nonce:e}})})}),p.inlineStyle&&y.push({tag:"style",attrs:{...p.inlineStyle.attrs,nonce:e},children:p.inlineStyle.children,inlineCss:!0}));const g=[];p&&n.forEach(E=>{p.routes[E.routeId]?.preloads?.forEach(x=>{g.push({tag:"link",attrs:{...Ok(p,x,a),nonce:e}})})});const v=n.flatMap(E=>E.styles??[]).filter(E=>E!==void 0).map(({children:E,...x})=>({tag:"style",attrs:{...x,nonce:e},children:E})),_=n.flatMap(E=>E.headScripts??[]).filter(E=>E!==void 0).map(({children:E,...x})=>({tag:"script",attrs:{...x,nonce:e},children:E})),w=[];return Xc(w,l),w.push(...g),Xc(w,h),w.push(...y),Xc(w,v),Xc(w,_),w}var UO=t=>{const e=Ht(),n=e.options.ssr?.nonce,a=ee.useCallback(o=>zO(e,n,o,t),[t,n,e]);return Jn(e.stores.matches,a,{compare:Qn})};function PO(t){const e=UO(t.assetCrossOrigin),n=Ht().options.ssr?.nonce;return D.jsx(D.Fragment,{children:e.map(a=>ee.createElement(Jw,{...a,key:`tsr-meta-${JSON.stringify(a)}`,nonce:n}))})}var IO={suppressHydrationWarning:!0},BO=()=>{const t=Ht(),e=t.options.ssr?.nonce,n=o=>{const l=jk(o,t.ssr?.manifest,e,IO);for(const u of l[1])if(typeof u.attrs?.src=="string"){const d=u;d.preventScriptHoist=!0}return l},a=o=>Dk(n(o));return $O(Jn(t.stores.matches,a,{compare:Qn}))};function $O(t){return D.jsx(D.Fragment,{children:t.map((e,n)=>ee.createElement(Jw,{...e,key:`tsr-scripts-${e.tag}-${n}`}))})}function qO(t){const e=Ht();return ee.useCallback(async(...n)=>{try{const a=await t(...n);if(ol(a))throw a;return a}catch(a){if(ol(a))return a.options._fromLocation=e.stores.location.get(),e.navigate(e.resolveRedirect(a).options);throw a}},[e,t])}function F0(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"}function Jh(t,e){const n=Object.create(null);if(t)for(const a of Object.keys(t))F0(a)&&(n[a]=t[a]);if(e&&typeof e=="object")for(const a of Object.keys(e))F0(a)&&(n[a]=e[a]);return n}function Xw(t){return Object.create(null)}var Ww=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")}
13,Ke=(t,e)=>{const n=e||t||{};typeof n.method>"u"&&(n.method="GET");const a=u=>Ke(void 0,{...n,validator:u,inputValidator:u});return Object.assign(u=>Ke(void 0,{...n,...u}),{options:n,middleware:u=>{const d=[...n.middleware||[]];u.forEach(p=>{l0 in p?p.options.middleware&&d.push(...p.options.middleware):d.push(p)});const h=Ke(void 0,{...n,middleware:d});return h[l0]=!0,h},validator:a,inputValidator:a,handler:(...u)=>{const[d,h]=u,p={...n,extractedFn:d,serverFn:h},y=[...p.middleware||[],GO(p)];return d.method=n.method,Object.assign(async g=>{const v=await Z0(y,"client",{...d,...p,data:g?.data,headers:g?.headers,signal:g?.signal,fetch:g?.fetch,context:Xw()}),_=g_(v.error);if(_)throw _;if(v.error)throw v.error;return v.result},{...d,method:n.method,__executeServer:async g=>{const v=Ww(),_=v.contextAfterGlobalMiddlewares;return await Z0(y,"server",{...d,data:g.data,method:g.method??n.method,serverFnMeta:d.serverFnMeta,context:Jh(g.context,_),request:v.request}).then(w=>({result:w.result,error:w.error,context:w.sendContext}))}})}})};async function Z0(t,e,n){let a=HO([...kp()?.functionMiddleware||[],...t]);if(e==="server"){const l=Ww();l?.executedRequestMiddlewares&&(a=a.filter(u=>!l.executedRequestMiddlewares.has(u)))}const o=async l=>{const u=a.shift();if(!u)return l;try{let d="validator"in u.options?u.options.validator:void 0;!d&&"inputValidator"in u.options&&(d=u.options.inputValidator),d&&e==="server"&&(l.data=await VO(d,l.data));let h;if(e==="client"?"client"in u.options&&(h=u.options.client):"server"in u.options&&(h=u.options.server),h){const y=await h({...l,next:async(g={})=>{const v=await o({...l,...g,context:Jh(l.context,g.context),sendContext:Jh(l.sendContext,g.sendContext),headers:ik(l.headers,g.headers),_callSiteFetch:l._callSiteFetch,fetch:l._callSiteFetch??g.fetch??l.fetch,result:g.result!==void 0?g.result:g instanceof Response?g:l.result,error:g.error??l.error});if(v.error)throw v.error;return v}});if(ol(y))return{...l,error:y};if(y instanceof Response)return{...l,result:y};if(!y)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return y}return o(l)}catch(d){return{...l,error:d}}};return o({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||Xw(),_callSiteFetch:n.fetch})}function HO(t,e=100){const n=new Set,a=[],o=(l,u)=>{if(u>e)throw new Error(`Middleware nesting depth exceeded maximum of ${e}. Check for circular references.`);l.forEach(d=>{d.options.middleware&&o(d.options.middleware,u+1),n.has(d)||(n.add(d),a.push(d))})};return o(t,0),a}async function VO(t,e){if(t==null)return{};if("~standard"in t){const n=await t["~standard"].validate(e);if(n.issues)throw new Error(JSON.stringify(n.issues,void 0,2));return n.value}if("parse"in t)return t.parse(e);if(typeof t=="function")return t(e);throw new Error("Invalid validator type!")}function GO(t){return{"~types":void 0,options:{inputValidator:t.validator??t.inputValidator,client:async({next:e,sendContext:n,fetch:a,...o})=>{const l={...o,context:n,fetch:a};return e(await t.extractedFn?.(l))},server:async({next:e,...n})=>{const a=await t.serverFn?.(n);return e({...n,result:a})}}}}var Os=(t,e)=>{const n={type:"request",...e||t},a=o=>Os({},Object.assign(n,{validator:o,inputValidator:o}));return{options:n,middleware:o=>Os({},Object.assign(n,{middleware:o})),validator:a,inputValidator:a,client:o=>Os({},Object.assign(n,{client:o})),server:o=>Os({},Object.assign(n,{server:o}))}};function eS(t,e){for(let n=0,a=e.length;n<a;n++){const o=e[n];t.has(o)||(t.add(o),o.extends&&eS(t,o.extends))}}var FO=t=>({getOptions:async()=>{const e=await t();if(e.serializationAdapters){const n=new Set;eS(n,e.serializationAdapters),e.serializationAdapters=Array.from(n)}return e},createMiddleware:Os}),K0=function(){return K0=Object.assign||function(e){for(var n,a=1,o=arguments.length;a<o;a++){n=arguments[a];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},K0.apply(this,arguments)};function Yu(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(t);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]]);return n}function ZO(t,e,n,a){function o(l){return l instanceof n?l:new n(function(u){u(l)})}
13return new(n||(n=Promise))(function(l,u){function d(y){try{p(a.next(y))}catch(g){u(g)}}function h(y){try{p(a.throw(y))}catch(g){u(g)}}function p(y){y.done?l(y.value):o(y.value).then(d,h)}p((a=a.apply(t,e||[])).next())})}function pz(t,e,n){if(n||arguments.length===2)for(var a=0,o=e.length,l;a<o;a++)(l||!(a in e))&&(l||(l=Array.prototype.slice.call(e,0,a)),l[a]=e[a]);return t.concat(l||Array.prototype.slice.call(e))}const KO=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class Yp extends Error{constructor(e,n="FunctionsError",a){super(e),this.name=n,this.context=a}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class YO extends Yp{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Y0 extends Yp{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Q0 extends Yp{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Xh;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Xh||(Xh={}));class QO{constructor(e,{headers:n={},customFetch:a,region:o=Xh.Any}={}){this.url=e,this.headers=n,this.region=o,this.fetch=KO(a)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return ZO(this,arguments,void 0,function*(n,a={}){var o;let l,u;try{const{headers:d,method:h,body:p,signal:y,timeout:g}=a;let v={},{region:_}=a;_||(_=this.region);const w=new URL(`${this.url}/${n}`);_&&_!=="any"&&(v["x-region"]=_,w.searchParams.set("forceFunctionRegion",_));let E;p&&(d&&!Object.prototype.hasOwnProperty.call(d,"Content-Type")||!d)?typeof Blob<"u"&&p instanceof Blob||p instanceof ArrayBuffer?(v["Content-Type"]="application/octet-stream",E=p
13):typeof p=="string"?(v["Content-Type"]="text/plain",E=p):typeof FormData<"u"&&p instanceof FormData?E=p:(v["Content-Type"]="application/json",E=JSON.stringify(p)):p&&typeof p!="string"&&!(typeof Blob<"u"&&p instanceof Blob)&&!(p instanceof ArrayBuffer)&&!(typeof FormData<"u"&&p instanceof FormData)?E=JSON.stringify(p):E=p;let x=y;g&&(u=new AbortController,l=setTimeout(()=>u.abort(),g),y?(x=u.signal,y.addEventListener("abort",()=>u.abort())):x=u.signal);const T=yield this.fetch(w.toString(),{method:h||"POST",headers:Object.assign(Object.assign(Object.assign({},v),this.headers),d),body:E,signal:x}).catch(Q=>{throw new YO(Q)}),C=T.headers.get("x-relay-error");if(C&&C==="true")throw new Y0(T);if(!T.ok)throw new Q0(T);let R=((o=T.headers.get("Content-Type"))!==null&&o!==void 0?o:"text/plain").split(";")[0].trim(),B;return R==="application/json"?B=yield T.json():R==="application/octet-stream"||R==="application/pdf"?B=yield T.blob():R==="text/event-stream"?B=T:R==="multipart/form-data"?B=yield T.formData():B=yield T.text(),{data:B,error:null,response:T}}catch(d){return{data:null,error:d,response:d instanceof Q0||d instanceof Y0?d.context:void 0}}finally{l&&clearTimeout(l)}})}}const tS=3,J0=t=>Math.min(1e3*2**t,3e4),JO=[520,503],nS=["GET","HEAD","OPTIONS"];var XO=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
13de=t.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function X0(t,e){return new Promise(n=>{if(e?.aborted){n();return}const a=setTimeout(()=>{e?.removeEventListener("abort",o),n()},t);function o(){clearTimeout(a),n()}e?.addEventListener("abort",o)})}function WO(t,e,n,a){return!(!a||n>=tS||!nS.includes(t)||!JO.includes(e))}var eC=class{constructor(t){var e,n,a,o,l;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(a=t.shouldStripNulls)!==null&&a!==void 0?a:!1,this.urlLengthLimit=(o=t.urlLengthLimit)!==null&&o!==void 0?o:8e3,this.retryEnabled=(l=t.retry)!==null&&l!==void 0?l:!0,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}retry(t){return this.retryEnabled=t,this}then(t,e){var n=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const u=this.headers.get("Accept");u==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!u||u==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const a=this.fetch;let l=(async()=>{let u=0;for(;;){const p=new Headers(n.headers);u>0&&p.set("X-Retry-Count",String(u));let y;try{y=await a(n.url.toString(),{method:n.method,headers:p,body:JSON.stringify(n.body,(g,v)=>typeof v=="bigint"?v.toString():v),signal:n.signal})}catch(g){if(g?.name==="AbortError"||g?.code==="ABORT_ERR"||!nS.includes(n.method))throw g;if(n.retryEnabled&&u<tS){const v=J0(u);u++,await X0(v,n.signal);continue}throw g}if(WO(n.method,y.status,u,n.retryEnabled)){var d,h;const g=(d=(h=y.headers)===null||h===void 0?void 0:h.get("Retry-After"))!==null&&d!==void 0?d:null,v=g!==null?Math.max(0,parseInt(g,10)||0)*1e3:J0(u);await y.text(),u++,await X0(v,n.signal);continue}return await n.processResponse(y)}})();return this.shouldThrowOnError||(l=l.catch(u=>{var d;let h="",p="",y="";const g=u?.cause;if(g){var v,_,w,E;const C=(v=g?.message)!==null&&v!==void 0?v:"",R=(_=g?.code)!==null&&_!==void 0?_:"";h=`${(w=u?.name)!==null&&w!==void 0?w:"FetchError"}: ${u?.message}`,h+=`
14
15Caused by: ${(E=g?.name)!==null&&E!==void 0?E:"Error"}: ${C}`,R&&(h+=` (${R})`),g?.stack&&(h+=`
16${g.stack}`)}else{var x;h=(x=u?.stack)!==null&&x!==void 0?x:""}const T=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(y="",p="Request was aborted (timeout or manual cancellation)",T>this.urlLengthLimit&&(p+=`. Note: Your request URL is ${T} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(g?.name==="HeadersOverflowError"||g?.code==="UND_ERR_HEADERS_OVERFLOW")&&(y="",p="HTTP headers exceeded server limits (typically 16KB)",T>this.urlLengthLimit&&(p+=`. Your request URL is ${T} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(d=u?.name)!==null&&d!==void 0?d:"FetchError"}: ${u?.message}`,details:h,hint:p,code:y},data:null,count:null,status:0,statusText:""}})),l.then(t,e)}async processResponse(t){var e=this;let n=null,a=null,o=null,l=t.status,u=t.statusText;if(t.ok){var d,h;if(e.method!=="HEAD"){var p;const v=await t.text();v===""||(e.headers.get("Accept")==="text/csv"||e.headers.get("Accept")&&(!((p=e.headers.get("Accept"))===null||p===void 0)&&p.includes("application/vnd.pgrst.plan+text"))?a=v:a=JSON.parse(v))}const y=(d=e.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),g=(h=t.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");y&&g&&g.length>
161&&(o=parseInt(g[1])),e.isMaybeSingle&&Array.isArray(a)&&(a.length>1?(n={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,o=null,l=406,u="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{const y=await t.text();try{n=JSON.parse(y),Array.isArray(n)&&t.status===404&&(a=[],n=null,l=200,u="OK")}catch{t.status===404&&y===""?(l=204,u="No Content"):n={message:y}}if(n&&e.shouldThrowOnError)throw new XO(n)}return{success:n===null,error:n,data:a,count:o,status:l,statusText:u}}returns(){return this}overrideTypes(){return this}},tC=class extends eC{select(t){let e=!1;const n=(t??"*").split("").map(a=>/\s/.test(a)&&!e?"":(a==='"'&&(e=!e),a)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:n,foreignTable:a,referencedTable:o=a}={}){const l=o?`${o}.order`:"order",u=this.url.searchParams.get(l);return this.url.searchParams.set(l,`${u?`${u},`:""}${t}.${e?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:n=e}={}){const a=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(a,`${t}`),this}range(t,e,{foreignTable:n,referencedTable:a=n}={}){const o=typeof a>"u"?"offset":`${a}.offset`,l=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(o,`${t}`),this.url.searchParams.set(l,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:t=!1,verbose:e=!1,settings:n=!1,buffers:a=!1,wal:o=!1,format:l="text"}={}){var u;const d=[t?"analyze":null,e?"verbose":null,n?"settings":null,a?"buffers":null,o?"wal":null].filter(Boolean).join("|"),h=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${l}; for="${h}"; options=${d};`),l==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const W0=new RegExp("[,()]");var Ri=class extends tC{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const n=Array.from(new Set(e)).map(a=>typeof a=="string"&&W0.test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}notIn(t,e){const n=Array.from(new Set(e)).map(a=>typeof a=="string"&&W0.test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(t,`not.in.(${n})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:n,type:a}={}){let o="";a==="plain"?o="pl":a==="phrase"?o="ph":a==="websearch"&&(o="w");const l=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${o}fts${l}.${e}`),this}match(t){return Object.entries(t).filter(([e,n])=>
16n!==void 0).forEach(([e,n])=>{this.url.searchParams.append(e,`eq.${n}`)}),this}not(t,e,n){return this.url.searchParams.append(t,`not.${e}.${n}`),this}or(t,{foreignTable:e,referencedTable:n=e}={}){const a=n?`${n}.or`:"or";return this.url.searchParams.append(a,`(${t})`),this}filter(t,e,n){return this.url.searchParams.append(t,`${e}.${n}`),this}},nC=class{constructor(t,{headers:e={},schema:n,fetch:a,urlLengthLimit:o=8e3,retry:l}){this.url=t,this.headers=new Headers(e),this.schema=n,this.fetch=a,this.urlLengthLimit=o,this.retry=l}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:n=!1,count:a}=e??{},o=n?"HEAD":"GET";let l=!1;const u=(t??"*").split("").map(p=>/\s/.test(p)&&!l?"":(p==='"'&&(l=!l),p)).join(""),{url:d,headers:h}=this.cloneRequestState();return d.searchParams.set("select",u),a&&h.append("Prefer",`count=${a}`),new Ri({method:o,url:d,headers:h,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(t,{count:e,defaultToNull:n=!0}={}){var a;const o="POST",{url:l,headers:u}=this.cloneRequestState();if(e&&u.append("Prefer",`count=${e}`),n||u.append("Prefer","missing=default"),Array.isArray(t)){const d=t.reduce((h,p)=>h.concat(Object.keys(p)),[]);if(d.length>0){const h=[...new Set(d)].map(p=>`"${p}"`);l.searchParams.set("columns",h.join(","))}}return new Ri({method:o,url:l,headers:u,schema:this.schema,body:t,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(t,{onConflict:e,ignoreDuplicates:n=!1,count:a,defaultToNull:o=!0}={}){var l;const u="POST",{url:d,headers:h}=this.cloneRequestState();if(h.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),e!==void 0&&d.searchParams.set("on_conflict",e),a&&h.append("Prefer",`count=${a}`),o||h.append("Prefer","missing=default"),Array.isArray(t)){const p=t.reduce((y,g)=>y.concat(Object.keys(g)),[]);if(p.length>0){const y=[...new Set(p)].map(g=>`"${g}"`);d.searchParams.set("columns",y.join(","))}}return new Ri({method:u,url:d,headers:h,schema:this.schema,body:t,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(t,{count:e}={}){var n;const a="PATCH",{url:o,headers:l}=this.cloneRequestState();return e&&l.append("Prefer",`count=${e}`),new Ri({method:a,url:o,headers:l,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:t}={}){var e;const n="DELETE",{url:a,headers:o}=this.cloneRequestState();return t&&o.append("Prefer",`count=${t}`),new Ri({method:n,url:a,headers:o,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function ml(t){"@babel/helpers - typeof";return ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ml(t)}function rC(t,e){if(ml(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(ml(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sC(t){var e=rC(t,"string");return ml(e)=="symbol"?e:e+""}function aC(t,e,n){return(e=sC(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function tu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eb(Object(n),!0).forEach(function(a){aC(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eb(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var iC=class rS{constructor(e,{headers:n={},schema:a,fetch:o,timeout:l,urlLengthLimit:u=8e3,retry:d}={}){this.url=e,this.headers=new Headers(n),this.schemaName=a,this.urlLengthLimit=u;const h=o??globalThis.fetch;l!==void 0&&l>0?this.fetch=(p,y)=>{const g=new AbortController,v=setTimeout(()=>g.abort(),l),_=y?.signal;if(_){if(_.aborted)return clearTimeout(v),h(p,y);const w=()=>{clearTimeout(v),g.abort()};return _.addEventListener("abort",w,{once:!0}),h(p,tu(tu({},y),{},{signal:g.signal})).finally(()=>{clearTimeout(v),_.removeEventListener("abort",w)})}return h(p,tu(tu({},y),{},{signal:g.signal})).finally(()=>clearTimeout(v))}:this.fetch=h,this.retry=d}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new nC(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(e){return new rS(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,n={}
16,{head:a=!1,get:o=!1,count:l}={}){var u;let d;const h=new URL(`${this.url}/rpc/${e}`);let p;const y=_=>_!==null&&typeof _=="object"&&(!Array.isArray(_)||_.some(y)),g=a&&Object.values(n).some(y);g?(d="POST",p=n):a||o?(d=a?"HEAD":"GET",Object.entries(n).filter(([_,w])=>w!==void 0).map(([_,w])=>[_,Array.isArray(w)?`{${w.join(",")}}`:`${w}`]).forEach(([_,w])=>{h.searchParams.append(_,w)})):(d="POST",p=n);const v=new Headers(this.headers);return g?v.set("Prefer",l?`count=${l},return=minimal`:"return=minimal"):l&&v.set("Prefer",`count=${l}`),new Ri({method:d,url:h,headers:v,schema:this.schemaName,body:p,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class oC{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const a=typeof global<"u"?global:void 0;if(a&&typeof a.WebSocket<"u")return{type:"native",wsConstructor:a.WebSocket};if(typeof globalThis<"u"&&typeof n.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&n.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const o=globalThis.process;if(o){const l=o.versions;if(l&&l.node){const u=l.node,d=parseInt(u.replace(/^v/,"").split(".")[0]);return d>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${d} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${d} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
17import ws from "ws"
18new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.wsConstructor)return e.wsConstructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=`
19
20Suggested solution: ${e.workaround}`),new Error(n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const lC="2.105.4",cC=`realtime-js/${lC}`,uC="1.0.0",sS="2.0.0",dC=sS,fC=1e4,hC=100,As={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},aS={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},Wh={connecting:"connecting",closing:"closing",closed:"closed"};class pC{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,n){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(e));let a=[e.join_ref,e.ref,e.topic,e.event,e.payload];return n(JSON.stringify(a))}_binaryEncodeUserBroadcastPush(e){var n;return this._isArrayBuffer((n=e.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var n,a;const o=(a=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&a!==void 0?a:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,o)}_encodeJsonUserBroadcastPush(e){var n,a;const o=(a=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&a!==void 0?a:{},u=new TextEncoder().encode(JSON.stringify(o)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(e,n,a){var o,l;const u=e.topic,d=(o=e.ref)!==null&&o!==void 0?o:"",h=(l=e.join_ref)!==null&&l!==void 0?l:"",p=e.payload.event,y=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},g=Object.keys(y).length===0?"":JSON.stringify(y);if(h.length>255)throw new Error(`joinRef length ${h.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`ref length ${d.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`topic length ${u.length} exceeds maximum of 255`);if(p.length>255)throw new Error(`userEvent length ${p.length} exceeds maximum of 255`);if(g.length>255)throw new Error(`metadata length ${g.length} exceeds maximum of 255`);const v=this.USER_BROADCAST_PUSH_META_LENGTH+h.length+d.length+u.length+p.length+g.length,_=new ArrayBuffer(this.HEADER_LENGTH+v);let w=new DataView(_),E=0;w.setUint8(E++,this.KINDS.userBroadcastPush),w.setUint8(E++,h.length),w.setUint8(E++,d.length),w.setUint8(E++,u.length),w.setUint8(E++,p.length),w.setUint8(E++,g.length),w.setUint8(E++,n),Array.from(h,T=>w.setUint8(E++,T.charCodeAt(0))),Array.from(d,T=>w.setUint8(E++,T.charCodeAt(0))),Array.from(u,T=>w.setUint8(E++,T.charCodeAt(0))),Array.from(p,T=>w.setUint8(E++,T.charCodeAt(0))),Array.from(g,T=>w.setUint8(E++,T.charCodeAt(0)));var x=new Uint8Array(_.byteLength+a.byteLength);return x.set(new Uint8Array(_),0),x.set(new Uint8Array(a),_.byteLength),x.buffer}decode(e,n){if(this._isArrayBuffer(e)){let a=this._binaryDecode(e);return n(a)}if(typeof e=="string"){const a=JSON.parse(e),[o,l,u,d,h]=a;
20return n({join_ref:o,ref:l,topic:u,event:d,payload:h})}return n({})}_binaryDecode(e){const n=new DataView(e),a=n.getUint8(0),o=new TextDecoder;if(a===this.KINDS.userBroadcast)return this._decodeUserBroadcast(e,n,o)}_decodeUserBroadcast(e,n,a){const o=n.getUint8(1),l=n.getUint8(2),u=n.getUint8(3),d=n.getUint8(4);let h=this.HEADER_LENGTH+4;const p=a.decode(e.slice(h,h+o));h=h+o;const y=a.decode(e.slice(h,h+l));h=h+l;const g=a.decode(e.slice(h,h+u));h=h+u;const v=e.slice(h,e.byteLength),_=d===this.JSON_ENCODING?JSON.parse(a.decode(v)):v,w={type:this.BROADCAST_EVENT,event:y,payload:_};return u>0&&(w.meta=JSON.parse(g)),{join_ref:null,ref:null,topic:p,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(e){var n;return e instanceof ArrayBuffer||((n=e?.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(e,n){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([a])=>n.includes(a)))}}var rt;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(rt||(rt={}));const tb=(t,e,n={})=>{var a;const o=(a=n.skipTypes)!==null&&a!==void 0?a:[];return e?Object.keys(e).reduce((l,u)=>(l[u]=mC(u,t,e,o),l),{}):{}},mC=(t,e,n,a)=>{const o=e.find(d=>d.name===t),l=o?.type,u=n[t];return l&&!a.includes(l)?iS(l,u):ep(u)},iS=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return bC(e,n)}switch(t){case rt.bool:return gC(e);case rt.float4:case rt.float8:case rt.int2:case rt.int4:case rt.int8:case rt.numeric:case rt.oid:return yC(e);case rt.json:case rt.jsonb:return vC(e);case rt.timestamp:return _C(e);case rt.abstime:case rt.date:case rt.daterange:case rt.int4range:case rt.int8range:case rt.money:case rt.reltime:case rt.text:case rt.time:case rt.timestamptz:case rt.timetz:case rt.tsrange:case rt.tstzrange:return ep(e);default:return ep(e)}},ep=t=>t,gC=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},yC=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},vC=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},bC=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,a=t[n];if(t[0]==="{"&&a==="}"){let l;const u=t.slice(1,n);try{l=JSON.parse("["+u+"]")}catch{l=u?u.split(","):[]}return l.map(d=>iS(e,d))}return t},_C=t=>typeof t=="string"?t.replace(" ","T"):t,oS=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};var rl=t=>typeof t=="function"?t:function(){return t},wC=typeof self<"u"?self:null,ki=typeof window<"u"?window:null,or=wC||ki||globalThis,SC="2.0.0",EC=1e4,TC=1e3,cr={connecting:0,open:1,closing:2,closed:3},fn={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},zr={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},tp={longpoll:"longpoll",websocket:"websocket"},xC={complete:4},np="base64url.bearer.phx.",nu=class{constructor(t,e,n,a){this.channel=t,this.event=e,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=a,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(t){this.timeout=t,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}
vendor: 8,135 bytes, line 20
20matchReceive({status:t,response:e,_ref:n}){this.recHooks.filter(a=>a.status===t).forEach(a=>a.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},lS=class{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},AC=class{constructor(t,e,n){this.state=fn.closed,this.topic=t,this.params=rl(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new nu(this,zr.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new lS(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=fn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this.joinPush.receive("error",a=>{this.state=fn.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,a),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=fn.closed,this.socket.remove(this)}),this.onError(a=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,a),this.isJoining()&&this.joinPush.reset(),this.state=fn.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new nu(this,zr.leave,rl({}),this.timeout).send(),this.state=fn.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(zr.reply,(a,o)=>{this.trigger(this.replyEventName(o),a)})}join(t=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=fn.closed,this.bindings=[]}onClose(t){this.on(zr.close,t)}onError(t){return this.on(zr.error,e=>t(e))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){this.bindings=this.bindings.filter(n=>!(n.event===t&&(typeof e>"u"||e===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,n=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let a=new nu(this,t,function(){return e},n);return this.canPush()?a.send():(a.startTimeout(),this.pushBuffer.push(a)),a}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=fn.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(zr.close,"leave")},n=new nu(this,zr.leave,rl({}),t);return n.receive("ok",()=>e()).receive("timeout",()=>e()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}filterBindings(t,e,n){return!0}isMember(t,e,n,a){return this.topic!==t?!1:a&&a!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:n,joinRef:a}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=fn.joining,this.joinPush.resend(t))}trigger(t,e,n,a){let o=this.onMessage(t,e,n,a);if(e&&!o)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let l=this.bindings.filter(u=>u.event===t&&this.filterBindings(u,e,n));for(let u=0;u<l.length;u++)l[u].callback(o,n,a||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===fn.closed}isErrored(){return this.state===fn.errored}isJoined(){return this.state===fn.joined}isJoining(){return this.state===fn.joining}isLeaving(){return this.state===fn.leaving}},Ru=class{static request(t,e,n,a,o,l,u){if(or.XDomainRequest){let d=new or.XDomainRequest;return this.xdomainRequest(d,t,e,a,o,l,u)}else if(or.XMLHttpRequest){let d=new or.XMLHttpRequest;return this.xhrRequest(d,t,e,n,a,o,l,u)}else{if(or.fetch&&or.AbortController)return this.fetchRequest(t,e,n,a,o,l,u);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(t,e,n,a,o,l,u){let d={method:t,headers:n,body:a},h=null;return o&&(h=new AbortController,setTimeout(()=>h.abort(),o),d.signal=h.signal),or.fetch(e,d).then(p=>p.text()).then(p=>this.parseJSON(p)).then(p=>u&&u(p)).catch(p=>{p.name==="AbortError"&&l?l():u&&u(null)}),h}static xdomainRequest(t,e,n,a,o,l,u){return t.timeout=o,t.open(e,n),t.onload=()=>{let d=this.parseJSON(t.responseText);u&&u(d)},l&&(t.ontimeout=l),t.onprogress=()=>{},t.send(a),t}static xhrRequest(t,e,n,a,o,l,u,d){t.open(e,n,!0),t.timeout=l;for(let[h,p]of Object.entries(a))t.setRequestHeader(h,p);return t.onerror=()=>d&&d(null),t.onreadystatechange=()=>{if(t.readyState===xC.complete&&d){let h=this.parseJSON(t.responseText);d(h)}},u&&(t.ontimeout=u),t.send(o),t}static parseJSON(t){if(!t||t==="")return null;try{return JSON.parse(t)}catch{return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let n=[];for(var a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let o=e?`${e}[${a}]`:a,l=t[a];typeof l=="object"?n.push(this.serialize(l,o)):n.push(encodeURIComponent(o)+"="+encodeURIComponent(l))}return n.join("&")}static appendParams(t,e){if(Object.keys(e).length===0)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}},RC=t=>{let e="",n=new Uint8Array(t),a=n.byteLength;for(let o=0;o<a;o++)e+=String.fromCharCode(n[o]);return btoa(e)},Si=class{constructor(t,e){e&&e.length===2&&e[1].startsWith(np)&&(this.authToken=atob(e[1].slice(np.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=cr.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+tp.websocket),"$1/"+tp.longpoll)}endpointURL(){return Ru.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,n){this.close(t,e,n),this.readyState=cr.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===cr.open||this.readyState===cr.connecting}poll(){const t={Accept:"application/json"};this.authToken&&(t["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",t,null,()=>this.ontimeout(),e=>{if(e){var{status:n,token:a,messages:o}=e;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=a}else n=0;switch(n){case 200:o.forEach(l=>{setTimeout(()=>this.onmessage({data:l}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=cr.open,this.onopen({}),this.poll();break;
20case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(t){typeof t!="string"&&(t=RC(t)),this.currentBatch?this.currentBatch.push(t):this.awaitingBatchAck?this.batchBuffer.push(t):(this.currentBatch=[t],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(t){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},t.join(`
21`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(t,e,n){for(let o of this.reqs)o.abort();this.readyState=cr.closed;let a=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",a)):this.onclose(a)}ajax(t,e,n,a,o){let l,u=()=>{this.reqs.delete(l),a()};l=Ru.request(t,this.endpointURL(),e,n,this.timeout,u,d=>{this.reqs.delete(l),this.isActive()&&o(d)}),this.reqs.add(l)}},kC=class Xo{constructor(e,n={}){let a=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(a.state,o=>{let{onJoin:l,onLeave:u,onSync:d}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Xo.syncState(this.state,o,l,u),this.pendingDiffs.forEach(h=>{this.state=Xo.syncDiff(this.state,h,l,u)}),this.pendingDiffs=[],d()}),this.channel.on(a.diff,o=>{let{onJoin:l,onLeave:u,onSync:d}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=Xo.syncDiff(this.state,o,l,u),d())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return Xo.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,n,a,o){let l=this.clone(e),u={},d={};return this.map(l,(h,p)=>{n[h]||(d[h]=p)}),this.map(n,(h,p)=>{let y=l[h];if(y){let g=p.metas.map(E=>E.phx_ref),v=y.metas.map(E=>E.phx_ref),_=p.metas.filter(E=>v.indexOf(E.phx_ref)<0),w=y.metas.filter(E=>g.indexOf(E.phx_ref)<0);_.length>0&&(u[h]=p,u[h].metas=_),w.length>0&&(d[h]=this.clone(y),d[h].metas=w)}else u[h]=p}),this.syncDiff(l,{joins:u,leaves:d},a,o)}static syncDiff(e,n,a,o){let{joins:l,leaves:u}=this.clone(n);return a||(a=function(){}),o||(o=function(){}),this.map(l,(d,h)=>{let p=e[d];if(e[d]=this.clone(h),p){let y=e[d].metas.map(v=>v.phx_ref),g=p.metas.filter(v=>y.indexOf(v.phx_ref)<0);e[d].metas.unshift(...g)}a(d,p,h)}),this.map(u,(d,h)=>{let p=e[d];if(!p)return;let y=h.metas.map(g=>g.phx_ref);p.metas=p.metas.filter(g=>y.indexOf(g.phx_ref)<0),o(d,p,h),p.metas.length===0&&delete e[d]}),e}static list(e,n){return n||(n=function(a,o){return o}),this.map(e,(a,o)=>n(a,o))}static map(e,n){return Object.getOwnPropertyNames(e).map(a=>n(a,e[a]))}static clone(e){return JSON.parse(JSON.stringify(e))}},ru={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(n))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[n,a,o,l,u]=JSON.parse(t);return e({join_ref:n,ref:a,topic:o,event:l,payload:u})}},binaryEncode(t){let{join_ref:e,ref:n,event:a,topic:o,payload:l}=t,u=this.META_LENGTH+e.length+n.length+o.length+a.length,d=new ArrayBuffer(this.HEADER_LENGTH+u),h=new DataView(d),p=0;h.setUint8(p++,this.KINDS.push),h.setUint8(p++,e.length),h.setUint8(p++,n.length),h.setUint8(p++,o.length),h.setUint8(p++,a.length),Array.from(e,g=>h.setUint8(p++,g.charCodeAt(0))),Array.from(n,g=>h.setUint8(p++,g.charCodeAt(0))),Array.from(o,g=>h.setUint8(p++,g.charCodeAt(0))),Array.from(a,g=>h.setUint8(p++,g.charCodeAt(0)));var y=new Uint8Array(d.byteLength+l.byteLength);return y.set(new Uint8Array(d),0),y.set(new Uint8Array(l),d.byteLength),y.buffer},binaryDecode(t){let e=new DataView(t),n=e.getUint8(0),a=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(t,e,a);case this.KINDS.reply:return this.decodeReply(t,e,a);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,a)}},decodePush(t,e,n){let a=e.getUint8(1),o=e.getUint8(2),l=e.getUint8(3),u=this.HEADER_LENGTH+this.META_LENGTH-1,d=n.decode(t.slice(u,u+a));u=u+a;let h=n.decode(t.slice(u,u+o));u=u+o;let p=n.decode(t.slice(u,u+l));u=u+l;let y=t.slice(u,t.byteLength);return{join_ref:d,ref:null,topic:h,event:p,payload:y}},decodeReply(t,e,n){let a=e.getUint8(1),o=e.getUint8(2),l=e.getUint8(3),u=e.getUint8(4),d=this.HEADER_LENGTH+this.META_LENGTH,h=n.decode(t.slice(d,d+a));d=d+a;let p=n.decode(t.slice(d,d+o));d=d+o;let y=n.decode(t.slice(d,d+l));d=d+l;let g=n.decode(t.slice(d,d+u));d=d+u;let v=t.slice(d,t.byteLength),_={status:g,response:v};return{join_ref:h,ref:p,topic:y,event:zr.reply,payload:_}},decodeBroadcast(t,e,n){let a=e.getUint8(1),o=e.getUint8(2),l=this.HEADER_LENGTH+2,u=n.decode(t.slice(l,l+a));l=l+a;
21let d=n.decode(t.slice(l,l+o));l=l+o;let h=t.slice(l,t.byteLength);return{join_ref:null,ref:null,topic:u,event:d,payload:h}}},OC=class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=e.timeout||EC,this.transport=e.transport||or.WebSocket||Si,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=e.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=or&&or.sessionStorage}catch{}this.sessionStore=e.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=ru.encode.bind(ru),this.defaultDecoder=ru.decode.bind(ru),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==Si?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let a=null;ki&&ki.addEventListener&&(ki.addEventListener("pagehide",o=>{this.conn&&(this.disconnect(),a=this.connectClock)}),ki.addEventListener("pageshow",o=>{a===this.connectClock&&(a=null,this.connect())}),ki.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=e.autoSendHeartbeat??!0,this.heartbeatCallback=e.heartbeatCallback??(()=>{}),this.rejoinAfterMs=o=>e.rejoinAfterMs?e.rejoinAfterMs(o):[1e3,2e3,5e3][o-1]||1e4,this.reconnectAfterMs=o=>e.reconnectAfterMs?e.reconnectAfterMs(o):[10,50,100,150,200,250,500,1e3,2e3][o-1]||5e3,this.logger=e.logger||null,!this.logger&&e.debug&&(this.logger=(o,l,u)=>{console.log(`${o}: ${l}`,u)}),this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=rl(e.params||{}),this.endPoint=`${t}/${tp.websocket}`,this.vsn=e.vsn||SC,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new lS(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{e.beforeReconnect&&await e.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=e.authToken}getLongPollTransport(){return Si}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Ru.appendParams(Ru.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,t&&t()},e,n)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=rl(t)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Si?this.connectWithF
vendor: 4,353 bytes, line 21
21allback(Si,this.longPollFallbackMs):this.transportConnect())}log(t,e,n){this.logger&&this.logger(t,e,n)}hasLogger(){return this.logger!==null}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onHeartbeat(t){this.heartbeatCallback=t}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let a=this.onMessage(o=>{o.ref===e&&(this.off([a]),t(Date.now()-n))});return!0}transportName(t){return t===Si?"LongPoll":t.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let t;this.authToken&&(t=["phoenix",`${np}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),t),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(t){return this.sessionStore&&this.sessionStore.getItem(t)}storeSession(t,e){this.sessionStore&&this.sessionStore.setItem(t,e)}connectWithFallback(t,e=2500){clearTimeout(this.fallbackTimer);let n=!1,a=!0,o,l,u=this.transportName(t),d=h=>{this.log("transport",`falling back to ${u}...`,h),this.off([o,l]),a=!1,this.replaceTransport(t),this.transportConnect()};if(this.getSession(`phx:fallback:${u}`))return d("memorized");this.fallbackTimer=setTimeout(d,e),l=this.onError(h=>{this.log("transport","error",h),a&&!n&&(clearTimeout(this.fallbackTimer),d(h))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!a){let h=this.transportName(t);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${h}`,"true"),this.log("transport",`established ${h} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(d,e),this.ping(h=>{this.log("transport","connected to primary after",h),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(t){this.log("error","error in heartbeat callback",t)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),TC,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,e,n){if(!this.conn)return t&&t();const a=this.conn;this.waitForBufferDone(a,()=>{e?a.close(e,n||""):a.close(),this.waitForSocketClosed(a,()=>{this.conn===a&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,e,n=1){if(n===5||!t.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(t,e,n+1)},150*n)}waitForSocketClosed(t,e,n=1){if(n===5||t.readyState===cr.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(t,e,n+1)},150*n)}onConnClose(t){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(t),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",t)}onConnError(t){this.hasLogger()&&this.log("transport","error",t);let e=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",t,e,n),(e===this.transport||n>0)&&this.triggerChanError(t)}
21triggerChanError(t){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(zr.error,t)})}connectionState(){switch(this.conn&&this.conn.readyState){case cr.connecting:return"connecting";case cr.open:return"open";case cr.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(e=>e!==t)}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([n])=>t.indexOf(n)===-1)}channel(t,e={}){let n=new AC(t,e,this);return this.channels.push(n),n}push(t){if(this.hasLogger()){let{topic:e,event:n,payload:a,ref:o,join_ref:l}=t;this.log("push",`${e} ${n} (${l}, ${o})`,a)}this.isConnected()?this.encode(t,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(t,e=>this.conn.send(e)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(t){this.log("error","error in heartbeat callback",t)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(t){this.log("error","error in heartbeat callback",t)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,e=>{let{topic:n,event:a,payload:o,ref:l,join_ref:u}=e;if(l&&l===this.pendingHeartbeatRef){const d=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(o.status==="ok"?"ok":"error",d)}catch(h){this.log("error","error in heartbeat callback",h)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${o.status||""} ${n} ${a} ${l&&"("+l+")"||""}`.trim(),o);for(let d=0;d<this.channels.length;d++){const h=this.channels[d];h.isMember(n,a,o,u)&&h.trigger(a,o,l,u)}this.triggerStateCallbacks("message",e)})}triggerStateCallbacks(t,...e){try{this.stateChangeCallbacks[t].forEach(([n,a])=>{try{a(...e)}catch(o){this.log("error",`error in ${t} callback`,o)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}leaveOpenTopic(t){let e=this.channels.find(n=>n.topic===t&&(n.isJoined()||n.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}};class sl{constructor(e,n){const a=NC(n);this.presence=new kC(e.getChannel(),a),this.presence.onJoin((o,l,u)=>{const d=sl.onJoinPayload(o,l,u);e.getChannel().trigger("presence",d)}),this.presence.onLeave((o,l,u)=>{const d=sl.onLeavePayload(o,l,u);e.getChannel().trigger("presence",d)}),this.presence.onSync(()=>{e.getChannel().trigger("presence",{event:"sync"})})}get state(){return sl.transformState(this.presence.state)}static transformState(e){return e=CC(e),Object.getOwnPropertyNames(e).reduce((n,a)=>{const o=e[a];return n[a]=_u(o),n},{})}static onJoinPayload(e,n,a){const o=nb(n),l=_u(a);return{event:"join",key:e,currentPresences:o,newPresences:l}}static onLeavePayload(e,n,a){const o=nb(n),l=_u(a);return{event:"leave",key:e,currentPresences:o,leftPresences:l}}}function _u(t){return t.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e))}function CC(t){return JSON.parse(JSON.stringify(t))}function NC(t){return t?.events&&{events:t.events}}function nb(t){return t?.metas?_u(t):[]}var rb;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(rb||(rb={}));class jC{get state(){return this.presenceAdapter.state}constructor(e,n){this.channel=e,this.presenceAdapter=new sl(this.channel.channelAdapter,n)}}function DC(t){if(t instanceof Error)return t;if(typeof t=="string")return new Error(t);if(t&&typeof t=="object"){const e=t;
21if(typeof e.code=="number"){const n=typeof e.reason=="string"&&e.reason?` (${e.reason})`:"";return new Error(`socket closed: ${e.code}${n}`,{cause:t})}return new Error("channel error: transport failure",{cause:t})}return new Error("channel error: connection lost")}class LC{constructor(e,n,a){const o=MC(a);this.channel=e.getSocket().channel(n,o),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,n){return this.channel.on(e,n)}off(e,n){this.channel.off(e,n)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,n,a){let o;try{o=this.channel.push(e,n,a)}catch{throw new Error(`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>hC){const l=this.channel.pushBuffer.shift();l.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${l.event}`,l.payload())}return o}updateJoinPayload(e){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),e)}canPush(){return this.socket.isConnected()&&this.state===As.joined}isJoined(){return this.state===As.joined}isJoining(){return this.state===As.joining}isClosed(){return this.state===As.closed}isLeaving(){return this.state===As.leaving}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}}function MC(t){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config)}}var sb;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(sb||(sb={}));var Mi;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Mi||(Mi={}));var Ur;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Ur||(Ur={}));class al{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e,n={config:{}},a){var o,l;if(this.topic=e,this.params=n,this.socket=a,this.bindings={},this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new LC(this.socket.socketAdapter,e,this.params),this.presence=new jC(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=oS(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((l=(o=this.params.config)===null||o===void 0?void 0:o.broadcast)===null||l===void 0)&&l.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(e,n=this.timeout){var a,o,l;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:u,presence:d,private:h}}=this.params,p=(o=(a=this.bindings.postgres_changes)===null||a===void 0?void 0:a.map(_=>_.filter))!==null&&o!==void 0?o:[],y=!!this.bindings[Mi.PRESENCE]&&this.bindings[Mi.PRESENCE].length>0||((l=this.params.config.presence)===null||l===void 0?void 0:l.enabled)===!0,g={},v={broadcast:u,presence:Object.assign(Object.assign({},d),{enabled:y}),postgres_changes:p,private:h};this.socket.accessTokenValue&&(g.access_token=this.socket.accessTokenValue),this._onError(_=>{e?.(Ur.CHANNEL_ERROR,DC(_))}),this._onClose(()=>e?.(Ur.CLOSED)),this.updateJoinPayload(Object.assign({config:v},g)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:_})=>
21{if(this.socket._isManualToken()||this.socket.setAuth(),_===void 0){e?.(Ur.SUBSCRIBED);return}this._updatePostgresBindings(_,e)}).receive("error",_=>{this.state=As.errored;const w=Object.values(_).join(", ")||"error";e?.(Ur.CHANNEL_ERROR,new Error(w,{cause:_}))}).receive("timeout",()=>{e?.(Ur.TIMED_OUT)})}return this}_updatePostgresBindings(e,n){var a;const o=this.bindings.postgres_changes,l=(a=o?.length)!==null&&a!==void 0?a:0,u=[];for(let d=0;d<l;d++){const h=o[d],{filter:{event:p,schema:y,table:g,filter:v}}=h,_=e&&e[d];if(_&&_.event===p&&al.isFilterValueEqual(_.schema,y)&&al.isFilterValueEqual(_.table,g)&&al.isFilterValueEqual(_.filter,v))u.push(Object.assign(Object.assign({},h),{id:_.id}));else{this.unsubscribe(),this.state=As.errored,n?.(Ur.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=u,this.state!=As.errored&&n&&n(Ur.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,a){const o=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),l=e===Mi.PRESENCE||e===Mi.POSTGRES_CHANGES;if(o&&l)throw this.socket.log("channel",`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,n,a)}async httpSend(e,n,a={}){var o;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const u={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:n,private:this.private}]})},d=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(o=a.timeout)!==null&&o!==void 0?o:this.timeout);if(d.status===202)return{success:!0};let h=d.statusText;try{const p=await d.json();h=p.error||p.message||h}catch{}return Promise.reject(new Error(h))}async send(e,n={}){var a,o;if(!this.channelAdapter.canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated 
21in the future. Please use httpSend() explicitly for REST delivery.");const{event:l,payload:u}=e,d={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(d.Authorization=`Bearer ${this.socket.accessTokenValue}`);const h={method:"POST",headers:d,body:JSON.stringify({messages:[{topic:this.subTopic,event:l,payload:u,private:this.private}]})};try{const p=await this._fetchWithTimeout(this.broadcastEndpointURL,h,(a=n.timeout)!==null&&a!==void 0?a:this.timeout);return await((o=p.body)===null||o===void 0?void 0:o.cancel()),p.ok?"ok":"error"}catch(p){return p instanceof Error&&p.name==="AbortError"?"timed out":"error"}}else return new Promise(l=>{var u,d,h;const p=this.channelAdapter.push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((h=(d=(u=this.params)===null||u===void 0?void 0:u.config)===null||d===void 0?void 0:d.broadcast)===null||h===void 0)&&h.ack)&&l("ok"),p.receive("ok",()=>l("ok")),p.receive("error",()=>l("error")),p.receive("timeout",()=>l("timed out"))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(e).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,n,a){const o=new AbortController,l=setTimeout(()=>o.abort(),a),u=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:o.signal}));return clearTimeout(l),u}_on(e,n,a){const o=e.toLocaleLowerCase(),l=this.channelAdapter.on(e,a),u={type:o,filter:n,callback:a,ref:l};return this.bindings[o]?this.bindings[o].push(u):this.bindings[o]=[u],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,n,a)=>{var o,l,u,d,h,p,y;const g=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(g,a))return!1;const v=(o=this.bindings[g])===null||o===void 0?void 0:o.find(_=>_.ref===e.ref);if(!v)return!0;if(["broadcast","presence","postgres_changes"].includes(g))if("id"in v){const _=v.id,w=(l=v.filter)===null||l===void 0?void 0:l.event;return _&&((u=n.ids)===null||u===void 0?void 0:u.includes(_))&&(w==="*"||w?.toLocaleLowerCase()===((d=n.data)===null||d===void 0?void 0:d.type.toLocaleLowerCase()))}else{const _=(p=(h=v?.filter)===null||h===void 0?void 0:h.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return _==="*"||_===((y=n?.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return v.type.toLocaleLowerCase()===g})}_notThisChannelEvent(e,n){const{close:a,error:o,leave:l,join:u}=aS;return n&&[a,o,l,u].includes(e)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,n,a)=>{if(typeof n=="object"&&"ids"in n){const o=n.data,{schema:l,table:u,commit_timestamp:d,type:h,errors:p}=o;return Object.assign(Object.assign({},{schema:l,table:u,commit_timestamp:d,eventType:h,new:{},old:{},errors:p}),this._getPayloadRecords(o))}return n})}copyBindings(e){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in e.bindings)for(const a of e.bindings[n])this._on(a.type,a.filter,a.callback)}static isFilterValueEqual(e,n){return(e??void 0)===(n??void 0)}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=tb(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=tb(e.columns,e.old_record)),n}}class zC{constructor(e,n){this.socket=new OC(e,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(e){this.socket.heartbeatCallback=e}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(e,n,a,o=1e4){return new Promise(l=>{setTimeout(()=>l("timeout"),o),this.socket.disconnect(()=>{e(),l("ok")},n,a)})}push(e){this.socket.push(e)}log(e,n,a){this.socket.log(e,n,a)}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Wh.connecting}isDisconnecting(){return this.socket.connectionState()==Wh.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const ab={HEARTBEAT_INTERVAL:25e3},UC=[1e3,2e3,5e3,1e4],PC=1e4;function IC(){const t=new Map;return{get length(){return t.size},clear(){t.clear()},getItem(e){return t.has(e)?t.get(e):null},key(e){var n;return(n=Array.from(t.keys())[e])!==null&&n!==void 0?n:null},removeItem(e){t.delete(e)},setItem(e,n){t.set(e,String(n))}}}function BC(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return IC()}const $C=`
22  addEventListener("message", (e) => {
23    if (e.data.event === "start") {
24      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
25    }
26  });`;class qC{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,n){var a;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
26,this.ref=0,this.serializer=new pC,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=l=>l?(...u)=>l(...u):(...u)=>fetch(...u),!(!((a=n?.params)===null||a===void 0)&&a.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const o=this._initializeOptions(n);this.socketAdapter=new zC(e,o),this.httpEndpoint=oS(e),this.fetch=this._resolveFetch(n?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){const n=e.message;throw n.includes("Node.js")?new Error(`${n}
27
28To use Realtime in Node.js, you need to provide a WebSocket implementation:
29
30Option 1: Use Node.js 22+ which has native WebSocket support
31Option 2: Install and provide the "ws" package:
32
33  npm install ws
34
35  import ws from "ws"
36  const client = new RealtimeClient(url, {
37    ...options,
38    transport: ws
39  })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,n)}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return n==="ok"&&e.teardown(),n}async removeAllChannels(){const e=this.channels.map(async a=>{const o=await a.unsubscribe();return a.teardown(),o}),n=await Promise.all(e);return await this.disconnect(),n}log(e,n,a){this.socketAdapter.log(e,n,a)}connectionState(){return this.socketAdapter.connectionState()||Wh.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,n={config:{}}){const a=`realtime:${e}`,o=this.getChannels().find(l=>l.topic===a);if(o)return o;{const l=new al(`realtime:${e}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(l),l}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
39this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(e=null){let n,a=!1;if(e)n=e,a=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(o){this.log("error","Error fetching access token from callback",o),n=this.accessTokenValue}else n=this.accessTokenValue;a?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(o=>{const l={access_token:n,version:cC};n&&o.updateJoinPayload(l),o.joinedOnce&&o.channelAdapter.isJoined()&&o.channelAdapter.push(aS.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${e}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(n,a)=>{n=="sent"&&this._setAuthSafely(),e&&e(n,a)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(e){let n;if(e)n=e;else{const a=new Blob([$C],{type:"application/javascript"});n=URL.createObjectURL(a)}return n}_initializeOptions(e){var n,a,o,l,u,d,h,p,y,g,v,_;this.worker=(n=e?.worker)!==null&&n!==void 0?n:!1,this.accessToken=(a=e?.accessToken)!==null&&a!==void 0?a:null;const w={};w.timeout=(o=e?.timeout)!==null&&o!==void 0?o:fC,w.heartbeatIntervalMs=(l=e?.heartbeatIntervalMs)!==null&&l!==void 0?l:ab.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(u=e?.disconnectOnEmptyChannelsAfterMs)!==null&&u!==void 0?u:2*((d=e?.heartbeatIntervalMs)!==null&&d!==void 0?d:ab.HEARTBEAT_INTERVAL),w.transport=(h=e?.transport)!==null&&h!==void 0?h:oC.getWebSocketConstructor(),w.params=e?.params,w.logger=e?.logger,w.heartbeatCallback=this._wrapHeartbeatCallback(e?.heartbeatCallback),w.sessionStorage=(p=e?.sessionStorage)!==null&&p!==void 0?p:BC(),w.reconnectAfterMs=(y=e?.reconnectAfterMs)!==null&&y!==void 0?y:(C=>UC[C-1]||PC);let E,x;const T=(g=e?.vsn)!==null&&g!==void 0?g:dC;switch(T){case uC:E=(C,R)=>R(JSON.stringify(C)),x=(C,R)=>R(JSON.parse(C));break;case sS:E=this.serializer.encode.bind(this.serializer),x=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${w.vsn}`)}if(w.vsn=T,w.encode=(v=e?.encode)!==null&&v!==void 0?v:E,w.decode=(_=e?.decode)!==null&&_!==void 0?_:x,w.beforeReconnect=this._reconnectAuth.bind(this),(e?.logLevel||e?.log_level)&&(this.logLevel=e.logLevel||e.log_level,w.params=Object.assign(Object.assign({},w.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e?.workerUrl,w.autoSendHeartbeat=!this.worker}return w}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
39var gl=class extends Error{constructor(t,e){super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&e.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function HC(t,e,n){const a=new URL(e,t);if(n)for(const[o,l]of Object.entries(n))l!==void 0&&a.searchParams.set(o,l);return a.toString()}async function VC(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function GC(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:n,path:a,query:o,body:l,headers:u}){const d=HC(t.baseUrl,a,o),h=await VC(t.auth),p=await e(d,{method:n,headers:{...l?{"Content-Type":"application/json"}:{},...h,...u},body:l?JSON.stringify(l):void 0}),y=await p.text(),g=(p.headers.get("content-type")||"").includes("application/json"),v=g&&y?JSON.parse(y):y;if(!p.ok){const _=g?v:void 0,w=_?.error;throw new gl(w?.message??`Request failed with status ${p.status}`,{status:p.status,icebergType:w?.type,icebergCode:w?.code,details:_})}return{status:p.status,headers:p.headers,data:v}}}}function su(t){return t.join("�")}var FC=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:su(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(a=>({namespace:a}))}async createNamespace(t,e){const n={namespace:t.namespace,properties:e?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${su(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${su(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${su(t.namespace)}`}),!0}catch(e){if(e instanceof gl&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(n){if(n instanceof gl&&n.status===409)return;throw n}}};function Ei(t){return t.join("�")}var ZC=class{constructor(t,e="",n){this.client=t,this.prefix=e,this.accessDelegation=n}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables`,body:e,headers:n})).data.metadata}async updateTable(t,e){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String(e?.purge??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ei(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(n){if(n instanceof gl&&n.status===404)return!1;throw n}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(n){if(n instanceof gl&&n.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw n}}},KC=class{constructor(t){let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const n=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=GC({baseUrl:n,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=t.accessDelegation?.join(","),this.namespaceOps=new FC(this.client,e),this.tableOps=new ZC(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}
39async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}};function yl(t){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yl(t)}function YC(t,e){if(yl(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(yl(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function QC(t){var e=YC(t,"string");return yl(e)=="symbol"?e:e+""}function JC(t,e,n){return(e=QC(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ib(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function Te(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ib(Object(n),!0).forEach(function(a){JC(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ib(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Qu=class extends Error{constructor(t,e="storage",n,a){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=a}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Ju(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var rp=class extends Qu{constructor(t,e,n,a="storage"){super(t,a,e,n),this.name=a==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=n}toJSON(){return Te({},super.toJSON())}},cS=class extends Qu{constructor(t,e,n="storage"){super(t,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};function ku(t,e,n){const a=Te({},t),o=e.toLowerCase();for(const l of Object.keys(a))l.toLowerCase()===o&&delete a[l];return a[o]=n,a}function XC(t){const e={};for(const[n,a]of Object.entries(t))e[n.toLowerCase()]=a;return e}const WC=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),e2=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},sp=t=>{if(Array.isArray(t))return t.map(n=>sp(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,a])=>{const o=n.replace(/([-_][a-z])/gi,l=>l.toUpperCase().replace(/[-_]/g,""));e[o]=sp(a)}),e},t2=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),ob=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error;if(typeof e.error=="object"&&e.error!==null){const n=e.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(t)},n2=async(t,e,n,a)=>{if(t!==null&&typeof t=="object"&&"json"in t&&typeof t.json=="function"){const o=t;let l=parseInt(String(o.status),10);Number.isFinite(l)||(l=500),o.json().then(u=>{const d=u?.statusCode||u?.code||l+"";e(new rp(ob(u),l,d,a))}).catch(()=>{const u=l+"";e(new rp(o.statusText||`HTTP ${l} error`,l,u,a))})}else e(new cS(ob(t),t,a))},r2=(t,e,n,a)=>{const o={method:t,headers:e?.headers||{}};if(t==="GET"||t==="HEAD"||!a)return Te(Te({},o),n);if(e2(a)){var l;const u=e?.headers||{};let d;for(const[h,p]of Object.entries(u))h.toLowerCase()==="content-type"&&(d=p);o.headers=ku(u,"Content-Type",(l=d)!==null&&l!==void 0?l:"application/json"),o.body=JSON.stringify(a)}else o.body=a;return e?.duplex&&(o.duplex=e.duplex),Te(Te({},o),n)};async function Qo(t,e,n,a,o,l,u){return new Promise((d,h)=>{t(n,r2(e,a,o,l)).then(p=>{if(!p.ok)throw p;if(a?.noResolveJson)return p;if(u==="vectors"){const y=p.headers.get("content-type");if(p.headers.get("content-length")==="0"||p.status===204)return{};if(!y||!y.includes("application/json"))return{}}return p.json()}).then(p=>
39d(p)).catch(p=>n2(p,h,a,u))})}function uS(t="storage"){return{get:async(e,n,a,o)=>Qo(e,"GET",n,a,o,void 0,t),post:async(e,n,a,o,l)=>Qo(e,"POST",n,o,l,a,t),put:async(e,n,a,o,l)=>Qo(e,"PUT",n,o,l,a,t),head:async(e,n,a,o)=>Qo(e,"HEAD",n,Te(Te({},a),{},{noResolveJson:!0}),o,void 0,t),remove:async(e,n,a,o,l)=>Qo(e,"DELETE",n,o,l,a,t)}}const s2=uS("storage"),{get:vl,post:Zn,put:ap,head:a2,remove:Qp}=s2,xn=uS("vectors");var Zi=class{constructor(t,e={},n,a="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=XC(e),this.fetch=WC(n),this.namespace=a}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=ku(this.headers,t,e),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ju(n))return{data:null,error:n};throw n}}},i2=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Ju(e))return{data:null,error:e};throw e}}};let dS;dS=Symbol.toStringTag;var o2=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[dS]="BlobDownloadBuilder",this.promise=null}asStream(){return new i2(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Ju(e))return{data:null,error:e};throw e}}};const l2={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},lb={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var c2=class extends Zi{constructor(t,e={},n,a){super(t,e,a,"storage"),this.bucketId=n}async uploadOrUpdate(t,e,n,a){var o=this;return o.handleOperation(async()=>{let l;const u=Te(Te({},lb),a);let d=Te(Te({},o.headers),t==="POST"&&{"x-upsert":String(u.upsert)});const h=u.metadata;if(typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),h&&l.append("metadata",o.encodeMetadata(h)),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.has("cacheControl")||l.append("cacheControl",u.cacheControl),h&&!l.has("metadata")&&l.append("metadata",o.encodeMetadata(h))):(l=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType,h&&(d["x-metadata"]=o.toBase64(o.encodeMetadata(h))),(typeof ReadableStream<"u"&&l instanceof ReadableStream||l&&typeof l=="object"&&"pipe"in l&&typeof l.pipe=="function")&&!u.duplex&&(u.duplex="half")),a?.headers)for(const[v,_]of Object.entries(a.headers))d=ku(d,v,_);const p=o._removeEmptyFolders(e),y=o._getFinalPath(p),g=await(t=="PUT"?ap:Zn)(o.fetch,`${o.url}/object/${y}`,l,Te({headers:d},u?.duplex?{duplex:u.duplex}:{}));return{path:p,id:g.Id,fullPath:g.Key}})}async upload(t,e,n){return this.uploadOrUpdate("POST",t,e,n)}async uploadToSignedUrl(t,e,n,a){var o=this;const l=o._removeEmptyFolders(t),u=o._getFinalPath(l),d=new URL(o.url+`/object/upload/sign/${u}`);return d.searchParams.set("token",e),o.handleOperation(async()=>{let h;const p=Te(Te({},lb),a);let y=Te(Te({},o.headers),{"x-upsert":String(p.upsert)});const g=p.metadata;if(typeof Blob<"u"&&n instanceof Blob?(h=new FormData,h.append("cacheControl",p.cacheControl),g&&h.append("metadata",o.encodeMetadata(g)),h.append("",n)):typeof FormData<"u"&&n instanceof FormData?(h=n,h.has("cacheControl")||h.append("cacheControl",p.cacheControl),g&&!h.has("metadata")&&h.append("metadata",o.encodeMetadata(g))):(h=n,y["cache-control"]=`max-age=${p.cacheControl}`,y["content-type"]=p.contentType,g&&(y["x-metadata"]=o.toBase64(o.encodeMetadata(g))),(typeof ReadableStream<"u"&&h instanceof ReadableStream||h&&typeof h=="object"&&"pipe"in h&&typeof h.pipe=="function")&&!p.duplex&&(p.duplex="half")),a?.headers)for(const[v,_]of Object.entries(a.headers))y=ku(y,v,_);return{path:l,fullPath:(await ap(o.fetch,d.toString(),h,Te({headers:y},p?.duplex?{duplex:p.duplex}:{}))).Key}})}async createSignedUploadUrl(t,e){var n=this;return n.handleOperation(async()=>{let a=n._getFinalPath(t);const o=Te({},n.headers);e?.upsert&&(o["x-upsert"]="true");const l=await Zn(n.fetch,`${n.url}/object/upload/sign/${a}`,{},{headers:o}),u=new URL(n.url+l.url),d=u.searchParams.get("token");if(!d)throw new Qu("No token returned by API");return{signedUrl:u.toString(),path:t,token:d}})}async update(t,e,n){return this.uploadOrUpdate("PUT",t,e,n)}async move(t,e,n){var a=this;return a.handleOperation(async()=>await Zn(a.fetch,`${a.url}/object/move`,{bucketId:a.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n?.destinationBucket},{headers:a.headers}))}async copy(t,e,n){var a=this;return a.handleOperation(async()=>({path:(await Zn(a.fetch,`${a.url}/object/copy`,{bucketId:a.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n?.destinationBucket},{headers:a.headers})).Key}))}async createSignedUrl(t,e,n){var a=this;return a.handleOperation(async()=>{let o=a._getFinalPath(t);const l=typeof n?.transform=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let u=await Zn(a.fetch,`${a.url}/object/sign/${o}
39`,Te({expiresIn:e},l?{transform:n.transform}:{}),{headers:a.headers});const d=new URLSearchParams;n?.download&&d.set("download",n.download===!0?"":n.download),n?.cacheNonce!=null&&d.set("cacheNonce",String(n.cacheNonce));const h=d.toString();return{signedUrl:encodeURI(`${a.url}${u.signedURL}${h?`&${h}`:""}`)}})}async createSignedUrls(t,e,n){var a=this;return a.handleOperation(async()=>{const o=await Zn(a.fetch,`${a.url}/object/sign/${a.bucketId}`,{expiresIn:e,paths:t},{headers:a.headers}),l=new URLSearchParams;n?.download&&l.set("download",n.download===!0?"":n.download),n?.cacheNonce!=null&&l.set("cacheNonce",String(n.cacheNonce));const u=l.toString();return o.map(d=>Te(Te({},d),{},{signedUrl:d.signedURL?encodeURI(`${a.url}${d.signedURL}${u?`&${u}`:""}`):null}))})}download(t,e,n){const a=typeof e?.transform=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image/authenticated":"object",o=new URLSearchParams;e?.transform&&this.applyTransformOptsToQuery(o,e.transform),e?.cacheNonce!=null&&o.set("cacheNonce",String(e.cacheNonce));const l=o.toString(),u=this._getFinalPath(t),d=()=>vl(this.fetch,`${this.url}/${a}/${u}${l?`?${l}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new o2(d,this.shouldThrowOnError)}async info(t){var e=this;const n=e._getFinalPath(t);return e.handleOperation(async()=>sp(await vl(e.fetch,`${e.url}/object/info/${n}`,{headers:e.headers})))}async exists(t){var e=this;const n=e._getFinalPath(t);try{return await a2(e.fetch,`${e.url}/object/${n}`,{headers:e.headers}),{data:!0,error:null}}catch(o){if(e.shouldThrowOnError)throw o;if(Ju(o)){var a;const l=o instanceof rp?o.status:o instanceof cS?(a=o.originalError)===null||a===void 0?void 0:a.status:void 0;if(l!==void 0&&[400,404].includes(l))return{data:!1,error:o}}throw o}}getPublicUrl(t,e){const n=this._getFinalPath(t),a=new URLSearchParams;e?.download&&a.set("download",e.download===!0?"":e.download),e?.transform&&this.applyTransformOptsToQuery(a,e.transform),e?.cacheNonce!=null&&a.set("cacheNonce",String(e.cacheNonce));const o=a.toString(),l=typeof e?.transform=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${n}`)+(o?`?${o}`:"")}}}async remove(t){var e=this;return e.handleOperation(async()=>await Qp(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async list(t,e,n){var a=this;return a.handleOperation(async()=>{const o=Te(Te(Te({},l2),e),{},{prefix:t||""});return await Zn(a.fetch,`${a.url}/object/list/${a.bucketId}`,o,{headers:a.headers},n)})}async listV2(t,e){var n=this;return n.handleOperation(async()=>{const a=Te({},t);return await Zn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,a,{headers:n.headers},e)})}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.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(t,e){return e.width&&t.set("width",e.width.toString()),e.height&&t.set("height",e.height.toString()),e.resize&&t.set("resize",e.resize),e.format&&t.set("format",e.format),e.quality&&t.set("quality",e.quality.toString()),t}};const u2="2.105.4",Ol={"X-Client-Info":`storage-js/${u2}`};var d2=class extends Zi{constructor(t,e={},n,a){const o=new URL(t);a?.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase."));const l=o.href.replace(/\/$/,""),u=Te(Te({},Ol),e);super(l,u,n,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=e.listBucketOptionsToQueryString(t);return await vl(e.fetch,`${e.url}/bucket${n}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await vl(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var n=this;return n.handleOperation(async()=>await Zn(n.fetch,`${n.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async updateBucket(t,e){var n=this;return n.handleOperation(async()=>await ap(n.fetch,`${n.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await Zn(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Qp(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},f2=class extends Zi{constructor(t,e={},n){const a=t.replace(/\/$/,""),o=Te(Te({},Ol),e);super(a,o,n,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await Zn(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=new URLSearchParams;t?.limit!==void 0&&n.set("limit",t.limit.toString()),t?.offset!==void 0&&n.set("offset",t.offset.toString()),t?.sortColumn&&n.set("sortColumn",t.sortColumn),t?.sortOrder&&n.set("sortOrder",t.sortOrder),t?.search&&n.set("search",t.search);const a=n.toString(),o=a?`${e.url}/bucket?${a}`:`${e.url}/bucket`;return await vl(e.fetch,o,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Qp(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;if(!t2(t))throw new Qu("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new KC({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}),a=this.shouldThrowOnError;return new Proxy(n,{get(o,l){const u=o[l];return typeof u!="function"?u:async(...d)=>{try{return{data:await u.apply(o,d),error:null}}catch(h){if(a)throw h;return{data:null,error:h}}}}})}},h2=class extends Zi{constructor(t,e={},n){const a=t.replace(/\/$/,""),o=Te(Te({},Ol),{},{"Content-Type":"application/json"},e);super(a,o,n,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await xn.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var n=this;return n.handleOperation(async()=>await xn.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await xn.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var n=this;return n.handleOperation(async()=>await xn.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers})||{})}},p2=class extends Zi{constructor(t,e={},n){const a=t.replace(/\/$/,""),o=Te(Te({},Ol),{},{"Content-Type":"application/json"},e);super(a,o,n,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await xn.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await xn.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
39if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await xn.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await xn.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await xn.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},m2=class extends Zi{constructor(t,e={},n){const a=t.replace(/\/$/,""),o=Te(Te({},Ol),{},{"Content-Type":"application/json"},e);super(a,o,n,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await xn.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await xn.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await xn.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await xn.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},g2=class extends m2{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new y2(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,n=this;return e().call(n,t)}async getBucket(t){var e=()=>super.getBucket,n=this;return e().call(n,t)}async listBuckets(t={}){var e=()=>super.listBuckets,n=this;return e().call(n,t)}async deleteBucket(t){var e=()=>super.deleteBucket,n=this;return e().call(n,t)}},y2=class extends h2{constructor(t,e,n,a){super(t,e,a),this.vectorBucketName=n}async createIndex(t){var e=()=>super.createIndex,n=this;return e().call(n,Te(Te({},t),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,n=this;return e().call(n,Te(Te({},t),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,n=this;return e().call(n,n.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,n=this;return e().call(n,n.vectorBucketName,t)}index(t){return new v2(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},v2=class extends p2{constructor(t,e,n,a,o){super(t,e,o),this.vectorBucketName=n,this.indexName=a}async putVectors(t){var e=()=>super.putVectors,n=this;return e().call(n,Te(Te({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(t){var e=()=>super.getVectors,n=this;return e().call(n,Te(Te({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,n=this;return e().call(n,Te(Te({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,n=this;return e().call(n,Te(Te({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,n=this;return e().call(n,Te(Te({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},b2=class extends d2{constructor(t,e={},n,a){super(t,e,n,a)}from(t){return new c2(this.url,this.headers,t,this.fetch)}get vectors(){return new g2(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new f2(this.url+"/iceberg",this.headers,this.fetch)}};const fS="2.105.4",Oi=30*1e3,ip=3,Nh=ip*Oi,_2="http://localhost:9999",w2="supabase.auth.token",S2={"X-Client-Info":`gotrue-js/${fS}`},op="X-Supabase-Api-Version",hS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},E2=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,T2=600*1e3;class bl extends Error{constructor(e,n,a){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function ae(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class x2 extends bl{constructor(e,n,a){super(e,n,a),this.name="AuthApiError",this.status=n,this.code=a}}function A2(t){return ae(t)&&t.name==="AuthApiError"}class Kn extends bl{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class Fr extends bl{constructor(e,n,a,o){super(e,a,o),this.name=n,this.status=a}}class jt extends Fr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function au(t){return ae(t)&&t.name==="AuthSessionMissingError"}class Ti extends Fr{constructor(){super("Auth session or user missing","AuthInvalidToken
39ResponseError",500,void 0)}}class iu extends Fr{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class ou extends Fr{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function R2(t){return ae(t)&&t.name==="AuthImplicitGrantRedirectError"}class cb extends Fr{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class k2 extends Fr{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class lp extends Fr{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function jh(t){return ae(t)&&t.name==="AuthRetryableFetchError"}class ub extends Fr{constructor(e,n,a){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=a}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class cp extends Fr{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ou="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),db=` 	
40\r=`.split(""),O2=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<db.length;e+=1)t[db[e].charCodeAt(0)]=-2;for(let e=0;e<Ou.length;e+=1)t[Ou[e].charCodeAt(0)]=e;return t})();function fb(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const a=e.queue>>e.queuedBits-6&63;n(Ou[a]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const a=e.queue>>e.queuedBits-6&63;n(Ou[a]),e.queuedBits-=6}}function pS(t,e,n){const a=O2[t];if(a>-1)for(e.queue=e.queue<<6|a,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(a===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function hb(t){const e=[],n=u=>{e.push(String.fromCodePoint(u))},a={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},l=u=>{j2(u,a,n)};for(let u=0;u<t.length;u+=1)pS(t.charCodeAt(u),o,l);return e.join("")}function C2(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function N2(t,e){for(let n=0;n<t.length;n+=1){let a=t.charCodeAt(n);if(a>55295&&a<=56319){const o=(a-55296)*1024&65535;a=(t.charCodeAt(n+1)-56320&65535|o)+65536,n+=1}C2(a,e)}}function j2(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let a=1;a<6;a+=1)if((t>>7-a&1)===0){e.utf8seq=a;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function Bi(t){const e=[],n={queue:0,queuedBits:0},a=o=>{e.push(o)};for(let o=0;o<t.length;o+=1)pS(t.charCodeAt(o),n,a);return new Uint8Array(e)}function D2(t){const e=[];return N2(t,n=>e.push(n)),new Uint8Array(e)}function va(t){const e=[],n={queue:0,queuedBits:0},a=o=>{e.push(o)};return t.forEach(o=>fb(o,n,a)),fb(null,n,a),e.join("")}function L2(t){return Math.round(Date.now()/1e3)+t}function M2(){return Symbol("auth-callback")}const $t=()=>typeof window<"u"&&typeof document<"u",fa={tested:!1,writable:!1},mS=()=>{if(!$t())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(fa.tested)return fa.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),fa.tested=!0,fa.writable=!0}catch{fa.tested=!0,fa.writable=!1}return fa.writable};function z2(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
40h((o,l)=>{e[l]=o})}catch{}return n.searchParams.forEach((a,o)=>{e[o]=a}),e}const gS=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),U2=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Ci=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},ha=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return null}},Bt=async(t,e)=>{await t.removeItem(e)};class Xu{constructor(){this.promise=new Xu.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}Xu.promiseConstructor=Promise;function lu(t){const e=t.split(".");if(e.length!==3)throw new cp("Invalid JWT structure");for(let a=0;a<e.length;a++)if(!E2.test(e[a]))throw new cp("JWT not in base64url format");return{header:JSON.parse(hb(e[0])),payload:JSON.parse(hb(e[1])),signature:Bi(e[2]),raw:{header:e[0],payload:e[1]}}}async function P2(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function I2(t,e){return new Promise((a,o)=>{(async()=>{for(let l=0;l<1/0;l++)try{const u=await t(l);if(!e(l,null,u)){a(u);return}}catch(u){if(!e(l,u)){o(u);return}}})()})}function B2(t){return("0"+t.toString(16)).substr(-2)}function $2(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",a=n.length;let o="";for(let l=0;l<56;l++)o+=n.charAt(Math.floor(Math.random()*a));return o}return crypto.getRandomValues(e),Array.from(e,B2).join("")}async function q2(t){const n=new TextEncoder().encode(t),a=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(a);return Array.from(o).map(l=>String.fromCharCode(l)).join("")}async function H2(t){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."),t;const n=await q2(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function xi(t,e,n=!1){const a=$2();let o=a;n&&(o+="/recovery"),await Ci(t,`${e}-code-verifier`,o);const l=await H2(a);return[l,a===l?"plain":"s256"]}const V2=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function G2(t){const e=t.headers.get(op);if(!e||!e.match(V2))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function F2(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function Z2(t){switch(t){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 K2=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function jr(t){if(!K2.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Gn(t){if(!t.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function Dh(){const t={};return new Proxy(t,{get:(e,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const a=n.toString();if(a==="Symbol(Symbol.toPrimitive)"||a==="Symbol(Symbol.toStringTag)"||a==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Y2(t,e){return new Proxy(t,{get:(n,a,o)=>
40{if(a==="__isInsecureUserWarningProxy")return!0;if(typeof a=="symbol"){const l=a.toString();if(l==="Symbol(Symbol.toPrimitive)"||l==="Symbol(Symbol.toStringTag)"||l==="Symbol(util.inspect.custom)"||l==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,a,o)}return!e.value&&typeof a=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(n,a,o)}})}function pb(t){return JSON.parse(JSON.stringify(t))}const ma=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error}return JSON.stringify(t)},Q2=[502,503,504,520,521,522,523,524,530];async function mb(t){var e;if(!U2(t))throw new lp(ma(t),0);if(Q2.includes(t.status))throw new lp(ma(t),t.status);let n;try{n=await t.json()}catch(l){throw new Kn(ma(l),l)}let a;const o=G2(t);if(o&&o.getTime()>=hS["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?a=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(a=n.error_code),a){if(a==="weak_password")throw new ub(ma(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(a==="session_not_found")throw new jt}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((l,u)=>l&&typeof u=="string",!0))throw new ub(ma(n),t.status,n.weak_password.reasons);throw new x2(ma(n),t.status||500,a)}const J2=(t,e,n,a)=>{const o={method:t,headers:e?.headers||{}};return t==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e?.headers),o.body=JSON.stringify(a),Object.assign(Object.assign({},o),n))};async function he(t,e,n,a){var o;const l=Object.assign({},a?.headers);l[op]||(l[op]=hS["2024-01-01"].name),a?.jwt&&(l.Authorization=`Bearer ${a.jwt}`);const u=(o=a?.query)!==null&&o!==void 0?o:{};a?.redirectTo&&(u.redirect_to=a.redirectTo);const d=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",h=await X2(t,e,n+d,{headers:l,noResolveJson:a?.noResolveJson},{},a?.body);return a?.xform?a?.xform(h):{data:Object.assign({},h),error:null}}async function X2(t,e,n,a,o,l){const u=J2(e,a,o,l);let d;try{d=await t(n,Object.assign({},u))}catch(h){throw console.error(h),new lp(ma(h),0)}if(d.ok||await mb(d),a?.noResolveJson)return d;try{return await d.json()}catch(h){await mb(h)}}function Un(t){var e;let n=null;tN(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=L2(t.expires_in)));const a=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:a},error:null}}function gb(t){const e=Un(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,a)=>n&&typeof a=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Rs(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function W2(t){return{data:t,error:null}}function eN(t){const{action_link:e,email_otp:n,hashed_token:a,redirect_to:o,verification_type:l}=t,u=Yu(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),d={action_link:e,email_otp:n,hashed_token:a,redirect_to:o,verification_type:l},h=Object.assign({},u);return{data:{properties:d,user:h},error:null}}function yb(t){return t}function tN(t){return!!t.access_token&&!!t.refresh_token&&!!t.expires_in}const Lh=["global","local","others"];class nN{constructor({url:e="",headers:n={},fetch:a,experimental:o}){this.url=e,this.headers=n,this.fetch=gS(a),this.experimental=o??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}
40async signOut(e,n=Lh[0]){if(Lh.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Lh.join(", ")}`);try{return await he(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(a){if(ae(a))return{data:null,error:a};throw a}}async inviteUserByEmail(e,n={}){try{return await he(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Rs})}catch(a){if(ae(a))return{data:{user:null},error:a};throw a}}async generateLink(e){try{const{options:n}=e,a=Yu(e,["options"]),o=Object.assign(Object.assign({},a),n);return"newEmail"in a&&(o.new_email=a?.newEmail,delete o.newEmail),await he(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:eN,redirectTo:n?.redirectTo})}catch(n){if(ae(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await he(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Rs})}catch(n){if(ae(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,a,o,l,u,d,h;try{const p={nextPage:null,lastPage:0,total:0},y=await he(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(a=(n=e?.page)===null||n===void 0?void 0:n.toString())!==null&&a!==void 0?a:"",per_page:(l=(o=e?.perPage)===null||o===void 0?void 0:o.toString())!==null&&l!==void 0?l:""},xform:yb});if(y.error)throw y.error;const g=await y.json(),v=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,_=(h=(d=y.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&h!==void 0?h:[];return _.length>0&&(_.forEach(w=>{const E=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);p[`${x}Page`]=E}),p.total=parseInt(v)),{data:Object.assign(Object.assign({},g),p),error:null}}catch(p){if(ae(p))return{data:{users:[]},error:p};throw p}}async getUserById(e){jr(e);try{return await he(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Rs})}catch(n){if(ae(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){jr(e);try{return await he(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:Rs})}catch(a){if(ae(a))return{data:{user:null},error:a};throw a}}async deleteUser(e,n=!1){jr(e);try{return await he(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:Rs})}catch(a){if(ae(a))return{data:{user:null},error:a};throw a}}async _listFactors(e){jr(e.userId);try{const{data:n,error:a}=await he(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:n,error:a}}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _deleteFactor(e){jr(e.userId),jr(e.id);try{return{data:await he(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _listOAuthClients(e){var n,a,o,l,u,d,h;try{const p={nextPage:null,lastPage:0,total:0},y=await he(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(a=(n=e?.page)===null||n===void 0?void 0:n.toString())!==null&&a!==void 0?a:"",per_page:(l=(o=e?.perPage)===null||o===void 0?void 0:o.toString())!==null&&l!==void 0?l:""},xform:yb});if(y.error)throw y.error;const g=await y.json(),v=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,_=(h=(d=y.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&h!==void 0?h:[];return _.length>0&&(_.forEach(w=>{const E=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);p[`${x}Page`]=E}),p.total=parseInt(v)),{data:Object.assign(Object.assign({},g),p),error:null}}catch(p){if(ae(p))return{data:{clients:[]},error:p};throw p}}async _createOAuthClient(e){try{return await he(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _getOAuthClient(e){try{return await he(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _updateOAuthClient(e,n){try{return await he(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:n,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(ae(a))return{data:null,error:a};throw a}}async _deleteOAuthClient(e){try{return await he(this.fetch,"DELET
40E",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(e){try{return await he(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _listCustomProviders(e){try{const n={};return e?.type&&(n.type=e.type),await he(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:a=>{var o;return{data:{providers:(o=a?.providers)!==null&&o!==void 0?o:[]},error:null}}})}catch(n){if(ae(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(e){try{return await he(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _getCustomProvider(e){try{return await he(this.fetch,"GET",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _updateCustomProvider(e,n){try{return await he(this.fetch,"PUT",`${this.url}/admin/custom-providers/${e}`,{body:n,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(ae(a))return{data:null,error:a};throw a}}async _deleteCustomProvider(e){try{return await he(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _adminListPasskeys(e){Gn(this.experimental),jr(e.userId);try{return await he(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(e){Gn(this.experimental),jr(e.userId),jr(e.passkeyId);try{return await he(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/passkeys/${e.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ae(n))return{data:null,error:n};throw n}}}function vb(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}const ar={debug:!!(globalThis&&mS()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class yS extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class bb extends yS{}async function rN(t,e,n){ar.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const a=new globalThis.AbortController;let o;e>0&&(o=setTimeout(()=>{a.abort(),ar.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e)),await Promise.resolve();try{return await globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:a.signal},async l=>{if(l){clearTimeout(o),ar.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,l.name);try{return await n()}finally{ar.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,l.name)}}else{if(e===0)throw ar.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new bb(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(ar.debug)try{const u=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(u,null,"  "))}catch(u){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",u)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(o),await n()}})}catch(l){if(e>0&&clearTimeout(o),l!==null&&typeof l=="object"&&"name"in l&&l.name==="AbortError"&&e>0){if(a.signal.aborted)return ar.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",t),console.warn(`@
40supabase/gotrue-js: Lock "${t}" was not released within ${e}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,{mode:"exclusive",steal:!0},async u=>{if(u){ar.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",t,u.name);try{return await n()}finally{ar.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",t,u.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw ar.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",t),new bb(`Lock "${t}" was released because another request stole it`)}throw l}}function sN(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function vS(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function aN(t){return parseInt(t,16)}function iN(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,a=>a.toString(16).padStart(2,"0")).join("")}function oN(t){var e;const{chainId:n,domain:a,expirationTime:o,issuedAt:l=new Date,nonce:u,notBefore:d,requestId:h,resources:p,scheme:y,uri:g,version:v}=t;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!a)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(u&&u.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${u}`);if(!g)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(v!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${v}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
41`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const _=vS(t.address),w=y?`${y}://${a}`:a,E=t.statement?`${t.statement}
42`:"",x=`${w} wants you to sign in with your Ethereum account:
43${_}
44
45${E}`;let T=`URI: ${g}
46Version: ${v}
47Chain ID: ${n}${u?`
48Nonce: ${u}`:""}
49Issued At: ${l.toISOString()}`;if(o&&(T+=`
50Expiration Time: ${o.toISOString()}`),d&&(T+=`
51Not Before: ${d.toISOString()}`),h&&(T+=`
52Request ID: ${h}`),p){let C=`
53Resources:`;for(const R of p){if(!R||typeof R!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${R}`);C+=`
54- ${R}`}T+=C}return`${x}
55${T}`}class wt extends Error{constructor({message:e,code:n,cause:a,name:o}){var l;super(e,{cause:a}),this.__isWebAuthnError=!0,this.name=(l=o??(a instanceof Error?a.name:void 0))!==null&&l!==void 0?l:"Unknown Error",this.code=n}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Cu extends wt{constructor(e,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:e}),this.name="WebAuthnUnknownError",this.originalError=n}}function lN({error:t,options:e}){var n,a,o;const{publicKey:l}=e;if(!l)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new wt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((n=l.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new wt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((a=l.authenticatorSelection)===null||a===void 0?void 0:a.userVerification)==="required")return new wt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((o=l.authenticatorSelection)===null||o===void 0?void 0:o.userVerification)==="required")return new wt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new wt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new wt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return l.pubKeyCredParams.filter(d=>d.type==="public-key").length===0?new wt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new wt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const u=window.location.hostname;if(bS(u)){if(l.rp.id!==u)return new wt({message:`The RP ID "${l.rp.id}
55" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new wt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(l.user.id.byteLength<1||l.user.id.byteLength>64)return new wt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new wt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new wt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function cN({error:t,options:e}){const{publicKey:n}=e;if(!n)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new wt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new wt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const a=window.location.hostname;if(bS(a)){if(n.rpId!==a)return new wt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new wt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new wt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new wt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class uN{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const up=new uN;function _b(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:n,excludeCredentials:a}=t,o=Yu(t,["challenge","user","excludeCredentials"]),l=Bi(e).buffer,u=Object.assign(Object.assign({},n),{id:Bi(n.id).buffer}),d=Object.assign(Object.assign({},o),{challenge:l,user:u});if(a&&a.length>0){d.excludeCredentials=new Array(a.length);for(let h=0;h<a.length;h++){const p=a[h];d.excludeCredentials[h]=Object.assign(Object.assign({},p),{id:Bi(p.id).buffer,type:p.type||"public-key",transports:p.transports})}}return d}function wb(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:n}=t,a=Yu(t,["challenge","allowCredentials"]),o=Bi(e).buffer,l=Object.assign(Object.assign({},a),{challenge:o});if(n&&n.length>0){l.allowCredentials=new Array(n.length);for(let u=0;u<n.length;u++){const d=n[u];l.allowCredentials[u]=Object.assign(Object.assign({},d),{id:Bi(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return l}function Sb(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t;return{id:t.id,rawId:t.id,response:{attestationObject:va(new Uint8Array(t.response.attestationObject)),clientDataJSON:va(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function Eb(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t,a=t.getClientExtensionResults(),o=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:va(new Uint8Array(o.authenticatorData)),clientDataJSON:va(new Uint8Array(o.clientDataJSON)),signature:va(new Uint8Array(o.signature)),userHandle:o.userHandle?va(new Uint8Array(o.userHandle)):void 0},type:"public-key",clientExtensionResults:a,authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function bS(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function Nu(){var t,e;return!!($t()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.get)=="function")}async function _S(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Cu("Browser returned unexpected credential type",e)}:{data:null,error:new Cu("Empty credential response",e)}}catch(e){return{data:null,error:lN({error:e,options:t})}}}async function wS(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Cu("Browser returned unexpected credential type",e)}:{data:null,error:new Cu("Empty credential response",e)}}catch(e){return{data:null,error:cN({error:e,options:t})}}}const dN={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},fN={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function ju(...t){const e=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),n=o=>o instanceof ArrayBuffer||ArrayBuffer.isView(o),a={};
55for(const o of t)if(o)for(const l in o){const u=o[l];if(u!==void 0)if(Array.isArray(u))a[l]=u;else if(n(u))a[l]=u;else if(e(u)){const d=a[l];e(d)?a[l]=ju(d,u):a[l]=ju(u)}else a[l]=u}return a}function hN(t,e){return ju(dN,t,e||{})}function pN(t,e){return ju(fN,t,e||{})}class mN{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:n,friendlyName:a,signal:o},l){var u;try{const{data:d,error:h}=await this.client.mfa.challenge({factorId:e,webauthn:n});if(!d)return{data:null,error:h};const p=o??up.createNewAbortSignal();if(d.webauthn.type==="create"){const{user:y}=d.webauthn.credential_options.publicKey;if(!y.name){const g=a;if(g)y.name=`${y.id}:${g}`;else{const _=(await this.client.getUser()).data.user,w=((u=_?.user_metadata)===null||u===void 0?void 0:u.name)||_?.email||_?.id||"User";y.name=`${y.id}:${w}`}}y.displayName||(y.displayName=y.name)}switch(d.webauthn.type){case"create":{const y=hN(d.webauthn.credential_options.publicKey,l?.create),{data:g,error:v}=await _S({publicKey:y,signal:p});return g?{data:{factorId:e,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:g}},error:null}:{data:null,error:v}}case"request":{const y=pN(d.webauthn.credential_options.publicKey,l?.request),{data:g,error:v}=await wS(Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:y,signal:p}));return g?{data:{factorId:e,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:g}},error:null}:{data:null,error:v}}}}catch(d){return ae(d)?{data:null,error:d}:{data:null,error:new Kn("Unexpected error in challenge",d)}}}async _verify({challengeId:e,factorId:n,webauthn:a}){return this.client.mfa.verify({factorId:n,challengeId:e,webauthn:a})}async _authenticate({factorId:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:a=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},l){if(!n)return{data:null,error:new bl("rpId is required for WebAuthn authentication")};try{if(!Nu())return{data:null,error:new Kn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this.challenge({factorId:e,webauthn:{rpId:n,rpOrigins:a},signal:o},{request:l});if(!u)return{data:null,error:d};const{webauthn:h}=u;return this._verify({factorId:e,challengeId:u.challengeId,webauthn:{type:h.type,rpId:n,rpOrigins:a,credential_response:h.credential_response}})}catch(u){return ae(u)?{data:null,error:u}:{data:null,error:new Kn("Unexpected error in authenticate",u)}}}async _register({friendlyName:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:a=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},l){if(!n)return{data:null,error:new bl("rpId is required for WebAuthn registration")};try{if(!Nu())return{data:null,error:new Kn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this._enroll({friendlyName:e});if(!u)return await this.client.mfa.listFactors().then(y=>{var g;return(g=y.data)===null||g===void 0?void 0:g.all.find(v=>v.factor_type==="webauthn"&&v.friendly_name===e&&v.status!=="unverified")}).then(y=>y?this.client.mfa.unenroll({factorId:y?.id}):void 0),{data:null,error:d};const{data:h,error:p}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:n,rpOrigins:a},signal:o},{create:l});return h?this._verify({factorId:u.id,challengeId:h.challengeId,webauthn:{rpId:n,rpOrigins:a,type:h.webauthn.type,credential_response:h.webauthn.credential_response}}):{data:null,error:p}}catch(u){return ae(u)?{data:null,error:u}:{data:null,error:new Kn("Unexpected error in register",u)}}}}sN();const gN={url:_2,storageKey:w2,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:S2,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function Tb(t,e,n){return await n()}const Ai={};class _l{get jwks(){var e,n;return(n=(e=Ai[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){Ai[this.storageKey]=Object.assign(Object.assign({},Ai[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=Ai[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Ai[this.storageKey]=Object.assign(Object.assign({},Ai[this.storageKey]),{cachedAt:e})}constructor(e){var n,a,o,l;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const u=Object.assign(Object.assign({},gN),e);if(this.storageKey=u.storageKey,this.instanceID=(n=_l.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,_l.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!u.debug,typeof u.debug=="function"&&(this.logger=u.debug),this.instanceID>0&&$t()){const d=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(d),this.logDebugMessages&&console.trace(d)}if(this.persistSession=u.persistSession,this.autoRefreshToken=u.autoRefreshToken,this.experimental=(a=u.experimental)!==null&&a!==void 0?a:{},this.admin=new nN({url:u.url,headers:u.headers,fetch:u.fetch,experimental:this.experimental}),this.url=u.url,this.headers=u.headers,this.fetch=gS(u.fetch),this.lock=u.lock||Tb,this.detectSessionInUrl=u.detectSessionInUrl,this.flowType=u.flowType,this.hasCustomAuthorizationHeader=u.hasCu
55stomAuthorizationHeader,this.throwOnError=u.throwOnError,this.lockAcquireTimeout=u.lockAcquireTimeout,u.lock?this.lock=u.lock:this.persistSession&&$t()&&(!((o=globalThis?.navigator)===null||o===void 0)&&o.locks)?this.lock=rN:this.lock=Tb,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new mN(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(u.storage?this.storage=u.storage:mS()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=vb(this.memoryStorage)),u.userStorage&&(this.userStorage=u.userStorage)):(this.memoryStorage={},this.storage=vb(this.memoryStorage)),$t()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(d){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",d)}(l=this.broadcastChannel)===null||l===void 0||l.addEventListener("message",async d=>{this._debug("received broadcast notification from other tab or client",d);try{await this._notifyAllSubscribers(d.data.event,d.data.session,!1)}catch(h){this._debug("#broadcastChannel","error",h)}})}u.skipAutoInitialize||this.initialize().catch(d=>{this._debug("#initialize()","error",d)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${fS}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{let n={},a="none";if($t()&&(n=z2(window.location.href),this._isImplicitGrantCallback(n)?a="implicit":await this._isPKCECallback(n)&&(a="pkce")),$t()&&this.detectSessionInUrl&&a!=="none"){const{data:o,error:l}=await this._getSessionFromURL(n,a);if(l){if(this._debug("#_initialize()","error detecting session from URL",l),R2(l)){const h=(e=l.details)===null||e===void 0?void 0:e.code;if(h==="identity_already_exists"||h==="identity_not_found"||h==="single_identity_not_deletable")return{error:l}}return{error:l}}const{session:u,redirectType:d}=o;return this._debug("#_initialize()","detected session in URL",u,"redirect type",d),await this._saveSession(u),setTimeout(async()=>{d==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return ae(n)?this._returnResult({error:n}):this._returnResult({error:new Kn("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,a,o;try{const l=await he(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(a=(n=e?.options)===null||n===void 0?void 0:n.data)!==null&&a!==void 0?a:{},gotrue_meta_security:{captcha_token:(o=e?.options)===null||o===void 0?void 0:o.captchaToken}},xform:Un}),{data:u,error:d}=l;if(d||!u)return this._returnResult({data:{user:null,session:null},error:d});const h=u.session,p=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",h)),this._returnResult({data:{user:p,session:h},error:null})}catch(l){if(ae(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signUp(e){var n,a,o;try{let l;if("email"in e){const{email:y,password:g,options:v}=e;let _=null,w=null;this.flowType==="pkce"&&([_,w]=await xi(this.storage,this.storageKey)),l=await he(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:v?.emailRedirectTo,body:{email:y,password:g,data:(n=v?.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:v?.captchaToken},code_challenge:_,code_challenge_method:w},xform:Un})}else if("phone"in e){const{phone:y,password:g,options:v}=e;l=await he(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:y,password:g,data:(a=v?.data)!==null&&a!==void 0?a:{},channel:(o=v?.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:v?.captchaToken}},xform:Un})}else throw new iu("You must provide either an email or phone number and a password");const{data:u,error:d}=l;if(d||!u)return await Bt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:d});const h=u.session,p=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",h)),this._returnResult({data:{user:p,session:h},error:null})}catch(l){if(await Bt(this.storage,`${this.storageKey}-code-verifier`),ae(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signInWithPassword(e){try{let n;if("email"in e){const{email:l,password:u,options:d}=e;n=await he(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:l,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:gb})}else if("phone"in e){const{phone:l,password:u,options:d}=e;n=await he(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:l,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:gb})}else throw new iu("You must provide either an email or phone number and a password");const{data:a,error:o}=n;
55if(o)return this._returnResult({data:{user:null,session:null},error:o});if(!a||!a.session||!a.user){const l=new Ti;return this._returnResult({data:{user:null,session:null},error:l})}return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:Object.assign({user:a.user,session:a.session},a.weak_password?{weakPassword:a.weak_password}:null),error:o})}catch(n){if(ae(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(e){var n,a,o,l;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(o=e.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(l=e.options)===null||l===void 0?void 0:l.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;switch(n){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(e){var n,a,o,l,u,d,h,p,y,g,v;let _,w;if("message"in e)_=e.message,w=e.signature;else{const{chain:E,wallet:x,statement:T,options:C}=e;let R;if($t())if(typeof x=="object")R=x;else{const X=window;if("ethereum"in X&&typeof X.ethereum=="object"&&"request"in X.ethereum&&typeof X.ethereum.request=="function")R=X.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!C?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");R=x}const B=new URL((n=C?.url)!==null&&n!==void 0?n:window.location.href),Q=await R.request({method:"eth_requestAccounts"}).then(X=>X).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!Q||Q.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const I=vS(Q[0]);let j=(a=C?.signInWithEthereum)===null||a===void 0?void 0:a.chainId;if(!j){const X=await R.request({method:"eth_chainId"});j=aN(X)}const M={domain:B.host,address:I,statement:T,uri:B.href,version:"1",chainId:j,nonce:(o=C?.signInWithEthereum)===null||o===void 0?void 0:o.nonce,issuedAt:(u=(l=C?.signInWithEthereum)===null||l===void 0?void 0:l.issuedAt)!==null&&u!==void 0?u:new Date,expirationTime:(d=C?.signInWithEthereum)===null||d===void 0?void 0:d.expirationTime,notBefore:(h=C?.signInWithEthereum)===null||h===void 0?void 0:h.notBefore,requestId:(p=C?.signInWithEthereum)===null||p===void 0?void 0:p.requestId,resources:(y=C?.signInWithEthereum)===null||y===void 0?void 0:y.resources};_=oN(M),w=await R.request({method:"personal_sign",params:[iN(_),I]})}try{const{data:E,error:x}=await he(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:_,signature:w},!((g=e.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(v=e.options)===null||v===void 0?void 0:v.captchaToken}}:null),xform:Un});if(x)throw x;if(!E||!E.session||!E.user){const T=new Ti;return this._returnResult({data:{user:null,session:null},error:T})}return E.session&&(await this._saveSession(E.session),await this._notifyAllSubscribers("SIGNED_IN",E.session)),this._returnResult({data:Object.assign({},E),error:x})}catch(E){if(ae(E))return this._returnResult({data:{user:null,session:null},error:E});throw E}}async signInWithSolana(e){var n,a,o,l,u,d,h,p,y,g,v,_;let w,E;if("message"in e)w=e.message,E=e.signature;else{const{chain:x,wallet:T,statement:C,options:R}=e;let B;if($t())if(typeof T=="object")B=T;else{const I=window;if("solana"in I&&typeof I.solana=="object"&&("signIn"in I.solana&&typeof I.solana.signIn=="function"||"signMessage"in I.solana&&typeof I.solana.signMessage=="function"))B=I.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 T!="object"||!R?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");B=T}const Q=new URL((n=R?.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in B&&B.signIn){const I=await B.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},R?.signInWithSolana),{version:"1",domain:Q.host,uri:Q.href}),C?{statement:C}:null));let j;if(Array.isArray(I)&&I[0]&&typeof I[0]=="object")j=I[0];else if(I&&typeof I=="object"&&"signedMessage"in I&&"signature"in I)j=I;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in j&&"signature"in j&&(typeof j.signedMessage=="string"||j.signedMessage instanceof Uint8Array)&&j.signature instanceof Uint8Array)w=typeof j.signedMessage=="string"?j.signedMessage:new TextDecoder().decode(j.signedMessage),E=j.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in B)||typeof B.signMessage!="function"||!("publicKey"in B)||typeof B!="object"||!B.publicKey||!("toBase58"in B.publicKey)||typeof B.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${Q.host} wants you to sign in with your Solana account:`,B.publicKey.toBase58(),...C?["",C,""]:[""],"Version: 1",`URI: ${Q.href}`,`Issued At: ${(o=(a=R?.signInWithSolana)===null||a===void 0?void 0:a.issuedAt)!==null&&o!==void 0?o:new Date().toISOString()}`,...!((l=R?.signInWithSolana)===null||l===void 0)&&l.notBefore?[`Not Before: ${R.signInWithSolana.notBefore}`]:[],...!((u=R?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${R.signInWithSolana.expirationTime}`]:[],...!((d=R?.signInWithSolana)===null||d===void 0)&&d.chainId?[`Chain ID: ${R.signInWithSolana.chainId}`]:[],...!((h=R?.signInWithSolana)===null||h===void 0)&&h.nonce?[`Nonce: ${R.signInWithSolana.nonce}`]:[],...!((p=R?.signInWithSolana)===null||p===void 0)&&p.requestId?[`Request ID: ${R.signInWithSolana.requestId}`]:[],...!((g=(y=R?.signInWithSolana)===null||y===void 0?void 0:y.resources)===null||g===void 0)&&g.length?["Resources",...R.signInWithSolana.resources.map(j=>`- ${j}`)]:[]].join(`
56`);const I=await B.signMessage(new TextEncoder().encode(w),"utf8");if(!I||!(I instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");E=I}}try{const{data:x,error:T}=await he(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:va(E)},!((v=e.options)===null||v===void 0)&&v.captchaToken?{gotrue_meta_security:{captcha_token:(_=e.options)===null||_===void 0?void 0:_.captchaToken}}:null),xform:Un});if(T)throw T;if(!x||!x.session||!x.user){const C=new Ti;return this._returnResult({data:{user:null,session:null},error:C})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:T})}
56catch(x){if(ae(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(e){const n=await ha(this.storage,`${this.storageKey}-code-verifier`),[a,o]=(n??"").split("/");try{if(!a&&this.flowType==="pkce")throw new k2;const{data:l,error:u}=await he(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:a},xform:Un});if(await Bt(this.storage,`${this.storageKey}-code-verifier`),u)throw u;if(!l||!l.session||!l.user){const d=new Ti;return this._returnResult({data:{user:null,session:null,redirectType:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers(o==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l.session)),this._returnResult({data:Object.assign(Object.assign({},l),{redirectType:o??null}),error:u})}catch(l){if(await Bt(this.storage,`${this.storageKey}-code-verifier`),ae(l))return this._returnResult({data:{user:null,session:null,redirectType:null},error:l});throw l}}async signInWithIdToken(e){try{const{options:n,provider:a,token:o,access_token:l,nonce:u}=e,d=await he(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:a,id_token:o,access_token:l,nonce:u,gotrue_meta_security:{captcha_token:n?.captchaToken}},xform:Un}),{data:h,error:p}=d;if(p)return this._returnResult({data:{user:null,session:null},error:p});if(!h||!h.session||!h.user){const y=new Ti;return this._returnResult({data:{user:null,session:null},error:y})}return h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("SIGNED_IN",h.session)),this._returnResult({data:h,error:p})}catch(n){if(ae(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(e){var n,a,o,l,u;try{if("email"in e){const{email:d,options:h}=e;let p=null,y=null;this.flowType==="pkce"&&([p,y]=await xi(this.storage,this.storageKey));const{error:g}=await he(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,data:(n=h?.data)!==null&&n!==void 0?n:{},create_user:(a=h?.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:h?.captchaToken},code_challenge:p,code_challenge_method:y},redirectTo:h?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:g})}if("phone"in e){const{phone:d,options:h}=e,{data:p,error:y}=await he(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:d,data:(o=h?.data)!==null&&o!==void 0?o:{},create_user:(l=h?.shouldCreateUser)!==null&&l!==void 0?l:!0,gotrue_meta_security:{captcha_token:h?.captchaToken},channel:(u=h?.channel)!==null&&u!==void 0?u:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:p?.message_id},error:y})}throw new iu("You must provide either an email or phone number.")}catch(d){if(await Bt(this.storage,`${this.storageKey}-code-verifier`),ae(d))return this._returnResult({data:{user:null,session:null},error:d});throw d}}async verifyOtp(e){var n,a;try{let o,l;"options"in e&&(o=(n=e.options)===null||n===void 0?void 0:n.redirectTo,l=(a=e.options)===null||a===void 0?void 0:a.captchaToken);const{data:u,error:d}=await he(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:l}}),redirectTo:o,xform:Un});if(d)throw d;if(!u)throw new Error("An error occurred on token verification.");const h=u.session,p=u.user;return h?.access_token&&(await this._saveSession(h),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",h)),this._returnResult({data:{user:p,session:h},error:null})}catch(o){if(ae(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithSSO(e){var n,a,o,l,u;try{let d=null,h=null;this.flowType==="pkce"&&([d,h]=await xi(this.storage,this.storageKey));const p=await he(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(a=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&a!==void 0?a:void 0}),!((o=e?.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:d,code_challenge_method:h}),headers:this.headers,xform:W2});return!((l=p.data)===null||l===void 0)&&l.url&&$t()&&!(!((u=e.options)===null||u===void 0)&&u.skipBrowserRedirect)&&window.location.assign(p.data.url),this._returnResult(p)}catch(d){if(await Bt(this.storage,`${this.storageKey}-code-verifier`),ae(d))return this._returnResult({data:null,error:d});throw d}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:a}=e;if(a)throw a;if(!n)throw new jt;const{error:o}=await he(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:o})})}catch(e){if(ae(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:a,type:o,options:l}=e,{error:u}=await he(this.fetch,"POST",n,{headers:this.headers,body:{email:a,type:o,gotrue_meta_security:{captcha_token:l?.captchaToken}},redirectTo:l?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:u})}else if("phone"in e){const{phone:a,type:o,options:l}=e,{data:u,error:d}=await he(this.fetch,"POST",n,{headers:this.headers,body:{phone:a,type:o,gotrue_meta_security:{captcha_token:l?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:d})}throw new iu("You must provide either an email or phone number and a type")}catch(n){if(ae(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(e,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const a=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await a,await n()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const a=n();for(this.pendingInLock.push((async()=>{try{await a}catch{}})()),await a;this.pendingInLock.length;){const o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.length)}return await a}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(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 e=null;const n=await ha(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not val
56id"),await this._removeSession())),!e)return{data:{session:null},error:null};const a=e.expires_at?e.expires_at*1e3-Date.now()<Nh:!1;if(this._debug("#__loadSession()",`session has${a?"":" not"} expired`,"expires_at",e.expires_at),!a){if(this.userStorage){const u=await ha(this.userStorage,this.storageKey+"-user");u?.user?e.user=u.user:e.user=Dh()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};e.user=Y2(e.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:o,error:l}=await this._callRefreshToken(e.refresh_token);return l?this._returnResult({data:{session:null},error:l}):this._returnResult({data:{session:o},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(e){try{return e?await he(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Rs}):await this._useSession(async n=>{var a,o,l;const{data:u,error:d}=n;if(d)throw d;return!(!((a=u.session)===null||a===void 0)&&a.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new jt}:await he(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(l=(o=u.session)===null||o===void 0?void 0:o.access_token)!==null&&l!==void 0?l:void 0,xform:Rs})})}catch(n){if(ae(n))return au(n)&&(await this._removeSession(),await Bt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async a=>{const{data:o,error:l}=a;if(l)throw l;if(!o.session)throw new jt;const u=o.session;let d=null,h=null;this.flowType==="pkce"&&e.email!=null&&([d,h]=await xi(this.storage,this.storageKey));const{data:p,error:y}=await he(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n?.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:d,code_challenge_method:h}),jwt:u.access_token,xform:Rs});if(y)throw y;return u.user=p.user,await this._saveSession(u),await this._notifyAllSubscribers("USER_UPDATED",u),this._returnResult({data:{user:u.user},error:null})})}catch(a){if(await Bt(this.storage,`${this.storageKey}-code-verifier`),ae(a))return this._returnResult({data:{user:null},error:a});throw a}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new jt;const n=Date.now()/1e3;let a=n,o=!0,l=null;const{payload:u}=lu(e.access_token);if(u.exp&&(a=u.exp,o=a<=n),o){const{data:d,error:h}=await this._callRefreshToken(e.refresh_token);if(h)return this._returnResult({data:{user:null,session:null},error:h});if(!d)return{data:{user:null,session:null},error:null};l=d}else{const{data:d,error:h}=await this._getUser(e.access_token);if(h)return this._returnResult({data:{user:null,session:null},error:h});l={access_token:e.access_token,refresh_token:e.refresh_token,user:d.user,token_type:"bearer",expires_in:a-n,expires_at:a},await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)}return this._returnResult({data:{user:l.user,session:l},error:null})}catch(n){if(ae(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var a;if(!e){const{data:u,error:d}=n;if(d)throw d;e=(a=u.session)!==null&&a!==void 0?a:void 0}if(!e?.refresh_token)throw new jt;const{data:o,error:l}=await this._callRefreshToken(e.refresh_token);return l?this._returnResult({data:{user:null,session:null},error:l}):o?this._returnResult({data:{user:o.user,session:o},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(ae(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(e,n){var a;try{if(!$t())throw new ou("No browser detected.");
56if(e.error||e.error_description||e.error_code)throw new ou(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new cb("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ou("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new cb("No code detected.");const{data:R,error:B}=await this._exchangeCodeForSession(e.code);if(B)throw B;const Q=new URL(window.location.href);return Q.searchParams.delete("code"),window.history.replaceState(window.history.state,"",Q.toString()),{data:{session:R.session,redirectType:(a=R.redirectType)!==null&&a!==void 0?a:null},error:null}}const{provider_token:o,provider_refresh_token:l,access_token:u,refresh_token:d,expires_in:h,expires_at:p,token_type:y}=e;if(!u||!h||!d||!y)throw new ou("No session defined in URL");const g=Math.round(Date.now()/1e3),v=parseInt(h);let _=g+v;p&&(_=parseInt(p));const w=_-g;w*1e3<=Oi&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${w}s, should have been closer to ${v}s`);const E=_-v;g-E>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",E,_,g):g-E<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",E,_,g);const{data:x,error:T}=await this._getUser(u);if(T)throw T;const C={provider_token:o,provider_refresh_token:l,access_token:u,expires_in:v,expires_at:_,refresh_token:d,token_type:y,user:x.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:C,redirectType:e.type},error:null})}catch(o){if(ae(o))return this._returnResult({data:{session:null,redirectType:null},error:o});throw o}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await ha(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var a;const{data:o,error:l}=n;if(l&&!au(l))return this._returnResult({error:l});const u=(a=o.session)===null||a===void 0?void 0:a.access_token;if(u){const{error:d}=await this.admin.signOut(u,e);if(d&&!(A2(d)&&(d.status===404||d.status===401||d.status===403)||au(d)))return this._returnResult({error:d})}return e!=="others"&&(await this._removeSession(),await Bt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const n=M2(),a={id:n,callback:e,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,a),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:a}}}async _emitInitialSession(e){return await this._useSession(async n=>{var a,o;try{const{data:{session:l},error:u}=n;if(u)throw u;await((a=this.stateChangeEmitters.get(e))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",l)),this._debug("INITIAL_SESSION","callback id",e,"session",l)}catch(l){await((o=this.stateChangeEmitters.get(e))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",l),au(l)?console.warn(l):console.error(l)}})}async resetPasswordForEmail(e,n={}){let a=null,o=null;this.flowType==="pkce"&&([a,o]=await xi(this.storage,this.storageKey,!0));try{return await he(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:a,code_challenge_method:o,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(l){if(await Bt(this.storage,`${this.storageKey}-code-verifier`),ae(l))return this._returnResult({data:null,error:l});throw l}}async getUserIdentities(){var e;try{const{data:n,error:a}=await this.getUser();if(a)throw a;return this._returnResult({data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var n;try{const{data:a,error:o}=await this._useSession(async l=>{var u,d,h,p,y;const{data:g,error:v}=l;if(v)throw v;const _=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(u=e.options)===null||u===void 0?void 0:u.redirectTo,scopes:(d=e.options)===null||d===void 0?void 0:d.scopes,queryParams:(h=e.options)===null||h===void 0?void 0:h.queryParams,skipBrowserRedirect:!0});return await he(this.fetch,"GET",_,{headers:this.headers,jwt:(y=(p=g.session)===null||p===void 0?void 0:p.access_token)!==null&&y!==void 0?y:void 0})});if(o)throw o;return $t()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(a?.url),this._returnResult({data:{provider:e.provider,url:a?.url},error:null})}catch(a){if(ae(a))return this._returnResult({data:{provider:e.provider,url:null},error:a});throw a}}async linkIdentityIdToken(e){return await this._useSession(async n=>{var a;try{const{error:o,data:{session:l}}=n;if(o)throw o;const{options:u,provider:d,token:h,access_token:p,nonce:y}=e,g=await he(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(a=l?.access_token)!==null&&a!==void 0?a:void 0,body:{provider:d,id_token:h,access_token:p,nonce:y,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:Un}),{data:v,error:_}=g;return _?this._returnResult({data:{user:null,session:null},error:_}):!v||!v.session||!v.user?this._returnResult({data:{user:null,session:null},error:new Ti}):(v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("USER_UPDATED",v.session)),this._returnResult({data:v,error:_}))}catch(o){if(await Bt(this.storage,`${this.storageKey}-code-verifier`),ae(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}})}async unlinkIdentity(e){try{return await this._useSession(async n=>{var a,o;const{data:l,error:u}=n;if(u)throw u;
56return await he(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(o=(a=l.session)===null||a===void 0?void 0:a.access_token)!==null&&o!==void 0?o:void 0})})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const a=Date.now();return await I2(async o=>(o>0&&await P2(200*Math.pow(2,o-1)),this._debug(n,"refreshing attempt",o),await he(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Un})),(o,l)=>{const u=200*Math.pow(2,o);return l&&jh(l)&&Date.now()+u-a<Oi})}catch(a){if(this._debug(n,"error",a),ae(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const a=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",a),$t()&&!n.skipBrowserRedirect&&window.location.assign(a),{data:{provider:e,url:a},error:null}}async _recoverAndRefresh(){var e,n;const a="#_recoverAndRefresh()";this._debug(a,"begin");try{const o=await ha(this.storage,this.storageKey);if(o&&this.userStorage){let u=await ha(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:o.user},await Ci(this.userStorage,this.storageKey+"-user",u)),o.user=(e=u?.user)!==null&&e!==void 0?e:Dh()}else if(o&&!o.user&&!o.user){const u=await ha(this.storage,this.storageKey+"-user");u&&u?.user?(o.user=u.user,await Bt(this.storage,this.storageKey+"-user"),await Ci(this.storage,this.storageKey,o)):o.user=Dh()}if(this._debug(a,"session from storage",o),!this._isValidSession(o)){this._debug(a,"session is not valid"),o!==null&&await this._removeSession();return}const l=((n=o.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Nh;if(this._debug(a,`session has${l?"":" not"} expired with margin of ${Nh}s`),l){if(this.autoRefreshToken&&o.refresh_token){const{error:u}=await this._callRefreshToken(o.refresh_token);u&&(console.error(u),jh(u)||(this._debug(a,"refresh failed with a non-retryable error, removing the session",u),await this._removeSession()))}}else if(o.user&&o.user.__isUserNotAvailableProxy===!0)try{const{data:u,error:d}=await this._getUser(o.access_token);!d&&u?.user?(o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)):this._debug(a,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(a,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",o)}catch(o){this._debug(a,"error",o),console.error(o);return}finally{this._debug(a,"end")}}async _callRefreshToken(e){var n,a;if(!e)throw new jt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new Xu;const{data:l,error:u}=await this._refreshAccessToken(e);if(u)throw u;if(!l.session)throw new jt;await this._saveSession(l.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",l.session);const d={data:l.session,error:null};return this.refreshingDeferred.resolve(d),d}catch(l){if(this._debug(o,"error",l),ae(l)){const u={data:null,error:l};return jh(l)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(u),u}throw(a=this.refreshingDeferred)===null||a===void 0||a.reject(l),l}finally{this.refreshingDeferred=null,this._debug(o,"end")}}async _notifyAllSubscribers(e,n,a=!0){const o=`#_notifyAllSubscribers(${e})`;this._debug(o,"begin",n,`broadcast = ${a}`);try{this.broadcastChannel&&a&&this.broadcastChannel.postMessage({event:e,session:n});const l=[],u=Array.from(this.stateChangeEmitters.values()).map(async d=>{try{await d.callback(e,n)}catch(h){l.push(h)}});if(await Promise.all(u),l.length>0){for(let d=0;d<l.length;d+=1)console.error(l[d]);throw l[0]}}finally{this._debug(o,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await Bt(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},e),a=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!a&&n.user&&await Ci(this.userStorage,this.storageKey+"-user",{user:n.user});const o=Object.assign({},n);delete o.user;const l=pb(o);await Ci(this.storage,this.storageKey,l)}else{const o=pb(n);await Ci(this.storage,this.storageKey,o)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Bt(this.storage,this.storageKey),await Bt(this.storage,this.storageKey+"-code-verifier"),await Bt(this.storage,this.storageKey+"-user"),this.userStorage&&await Bt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&$t()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",e)}
56catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Oi);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async n=>{const{data:{session:a}}=n;if(!a||!a.refresh_token||!a.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((a.expires_at*1e3-e)/Oi);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${Oi}ms, refresh threshold is ${ip} ticks`),o<=ip&&await this._callRefreshToken(a.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(e){if(e instanceof yS)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!$t()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,n,a){const o=[`provider=${encodeURIComponent(n)}`];if(a?.redirectTo&&o.push(`redirect_to=${encodeURIComponent(a.redirectTo)}`),a?.scopes&&o.push(`scopes=${encodeURIComponent(a.scopes)}`),this.flowType==="pkce"){const[l,u]=await xi(this.storage,this.storageKey),d=new URLSearchParams({code_challenge:`${encodeURIComponent(l)}`,code_challenge_method:`${encodeURIComponent(u)}`});o.push(d.toString())}if(a?.queryParams){const l=new URLSearchParams(a.queryParams);o.push(l.toString())}return a?.skipBrowserRedirect&&o.push(`skip_http_redirect=${a.skipBrowserRedirect}`),`${e}?${o.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var a;const{data:o,error:l}=n;return l?this._returnResult({data:null,error:l}):await he(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(a=o?.session)===null||a===void 0?void 0:a.access_token})})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(e){try{return await this._useSession(async n=>{var a,o;const{data:l,error:u}=n;if(u)return this._returnResult({data:null,error:u});const d=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:h,error:p}=await he(this.fetch,"POST",`${this.url}/factors`,{body:d,headers:this.headers,jwt:(a=l?.session)===null||a===void 0?void 0:a.access_token});return p?this._returnResult({data:null,error:p}):(e.factorType==="totp"&&h.type==="totp"&&(!((o=h?.totp)===null||o===void 0)&&o.qr_code)&&(h.totp.qr_code=`data:image/svg+xml;utf-8,${h.totp.qr_code}`),this._returnResult({data:h,error:null}))})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _verify(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var a;const{data:o,error:l}=n;if(l)return this._returnResult({data:null,error:l});const u=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?Sb(e.webauthn.credential_response):Eb(e.webauthn.credential_response)})}:{code:e.code}),{data:d,error:h}=await he(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:u,headers:this.headers,jwt:(a=o?.session)===null||a===void 0?void 0:a.access_token});return h?this._returnResult({data:null,error:h}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+d.expires_in},d)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",d),this._returnResult({data:d,error:h}))})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var a;const{data:o,error:l}=n;if(l)return this._returnResult({data:null,error:l});const u=await he(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(a=o?.session)===null||a===void 0?void 0:a.access_token});if(u.error)return u;const{data:d}=u;if(d.type!=="webauthn")return{data:d,error:null};switch(d.webauthn.type){case"create":return{data:Object.assign(Object.assign({},d),{webauthn:Object.assign(Object.assign({},d.webauthn),{credential_options:Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:_b(d.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},d),{webauthn:Object.assign(Object.assign({},d.webauthn),{credential_options:Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:wb(d.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(e){const{data:n,error:a}=await this._challenge({factorId:e.factorId});return a?this._returnResult({data:null,error:a}):await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){var e;const{data:{user:n},error:a}=await this.getUser();if(a)return{data:null,error:a};const o={all:[],phone:[],totp:[],webauthn:[]};for(const l of(e=n?.factors)!==null&&e!==void 0?e:[])o.all.push(l),l.status==="verified"&&o[l.factor_type].push(l);return{data:o,error:null}}async _getAuthenticatorAssuranceLevel(e){var n,a,o,l;if(e)try{const{payload:_}=lu(e);let w=null;_.aal&&(w=_.aal);let E=w;const{data:{user:x},error:T}=await this.getUser(e);if(T)return this._returnResult({data:null,error:T});
56((a=(n=x?.factors)===null||n===void 0?void 0:n.filter(B=>B.status==="verified"))!==null&&a!==void 0?a:[]).length>0&&(E="aal2");const R=_.amr||[];return{data:{currentLevel:w,nextLevel:E,currentAuthenticationMethods:R},error:null}}catch(_){if(ae(_))return this._returnResult({data:null,error:_});throw _}const{data:{session:u},error:d}=await this.getSession();if(d)return this._returnResult({data:null,error:d});if(!u)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:h}=lu(u.access_token);let p=null;h.aal&&(p=h.aal);let y=p;((l=(o=u.user.factors)===null||o===void 0?void 0:o.filter(_=>_.status==="verified"))!==null&&l!==void 0?l:[]).length>0&&(y="aal2");const v=h.amr||[];return{data:{currentLevel:p,nextLevel:y,currentAuthenticationMethods:v},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async n=>{const{data:{session:a},error:o}=n;return o?this._returnResult({data:null,error:o}):a?await he(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:a.access_token,xform:l=>({data:l,error:null})}):this._returnResult({data:null,error:new jt})})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(e,n){try{return await this._useSession(async a=>{const{data:{session:o},error:l}=a;if(l)return this._returnResult({data:null,error:l});if(!o)return this._returnResult({data:null,error:new jt});const u=await he(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"approve"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&$t()&&!n?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(a){if(ae(a))return this._returnResult({data:null,error:a});throw a}}async _denyAuthorization(e,n){try{return await this._useSession(async a=>{const{data:{session:o},error:l}=a;if(l)return this._returnResult({data:null,error:l});if(!o)return this._returnResult({data:null,error:new jt});const u=await he(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"deny"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&$t()&&!n?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(a){if(ae(a))return this._returnResult({data:null,error:a});throw a}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:n},error:a}=e;return a?this._returnResult({data:null,error:a}):n?await he(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new jt})})}catch(e){if(ae(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async n=>{const{data:{session:a},error:o}=n;return o?this._returnResult({data:null,error:o}):a?(await he(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:a.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new jt})})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(e,n={keys:[]}){let a=n.keys.find(d=>d.kid===e);if(a)return a;const o=Date.now();if(a=this.jwks.keys.find(d=>d.kid===e),a&&this.jwks_cached_at+T2>o)return a;const{data:l,error:u}=await he(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(u)throw u;return!l.keys||l.keys.length===0||(this.jwks=l,this.jwks_cached_at=o,a=l.keys.find(d=>d.kid===e),!a)?null:a}async getClaims(e,n={}){try{let a=e;if(!a){const{data:_,error:w}
56=await this.getSession();if(w||!_.session)return this._returnResult({data:null,error:w});a=_.session.access_token}const{header:o,payload:l,signature:u,raw:{header:d,payload:h}}=lu(a);n?.allowExpired||F2(l.exp);const p=!o.alg||o.alg.startsWith("HS")||!o.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(o.kid,n?.keys?{keys:n.keys}:n?.jwks);if(!p){const{error:_}=await this.getUser(a);if(_)throw _;return{data:{claims:l,header:o,signature:u},error:null}}const y=Z2(o.alg),g=await crypto.subtle.importKey("jwk",p,y,!0,["verify"]);if(!await crypto.subtle.verify(y,g,u,D2(`${d}.${h}`)))throw new cp("Invalid JWT signature");return{data:{claims:l,header:o,signature:u},error:null}}catch(a){if(ae(a))return this._returnResult({data:null,error:a});throw a}}async signInWithPasskey(e){var n,a,o;Gn(this.experimental);try{if(!Nu())return this._returnResult({data:null,error:new Kn("Browser does not support WebAuthn",null)});const{data:l,error:u}=await this._startPasskeyAuthentication({options:{captchaToken:(n=e?.options)===null||n===void 0?void 0:n.captchaToken}});if(u||!l)return this._returnResult({data:null,error:u});const d=wb(l.options),h=(o=(a=e?.options)===null||a===void 0?void 0:a.signal)!==null&&o!==void 0?o:up.createNewAbortSignal(),{data:p,error:y}=await wS({publicKey:d,signal:h});if(y||!p)return this._returnResult({data:null,error:y??new Kn("WebAuthn ceremony failed",null)});const g=Eb(p);return this._verifyPasskeyAuthentication({challengeId:l.challenge_id,credential:g})}catch(l){if(ae(l))return this._returnResult({data:null,error:l});throw l}}async registerPasskey(e){var n,a;Gn(this.experimental);try{if(!Nu())return this._returnResult({data:null,error:new Kn("Browser does not support WebAuthn",null)});const{data:o,error:l}=await this._startPasskeyRegistration();if(l||!o)return this._returnResult({data:null,error:l});const u=_b(o.options),d=(a=(n=e?.options)===null||n===void 0?void 0:n.signal)!==null&&a!==void 0?a:up.createNewAbortSignal(),{data:h,error:p}=await _S({publicKey:u,signal:d});if(p||!h)return this._returnResult({data:null,error:p??new Kn("WebAuthn ceremony failed",null)});const y=Sb(h);return this._verifyPasskeyRegistration({challengeId:o.challenge_id,credential:y})}catch(o){if(ae(o))return this._returnResult({data:null,error:o});throw o}}async _startPasskeyRegistration(){Gn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:n},error:a}=e;if(a)return this._returnResult({data:null,error:a});if(!n)return this._returnResult({data:null,error:new jt});const{data:o,error:l}=await he(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:o,error:null})})}catch(e){if(ae(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){Gn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:a},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!a)return this._returnResult({data:null,error:new jt});const{data:l,error:u}=await he(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:a.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:l,error:null})})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(e){var n;Gn(this.experimental);try{const{data:a,error:o}=await he(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=e?.options)===null||n===void 0?void 0:n.captchaToken}}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:a,error:null})}catch(a){if(ae(a))return this._returnResult({data:null,error:a});throw a}}async _verifyPasskeyAuthentication(e){Gn(this.experimental);try{const{data:n,error:a}=await he(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:Un});return a?this._returnResult({data:null,error:a}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){Gn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:n},error:a}=e;if(a)return this._returnResult({data:null,error:a});if(!n)return this._returnResult({data:null,error:new jt});const{data:o,error:l}=await he(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:u=>({data:u,error:null})});return l?this._returnResult({data:null,error:l}):this._returnResult({data:o,error:null})})}catch(e){if(ae(e))return this._returnResult({data:null,error:e});throw e}}async _updatePasskey(e){Gn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:a},error:o}=n;
56if(o)return this._returnResult({data:null,error:o});if(!a)return this._returnResult({data:null,error:new jt});const{data:l,error:u}=await he(this.fetch,"PATCH",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:a.access_token,body:{friendly_name:e.friendlyName}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:l,error:null})})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(e){Gn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:a},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!a)return this._returnResult({data:null,error:new jt});const{error:l}=await he(this.fetch,"DELETE",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:a.access_token,noResolveJson:!0});return l?this._returnResult({data:null,error:l}):this._returnResult({data:null,error:null})})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}}_l.nextInstanceID={};const yN=_l,vN="2.105.4";let Wo="";typeof Deno<"u"?Wo="deno":typeof document<"u"?Wo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Wo="react-native":Wo="node";const bN={"X-Client-Info":`supabase-js-${Wo}/${vN}`},_N={headers:bN},wN={schema:"public"},SN={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},EN={};function wl(t){"@babel/helpers - typeof";return wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wl(t)}function TN(t,e){if(wl(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(wl(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xN(t){var e=TN(t,"string");return wl(e)=="symbol"?e:e+""}function AN(t,e,n){return(e=xN(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function ft(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xb(Object(n),!0).forEach(function(a){AN(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xb(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}const RN=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),kN=()=>Headers,ON=(t,e,n)=>{const a=RN(n),o=kN();return async(l,u)=>{var d;const h=(d=await e())!==null&&d!==void 0?d:t;let p=new o(u?.headers);return p.has("apikey")||p.set("apikey",t),p.has("Authorization")||p.set("Authorization",`Bearer ${h}`),a(l,ft(ft({},u),{},{headers:p}))}};function CN(t){return t.endsWith("/")?t:t+"/"}function NN(t,e){var n,a;const{db:o,auth:l,realtime:u,global:d}=t,{db:h,auth:p,realtime:y,global:g}=e,v={db:ft(ft({},h),o),auth:ft(ft({},p),l),realtime:ft(ft({},y),u),storage:{},global:ft(ft(ft({},g),d),{},{headers:ft(ft({},(n=g?.headers)!==null&&n!==void 0?n:{}),(a=d?.headers)!==null&&a!==void 0?a:{})}),accessToken:async()=>""};return t.accessToken?v.accessToken=t.accessToken:delete v.accessToken,v}function jN(t){const e=t?.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(CN(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var DN=class extends yN{constructor(t){super(t)}},LN=class{constructor(t,e,n){var a,o;this.supabaseUrl=t,this.supabaseKey=e;const l=jN(t);if(!e)throw new Error("supabaseKey is required.");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:wN,realtime:EN,auth:ft(ft({},SN),{},{storageKey:u}),global:_N},h=NN(n??{},d);if(this.storageKey=(a=h.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(o=h.global.headers)!==null&&o!==void 0?o:{},h.accessToken)this.accessToken=h.accessToken,this.auth=new Proxy({},{get:(y,g)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(g)} is not possible`)}});else{var p;this.auth=this._initSupabaseAuthClient((p=h.auth)!==null&&p!==void 0?p:{},this.headers,h.global.fetch)}this.fetch=ON(e,this._getAccessToken.bind(this),h.global.fetch),this.realtime=this._initRealtimeClient(ft({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},h.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(y=>this.realtime.setAuth(y)).catch(y=>console.warn("Failed to set initial Realtime auth token:",y)),this.rest=new iC(new URL("rest/v1",l).href,{headers:this.headers,schema:h.db.schema,fetch:this.fetch,timeout:h.db.timeout,urlLengthLimit:h.db.urlLengthLimit}),this.storage=new b2(this.storageUrl.href,this.headers,this.fetch,n?.storage),h.accessToken||this._listenForAuthEvents()}get functions(){return new QO(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,n)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,n;if(t.accessToken)return await t.accessToken();const{data:a}=await t.auth.getSession();return(e=(n=a.session)===null||n===void 0?void 0:n.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:a,userStorage:o,storageKey:l,flowType:u,lock:d,debug:h,throwOnError:p,experimental:y,lockAcquireTimeout:g,skipAutoInitialize:v},_,w){const E={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new DN({url:this.authUrl.href,headers:ft(ft({},E),_),storageKey:l,autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:a,userStorage:o,flowType:u,lock:d,debug:h,throwOnError:p,experimental:y,fetch:w,lockAcquireTimeout:g,skipAutoInitialize:v,hasCustomAuthorizationHeader:Object.keys(this.headers).some(x=>x.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new qC(this.realtimeUrl.href,ft(ft({},t),{},{params:ft(ft({},{apikey:this.supabaseKey}),t?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e?.access_token)})}_handleTokenChanged(t,e,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const MN=(t,e,n)=>new LN(t,e,n);function zN(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const n=e.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}zN()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
56ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function UN(){if(typeof window>"u")return;const t=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(x=>t===x||t.endsWith("."+x)),a="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",o=n?t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+a+")(?:-dev)?(?=\\.|$)","i"))?.[1]??t.match(new RegExp("^("+a+")(?=[.-])","i"))?.[1]:void 0,l=window.parent&&window.parent!==window;if(!o||!l)return localStorage;const u=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),d=u?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,h=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),p=h&&d.test(h)?[h]:u?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],y="lovable-preview-auth:result",g=2e3,v=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),_=(x,T,C)=>new Promise(R=>{const B=v();let Q=!1,I;const j=ce=>{Q||(Q=!0,clearTimeout(I),window.removeEventListener("message",M),R(ce))},M=ce=>{if(p.indexOf(ce.origin)<0)return;const Z=ce.data;Z&&Z.type===y&&Z.requestId===B&&j(Z)};window.addEventListener("message",M);const X={type:x,requestId:B,projectId:o,key:T};C!==void 0&&(X.value=C);for(const ce of p)window.parent.postMessage(X,ce);I=setTimeout(()=>j(null),g)});let w=!0;const E=250;return{getItem:async x=>{let T=await _("lovable-preview-auth:get",x);return!T&&w&&(await new Promise(C=>setTimeout(C,E)),T=await _("lovable-preview-auth:get",x)),w=!1,T&&T.ok&&typeof T.value=="string"?T.value===""?(localStorage.removeItem(x),null):T.value:localStorage.getItem(x)},setItem:(x,T)=>(localStorage.setItem(x,T),_("lovable-preview-auth:set",x,T).then(C=>{C&&C.ok&&typeof C.value=="string"&&localStorage.getItem(x)===T&&(C.value===""?localStorage.removeItem(x):localStorage.setItem(x,C.value))})),removeItem:x=>(localStorage.removeItem(x),_("lovable-preview-auth:remove",x).then(()=>{}))}}function PN(){return MN("https://hynpwricsnnkppovnlhl.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imh5bnB3cmljc25ua3Bwb3ZubGhsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Nzg5NTEzMjUsImV4cCI6MjA5NDUyNzMyNX0.VbupqG4J0WUNYsG-mYml4loW05XFhVYgID07sVB-Hbc",{auth:{storage:UN(),persistSession:!0,autoRefreshToken:!0}})}let Mh;const SS=new Proxy({},{get(t,e,n){return Mh||(Mh=PN()),Reflect.get(Mh,e,n)}}),mz=Object.freeze(Object.defineProperty({__proto__:null,supabase:SS},Symbol.toStringTag,{value:"Module"})),IN=Os({type:"function"}).client(async({next:t})=>{const{data:e}=await SS.auth.getSession(),n=e.session?.access_token;return t({headers:n?{Authorization:`Bearer ${n}`}:{}})}),BN=Os(),Ab=FO(()=>({requestMiddleware:[BN],functionMiddleware:[IN]}));var Cl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},$N=class extends Cl{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Jp=new $N,qN={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},HN=class{#e=qN;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},ba=new HN;function VN(t){setTimeout(t,0)}var GN=typeof window>"u"||"Deno"in globalThis;function pn(){}function FN(t,e){return typeof t=="function"?t(e):t}function dp(t){return typeof t=="number"&&t>=0&&t!==1/0}function ES(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ds(t,e){return typeof t=="function"?t(e):t}function Tn(t,e){return typeof t=="function"?t(e):t}function Rb(t,e){const{type:n="all",exact:a,fetchStatus:o,predicate:l,queryKey:u,stale:d}=t;if(u){if(a){if(e.queryHash!==Xp(u,e.options))return!1}else if(!El(e.queryKey,u))return!1}if(n!=="all"){const h=e.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||o&&o!==e.state.fetchStatus||l&&!l(e))}function kb(t,e){const{exact:n,status:a,predicate:o,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(Sl(e.options.mutationKey)!==Sl(l))return!1}else if(!El(e.options.mutationKey,l))return!1}return!(a&&e.state.status!==a||o&&!o(e))}function Xp(t,e){return(e?.queryKeyHashFn||Sl)(t)}function Sl(t){return JSON.stringify(t,(e,n)=>hp(n)?Object.keys(n).sort().reduce((a,o)=>(a[o]=n[o],a),{}):n)}function El(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>El(t[n],e[n])):!1}var ZN=Object.prototype.hasOwnProperty;function TS(t,e,n=0){if(t===e)return t;if(n>500)return e;const a=Ob(t)&&Ob(e);if(!a&&!(hp(t)&&hp(e)))return e;const l=(a?t:Object.keys(t)).length,u=a?e:Object.keys(e),d=u.length,h=a?new Array(d):{};let p=0;for(let y=0;y<d;y++){const g=a?y:u[y],v=t[g],_=e[g];
vendor: 44,591 bytes, line 56
56if(v===_){h[g]=v,(a?y<l:ZN.call(t,g))&&p++;continue}if(v===null||_===null||typeof v!="object"||typeof _!="object"){h[g]=_;continue}const w=TS(v,_,n+1);h[g]=w,w===v&&p++}return l===d&&p===l?t:h}function fp(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Ob(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function hp(t){if(!Cb(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Cb(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Cb(t){return Object.prototype.toString.call(t)==="[object Object]"}function KN(t){return new Promise(e=>{ba.setTimeout(e,t)})}function pp(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?TS(t,e):e}function YN(t,e,n=0){const a=[...t,e];return n&&a.length>n?a.slice(1):a}function QN(t,e,n=0){const a=[e,...t];return n&&a.length>n?a.slice(0,-1):a}var Wp=Symbol();function xS(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===Wp?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function AS(t,e){return typeof t=="function"?t(...e):!!t}function JN(t,e,n){let a=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??=e(),a||(a=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),t}var Tl=(()=>{let t=()=>GN;return{isServer(){return t()},setIsServer(e){t=e}}})();function mp(){let t,e;const n=new Promise((o,l)=>{t=o,e=l});n.status="pending",n.catch(()=>{});function a(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{a({status:"fulfilled",value:o}),t(o)},n.reject=o=>{a({status:"rejected",reason:o}),e(o)},n}var XN=VN;function WN(){let t=[],e=0,n=d=>{d()},a=d=>{d()},o=XN;const l=d=>{e?t.push(d):o(()=>{n(d)})},u=()=>{const d=t;t=[],d.length&&o(()=>{a(()=>{d.forEach(h=>{n(h)})})})};return{batch:d=>{let h;e++;try{h=d()}finally{e--,e||u()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{a=d},setScheduler:d=>{o=d}}}var qt=WN(),ej=class extends Cl{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},Du=new ej;function tj(t){return Math.min(1e3*2**t,3e4)}function RS(t){return(t??"online")==="online"?Du.isOnline():!0}var gp=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function kS(t){let e=!1,n=0,a;const o=mp(),l=()=>o.status!=="pending",u=E=>{if(!l()){const x=new gp(E);v(x),t.onCancel?.(x)}},d=()=>{e=!0},h=()=>{e=!1},p=()=>Jp.isFocused()&&(t.networkMode==="always"||Du.isOnline())&&t.canRun(),y=()=>RS(t.networkMode)&&t.canRun(),g=E=>{l()||(a?.(),o.resolve(E))},v=E=>{l()||(a?.(),o.reject(E))},_=()=>new Promise(E=>{a=x=>{(l()||p())&&E(x)},t.onPause?.()}).then(()=>{a=void 0,l()||t.onContinue?.()}),w=()=>{if(l())return;let E;const x=n===0?t.initialPromise:void 0;try{E=x??t.fn()}catch(T){E=Promise.reject(T)}Promise.resolve(E).then(g).catch(T=>{if(l())return;const C=t.retry??(Tl.isServer()?0:3),R=t.retryDelay??tj,B=typeof R=="function"?R(n,T):R,Q=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,T);if(e||!Q){v(T);return}n++,t.onFail?.(n,T),KN(B).then(()=>p()?void 0:_()).then(()=>{e?v(T):w()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(a?.(),o),cancelRetry:d,continueRetry:h,canStart:y,start:()=>(y()?w():_().then(w),o)}}var OS=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dp(this.gcTime)&&(this.#e=ba.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Tl.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(ba.clearTimeout(this.#e),this.#e=void 0)}},nj=class extends OS{#e;#t;#n;#s;#r;#i;#a;constructor(t){super(),this.#a=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#s=t.client,this.#n=this.#s.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=jb(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#i,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=jb(this.options);e.data!==void 0&&(this.setState(Nb(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,e){const n=pp(this.state.data,t,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#l({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(pn).catch(pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Tn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wp||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ds(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!ES(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#r&&(this.#a||this.#o()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#o(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,a=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},o=()=>{const d=xS(this.options,e),p=(()=>{const y={client:this.#s,queryKey:this.queryKey,meta:this.meta};return a(y),y})();return this.#a=!1,this.options.persister?this.options.persister(d,p,this):d(p)},u=(()=>{const d={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return a(d),d})();this.options.behavior?.onFetch(u,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#l({type:"fetch",meta:u.fetchOptions?.meta}),this.#r=kS({initialPromise:e?.initialPromise,fn:u.fetchFn,onCancel:d=>{d instanceof gp&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(d,h)=>{this.#l({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof gp){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#l({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#l(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...CS(n.data,this.options),fetchMeta:t.meta??null};case"success":const a={...n,...Nb(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?a:void 0,a;case"error":const o=t.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),qt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function CS(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:RS(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Nb(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function jb(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,a=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var rj=class extends Cl{constructor(t,e){super(),this.options=e,this.#e=t,this.#o=null,this.#a=mp(),this.bindMethods(),this.setOptions(e)}#e;#t=void 0;#n=void 0;#s=void 0;#r;#i;#a;#o;#l;#h;#p;#u;#d;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Db(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yp(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yp(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#w(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Tn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),e._defaulted&&!fp(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&Lb(this.#t,n,this.options,e)&&this.#f(),this.updateResult(),a&&(this.#t!==n||Tn(this.options.enabled,this.#t)!==Tn(e.enabled,this.#t)||Ds(this.options.staleTime,this.#t)!==Ds(e.staleTime,this.#t))&&this.#g();const o=this.#y();a&&(this.#t!==n||Tn(this.options.enabled,this.#t)!==Tn(e.enabled,this.#t)||o!==this.#c)&&this.#v(o)}getOptimisticResult(t){const e=this.#e.getQueryCache().build(this.#e,t),n=this.createResult(e,t);return aj(this,n)&&(this.#s=n,this.#i=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#s}trackResult(t,e){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),e?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#e.defaultQueryOptions(t),n=this.#e.getQueryCache().build(this.#e,e);return n.fetch().then(()=>this.createResult(n,e))}fetch(t){return this.#f({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#f(t){this.#S();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(pn)),e}#g(){this.#_();const t=Ds(this.options.staleTime,this.#t);if(Tl.isServer()||this.#s.isStale||!dp(t))return;const n=ES(this.#s.dataUpdatedAt,t)+1;this.#u=ba.setTimeout(()=>{this.#s.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(t){this.#w(),this.#c=t,!(Tl.isServer()||Tn(this.options.enabled,this.#t)===!1||!dp(this.#c)||this.#c===0)&&(this.#d=ba.setInterval(()=>{(this.options.refetchIntervalInBackground||Jp.isFocused())&&this.#f()},this.#c))}#b(){this.#g(),this.#v(this.#y())}#_(){this.#u!==void 0&&(ba.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#d!==void 0&&(ba.clearInterval(this.#d),this.#d=void 0)}createResult(t,e){const n=this.#t,a=this.options,o=this.#s,l=this.#r,u=this.#i,h=t!==n?t.state:this.#n,{state:p}=t;let y={...p},g=!1,v;if(e._optimisticResults){const M=this.hasListeners(),X=!M&&Db(t,e),ce=M&&Lb(t,n,e,a);(X||ce)&&(y={...y,...CS(p.data,t.options)}),e._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:_,errorUpdatedAt:w,status:E}=y;v=y.data;let x=!1;if(e.placeholderData!==void 0&&v===void 0&&E==="pending"){let M;o?.isPlaceholderData&&e.placeholderData===u?.placeholderData?(M=o.data,x=!0):M=typeof e.placeholderData=="function"?e.placeholderData(this.#p?.state.data,this.#p):e.placeholderData,M!==void 0&&(E="success",v=pp(o?.data,M,e),g=!0)}if(e.select&&v!==void 0&&!x)if(o&&v===l?.data&&e.select===this.#l)v=this.#h;else try{this.#l=e.select,v=e.select(v),v=pp(o?.data,v,e),this.#h=v,this.#o=null}catch(M){this.#o=M}this.#o&&(_=this.#o,v=this.#h,w=Date.now(),E="error");const T=y.fetchStatus==="fetching",C=E==="pending",R=E==="error",B=C&&T,Q=v!==void 0,j={status:E,fetchStatus:y.fetchStatus,isPending:C,isSuccess:E==="success",isError:R,isInitialLoading:B,isLoading:B,data:v,dataUpdatedAt:y.dataUpdatedAt,error:_,errorUpdatedAt:w,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:y.dataUpdateCount>h.dataUpdateCount||y.errorUpdateCount>h.errorUpdateCount,isFetching:T,isRefetching:T&&!C,isLoadingError:R&&!Q,isPaused:y.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:R&&Q,isStale:em(t,e),refetch:this.refetch,promise:this.#a,isEnabled:Tn(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=j.data!==void 0,X=j.status==="error"&&!M,ce=te=>{X?te.reject(j.error):M&&te.resolve(j.data)},Z=()=>{const te=this.#a=j.promise=mp();ce(te)},F=this.#a;switch(F.status){case"pending":t.queryHash===n.queryHash&&ce(F);break;case"fulfilled":(X||j.data!==F.value)&&Z();break;case"rejected":(!X||j.error!==F.reason)&&Z();break}}return j}updateResult(){const t=this.#s,e=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#p=this.#t),fp(e,t))return;this.#s=e;const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.#m.size)return!0;const l=new Set(o??this.#m);return this.options.throwOnError&&l.add("error"),Object.keys(this.#s).some(u=>{const d=u;return this.#s[d]!==t[d]&&l.has(d)})};this.#E({listeners:n()})}#S(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(t){qt.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#s)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function sj(t,e){return Tn(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&Tn(e.retryOnMount,t)===!1)}function Db(t,e){return sj(t,e)||t.state.data!==void 0&&yp(t,e,e.refetchOnMount)}function yp(t,e,n){if(Tn(e.enabled,t)!==!1&&Ds(e.staleTime,t)!=="static"){const a=typeof n=="function"?n(t):n;return a==="always"||a!==!1&&em(t,e)}return!1}function Lb(t,e,n,a){return(t!==e||Tn(a.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&em(t,n)}function em(t,e){return Tn(e.enabled,t)!==!1&&t.isStaleByTime(Ds(e.staleTime,t))}function aj(t,e){return!fp(t.getCurrentResult(),e)}function Mb(t){return{onFetch:(e,n)=>{const a=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,l=e.state.data?.pages||[],u=e.state.data?.pageParams||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let y=!1;const g=w=>{JN(w,()=>e.signal,()=>y=!0)},v=xS(e.options,e.fetchOptions),_=async(w,E,x)=>{if(y)return Promise.reject();if(E==null&&w.pages.length)return Promise.resolve(w);const C=(()=>{const I={client:e.client,queryKey:e.queryKey,pageParam:E,direction:x?"backward":"forward",meta:e.options.meta};return g(I),I})(),R=await v(C),{maxPages:B}=e.options,Q=x?QN:YN;return{pages:Q(w.pages,R,B),pageParams:Q(w.pageParams,E,B)}};if(o&&l.length){const w=o==="backward",E=w?ij:zb,x={pages:l,pageParams:u},T=E(a,x);d=await _(x,T,w)}else{const w=t??l.length;do{const E=h===0?u[0]??a.initialPageParam:zb(a,d);if(h>0&&E==null)break;d=await _(d,E),h++}while(h<w)}return d};e.options.persister?e.fetchFn=()=>e.options.persister?.(p,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=p}}}function zb(t,{pages:e,pageParams:n}){const a=e.length-1;return e.length>0?t.getNextPageParam(e[a],e,n[a],n):void 0}function ij(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var oj=class extends OS{#e;#t;#n;#s;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||lj(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=kS({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(l,u)=>{this.#r({type:"failed",failureCount:l,error:u})},onPause:()=>{this.#r({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",o=!this.#s.canStart();try{if(a)e();else{this.#r({type:"pending",variables:t,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);const u=await this.options.onMutate?.(t,n);u!==this.state.context&&this.#r({type:"pending",context:u,variables:t,isPaused:o})}const l=await this.#s.start();return await this.#n.config.onSuccess?.(l,t,this.state.context,this,n),await this.options.onSuccess?.(l,t,this.state.context,n),await this.#n.config.onSettled?.(l,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(l,null,t,this.state.context,n),this.#r({type:"success",data:l}),l}catch(l){try{await this.#n.config.onError?.(l,t,this.state.context,this,n)}catch(u){Promise.reject(u)}try{await this.options.onError?.(l,t,this.state.context,n)}catch(u){Promise.reject(u)}try{await this.#n.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,n)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,l,t,this.state.context,n)}catch(u){Promise.reject(u)}throw this.#r({type:"error",error:l}),l}finally{this.#n.runNext(this)}}#r(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),qt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function lj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var cj=class extends Cl{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,e,n){const a=new oj({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(e),state:n});return this.add(a),a}add(t){this.#e.add(t);const e=cu(t);if(typeof e=="string"){const n=this.#t.get(e);n?n.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=cu(t);if(typeof e=="string"){const n=this.#t.get(e);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=cu(t);if(typeof e=="string"){const a=this.#t.get(e)?.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){const e=cu(t);return typeof e=="string"?this.#t.get(e)?.find(a=>a!==t&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){qt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(n=>kb(e,n))}findAll(t={}){return this.getAll().filter(e=>kb(t,e))}notify(t){qt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return qt.batch(()=>Promise.all(t.map(e=>e.continue().catch(pn))))}};function cu(t){return t.options.scope?.id}var uj=class extends Cl{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,n){const a=e.queryKey,o=e.queryHash??Xp(a,e);let l=this.get(o);return l||(l=new nj({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(l)),l}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){qt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>Rb(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>Rb(t,n)):e}notify(t){qt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){qt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){qt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},dj=class{#e;#t;#n;#s;#r;#i;#a;#o;constructor(t={}){this.#e=t.queryCache||new uj,this.#t=t.mutationCache||new cj,this.#n=t.defaultOptions||{},this.#s=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=Jp.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=Du.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=this.#e.build(this,e),a=n.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Ds(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(a))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:n})=>{const a=n.data;return[e,a]})}setQueryData(t,e,n){const a=this.defaultQueryOptions({queryKey:t}),l=this.#e.get(a.queryHash)?.state.data,u=FN(e,l);if(u!==void 0)return this.#e.build(this,a).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return qt.batch(()=>this.#e.findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,e,n)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;qt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=this.#e;return qt.batch(()=>(n.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},a=qt.batch(()=>this.#e.findAll(t).map(o=>o.cancel(n)));return Promise.all(a).then(pn).catch(pn)}invalidateQueries(t,e={}){return qt.batch(()=>(this.#e.findAll(t).forEach(n=>{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},a=qt.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,n);return n.throwOnError||(l=l.catch(pn)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(a).then(pn)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=this.#e.build(this,e);return n.isStaleByTime(Ds(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(pn).catch(pn)}fetchInfiniteQuery(t){return t.behavior=Mb(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(pn).catch(pn)}ensureInfiniteQueryData(t){return t.behavior=Mb(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Du.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#s.set(Sl(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#s.values()],n={};return e.forEach(a=>{El(t,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(t,e){this.#r.set(Sl(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#r.values()],n={};return e.forEach(a=>{El(t,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Xp(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Wp&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},NS=ee.createContext(void 0),fj=t=>{const e=ee.useContext(NS);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},hj=({client:t,children:e})=>(ee.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),D.jsx(NS.Provider,{value:t,children:e})),jS=ee.createContext(!1),pj=()=>ee.useContext(jS);jS.Provider;function mj(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var gj=ee.createContext(mj()),yj=()=>ee.useContext(gj),vj=(t,e,n)=>{const a=n?.state.error&&typeof t.throwOnError=="function"?AS(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||a)&&(e.isReset()||(t.retryOnMount=!1))},bj=t=>{ee.useEffect(()=>{t.clearReset()},[t])},_j=({result:t,errorResetBoundary:e,throwOnError:n,query:a,suspense:o})=>t.isError&&!e.isReset()&&!t.isFetching&&a&&(o&&t.data===void 0||AS(n,[t.error,a])),gz=(t,e)=>e.state.data===void 0,wj=t=>{if(t.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),a=t.staleTime;t.staleTime=typeof a=="function"?(...o)=>n(a(...o)):n(a),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Sj=(t,e)=>t.isLoading&&t.isFetching&&!e,Ej=(t,e)=>t?.suspense&&e.isPending,Ub=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function Tj(t,e,n){const a=pj(),o=yj(),l=fj(),u=l.defaultQueryOptions(t);l.getDefaultOptions().queries?._experimental_beforeQuery?.(u);const d=l.getQueryCache().get(u.queryHash);u._optimisticResults=a?"isRestoring":"optimistic",wj(u),vj(u,o,d),bj(o);const h=!l.getQueryCache().get(u.queryHash),[p]=ee.useState(()=>new e(l,u)),y=p.getOptimisticResult(u),g=!a&&t.subscribed!==!1;if(ee.useSyncExternalStore(ee.useCallback(v=>{const _=g?p.subscribe(qt.batchCalls(v)):pn;return p.updateResult(),_},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),ee.useEffect(()=>{p.setOptions(u)},[u,p]),Ej(u,y))throw Ub(u,p,o);if(_j({result:y,errorResetBoundary:o,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw y.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(u,y),u.experimental_prefetchInRender&&!Tl.isServer()&&Sj(y,a)&&(h?Ub(u,p,o):d?.promise)?.catch(pn).finally(()=>{p.updateResult()}),u.notifyOnChangeProps?y:p.trackResult(y)}function xj(t,e){return Tj(t,rj)}const Aj="/assets/styles-hh9WiHbs.css";const DS=(...t)=>t.filter((e,n,a)=>!!e&&e.trim()!==""&&a.indexOf(e)===n).join(" ").trim();const Rj=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const kj=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,a)=>a?a.toUpperCase():n.toLowerCase());const Pb=t=>{const e=kj(t);return e.charAt(0).toUpperCase()+e.slice(1)};var Oj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Cj=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const Nj=ee.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:o="",children:l,iconNode:u,...d},h)=>ee.createElement("svg",{ref:h,...Oj,width:e,height:e,stroke:t,strokeWidth:a?Number(n)*24/Number(e):n,className:DS("lucide",o),...!l&&!Cj(d)&&{"aria-hidden":"true"},...d},[...u.map(([p,y])=>ee.createElement(p,y)),...Array.isArray(l)?l:[l]]));const Aa=(t,e)=>{const n=ee.forwardRef(({className:a,...o},l)=>ee.createElement(Nj,{ref:l,iconNode:e,className:DS(`lucide-${Rj(Pb(t))}`,`lucide-${t}`,a),...o}));return n.displayName=Pb(t),n};const jj=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Dj=Aa("facebook",jj);const Lj=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Mj=Aa("house",Lj);const zj=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],Uj=Aa("instagram",zj);const Pj=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Ij=Aa("menu",Pj);const Bj=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],$j=Aa("message-circle",Bj);const qj=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Hj=Aa("search-x",qj);const Vj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gj=Aa("x",Vj);function Ib(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function LS(...t){return e=>{let n=!1;const a=t.map(o=>{const l=Ib(o,e);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<a.length;o++){const l=a[o];typeof l=="function"?l():Ib(t[o],null)}}}}function yz(...t){return ee.useCallback(LS(...t),t)}var Fj=Symbol.for("react.lazy"),Lu=_T[" use ".trim().toString()];function Zj(t){return typeof t=="object"&&t!==null&&"then"in t}function MS(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Fj&&"_payload"in t&&Zj(t._payload)}function Kj(t){const e=Qj(t),n=ee.forwardRef((a,o)=>{let{children:l,...u}=a;MS(l)&&typeof Lu=="function"&&(l=Lu(l._payload));const d=ee.Children.toArray(l),h=d.find(Xj);if(h){const p=h.props.children,y=d.map(g=>g===h?ee.Children.count(p)>1?ee.Children.only(null):ee.isValidElement(p)?p.props.children:null:g);return D.jsx(e,{...u,ref:o,children:ee.isValidElement(p)?ee.cloneElement(p,void 0,y):null})}return D.jsx(e,{...u,ref:o,children:l})});return n.displayName=`${t}.Slot`,n}var Yj=Kj("Slot");function Qj(t){const e=ee.forwardRef((n,a)=>{let{children:o,...l}=n;if(MS(o)&&typeof Lu=="function"&&(o=Lu(o._payload)),ee.isValidElement(o)){const u=eD(o),d=Wj(l,o.props);return o.type!==ee.Fragment&&(d.ref=a?LS(a,u):u),ee.cloneElement(o,d)}return ee.Children.count(o)>1?ee.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Jj=Symbol("radix.slottable");function Xj(t){return ee.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Jj}function Wj(t,e){const n={...e};for(const a in e){const o=t[a],l=e[a];/^on[A-Z]/.test(a)?o&&l?n[a]=(...d)=>{const h=l(...d);return o(...d),h}:o&&(n[a]=o):a==="style"?n[a]={...o,...l}:a==="className"&&(n[a]=[o,l].filter(Boolean).join(" "))}return{...t,...n}}function eD(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function zS(t){var e,n,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=zS(t[e]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}function US(){for(var t,e,n=0,a="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=zS(t))&&(a&&(a+=" "),a+=e);return a}const Bb=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,$b=US,tD=(t,e)=>n=>{var a;if(e?.variants==null)return $b(t,n?.class,n?.className);const{variants:o,defaultVariants:l}=e,u=Object.keys(o).map(p=>{const y=n?.[p],g=l?.[p];if(y===null)return null;const v=Bb(y)||Bb(g);return o[p][v]}),d=n&&Object.entries(n).reduce((p,y)=>{let[g,v]=y;return v===void 0||(p[g]=v),p},{}),h=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((p,y)=>{let{class:g,className:v,..._}=y;return Object.entries(_).every(w=>{let[E,x]=w;return Array.isArray(x)?x.includes({...l,...d}[E]):{...l,...d}[E]===x})?[...p,g,v]:p},[]);return $b(t,u,h,n?.class,n?.className)},nD=(t,e)=>{const n=new Array(t.length+e.length);for(let a=0;a<t.length;a++)n[a]=t[a];for(let a=0;a<e.length;a++)n[t.length+a]=e[a];return n},rD=(t,e)=>({classGroupId:t,validator:e}),PS=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Mu="-",qb=[],sD="arbitrary..",aD=t=>{const e=oD(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return iD(u);const d=u.split(Mu),h=d[0]===""&&d.length>1?1:0;return IS(d,h,e)},getConflictingClassGroupIds:(u,d)=>{if(d){const h=a[u],p=n[u];return h?p?nD(p,h):h:p||qb}return n[u]||qb}}},IS=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const o=t[e],l=n.nextPart.get(o);if(l){const p=IS(t,e+1,l);if(p)return p}const u=n.validators;if(u===null)return;const d=e===0?t.join(Mu):t.slice(e).join(Mu),h=u.length;for(let p=0;p<h;p++){const y=u[p];if(y.validator(d))return y.classGroupId}},iD=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),a=e.slice(0,n);return a?sD+a:void 0})(),oD=t=>{const{theme:e,classGroups:n}=t;return lD(n,e)},lD=(t,e)=>{const n=PS();for(const a in t){const o=t[a];tm(o,n,a,e)}return n},tm=(t,e,n,a)=>{const o=t.length;for(let l=0;l<o;l++){const u=t[l];cD(u,e,n,a)}},cD=(t,e,n,a)=>{if(typeof t=="string"){uD(t,e,n);return}if(typeof t=="function"){dD(t,e,n,a);return}fD(t,e,n,a)},uD=(t,e,n)=>{const a=t===""?e:BS(e,t);a.classGroupId=n},dD=(t,e,n,a)=>{if(hD(t)){tm(t(a),e,n,a);return}e.validators===null&&(e.validators=[]),e.validators.push(rD(n,t))},fD=(t,e,n,a)=>{const o=Object.entries(t),l=o.length;for(let u=0;u<l;u++){const[d,h]=o[u];tm(h,BS(e,d),n,a)}},BS=(t,e)=>{let n=t;const a=e.split(Mu),o=a.length;for(let l=0;l<o;l++){const u=a[l];let d=n.nextPart.get(u);d||(d=PS(),n.nextPart.set(u,d)),n=d}return n},hD=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,pD=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),a=Object.create(null);const o=(l,u)=>{n[l]=u,e++,e>t&&(e=0,a=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=a[l])!==void 0)return o(l,u),u},set(l,u){l in n?n[l]=u:o(l,u)}}},vp="!",Hb=":",mD=[],Vb=(t,e,n,a,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:a,isExternal:o}),gD=t=>{const{prefix:e,experimentalParseClassName:n}=t;let a=o=>{const l=[];let u=0,d=0,h=0,p;const y=o.length;for(let E=0;E<y;E++){const x=o[E];if(u===0&&d===0){if(x===Hb){l.push(o.slice(h,E)),h=E+1;continue}if(x==="/"){p=E;continue}}x==="["?u++:x==="]"?u--:x==="("?d++:x===")"&&d--}const g=l.length===0?o:o.slice(h);let v=g,_=!1;g.endsWith(vp)?(v=g.slice(0,-1),_=!0):g.startsWith(vp)&&(v=g.slice(1),_=!0);const w=p&&p>h?p-h:void 0;return Vb(l,_,v,w)};if(e){const o=e+Hb,l=a;a=u=>u.startsWith(o)?l(u.slice(o.length)):Vb(mD,!1,u,void 0,!0)}if(n){const o=a;a=l=>n({className:l,parseClassName:o})}return a},yD=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,a)=>{e.set(n,1e6+a)}),n=>{const a=[];let o=[];for(let l=0;l<n.length;l++){const u=n[l],d=u[0]==="[",h=e.has(u);d||h?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(u)):o.push(u)}return o.length>0&&(o.sort(),a.push(...o)),a}},vD=t=>({cache:pD(t.cacheSize),parseClassName:gD(t),sortModifiers:yD(t),...aD(t)}),bD=/\s+/,_D=(t,e)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:l}=e,u=[],d=t.trim().split(bD);let h="";for(let p=d.length-1;p>=0;p-=1){const y=d[p],{isExternal:g,modifiers:v,hasImportantModifier:_,baseClassName:w,maybePostfixModifierPosition:E}=n(y);if(g){h=y+(h.length>0?" "+h:h);continue}let x=!!E,T=a(x?w.substring(0,E):w);if(!T){if(!x){h=y+(h.length>0?" "+h:h);continue}if(T=a(w),!T){h=y+(h.length>0?" "+h:h);continue}x=!1}const C=v.length===0?"":v.length===1?v[0]:l(v).join(":"),R=_?C+vp:C,B=R+T;if(u.indexOf(B)>-1)continue;u.push(B);const Q=o(T,x);for(let I=0;I<Q.length;++I){const j=Q[I];u.push(R+j)}h=y+(h.length>0?" "+h:h)}return h},wD=(...t)=>{let e=0,n,a,o="";for(;e<t.length;)(n=t[e++])&&(a=$S(n))&&(o&&(o+=" "),o+=a);return o},$S=t=>{if(typeof t=="string")return t;let e,n="";for(let a=0;a<t.length;a++)t[a]&&(e=$S(t[a]))&&(n&&(n+=" "),n+=e);return n},SD=(t,...e)=>{let n,a,o,l;const u=h=>{const p=e.reduce((y,g)=>g(y),t());return n=vD(p),a=n.cache.get,o=n.cache.set,l=d,d(h)},d=h=>{const p=a(h);if(p)return p;const y=_D(h,n);return o(h,y),y};return l=u,(...h)=>l(wD(...h))},ED=[],At=t=>{const e=n=>n[t]||ED;return e.isThemeGetter=!0,e},qS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,HS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,TD=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,AD=/\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$/,RD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ss=t=>TD.test(t),Me=t=>!!t&&!Number.isNaN(Number(t)),Es=t=>!!t&&Number.isInteger(Number(t)),zh=t=>t.endsWith("%")&&Me(t.slice(0,-1)),Dr=t=>xD.test(t),VS=()=>!0,CD=t=>AD.test(t)&&!RD.test(t),nm=()=>!1,ND=t=>kD.test(t),jD=t=>OD.test(t),DD=t=>!fe(t)&&!me(t),LD=t=>qs(t,ZS,nm),fe=t=>qS.test(t),pa=t=>qs(t,KS,CD),Gb=t=>qs(t,qD,Me),MD=t=>qs(t,QS,VS),zD=t=>qs(t,YS,nm),Fb=t=>qs(t,GS,nm),UD=t=>qs(t,FS,jD),uu=t=>qs(t,JS,ND),me=t=>HS.test(t),Jo=t=>Ra(t,KS),PD=t=>Ra(t,YS),Zb=t=>Ra(t,GS),ID=t=>Ra(t,ZS),BD=t=>Ra(t,FS),du=t=>Ra(t,JS,!0),$D=t=>Ra(t,QS,!0),qs=(t,e,n)=>{const a=qS.exec(t);return a?a[1]?e(a[1]):n(a[2]):!1},Ra=(t,e,n=!1)=>{const a=HS.exec(t);return a?a[1]?e(a[1]):n:!1},GS=t=>t==="position"||t==="percentage",FS=t=>t==="image"||t==="url",ZS=t=>t==="length"||t==="size"||t==="bg-size",KS=t=>t==="length",qD=t=>t==="number",YS=t=>t==="family-name",QS=t=>t==="number"||t==="weight",JS=t=>t==="shadow",HD=()=>{const t=At("color"),e=At("font"),n=At("text"),a=At("font-weight"),o=At("tracking"),l=At("leading"),u=At("breakpoint"),d=At("container"),h=At("spacing"),p=At("radius"),y=At("shadow"),g=At("inset-shadow"),v=At("text-shadow"),_=At("drop-shadow"),w=At("blur"),E=At("perspective"),x=At("aspect"),T=At("ease"),C=At("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...B(),me,fe],I=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],M=()=>[me,fe,h],X=()=>[Ss,"full","auto",...M()],ce=()=>[Es,"none","subgrid",me,fe],Z=()=>["auto",{span:["full",Es,me,fe]},Es,me,fe],F=()=>[Es,"auto",me,fe],te=()=>["auto","min","max","fr",me,fe],_e=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...M()],Y=()=>[Ss,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],ue=()=>[Ss,"screen","full","dvw","lvw","svw","min","max","fit",...M()],je=()=>[Ss,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],J=()=>[t,me,fe],k=()=>[...B(),Zb,Fb,{position:[me,fe]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",ID,LD,{size:[me,fe]}],W=()=>[zh,Jo,pa],se=()=>["","none","full",p,me,fe],le=()=>["",Me,Jo,pa],pe=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[Me,zh,Zb,Fb],kt=()=>["","none",w,me,fe],Lt=()=>["none",Me,me,fe],ht=()=>["none",Me,me,fe],Zr=()=>[Me,me,fe],Gt=()=>[Ss,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dr],breakpoint:[Dr],color:[VS],container:[Dr],"drop-shadow":[Dr],ease:["in","out","in-out"],font:[DD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dr],shadow:[Dr],spacing:["px",Me],text:[Dr],"text-shadow":[Dr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ss,fe,me,x]}
vendor: 6,110 bytes, line 56
56],container:["container"],columns:[{columns:[Me,fe,me,d]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Q()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{"inset-s":X(),start:X()}],end:[{"inset-e":X(),end:X()}],"inset-bs":[{"inset-bs":X()}],"inset-be":[{"inset-be":X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[Es,"auto",me,fe]}],basis:[{basis:[Ss,"full","auto",d,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,Ss,"auto","initial","none",fe]}],grow:[{grow:["",Me,me,fe]}],shrink:[{shrink:["",Me,me,fe]}],order:[{order:[Es,"first","last","none",me,fe]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[..._e(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",..._e()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":_e()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...ue()]}],"min-inline-size":[{"min-inline":["auto",...ue()]}],"max-inline-size":[{"max-inline":["none",...ue()]}],"block-size":[{block:["auto",...je()]}],"min-block-size":[{"min-block":["auto",...je()]}],"max-block-size":[{"max-block":["none",...je()]}],w:[{w:[d,"screen",...Y()]}],"min-w":[{"min-w":[d,"screen","none",...Y()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",n,Jo,pa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,$D,MD]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zh,fe]}],"font-family":[{font:[PD,zD,e]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,me,fe]}],"line-clamp":[{"line-clamp":[Me,"none",me,Gb]}],leading:[{leading:[l,...M()]}],"list-image":[{"list-image":["none",me,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",me,pa]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[Me,"auto",me,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Es,me,fe],radial:["",me,fe],conic:[Es,me,fe]},BD,UD]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:W()}
vendor: 7,400 bytes, line 56
56],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-bs":[{"border-bs":J()}],"border-color-be":[{"border-be":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,me,fe]}],"outline-w":[{outline:["",Me,Jo,pa]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",y,du,uu]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",g,du,uu]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[Me,pa]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",v,du,uu]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[Me,me,fe]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[me,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,fe]}],filter:[{filter:["","none",me,fe]}],blur:[{blur:kt()}],brightness:[{brightness:[Me,me,fe]}],contrast:[{contrast:[Me,me,fe]}],"drop-shadow":[{"drop-shadow":["","none",_,du,uu]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",Me,me,fe]}],"hue-rotate":[{"hue-rotate":[Me,me,fe]}],invert:[{invert:["",Me,me,fe]}],saturate:[{saturate:[Me,me,fe]}],sepia:[{sepia:["",Me,me,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",me,fe]}],"backdrop-blur":[{"backdrop-blur":kt()}],"backdrop-brightness":[{"backdrop-brightness":[Me,me,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Me,me,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,me,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,me,fe]}],"backdrop-invert":[{"backdrop-invert":["",Me,me,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Me,me,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Me,me,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,me,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",me,fe]}],ease:[{ease:["linear","initial",T,me,fe]}],delay:[{delay:[Me,me,fe]}],animate:[{animate:["none",C,me,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,me,fe]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:Lt()}],"rotate-x":[{"rotate-x":Lt()}],"rotate-y":[{"rotate-y":Lt()}],"rotate-z":[{"rotate-z":Lt()}],scale:[{scale:ht()}],"scale-x":[{"scale-x":ht()}],"scale-y":[{"scale-y":ht()}],"scale-z":[{"scale-z":ht()}],"scale-3d":["scale-3d"],skew:[{skew:Zr()}],"skew-x":[{"skew-x":Zr()}],"skew-y":[{"skew-y":Zr()}],transform:[{transform:[me,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Gt()}],"translate-x":[{"translate-x":Gt()}],"translate-y":[{"translate-y":Gt()}],"translate-z":[{"translate-z":Gt()}],"translate-none":["translate-none"],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}
56],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",me,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],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",me,fe]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[Me,Jo,pa,Gb]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},VD=SD(HD);function ka(...t){return VD(US(t))}const GD=tD("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),zu=ee.forwardRef(({className:t,variant:e,size:n,asChild:a=!1,...o},l)=>{const u=a?Yj:"button";return D.jsx(u,{className:ka(GD({variant:e,size:n,className:t})),ref:l,...o})});zu.displayName="Button";const gt=Os({type:"function"}),XS={siteName:"Dono do Zap",title:"Dono do Zap - Descubra quem é o dono do número do WhatsApp Grátis",description:"Descubra quem é o dono do Zap. Consulte qualquer número de WhatsApp grátis no Dono do Zap. Descubra o dono do número em segundos.",faviconUrl:"/favicon.png",ogImageUrl:"https://storage.googleapis.com/gpt-engineer-file-uploads/Q9ool3ypweTpjZrP6oLyUXqZcw33/social-images/social-1784658932507-Capa.webp"};function $i(t){const e=t??{},n=a=>typeof e[a]=="string"&&e[a].trim()?e[a].trim():XS[a];return{siteName:n("siteName"),title:n("title"),description:n("description"),faviconUrl:n("faviconUrl"),ogImageUrl:n("ogImageUrl")}}const vz={loading:{title:"Aguarde!",subtitle:"Não feche ou atualize a página.",supportText:"Estamos preparando uma prévia das informações relacionadas ao número consultado.",durationSeconds:20,messages:["Aguarde! Estamos consultando...","Consultando Nome...","Consultando WhatsApp...","Não feche a página!","Consultando Nome da Mãe...","Consultando Nome do Pai...","Consultando CPF...","Consultando Endereços...","Consultando Telefones...","Consultando Parentes...","Consultando Empresas Ligadas...","Não feche a página!","Consultando Cidade...","Aguarde! Estamos consultando...","Consultando Estado...","Consultando E-mails...","Consultando Operadora...","Consultando Redes Sociais...","Consultando Bancos de Dados...","Não feche a página!","Finalizando prévia da consulta..."]},preview:{topText:"Número do WhatsApp: {numero}",subText:"Encontramos informações referentes a este número de telefone e WhatsApp.",tableTitle:"Informações e Resultado",lockedText:"Liberar informação",finalText:"Informações encontradas...",buttonText:"Liberar relatório completo",buttonUrl:"#",fields:[{key:"nome",label:"Nome",enabled:!0,mode:"masked",maskedValue:"****G*** ***I*** ***H***"},{key:"dataNasc",label:"Data de Nascimento",enabled:!0,mode:"masked",maskedValue:"**/**/****"},{key:"cpf",label:"CPF",enabled:!0,mode:"masked",maskedValue:"***********"},{key:"situacaoCpf",label:"Situação CPF",enabled:!0,mode:"locked"},{key:"rg",label:"RG",enabled:!0,mode:"locked"},{key:"enderecos",label:"Endereços",enabled:!0,mode:"locked"},{key:"emails",label:"E-mails",enabled:!0,mode:"locked"},{key:"telefones",label:"Telefones",enabled:!0,mode:"locked"},{key:"parentes",label:"Nome dos Parentes",enabled:!0,mode:"locked"},{key:"empresas",label:"Empresas Ligadas",enabled:!0,mode:"locked"},{key:"cidade",label:"Cidade",enabled:!0,mode:"locked"},{key:"estado",label:"Estado",enabled:!0,mode:"locked"},{key:"operadora",label:"Operadora",enabled:!0,mode:"locked"},{key:"redesSociais",label:"Redes Sociais",enabled:!0,mode:"locked"}]},popups:{confirm:{title:"Você quer descobrir o dono desse Número de WhatsApp?",numberLabel:"Número informado:",sectionLabel:"Número a consultar",helperText:"Confira se o número está correto antes de continuar.",cancelButton:"Quero alterar",confirmButton:"Consultar agora",footerText:"A consulta é sigilosa. A pessoa não será notificada."},mobileBar:{message:"Encontramos informações referentes a este número de telefone e WhatsApp.",buttonText:"LIBERAR INFORMAÇÕES"}
56,payEmail:{title:"Descubra o Dono do WhatsApp",numberPrefix:"Número consultado:",description:"Insira seu E-mail e pague para receber o relatório completo. Saiba quem está por trás desse Número de WhatsApp.",emailLabel:"E-mail",emailPlaceholder:"[email protected]",buttonText:"DESCOBRIR AGORA",footerText:"A consulta é sigilosa. A pessoa não será notificada."},payConfirm:{title:"Confirme as informações",description:"Revise antes de continuar para o pagamento.",numberLabel:"Número consultado",emailLabel:"E-mail para receber o relatório",helperText:"Está tudo certo? Clique em Confirmar e continuar.",editButton:"Corrigir",confirmButton:"Confirmar e continuar",footerText:"A consulta é sigilosa. A pessoa não será notificada."},payPix:{title:"Pague com PIX",description:"Escaneie o QR Code ou copie o código para pagar no app do seu banco.",codeLabel:"Pix copia e cola",copyButton:"Copiar código Pix",waitingText:"Aguardando pagamento…",footerText:"Após o pagamento, o relatório será enviado ao seu e-mail."}},visual:{primaryColor:"#16a34a",textColor:"#1f2937",buttonColor:"#16a34a",lockedLinkColor:"#16a34a",progressColor:"#16a34a",pageBgColor:"#ffffff",cardRadius:12},rules:{confirmPopupEnabled:!0,loadingPopupEnabled:!0},social:{instagram:{enabled:!1,url:""},whatsapp:{enabled:!1,url:""},tiktok:{enabled:!1,url:""},facebook:{enabled:!1,url:""}},seo:XS},rm=Ke({method:"GET"}).handler(tt("36a1cf28a37967f9e0eef611fa85aaa6d30a5671277d978cd195a2d3633dc431")),bz=Ke({method:"POST"}).middleware([gt]).handler(tt("6c716f752d97f0b78c5666bf4d953e7f4130b1775527e18023feeed9a6e059a7"));function WS(){return D.jsxs(mn,{to:"/",className:"flex items-center gap-2 group",children:[D.jsx("div",{className:"relative",children:D.jsx("div",{className:"w-9 h-9 rounded-xl bg-gradient-primary flex items-center justify-center shadow-glow group-hover:scale-105 transition-smooth",children:D.jsx($j,{className:"w-5 h-5 text-primary-foreground",strokeWidth:2.5})})}),D.jsxs("div",{className:"flex flex-col leading-none",children:[D.jsx("span",{className:"font-bold text-lg tracking-tight",children:"Dono do Zap"}),D.jsx("span",{className:"text-[10px] text-muted-foreground uppercase tracking-widest",children:"CONSULTAR NÚMERO"})]})]})}const Kb=[{label:"INÍCIO",to:"/",type:"link"},{label:"PERGUNTAS",href:"/#faq",type:"anchor"},{label:"PREVINA-SE",href:"/#prevencao",type:"anchor"},{label:"CONTATO",to:"/contato",type:"link"},{label:"MEUS RELATÓRIOS",to:"/consultar-meus-relatorios",type:"link"},{label:"BLOG",href:"https://donodozap.com.br/blog",type:"external"}];function FD(){const[t,e]=ee.useState(!1);return D.jsxs("header",{className:"sticky top-0 z-50 w-full border-b border-border/60 bg-background/80 backdrop-blur-lg",children:[D.jsxs("div",{className:"container mx-auto px-4 h-16 flex items-center justify-between",children:[D.jsx(WS,{}),D.jsx("nav",{className:"hidden md:flex items-center gap-1",children:Kb.map(n=>n.type==="external"?D.jsx("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",className:"px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-smooth",children:n.label},n.href):n.type==="anchor"?D.jsx("a",{href:n.href,className:"px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-smooth",children:n.label},n.href):D.jsx(mn,{to:n.to,className:"px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-smooth",activeProps:{className:"px-3 py-2 text-sm font-medium text-primary"},activeOptions:{exact:n.to==="/"},children:n.label},n.to))}),D.jsx("div",{className:"hidden md:flex items-center gap-2",children:D.jsx(zu,{asChild:!0,variant:"default",className:"bg-gradient-primary hover:opacity-95 shadow-glow",children:D.jsx(mn,{to:"/",children:"Consultar agora"})})}),D.jsx("button",{className:"md:hidden p-2",onClick:()=>e(!t),"aria-label":"Menu",children:t?D.jsx(Gj,{}):D.jsx(Ij,{})})]}),t&&D.jsx("div",{className:"md:hidden border-t border-border bg-background",children:D.jsxs("div",{className:"container mx-auto px-4 py-4 flex flex-col gap-2",children:[Kb.map(n=>n.type==="external"?D.jsx("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",onClick:()=>e(!1),className:"py-2 text-sm font-medium",children:n.label},n.href):n.type==="anchor"?D.jsx("a",{href:n.href,onClick:()=>e(!1),className:"py-2 text-sm font-medium",children:n.label},n.href):D.jsx(mn,{to:n.to,onClick:()=>e(!1),className:"py-2 text-sm font-medium",children:n.label},n.to)),D.jsx(zu,{asChild:!0,className:"bg-gradient-primary mt-2",children:D.jsx(mn,{to:"/",children:"Consultar agora"})})]})})]})}function ZD(){const e=Qw({select:a=>
56a.location.pathname})==="/";function n(a){a.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})}return D.jsxs("footer",{className:"border-t border-border bg-secondary/30 mt-20",children:[D.jsxs("div",{className:"container mx-auto px-4 py-12 grid gap-10 md:grid-cols-4",children:[D.jsxs("div",{className:"space-y-3",children:[D.jsx(WS,{}),D.jsx("p",{className:"text-sm text-muted-foreground max-w-xs",children:"Plataforma de consulta de números de WhatsApp com foco em segurança, privacidade e conformidade com a LGPD."}),D.jsx(QD,{})]}),D.jsxs("div",{children:[D.jsx("h4",{className:"font-semibold mb-3 text-sm",children:"NAVEGAÇÃO"}),D.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[D.jsx("li",{children:e?D.jsx("a",{href:"#",onClick:n,className:"hover:text-foreground",children:"Início"}):D.jsx(mn,{to:"/",className:"hover:text-foreground",children:"Início"})}),D.jsx("li",{children:e?D.jsx("a",{href:"#consulta",className:"hover:text-foreground",children:"Consultar"}):D.jsx(mn,{to:"/",hash:"consulta",className:"hover:text-foreground",children:"Consultar"})}),D.jsx("li",{children:D.jsx("a",{href:"/#faq",className:"hover:text-foreground",children:"Perguntas"})}),D.jsx("li",{children:D.jsx("a",{href:"/#prevencao",className:"hover:text-foreground",children:"Previna-se"})}),D.jsx("li",{children:D.jsx(mn,{to:"/consultar-meus-relatorios",className:"hover:text-foreground",children:"Consultar meus relatórios"})})]})]}),D.jsxs("div",{children:[D.jsx("h4",{className:"font-semibold mb-3 text-sm",children:"LEGAL"}),D.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[D.jsx("li",{children:D.jsx(mn,{to:"/privacidade",className:"hover:text-foreground",children:"Política de privacidade"})}),D.jsx("li",{children:D.jsx(mn,{to:"/termos",className:"hover:text-foreground",children:"Termos de uso"})}),D.jsx("li",{children:D.jsx(mn,{to:"/lgpd",className:"hover:text-foreground",children:"Aviso LGPD"})})]})]}),D.jsxs("div",{children:[D.jsx("h4",{className:"font-semibold mb-3 text-sm",children:"SUPORTE"}),D.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground",children:D.jsx("li",{children:D.jsx(mn,{to:"/contato",className:"hover:text-foreground",children:"Contato"})})}),D.jsx("p",{className:"text-xs text-muted-foreground mt-4 leading-relaxed",children:"As consultas devem respeitar a legislação vigente e a privacidade dos usuários."})]})]}),D.jsx("div",{className:"border-t border-border",children:D.jsxs("div",{className:"container mx-auto px-4 py-4 text-xs text-muted-foreground flex flex-col md:flex-row justify-between gap-2",children:[D.jsxs("span",{children:["© ",new Date().getFullYear()," Dono do Zap. Todos os direitos reservados."]}),D.jsx("span",{children:"Feito com foco em segurança e privacidade."})]})})]})}function KD({className:t}){return D.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:t,"aria-hidden":"true",children:D.jsx("path",{d:"M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5.8 20.1a6.34 6.34 0 0 0 10.86-4.43V8.83a8.16 8.16 0 0 0 4.77 1.52V6.9a4.85 4.85 0 0 1-1.84-.21Z"})})}function YD({className:t}){return D.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:t,"aria-hidden":"true",children:D.jsx("path",{d:"M.057 24l1.687-6.163a11.867 11.867 0 0 1-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.817 11.817 0 0 1 8.413 3.488 11.824 11.824 0 0 1 3.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 0 1-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884a9.86 9.86 0 0 0 1.51 5.26l.36.572-1 3.648 3.619-.999.001.001zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.247-.694.247-1.289.173-1.413z"})})}function QD(){const t=qO(rm),{data:e}=xj({queryKey:["site-settings","social"],queryFn:()=>t(),staleTime:300*1e3}),n=e?.social;if(!n)return null;const a=[{key:"instagram",label:"Instagram",cfg:n.instagram,Icon:Uj},{key:"whatsapp",label:"WhatsApp",cfg:n.whatsapp,Icon:YD},{key:"tiktok",label:"TikTok",cfg:n.tiktok,Icon:KD},{key:"facebook",label:"Facebook",cfg:n.facebook,Icon:Dj}].filter(o=>o.cfg.enabled&&o.cfg.url.trim().length>0);return a.length===0?null:D.jsx("div",{className:"flex items-center gap-2 pt-2",children:a.map(({key:o,label:l,Icon:u,cfg:d})=>{const h=o==="whatsapp";return D.jsx("a",{href:h?"/contato":d.url,target:h?void 0:"_blank",rel:h?void 0:"noopener noreferrer","aria-label":l,title:l,className:"w-9 h-9 grid place-items-center rounded-lg bg-background border border-border text-muted-foreground hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-smooth",children:D.jsx(u,{className:"w-4 h-4"})},o)})})}var JD=m_();const XD=p_(JD);function WD(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const e4=t=>{switch(t){case"success":return r4;case"info":return a4;case"warning":return s4;case"error":return i4;default:return null}},t4=Array(12).fill(0),n4=({visible:t,className:e})=>re.createElement("div",{className:["sonner-loading-wrapper",e].filter(
vendor: 6,040 bytes, line 56
56Boolean).join(" "),"data-visible":t},re.createElement("div",{className:"sonner-spinner"},t4.map((n,a)=>re.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),r4=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.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"})),s4=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},re.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"})),a4=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.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"})),i4=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.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"})),o4=re.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"},re.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),re.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),l4=()=>{const[t,e]=re.useState(document.hidden);return re.useEffect(()=>{const n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t};let bp=1;class c4{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const n=this.subscribers.indexOf(e);this.subscribers.splice(n,1)}),this.publish=e=>{this.subscribers.forEach(n=>n(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var n;const{message:a,...o}=e,l=typeof e?.id=="number"||((n=e.id)==null?void 0:n.length)>0?e.id:bp++,u=this.toasts.find(h=>h.id===l),d=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),u?this.toasts=this.toasts.map(h=>h.id===l?(this.publish({...h,...e,id:l,title:a}),{...h,...e,id:l,dismissible:d,title:a}):h):this.addToast({title:a,...o,dismissible:d,id:l}),l},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:e,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(a=>a({id:n.id,dismiss:!0}))}),e),this.message=(e,n)=>this.create({...n,message:e}),this.error=(e,n)=>this.create({...n,message:e,type:"error"}),this.success=(e,n)=>this.create({...n,type:"success",message:e}),this.info=(e,n)=>this.create({...n,type:"info",message:e}),this.warning=(e,n)=>this.create({...n,type:"warning",message:e}),this.loading=(e,n)=>this.create({...n,type:"loading",message:e}),this.promise=(e,n)=>{if(!n)return;let a;n.loading!==void 0&&(a=this.create({...n,promise:e,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(e instanceof Function?e():e);let l=a!==void 0,u;const d=o.then(async p=>{if(u=["resolve",p],re.isValidElement(p))l=!1,this.create({id:a,type:"default",message:p});else if(d4(p)&&!p.ok){l=!1;const g=typeof n.error=="function"?await n.error(`HTTP error! status: ${p.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${p.status}`):n.description,w=typeof g=="object"&&!re.isValidElement(g)?g:{message:g};this.create({id:a,type:"error",description:v,...w})}else if(p instanceof Error){l=!1;const g=typeof n.error=="function"?await n.error(p):n.error,v=typeof n.description=="function"?await n.description(p):n.description,w=typeof g=="object"&&!re.isValidElement(g)?g:{message:g};this.create({id:a,type:"error",description:v,...w})}else if(n.success!==void 0){l=!1;const g=typeof n.success=="function"?await n.success(p):n.success,v=typeof n.description=="function"?await n.description(p):n.description,w=typeof g=="object"&&!re.isValidElement(g)?g:{message:g};this.create({id:a,type:"success",description:v,...w})}}).catch(async p=>{if(u=["reject",p],n.error!==void 0){l=!1;const y=typeof n.error=="function"?await n.error(p):n.error,g=typeof n.description=="function"?await n.description(p):n.description,_=typeof y=="object"&&!re.isValidElement(y)?y:{message:y};this.create({id:a,type:"error",description:g,..._})}}).finally(()=>{l&&(this.dismiss(a),a=void 0),n.finally==null||n.finally.call(n)}),h=()=>new Promise((p,y)=>d.then(()=>u[0]==="reject"?y(u[1]):p(u[1])).catch(y));return typeof a!="string"&&typeof a!="number"?{unwrap:h}:Object.assign(a,{unwrap:h})},this.custom=(e,n)=>{const a=n?.id||bp++;return this.create({jsx:e(a),id:a,...n}),a},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const hn=new c4,u4=(t,e)=>{const n=e?.id||bp++;return hn.addToast({title:t,...e,id:n}),n},d4=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",f4=u4,h4=()=>hn.toasts,p4=()=>hn.getActiveToasts(),_z=Object.assign(f4,{success:hn.success,info:hn.info,warning:hn.warning,error:hn.error,custom:hn.custom,message:hn.message,promise:hn.promise,dismiss:hn.dismiss,loading:hn.loading},{getHistory:h4,getToasts:p4});WD
vendor: 4,787 bytes, line 56
56("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,086 bytes, line 56
56left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");function 
vendor: 1,437 bytes, line 56
56fu(t){return t.label!==void 0}const m4=3,g4="24px",y4="16px",Yb=4e3,v4=356,b4=14,_4=45,w4=200;function ir(...t){return t.filter(Boolean).join(" ")}function S4(t){const[e,n]=t.split("-"),a=[];return e&&a.push(e),n&&a.push(n),a}const E4=t=>{var e,n,a,o,l,u,d,h,p;const{invert:y,toast:g,unstyled:v,interacting:_,setHeights:w,visibleToasts:E,heights:x,index:T,toasts:C,expanded:R,removeToast:B,defaultRichColors:Q,closeButton:I,style:j,cancelButtonStyle:M,actionButtonStyle:X,className:ce="",descriptionClassName:Z="",duration:F,position:te,gap:_e,expandByDefault:ie,classNames:N,icons:Y,closeButtonAriaLabel:ue="Close toast"}=t,[je,J]=re.useState(null),[k,H]=re.useState(null),[V,W]=re.useState(!1),[se,le]=re.useState(!1),[pe,be]=re.useState(!1),[Se,kt]=re.useState(!1),[Lt,ht]=re.useState(!1),[Zr,Gt]=re.useState(0),[Ki,Ca]=re.useState(0),Hs=re.useRef(g.duration||F||Yb),Yi=re.useRef(null),gn=re.useRef(null),Qi=T===0,Ji=T+1<=E,Qt=g.type,Kr=g.dismissible!==!1,Jt=g.className||"",ed=g.descriptionClassName||"",Vs=re.useMemo(()=>x.findIndex(Re=>Re.toastId===g.id)||0,[x,g.id]),Dl=re.useMemo(()=>{var Re;return(Re=g.closeButton)!=null?Re:I},[g.closeButton,I]),Gs=re.useMemo(()=>g.duration||F||Yb,[g.duration,F]),Xi=re.useRef(0),hr=re.useRef(0),Ll=re.useRef(0),Yr=re.useRef(null),[Fs,Xt]=te.split("-"),In=re.useMemo(()=>x.reduce((Re,ot,Ot)=>Ot>=Vs?Re:Re+ot.height,0),[x,Vs]),Ft=l4(),td=g.invert||y,Wi=Qt==="loading";hr.current=re.useMemo(()=>
vendor: 11,436 bytes, line 56
56Vs*_e+In,[Vs,In]),re.useEffect(()=>{Hs.current=Gs},[Gs]),re.useEffect(()=>{W(!0)},[]),re.useEffect(()=>{const Re=gn.current;if(Re){const ot=Re.getBoundingClientRect().height;return Ca(ot),w(Ot=>[{toastId:g.id,height:ot,position:g.position},...Ot]),()=>w(Ot=>Ot.filter(Zt=>Zt.toastId!==g.id))}},[w,g.id]),re.useLayoutEffect(()=>{if(!V)return;const Re=gn.current,ot=Re.style.height;Re.style.height="auto";const Ot=Re.getBoundingClientRect().height;Re.style.height=ot,Ca(Ot),w(Zt=>Zt.find(ct=>ct.toastId===g.id)?Zt.map(ct=>ct.toastId===g.id?{...ct,height:Ot}:ct):[{toastId:g.id,height:Ot,position:g.position},...Zt])},[V,g.title,g.description,w,g.id,g.jsx,g.action,g.cancel]);const Xn=re.useCallback(()=>{le(!0),Gt(hr.current),w(Re=>Re.filter(ot=>ot.toastId!==g.id)),setTimeout(()=>{B(g)},w4)},[g,B,w,hr]);re.useEffect(()=>{if(g.promise&&Qt==="loading"||g.duration===1/0||g.type==="loading")return;let Re;return R||_||Ft?(()=>{if(Ll.current<Xi.current){const Zt=new Date().getTime()-Xi.current;Hs.current=Hs.current-Zt}Ll.current=new Date().getTime()})():Hs.current!==1/0&&(Xi.current=new Date().getTime(),Re=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),Xn()},Hs.current)),()=>clearTimeout(Re)},[R,_,g,Qt,Ft,Xn]),re.useEffect(()=>{g.delete&&(Xn(),g.onDismiss==null||g.onDismiss.call(g,g))},[Xn,g.delete]);function Na(){var Re;if(Y?.loading){var ot;return re.createElement("div",{className:ir(N?.loader,g==null||(ot=g.classNames)==null?void 0:ot.loader,"sonner-loader"),"data-visible":Qt==="loading"},Y.loading)}return re.createElement(n4,{className:ir(N?.loader,g==null||(Re=g.classNames)==null?void 0:Re.loader),visible:Qt==="loading"})}const ja=g.icon||Y?.[Qt]||e4(Qt);var Zs,Wn;return re.createElement("li",{tabIndex:0,ref:gn,className:ir(ce,Jt,N?.toast,g==null||(e=g.classNames)==null?void 0:e.toast,N?.default,N?.[Qt],g==null||(n=g.classNames)==null?void 0:n[Qt]),"data-sonner-toast":"","data-rich-colors":(Zs=g.richColors)!=null?Zs:Q,"data-styled":!(g.jsx||g.unstyled||v),"data-mounted":V,"data-promise":!!g.promise,"data-swiped":Lt,"data-removed":se,"data-visible":Ji,"data-y-position":Fs,"data-x-position":Xt,"data-index":T,"data-front":Qi,"data-swiping":pe,"data-dismissible":Kr,"data-type":Qt,"data-invert":td,"data-swipe-out":Se,"data-swipe-direction":k,"data-expanded":!!(R||ie&&V),"data-testid":g.testId,style:{"--index":T,"--toasts-before":T,"--z-index":C.length-T,"--offset":`${se?Zr:hr.current}px`,"--initial-height":ie?"auto":`${Ki}px`,...j,...g.style},onDragEnd:()=>{be(!1),J(null),Yr.current=null},onPointerDown:Re=>{Re.button!==2&&(Wi||!Kr||(Yi.current=new Date,Gt(hr.current),Re.target.setPointerCapture(Re.pointerId),Re.target.tagName!=="BUTTON"&&(be(!0),Yr.current={x:Re.clientX,y:Re.clientY})))},onPointerUp:()=>{var Re,ot,Ot;if(Se||!Kr)return;Yr.current=null;const Zt=Number(((Re=gn.current)==null?void 0:Re.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Qr=Number(((ot=gn.current)==null?void 0:ot.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ct=new Date().getTime()-((Ot=Yi.current)==null?void 0:Ot.getTime()),tn=je==="x"?Zt:Qr,Ks=Math.abs(tn)/ct;if(Math.abs(tn)>=_4||Ks>.11){Gt(hr.current),g.onDismiss==null||g.onDismiss.call(g,g),H(je==="x"?Zt>0?"right":"left":Qr>0?"down":"up"),Xn(),kt(!0);return}else{var nn,rn;(nn=gn.current)==null||nn.style.setProperty("--swipe-amount-x","0px"),(rn=gn.current)==null||rn.style.setProperty("--swipe-amount-y","0px")}ht(!1),be(!1),J(null)},onPointerMove:Re=>{var ot,Ot,Zt;if(!Yr.current||!Kr||((ot=window.getSelection())==null?void 0:ot.toString().length)>0)return;const ct=Re.clientY-Yr.current.y,tn=Re.clientX-Yr.current.x;var Ks;const nn=(Ks=t.swipeDirections)!=null?Ks:S4(te);!je&&(Math.abs(tn)>1||Math.abs(ct)>1)&&J(Math.abs(tn)>Math.abs(ct)?"x":"y");let rn={x:0,y:0};const Da=Bn=>1/(1.5+Math.abs(Bn)/20);if(je==="y"){if(nn.includes("top")||nn.includes("bottom"))if(nn.includes("top")&&ct<0||nn.includes("bottom")&&ct>0)rn.y=ct;else{const Bn=ct*Da(ct);rn.y=Math.abs(Bn)<Math.abs(ct)?Bn:ct}}else if(je==="x"&&(nn.includes("left")||nn.includes("right")))if(nn.includes("left")&&tn<0||nn.includes("right")&&tn>0)rn.x=tn;else{const Bn=tn*Da(tn);rn.x=Math.abs(Bn)<Math.abs(tn)?Bn:tn}(Math.abs(rn.x)>0||Math.abs(rn.y)>0)&&ht(!0),(Ot=gn.current)==null||Ot.style.setProperty("--swipe-amount-x",`${rn.x}px`),(Zt=gn.current)==null||Zt.style.setProperty("--swipe-amount-y",`${rn.y}px`)}},Dl&&!g.jsx&&Qt!=="loading"?re.createElement("button",{"aria-label":ue,"data-disabled":Wi,"data-close-button":!0,onClick:Wi||!Kr?()=>{}:()=>{Xn(),g.onDismiss==null||g.onDismiss.call(g,g)},className:ir(N?.closeButton,g==null||(a=g.classNames)==null?void 0:a.closeButton)},(Wn=Y?.close)!=null?Wn:o4):null,(Qt||g.icon||g.promise)&&g.icon!==null&&(Y?.[Qt]!==null||g.icon)?re.createElement("div",{"data-icon":"",className:ir(N?.icon,g==null||(o=g.classNames)==null?void 0:o.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||Na():null,g.type!=="loading"?ja:null):null,re.createElement("div",{"data-content":"",className:ir(N?.content,g==null||(l=g.classNames)==null?void 0:l.content)},re.createElement("div",{"data-title":"",className:ir(N?.title,g==null||(u=g.classNames)==null?void 0:u.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?re.createElement("div",{"data-description":"",className:ir(Z,ed,N?.description,g==null||(d=g.classNames)==null?void 0:d.description)},typeof g.description=="function"?g.description():g.description):null),re.isValidElement(g.cancel)?g.cancel:g.cancel&&fu(g.cancel)?re.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||M,onClick:Re=>{fu(g.cancel)&&Kr&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Re),Xn())},className:ir(N?.cancelButton,g==null||(h=g.classNames)==null?void 0:h.cancelButton)},g.cancel.label):null,re.isValidElement(g.action)?g.action:g.action&&fu(g.action)?re.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||X,onClick:Re=>{fu(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Re),!Re.defaultPrevented&&Xn())},className:ir(N?.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function Qb(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function T4(t,e){const n={};return[t,e].forEach((a,o)=>{const l=o===1,u=l?"--mobile-offset":"--offset",d=l?y4:g4;function h(p){["top","right","bottom","left"].forEach(y=>{n[`${u}-${y}`]=typeof p=="number"?`${p}px`:p})}typeof a=="number"||typeof a=="string"?h(a):typeof a=="object"?["top","right","bottom","left"].forEach(p=>{a[p]===void 0?n[`${u}-${p}`]=d:n[`${u}-${p}`]=typeof a[p]=="number"?`${a[p]}px`:a[p]}):h(d)}),n}const x4=re.forwardRef(function(e,n){const{id:a,invert:o,position:l="bottom-right",hotkey:u=["altKey","KeyT"],expand:d,closeButton:h,className:p,offset:y,mobileOffset:g,theme:v="light",richColors:_,duration:w,style:E,visibleToasts:x=m4,toastOptions:T,dir:C=Qb(),gap:R=b4,icons:B,containerAriaLabel:Q="Notifications"}=e,[I,j]=re.useState([]),M=re.useMemo(()=>a?I.filter(V=>V.toasterId===a):I.filter(V=>!V.toasterId),[I,a]),X=re.useMemo(()=>Array.from(new Set([l].concat(M.filter(V=>V.position).map(V=>V.position)))),[M,l]),[ce,Z]=re.useState([]),[F,te]=re.useState(!1),[_e,ie]=re.useState(!1),[N,Y]=re.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ue=re.useRef(null),je=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),J=re.useRef(null),k=re.useRef(!1),H=re.useCallback(V=>{j(W=>{var se;return(se=W.find(le=>le.id===V.id))!=null&&se.delete||hn.dismiss(V.id),W.filter(({id:le})=>le!==V.id)})},[]);return re.useEffect(()=>hn.subscribe(V=>{if(V.dismiss){requestAnimationFrame(()=>{j(W=>W.map(se=>se.id===V.id?{...se,delete:!0}:se))});return}setTimeout(()=>{XD.flushSync(()=>{j(W=>{const se=W.findIndex(le=>le.id===V.id);return se!==-1?[...W.slice(0,se),{...W[se],...V},...W.slice(se+1)]:[V,...W]})})})}),[I]),re.useEffect(()=>{if(v!=="system"){Y(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;const V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:W})=>{Y(W?"dark":"light")})}catch{V.addListener(({matches:se})=>{try{Y(se?"dark":"light")}catch(le){console.error(le)}})}},[v]),re.useEffect(()=>{I.length<=1&&te(!1)},[I]),re.useEffect(()=>{const V=W=>{var se;if(u.every(be=>W[be]||W.code===be)){var pe;te(!0),(pe=ue.current)==null||pe.focus()}W.code==="Escape"&&(document.activeElement===ue.current||(se=ue.current)!=null&&se.contains(document.activeElement))&&te(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[u]),re.useEffect(()=>{if(ue.current)return()=>{J.current&&(J.current.focus({preventScroll:!0}),J.current=null,k.current=!1)}},[ue.current]),re.createElement("section",{ref:n,"aria-label":`${Q} ${je}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},X.map((V,W)=>{var se;const[le,pe]=V.split("-");return M.length?re.createElement("ol",{key:V,dir:C==="auto"?Qb():C,tabIndex:-1,ref:ue,className:p,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":le,"data-x-position":pe,style:{"--front-toast-height":`${((se=ce[0])==null?void 0:se.height)||0}px`,"--width":`${v4}px`,"--gap":`${R}px`,...E,...T4(y,g)},onBlur:be=>{k.current&&!be.currentTarget.contains(be.relatedTarget)&&(k.current=!1,J.current&&(J.current.focus({preventScroll:!0}),J.current=null))},onFocus:be=>{be.target instanceof HTMLElement&&be.target.dataset.dismissible==="false"||k.current||(k.current=!0,J.current=be.relatedTarget)},onMouseEnter:()=>te(!0),onMouseMove:()=>te(!0),onMouseLeave:()=>{_e||te(!1)},onDragEnd:()=>te(!1),onPointerDown:be=>{be.target instanceof HTMLElement&&be.target.dataset.dismissible==="false"||ie(!0)},onPointerUp:()=>ie(!1)},M.filter(be=>!be.position&&W===0||be.position===V).map((be,Se)=>{var kt,Lt;return re.createElement(E4,{key:be.id,icons:B,index:Se,toast:be,defaultRichColors:_,duration:(kt=T?.duration)!=null?kt:w,className:T?.className,descriptionClassName:T?.descriptionClassName,invert:o,visibleToasts:x,closeButton:(Lt=T?.closeButton)!=null?Lt:h,interacting:_e,position:V,style:T?.style,unstyled:T?.unstyled,classNames:T?.classNames,cancelButtonStyle:T?.cancelButtonStyle,actionButtonStyle:T?.actionButtonStyle,closeButtonAriaLabel:T?.closeButtonAriaLabel,removeToast:H,toasts:M.filter(ht=>ht.position==be.position),heights:ce.filter(ht=>ht.position==be.position),setHeights:Z,expandByDefault:d,gap:R,expanded:F,swipeDirections:e.swipeDirections})})):null}))}),A4=({...t})=>D.jsx(x4,{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"}},...t}),e1=ee.forwardRef(({className:t,...e},n)=>D.jsx("div",{ref:n,className:ka("rounded-xl border bg-card text-card-foreground shadow",t),...e}));
56e1.displayName="Card";const R4=ee.forwardRef(({className:t,...e},n)=>D.jsx("div",{ref:n,className:ka("flex flex-col space-y-1.5 p-6",t),...e}));R4.displayName="CardHeader";const k4=ee.forwardRef(({className:t,...e},n)=>D.jsx("div",{ref:n,className:ka("font-semibold leading-none tracking-tight",t),...e}));k4.displayName="CardTitle";const O4=ee.forwardRef(({className:t,...e},n)=>D.jsx("div",{ref:n,className:ka("text-sm text-muted-foreground",t),...e}));O4.displayName="CardDescription";const C4=ee.forwardRef(({className:t,...e},n)=>D.jsx("div",{ref:n,className:ka("p-6 pt-0",t),...e}));C4.displayName="CardContent";const N4=ee.forwardRef(({className:t,...e},n)=>D.jsx("div",{ref:n,className:ka("flex items-center p-6 pt-0",t),...e}));N4.displayName="CardFooter";function j4(){return D.jsxs("section",{className:"flex-1 flex items-center justify-center relative overflow-hidden bg-gradient-hero px-4 py-16",children:[D.jsxs("div",{className:"absolute inset-0 -z-10 opacity-60 pointer-events-none",children:[D.jsx("div",{className:"absolute top-1/4 left-1/4 w-[28rem] h-[28rem] rounded-full bg-primary/15 blur-[6rem]"}),D.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-[32rem] h-[32rem] rounded-full bg-primary-glow/15 blur-[6rem]"})]}),D.jsxs(e1,{className:"relative w-full max-w-xl border border-border shadow-card rounded-3xl p-8 md:p-12 text-center bg-card/80 backdrop-blur-sm",children:[D.jsx("div",{className:"mx-auto mb-6 w-20 h-20 md:w-24 md:h-24 rounded-full bg-gradient-to-br from-primary/20 to-primary-glow/20 flex items-center justify-center animate-float",children:D.jsx(Hj,{className:"w-10 h-10 md:w-12 md:h-12 text-primary"})}),D.jsx("h1",{className:"text-7xl md:text-9xl font-bold tracking-tight text-gradient","aria-label":"404",children:"404"}),D.jsx("h2",{className:"mt-4 text-2xl md:text-3xl font-bold tracking-tight text-foreground",children:"Página não encontrada"}),D.jsx("p",{className:"mt-3 text-base md:text-lg text-muted-foreground max-w-md mx-auto leading-relaxed",children:"A página que você está procurando não existe, foi removida ou teve o endereço alterado."}),D.jsx("div",{className:"mt-8 flex flex-col sm:flex-row items-center justify-center gap-3",children:D.jsx(zu,{asChild:!0,size:"lg",className:"bg-gradient-primary hover:opacity-95 shadow-glow w-full sm:w-auto",children:D.jsxs("a",{href:"https://donodozap.com.br/",children:[D.jsx(Mj,{className:"w-5 h-5 mr-2"}),"Voltar para a página inicial"]})})})]})]})}function D4({error:t,reset:e}){console.error(t);const n=Ht();return D.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:D.jsxs("div",{className:"max-w-md text-center",children:[D.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"This page didn't load"}),D.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Something went wrong on our end. You can try refreshing or head back home."}),D.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[D.jsx("button",{onClick:()=>{n.invalidate(),e()},className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Try again"}),D.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:"Go home"})]})]})})}const Vt=_O()({loader:async()=>{try{const t=await rm();return{seo:$i(t.seo)}}catch{return{seo:$i(null)}}},staleTime:5*6e4,head:({loaderData:t})=>{const e=t?.seo??$i(null);return{meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{name:"author",content:e.siteName},{property:"og:type",content:"website"},{property:"og:site_name",content:e.siteName},{name:"twitter:card",content:"summary_large_image"},{title:e.title},{property:"og:title",content:e.title},{name:"twitter:title",content:e.title},{name:"description",content:e.description},{property:"og:description",content:e.description},{name:"twitter:description",content:e.description}],links:[{rel:"stylesheet",href:Aj},{rel:"icon",href:e.faviconUrl},{rel:"shortcut icon",href:e.faviconUrl},{rel:"apple-touch-icon",href:e.faviconUrl}]}},shellComponent:L4,component:M4,notFoundComponent:j4,errorComponent:D4});function L4({children:t}){return D.jsxs("html",{lang:"pt-BR",children:[D.jsx("head",{children:D.jsx(PO,{})}),D.jsxs("body",{children:[t,D.jsx(BO,{}),D.jsx("div",{style:{display:"none"},dangerouslySetInnerHTML:{__html:`
57              <script id="_wau2d4">
58                var _wau = _wau || [];
59                _wau.push(["small", "vqd90ui6d2", "2d4"]);
60              <\/script>
61              <script async src="//waust.at/s.js"><\/script>
62            `}})]})]})}function M4(){const{queryClient:t}=Vt.useRouteContext(),e=Qw({select:a=>
vendor: 4,954 bytes, line 62
62a.location.pathname}),n=e==="/admin"||e.startsWith("/admin/");return D.jsxs(hj,{client:t,children:[D.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[!n&&D.jsx(FD,{}),D.jsx("main",{className:"flex-1 flex flex-col",children:D.jsx(Kw,{})}),!n&&D.jsx(ZD,{})]}),D.jsx(A4,{})]})}const z4="modulepreload",U4=function(t){return"/"+t},Jb={},Ae=function(e,n,a){let o=Promise.resolve();if(n&&n.length>0){let h=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");o=h(n.map(p=>{if(p=U4(p),p in Jb)return;Jb[p]=!0;const y=p.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":z4,y||(v.as="script"),v.crossOrigin="",v.href=p,d&&v.setAttribute("nonce",d),document.head.appendChild(v),y)return new Promise((_,w)=>{v.addEventListener("load",_),v.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function l(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&l(d.reason);return e().catch(l)})},P4=[{q:"É seguro utilizar o Dono do Zap?",a:"Sim. O Dono do Zap foi criado para ajudar o usuário a consultar informações públicas relacionadas a um número de WhatsApp ou telefone. A consulta é feita de forma simples, rápida e segura, sem instalar aplicativos e sem acessar conversas, mensagens privadas ou dados protegidos."},{q:"Quais informações posso obter em uma consulta de número de WhatsApp?",a:"A consulta pode mostrar informações públicas ou disponíveis em bases permitidas, como possíveis dados associados ao número pesquisado, identificação do contato, indícios de titularidade e outras informações que ajudem o usuário a entender melhor quem pode estar por trás de um número desconhecido. A disponibilidade das informações pode variar conforme o número consultado."},{q:"A pessoa saberá que consultei o número de WhatsApp dela?",a:"Não. A consulta no Dono do Zap é feita de forma sigilosa. A pessoa pesquisada não recebe aviso, notificação ou mensagem informando que o número foi consultado."},{q:"Quanto custa para realizar uma consulta no Dono do Zap?",a:"O Dono do Zap pode oferecer uma busca inicial ou prévia, dependendo da configuração do site. Para visualizar informações completas, poderá ser necessário realizar o pagamento da consulta. O valor é exibido de forma clara antes da finalização da compra."},{q:"Como descobrir o dono de um número de WhatsApp?",a:"Para tentar descobrir o dono de um número de WhatsApp, basta informar o número com DDD no campo de busca do Dono do Zap. O sistema realiza uma verificação e apresenta as informações disponíveis relacionadas ao número consultado, quando houver dados encontrados."},{q:"O Dono do Zap é grátis?",a:"O Dono do Zap pode disponibilizar uma consulta inicial, prévia ou demonstração gratuita, conforme a configuração da plataforma. Para acessar o relatório completo ou informações detalhadas, pode ser cobrada uma taxa de consulta."},{q:"Como saber de quem é um número desconhecido?",a:"Você pode usar o Dono do Zap para pesquisar um número desconhecido e verificar se existem informações públicas associadas a ele. Essa consulta pode ajudar a identificar contatos suspeitos, ligações desconhecidas, mensagens recebidas no WhatsApp ou números que você não reconhece."},{q:"Consigo descobrir o nome da pessoa pelo número de telefone?",a:"Em alguns casos, sim. Quando houver informações disponíveis em fontes públicas ou bases permitidas, o sistema poderá indicar possíveis dados relacionados ao número. Porém, nem toda consulta garante resultado, pois isso depende da disponibilidade das informações."},{q:"O Dono do Zap acessa conversas do WhatsApp?",a:"Não. O Dono do Zap não acessa conversas, mensagens, áudios, fotos, localização em tempo real ou qualquer conteúdo privado do WhatsApp. A ferramenta trabalha apenas com informações públicas ou dados permitidos para consulta."},{q:"Posso consultar qualquer número de WhatsApp?",a:"Você pode consultar números de telefone com DDD, desde que respeite as regras de uso da plataforma. A consulta deve ser usada com finalidade legítima, como identificar um número desconhecido, evitar golpes, confirmar contatos ou aumentar sua segurança digital."},{q:"A consulta mostra CPF, endereço ou dados pessoais sensíveis?",a:"O Dono do Zap exibe apenas informações permitidas por lei e disponíveis conforme as fontes utilizadas. Dados sensíveis, informações protegidas, conversas privadas ou conteúdos sigilosos não são exibid
62os."},{q:"Por que consultar um número antes de responder no WhatsApp?",a:"Consultar um número desconhecido pode ajudar a evitar golpes, contatos falsos, tentativas de fraude e abordagens suspeitas. Antes de responder uma mensagem ou passar informações pessoais, é importante verificar se o número parece confiável."},{q:"O resultado da consulta de WhatsApp é garantido?",a:"Não. O resultado depende da disponibilidade de informações relacionadas ao número pesquisado. Alguns números podem apresentar dados completos, enquanto outros podem ter poucas informações ou nenhum dado encontrado."},{q:"Preciso instalar aplicativo para usar o Dono do Zap?",a:"Não. A consulta pode ser feita diretamente pelo site, sem baixar aplicativo e sem instalar nada no celular. Basta acessar a página, digitar o número com DDD e iniciar a busca."},{q:"O Dono do Zap funciona para números de todo o Brasil?",a:"Sim. A plataforma permite consultas de números brasileiros com DDD. A disponibilidade das informações pode variar de acordo com a região, operadora, histórico do número e dados encontrados nas fontes consultadas."},{q:"Posso usar o Dono do Zap para evitar golpes no WhatsApp?",a:"Sim. O Dono do Zap pode ser usado como uma ferramenta de apoio para verificar números desconhecidos, contatos suspeitos e mensagens recebidas pelo WhatsApp. A consulta ajuda o usuário a tomar decisões com mais segurança antes de responder ou confiar em um contato."}],I4=()=>Ae(()=>import("./index-CwII6Xkd.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29])),B4=ke()({loader:async()=>{try{const t=await rm();return{seo:$i(t.seo)}}catch{return{seo:$i(null)}}},head:({loaderData:t})=>{const e=t?.seo??$i(null),n=l=>l.startsWith("http")?l:`https://donodozap.com.br${l.startsWith("/")?"":"/"}${l}`,a=n(e.ogImageUrl),o=n(e.faviconUrl);return{meta:[{title:e.title},{name:"description",content:e.description},{property:"og:title",content:e.title},{property:"og:description",content:e.description},{property:"og:type",content:"website"},{property:"og:url",content:"https://donodozap.com.br"},{property:"og:image",content:a},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{property:"og:locale",content:"pt_BR"},{property:"og:site_name",content:e.siteName},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:e.title},{name:"twitter:description",content:e.description},{name:"twitter:image",content:a}],links:[{rel:"canonical",href:"https://donodozap.com.br"}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://donodozap.com.br/#organization",name:e.siteName,legalName:e.siteName,alternateName:"DonoDoZap",url:"https://donodozap.com.br",description:e.description,slogan:"Descubra quem está por trás de qualquer número de WhatsApp.",foundingDate:"2024",areaServed:{"@type":"Country",name:"Brasil"},inLanguage:"pt-BR",logo:{"@type":"ImageObject","@id":"https://donodozap.com.br/#logo",url:o,caption:e.siteName},image:a,contactPoint:[{"@type":"ContactPoint",contactType:"customer support",email:"[email protected]",areaServed:"BR",availableLanguage:["Portuguese","pt-BR"],url:"https://donodozap.com.br/contato"},{"@type":"ContactPoint",contactType:"customer service",email:"[email protected]",areaServed:"BR",availableLanguage:["Portuguese","pt-BR"],url:"https://donodozap.com.br/contato"}],sameAs:["https://www.instagram.com/donodozap","https://www.facebook.com/donodozap","https://www.tiktok.com/@donodozap"]},{"@type":"WebSite","@id":"https://donodozap.com.br/#website",name:"Dono do Zap - Consulta de Número de WhatsApp Grátis",alternateName:"Dono do Zap",url:"https://donodozap.com.br",inLanguage:"pt-BR",description:"Consulte qualquer número de WhatsApp grátis. Descubra o dono do número, nome, foto e dados públicos em segundos.",publisher:{"@id":"https://donodozap.com.br/#organization"},potentialAction:{"@type":"SearchAction",name:"Consultar número de WhatsApp",target:{"@type":"EntryPoint",urlTemplate:"https://donodozap.com.br/resultado?numero={numero}"},"query-input":"required name=numero"}},{"@type":"FAQPage","@id":"https://donodozap.com.br/#faqpage",url:"https://donodozap.com.br",mainEntity:P4.map(l=>
62({"@type":"Question",name:l.q,acceptedAnswer:{"@type":"Answer",text:l.a}}))}]})}]}},component:xe(I4,"component")}),$4=()=>Ae(()=>import("./admin-D6o5cKmf.js"),__vite__mapDeps([30,31,32,33,2,3,4,5,6,7,19,15,34,35,36,37,38,21,29,39,28,40,41,42,16,23,43,18,44])),q4=ke()({head:()=>({meta:[{title:"Painel admin — Dono do Zap"},{name:"robots",content:"noindex,nofollow"}]}),component:xe($4,"component")});var Fe;(function(t){t.assertEqual=o=>{};function e(o){}t.assertIs=e;function n(o){throw new Error}t.assertNever=n,t.arrayToEnum=o=>{const l={};for(const u of o)l[u]=u;return l},t.getValidEnumValues=o=>{const l=t.objectKeys(o).filter(d=>typeof o[o[d]]!="number"),u={};for(const d of l)u[d]=o[d];return t.objectValues(u)},t.objectValues=o=>t.objectKeys(o).map(function(l){return o[l]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const l=[];for(const u in o)Object.prototype.hasOwnProperty.call(o,u)&&l.push(u);return l},t.find=(o,l)=>{for(const u of o)if(l(u))return u},t.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function a(o,l=" | "){return o.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}t.joinValues=a,t.jsonStringifyReplacer=(o,l)=>typeof l=="bigint"?l.toString():l})(Fe||(Fe={}));var Xb;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Xb||(Xb={}));const ge=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ts=t=>{switch(typeof t){case"undefined":return ge.undefined;case"string":return ge.string;case"number":return Number.isNaN(t)?ge.nan:ge.number;case"boolean":return ge.boolean;case"function":return ge.function;case"bigint":return ge.bigint;case"symbol":return ge.symbol;case"object":return Array.isArray(t)?ge.array:t===null?ge.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ge.promise:typeof Map<"u"&&t instanceof Map?ge.map:typeof Set<"u"&&t instanceof Set?ge.set:typeof Date<"u"&&t instanceof Date?ge.date:ge.object;default:return ge.unknown}}
vendor: 18,322 bytes, line 62
62,ne=Fe.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"]);class Vr extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(l){return l.message},a={_errors:[]},o=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(o);else if(u.code==="invalid_return_type")o(u.returnTypeError);else if(u.code==="invalid_arguments")o(u.argumentsError);else if(u.path.length===0)a._errors.push(n(u));else{let d=a,h=0;for(;h<u.path.length;){const p=u.path[h];h===u.path.length-1?(d[p]=d[p]||{_errors:[]},d[p]._errors.push(n(u))):d[p]=d[p]||{_errors:[]},d=d[p],h++}}};return o(this),a}static assert(e){if(!(e instanceof Vr))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},a=[];for(const o of this.issues)if(o.path.length>0){const l=o.path[0];n[l]=n[l]||[],n[l].push(e(o))}else a.push(e(o));return{formErrors:a,fieldErrors:n}}get formErrors(){return this.flatten()}}Vr.create=t=>new Vr(t);const _p=(t,e)=>{let n;switch(t.code){case ne.invalid_type:t.received===ge.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case ne.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Fe.jsonStringifyReplacer)}`;break;case ne.unrecognized_keys:n=`Unrecognized key(s) in object: ${Fe.joinValues(t.keys,", ")}`;break;case ne.invalid_union:n="Invalid input";break;case ne.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Fe.joinValues(t.options)}`;break;case ne.invalid_enum_value:n=`Invalid enum value. Expected ${Fe.joinValues(t.options)}, received '${t.received}'`;break;case ne.invalid_arguments:n="Invalid function arguments";break;case ne.invalid_return_type:n="Invalid function return type";break;case ne.invalid_date:n="Invalid date";break;case ne.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Fe.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case ne.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case ne.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case ne.custom:n="Invalid input";break;case ne.invalid_intersection_types:n="Intersection results could not be merged";break;case ne.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case ne.not_finite:n="Number must be finite";break;default:n=e.defaultError,Fe.assertNever(t)}return{message:n}};let H4=_p;function V4(){return H4}const G4=t=>{const{data:e,path:n,errorMaps:a,issueData:o}=t,l=[...n,...o.path||[]],u={...o,path:l};if(o.message!==void 0)return{...o,path:l,message:o.message};let d="";const h=a.filter(p=>!!p).slice().reverse();for(const p of h)d=p(u,{data:e,defaultError:d}).message;return{...o,path:l,message:d}};function oe(t,e){const n=V4(),a=G4({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===_p?void 0:_p].filter(o=>!!o)});t.common.issues.push(a)}class An{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const a=[];for(const o of n){if(o.status==="aborted")return Ce;o.status==="dirty"&&e.dirty(),a.push(o.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,n){const a=[];for(const o of n){const l=await o.key,u=await o.value;a.push({key:l,value:u})}return An.mergeObjectSync(e,a)}static mergeObjectSync(e,n){const a={};for(const o of n){const{key:l,value:u}=o;if(l.status==="aborted"||u.status==="aborted")return Ce;l.status==="dirty"&&e.dirty(),u.status==="dirty"&&e.dirty(),l.value!=="__proto__"&&(typeof u.value<"u"||o.alwaysSet)&&(a[l.value]=u.value)}return{status:e.value,value:a}}}const Ce=Object.freeze({status:"aborted"}),el=t=>({status:"dirty",value:t}),Pn=t=>({status:"valid",value:t}),Wb=t=>t.status==="aborted",e_=t=>t.status==="dirty",qi=t=>t.status==="valid",Uu=t=>typeof Promise<"u"&&t instanceof Promise;var ve;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(ve||(ve={}));class Ps{constructor(e,n,a,o){this._cachedPath=[],this.parent=e,this.data=n,this._path=a,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const t_=(t,e)=>{if(qi(e))return{success:!0,data:e.value};if(!t.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 Vr(t.common.issues);return this._error=n,this._error}}};function ze(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:a,description:o}=t;if(e&&(n||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(u,d)=>{const{message:h}=t;return u.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??a??d.defaultError}:u.code!=="invalid_type"?{message:d.defaultError}:{message:h??n??d.defaultError}},description:o}}class He{get description(){return this._def.description}_getType(e){return Ts(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Ts(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new An,ctx:{common:e.parent.common,data:e.data,parsedType:Ts(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Uu(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const a=this.safeParse(e,n);if(a.success)return a.data;throw a.error}safeParse(e,n){const a={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ts(e)},o=this._parseSync({data:e,path:a.path,parent:a});return t_(a,o)}"~validate"(e){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ts(e)};if(!this["~standard"].async)try{const a=this._parseSync({data:e,path:[],parent:n});return qi(a)?{value:a.value}:{issues:n.common.issues}}catch(a){a?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(a=>qi(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(e,n){const a=await this.safeParseAsync(e,n);if(a.success)return a.data;throw a.error}async safeParseAsync(e,n){const a={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ts(e)},o=this._parse({data:e,path:a.path,parent:a}),l=await(Uu(o)?o:Promise.resolve(o));return t_(a,l)}refine(e,n){const a=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,l)=>{const u=e(o),d=()=>l.addIssue({code:ne.custom,...a(o)});return typeof Promise<"u"&&u instanceof Promise?u.then(h=>h?!0:(d(),!1)):u?!0:(d(),!1)})}refinement(e,n){return this._refinement((a,o)=>e(a)?!0:(o.addIssue(typeof n=="function"?n(a,o):n),!1))}_refinement(e){return new Gi({schema:this,typeName:Ne.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,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),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ls.create(this,this._def)}nullable(){return Fi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return fr.create(this)}promise(){return $u.create(this,this._def)}or(e){return Iu.create([this,e],this._def)}and(e){return Bu.create(this,e,this._def)}transform(e){return new Gi({...ze(this._def),schema:this,typeName:Ne.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Tp({...ze(this._def),innerType:this,defaultValue:n,typeName:Ne.ZodDefault})}brand(){return new p3({typeName:Ne.ZodBranded,type:this,...ze(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new xp({...ze(this._def),innerType:this,catchValue:n,typeName:Ne.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return sm.create(this,e)}readonly(){return Ap.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const F4=/^c[^\s-]{8,}$/i,Z4=/^[0-9a-z]+$/,K4=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Y4=/^[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,Q4=/^[a-z0-9_-]{21}$/i,J4=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,X4=/^[-+]?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)?)??$/,W4=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,e3="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Uh;const t3=/^(?:(?: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])$/,n3=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,r3=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,s3=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,a3=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,i3=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,t1="((\\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])))",o3=new RegExp(`^${t1}$`);function n1(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function l3(t){return new RegExp(`^${n1(t)}$`)}function c3(t){let e=`${t1}T${n1(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function u3(t,e){return!!((e==="v4"||!e)&&t3.test(t)||(e==="v6"||!e)&&r3.test(t))}function d3(t,e){if(!J4.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const a=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(a));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||e&&o.alg!==e)}catch{return!1}}function f3(t,e){return!!((e==="v4"||!e)&&n3.test(t)||(e==="v6"||!e)&&s3.test(t))}class Cs extends He{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ge.string){const l=this._getOrReturnCtx(e);return oe(l,{code:ne.invalid_type,expected:ge.string,received:l.parsedType}),Ce}const a=new An;let o;for(const l of this._def.checks)if(l.kind==="min")e.data.length<l.value&&(o=this._getOrReturnCtx(e,o),oe(o,{code:ne.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),a.dirty());else if(l.kind==="max")e.data.length>l.value&&(o=this._getOrReturnCtx(e,o),oe(o,{code:ne.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),a.dirty());else if(l.kind==="length"){const u=e.data.length>l.value,d=e.data.length<l.value;(u||d)&&(o=this._getOrReturnCtx(e,o),u?oe(o,{code:ne.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):d&&oe(o,{code:ne.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),a.dirty())}else if(l.kind==="email")W4.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"email",code:ne.invalid_string,message:l.message}),a.dirty());else if(l.kind==="emoji")Uh||(Uh=new RegExp(e3,"u")),Uh.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"emoji",code:ne.invalid_string,message:l.message}),a.dirty());else if(l.kind==="uuid")Y4.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"uuid",code:ne.invalid_string,message:l.message}),a.dirty());else if(l.kind==="nanoid")Q4.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"nanoid",code:ne.invalid_string,message:l.message}),a.dirty());else if(l.kind==="cuid")F4.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"cuid",code:ne.invalid_string,message:l.message}),a.dirty());else if(l.kind==="cuid2")Z4.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"cuid2",code:ne.invalid_string,message:l.message}),a.dirty());else if(l.kind==="ulid")K4.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"ulid",code:ne.invalid_string,message:l.message}),a.dirty());else if(l.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),oe(o,{validation:"url",code:ne.invalid_string,message:l.message}),a.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"regex",code:ne.invalid_string,message:l.message}),a.dirty())):l.kind==="trim"?e.data=e.data.trim():l.kind==="includes"?e.data.includes(l.value,l.position)||(o=this._getOrReturnCtx(e,o),oe(o,{code:ne.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),a.dirty()):l.kind==="toLowerCase"?e.data=e.data.toLowerCase():l.kind==="toUpperCase"?e.data=e.data.toUpperCase():l.kind==="startsWith"?e.data.startsWith(l.value)||(o=this._getOrReturnCtx(e,o),oe(o,{code:ne.invalid_string,validation:{startsWith:l.value},message:l.message}),a.dirty()):l.kind==="endsWith"?e.data.endsWith(l.value)||(o=this._getOrReturnCtx(e,o),oe(o,{code:ne.invalid_string,validation:{endsWith:l.value},message:l.message}
vendor: 4,321 bytes, line 62
62),a.dirty()):l.kind==="datetime"?c3(l).test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{code:ne.invalid_string,validation:"datetime",message:l.message}),a.dirty()):l.kind==="date"?o3.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{code:ne.invalid_string,validation:"date",message:l.message}),a.dirty()):l.kind==="time"?l3(l).test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{code:ne.invalid_string,validation:"time",message:l.message}),a.dirty()):l.kind==="duration"?X4.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"duration",code:ne.invalid_string,message:l.message}),a.dirty()):l.kind==="ip"?u3(e.data,l.version)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"ip",code:ne.invalid_string,message:l.message}),a.dirty()):l.kind==="jwt"?d3(e.data,l.alg)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"jwt",code:ne.invalid_string,message:l.message}),a.dirty()):l.kind==="cidr"?f3(e.data,l.version)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"cidr",code:ne.invalid_string,message:l.message}),a.dirty()):l.kind==="base64"?a3.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"base64",code:ne.invalid_string,message:l.message}),a.dirty()):l.kind==="base64url"?i3.test(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{validation:"base64url",code:ne.invalid_string,message:l.message}),a.dirty()):Fe.assertNever(l);return{status:a.value,value:e.data}}_regex(e,n,a){return this.refinement(o=>e.test(o),{validation:n,code:ne.invalid_string,...ve.errToObj(a)})}_addCheck(e){return new Cs({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ve.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ve.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ve.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ve.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ve.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ve.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ve.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ve.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ve.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ve.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ve.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ve.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ve.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...ve.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...ve.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...ve.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...ve.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...ve.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...ve.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...ve.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...ve.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...ve.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...ve.errToObj(n)})}nonempty(e){return this.min(1,ve.errToObj(e))}trim(){return new Cs({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cs({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cs({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}
vendor: 26,407 bytes, line 62
62get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Cs.create=t=>new Cs({checks:[],typeName:Ne.ZodString,coerce:t?.coerce??!1,...ze(t)});function h3(t,e){const n=(t.toString().split(".")[1]||"").length,a=(e.toString().split(".")[1]||"").length,o=n>a?n:a,l=Number.parseInt(t.toFixed(o).replace(".","")),u=Number.parseInt(e.toFixed(o).replace(".",""));return l%u/10**o}class Hi extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ge.number){const l=this._getOrReturnCtx(e);return oe(l,{code:ne.invalid_type,expected:ge.number,received:l.parsedType}),Ce}let a;const o=new An;for(const l of this._def.checks)l.kind==="int"?Fe.isInteger(e.data)||(a=this._getOrReturnCtx(e,a),oe(a,{code:ne.invalid_type,expected:"integer",received:"float",message:l.message}),o.dirty()):l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(a=this._getOrReturnCtx(e,a),oe(a,{code:ne.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(a=this._getOrReturnCtx(e,a),oe(a,{code:ne.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="multipleOf"?h3(e.data,l.value)!==0&&(a=this._getOrReturnCtx(e,a),oe(a,{code:ne.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):l.kind==="finite"?Number.isFinite(e.data)||(a=this._getOrReturnCtx(e,a),oe(a,{code:ne.not_finite,message:l.message}),o.dirty()):Fe.assertNever(l);return{status:o.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,ve.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ve.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ve.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ve.toString(n))}setLimit(e,n,a,o){return new Hi({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:a,message:ve.toString(o)}]})}_addCheck(e){return new Hi({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ve.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ve.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ve.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ve.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ve.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ve.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:ve.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ve.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ve.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Fe.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(n===null||a.value>n)&&(n=a.value):a.kind==="max"&&(e===null||a.value<e)&&(e=a.value)}return Number.isFinite(n)&&Number.isFinite(e)}}Hi.create=t=>new Hi({checks:[],typeName:Ne.ZodNumber,coerce:t?.coerce||!1,...ze(t)});class xl extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==ge.bigint)return this._getInvalidInput(e);let a;const o=new An;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(a=this._getOrReturnCtx(e,a),oe(a,{code:ne.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(a=this._getOrReturnCtx(e,a),oe(a,{code:ne.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="multipleOf"?e.data%l.value!==BigInt(0)&&(a=this._getOrReturnCtx(e,a),oe(a,{code:ne.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):Fe.assertNever(l);return{status:o.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return oe(n,{code:ne.invalid_type,expected:ge.bigint,received:n.parsedType}),Ce}gte(e,n){return this.setLimit("min",e,!0,ve.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ve.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ve.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ve.toString(n))}setLimit(e,n,a,o){return new xl({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:a,message:ve.toString(o)}]})}_addCheck(e){return new xl({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ve.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ve.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ve.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ve.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ve.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}xl.create=t=>new xl({checks:[],typeName:Ne.ZodBigInt,coerce:t?.coerce??!1,...ze(t)});class wp extends He{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ge.boolean){const a=this._getOrReturnCtx(e);return oe(a,{code:ne.invalid_type,expected:ge.boolean,received:a.parsedType}),Ce}return Pn(e.data)}}wp.create=t=>new wp({typeName:Ne.ZodBoolean,coerce:t?.coerce||!1,...ze(t)});class Pu extends He{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ge.date){const l=this._getOrReturnCtx(e);return oe(l,{code:ne.invalid_type,expected:ge.date,received:l.parsedType}),Ce}if(Number.isNaN(e.data.getTime())){const l=this._getOrReturnCtx(e);return oe(l,{code:ne.invalid_date}),Ce}const a=new An;let o;for(const l of this._def.checks)l.kind==="min"?e.data.getTime()<l.value&&(o=this._getOrReturnCtx(e,o),oe(o,{code:ne.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),a.dirty()):l.kind==="max"?e.data.getTime()>l.value&&(o=this._getOrReturnCtx(e,o),oe(o,{code:ne.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),a.dirty()):Fe.assertNever(l);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Pu({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:ve.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:ve.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}Pu.create=t=>new Pu({checks:[],coerce:t?.coerce||!1,typeName:Ne.ZodDate,...ze(t)});class n_ extends He{_parse(e){if(this._getType(e)!==ge.symbol){const a=this._getOrReturnCtx(e);return oe(a,{code:ne.invalid_type,expected:ge.symbol,received:a.parsedType}),Ce}return Pn(e.data)}}n_.create=t=>new n_({typeName:Ne.ZodSymbol,...ze(t)});class r_ extends He{_parse(e){if(this._getType(e)!==ge.undefined){const a=this._getOrReturnCtx(e);return oe(a,{code:ne.invalid_type,expected:ge.undefined,received:a.parsedType}),Ce}return Pn(e.data)}}r_.create=t=>new r_({typeName:Ne.ZodUndefined,...ze(t)});class s_ extends He{_parse(e){if(this._getType(e)!==ge.null){const a=this._getOrReturnCtx(e);return oe(a,{code:ne.invalid_type,expected:ge.null,received:a.parsedType}),Ce}return Pn(e.data)}}s_.create=t=>new s_({typeName:Ne.ZodNull,...ze(t)});class a_ extends He{constructor(){super(...arguments),this._any=!0}_parse(e){return Pn(e.data)}}a_.create=t=>new a_({typeName:Ne.ZodAny,...ze(t)});class i_ extends He{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Pn(e.data)}}i_.create=t=>new i_({typeName:Ne.ZodUnknown,...ze(t)});class Is extends He{_parse(e){const n=this._getOrReturnCtx(e);return oe(n,{code:ne.invalid_type,expected:ge.never,received:n.parsedType}),Ce}}Is.create=t=>new Is({typeName:Ne.ZodNever,...ze(t)});class o_ extends He{_parse(e){if(this._getType(e)!==ge.undefined){const a=this._getOrReturnCtx(e);return oe(a,{code:ne.invalid_type,expected:ge.void,received:a.parsedType}),Ce}return Pn(e.data)}}o_.create=t=>new o_({typeName:Ne.ZodVoid,...ze(t)});class fr extends He{_parse(e){const{ctx:n,status:a}=this._processInputParams(e),o=this._def;if(n.parsedType!==ge.array)return oe(n,{code:ne.invalid_type,expected:ge.array,received:n.parsedType}),Ce;if(o.exactLength!==null){const u=n.data.length>o.exactLength.value,d=n.data.length<o.exactLength.value;(u||d)&&(oe(n,{code:u?ne.too_big:ne.too_small,minimum:d?o.exactLength.value:void 0,maximum:u?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),a.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(oe(n,{code:ne.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),a.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(oe(n,{code:ne.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),a.dirty()),n.common.async)return Promise.all([...n.data].map((u,d)=>o.type._parseAsync(new Ps(n,u,n.path,d)))).then(u=>An.mergeArray(a,u));const l=[...n.data].map((u,d)=>o.type._parseSync(new Ps(n,u,n.path,d)));return An.mergeArray(a,l)}get element(){return this._def.type}min(e,n){return new fr({...this._def,minLength:{value:e,message:ve.toString(n)}})}max(e,n){return new fr({...this._def,maxLength:{value:e,message:ve.toString(n)}})}length(e,n){return new fr({...this._def,exactLength:{value:e,message:ve.toString(n)}})}nonempty(e){return this.min(1,e)}}fr.create=(t,e)=>new fr({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Ne.ZodArray,...ze(e)});function Ni(t){if(t instanceof St){const e={};for(const n in t.shape){const a=t.shape[n];e[n]=Ls.create(Ni(a))}return new St({...t._def,shape:()=>e})}else return t instanceof fr?new fr({...t._def,type:Ni(t.element)}):t instanceof Ls?Ls.create(Ni(t.unwrap())):t instanceof Fi?Fi.create(Ni(t.unwrap())):t instanceof Sa?Sa.create(t.items.map(e=>Ni(e))):t}class St extends He{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Fe.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==ge.object){const p=this._getOrReturnCtx(e);return oe(p,{code:ne.invalid_type,expected:ge.object,received:p.parsedType}),Ce}const{status:a,ctx:o}=this._processInputParams(e),{shape:l,keys:u}=this._getCached(),d=[];if(!(this._def.catchall instanceof Is&&this._def.unknownKeys==="strip"))for(const p in o.data)u.includes(p)||d.push(p);const h=[];for(const p of u){const y=l[p],g=o.data[p];h.push({key:{status:"valid",value:p},value:y._parse(new Ps(o,g,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof Is){const p=this._def.unknownKeys;if(p==="passthrough")for(const y of d)h.push({key:{status:"valid",value:y},value:{status:"valid",value:o.data[y]}});else if(p==="strict")d.length>0&&(oe(o,{code:ne.unrecognized_keys,keys:d}),a.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const y of d){const g=o.data[y];h.push({key:{status:"valid",value:y},value:p._parse(new Ps(o,g,o.path,y)),alwaysSet:y in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const p=[];for(const y of h){const g=await y.key,v=await y.value;p.push({key:g,value:v,alwaysSet:y.alwaysSet})}return p}).then(p=>An.mergeObjectSync(a,p)):An.mergeObjectSync(a,h)}get shape(){return this._def.shape()}strict(e){return ve.errToObj,new St({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,a)=>{const o=this._def.errorMap?.(n,a).message??a.defaultError;return n.code==="unrecognized_keys"?{message:ve.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new St({...this._def,unknownKeys:"strip"})}passthrough(){return new St({...this._def,unknownKeys:"passthrough"})}extend(e){return new St({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new St({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ne.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new St({...this._def,catchall:e})}pick(e){const n={};for(const a of Fe.objectKeys(e))e[a]&&this.shape[a]&&(n[a]=this.shape[a]);return new St({...this._def,shape:()=>n})}omit(e){const n={};for(const a of Fe.objectKeys(this.shape))e[a]||(n[a]=this.shape[a]);return new St({...this._def,shape:()=>n})}deepPartial(){return Ni(this)}partial(e){const n={};for(const a of Fe.objectKeys(this.shape)){const o=this.shape[a];e&&!e[a]?n[a]=o:n[a]=o.optional()}return new St({...this._def,shape:()=>n})}required(e){const n={};for(const a of Fe.objectKeys(this.shape))if(e&&!e[a])n[a]=this.shape[a];else{let l=this.shape[a];for(;l instanceof Ls;)l=l._def.innerType;n[a]=l}return new St({...this._def,shape:()=>n})}keyof(){return r1(Fe.objectKeys(this.shape))}}St.create=(t,e)=>new St({shape:()=>t,unknownKeys:"strip",catchall:Is.create(),typeName:Ne.ZodObject,...ze(e)});St.strictCreate=(t,e)=>new St({shape:()=>t,unknownKeys:"strict",catchall:Is.create(),typeName:Ne.ZodObject,...ze(e)});St.lazycreate=(t,e)=>new St({shape:t,unknownKeys:"strip",catchall:Is.create(),typeName:Ne.ZodObject,...ze(e)});class Iu extends He{_parse(e){const{ctx:n}=this._processInputParams(e),a=this._def.options;function o(l){for(const d of l)if(d.result.status==="valid")return d.result;for(const d of l)if(d.result.status==="dirty")return n.common.issues.push(...d.ctx.common.issues),d.result;const u=l.map(d=>new Vr(d.ctx.common.issues));return oe(n,{code:ne.invalid_union,unionErrors:u}),Ce}if(n.common.async)return Promise.all(a.map(async l=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(o);{let l;const u=[];for(const h of a){const p={...n,common:{...n.common,issues:[]},parent:null},y=h._parseSync({data:n.data,path:n.path,parent:p});if(y.status==="valid")return y;y.status==="dirty"&&!l&&(l={result:y,ctx:p}),p.common.issues.length&&u.push(p.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;const d=u.map(h=>new Vr(h));return oe(n,{code:ne.invalid_union,unionErrors:d}),Ce}}get options(){return this._def.options}}Iu.create=(t,e)=>new Iu({options:t,typeName:Ne.ZodUnion,...ze(e)});function Sp(t,e){const n=Ts(t),a=Ts(e);if(t===e)return{valid:!0,data:t};if(n===ge.object&&a===ge.object){const o=Fe.objectKeys(e),l=Fe.objectKeys(t).filter(d=>o.indexOf(d)!==-1),u={...t,...e};for(const d of l){const h=Sp(t[d],e[d]);if(!h.valid)return{valid:!1};u[d]=h.data}return{valid:!0,data:u}}else if(n===ge.array&&a===ge.array){if(t.length!==e.length)return{valid:!1};const o=[];for(let l=0;l<t.length;l++){const u=t[l],d=e[l],h=Sp(u,d);if(!h.valid)return{valid:!1};o.push(h.data)}return{valid:!0,data:o}}else return n===ge.date&&a===ge.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Bu extends He{_parse(e){const{status:n,ctx:a}=this._processInputParams(e),o=(l,u)=>{if(Wb(l)||Wb(u))return Ce;const d=Sp(l.value,u.value);return d.valid?((e_(l)||e_(u))&&n.dirty(),{status:n.value,value:d.data}):(oe(a,{code:ne.invalid_intersection_types}),Ce)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([l,u])=>o(l,u)):o(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}Bu.create=(t,e,n)=>new Bu({left:t,right:e,typeName:Ne.ZodIntersection,...ze(n)});class Sa extends He{_parse(e){const{status:n,ctx:a}=this._processInputParams(e);if(a.parsedType!==ge.array)return oe(a,{code:ne.invalid_type,expected:ge.array,received:a.parsedType}),Ce;if(a.data.length<this._def.items.length)return oe(a,{code:ne.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ce;!this._def.rest&&a.data.length>this._def.items.length&&(oe(a,{code:ne.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const l=[...a.data].map((u,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new Ps(a,u,a.path,d)):null}).filter(u=>!!u);return a.common.async?Promise.all(l).then(u=>An.mergeArray(n,u)):An.mergeArray(n,l)}get items(){return this._def.items}rest(e){return new Sa({...this._def,rest:e})}}Sa.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Sa({items:t,typeName:Ne.ZodTuple,rest:null,...ze(e)})};class l_ extends He{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:a}=this._processInputParams(e);if(a.parsedType!==ge.map)return oe(a,{code:ne.invalid_type,expected:ge.map,received:a.parsedType}),Ce;const o=this._def.keyType,l=this._def.valueType,u=[...a.data.entries()].map(([d,h],p)=>({key:o._parse(new Ps(a,d,a.path,[p,"key"])),value:l._parse(new Ps(a,h,a.path,[p,"value"]))}));if(a.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of u){const p=await h.key,y=await h.value;if(p.status==="aborted"||y.status==="aborted")return Ce;(p.status==="dirty"||y.status==="dirty")&&n.dirty(),d.set(p.value,y.value)}return{status:n.value,value:d}})}else{const d=new Map;for(const h of u){const p=h.key,y=h.value;if(p.status==="aborted"||y.status==="aborted")return Ce;(p.status==="dirty"||y.status==="dirty")&&n.dirty(),d.set(p.value,y.value)}return{status:n.value,value:d}}}}l_.create=(t,e,n)=>new l_({valueType:e,keyType:t,typeName:Ne.ZodMap,...ze(n)});class Al extends He{_parse(e){const{status:n,ctx:a}=this._processInputParams(e);if(a.parsedType!==ge.set)return oe(a,{code:ne.invalid_type,expected:ge.set,received:a.parsedType}),Ce;const o=this._def;o.minSize!==null&&a.data.size<o.minSize.value&&(oe(a,{code:ne.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&a.data.size>o.maxSize.value&&(oe(a,{code:ne.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const l=this._def.valueType;function u(h){const p=new Set;for(const y of h){if(y.status==="aborted")return Ce;y.status==="dirty"&&n.dirty(),p.add(y.value)}return{status:n.value,value:p}}const d=[...a.data.values()].map((h,p)=>l._parse(new Ps(a,h,a.path,p)));return a.common.async?Promise.all(d).then(h=>u(h)):u(d)}min(e,n){return new Al({...this._def,minSize:{value:e,message:ve.toString(n)}})}max(e,n){return new Al({...this._def,maxSize:{value:e,message:ve.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}Al.create=(t,e)=>new Al({valueType:t,minSize:null,maxSize:null,typeName:Ne.ZodSet,...ze(e)});class c_ extends He{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}c_.create=(t,e)=>new c_({getter:t,typeName:Ne.ZodLazy,...ze(e)});class Ep extends He{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return oe(n,{received:n.data,code:ne.invalid_literal,expected:this._def.value}),Ce}return{status:"valid",value:e.data}}get value(){return this._def.value}}Ep.create=(t,e)=>new Ep({value:t,typeName:Ne.ZodLiteral,...ze(e)});function r1(t,e){return new Vi({values:t,typeName:Ne.ZodEnum,...ze(e)})}class Vi extends He{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),a=this._def.values;return oe(n,{expected:Fe.joinValues(a),received:n.parsedType,code:ne.invalid_type}),Ce}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),a=this._def.values;return oe(n,{received:n.data,code:ne.invalid_enum_value,options:a}),Ce}return Pn(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return Vi.create(e,{...this._def,...n})}exclude(e,n=this._def){return Vi.create(this.options.filter(a=>!e.includes(a)),{...this._def,...n})}}Vi.create=r1;class u_ extends He{_parse(e){const n=Fe.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==ge.string&&a.parsedType!==ge.number){const o=Fe.objectValues(n);return oe(a,{expected:Fe.joinValues(o),received:a.parsedType,code:ne.invalid_type}),Ce}if(this._cache||(this._cache=new Set(Fe.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const o=Fe.objectValues(n);return oe(a,{received:a.data,code:ne.invalid_enum_value,options:o}),Ce}return Pn(e.data)}get enum(){return this._def.values}}u_.create=(t,e)=>new u_({values:t,typeName:Ne.ZodNativeEnum,...ze(e)});class $u extends He{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==ge.promise&&n.common.async===!1)return oe(n,{code:ne.invalid_type,expected:ge.promise,received:n.parsedType}),Ce;const a=n.parsedType===ge.promise?n.data:Promise.resolve(n.data);return Pn(a.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}$u.create=(t,e)=>new $u({type:t,typeName:Ne.ZodPromise,...ze(e)});class Gi extends He{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:a}=this._processInputParams(e),o=this._def.effect||null,l={addIssue:u=>{oe(a,u),u.fatal?n.abort():n.dirty()},get path(){return a.path}};if(l.addIssue=l.addIssue.bind(l),o.type==="preprocess"){const u=o.transform(a.data,l);if(a.common.async)return Promise.resolve(u).then(async d=>{if(n.value==="aborted")return Ce;const h=await this._def.schema._parseAsync({data:d,path:a.path,parent:a});return h.status==="aborted"?Ce:h.status==="dirty"||n.value==="dirty"?el(h.value):h});{if(n.value==="aborted")return Ce;const d=this._def.schema._parseSync({data:u,path:a.path,parent:a});return d.status==="aborted"?Ce:d.status==="dirty"||n.value==="dirty"?el(d.value):d}}if(o.type==="refinement"){const u=d=>{const h=o.refinement(d,l);if(a.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(a.common.async===!1){const d=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return d.status==="aborted"?Ce:(d.status==="dirty"&&n.dirty(),u(d.value),{status:n.value,value:d.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(d=>d.status==="aborted"?Ce:(d.status==="dirty"&&n.dirty(),u(d.value).then(()=>({status:n.value,value:d.value}))))}if(o.type==="transform")if(a.common.async===!1){const u=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!qi(u))return Ce;const d=o.transform(u.value,l);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:d}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(u=>qi(u)?Promise.resolve(o.transform(u.value,l)).then(d=>({status:n.value,value:d})):Ce);Fe.assertNever(o)}}Gi.create=(t,e,n)=>new Gi({schema:t,typeName:Ne.ZodEffects,effect:e,...ze(n)});Gi.createWithPreprocess=(t,e,n)=>new Gi({schema:e,effect:{type:"preprocess",transform:t},typeName:Ne.ZodEffects,...ze(n)});class Ls extends He{_parse(e){return this._getType(e)===ge.undefined?Pn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ls.create=(t,e)=>new Ls({innerType:t,typeName:Ne.ZodOptional,...ze(e)});class Fi extends He{_parse(e){return this._getType(e)===ge.null?Pn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Fi.create=(t,e)=>new Fi({innerType:t,typeName:Ne.ZodNullable,...ze(e)});class Tp extends He{_parse(e){const{ctx:n}=this._processInputParams(e);let a=n.data;return n.parsedType===ge.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Tp.create=(t,e)=>new Tp({innerType:t,typeName:Ne.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ze(e)});class xp extends He{_parse(e){const{ctx:n}=this._processInputParams(e),a={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return Uu(o)?o.then(l=>
62({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new Vr(a.common.issues)},input:a.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Vr(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}xp.create=(t,e)=>new xp({innerType:t,typeName:Ne.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ze(e)});class d_ extends He{_parse(e){if(this._getType(e)!==ge.nan){const a=this._getOrReturnCtx(e);return oe(a,{code:ne.invalid_type,expected:ge.nan,received:a.parsedType}),Ce}return{status:"valid",value:e.data}}}d_.create=t=>new d_({typeName:Ne.ZodNaN,...ze(t)});class p3 extends He{_parse(e){const{ctx:n}=this._processInputParams(e),a=n.data;return this._def.type._parse({data:a,path:n.path,parent:n})}unwrap(){return this._def.type}}class sm extends He{_parse(e){const{status:n,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return l.status==="aborted"?Ce:l.status==="dirty"?(n.dirty(),el(l.value)):this._def.out._parseAsync({data:l.value,path:a.path,parent:a})})();{const o=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?Ce:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:a.path,parent:a})}}static create(e,n){return new sm({in:e,out:n,typeName:Ne.ZodPipeline})}}class Ap extends He{_parse(e){const n=this._def.innerType._parse(e),a=o=>(qi(o)&&(o.value=Object.freeze(o.value)),o);return Uu(n)?n.then(o=>a(o)):a(n)}unwrap(){return this._def.innerType}}Ap.create=(t,e)=>new Ap({innerType:t,typeName:Ne.ZodReadonly,...ze(e)});var Ne;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Ne||(Ne={}));const m3=Cs.create,wz=Hi.create,Sz=wp.create;Is.create;fr.create;const g3=St.create;Iu.create;Bu.create;Sa.create;const Ez=Ep.create,Tz=Vi.create;$u.create;Ls.create;Fi.create;const y3=()=>Ae(()=>import("./consultar-meus-relatorios-DPe6WqQC.js"),__vite__mapDeps([45,1,46,47,20,19,15,21,13,37,48,49,26])),f_="Consultar meus relatórios — Dono do Zap",h_="Já comprou um relatório no Dono do Zap? Informe o e-mail usado na compra e acesse novamente seus relatórios disponíveis.",v3=ke()({validateSearch:g3({email:m3().max(320).optional()}),head:()=>({meta:[{title:f_},{name:"description",content:h_},{property:"og:title",content:f_},{property:"og:description",content:h_},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,follow"}]}),component:xe(y3,"component")}),am="https://donodozap.com.br",b3="Dono do Zap",_3=`${am}/og-image.png`;function Nl({path:t,title:e,description:n,image:a=_3,ogType:o="website"}){const l=`${am}${t}`;return{meta:[{title:e},{name:"description",content:n},{property:"og:title",content:e},{property:"og:description",content:n},{property:"og:url",content:l},{property:"og:type",content:o},{property:"og:image",content:a},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{property:"og:locale",content:"pt_BR"},{property:"og:site_name",content:b3},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:e},{name:"twitter:description",content:n},{name:"twitter:image",content:a}],links:[{rel:"canonical",href:l}]}}function jl(t){const e=[{name:"Início",path:"/"},...t].map((n,a)=>({"@type":"ListItem",position:a+1,name:n.name,item:`${am}${n.path}`}));return{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e})}}const w3=()=>Ae(()=>import("./contato-DnTeVEm5.js"),__vite__mapDeps([50,1,46,51,52,3,53,7,54,55,4,5,6,56,10,12,57,27,21,41,49,26,13,15,58])),S3=ke()({head:()=>({...Nl({path:"/contato",title:"Contato — Dono do Zap",description:"Fale com a equipe Dono do Zap: t
62ire dúvidas, envie sugestões ou peça suporte sobre a consulta de números de WhatsApp."}),scripts:[jl([{name:"Contato",path:"/contato"}])]}),component:xe(w3,"component")}),E3=()=>Ae(()=>import("./lgpd-CQmI3DDf.js"),__vite__mapDeps([59,60])),T3=ke()({head:()=>({...Nl({path:"/lgpd",title:"Aviso LGPD — Dono do Zap",description:"Conheça os princípios da Lei Geral de Proteção de Dados aplicados pela plataforma Dono do Zap."}),scripts:[jl([{name:"Aviso LGPD",path:"/lgpd"}])]}),component:xe(E3,"component")}),x3=()=>Ae(()=>import("./login-XmRPWFde.js"),__vite__mapDeps([61,1,46,41,25,62,15])),A3=ke()({head:()=>({...Nl({path:"/login",title:"Entrar — Dono do Zap",description:"Acesse sua conta Dono do Zap para consultar números de WhatsApp e ver o histórico de consultas."}),scripts:[jl([{name:"Entrar",path:"/login"}])]}),component:xe(x3,"component")}),R3=()=>Ae(()=>import("./privacidade-C_fMnMm8.js"),__vite__mapDeps([63,60])),k3=ke()({head:()=>({...Nl({path:"/privacidade",title:"Política de Privacidade — Dono do Zap",description:"Saiba como o Dono do Zap coleta, utiliza e protege seus dados pessoais em conformidade com a LGPD."}),scripts:[jl([{name:"Política de Privacidade",path:"/privacidade"}])]}),component:xe(R3,"component")}),O3=()=>Ae(()=>import("./resultado-2-iM1Jb9.js"),__vite__mapDeps([64,8,55,4,3,5,6,7,1,46,65,66,41,25,14,13,19,67,68,15,26,62,69])),C3=ke()({validateSearch:t=>({numero:t.numero!=null&&t.numero!==""?String(t.numero):""}),head:()=>({meta:[{title:"Prévia da consulta — Dono do Zap"},{name:"description",content:"Prévia da sua consulta: veja o resultado da busca pelo dono do número de WhatsApp no Dono do Zap."},{name:"robots",content:"noindex,nofollow"}]}),component:xe(O3,"component")}),N3=()=>Ae(()=>import("./termos-BL0ntUD7.js"),__vite__mapDeps([70,60])),j3=ke()({head:()=>({...Nl({path:"/termos",title:"Termos de Uso — Dono do Zap",description:"Leia os Termos de Uso da plataforma Dono do Zap: regras, responsabilidades e condições do serviço de consulta de WhatsApp."}),scripts:[jl([{name:"Termos de Uso",path:"/termos"}])]}),component:xe(N3,"component")}),D3=()=>Ae(()=>import("./admin.index-v2-HAPJD.js"),__vite__mapDeps([71,31,72,15,38,26,48,19,14,73,74,75,58,41])),L3=ke()({head:()=>({meta:[{title:"Dashboard — Painel admin"}]}),component:xe(D3,"component")}),M3=()=>Ae(()=>import("./admin.ai-pages-C2fsMZ4P.js"),__vite__mapDeps([76,16,77,20,78])),z3=ke()({head:()=>({meta:[{title:"Páginas com IA — Painel admin"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(M3,"component")}),U3=()=>Ae(()=>import("./admin.apis-CfbwMetu.js"),__vite__mapDeps([79,1,46,80,3,53,81,55,4,5,6,7,56,10,12,54,51,82,72,33,2,19,83,84,15,85,26,48,49,86,67,87,88])),P3=ke()({head:()=>({meta:[{title:"APIs de Consulta — Painel admin"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(U3,"component")}),I3=()=>Ae(()=>import("./admin.bloqueados-CuhVikzk.js"),__vite__mapDeps([89,90,1,46,80,3,53,51,55,4,5,6,7,2,91,72,22,8,29,84,15,67,87,13])),B3=ke()({head:()=>({meta:[{title:"Números Bloqueados — Painel admin"}]}),component:xe(I3,"component")}),$3=()=>Ae(()=>import("./admin.campos-wHc2NlId.js"),__vite__mapDeps([92,1,46,80,3,53,51,81,56,10,6,5,12,54,72,93,33,2,4,7,19,36,15,94,84,16,83,85,87])),q3=ke()({head:()=>({meta:[{title:"Campos do relatório — Painel admin"},{name:"robots",content:"noindex,nofollow"}]}),component:xe($3,"component")}),H3=()=>Ae(()=>import("./admin.consultas-C7Emw7kz.js"),[]),V3=ke()({component:xe(H3,"component")}),G3=()=>Ae(()=>import("./admin.consultas-internas-DKh6Rpat.js"),__vite__mapDeps([95,90,1,81,55,4,3,5,6,7,91,56,10,53,12,54,23,15,21,83,96,85,26,62,48])),F3=ke()({head:()=>({meta:[{title:"Consultas Internas — Admin"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(G3,"component")}),Z3=()=>Ae(()=>import("./admin.cpfs-DzQrnUgI.js"),__vite__mapDeps([97,90,1,46,80,3,53,55,4,5,6,7,91,72,33,2,19,98,99,84,16,15,20,69,62,26,87])),K3=ke()({head:()=>({meta:[{title:"CPF — Painel admin"}]}),component:xe(Z3,"component")}),Y3=()=>Ae(()=>
62import("./admin.email-aws-5T2NT5BO.js"),__vite__mapDeps([100,1,51,80,3,53,82,10,5,6,7,81,55,4,46,52,54,56,12,91,57,33,2,19,41,62,15,34,99,87,94,58,83,86,84,35,39,101,69,13,26])),Q3=ke()({head:()=>({meta:[{title:"E-mail AWS — Admin"}]}),component:xe(Y3,"component")}),J3=()=>Ae(()=>import("./admin.login-D09a_zB8.js"),__vite__mapDeps([102,1,46,17,41,25,62,15,36])),X3=ke()({head:()=>({meta:[{title:"Login admin — Dono do Zap"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(J3,"component")}),W3=()=>Ae(()=>import("./admin.mensagens-C_ljW27U.js"),__vite__mapDeps([103,90,1,81,52,3,53,7,54,4,5,6,56,10,12,32,33,2,19,51,15,58,37,41,74,21,104,87,23,49,105])),eL=ke()({head:()=>({meta:[{title:"Mensagens — Painel admin"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(W3,"component")}),tL=()=>Ae(()=>import("./admin.numero-pages-BxDeo0r4.js"),__vite__mapDeps([106,23,78])),nL=ke()({head:()=>({meta:[{title:"Páginas Automáticas — Painel admin"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(tL,"component")}),rL=()=>Ae(()=>import("./admin.pagamentos-CsBceY8l.js"),__vite__mapDeps([107,90,1,46,80,3,53,56,10,6,5,12,54,65,72,15,94,88,83,69])),sL=ke()({head:()=>({meta:[{title:"Pagamentos — Painel admin"}]}),component:xe(rL,"component")}),aL=()=>Ae(()=>import("./admin.redirecionamentos-DujkzrWp.js"),__vite__mapDeps([108,90,1,46,80,3,53,55,4,5,6,7,2,91,56,10,12,54,72,42,105,15,84,67,87,44])),iL=ke()({head:()=>({meta:[{title:"Redirecionamentos — Painel admin"}]}),component:xe(aL,"component")}),oL=()=>Ae(()=>import("./admin.relatorios-api-CdWu8XDt.js"),__vite__mapDeps([109,1,81,56,3,10,6,5,53,12,54,11,7,91,55,4,82,39,15,99,96,83,19,48,26,69])),lL=ke()({head:()=>({meta:[{title:"Relatórios das API — Painel"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(oL,"component")}),cL=()=>Ae(()=>import("./admin.site-B4bOB6Zi.js"),__vite__mapDeps([110,90,1,46,51,80,3,53,56,10,6,5,12,54,72,33,2,4,7,19,47,15,94,105,98,86,84,85,87])),uL=ke()({head:()=>({meta:[{title:"Site — Painel admin"}]}),component:xe(cL,"component")}),dL=()=>Ae(()=>import("./admin.sitemap-3uL8GGrw.js"),__vite__mapDeps([111,81,43,99,15,44,26,19])),fL=ke()({head:()=>({meta:[{title:"Sitemap — Painel admin"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(dL,"component")}),hL=()=>Ae(()=>import("./admin.social-hfg6fXjI.js"),__vite__mapDeps([112,90,1,46,80,3,53,72,15,94,44])),pL=ke()({head:()=>({meta:[{title:"Redes Sociais — Painel admin"}]}),component:xe(hL,"component")}),mL=()=>Ae(()=>import("./admin.telemetria-vFTLEUJi.js"),__vite__mapDeps([113,81,65,72,39,99,15,101,26,34,19])),gL=ke()({head:()=>({meta:[{title:"Telemetria CPF — Admin"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(mL,"component")}),xz=Ke({method:"POST"}).middleware([gt]).handler(tt("25a0a91d87de3e479681dea5be23f4c5e3d91b01fa6c2750a5b0cd5893ffed8e")),Az=Ke({method:"POST"}).middleware([gt]).handler(tt("349e6adaf23dea2a4e581a53f75613dc642944f06462325de318bbaa899fbe21")),Rz=Ke({method:"GET"}).middleware([gt]).handler(tt("b703f627a2df0d84e0b7fa53a911333b5d0943a0b94039456af442f1e6e2e18d")),kz=Ke({method:"POST"}).middleware([gt]).handler(tt("2d7f4feb37b34d972f44aecd8bffa3c874eca155813129df439a172e9be6765b")),Oz=Ke({method:"POST"}).middleware([gt]).handler(tt("a08ca00d4a22ba93e0b2e2eb8c5a2ab7eaeb86e3f91d6af86d34fe1da9110387")),Cz=Ke({method:"POST"}).middleware([gt]).handler(tt("51b10f3f155c9d74e94dadaf54b7d18d90a3ae7b29f35bf0f73b9241fb821fdb")),Nz=Ke({method:"POST"}).middleware([gt]).handler(tt("b0a60b10b9b3df531e42ea428dc2c48789682aacf6e262ed76888b170feb8584")),jz=Ke({method:"POST"}).middleware([gt]).handler(tt("3e83df4ef7b6a39d053ce590bb3d3b9b0b80bd2a73857bac6ac3eaa5417e4cd1")),Dz=Ke({method:"POST"}).middleware([gt]).handler(tt("728502c0ad1f6fc214b46f9ddec9ef666836d053d721614ee028ce39f0eea040")),Lz=Ke({method:"POST"}).middleware([gt]).handler(tt("c2170bee184106db1da895570a16495a640c8bb83b3da98b4201892126f37a34")),Mz=Ke({method:"GET"}).middleware([gt]).handler(tt("4e693c8e34ab8e27a0e70e5e10ee49b5492ab083a12bfdf479220b1019b4d7ad")),zz=Ke({method:"POST"}).middleware([gt]).handler(tt("e27a4f3e019c485389c078ead9dfc503254deb6a6e0f5be767844ac94e2e697b")),yL=Ke({method:"POST"}).handler(tt("2c706ba46d1c52bc2a810ef85bd2564234a20bb3b45296f71543d7bf41b9c423")),vL=Ke({method:"GET"}).handler(tt("703a12fc8218e88c2e260da106c5d01ebf30c22bfbdb2677d3259dba23043ccd")),bL=12,_L=t=>({queryKey:["blog-index",t],queryFn:async()=>vL({data:{page:t,pageSize:bL}}),staleTime:6e4}),wL=()=>Ae(()=>import("./blog.index-CdpkaF-u.js"),[]),SL=()=>Ae(()=>import("./blog.index-g3ccrmbF.js"),__vite__mapDeps([114,49,14,36]));function EL(t){const e=Math.floor(Number(t));return Number.isFinite(e)&&e>=1?e:1}const TL=ke()({validateSearch:t=>({page:EL(t.page)}),loaderDeps:({search:t})=>({page:t.page}),head:({loaderData:t})=>{const e=t,n=e?.page??1,a=e?.totalPages??1,o="https://donodozap.com.br/blog",l=p=>p<=1?o:`${o}?page=${p}`,u=l(n),d=n>1?` — Página ${n}`:"",h=[{rel:"canonical",href:u}];return n>1&&h.push({rel:"prev",href:l(n-1)}),n<a&&h.push({rel:"next",href:l(n+1)}),{meta:[{title:`Blog Dono do Zap — Artigos sobre WhatsApp, segurança e privacidade${d}`},{name:"description",content:"Aprenda a proteger seu WhatsApp, descobrir donos de números e usar o app com segurança. Guias, tutoriais e dicas atualizadas."},{property:"og:title",content:`Blog Dono do Zap${d}`},{property:"og:description",content:"Artigos sobre WhatsApp, segurança e privacidade."},{property:"og:url",content:u},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:h}},loader:async({context:t,deps:e})=>await t.queryClient.ensureQueryData(_L(e.page)),component:xe(SL,"component"),errorComponent:xe(wL,"errorComponent")}),xL=()=>Ae(()=>import("./blog._slug-CKXyvAtD.js"),[]),AL=()=>Ae(()=>import("./blog._slug-1gSv73eq.js"),[]),RL=()=>Ae(()=>import("./blog._slug-Fe6tioJ8.js"),__vite__mapDeps([115,96,16,49,54,40,14])),kL=t=>({queryKey:["blog-page",t],queryFn:async()=>yL({data:{slug:t}}),staleTime:6e4}),OL=ke()({loader:async({context:t,params:e})=>{const n=await t.queryClient.ensureQueryData(kL(e.slug));if(!n.page)throw Bh();return n},head:({loaderData:t})=>{if(!t?.page)return{meta:[{title:"Artigo não encontrado — Dono do Zap"},{name:"robots",content:"noindex"}
62]};const e=t.page,n="https://donodozap.com.br",a=`${n}/blog/${e.slug}`,o=e.canonical_url||a,l=e.meta_title||e.title,u=e.meta_description||e.excerpt||"",d=e.image_url||void 0,h=d?d.startsWith("http")?d:`${n}${d.startsWith("/")?"":"/"}${d}`:void 0,p=e.published_at||e.created_at,y=e.updated_at||p,g=[...e.focus_keyword?[e.focus_keyword]:[],...e.secondary_keywords??[]],v=typeof e.content=="string"?e.content.replace(/<[^>]*>/g," ").split(/\s+/).filter(Boolean).length:void 0,_=[{title:l},{name:"description",content:u},{property:"og:title",content:e.og_title||l},{property:"og:description",content:e.og_description||u},{property:"og:url",content:o},{property:"og:type",content:"article"},{property:"og:locale",content:"pt_BR"},{property:"og:site_name",content:"Dono do Zap"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:l},{name:"twitter:description",content:u}];p&&_.push({property:"article:published_time",content:p}),y&&_.push({property:"article:modified_time",content:y}),e.category&&_.push({property:"article:section",content:String(e.category)});for(const Q of g)_.push({property:"article:tag",content:Q});h&&(_.push({property:"og:image",content:h}),_.push({name:"twitter:image",content:h}));const w={"@context":"https://schema.org","@type":"BlogPosting",headline:(l||"").slice(0,110),description:u,inLanguage:"pt-BR",mainEntityOfPage:{"@type":"WebPage","@id":o},url:o,author:{"@type":"Organization",name:"Dono do Zap",url:n},publisher:{"@type":"Organization",name:"Dono do Zap",url:n,logo:{"@type":"ImageObject",url:`${n}/favicon.ico`}}};h&&(w.image=[h]),p&&(w.datePublished=p),y&&(w.dateModified=y),e.category&&(w.articleSection=String(e.category)),g.length&&(w.keywords=g.join(", ")),v&&(w.wordCount=v);const E=e.schema_json?.article,x=E&&typeof E=="object"?{...w,...E}:w,T={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Início",item:`${n}/`},{"@type":"ListItem",position:2,name:"Blog",item:`${n}/blog`},{"@type":"ListItem",position:3,name:e.title,item:a}]},C=[{type:"application/ld+json",children:JSON.stringify(x)},{type:"application/ld+json",children:JSON.stringify(T)}],R=(e.faq_json??[]).filter(Q=>Q?.question&&Q?.answer),B=e.schema_json?.faq;return B&&typeof B=="object"?C.push({type:"application/ld+json",children:JSON.stringify(B)}):R.length>0&&C.push({type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:R.map(Q=>({"@type":"Question",name:Q.question,acceptedAnswer:{"@type":"Answer",text:Q.answer}}))})}),{meta:_,links:[{rel:"canonical",href:o}],scripts:C}},component:xe(RL,"component"),errorComponent:xe(AL,"errorComponent"),notFoundComponent:xe(xL,"notFoundComponent")});function s1(t){const e=String(t??"").replace(/\D/g,"");if(e.length<10||e.length>13)return null;let n=e;if((e.length===12||e.length===13)&&e.startsWith("55")&&(n=e.slice(2)),n.length!==10&&n.length!==11)return null;const a=n.slice(0,2),o=n.slice(2),l=o.length===9?`(${a}) ${o.slice(0,5)}-${o.slice(5)}`:`(${a}) ${o.slice(0,4)}-${o.slice(4)}`;return{digits:n,withCountry:`55${n}`,display:l,ddd:a,numberWithoutDdd:o}}const Uz=Ke({method:"POST"}).handler(tt("bd9bf7dbb9404557900e99701ac965e029f7306a46bef5ccc68cc8073233e9e5")),CL=Ke({method:"GET"}).handler(tt("827a8fe06b15cabbe492da46ce86bc2e0de58dac21482b8bf192c9507b60d8ab")),Pz=Ke({method:"GET"}).handler(tt("ad9cae952521bb48307fac4f12e869447da67d87d6b3f86828c6270efcf84c3a")),Iz=Ke({method:"POST"}).middleware([gt]).handler(tt("a3c758f9f20696c1852921fc32abff8a2642b54944b41d9d5d6025897dc39b21")),Bz=Ke({method:"POST"}).middleware([gt]).handler(tt("b3e58bdf31b6128b4b3c3a90a1f23c1a11f42898d2ed40a793531dc4b54059ed")),$z=Ke({method:"POST"}).middleware([gt]).handler(tt("abd4bb255eae214b783a92b112d688245ff9ba1d76574a3b876a1137a6763fa5")),qz=Ke({method:"POST"}).middleware([gt]).handler(tt("7a7603cf2fdb435cac49acbc4bcc7e16b5dfa4e3b1611e02c82939f5345bc4a3")),Hz=Ke({method:"POST"}).middleware([gt]).handler(tt("a915a3b6add97da35f7e4e625eaf7a73e75856fbb33d144cca261ae9a1c60820")),Vz=Ke({method:"GET"}).middleware([gt]).handler(tt("0bac418f58471d9758bdaf1738294a4812f5a9aaccc87923b329c179d4e175ba")),Gz=Ke({method:"POST"}).middleware([gt]).handler(tt("44a8ff0251c4e614a60076f177f627a0705cf9fec9b135d5bb1845282999a94f")),Fz=Ke({method:"GET"}).middleware([gt]).handler(tt("c6fd67066ff6d5c0792371d149c81700e87943a96f77267b25b41097f65cdfbc")),NL=()=>Ae(()=>import("./consultar._numero-SBZCt5vv.js"),__vite__mapDeps([116,21,14,117,23,13])),jL=()=>Ae(()=>import("./consultar._numero-U79T7lFM.js"),[]),DL=()=>Ae(()=>import("./consultar._numero-dZmyGnJq.js"),[]),Rp="https://donodozap.com.br",LL=ke()({beforeLoad:({params:t})=>{const e=t.numero;if(/^[0-9]{10,11}$/.test(e))return;const n=s1(e);throw n?il({to:"/consultar/$numero",params:{numero:n.digits},statusCode:301}):Bh()},loader:async({params:t})=>{const e=await CL({data:{slug:t.numero}});if(!e)throw Bh();return e},head:({loaderData:t,params:e})=>
62{if(!t)return{meta:[{title:"Página não encontrada — Dono do Zap"},{name:"robots",content:"noindex,nofollow"}]};const n=`${Rp}/consultar/${e.numero}`,a=[{title:t.title_seo},{name:"description",content:t.meta_description},{property:"og:title",content:t.title_seo},{property:"og:description",content:t.meta_description},{property:"og:url",content:n},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"}];return(!t.indexavel||t.status!=="publicado")&&a.push({name:"robots",content:"noindex,follow"}),{meta:a,links:[{rel:"canonical",href:n}],scripts:[{type:"application/ld+json",children:JSON.stringify(ML(t,n))}]}},errorComponent:xe(DL,"errorComponent"),notFoundComponent:xe(jL,"notFoundComponent"),component:xe(NL,"component")});function ML(t,e){return[{"@context":"https://schema.org","@type":"WebPage",name:t.title_seo,url:e,description:t.meta_description},{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Início",item:Rp},{"@type":"ListItem",position:2,name:"Consultar",item:`${Rp}/`},{"@type":"ListItem",position:3,name:t.numero_formatado,item:e}]},{"@context":"https://schema.org","@type":"FAQPage",mainEntity:(t.faq_json??[]).map(n=>({"@type":"Question",name:n.question,acceptedAnswer:{"@type":"Answer",text:n.answer}}))}]}const zL=()=>Ae(()=>import("./numero._numero-DtqBFgK5.js"),[]),UL=ke()({beforeLoad:({params:t})=>{const e=s1(t.numero);throw il(e?{to:"/consultar/$numero",params:{numero:e.digits},statusCode:301}:{to:"/",statusCode:301})},component:xe(zL,"component")}),PL=()=>Ae(()=>import("./pedido._token-BemBJt9-.js"),__vite__mapDeps([118,15,26,68,69,99,13])),IL=ke()({head:()=>({meta:[{title:"Acompanhar pedido — Dono do Zap"},{name:"description",content:"Acompanhe seu pagamento e acesse seu relatório no Dono do Zap."},{property:"og:title",content:"Acompanhar pedido — Dono do Zap"},{property:"og:description",content:"Acompanhe seu pagamento e acesse seu relatório no Dono do Zap."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(PL,"component")}),BL=()=>Ae(()=>import("./relatorio._id-CSUxCCag.js"),__vite__mapDeps([119,9,3,10,11,7,5,12,66,93,15,19,23,117,41,18,75,26,74,27,13,21,36])),$L=ke()({head:()=>({meta:[{title:"Seu Relatório — Dono do Zap"},{name:"description",content:"Acompanhe o status do seu pedido e acesse o relatório da sua consulta de número de WhatsApp no Dono do Zap."},{name:"robots",content:"noindex,nofollow"}]}),component:xe(BL,"component")}),qL=()=>Ae(()=>import("./admin.ai-pages.index-C8MlmQp3.js"),__vite__mapDeps([120,90,1,46,56,3,10,6,5,53,12,54,15,16,26,44])),HL=ke()({head:()=>({meta:[{title:"Gerar página — Páginas com IA"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(qL,"component")}),VL=()=>Ae(()=>import("./admin.ai-pages.batch-BEY34ANb.js"),__vite__mapDeps([121,90,1,46,51,56,3,10,6,5,53,12,54,80,15,77])),GL=ke()({head:()=>({meta:[{title:"Gerar múltiplas páginas — Páginas com IA"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(VL,"component")}),FL=()=>Ae(()=>import("./admin.ai-pages.list-DWCSsNve.js"),__vite__mapDeps([122,90,1,56,3,10,6,5,53,12,54,91,72,21,15,44,67,83,87])),ZL=ke()({head:()=>({meta:[{title:"Páginas geradas — Páginas com IA"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(FL,"component")}),KL=()=>Ae(()=>import("./admin.ai-pages.queue-BWlVX9Zn.js"),__vite__mapDeps([123,90,72,15,24,12,96,86,48])),YL=ke()({head:()=>({meta:[{title:"Fila de processamento — Páginas com IA"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(KL,"component")}),QL=()=>Ae(()=>import("./admin.ai-pages.settings-DqluTctw.js"),__vite__mapDeps([124,90,1,46,51,56,3,10,6,5,53,12,54,80,72,15,94])),JL=ke()({head:()=>({meta:[{title:"Configurações IA — Páginas com IA"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(QL,"component")}),XL=()=>Ae(()=>import("./admin.consultas.index-IIWZhSc7.js"),__vite__mapDeps([125,1,81,56,3,10,6,5,53,12,54,55,4,7,31,72,126,90,15,69,20,44,13,99,41,73,28,19,38,26,49,48,21,83])),WL=ke()({component:xe(XL,"component")}),eM=()=>Ae(()=>import("./admin.consultas._id-CvpqSsuj.js"),__vite__mapDeps([127,126,90,81,31,72,15,69,20,44,13,99,41,73,28,19,36])),tM=ke()({component:xe(eM,"component")}),nM=()=>Ae(()=>import("./admin.numero-pages.index-BbEVtuWA.js"),__vite__mapDeps([128,1,81,56,3,10,6,5,53,12,54,91,21,44,67,69,99,83,88,104,87])),rM=ke()({component:xe(nM,"component")}),sM=()=>Ae(()=>import("./admin.numero-pages.settings-CNug6yci.js"),__vite__mapDeps([129,1,46,51,80,3,53,56,10,6,5,12,54,94])),aM=ke()({component:xe(sM,"component")}),iM=()=>Ae(()=>import("./admin.ai-pages.edit._id-D2TX_wyj.js"),__vite__mapDeps([130,90,1,46,51,56,3,10,6,5,53,12,54,80,72,15,36,44,94])),oM=ke()({head:()=>({meta:[{title:"Editar página — Páginas com IA"},{name:"robots",content:"noindex,nofollow"}]}),component:xe(iM,"component")}),lM=()=>Ae(()=>import("./admin.numero-pages.edit._id-tB8Vd_Ia.js"),__vite__mapDeps([131,1,51,46,80,3,53,56,10,6,5,12,54,36,99,94,84,87])),cM=ke()({component:xe(lM,"component")}),uM=B4.update({id:"/",path:"/",getParentRoute:()=>Vt}),Tt=q4.update({id:"/admin",path:"/admin",getParentRoute:()=>Vt}),dM=v3.update({id:"/consultar-meus-relatorios",path:"/consultar-meus-relatorios",getParentRoute:()=>Vt}),fM=S3.update({id:"/contato",path:"/contato",getParentRoute:()=>Vt}),hM=T3.update({id:"/lgpd",path:"/lgpd",getParentRoute:()=>Vt}),pM=A3.update({id:"/login",path:"/login",getParentRoute:()=>Vt}),mM=k3.update({id:"/privacidade",path:"/privacidade",getParentRoute:()=>Vt}),gM=C3.update({id:"/resultado",path:"/resultado",getParentRoute:()=>Vt}),yM=j3.update({id:"/termos",path:"/termos",getParentRoute:()=>Vt}),vM=L3.update({id:"/",path:"/",getParentRoute:()=>Tt}),Oa=z3.update({id:"/ai-pages",path:"/ai-pages",getParentRoute:()=>Tt}),bM=P3.update({id:"/apis",path:"/apis",getParentRoute:()=>Tt}),_M=B3.update({id:"/bloqueados",path:"/bloqueados",getParentRoute:()=>Tt}
62),wM=q3.update({id:"/campos",path:"/campos",getParentRoute:()=>Tt}),im=V3.update({id:"/consultas",path:"/consultas",getParentRoute:()=>Tt}),SM=F3.update({id:"/consultas-internas",path:"/consultas-internas",getParentRoute:()=>Tt}),EM=K3.update({id:"/cpfs",path:"/cpfs",getParentRoute:()=>Tt}),TM=Q3.update({id:"/email-aws",path:"/email-aws",getParentRoute:()=>Tt}),xM=X3.update({id:"/login",path:"/login",getParentRoute:()=>Tt}),AM=eL.update({id:"/mensagens",path:"/mensagens",getParentRoute:()=>Tt}),Wu=nL.update({id:"/numero-pages",path:"/numero-pages",getParentRoute:()=>Tt}),RM=sL.update({id:"/pagamentos",path:"/pagamentos",getParentRoute:()=>Tt}),kM=iL.update({id:"/redirecionamentos",path:"/redirecionamentos",getParentRoute:()=>Tt}),OM=lL.update({id:"/relatorios-api",path:"/relatorios-api",getParentRoute:()=>Tt}),CM=uL.update({id:"/site",path:"/site",getParentRoute:()=>Tt}),NM=fL.update({id:"/sitemap",path:"/sitemap",getParentRoute:()=>Tt}),jM=pL.update({id:"/social",path:"/social",getParentRoute:()=>Tt}),DM=gL.update({id:"/telemetria",path:"/telemetria",getParentRoute:()=>Tt}),LM=TL.update({id:"/blog/",path:"/blog/",getParentRoute:()=>Vt}),MM=OL.update({id:"/blog/$slug",path:"/blog/$slug",getParentRoute:()=>Vt}),zM=LL.update({id:"/consultar/$numero",path:"/consultar/$numero",getParentRoute:()=>Vt}),UM=UL.update({id:"/numero/$numero",path:"/numero/$numero",getParentRoute:()=>Vt}),PM=IL.update({id:"/pedido/$token",path:"/pedido/$token",getParentRoute:()=>Vt}),IM=$L.update({id:"/relatorio/$id",path:"/relatorio/$id",getParentRoute:()=>Vt}),BM=HL.update({id:"/",path:"/",getParentRoute:()=>Oa}),$M=GL.update({id:"/batch",path:"/batch",getParentRoute:()=>Oa}),qM=ZL.update({id:"/list",path:"/list",getParentRoute:()=>Oa}),HM=YL.update({id:"/queue",path:"/queue",getParentRoute:()=>Oa}),VM=JL.update({id:"/settings",path:"/settings",getParentRoute:()=>Oa}),GM=WL.update({id:"/",path:"/",getParentRoute:()=>im}),FM=tM.update({id:"/$id",path:"/$id",getParentRoute:()=>im}),ZM=rM.update({id:"/",path:"/",getParentRoute:()=>Wu}),KM=aM.update({id:"/settings",path:"/settings",getParentRoute:()=>Wu}),YM=oM.update({id:"/edit/$id",path:"/edit/$id",getParentRoute:()=>Oa}),QM=cM.update({id:"/edit/$id",path:"/edit/$id",getParentRoute:()=>Wu}),JM={AdminAiPagesBatchRoute:$M,AdminAiPagesListRoute:qM,AdminAiPagesQueueRoute:HM,AdminAiPagesSettingsRoute:VM,AdminAiPagesIndexRoute:BM,AdminAiPagesEditIdRoute:YM},XM=Oa._addFileChildren(JM),WM={AdminConsultasIdRoute:FM,AdminConsultasIndexRoute:GM},ez=im._addFileChildren(WM),tz={AdminNumeroPagesSettingsRoute:KM,AdminNumeroPagesIndexRoute:ZM,AdminNumeroPagesEditIdRoute:QM},nz=Wu._addFileChildren(tz),rz={AdminAiPagesRoute:XM,AdminApisRoute:bM,AdminBloqueadosRoute:_M,AdminCamposRoute:wM,AdminConsultasRoute:ez,AdminConsultasInternasRoute:SM,AdminCpfsRoute:EM,AdminEmailAwsRoute:TM,AdminLoginRoute:xM,AdminMensagensRoute:AM,AdminNumeroPagesRoute:nz,AdminPagamentosRoute:RM,AdminRedirecionamentosRoute:kM,AdminRelatoriosApiRoute:OM,AdminSiteRoute:CM,AdminSitemapRoute:NM,AdminSocialRoute:jM,AdminTelemetriaRoute:DM,AdminIndexRoute:vM},sz=Tt._addFileChildren(rz),az={IndexRoute:uM,AdminRoute:sz,ConsultarMeusRelatoriosRoute:dM,ContatoRoute:fM,LgpdRoute:hM,LoginRoute:pM,PrivacidadeRoute:mM,ResultadoRoute:gM,TermosRoute:yM,BlogSlugRoute:MM,ConsultarNumeroRoute:zM,NumeroNumeroRoute:UM,PedidoTokenRoute:PM,RelatorioIdRoute:IM,BlogIndexRoute:LM},iz=Vt._addFileChildren(az),oz=()=>{const t=new dj;return NO({routeTree:iz,context:{queryClient:t},scrollRestoration:!0,defaultPreloadStaleTime:0})};async function lz(){const t=await oz();let e;if(Ab){const n=await Ab.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,e=n.serializationAdapters,t.options.defaultSsr=n.defaultSsr}else e=[],window.__TSS_START_OPTIONS__={serializationAdapters:e};return e.push(Bk),t.options.serializationAdapters&&e.push(...t.options.serializationAdapters),t.update({basepath:"",serializationAdapters:e}),t.stores.ids.get().length||await Cx(t),t}var cz=lz;function uz(){return cz().finally(()=>window.$_TSR?.h())}var Ph;function dz(){return Ph||(Ph=uz()),D.jsx(qk,{promise:Ph,children:t=>D.jsx(LO,{router:t})})}ee.startTransition(()=>{AT.hydrateRoot(document,D.jsx(ee.StrictMode,{children:D.jsx(dz,{})}))});export{gz as $,tt as A,zu as B,e1 as C,vz as D,Sz as E,wz as F,Tz as G,s1 as H,R4 as I,k4 as J,C4 as K,mn as L,$j as M,O4 as N,Kw as O,tD as P,XS as Q,v3 as R,bz as S,Ht as T,GD as U,Uj as V,Dj as W,Gj as X,Tj as Y,rj as Z,Ae as _,qO as a,TL as a0,_L as a1,_T as a2,LS as a3,JD as a4,XD as a5,K0 as a6,Yu as a7,pz as a8,Kj as a9,Fz as aA,qz as aB,$z as aC,Hz as aD,Vz as aE,Gz as aF,oM as aG,jz as aH,cM as aI,Bz as aJ,mz as aK,Cl as aa,fp as ab,Sl as ac,lj as ad,qt as ae,pn as af,AS as ag,OL as ah,Mj as ai,LL as aj,Pz as ak,IL as al,$L as am,xz as an,Az as ao,Nz as ap,Lz as aq,Dz as ar,Rz as as,kz as at,Oz as au,Cz as av,Mz as aw,zz as ax,tM as ay,Iz as az,xj as b,Aa as c,Qw as d,fj as e,P4 as f,rm as g,Ij as h,m3 as i,D as j,C3 as k,Ez as l,Uz as m,fz as n,g3 as o,p_ as p,US as q,ee as r,SS as s,_z as t,qw as u,re as v,yz as w,ka as x,Ke as y,gt 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.