PageSourceSearch

https://nower.global/assets/index-CX_I-vLi.js

js nower.global collected 2026-10-04 12:19:45 UTC 847,232 bytes, 161 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/sobre-a-nower-CbZBh_9d.js","assets/proxy-D7o2UhNO.js","assets/Reveal-4-tkLMy2.js","assets/message-circle-CVvJ-N4p.js","assets/arrow-right-GZfd__1n.js","assets/ContactSection-DLxDBmMv.js","assets/bg-texture-branco-D4M_v43s.js","assets/portfolio-treinamentos-in-company-DKy2wrER.js","assets/download-fZgmbNJg.js","assets/circle-check-DhZv_mGg.js","assets/obrigado-CtLQiJg8.js","assets/modelo-nower-CrXXazZT.js","assets/admin-CaGZubZ5.js","assets/useAdminAuth-BaIrypgu.js","assets/_slug-47twRYpc.js","assets/useSuspenseQuery-CcFler2S.js","assets/trending-up-KzwTqf50.js","assets/graduation-cap-DXH3eetX.js","assets/target-BvwHe1H7.js","assets/puzzle-CAK4axy7.js","assets/refresh-cw-BX_tsQci.js","assets/clock-BBB70Mae.js","assets/check-h-UeE8bY.js","assets/award-CEPogRG0.js","assets/rocket-D7IO9Xt8.js","assets/users-DdTW_sSZ.js","assets/TestimonialsSection-C0tC9VoB.js","assets/logo-algar-CzVaGOfk.js","assets/index-ae9wxiIm.js","assets/ConsultoriaCategoriesGrid-8faIYXYt.js","assets/chart-column-C-CVqCYh.js","assets/settings-BwroIPOn.js","assets/zap-4j1pj8lr.js","assets/layers-B9yn8AfS.js","assets/ResultsSection-ND1PAQsV.js","assets/logo-pagseguro-DJSm0-Kg.js","assets/sparkles-B_n_PiGc.js","assets/wrench-CE8HV9On.js","assets/palette-Bt7gkspp.js","assets/accordion-DnsDNUls.js","assets/index-B_2Q9Cjn.js","assets/index-C87Cj6MS.js","assets/index-D943DK3M.js","assets/treinamentos-in-company.index-xMVrm8Wp.js","assets/crown-_JZAaMD2.js","assets/compass-BZwSGH7K.js","assets/leadership-club.index-DjTTAraD.js","assets/ContentFilters-BAYLzFnB.js","assets/search-0W0_yOqS.js","assets/useWordPress-B-q84SDs.js","assets/calendar-C_ymx94r.js","assets/chevron-right-BtqmS9Iu.js","assets/consultoria.index-CyRiUnq6.js","assets/cases.index-DdCNWQ5B.js","assets/CaseCard-C8t76lmd.js","assets/blog.index-aJidfPUg.js","assets/treinamentos-in-company._slug-CfmcYrwS.js","assets/ResponsiveImage-Bs6KH8Qw.js","assets/leadership-club._slug-D4s2dey2.js","assets/PostPage-C3ZMCHyb.js","assets/link-DBISGofo.js","assets/arrow-left-D6x3IUE9.js","assets/consultoria.ia-B0UZjk2t.js","assets/user-cog-UrVD8Tnm.js","assets/consultoria._slug-eJRb46L7.js","assets/lucide-react-CECEAeX1.js","assets/file-braces-zqYmoVQ-.js","assets/chevron-up-CBRye3Ji.js","assets/loader-circle-WwT42pXa.js","assets/save-BsQ63PZh.js","assets/external-link-D5M2Nlc9.js","assets/image-pJqEsqT1.js","assets/pencil-BpbPXI23.js","assets/plus-BVZZbT8j.js","assets/trash-2-DLya1m01.js","assets/triangle-alert-S4FGhbwa.js","assets/upload-BVVPe7uF.js","assets/cases._slug-DlrY7Umf.js","assets/blog._slug-Dyw4jvTL.js","assets/admin.usuarios-KXtyTpiQ.js","assets/input-BrQUc4ac.js","assets/switch-C7u5-9qE.js","assets/index-CZfyoDPB.js","assets/admin.reset-password-C79dya_t.js","assets/label-BAWtSANj.js","assets/admin.midia-Xj-OTYwp.js","assets/media-library-BDPDxrmv.js","assets/slug-BfdK3ACj.js","assets/admin.login-BU2-NAfm.js","assets/admin.instrutores-DWYd8NV3.js","assets/textarea-BJ2luGO5.js","assets/dialog-C3CGBByL.js","assets/admin.inconsistencias-D28ZH6pw.js","assets/badge-Br0Ms3gG.js","assets/admin.faq-CJx-mEHA.js","assets/admin.depoimentos-DAMwat5b.js","assets/admin.conteudos-Dqg3hGJX.js","assets/admin.clientes-DkGgH0-O.js","assets/checkbox-CJ1jYSMz.js","assets/ImagePickerField-D9LskJmT.js","assets/admin.categorias-Bl_6tK-8.js","assets/admin.beneficios-mGOsnvGI.js","assets/admin.backup-DYfETeQQ.js","assets/admin.treinamentos.index-PTFBPY5c.js","assets/admin.consultoria.index-9Sqcsy8D.js","assets/admin.cases.index-B3JRIALv.js","assets/admin.treinamentos.novo-DdnRADCy.js","assets/AdminTrainingForm-BYiL3OPV.js","assets/tabs-jTyJnwCU.js","assets/admin.treinamentos._id-DdnRADCy.js","assets/admin.consultoria.novo-CuZUaQWH.js","assets/AdminConsultingServiceForm-CR-Bd_2I.js","assets/IconPickerField-Bg4uriaT.js","assets/admin.consultoria._id-CuZUaQWH.js","assets/admin.cases.novo-BJaskuco.js","assets/AdminCaseForm-DZICAuXX.js","assets/admin.cases._id-BJaskuco.js"])))=>i.map(i=>d[i]);
2function EC(e,t){for(var n=0;n<t.length;n++){const s=t[n];
vendor: 5,852 bytes, line 2
2if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(s,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var vH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function KS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yp={exports:{}},bl={};var Q0;function RC(){if(Q0)return bl;Q0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(s,a,l){var c=null;if(l!==void 0&&(c=""+l),a.key!==void 0&&(c=""+a.key),"key"in a){l={};for(var d in a)d!=="key"&&(l[d]=a[d])}else l=a;return a=l.ref,{$$typeof:e,type:s,key:c,ref:a!==void 0?a:null,props:l}}return bl.Fragment=t,bl.jsx=n,bl.jsxs=n,bl}var W0;function AC(){return W0||(W0=1,yp.exports=RC()),yp.exports}var N=AC(),vp={exports:{}},ke={};var X0;function CC(){if(X0)return ke;X0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),v=Symbol.iterator;function b(D){return D===null||typeof D!="object"?null:(D=v&&D[v]||D["@@iterator"],typeof D=="function"?D:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,S={};function x(D,Q,Z){this.props=D,this.context=Q,this.refs=S,this.updater=Z||_}x.prototype.isReactComponent={},x.prototype.setState=function(D,Q){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,Q,"setState")},x.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function R(){}R.prototype=x.prototype;function C(D,Q,Z){this.props=D,this.context=Q,this.refs=S,this.updater=Z||_}var O=C.prototype=new R;O.constructor=C,E(O,x.prototype),O.isPureReactComponent=!0;var I=Array.isArray;function B(){}var P={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function F(D,Q,Z){var ie=Z.ref;return{$$typeof:e,type:D,key:Q,ref:ie!==void 0?ie:null,props:Z}}function K(D,Q){return F(D.type,Q,D.props)}function ne(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function re(D){var Q={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(Z){return Q[Z]})}var fe=/\/+/g;function de(D,Q){return typeof D=="object"&&D!==null&&D.key!=null?re(""+D.key):Q.toString(36)}function be(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(B,B):(D.status="pending",D.then(function(Q){D.status==="pending"&&(D.status="fulfilled",D.value=Q)},function(Q){D.status==="pending"&&(D.status="rejected",D.reason=Q)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function z(D,Q,Z,ie,se){var ce=typeof D;(ce==="undefined"||ce==="boolean")&&(D=null);var Te=!1;if(D===null)Te=!0;else switch(ce){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(D.$$typeof){case e:case t:Te=!0;break;case g:return Te=D._init,z(Te(D._payload),Q,Z,ie,se)}}if(Te)return se=se(D),Te=ie===""?"."+de(D,0):ie,I(se)?(Z="",Te!=null&&(Z=Te.replace(fe,"$&/")+"/"),z(se,Q,Z,"",function(Et){return Et})):se!=null&&(ne(se)&&(se=K(se,Z+(se.key==null||D&&D.key===se.key?"":(""+se.key).replace(fe,"$&/")+"/")+Te)),Q.push(se)),1;Te=0;var xe=ie===""?".":ie+":";if(I(D))for(var we=0;we<D.length;we++)ie=D[we],ce=xe+de(ie,we),Te+=z(ie,Q,Z,ce,se);else if(we=b(D),typeof we=="function")for(D=we.call(D),we=0;!(ie=D.next()).done;)ie=ie.value,ce=xe+de(ie,we++),Te+=z(ie,Q,Z,ce,se);else if(ce==="object"){if(typeof D.then=="function")return z(be(D),Q,Z,ie,se);throw Q=String(D),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Te}function Y(D,Q,Z){if(D==null)return D;var ie=[],se=0;return z(D,ie,"","",function(ce){return Q.call(Z,ce,se++)}),ie}function X(D){if(D._status===-1){var Q=D._result;Q=Q(),Q.then(function(Z){(D._status===0||D._status===-1)&&(D._status=1,D._result=Z)},function(Z){(D._status===0||D._status===-1)&&(D._status=2,D._result=Z)}),D._status===-1&&(D._status=0,D._result=Q)}if(D._status===1)return D._result.default;throw D._result}var le=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},te={map:Y,forEach:function(D,Q,Z){Y(D,function(){Q.apply(this,arguments)},Z)},count:function(D){var Q=0;return Y(D,function(){Q++}),Q},toArray:function(D){return Y(D,function(Q){return Q})||[]},only:function(D){if(!ne(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return ke.Activity=m,ke.Children=te,ke.Component=x,ke.Fragment=n,ke.Profiler=a,ke.PureComponent=C,ke.StrictMode=s,ke.Suspense=f,ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,ke.__COMPILER_RUNTIME={__proto__:null,c:function(D){return P.H.useMemoCache(D)}}
vendor: 4,779 bytes, line 2
2,ke.cache=function(D){return function(){return D.apply(null,arguments)}},ke.cacheSignal=function(){return null},ke.cloneElement=function(D,Q,Z){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ie=E({},D.props),se=D.key;if(Q!=null)for(ce in Q.key!==void 0&&(se=""+Q.key),Q)!M.call(Q,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&Q.ref===void 0||(ie[ce]=Q[ce]);var ce=arguments.length-2;if(ce===1)ie.children=Z;else if(1<ce){for(var Te=Array(ce),xe=0;xe<ce;xe++)Te[xe]=arguments[xe+2];ie.children=Te}return F(D.type,se,ie)},ke.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:l,_context:D},D},ke.createElement=function(D,Q,Z){var ie,se={},ce=null;if(Q!=null)for(ie in Q.key!==void 0&&(ce=""+Q.key),Q)M.call(Q,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(se[ie]=Q[ie]);var Te=arguments.length-2;if(Te===1)se.children=Z;else if(1<Te){for(var xe=Array(Te),we=0;we<Te;we++)xe[we]=arguments[we+2];se.children=xe}if(D&&D.defaultProps)for(ie in Te=D.defaultProps,Te)se[ie]===void 0&&(se[ie]=Te[ie]);return F(D,ce,se)},ke.createRef=function(){return{current:null}},ke.forwardRef=function(D){return{$$typeof:d,render:D}},ke.isValidElement=ne,ke.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:X}},ke.memo=function(D,Q){return{$$typeof:h,type:D,compare:Q===void 0?null:Q}},ke.startTransition=function(D){var Q=P.T,Z={};P.T=Z;try{var ie=D(),se=P.S;se!==null&&se(Z,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(B,le)}catch(ce){le(ce)}finally{Q!==null&&Z.types!==null&&(Q.types=Z.types),P.T=Q}},ke.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},ke.use=function(D){return P.H.use(D)},ke.useActionState=function(D,Q,Z){return P.H.useActionState(D,Q,Z)},ke.useCallback=function(D,Q){return P.H.useCallback(D,Q)},ke.useContext=function(D){return P.H.useContext(D)},ke.useDebugValue=function(){},ke.useDeferredValue=function(D,Q){return P.H.useDeferredValue(D,Q)},ke.useEffect=function(D,Q){return P.H.useEffect(D,Q)},ke.useEffectEvent=function(D){return P.H.useEffectEvent(D)},ke.useId=function(){return P.H.useId()},ke.useImperativeHandle=function(D,Q,Z){return P.H.useImperativeHandle(D,Q,Z)},ke.useInsertionEffect=function(D,Q){return P.H.useInsertionEffect(D,Q)},ke.useLayoutEffect=function(D,Q){return P.H.useLayoutEffect(D,Q)},ke.useMemo=function(D,Q){return P.H.useMemo(D,Q)},ke.useOptimistic=function(D,Q){return P.H.useOptimistic(D,Q)},ke.useReducer=function(D,Q,Z){return P.H.useReducer(D,Q,Z)},ke.useRef=function(D){return P.H.useRef(D)},ke.useState=function(D){return P.H.useState(D)},ke.useSyncExternalStore=function(D,Q,Z){return P.H.useSyncExternalStore(D,Q,Z)},ke.useTransition=function(){return P.H.useTransition()},ke.version="19.2.5",ke}var J0;function tc(){return J0||(J0=1,vp.exports=CC()),vp.exports}var j=tc();const ae=KS(j),OC=EC({__proto__:null,default:ae},[j]);var bp={exports:{}},wl={},wp={exports:{}},_p={};var Z0;function kC(){return Z0||(Z0=1,(function(e){function t(z,Y){var X=z.length;z.push(Y);e:for(;0<X;){var le=X-1>>>1,te=z[le];if(0<a(te,Y))z[le]=Y,z[X]=te,X=le;else break e}}function n(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var Y=z[0],X=z.pop();if(X!==Y){z[0]=X;e:for(var le=0,te=z.length,D=te>>>1;le<D;){var Q=2*(le+1)-1,Z=z[Q],ie=Q+1,se=z[ie];if(0>a(Z,X))ie<te&&0>a(se,Z)?(z[le]=se,z[ie]=X,le=ie):(z[le]=Z,z[Q]=X,le=Q);else if(ie<te&&0>a(se,X))z[le]=se,z[ie]=X,le=ie;else break e}}return Y}function a(z,Y){var X=z.sortIndex-Y.sortIndex;return X!==0?X:z.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],g=1,m=null,v=3,b=!1,_=!1,E=!1,S=!1,x=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function O(z){for(var Y=n(h);Y!==null;){if(Y.callback===null)s(h);else if(Y.startTime<=z)s(h),Y.sortIndex=Y.expirationTime,t(f,Y);else break;Y=n(h)}}function I(z){if(E=!1,O(z),!_)if(n(f)!==null)_=!0,B||(B=!0,re());else{var Y=n(h);Y!==null&&be(I,Y.startTime-z)}}var B=!1,P=-1,M=5,F=-1;function K(){return S?!0:!(e.unstable_now()-F<M)}function ne(){if(S=!1,B){var z=e.unstable_now();F=z;var Y=!0;try{e:{_=!1,E&&(E=!1,R(P),P=-1),b=!0;var X=v;try{t:{for(O(z),m=n(f);m!==null&&!(m.expirationTime>z&&K());){var le=m.callback;if(typeof le=="function"){m.callback=null,v=m.priorityLevel;var te=le(m.expirationTime<=z);if(z=e.unstable_now(),typeof te=="function"){m.callback=te,O(z),Y=!0;break t}m===n(f)&&s(f),O(z)}
vendor: 10,533 bytes, lines 2-4
2else s(f);m=n(f)}if(m!==null)Y=!0;else{var D=n(h);D!==null&&be(I,D.startTime-z),Y=!1}}break e}finally{m=null,v=X,b=!1}Y=void 0}}finally{Y?re():B=!1}}}var re;if(typeof C=="function")re=function(){C(ne)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,de=fe.port2;fe.port1.onmessage=ne,re=function(){de.postMessage(null)}}else re=function(){x(ne,0)};function be(z,Y){P=x(function(){z(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var X=v;v=Y;try{return z()}finally{v=X}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(z,Y){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var X=v;v=z;try{return Y()}finally{v=X}},e.unstable_scheduleCallback=function(z,Y,X){var le=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?le+X:le):X=le,z){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=X+te,z={id:g++,callback:Y,priorityLevel:z,startTime:X,expirationTime:te,sortIndex:-1},X>le?(z.sortIndex=X,t(h,z),n(f)===null&&z===n(h)&&(E?(R(P),P=-1):E=!0,be(I,X-le))):(z.sortIndex=te,t(f,z),_||b||(_=!0,B||(B=!0,re()))),z},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(z){var Y=v;return function(){var X=v;v=Y;try{return z.apply(this,arguments)}finally{v=X}}}})(_p)),_p}var ew;function NC(){return ew||(ew=1,wp.exports=kC()),wp.exports}var Sp={exports:{}},tn={};var tw;function MC(){if(tw)return tn;tw=1;var e=tc();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var s={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(f,h,g){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:f,containerInfo:h,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return tn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,tn.createPortal=function(f,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,g)},tn.flushSync=function(f){var h=c.T,g=s.p;try{if(c.T=null,s.p=2,f)return f()}finally{c.T=h,s.p=g,s.d.f()}},tn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,s.d.C(f,h))},tn.prefetchDNS=function(f){typeof f=="string"&&s.d.D(f)},tn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var g=h.as,m=d(g,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?s.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:m,integrity:v,fetchPriority:b}):g==="script"&&s.d.X(f,{crossOrigin:m,integrity:v,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},tn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=d(h.as,h.crossOrigin);s.d.M(f,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&s.d.M(f)},tn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,m=d(g,h.crossOrigin);s.d.L(f,g,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},tn.preloadModule=function(f,h){if(typeof f=="string")if(h){var g=d(h.as,h.crossOrigin);s.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else s.d.m(f)},tn.requestFormReset=function(f){s.d.r(f)},tn.unstable_batchedUpdates=function(f,h){return f(h)},tn.useFormState=function(f,h,g){return c.H.useFormState(f,h,g)},tn.useFormStatus=function(){return c.H.useHostTransitionStatus()},tn.version="19.2.5",tn}var nw;function YS(){if(nw)return Sp.exports;nw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sp.exports=MC(),Sp.exports}var rw;function PC(){if(rw)return wl;rw=1;var e=NC(),t=tc(),n=YS();function s(r){var i="https://react.dev/errors/"+r;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var i=r,o=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(o=i.return),r=i.return;while(r)}return i.tag===3?o:null}function c(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function d(r){if(r.tag===31){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function f(r){if(l(r)!==r)throw Error(s(188))}function h(r){var i=r.alternate;if(!i){if(i=l(r),i===null)throw Error(s(188));return i!==r?null:r}for(var o=r,u=i;;){var p=o.return;if(p===null)break;var y=p.alternate;if(y===null){if(u=p.return,u!==null){o=u;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===o)return f(p),r;if(y===u)return f(p),i;y=y.sibling}throw Error(s(188))}if(o.return!==u.return)o=p,u=y;else{for(var w=!1,A=p.child;A;){if(A===o){w=!0,o=p,u=y;break}if(A===u){w=!0,u=p,o=y;break}A=A.sibling}if(!w){for(A=y.child;A;){if(A===o){w=!0,o=y,u=p;break}if(A===u){w=!0,u=y,o=p;break}A=A.sibling}if(!w)throw Error(s(189))}}if(o.alternate!==u)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?r:i}function g(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r;for(r=r.child;r!==null;){if(i=g(r),i!==null)return i;r=r.sibling}return null}var m=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function re(r){return r===null||typeof r!="object"?null:(r=ne&&r[ne]||r["@@iterator"],typeof r=="function"?r:null)}var fe=Symbol.for("react.client.reference");function de(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===fe?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case E:return"Fragment";case x:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case B:return"SuspenseList";case F:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case _:return"Portal";case C:return r.displayName||"Context";case R:return(r._context.displayName||"Context")+".Consumer";case O:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case P:return i=r.displayName||null,i!==null?i:de(r.type)||"Memo";case M:i=r._payload,r=r._init;try{return de(r(i))}catch{}}return null}var be=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},le=[],te=-1;function D(r){return{current:r}}function Q(r){0>te||(r.current=le[te],le[te]=null,te--)}function Z(r,i){te++,le[te]=r.current,r.current=i}var ie=D(null),se=D(null),ce=D(null),Te=D(null);function xe(r,i){switch(Z(ce,i),Z(se,r),Z(ie,null),i.nodeType){case 9:case 11:r=(r=i.documentElement)&&(r=r.namespaceURI)?v0(r):0;break;default:if(r=i.tagName,i=i.namespaceURI)i=v0(i),r=b0(i,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Q(ie),Z(ie,r)}function we(){Q(ie),Q(se),Q(ce)}function Et(r){r.memoizedState!==null&&Z(Te,r);var i=ie.current,o=b0(i,r.type);i!==o&&(Z(se,r),Z(ie,o))}function mt(r){se.current===r&&(Q(ie),Q(se)),Te.current===r&&(Q(Te),ml._currentValue=X)}var ot,Jt;function Rt(r){if(ot===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);ot=i&&i[1]||"",Jt=-1<o.stack.indexOf(`
3    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
4`+ot+r+Jt}var ci=!1;function Cr(r,i){if(!r||ci)return"";ci=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(G){var H=G}Reflect.construct(r,[],ee)}else{try{ee.call()}catch(G){H=G}r.call(ee.prototype)}}else{try{throw Error()}catch(G){H=G}(ee=r())&&typeof ee.catch=="function"&&ee.catch(function(){})}}
vendor: 11,886 bytes, lines 4-9
4catch(G){if(G&&H&&typeof G.stack=="string")return[G.stack,H.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=u.DetermineComponentFrameRoot(),w=y[0],A=y[1];if(w&&A){var L=w.split(`
5`),V=A.split(`
6`);for(p=u=0;u<L.length&&!L[u].includes("DetermineComponentFrameRoot");)u++;for(;p<V.length&&!V[p].includes("DetermineComponentFrameRoot");)p++;if(u===L.length||p===V.length)for(u=L.length-1,p=V.length-1;1<=u&&0<=p&&L[u]!==V[p];)p--;for(;1<=u&&0<=p;u--,p--)if(L[u]!==V[p]){if(u!==1||p!==1)do if(u--,p--,0>p||L[u]!==V[p]){var W=`
7`+L[u].replace(" at new "," at ");return r.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",r.displayName)),W}while(1<=u&&0<=p);break}}}finally{ci=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Rt(o):""}function ur(r,i){switch(r.tag){case 26:case 27:case 5:return Rt(r.type);case 16:return Rt("Lazy");case 13:return r.child!==i&&i!==null?Rt("Suspense Fallback"):Rt("Suspense");case 19:return Rt("SuspenseList");case 0:case 15:return Cr(r.type,!1);case 11:return Cr(r.type.render,!1);case 1:return Cr(r.type,!0);case 31:return Rt("Activity");default:return""}}function Ln(r){try{var i="",o=null;do i+=ur(r,o),o=r,r=r.return;while(r);return i}catch(u){return`
8Error generating stack: `+u.message+`
9`+u.stack}}var $t=Object.prototype.hasOwnProperty,Sn=e.unstable_scheduleCallback,ui=e.unstable_cancelCallback,Mt=e.unstable_shouldYield,dr=e.unstable_requestPaint,Pt=e.unstable_now,Ge=e.unstable_getCurrentPriorityLevel,lt=e.unstable_ImmediatePriority,Dn=e.unstable_UserBlockingPriority,Or=e.unstable_NormalPriority,Co=e.unstable_LowPriority,kr=e.unstable_IdlePriority,hc=e.log,ps=e.unstable_setDisableYieldValue,di=null,rn=null;function Wn(r){if(typeof hc=="function"&&ps(r),rn&&typeof rn.setStrictMode=="function")try{rn.setStrictMode(di,r)}catch{}}var Zt=Math.clz32?Math.clz32:fr,af=Math.log,Oo=Math.LN2;function fr(r){return r>>>=0,r===0?32:31-(af(r)/Oo|0)|0}var na=256,ra=262144,fi=4194304;function hr(r){var i=r&42;if(i!==0)return i;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 Ae(r,i,o){var u=r.pendingLanes;if(u===0)return 0;var p=0,y=r.suspendedLanes,w=r.pingedLanes;r=r.warmLanes;var A=u&134217727;return A!==0?(u=A&~y,u!==0?p=hr(u):(w&=A,w!==0?p=hr(w):o||(o=A&~r,o!==0&&(p=hr(o))))):(A=u&~y,A!==0?p=hr(A):w!==0?p=hr(w):o||(o=u&~r,o!==0&&(p=hr(o)))),p===0?0:i!==0&&i!==p&&(i&y)===0&&(y=p&-p,o=i&-i,y>=o||y===32&&(o&4194048)!==0)?i:p}function tt(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function jt(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 en(){var r=fi;return fi<<=1,(fi&62914560)===0&&(fi=4194304),r}function ms(r){for(var i=[],o=0;31>o;o++)i.push(r);return i}function at(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function ln(r,i,o,u,p,y){var w=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var A=r.entanglements,L=r.expirationTimes,V=r.hiddenUpdates;for(o=w&~o;0<o;){var W=31-Zt(o),ee=1<<W;A[W]=0,L[W]=-1;var H=V[W];if(H!==null)for(V[W]=null,W=0;W<H.length;W++){var G=H[W];G!==null&&(G.lane&=-536870913)}o&=~ee}u!==0&&hi(r,u,0),y!==0&&p===0&&r.tag!==0&&(r.suspendedLanes|=y&~(w&~i))}function hi(r,i,o){r.pendingLanes|=i,r.suspendedLanes&=~i;var u=31-Zt(i);r.entangledLanes|=i,r.entanglements[u]=r.entanglements[u]|1073741824|o&261930}function cn(r,i){var o=r.entangledLanes|=i;for(r=r.entanglements;o;){var u=31-Zt(o),p=1<<u;p&i|r[u]&i&&(r[u]|=i),o&=~p}}function un(r,i){var o=i&-i;return o=(o&42)!==0?1:sa(o),(o&(r.suspendedLanes|i))!==0?0:o}function sa(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 Xn(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function of(){var r=Y.p;return r!==0?r:(r=window.event,r===void 0?32:q0(r.type))}function sy(r,i){var o=Y.p;try{return Y.p=r,i()}finally{Y.p=o}}var gs=Math.random().toString(36).slice(2),qt="__reactFiber$"+gs,dn="__reactProps$"+gs,ia="__reactContainer$"+gs,lf="__reactEvents$"+gs,pA="__reactListeners$"+gs,mA="__reactHandles$"+gs,iy="__reactResources$"+gs,ko="__reactMarker$"+gs;function cf(r){delete r[qt],delete r[dn],delete r[lf],delete r[pA],delete r[mA]}function aa(r){var i=r[qt];if(i)return i;for(var o=r.parentNode;o;){if(i=o[ia]||o[qt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(r=R0(r);r!==null;){if(o=r[qt])return o;r=R0(r)}return i}r=o,o=r.parentNode}return null}function oa(r){if(r=r[qt]||r[ia]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function No(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(s(33))}function la(r){var i=r[iy];return i||(i=r[iy]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Lt(r){r[ko]=!0}var ay=new Set,oy={};function pi(r,i){ca(r,i),ca(r+"Capture",i)}function ca(r,i){for(oy[r]=i,r=0;r<i.length;r++)ay.add(i[r])}var gA=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]*$"),ly={},cy={};function yA(r){return $t.call(cy,r)?!0:$t.call(ly,r)?!1:gA.test(r)?cy[r]=!0:(ly[r]=!0,!1)}function pc(r,i,o){if(yA(i))if(o===null)r.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){r.removeAttribute(i);return}}r.setAttribute(i,""+o)}}function mc(r,i,o){if(o===null)r.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttribute(i,""+o)}}function Nr(r,i,o,u){if(u===null)r.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(i,o,""+u)}}function In(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function uy(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function vA(r,i,o){var u=Object.getOwnPropertyDescriptor(r.constructor.prototype,i);if(!r.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var p=u.get,y=u.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return p.call(this)},set:function(w){o=""+w,y.call(this,w)}}),Object.defineProperty(r,i,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(w){o=""+w},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function uf(r){if(!r._valueTracker){var i=uy(r)?"checked":"value";r._valueTracker=vA(r,i,""+r[i])}}function dy(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var o=i.getValue(),u="";return r&&(u=uy(r)?r.checked?"true":"false":r.value),r=u,r!==o?(i.setValue(r),!0):!1}function gc(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 bA=/[\n"\\]/g;function Un(r){return r.replace(bA,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function df(r,i,o,u,p,y,w,A){r.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?r.type=w:r.removeAttribute("type"),i!=null?w==="number"?(i===0&&r.value===""||r.value!=i)&&(r.value=""+In(i)):r.value!==""+In(i)&&(r.value=""+In(i)):w!=="submit"&&w!=="reset"||r.removeAttribute("value"),i!=null?ff(r,w,In(i)):o!=null?ff(r,w,In(o)):u!=null&&r.removeAttribute("value"),p==null&&y!=null&&(r.defaultChecked=!!y),p!=null&&(r.checked=p&&typeof p!="function"&&typeof p!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?r.name=""+In(A):r.removeAttribute("name")}function fy(r,i,o,u,p,y,w,A){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(r.type=y),i!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||i!=null)){uf(r);return}o=o!=null?""+In(o):"",i=i!=null?""+In(i):o,A||i===r.value||(r.value=i),r.defaultValue=i}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=A?r.checked:!!u,r.defaultChecked=!!u,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(r.name=w),uf(r)}function ff(r,i,o){i==="number"&&gc(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function ua(r,i,o,u){if(r=r.options,i){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=!0;for(o=0;o<r.length;o++)p=i.hasOwnProperty("$"+r[o].value),r[o].selected!==p&&(r[o].selected=p),p&&u&&(r[o].defaultSelected=!0)}else{for(o=""+In(o),i=null,p=0;p<r.length;p++){if(r[p].value===o){r[p].selected=!0,u&&(r[p].defaultSelected=!0);return}i!==null||r[p].disabled||(i=r[p])}i!==null&&(i.selected=!0)}}function hy(r,i,o){if(i!=null&&(i=""+In(i),i!==r.value&&(r.value=i),o==null)){r.defaultValue!==i&&(r.defaultValue=i);return}r.defaultValue=o!=null?""+In(o):""}function py(r,i,o,u){if(i==null){if(u!=null){if(o!=null)throw Error(s(92));if(be(u)){if(1<u.length)throw Error(s(93));u=u[0]}o=u}o==null&&(o=""),i=o}o=In(i),r.defaultValue=o,u=r.textContent,u===o&&u!==""&&u!==null&&(r.value=u),uf(r)}function da(r,i){if(i){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=i;return}}r.textContent=i}var wA=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(" "));
vendor: 5,899 bytes, line 9
9function my(r,i,o){var u=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?r.setProperty(i,""):i==="float"?r.cssFloat="":r[i]="":u?r.setProperty(i,o):typeof o!="number"||o===0||wA.has(i)?i==="float"?r.cssFloat=o:r[i]=(""+o).trim():r[i]=o+"px"}function gy(r,i,o){if(i!=null&&typeof i!="object")throw Error(s(62));if(r=r.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?r.setProperty(u,""):u==="float"?r.cssFloat="":r[u]="");for(var p in i)u=i[p],i.hasOwnProperty(p)&&o[p]!==u&&my(r,p,u)}else for(var y in i)i.hasOwnProperty(y)&&my(r,y,i[y])}function hf(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 _A=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"],["colorRendering","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"]]),SA=/^[\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 yc(r){return SA.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Mr(){}var pf=null;function mf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var fa=null,ha=null;function yy(r){var i=oa(r);if(i&&(r=i.stateNode)){var o=r[dn]||null;e:switch(r=i.stateNode,i.type){case"input":if(df(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Un(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var u=o[i];if(u!==r&&u.form===r.form){var p=u[dn]||null;if(!p)throw Error(s(90));df(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(i=0;i<o.length;i++)u=o[i],u.form===r.form&&dy(u)}break e;case"textarea":hy(r,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&ua(r,!!o.multiple,i,!1)}}}var gf=!1;function vy(r,i,o){if(gf)return r(i,o);gf=!0;try{var u=r(i);return u}finally{if(gf=!1,(fa!==null||ha!==null)&&(su(),fa&&(i=fa,r=ha,ha=fa=null,yy(i),r)))for(i=0;i<r.length;i++)yy(r[i])}}function Mo(r,i){var o=r.stateNode;if(o===null)return null;var u=o[dn]||null;if(u===null)return null;o=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(s(231,i,typeof o));return o}var Pr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yf=!1;if(Pr)try{var Po={};Object.defineProperty(Po,"passive",{get:function(){yf=!0}}),window.addEventListener("test",Po,Po),window.removeEventListener("test",Po,Po)}catch{yf=!1}var ys=null,vf=null,vc=null;function by(){if(vc)return vc;var r,i=vf,o=i.length,u,p="value"in ys?ys.value:ys.textContent,y=p.length;for(r=0;r<o&&i[r]===p[r];r++);var w=o-r;for(u=1;u<=w&&i[o-u]===p[y-u];u++);
vendor: 4,113 bytes, line 9
9return vc=p.slice(r,1<u?1-u:void 0)}function bc(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function wc(){return!0}function wy(){return!1}function fn(r){function i(o,u,p,y,w){this._reactName=o,this._targetInst=p,this.type=u,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var A in r)r.hasOwnProperty(A)&&(o=r[A],this[A]=o?o(y):y[A]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?wc:wy,this.isPropagationStopped=wy,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=wc)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=wc)},persist:function(){},isPersistent:wc}),i}var mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_c=fn(mi),jo=m({},mi,{view:0,detail:0}),xA=fn(jo),bf,wf,Lo,Sc=m({},jo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sf,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!==Lo&&(Lo&&r.type==="mousemove"?(bf=r.screenX-Lo.screenX,wf=r.screenY-Lo.screenY):wf=bf=0,Lo=r),bf)},movementY:function(r){return"movementY"in r?r.movementY:wf}}),_y=fn(Sc),TA=m({},Sc,{dataTransfer:0}),EA=fn(TA),RA=m({},jo,{relatedTarget:0}),_f=fn(RA),AA=m({},mi,{animationName:0,elapsedTime:0,pseudoElement:0}),CA=fn(AA),OA=m({},mi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),kA=fn(OA),NA=m({},mi,{data:0}),Sy=fn(NA),MA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PA={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"},jA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LA(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=jA[r])?!!i[r]:!1}function Sf(){return LA}var DA=m({},jo,{key:function(r){if(r.key){var i=MA[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=bc(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?PA[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sf,charCode:function(r){return r.type==="keypress"?bc(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?bc(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),IA=fn(DA),UA=m({},Sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xy=fn(UA),zA=m({},jo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sf}),BA=fn(zA),$A=m({},mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),qA=fn($A),VA=m({},Sc,{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}),HA=fn(VA),FA=m({},mi,{newState:0,oldState:0}),GA=fn(FA),KA=[9,13,27,32],xf=Pr&&"CompositionEvent"in window,Do=null;Pr&&"documentMode"in document&&(Do=document.documentMode);
vendor: 7,062 bytes, line 9
9var YA=Pr&&"TextEvent"in window&&!Do,Ty=Pr&&(!xf||Do&&8<Do&&11>=Do),Ey=" ",Ry=!1;function Ay(r,i){switch(r){case"keyup":return KA.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cy(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var pa=!1;function QA(r,i){switch(r){case"compositionend":return Cy(i);case"keypress":return i.which!==32?null:(Ry=!0,Ey);case"textInput":return r=i.data,r===Ey&&Ry?null:r;default:return null}}function WA(r,i){if(pa)return r==="compositionend"||!xf&&Ay(r,i)?(r=by(),vc=vf=ys=null,pa=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Ty&&i.locale!=="ko"?null:i.data;default:return null}}var XA={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 Oy(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!XA[r.type]:i==="textarea"}function ky(r,i,o,u){fa?ha?ha.push(u):ha=[u]:fa=u,i=du(i,"onChange"),0<i.length&&(o=new _c("onChange","change",null,o,u),r.push({event:o,listeners:i}))}var Io=null,Uo=null;function JA(r){f0(r,0)}function xc(r){var i=No(r);if(dy(i))return r}function Ny(r,i){if(r==="change")return i}var My=!1;if(Pr){var Tf;if(Pr){var Ef="oninput"in document;if(!Ef){var Py=document.createElement("div");Py.setAttribute("oninput","return;"),Ef=typeof Py.oninput=="function"}Tf=Ef}else Tf=!1;My=Tf&&(!document.documentMode||9<document.documentMode)}function jy(){Io&&(Io.detachEvent("onpropertychange",Ly),Uo=Io=null)}function Ly(r){if(r.propertyName==="value"&&xc(Uo)){var i=[];ky(i,Uo,r,mf(r)),vy(JA,i)}}function ZA(r,i,o){r==="focusin"?(jy(),Io=i,Uo=o,Io.attachEvent("onpropertychange",Ly)):r==="focusout"&&jy()}function e1(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return xc(Uo)}function t1(r,i){if(r==="click")return xc(i)}function n1(r,i){if(r==="input"||r==="change")return xc(i)}function r1(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var xn=typeof Object.is=="function"?Object.is:r1;function zo(r,i){if(xn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var o=Object.keys(r),u=Object.keys(i);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var p=o[u];if(!$t.call(i,p)||!xn(r[p],i[p]))return!1}return!0}function Dy(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Iy(r,i){var o=Dy(r);r=0;for(var u;o;){if(o.nodeType===3){if(u=r+o.textContent.length,r<=i&&u>=i)return{node:o,offset:i-r};r=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Dy(o)}}function Uy(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?Uy(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function zy(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=gc(r.document);i instanceof r.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)r=i.contentWindow;else break;i=gc(r.document)}return i}function Rf(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}var s1=Pr&&"documentMode"in document&&11>=document.documentMode,ma=null,Af=null,Bo=null,Cf=!1;function By(r,i,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Cf||ma==null||ma!==gc(u)||(u=ma,"selectionStart"in u&&Rf(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Bo&&zo(Bo,u)||(Bo=u,u=du(Af,"onSelect"),0<u.length&&(i=new _c("onSelect","select",null,i,o),r.push({event:i,listeners:u}),i.target=ma)))}function gi(r,i){var o={};return o[r.toLowerCase()]=i.toLowerCase(),o["Webkit"+r]="webkit"+i,o["Moz"+r]="moz"+i,o}var ga={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionrun:gi("Transition","TransitionRun"),transitionstart:gi("Transition","TransitionStart"),transitioncancel:gi("Transition","TransitionCancel"),transitionend:gi("Transition","TransitionEnd")},Of={},$y={};Pr&&($y=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 yi(r){if(Of[r])return Of[r];if(!ga[r])return r;var i=ga[r],o;for(o in i)if(i.hasOwnProperty(o)&&o in $y)return Of[r]=i[o];return r}var qy=yi("animationend"),Vy=yi("animationiteration"),Hy=yi("animationstart"),i1=yi("transitionrun"),a1=yi("transitionstart"),o1=yi("transitioncancel"),Fy=yi("transitionend"),Gy=new Map,kf="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(" ");kf.push("scrollEnd");function Jn(r,i){Gy.set(r,i),pi(i,[r])}var Tc=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=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(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},zn=[],ya=0,Nf=0;function Ec(){for(var r=ya,i=Nf=ya=0;i<r;){var o=zn[i];zn[i++]=null;var u=zn[i];zn[i++]=null;var p=zn[i];zn[i++]=null;var y=zn[i];if(zn[i++]=null,u!==null&&p!==null){var w=u.pending;w===null?p.next=p:(p.next=w.next,w.next=p),u.pending=p}y!==0&&Ky(o,p,y)}}function Rc(r,i,o,u){zn[ya++]=r,zn[ya++]=i,zn[ya++]=o,zn[ya++]=u,Nf|=u,r.lanes|=u,r=r.alternate,r!==null&&(r.lanes|=u)}function Mf(r,i,o,u){return Rc(r,i,o,u),Ac(r)}function vi(r,i){return Rc(r,null,null,i),Ac(r)}function Ky(r,i,o){r.lanes|=o;var u=r.alternate;u!==null&&(u.lanes|=o);for(var p=!1,y=r.return;y!==null;)y.childLanes|=o,u=y.alternate,u!==null&&(u.childLanes|=o),y.tag===22&&(r=y.stateNode,r===null||r._visibility&1||(p=!0)),r
vendor: 13,363 bytes, line 9
9=y,y=y.return;return r.tag===3?(y=r.stateNode,p&&i!==null&&(p=31-Zt(o),r=y.hiddenUpdates,u=r[p],u===null?r[p]=[i]:u.push(i),i.lane=o|536870912),y):null}function Ac(r){if(50<ll)throw ll=0,$h=null,Error(s(185));for(var i=r.return;i!==null;)r=i,i=r.return;return r.tag===3?r.stateNode:null}var va={};function l1(r,i,o,u){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(r,i,o,u){return new l1(r,i,o,u)}function Pf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function jr(r,i){var o=r.alternate;return o===null?(o=Tn(r.tag,i,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=i,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,i=r.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function Yy(r,i){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,i=o.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),r}function Cc(r,i,o,u,p,y){var w=0;if(u=r,typeof r=="function")Pf(r)&&(w=1);else if(typeof r=="string")w=hC(r,o,ie.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case F:return r=Tn(31,o,i,p),r.elementType=F,r.lanes=y,r;case E:return bi(o.children,p,y,i);case S:w=8,p|=24;break;case x:return r=Tn(12,o,i,p|2),r.elementType=x,r.lanes=y,r;case I:return r=Tn(13,o,i,p),r.elementType=I,r.lanes=y,r;case B:return r=Tn(19,o,i,p),r.elementType=B,r.lanes=y,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case C:w=10;break e;case R:w=9;break e;case O:w=11;break e;case P:w=14;break e;case M:w=16,u=null;break e}w=29,o=Error(s(130,r===null?"null":typeof r,"")),u=null}return i=Tn(w,o,i,p),i.elementType=r,i.type=u,i.lanes=y,i}function bi(r,i,o,u){return r=Tn(7,r,u,i),r.lanes=o,r}function jf(r,i,o){return r=Tn(6,r,null,i),r.lanes=o,r}function Qy(r){var i=Tn(18,null,null,0);return i.stateNode=r,i}function Lf(r,i,o){return i=Tn(4,r.children!==null?r.children:[],r.key,i),i.lanes=o,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}var Wy=new WeakMap;function Bn(r,i){if(typeof r=="object"&&r!==null){var o=Wy.get(r);return o!==void 0?o:(i={value:r,source:i,stack:Ln(i)},Wy.set(r,i),i)}return{value:r,source:i,stack:Ln(i)}}var ba=[],wa=0,Oc=null,$o=0,$n=[],qn=0,vs=null,pr=1,mr="";function Lr(r,i){ba[wa++]=$o,ba[wa++]=Oc,Oc=r,$o=i}function Xy(r,i,o){$n[qn++]=pr,$n[qn++]=mr,$n[qn++]=vs,vs=r;var u=pr;r=mr;var p=32-Zt(u)-1;u&=~(1<<p),o+=1;var y=32-Zt(i)+p;if(30<y){var w=p-p%5;y=(u&(1<<w)-1).toString(32),u>>=w,p-=w,pr=1<<32-Zt(i)+p|o<<p|u,mr=y+r}else pr=1<<y|o<<p|u,mr=r}function Df(r){r.return!==null&&(Lr(r,1),Xy(r,1,0))}function If(r){for(;r===Oc;)Oc=ba[--wa],ba[wa]=null,$o=ba[--wa],ba[wa]=null;for(;r===vs;)vs=$n[--qn],$n[qn]=null,mr=$n[--qn],$n[qn]=null,pr=$n[--qn],$n[qn]=null}function Jy(r,i){$n[qn++]=pr,$n[qn++]=mr,$n[qn++]=vs,pr=i.id,mr=i.overflow,vs=r}var Vt=null,Ze=null,Ue=!1,bs=null,Vn=!1,Uf=Error(s(519));function ws(r){var i=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qo(Bn(i,r)),Uf}function Zy(r){var i=r.stateNode,o=r.type,u=r.memoizedProps;switch(i[qt]=r,i[dn]=u,o){case"dialog":Le("cancel",i),Le("close",i);break;case"iframe":case"object":case"embed":Le("load",i);break;case"video":case"audio":for(o=0;o<ul.length;o++)Le(ul[o],i);break;case"source":Le("error",i);break;case"img":case"image":case"link":Le("error",i),Le("load",i);break;case"details":Le("toggle",i);break;case"input":Le("invalid",i),fy(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Le("invalid",i);break;case"textarea":Le("invalid",i),py(i,u.value,u.defaultValue,u.children)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||u.suppressHydrationWarning===!0||g0(i.textContent,o)?(u.popover!=null&&(Le("beforetoggle",i),Le("toggle",i)),u.onScroll!=null&&Le("scroll",i),u.onScrollEnd!=null&&Le("scrollend",i),u.onClick!=null&&(i.onclick=Mr),i=!0):i=!1,i||ws(r,!0)}function ev(r){for(Vt=r.return;Vt;)switch(Vt.tag){case 5:case 31:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:Vt=Vt.return}}function _a(r){if(r!==Vt)return!1;if(!Ue)return ev(r),Ue=!0,!1;var i=r.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||np(r.type,r.memoizedProps)),o=!o),o&&Ze&&ws(r),ev(r),i===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));Ze=E0(r)}else if(i===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));Ze=E0(r)}else i===27?(i=Ze,js(r.type)?(r=op,op=null,Ze=r):Ze=i):Ze=Vt?Fn(r.stateNode.nextSibling):null;return!0}function wi(){Ze=Vt=null,Ue=!1}function zf(){var r=bs;return r!==null&&(gn===null?gn=r:gn.push.apply(gn,r),bs=null),r}function qo(r){bs===null?bs=[r]:bs.push(r)}var Bf=D(null),_i=null,Dr=null;function _s(r,i,o){Z(Bf,i._currentValue),i._currentValue=o}function Ir(r){r._currentValue=Bf.current,Q(Bf)}function $f(r,i,o){for(;r!==null;){var u=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),r===o)break;r=r.return}}function qf(r,i,o,u){var p=r.child;for(p!==null&&(p.return=r);p!==null;){var y=p.dependencies;if(y!==null){var w=p.child;y=y.firstContext;e:for(;y!==null;){var A=y;y=p;for(var L=0;L<i.length;L++)if(A.context===i[L]){y.lanes|=o,A=y.alternate,A!==null&&(A.lanes|=o),$f(y.return,o,r),u||(w=null);break e}y=A.next}}else if(p.tag===18){if(w=p.return,w===null)throw Error(s(341));w.lanes|=o,y=w.alternate,y!==null&&(y.lanes|=o),$f(w,o,r),w=null}else w=p.child;if(w!==null)w.return=p;else for(w=p;w!==null;){if(w===r){w=null;break}if(p=w.sibling,p!==null){p.return=w.return,w=p;break}w=w.return}p=w}}function Sa(r,i,o,u){r=null;for(var p=i,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var w=p.alternate;if(w===null)throw Error(s(387));if(w=w.memoizedProps,w!==null){var A=p.type;xn(p.pendingProps.value,w.value)||(r!==null?r.push(A):r=[A])}}else if(p===Te.current){if(w=p.alternate,w===null)throw Error(s(387));w.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(r!==null?r.push(ml):r=[ml])}p=p.return}r!==null&&qf(i,r,o,u),i.flags|=262144}function kc(r){for(r=r.firstContext;r!==null;){if(!xn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Si(r){_i=r,Dr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ht(r){return tv(_i,r)}function Nc(r,i){return _i===null&&Si(r),tv(r,i)}function tv(r,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},Dr===null){if(r===null)throw Error(s(308));Dr=i,r.dependencies={lanes:0,firstContext:i},r.flags|=524288}else Dr=Dr.next=i;return o}var c1=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(o,u){r.push(u)}};this.abort=function(){i.aborted=!0,r.forEach(function(o){return o()})}},u1=e.unstable_scheduleCallback,d1=e.unstable_NormalPriority,bt={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vf(){return{controller:new c1,data:new Map,refCount:0}}function Vo(r){r.refCount--,r.refCount===0&&u1(d1,function(){r.controller.abort()})}var Ho=null,Hf=0,xa=0,Ta=null;function f1(r,i){if(Ho===null){var o=Ho=[];Hf=0,xa=Kh(),Ta={status:"pending",value:void 0,then:function(u){o.push(u)}}}return Hf++,i.then(nv,nv),i}function nv(){if(--Hf===0&&Ho!==null){Ta!==null&&(Ta.status="fulfilled");var r=Ho;Ho=null,xa=0,Ta=null;for(var i=0;i<r.length;i++)(0,r[i])()}}function h1(r,i){var o=[],u={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return r.then(function(){u.status="fulfilled",u.value=i;for(var p=0;p<o.length;p++)(0,o[p])(i)},function(p){for(u.status="rejected",u.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),u}var rv=z.S;z.S=function(r,i){Bb=Pt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&f1(r,i),rv!==null&&rv(r,i)};var xi=D(null);function Ff(){var r=xi.current;return r!==null?r:We.pooledCache}function Mc(r,i){i===null?Z(xi,xi.current):Z(xi,i.pool)}function sv(){var r=Ff();return r===null?null:{parent:bt._currentValue,pool:r}}var Ea=Error(s(460)),Gf=Error(s(474)),Pc=Error(s(542)),jc={then:function(){}};function iv(r){return r=r.status,r==="fulfilled"||r==="rejected"}function av(r,i,o){switch(o=r[o],o===void 0?r.push(i):o!==i&&(i.then(Mr,Mr),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,lv(r),r;default:if(typeof i.status=="string")i.then(Mr,Mr);else{if(r=We,r!==null&&100<r.shellSuspendCounter)throw Error(s(482));r=i,r.status="pending",r.then(function(u){if(i.status==="pending"){var p=i;p.status="fulfilled",p.value=u}},function(u){if(i.status==="pending"){var p=i;p.status="rejected",p.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,lv(r),r}throw Ei=i,Ea}}function Ti(r){try{var i=r._init;return i(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Ei=o,Ea):o}}var Ei=null;function ov(){if(Ei===null)throw Error(s(459));var r=Ei;return Ei=null,r}function lv(r){if(r===Ea||r===Pc)throw Error(s(483))}var Ra=null,Fo=0;function Lc(r){var i=Fo;return Fo+=1,Ra===null&&(Ra=[]),av(Ra,r,i)}function Go(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function Dc(r,i){throw i.$$typeof===v?Error(s(525)):(r=Object.prototype.toString.call(i),Error(s(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r)))}function cv(r){function i($,U){if(r){var q=$.deletions;q===null?($.deletions=[U],$.flags|=16):q.push(U)}}function o($,U){if(!r)return null;for(;U!==null;)i($,U),U=U.sibling;return null}function u($){for(var U=new Map;$!==null;)$.key!==null?U.set($.key,$):U.set($.index,$),$=$.sibling;return U}function p($,U){return $=jr($,U),$.index=0,$.sibling=null,$}function y($,U,q){return $.index=q,r?(q=$.alternate,q!==null?(q=q.index,q<U?($.flags|=67108866,U):q):($.flags|=67108866,U)):($.flags|=1048576,U)}function w($){return r&&$.alternate===null&&($.flags|=67108866),$}function A($,U,q,J){return U===null||U.tag!==6?(U=jf(q,$.mode,J),U.return=$,U):(U=p(U,q),U.return=$,U)}function L($,U,q,J){var _e=q.type;return _e===E?W($,U,q.props.children,J,q.key):U!==null&&(U.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===M&&Ti(_e)===U.type)?(U=p(U,q.props),Go(U,q),U.return=$,U):(U=Cc(q.type,q.key,q.props,null,$.mode,J),Go(U,q),U.return=$,U)}function V($,U,q,J){return U===null||U.tag!==4||U.stateNode.containerInfo!==q.containerInfo||U.stateNode.implementation!==q.implementation?(U=Lf(q,$.mode,J),U.return=$,U):(U=p(U,q.children||[]),U.return=$,U)}function W($,U,q,J,_e){return U===null||U.tag!==7?(U=bi(q,$.mode,J,_e),U.return=$,U):(U=p(U,q),U.return=$,U)}function ee($,U,q){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=jf(""+U,$.mode,q),U.return=$,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case b:return q=Cc(U.type,U.key,U.props,null,$.mode,q),Go(q,U),q.return=$,q;case _:return U=Lf(U,$.mode,q),U.return=$,U;case M:return U=Ti(U),ee($,U,q)}if(be(U)||re(U))return U=bi(U,$.mode,q,null),U.return=$,U;if(typeof U.then=="function")return ee($,Lc(U),q);if(U.$$typeof===C)return ee($,Nc($,U),q);Dc($,U)}return null}function H($,U,q,J){var _e=U!==null?U.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return _e!==null?null:A($,U,""+q,J);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return q.key===_e?L($,U,q,J):null;case _:return q.key===_e?V($,U,q,J):null;case M:return q=Ti(q),H($,U,q,J)}if(be(q)||re(q))return _e!==null?null:W($,U,q,J,null);if(typeof q.then=="function")return H($,U,Lc(q),J);if(q.$$typeof===C)return H($,U,Nc($,q),J);Dc($,q)}return null}function G($,U,q,J,_e){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return $=$.get(q)||null,A(U,$,""+J,_e);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case b:return $=$.get(J.key===null?q:J.key)||null,L(U,$,J,_e);case _:return $=$.get(J.key===null?q:J.key)||null,V(U,$,J,_e);case M:return J=Ti(J),G($,U,q,J,_e)}if(be(J)||re(J))return $=$.get(q)||null,W(U,$,J,_e,null);if(typeof J.then=="function")return G($,U,q,Lc(J),_e);if(J.$$typeof===C)return G($,U,q,Nc(U,J),_e);Dc(U,J)}return null}function he($,U,q,J){for(var _e=null,ze=null,ve=U,Me=U=0,Ie=null;ve!==null&&Me<q.length;Me++){ve.index>Me?(Ie=ve,ve=null):Ie=ve.sibling;var Be=H($,ve,q[Me],J);
vendor: 5,582 bytes, line 9
9if(Be===null){ve===null&&(ve=Ie);break}r&&ve&&Be.alternate===null&&i($,ve),U=y(Be,U,Me),ze===null?_e=Be:ze.sibling=Be,ze=Be,ve=Ie}if(Me===q.length)return o($,ve),Ue&&Lr($,Me),_e;if(ve===null){for(;Me<q.length;Me++)ve=ee($,q[Me],J),ve!==null&&(U=y(ve,U,Me),ze===null?_e=ve:ze.sibling=ve,ze=ve);return Ue&&Lr($,Me),_e}for(ve=u(ve);Me<q.length;Me++)Ie=G(ve,$,Me,q[Me],J),Ie!==null&&(r&&Ie.alternate!==null&&ve.delete(Ie.key===null?Me:Ie.key),U=y(Ie,U,Me),ze===null?_e=Ie:ze.sibling=Ie,ze=Ie);return r&&ve.forEach(function(zs){return i($,zs)}),Ue&&Lr($,Me),_e}function Ee($,U,q,J){if(q==null)throw Error(s(151));for(var _e=null,ze=null,ve=U,Me=U=0,Ie=null,Be=q.next();ve!==null&&!Be.done;Me++,Be=q.next()){ve.index>Me?(Ie=ve,ve=null):Ie=ve.sibling;var zs=H($,ve,Be.value,J);if(zs===null){ve===null&&(ve=Ie);break}r&&ve&&zs.alternate===null&&i($,ve),U=y(zs,U,Me),ze===null?_e=zs:ze.sibling=zs,ze=zs,ve=Ie}if(Be.done)return o($,ve),Ue&&Lr($,Me),_e;if(ve===null){for(;!Be.done;Me++,Be=q.next())Be=ee($,Be.value,J),Be!==null&&(U=y(Be,U,Me),ze===null?_e=Be:ze.sibling=Be,ze=Be);return Ue&&Lr($,Me),_e}for(ve=u(ve);!Be.done;Me++,Be=q.next())Be=G(ve,$,Me,Be.value,J),Be!==null&&(r&&Be.alternate!==null&&ve.delete(Be.key===null?Me:Be.key),U=y(Be,U,Me),ze===null?_e=Be:ze.sibling=Be,ze=Be);return r&&ve.forEach(function(TC){return i($,TC)}),Ue&&Lr($,Me),_e}function Qe($,U,q,J){if(typeof q=="object"&&q!==null&&q.type===E&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case b:e:{for(var _e=q.key;U!==null;){if(U.key===_e){if(_e=q.type,_e===E){if(U.tag===7){o($,U.sibling),J=p(U,q.props.children),J.return=$,$=J;break e}}else if(U.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===M&&Ti(_e)===U.type){o($,U.sibling),J=p(U,q.props),Go(J,q),J.return=$,$=J;break e}o($,U);break}else i($,U);U=U.sibling}q.type===E?(J=bi(q.props.children,$.mode,J,q.key),J.return=$,$=J):(J=Cc(q.type,q.key,q.props,null,$.mode,J),Go(J,q),J.return=$,$=J)}return w($);case _:e:{for(_e=q.key;U!==null;){if(U.key===_e)if(U.tag===4&&U.stateNode.containerInfo===q.containerInfo&&U.stateNode.implementation===q.implementation){o($,U.sibling),J=p(U,q.children||[]),J.return=$,$=J;break e}else{o($,U);break}else i($,U);U=U.sibling}J=Lf(q,$.mode,J),J.return=$,$=J}return w($);case M:return q=Ti(q),Qe($,U,q,J)}if(be(q))return he($,U,q,J);if(re(q)){if(_e=re(q),typeof _e!="function")throw Error(s(150));return q=_e.call(q),Ee($,U,q,J)}if(typeof q.then=="function")return Qe($,U,Lc(q),J);if(q.$$typeof===C)return Qe($,U,Nc($,q),J);Dc($,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,U!==null&&U.tag===6?(o($,U.sibling),J=p(U,q),J.return=$,$=J):(o($,U),J=jf(q,$.mode,J),J.return=$,$=J),w($)):o($,U)}return function($,U,q,J){try{Fo=0;var _e=Qe($,U,q,J);return Ra=null,_e}catch(ve){if(ve===Ea||ve===Pc)throw ve;var ze=Tn(29,ve,null,$.mode);return ze.lanes=J,ze.return=$,ze}}}var Ri=cv(!0),uv=cv(!1),Ss=!1;function Kf(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yf(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function xs(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Ts(r,i,o){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(qe&2)!==0){var p=u.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),u.pending=i,i=Ac(r),Ky(r,null,o),i}return Rc(r,u,i,o),Ac(r)}function Ko(r,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var u=i.lanes;u&=r.pendingLanes,o|=u,i.lanes=o,cn(r,o)}}function Qf(r,i){var o=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var p=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var w={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?p=y=w:y=y.next=w,o=o.next}while(o!==null);y===null?p=y=i:y=y.next=i}else p=y=i;o={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:u.shared,callbacks:u.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=i:r.next=i,o.lastBaseUpdate=i}var Wf=!1;function Yo(){if(Wf){var r=Ta;if(r!==null)throw r}}function Qo(r,i,o,u){Wf=!1;var p=r.updateQueue;Ss=!1;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,A=p.shared.pending;if(A!==null){p.shared.pending=null;var L=A,V=L.next;L.next=null,w===null?y=V:w.next=V,w=L;var W=r.alternate;W!==null&&(W=W.updateQueue,A=W.lastBaseUpdate,A!==w&&(A===null?W.firstBaseUpdate=V:A.next=V,W.lastBaseUpdate=L))}if(y!==null){var ee=p.baseState;w=0,W=V=L=null,A=y;do{var H=A.lane&-536870913,G=H!==A.lane;if(G?(De&H)===H:(u&H)===H){H!==0&&H===xa&&(Wf=!0),W!==null&&(W=W.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var he=r,Ee=A;H=i;var Qe=o;switch(Ee.tag){case 1:if(he=Ee.payload,typeof he=="function"){ee=he.call(Qe,ee,H);break e}ee=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Ee.payload,H=typeof he=="function"?he.call(Qe,ee,H):he,H==null)break e;ee=m({},ee,H);break e;case 2:Ss=!0}}H=A.callback,H!==null&&(r.flags|=64,G&&(r.flags|=8192),G=p.callbacks,G===null?p.callbacks=[H]:G.push(H))}else G={lane:H,tag:A.tag,payload:A.payload,callback:A.callback,next:null},W===null?(V=W=G,L=ee):W=W.next=G,w|=H;if(A=A.next,A===null){if(A=p.shared.pending,A===null)break;G=A,A=G.next,G.next=null,p.lastBaseUpdate=G,p.shared.pending=null}}while(!0);W===null&&(L=ee),p.baseState=L,p.firstBaseUpdate=V,p.lastBaseUpdate=W,y===null&&(p.shared.lanes=0),O
vendor: 4,340 bytes, line 9
9s|=w,r.lanes=w,r.memoizedState=ee}}function dv(r,i){if(typeof r!="function")throw Error(s(191,r));r.call(i)}function fv(r,i){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)dv(o[r],i)}var Aa=D(null),Ic=D(0);function hv(r,i){r=Gr,Z(Ic,r),Z(Aa,i),Gr=r|i.baseLanes}function Xf(){Z(Ic,Gr),Z(Aa,Aa.current)}function Jf(){Gr=Ic.current,Q(Aa),Q(Ic)}var En=D(null),Hn=null;function Es(r){var i=r.alternate;Z(gt,gt.current&1),Z(En,r),Hn===null&&(i===null||Aa.current!==null||i.memoizedState!==null)&&(Hn=r)}function Zf(r){Z(gt,gt.current),Z(En,r),Hn===null&&(Hn=r)}function pv(r){r.tag===22?(Z(gt,gt.current),Z(En,r),Hn===null&&(Hn=r)):Rs()}function Rs(){Z(gt,gt.current),Z(En,En.current)}function Rn(r){Q(En),Hn===r&&(Hn=null),Q(gt)}var gt=D(0);function Uc(r){for(var i=r;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||ip(o)||ap(o)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Ur=0,Ne=null,Ke=null,wt=null,zc=!1,Ca=!1,Ai=!1,Bc=0,Wo=0,Oa=null,p1=0;function ct(){throw Error(s(321))}function eh(r,i){if(i===null)return!1;for(var o=0;o<i.length&&o<r.length;o++)if(!xn(r[o],i[o]))return!1;return!0}function th(r,i,o,u,p,y){return Ur=y,Ne=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,z.H=r===null||r.memoizedState===null?Xv:gh,Ai=!1,y=o(u,p),Ai=!1,Ca&&(y=gv(i,o,u,p)),mv(r),y}function mv(r){z.H=Zo;var i=Ke!==null&&Ke.next!==null;if(Ur=0,wt=Ke=Ne=null,zc=!1,Wo=0,Oa=null,i)throw Error(s(300));r===null||_t||(r=r.dependencies,r!==null&&kc(r)&&(_t=!0))}function gv(r,i,o,u){Ne=r;var p=0;do{if(Ca&&(Oa=null),Wo=0,Ca=!1,25<=p)throw Error(s(301));if(p+=1,wt=Ke=null,r.updateQueue!=null){var y=r.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}z.H=Jv,y=i(o,u)}while(Ca);return y}function m1(){var r=z.H,i=r.useState()[0];return i=typeof i.then=="function"?Xo(i):i,r=r.useState()[0],(Ke!==null?Ke.memoizedState:null)!==r&&(Ne.flags|=1024),i}function nh(){var r=Bc!==0;return Bc=0,r}function rh(r,i,o){i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~o}function sh(r){if(zc){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}zc=!1}Ur=0,wt=Ke=Ne=null,Ca=!1,Wo=Bc=0,Oa=null}function sn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?Ne.memoizedState=wt=r:wt=wt.next=r,wt}function yt(){if(Ke===null){var r=Ne.alternate;r=r!==null?r.memoizedState:null}else r=Ke.next;var i=wt===null?Ne.memoizedState:wt.next;if(i!==null)wt=i,Ke=r;else{if(r===null)throw Ne.alternate===null?Error(s(467)):Error(s(310));Ke=r,r={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},wt===null?Ne.memoizedState=wt=r:wt=wt.next=r}return wt}function $c(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xo(r){var i=Wo;return Wo+=1,Oa===null&&(Oa=[]),r=av(Oa,r,i),i=Ne,(wt===null?i.memoizedState:wt.next)===null&&(i=i.alternate,z.H=i===null||i.memoizedState===null?Xv:gh),r}function qc(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Xo(r);if(r.$$typeof===C)return Ht(r)}throw Error(s(438,String(r)))}function ih(r){var i=null,o=Ne.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var u=Ne.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(p){return p.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=$c(),Ne.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(r),u=0;u<r;u++)o[u]=K;return i.index++,o}function zr(r,i){return typeof i=="function"?i(r):i}function Vc(r){var i=yt();return ah(i,Ke,r)}function ah(r,i,o){var u=r.queue;if(u===null)throw Error(s(311));u.lastRenderedReducer=o;var p=r.baseQueue,y=u.pending;if(y!==null){if(p!==null){var w=p.next;p.next=y.next,y.next=w}i.baseQueue=p=y,u.pending=null}if(y=r.baseState,p===null)r.memoizedState=y;else{i=p.next;
vendor: 7,762 bytes, line 9
9var A=w=null,L=null,V=i,W=!1;do{var ee=V.lane&-536870913;if(ee!==V.lane?(De&ee)===ee:(Ur&ee)===ee){var H=V.revertLane;if(H===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),ee===xa&&(W=!0);else if((Ur&H)===H){V=V.next,H===xa&&(W=!0);continue}else ee={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},L===null?(A=L=ee,w=y):L=L.next=ee,Ne.lanes|=H,Os|=H;ee=V.action,Ai&&o(y,ee),y=V.hasEagerState?V.eagerState:o(y,ee)}else H={lane:ee,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},L===null?(A=L=H,w=y):L=L.next=H,Ne.lanes|=ee,Os|=ee;V=V.next}while(V!==null&&V!==i);if(L===null?w=y:L.next=A,!xn(y,r.memoizedState)&&(_t=!0,W&&(o=Ta,o!==null)))throw o;r.memoizedState=y,r.baseState=w,r.baseQueue=L,u.lastRenderedState=y}return p===null&&(u.lanes=0),[r.memoizedState,u.dispatch]}function oh(r){var i=yt(),o=i.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=r;var u=o.dispatch,p=o.pending,y=i.memoizedState;if(p!==null){o.pending=null;var w=p=p.next;do y=r(y,w.action),w=w.next;while(w!==p);xn(y,i.memoizedState)||(_t=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),o.lastRenderedState=y}return[y,u]}function yv(r,i,o){var u=Ne,p=yt(),y=Ue;if(y){if(o===void 0)throw Error(s(407));o=o()}else o=i();var w=!xn((Ke||p).memoizedState,o);if(w&&(p.memoizedState=o,_t=!0),p=p.queue,uh(wv.bind(null,u,p,r),[r]),p.getSnapshot!==i||w||wt!==null&&wt.memoizedState.tag&1){if(u.flags|=2048,ka(9,{destroy:void 0},bv.bind(null,u,p,o,i),null),We===null)throw Error(s(349));y||(Ur&127)!==0||vv(u,i,o)}return o}function vv(r,i,o){r.flags|=16384,r={getSnapshot:i,value:o},i=Ne.updateQueue,i===null?(i=$c(),Ne.updateQueue=i,i.stores=[r]):(o=i.stores,o===null?i.stores=[r]:o.push(r))}function bv(r,i,o,u){i.value=o,i.getSnapshot=u,_v(i)&&Sv(r)}function wv(r,i,o){return o(function(){_v(i)&&Sv(r)})}function _v(r){var i=r.getSnapshot;r=r.value;try{var o=i();return!xn(r,o)}catch{return!0}}function Sv(r){var i=vi(r,2);i!==null&&yn(i,r,2)}function lh(r){var i=sn();if(typeof r=="function"){var o=r;if(r=o(),Ai){Wn(!0);try{o()}finally{Wn(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:r},i}function xv(r,i,o,u){return r.baseState=o,ah(r,Ke,typeof u=="function"?u:zr)}function g1(r,i,o,u,p){if(Gc(r))throw Error(s(485));if(r=i.action,r!==null){var y={payload:p,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){y.listeners.push(w)}};z.T!==null?o(!0):y.isTransition=!1,u(y),o=i.pending,o===null?(y.next=i.pending=y,Tv(i,y)):(y.next=o.next,i.pending=o.next=y)}}function Tv(r,i){var o=i.action,u=i.payload,p=r.state;if(i.isTransition){var y=z.T,w={};z.T=w;try{var A=o(p,u),L=z.S;L!==null&&L(w,A),Ev(r,i,A)}catch(V){ch(r,i,V)}finally{y!==null&&w.types!==null&&(y.types=w.types),z.T=y}}else try{y=o(p,u),Ev(r,i,y)}catch(V){ch(r,i,V)}}function Ev(r,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){Rv(r,i,u)},function(u){return ch(r,i,u)}):Rv(r,i,o)}function Rv(r,i,o){i.status="fulfilled",i.value=o,Av(i),r.state=o,i=r.pending,i!==null&&(o=i.next,o===i?r.pending=null:(o=o.next,i.next=o,Tv(r,o)))}function ch(r,i,o){var u=r.pending;if(r.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=o,Av(i),i=i.next;while(i!==u)}r.action=null}function Av(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function Cv(r,i){return i}function Ov(r,i){if(Ue){var o=We.formState;if(o!==null){e:{var u=Ne;if(Ue){if(Ze){t:{for(var p=Ze,y=Vn;p.nodeType!==8;){if(!y){p=null;break t}if(p=Fn(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){Ze=Fn(p.nextSibling),u=p.data==="F!";break e}}ws(u)}u=!1}u&&(i=o[0])}}return o=sn(),o.memoizedState=o.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cv,lastRenderedState:i},o.queue=u,o=Yv.bind(null,Ne,u),u.dispatch=o,u=lh(!1),y=mh.bind(null,Ne,!1,u.queue),u=sn(),p={state:i,dispatch:null,action:r,pending:null},u.queue=p,o=g1.bind(null,Ne,p,y,o),p.dispatch=o,u.memoizedState=r,[i,o,!1]}function kv(r){var i=yt();return Nv(i,Ke,r)}function Nv(r,i,o){if(i=ah(r,i,Cv)[0],r=Vc(zr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=Xo(i)}catch(w){throw w===Ea?Pc:w}else u=i;i=yt();var p=i.queue,y=p.dispatch;return o!==i.memoizedState&&(Ne.flags|=2048,ka(9,{destroy:void 0},y1.bind(null,p,o),null)),[u,y,r]}function y1(r,i){r.action=i}function Mv(r){var i=yt(),o=Ke;if(o!==null)return Nv(i,o,r);yt(),i=i.memoizedState,o=yt();var u=o.queue.dispatch;return o.memoizedState=r,[i,u,!1]}function ka(r,i,o,u){return r={tag:r,create:o,deps:u,inst:i,next:null},i=Ne.updateQueue,i===null&&(i=$c(),Ne.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=r.next=r:(u=o.next,o.next=r,r.next=u,i.lastEffect=r),r}function Pv(){return yt().memoizedState}function Hc(r,i,o,u){var p=sn();Ne.flags|=r,p.memoizedState=ka(1|i,{destroy:void 0},o,u===void 0?null:u)}function Fc(r,i,o,u){var p=yt();u=u===void 0?null:u;var y=p.memoizedState.inst;Ke!==null&&u!==null&&eh(u,Ke.memoizedState.deps)?p.memoizedState=ka(i,y,o,u):(Ne.flags|=r,p.memoizedState=ka(1|i,y,o,u))}function jv(r,i){Hc(8390656,8,r,i)}function uh(r,i){Fc(2048,8,r,i)}function v1(r){Ne.flags|=4;var i=Ne.updateQueue;if(i===null)i=$c(),Ne.updateQueue=i,i.events=[r];else{var o=i.events;o===null?i.events=[r]:o.push(r)}}function Lv(r){var i=yt().memoizedState;return v1({ref:i,nextImpl:r}),function(){if((qe&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}function Dv(r,i){return Fc(4,2,r,i)}function Iv(r,i){return Fc(4,4,r,i)}function Uv(r,i){if(typeof i=="function"){r=r();var o=i(r);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function zv(r,i,o){o=o!=null?o.concat([r]):null,Fc(4,4,Uv.bind(null,i,r),o)}function dh(){}function Bv(r,i){var o=yt();i=i===void 0?null:i;var u=o.memoizedState;return i!==null&&eh(i,u[1])?u[0]:(o.memoizedState=[r,i],r)}function $v(r,i){var o=yt();i=i===void 0?null:i;var u=o.memoizedState;if(i!==null&&eh(i,u[1]))return u[0];if(u=r(),Ai){Wn(!0);try{r()}finally{Wn(!1)}}return o.memoizedState=[u,i],u}function fh(r,i,o){return o===void 0||(Ur&1073741824)!==0&&(De&261930)===0?r.memoizedState=i:(r.memoizedState=o,r=qb(),Ne.lanes|=r,Os|=r,o)}function qv(r,i,o,u){return xn(o,i)?o:Aa.current!==null?(r=fh(r,o,u),xn(r,i)||(_t=!0),r):(Ur&42)===0||(Ur&1073741824)!==0&&(De&261930)===0?(_t=!0,r.memoizedState=o):(r=qb(),Ne.lanes|=r,Os|=r,i)}function Vv(r,i,o,u,p){var y=Y.p;Y.p=y!==0&&8>y?y:8;var w=z.T,A={};z.T=A,mh(r,!1,i,o);try{var L=p(),V=z.S;if(V!==null&&V(A,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var W=h1(L,u);Jo(r,i,W,On(r))}else Jo(r,i,u,On(r))}catch(ee){Jo(r,i,{then:function(){},status:"rejected",reason:ee},On())}finally{Y.p=y,w!==null&&A.types!==null&&(w.types=A.types),z.T=w}}function b1(){}function hh(r,i,o,u){if(r.tag!==5)throw Error(s(476));var p=Hv(r).queue;Vv(r,p,i,X,o===null?b1:function(){return Fv(r),o(u)})}function Hv(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:X},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:o},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function Fv(r){var i=Hv(r);i.next===null&&(i=r.alternate.memoizedState),Jo(r,i.next.queue,{},On())}function ph(){return Ht(ml)}
vendor: 4,752 bytes, line 9
9function Gv(){return yt().memoizedState}function Kv(){return yt().memoizedState}function w1(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var o=On();r=xs(o);var u=Ts(i,r,o);u!==null&&(yn(u,i,o),Ko(u,i,o)),i={cache:Vf()},r.payload=i;return}i=i.return}}function _1(r,i,o){var u=On();o={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Gc(r)?Qv(i,o):(o=Mf(r,i,o,u),o!==null&&(yn(o,r,u),Wv(o,i,u)))}function Yv(r,i,o){var u=On();Jo(r,i,o,u)}function Jo(r,i,o,u){var p={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Gc(r))Qv(i,p);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var w=i.lastRenderedState,A=y(w,o);if(p.hasEagerState=!0,p.eagerState=A,xn(A,w))return Rc(r,i,p,0),We===null&&Ec(),!1}catch{}if(o=Mf(r,i,p,u),o!==null)return yn(o,r,u),Wv(o,i,u),!0}return!1}function mh(r,i,o,u){if(u={lane:2,revertLane:Kh(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Gc(r)){if(i)throw Error(s(479))}else i=Mf(r,o,u,2),i!==null&&yn(i,r,2)}function Gc(r){var i=r.alternate;return r===Ne||i!==null&&i===Ne}function Qv(r,i){Ca=zc=!0;var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}function Wv(r,i,o){if((o&4194048)!==0){var u=i.lanes;u&=r.pendingLanes,o|=u,i.lanes=o,cn(r,o)}}var Zo={readContext:Ht,use:qc,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useLayoutEffect:ct,useInsertionEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useSyncExternalStore:ct,useId:ct,useHostTransitionStatus:ct,useFormState:ct,useActionState:ct,useOptimistic:ct,useMemoCache:ct,useCacheRefresh:ct};Zo.useEffectEvent=ct;var Xv={readContext:Ht,use:qc,useCallback:function(r,i){return sn().memoizedState=[r,i===void 0?null:i],r},useContext:Ht,useEffect:jv,useImperativeHandle:function(r,i,o){o=o!=null?o.concat([r]):null,Hc(4194308,4,Uv.bind(null,i,r),o)},useLayoutEffect:function(r,i){return Hc(4194308,4,r,i)},useInsertionEffect:function(r,i){Hc(4,2,r,i)},useMemo:function(r,i){var o=sn();i=i===void 0?null:i;var u=r();if(Ai){Wn(!0);try{r()}finally{Wn(!1)}}return o.memoizedState=[u,i],u},useReducer:function(r,i,o){var u=sn();if(o!==void 0){var p=o(i);if(Ai){Wn(!0);try{o(i)}finally{Wn(!1)}}}else p=i;return u.memoizedState=u.baseState=p,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:p},u.queue=r,r=r.dispatch=_1.bind(null,Ne,r),[u.memoizedState,r]},useRef:function(r){var i=sn();return r={current:r},i.memoizedState=r},useState:function(r){r=lh(r);var i=r.queue,o=Yv.bind(null,Ne,i);return i.dispatch=o,[r.memoizedState,o]},useDebugValue:dh,useDeferredValue:function(r,i){var o=sn();return fh(o,r,i)},useTransition:function(){var r=lh(!1);return r=Vv.bind(null,Ne,r.queue,!0,!1),sn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,o){var u=Ne,p=sn();if(Ue){if(o===void 0)throw Error(s(407));o=o()}else{if(o=i(),We===null)throw Error(s(349));(De&127)!==0||vv(u,i,o)}p.memoizedState=o;var y={value:o,getSnapshot:i};return p.queue=y,jv(wv.bind(null,u,y,r),[r]),u.flags|=2048,ka(9,{destroy:void 0},bv.bind(null,u,y,o,i),null),o},useId:function(){var r=sn(),i=We.identifierPrefix;if(Ue){var o=mr,u=pr;o=(u&~(1<<32-Zt(u)-1)).toString(32)+o,i="_"+i+"R_"+o,o=Bc++,0<o&&(i+="H"+o.toString(32)),i+="_"}else o=p1++,i="_"+i+"r_"+o.toString(32)+"_";return r.memoizedState=i},useHostTransitionStatus:ph,useFormState:Ov,useActionState:Ov,useOptimistic:function(r){var i=sn();i.memoizedState=i.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=mh.bind(null,Ne,!0,o),o.dispatch=i,[r,i]},useMemoCache:ih,useCacheRefresh:function(){return sn().memoizedState=w1.bind(null,Ne)},useEffectEvent:function(r){var i=sn(),o={impl:r};return i.memoizedState=o,function(){if((qe&2)!==0)throw Error(s(440));return o.impl.apply(void 0,arguments)}}},gh={readContext:Ht,use:qc,useCallback:Bv,useContext:Ht,useEffect:uh,useImperativeHandle:zv,useInsertionEffect:Dv,useLayoutEffect:Iv,useMemo:$v,useReducer:Vc,useRef:Pv,useState:function(){return Vc(zr)},useDebugValue:dh,useDeferredValue:function(r,i){var o=yt();return qv(o,Ke.memoizedState,r,i)},useTransition:function(){var r=Vc(zr)[0],i=yt().memoizedState;return[typeof r=="boolean"?r:Xo(r),i]},useSyncExternalStore:yv,useId:Gv,useHostTransitionStatus:ph,useFormState:kv,useActionState:kv,useOptimistic:function(r,i){var o=yt();return xv(o,Ke,r,i)},useMemoCache:ih,useCacheRefresh:Kv};gh.useEffectEvent=Lv;var Jv={readContext:Ht,use:qc,useCallback:Bv,useContext:Ht,useEffect:uh,useImperativeHandle:zv,useInsertionEffect:Dv,useLayoutEffect:Iv,useMemo:$v,useReducer:oh,useRef
vendor: 4,733 bytes, line 9
9:Pv,useState:function(){return oh(zr)},useDebugValue:dh,useDeferredValue:function(r,i){var o=yt();return Ke===null?fh(o,r,i):qv(o,Ke.memoizedState,r,i)},useTransition:function(){var r=oh(zr)[0],i=yt().memoizedState;return[typeof r=="boolean"?r:Xo(r),i]},useSyncExternalStore:yv,useId:Gv,useHostTransitionStatus:ph,useFormState:Mv,useActionState:Mv,useOptimistic:function(r,i){var o=yt();return Ke!==null?xv(o,Ke,r,i):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:ih,useCacheRefresh:Kv};Jv.useEffectEvent=Lv;function yh(r,i,o,u){i=r.memoizedState,o=o(u,i),o=o==null?i:m({},i,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var vh={enqueueSetState:function(r,i,o){r=r._reactInternals;var u=On(),p=xs(u);p.payload=i,o!=null&&(p.callback=o),i=Ts(r,p,u),i!==null&&(yn(i,r,u),Ko(i,r,u))},enqueueReplaceState:function(r,i,o){r=r._reactInternals;var u=On(),p=xs(u);p.tag=1,p.payload=i,o!=null&&(p.callback=o),i=Ts(r,p,u),i!==null&&(yn(i,r,u),Ko(i,r,u))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var o=On(),u=xs(o);u.tag=2,i!=null&&(u.callback=i),i=Ts(r,u,o),i!==null&&(yn(i,r,o),Ko(i,r,o))}};function Zv(r,i,o,u,p,y,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,y,w):i.prototype&&i.prototype.isPureReactComponent?!zo(o,u)||!zo(p,y):!0}function eb(r,i,o,u){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,u),i.state!==r&&vh.enqueueReplaceState(i,i.state,null)}function Ci(r,i){var o=i;if("ref"in i){o={};for(var u in i)u!=="ref"&&(o[u]=i[u])}if(r=r.defaultProps){o===i&&(o=m({},o));for(var p in r)o[p]===void 0&&(o[p]=r[p])}return o}function tb(r){Tc(r)}function nb(r){console.error(r)}function rb(r){Tc(r)}function Kc(r,i){try{var o=r.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function sb(r,i,o){try{var u=r.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function bh(r,i,o){return o=xs(o),o.tag=3,o.payload={element:null},o.callback=function(){Kc(r,i)},o}function ib(r){return r=xs(r),r.tag=3,r}function ab(r,i,o,u){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var y=u.value;r.payload=function(){return p(y)},r.callback=function(){sb(i,o,u)}}var w=o.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(r.callback=function(){sb(i,o,u),typeof p!="function"&&(ks===null?ks=new Set([this]):ks.add(this));var A=u.stack;this.componentDidCatch(u.value,{componentStack:A!==null?A:""})})}function S1(r,i,o,u,p){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=o.alternate,i!==null&&Sa(i,o,p,!0),o=En.current,o!==null){switch(o.tag){case 31:case 13:return Hn===null?iu():o.alternate===null&&ut===0&&(ut=3),o.flags&=-257,o.flags|=65536,o.lanes=p,u===jc?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([u]):i.add(u),Hh(r,u,p)),!1;case 22:return o.flags|=65536,u===jc?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([u]):o.add(u)),Hh(r,u,p)),!1}throw Error(s(435,o.tag))}return Hh(r,u,p),iu(),!1}if(Ue)return i=En.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=p,u!==Uf&&(r=Error(s(422),{cause:u}),qo(Bn(r,o)))):(u!==Uf&&(i=Error(s(423),{cause:u}),qo(Bn(i,o))),r=r.current.alternate,r.flags|=65536,p&=-p,r.lanes|=p,u=Bn(u,o),p=bh(r.stateNode,u,p),Qf(r,p),ut!==4&&(ut=2)),!1;var y=Error(s(520),{cause:u});if(y=Bn(y,o),ol===null?ol=[y]:ol.push(y),ut!==4&&(ut=2),i===null)return!0;u=Bn(u,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,r=p&-p,o.lanes|=r,r=bh(o.stateNode,u,r),Qf(o,r),!1;case 1:if(i=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(ks===null||!ks.has(y))))return o.flags|=65536,p&=-p,o.lanes|=p,p=ib(p),ab(p,r,o,u),Qf(o,p),!1}o=o.return}while(o!==null);return!1}var wh=Error(s(461)),_t=!1;function Ft(r,i,o,u){i.child=r===null?uv(i,null,o,u):Ri(i,r.child,o,u)}function ob(r,i,o,u,p){o=o.render;var y=i.ref;if("ref"in u){var w={};for(var A in u)A!=="ref"&&(w[A]=u[A])}else w=u;return Si(i),u=th(r,i,o,w,y,p),A=nh(),r!==null&&!_t?(rh(r,i,p),Br(r,i,p)):(Ue&&A&&Df(i),i.flags|=1,Ft(r,i,u,p),i.child)}function lb(r,i,o,u,p){if(r===null){var y=o.type;return typeof y=="function"&&!Pf(y)&&y.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=y,cb(r,i,y,u,p)):(r=Cc(o.type,null,u,i,i.mode,p),r.ref=i.ref,r.return=i,i.child=r)}if(y=r.child,!Ch(r,p)){var w=y.memoizedProps;
vendor: 12,420 bytes, line 9
9if(o=o.compare,o=o!==null?o:zo,o(w,u)&&r.ref===i.ref)return Br(r,i,p)}return i.flags|=1,r=jr(y,u),r.ref=i.ref,r.return=i,i.child=r}function cb(r,i,o,u,p){if(r!==null){var y=r.memoizedProps;if(zo(y,u)&&r.ref===i.ref)if(_t=!1,i.pendingProps=u=y,Ch(r,p))(r.flags&131072)!==0&&(_t=!0);else return i.lanes=r.lanes,Br(r,i,p)}return _h(r,i,o,u,p)}function ub(r,i,o,u){var p=u.children,y=r!==null?r.memoizedState:null;if(r===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((i.flags&128)!==0){if(y=y!==null?y.baseLanes|o:o,r!==null){for(u=i.child=r.child,p=0;u!==null;)p=p|u.lanes|u.childLanes,u=u.sibling;u=p&~y}else u=0,i.child=null;return db(r,i,y,o,u)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},r!==null&&Mc(i,y!==null?y.cachePool:null),y!==null?hv(i,y):Xf(),pv(i);else return u=i.lanes=536870912,db(r,i,y!==null?y.baseLanes|o:o,o,u)}else y!==null?(Mc(i,y.cachePool),hv(i,y),Rs(),i.memoizedState=null):(r!==null&&Mc(i,null),Xf(),Rs());return Ft(r,i,p,o),i.child}function el(r,i){return r!==null&&r.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function db(r,i,o,u,p){var y=Ff();return y=y===null?null:{parent:bt._currentValue,pool:y},i.memoizedState={baseLanes:o,cachePool:y},r!==null&&Mc(i,null),Xf(),pv(i),r!==null&&Sa(r,i,u,!0),i.childLanes=p,null}function Yc(r,i){return i=Wc({mode:i.mode,children:i.children},r.mode),i.ref=r.ref,r.child=i,i.return=r,i}function fb(r,i,o){return Ri(i,r.child,null,o),r=Yc(i,i.pendingProps),r.flags|=2,Rn(i),i.memoizedState=null,r}function x1(r,i,o){var u=i.pendingProps,p=(i.flags&128)!==0;if(i.flags&=-129,r===null){if(Ue){if(u.mode==="hidden")return r=Yc(i,u),i.lanes=536870912,el(null,r);if(Zf(i),(r=Ze)?(r=T0(r,Vn),r=r!==null&&r.data==="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:vs!==null?{id:pr,overflow:mr}:null,retryLane:536870912,hydrationErrors:null},o=Qy(r),o.return=i,i.child=o,Vt=i,Ze=null)):r=null,r===null)throw ws(i);return i.lanes=536870912,null}return Yc(i,u)}var y=r.memoizedState;if(y!==null){var w=y.dehydrated;if(Zf(i),p)if(i.flags&256)i.flags&=-257,i=fb(r,i,o);else if(i.memoizedState!==null)i.child=r.child,i.flags|=128,i=null;else throw Error(s(558));else if(_t||Sa(r,i,o,!1),p=(o&r.childLanes)!==0,_t||p){if(u=We,u!==null&&(w=un(u,o),w!==0&&w!==y.retryLane))throw y.retryLane=w,vi(r,w),yn(u,r,w),wh;iu(),i=fb(r,i,o)}else r=y.treeContext,Ze=Fn(w.nextSibling),Vt=i,Ue=!0,bs=null,Vn=!1,r!==null&&Jy(i,r),i=Yc(i,u),i.flags|=4096;return i}return r=jr(r.child,{mode:u.mode,children:u.children}),r.ref=i.ref,i.child=r,r.return=i,r}function Qc(r,i){var o=i.ref;if(o===null)r!==null&&r.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(s(284));(r===null||r.ref!==o)&&(i.flags|=4194816)}}function _h(r,i,o,u,p){return Si(i),o=th(r,i,o,u,void 0,p),u=nh(),r!==null&&!_t?(rh(r,i,p),Br(r,i,p)):(Ue&&u&&Df(i),i.flags|=1,Ft(r,i,o,p),i.child)}function hb(r,i,o,u,p,y){return Si(i),i.updateQueue=null,o=gv(i,u,o,p),mv(r),u=nh(),r!==null&&!_t?(rh(r,i,y),Br(r,i,y)):(Ue&&u&&Df(i),i.flags|=1,Ft(r,i,o,y),i.child)}function pb(r,i,o,u,p){if(Si(i),i.stateNode===null){var y=va,w=o.contextType;typeof w=="object"&&w!==null&&(y=Ht(w)),y=new o(u,y),i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=vh,i.stateNode=y,y._reactInternals=i,y=i.stateNode,y.props=u,y.state=i.memoizedState,y.refs={},Kf(i),w=o.contextType,y.context=typeof w=="object"&&w!==null?Ht(w):va,y.state=i.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(yh(i,o,w,u),y.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(w=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),w!==y.state&&vh.enqueueReplaceState(y,y.state,null),Qo(i,u,y,p),Yo(),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(r===null){y=i.stateNode;var A=i.memoizedProps,L=Ci(o,A);y.props=L;var V=y.context,W=o.contextType;w=va,typeof W=="object"&&W!==null&&(w=Ht(W));var ee=o.getDerivedStateFromProps;W=typeof ee=="function"||typeof y.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,W||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(A||V!==w)&&eb(i,y,u,w),Ss=!1;var H=i.memoizedState;y.state=H,Qo(i,u,y,p),Yo(),V=i.memoizedState,A||H!==V||Ss?(typeof ee=="function"&&(yh(i,o,ee,u),V=i.memoizedState),(L=Ss||Zv(i,o,L,u,H,V,w))?(W||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=V),y.props=u,y.state=V,y.context=w,u=L):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{y=i.stateNode,Yf(r,i),w=i.memoizedProps,W=Ci(o,w),y.props=W,ee=i.pendingProps,H=y.context,V=o.contextType,L=va,typeof V=="object"&&V!==null&&(L=Ht(V)),A=o.getDerivedStateFromProps,(V=typeof A=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==ee||H!==L)&&eb(i,y,u,L),Ss=!1,H=i.memoizedState,y.state=H,Qo(i,u,y,p),Yo();var G=i.memoizedState;w!==ee||H!==G||Ss||r!==null&&r.dependencies!==null&&kc(r.dependencies)?(typeof A=="function"&&(yh(i,o,A,u),G=i.memoizedState),(W=Ss||Zv(i,o,W,u,H,G,L)||r!==null&&r.dependencies!==null&&kc(r.dependencies))?(V||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(u,G,L),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(u,G,L)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||w===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=G),y.props=u,y.state=G,y.context=L,u=W):(typeof y.componentDidUpdate!="function"||w===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),u=!1)}return y=u,Qc(r,i),u=(i.flags&128)!==0,y||u?(y=i.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:y.render(),i.flags|=1,r!==null&&u?(i.child=Ri(i,r.child,null,p),i.child=Ri(i,null,o,p)):Ft(r,i,o,p),i.memoizedState=y.state,r=i.child):r=Br(r,i,p),r}function mb(r,i,o,u){return wi(),i.flags|=256,Ft(r,i,o,u),i.child}var Sh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xh(r){return{baseLanes:r,cachePool:sv()}}function Th(r,i,o){return r=r!==null?r.childLanes&~o:0,i&&(r|=Cn),r}function gb(r,i,o){var u=i.pendingProps,p=!1,y=(i.flags&128)!==0,w;if((w=y)||(w=r!==null&&r.memoizedState===null?!1:(gt.current&2)!==0),w&&(p=!0,i.flags&=-129),w=(i.flags&32)!==0,i.flags&=-33,r===null){if(Ue){if(p?Es(i):Rs(),(r=Ze)?(r=T0(r,Vn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:vs!==null?{id:pr,overflow:mr}:null,retryLane:536870912,hydrationErrors:null},o=Qy(r),o.return=i,i.child=o,Vt=i,Ze=null)):r=null,r===null)throw ws(i);return ap(r)?i.lanes=32:i.lanes=536870912,null}var A=u.children;return u=u.fallback,p?(Rs(),p=i.mode,A=Wc({mode:"hidden",children:A},p),u=bi(u,p,o,null),A.return=i,u.return=i,A.sibling=u,i.child=A,u=i.child,u.memoizedState=xh(o),u.childLanes=Th(r,w,o),i.memoizedState=Sh,el(null,u)):(Es(i),Eh(i,A))}var L=r.memoizedState;if(L!==null&&(A=L.dehydrated,A!==null)){if(y)i.flags&256?(Es(i),i.flags&=-257,i=Rh(r,i,o)):i.memoizedState!==null?(Rs(),i.child=r.child,i.flags|=128,i=null):(Rs(),A=u.fallback,p=i.mode,u=Wc({mode:"visible",children:u.children},p),A=bi(A,p,o,null),A.flags|=2,u.return=i,A.return=i,u.sibling=A,i.child=u,Ri(i,r.child,null,o),u=i.child,u.memoizedState=xh(o),u.childLanes=Th(r,w,o),i.memoizedState=Sh,i=el(null,u));else if(Es(i),ap(A)){if(w=A.nextSibling&&A.nextSibling.dataset,w)var V=w.dgst;w=V,u=Error(s(419)),u.stack="",u.digest=w,qo({value:u,source:null,stack:null}),i=Rh(r,i,o)}else if(_t||Sa(r,i,o,!1),w=(o&r.childLanes)!==0,_t||w){if(w=We,w!==null&&(u=un(w,o),u!==0&&u!==L.retryLane))throw L.retryLane=u,vi(r,u),yn(w,r,u),wh;ip(A)||iu(),i=Rh(r,i,o)}else ip(A)?(i.flags|=192,i.child=r.child,i=null):(r=L.treeContext,Ze=Fn(A.nextSibling),Vt=i,Ue=!0,bs=null,Vn=!1,r!==null&&Jy(i,r),i=Eh(i,u.children),i.flags|=4096);return i}return p?(Rs(),A=u.fallback,p=i.mode,L=r.child,V=L.sibling,u=jr(L,{mode:"hidden",children:u.children}),u.subtreeFlags=L.subtreeFlags&65011712,V!==null?A=jr(V,A):(A=bi(A,p,o,null),A.flags|=2),A.return=i,u.return=i,u.sibling=A,i.child=u,el(null,u),u=i.child,A=r.child.memoizedState,A===null?A=xh(o):(p=A.cachePool,p!==null?(L=bt._currentValue,p=p.parent!==L?{parent:L,pool:L}:p):p=sv(),A={baseLanes:A.baseLanes|o,cachePool:p}),u.memoizedState=A,u.childLanes=Th(r,w,o),i.memoizedState=Sh,el(r.child,u)):(Es(i),o=r.child,r=o.sibling,o=jr(o,{mode:"visible",children:u.children}),o.return=i,o.sibling=null,r!==null&&(w=i.deletions,w===null?(i.deletions=[r],i.flags|=16):w.push(r)),i.child=o,i.memoizedState=null,o)}function Eh(r,i){return i=Wc({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function Wc(r,i){return r=Tn(22,r,null,i),r.lanes=0,r}function Rh(r,i,o){return Ri(i,r.child,null,o),r=Eh(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function yb(r,i,o){r.lanes|=i;var u=r.alternate;u!==null&&(u.lanes|=i),$f(r.return,i,o)}function Ah(r,i,o,u,p,y){var w=r.memoizedState;w===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:p,treeForkCount:y}:(w.isBackwards=i,w.rendering=null,w.renderingStartTime=0,w.last=u,w.tail=o,w.tailMode=p,w.treeForkCount=y)}function vb(r,i,o){var u=i.pendingProps,p=u.revealOrder,y=u.tail;u=u.children;var w=gt.current,A=(w&2)!==0;if(A?(w=w&1|2,i.flags|=128):w&=1,Z(gt,w),Ft(r,i,u,o),u=Ue?$o:0,!A&&r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&yb(r,o,i);else if(r.tag===19)yb(r,o,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(p){case"forwards":for(o=i.child,p=null;o!==null;)r=o.alternate,r!==null&&Uc(r)===null&&(p=o),o=o.sibling;o=p,o===null?(p=i.child,i.child=null):(p=o.sibling,o.sibling=null),Ah(i,!1,p,o,y,u);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=i.child,i.child=null;p!==null;){if(r=p.alternate,r!==null&&Uc(r)===null){i.child=p;break}r=p.sibling,p.sibling=o,o=p,p=r}Ah(i,!0,o,null,y,u);break;case"together":Ah(i,!1,null,null,void 0,u);break;default:i.memoizedState=null}return i.child}function Br(r,i,o){if(r!==null&&(i.dependencies=r.dependencies),Os|=i.lanes,(o&i.childLanes)===0)if(r!==null){if(Sa(r,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error(s(153));if(i.child!==null){for(r=i.child,o=jr(r,r.pendingProps),i.child=o,o.return=i;r.sibling!==null;)r=r.sibling,o=o.sibling=jr(r,r.pendingProps),o.return=i;o.sibling=null}return i.child}function Ch(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&kc(r)))}function T1(r,i,o){switch(i.tag){case 3:xe(i,i.stateNode.containerInfo),_s(i,bt,r.memoizedState.cache),wi();break;case 27:case 5:Et(i);break;case 4:xe(i,i.stateNode.containerInfo);break;case 10:_s(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Zf(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(Es(i),i.flags|=128,null):(o&i.child.childLanes)!==0?gb(r,i,o):(Es(i),r=Br(r,i,o),r!==null?r.sibling:null);Es(i);break;case 19:var p=(r.flags&128)!==0;if(u=(o&i.childLanes)!==0,u||(Sa(r,i,o,!1),u=(o&i.childLanes)!==0),p){
vendor: 4,705 bytes, line 9
9if(u)return vb(r,i,o);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Z(gt,gt.current),u)break;return null;case 22:return i.lanes=0,ub(r,i,o,i.pendingProps);case 24:_s(i,bt,r.memoizedState.cache)}return Br(r,i,o)}function bb(r,i,o){if(r!==null)if(r.memoizedProps!==i.pendingProps)_t=!0;else{if(!Ch(r,o)&&(i.flags&128)===0)return _t=!1,T1(r,i,o);_t=(r.flags&131072)!==0}else _t=!1,Ue&&(i.flags&1048576)!==0&&Xy(i,$o,i.index);switch(i.lanes=0,i.tag){case 16:e:{var u=i.pendingProps;if(r=Ti(i.elementType),i.type=r,typeof r=="function")Pf(r)?(u=Ci(r,u),i.tag=1,i=pb(null,i,r,u,o)):(i.tag=0,i=_h(null,i,r,u,o));else{if(r!=null){var p=r.$$typeof;if(p===O){i.tag=11,i=ob(null,i,r,u,o);break e}else if(p===P){i.tag=14,i=lb(null,i,r,u,o);break e}}throw i=de(r)||r,Error(s(306,i,""))}}return i;case 0:return _h(r,i,i.type,i.pendingProps,o);case 1:return u=i.type,p=Ci(u,i.pendingProps),pb(r,i,u,p,o);case 3:e:{if(xe(i,i.stateNode.containerInfo),r===null)throw Error(s(387));u=i.pendingProps;var y=i.memoizedState;p=y.element,Yf(r,i),Qo(i,u,null,o);var w=i.memoizedState;if(u=w.cache,_s(i,bt,u),u!==y.cache&&qf(i,[bt],o,!0),Yo(),u=w.element,y.isDehydrated)if(y={element:u,isDehydrated:!1,cache:w.cache},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){i=mb(r,i,u,o);break e}else if(u!==p){p=Bn(Error(s(424)),i),qo(p),i=mb(r,i,u,o);break e}else for(r=i.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,Ze=Fn(r.firstChild),Vt=i,Ue=!0,bs=null,Vn=!0,o=uv(i,null,u,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(wi(),u===p){i=Br(r,i,o);break e}Ft(r,i,u,o)}i=i.child}return i;case 26:return Qc(r,i),r===null?(o=k0(i.type,null,i.pendingProps,null))?i.memoizedState=o:Ue||(o=i.type,r=i.pendingProps,u=fu(ce.current).createElement(o),u[qt]=i,u[dn]=r,Gt(u,o,r),Lt(u),i.stateNode=u):i.memoizedState=k0(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return Et(i),r===null&&Ue&&(u=i.stateNode=A0(i.type,i.pendingProps,ce.current),Vt=i,Vn=!0,p=Ze,js(i.type)?(op=p,Ze=Fn(u.firstChild)):Ze=p),Ft(r,i,i.pendingProps.children,o),Qc(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&Ue&&((p=u=Ze)&&(u=eC(u,i.type,i.pendingProps,Vn),u!==null?(i.stateNode=u,Vt=i,Ze=Fn(u.firstChild),Vn=!1,p=!0):p=!1),p||ws(i)),Et(i),p=i.type,y=i.pendingProps,w=r!==null?r.memoizedProps:null,u=y.children,np(p,y)?u=null:w!==null&&np(p,w)&&(i.flags|=32),i.memoizedState!==null&&(p=th(r,i,m1,null,null,o),ml._currentValue=p),Qc(r,i),Ft(r,i,u,o),i.child;case 6:return r===null&&Ue&&((r=o=Ze)&&(o=tC(o,i.pendingProps,Vn),o!==null?(i.stateNode=o,Vt=i,Ze=null,r=!0):r=!1),r||ws(i)),null;case 13:return gb(r,i,o);case 4:return xe(i,i.stateNode.containerInfo),u=i.pendingProps,r===null?i.child=Ri(i,null,u,o):Ft(r,i,u,o),i.child;case 11:return ob(r,i,i.type,i.pendingProps,o);case 7:return Ft(r,i,i.pendingProps,o),i.child;case 8:return Ft(r,i,i.pendingProps.children,o),i.child;case 12:return Ft(r,i,i.pendingProps.children,o),i.child;case 10:return u=i.pendingProps,_s(i,i.type,u.value),Ft(r,i,u.children,o),i.child;case 9:return p=i.type._context,u=i.pendingProps.children,Si(i),p=Ht(p),u=u(p),i.flags|=1,Ft(r,i,u,o),i.child;case 14:return lb(r,i,i.type,i.pendingProps,o);case 15:return cb(r,i,i.type,i.pendingProps,o);case 19:return vb(r,i,o);case 31:return x1(r,i,o);case 22:return ub(r,i,o,i.pendingProps);case 24:return Si(i),u=Ht(bt),r===null?(p=Ff(),p===null&&(p=We,y=Vf(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=o),p=y),i.memoizedState={parent:u,cache:p},Kf(i),_s(i,bt,p)):((r.lanes&o)!==0&&(Yf(r,i),Qo(i,null,null,o),Yo()),p=r.memoizedState,y=i.memoizedState,p.parent!==u?(p={parent:u,cache:u},i.memoizedState=p,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=p),_s(i,bt,u)):(u=y.cache,_s(i,bt,u),u!==p.cache&&qf(i,[bt],o,!0))),Ft(r,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(s(156,i.tag))}function $r(r){r.flags|=4}function Oh(r,i,o,u,p){if((i=(r.mode&32)!==0)&&(i=!1),i){if(r.flags|=16777216,(p&335544128)===p)if(r.stateNode.complete)r.flags|=8192;else if(Gb())r.flags|=8192;else throw Ei=jc,Gf}else r.flags&=-16777217}function wb(r,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!L0(i))if(Gb())r.flags|=8192;else throw Ei=jc,Gf}function Xc(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?en():536870912,r.lanes|=i,ja|=i)}function tl(r,i){if(!Ue)switch(r.tailMode){case"hidden":i=r.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;
vendor: 6,559 bytes, line 9
9u===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function et(r){var i=r.alternate!==null&&r.alternate.child===r.child,o=0,u=0;if(i)for(var p=r.child;p!==null;)o|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)o|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=u,r.childLanes=o,i}function E1(r,i,o){var u=i.pendingProps;switch(If(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(i),null;case 1:return et(i),null;case 3:return o=i.stateNode,u=null,r!==null&&(u=r.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),Ir(bt),we(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(_a(i)?$r(i):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,zf())),et(i),null;case 26:var p=i.type,y=i.memoizedState;return r===null?($r(i),y!==null?(et(i),wb(i,y)):(et(i),Oh(i,p,null,u,o))):y?y!==r.memoizedState?($r(i),et(i),wb(i,y)):(et(i),i.flags&=-16777217):(r=r.memoizedProps,r!==u&&$r(i),et(i),Oh(i,p,r,u,o)),null;case 27:if(mt(i),o=ce.current,p=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==u&&$r(i);else{if(!u){if(i.stateNode===null)throw Error(s(166));return et(i),null}r=ie.current,_a(i)?Zy(i):(r=A0(p,u,o),i.stateNode=r,$r(i))}return et(i),null;case 5:if(mt(i),p=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==u&&$r(i);else{if(!u){if(i.stateNode===null)throw Error(s(166));return et(i),null}if(y=ie.current,_a(i))Zy(i);else{var w=fu(ce.current);switch(y){case 1:y=w.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:y=w.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":y=w.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":y=w.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":y=w.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof u.is=="string"?w.createElement("select",{is:u.is}):w.createElement("select"),u.multiple?y.multiple=!0:u.size&&(y.size=u.size);break;default:y=typeof u.is=="string"?w.createElement(p,{is:u.is}):w.createElement(p)}}y[qt]=i,y[dn]=u;e:for(w=i.child;w!==null;){if(w.tag===5||w.tag===6)y.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===i)break e;for(;w.sibling===null;){if(w.return===null||w.return===i)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}i.stateNode=y;e:switch(Gt(y,p,u),p){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&$r(i)}}return et(i),Oh(i,i.type,r===null?null:r.memoizedProps,i.pendingProps,o),null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==u&&$r(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(s(166));if(r=ce.current,_a(i)){if(r=i.stateNode,o=i.memoizedProps,u=null,p=Vt,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}r[qt]=i,r=!!(r.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||g0(r.nodeValue,o)),r||ws(i,!0)}else r=fu(r).createTextNode(u),r[qt]=i,i.stateNode=r}return et(i),null;case 31:if(o=i.memoizedState,r===null||r.memoizedState!==null){if(u=_a(i),o!==null){if(r===null){if(!u)throw Error(s(318));if(r=i.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(557));r[qt]=i}else wi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;et(i),r=!1}else o=zf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return i.flags&256?(Rn(i),i):(Rn(i),null);if((i.flags&128)!==0)throw Error(s(558))}return et(i),null;case 13:if(u=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(p=_a(i),u!==null&&u.dehydrated!==null){if(r===null){if(!p)throw Error(s(318));if(p=i.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(s(317));p[qt]=i}else wi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;et(i),p=!1}else p=zf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(Rn(i),i):(Rn(i),null)}return Rn(i),(i.flags&128)!==0?(i.lanes=o,i):(o=u!==null,r=r!==null&&r.memoizedState!==null,o&&(u=i.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool),y=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(y=u.memoizedState.cachePool.pool),y!==p&&(u.flags|=2048)),o!==r&&o&&(i.child.flags|=8192),Xc(i,i.updateQueue),et(i),null);case 4:return we(),r===null&&Xh(i.stateNode.containerInfo),et(i),null;case 10:return Ir(i.type),et(i),null;case 19:if(Q(gt),u=i.memoizedState,u===null)return et(i),null;if(p=(i.flags&128)!==0,y=u.rendering,y===null)if(p)tl(u,!1);else{if(ut!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(y=Uc(r),y!==null){for(i.flags|=128,tl(u,!1),r=y.updateQueue,i.updateQueue=r,Xc(i,r),i.subtreeFlags=0,r=o,o=i.child;o!==null;)Yy(o,r),o=o.sibling;return Z(gt,gt.current&1|2),Ue&&Lr(i,u.treeForkCount),i.child}r=r.sibling}u.tail!==null&&Pt()>nu&&(i.flags|=128,p=!0,tl(u,!1),i.lanes=4194304)}else{if(!p)if(r=Uc(y),r!==null){if(i.flags|=128,p=!0,r=r.updateQueue,i.updateQueue=r,Xc(i,r),tl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!y.alternate&&!Ue)return et(i),null}else 2*Pt()-u.renderingStartTime>nu&&o!==536870912&&(i.flags|=128,p=!0,tl(u,!1),i.lanes=4194304);u.isBackwards?(y.sibling=i.child,i.child=y):(r=u.last,r!==null?r.sibling=y:i.child=y,u.last=y)}return u.tail!==null?(r=u.tail,u.rendering=r,u.tail=r.sibling,u.renderingStartTime=Pt(),r.sibling=null,o=gt.current,Z(gt,p?o&1|2:o&1),Ue&&Lr(i,u.treeForkCount),r):(et(i),null);case 22:case 23:return Rn(i),Jf(),u=i.memoizedState!==null,r!==null?r.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(o&536870912)!==0&&(i.flags&128)===0&&(et(i),i.subtreeFlags&6&&(i.flags|=8192)):et(i),o=i.updateQueue,o!==null&&Xc(i,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==o&&(i.flags|=2048),r!==null&&Q(xi),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),Ir(bt),et(i),null;case 25:return null;case 30:return null}throw Error(s(156,i.tag))}function R1(r,i){switch(If(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;
vendor: 20,988 bytes, line 9
9case 3:return Ir(bt),we(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return mt(i),null;case 31:if(i.memoizedState!==null){if(Rn(i),i.alternate===null)throw Error(s(340));wi()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 13:if(Rn(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(s(340));wi()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Q(gt),null;case 4:return we(),null;case 10:return Ir(i.type),null;case 22:case 23:return Rn(i),Jf(),r!==null&&Q(xi),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return Ir(bt),null;case 25:return null;default:return null}}function _b(r,i){switch(If(i),i.tag){case 3:Ir(bt),we();break;case 26:case 27:case 5:mt(i);break;case 4:we();break;case 31:i.memoizedState!==null&&Rn(i);break;case 13:Rn(i);break;case 19:Q(gt);break;case 10:Ir(i.type);break;case 22:case 23:Rn(i),Jf(),r!==null&&Q(xi);break;case 24:Ir(bt)}}function nl(r,i){try{var o=i.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var p=u.next;o=p;do{if((o.tag&r)===r){u=void 0;var y=o.create,w=o.inst;u=y(),w.destroy=u}o=o.next}while(o!==p)}}catch(A){Fe(i,i.return,A)}}function As(r,i,o){try{var u=i.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var y=p.next;u=y;do{if((u.tag&r)===r){var w=u.inst,A=w.destroy;if(A!==void 0){w.destroy=void 0,p=i;var L=o,V=A;try{V()}catch(W){Fe(p,L,W)}}}u=u.next}while(u!==y)}}catch(W){Fe(i,i.return,W)}}function Sb(r){var i=r.updateQueue;if(i!==null){var o=r.stateNode;try{fv(i,o)}catch(u){Fe(r,r.return,u)}}}function xb(r,i,o){o.props=Ci(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(u){Fe(r,i,u)}}function rl(r,i){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}typeof o=="function"?r.refCleanup=o(u):o.current=u}}catch(p){Fe(r,i,p)}}function gr(r,i){var o=r.ref,u=r.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(p){Fe(r,i,p)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){Fe(r,i,p)}else o.current=null}function Tb(r){var i=r.type,o=r.memoizedProps,u=r.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(p){Fe(r,r.return,p)}}function kh(r,i,o){try{var u=r.stateNode;Y1(u,r.type,o,i),u[dn]=i}catch(p){Fe(r,r.return,p)}}function Eb(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&js(r.type)||r.tag===4}function Nh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Eb(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&&js(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 Mh(r,i,o){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(r),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=Mr));else if(u!==4&&(u===27&&js(r.type)&&(o=r.stateNode,i=null),r=r.child,r!==null))for(Mh(r,i,o),r=r.sibling;r!==null;)Mh(r,i,o),r=r.sibling}function Jc(r,i,o){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?o.insertBefore(r,i):o.appendChild(r);else if(u!==4&&(u===27&&js(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(Jc(r,i,o),r=r.sibling;r!==null;)Jc(r,i,o),r=r.sibling}function Rb(r){var i=r.stateNode,o=r.memoizedProps;try{for(var u=r.type,p=i.attributes;p.length;)i.removeAttributeNode(p[0]);Gt(i,u,o),i[qt]=r,i[dn]=o}catch(y){Fe(r,r.return,y)}}var qr=!1,St=!1,Ph=!1,Ab=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function A1(r,i){if(r=r.containerInfo,ep=bu,r=zy(r),Rf(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var p=u.anchorOffset,y=u.focusNode;u=u.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var w=0,A=-1,L=-1,V=0,W=0,ee=r,H=null;t:for(;;){for(var G;ee!==o||p!==0&&ee.nodeType!==3||(A=w+p),ee!==y||u!==0&&ee.nodeType!==3||(L=w+u),ee.nodeType===3&&(w+=ee.nodeValue.length),(G=ee.firstChild)!==null;)H=ee,ee=G;for(;;){if(ee===r)break t;if(H===o&&++V===p&&(A=w),H===y&&++W===u&&(L=w),(G=ee.nextSibling)!==null)break;ee=H,H=ee.parentNode}ee=G}o=A===-1||L===-1?null:{start:A,end:L}}else o=null}o=o||{start:0,end:0}}else o=null;for(tp={focusedElem:r,selectionRange:o},bu=!1,Dt=i;Dt!==null;)if(i=Dt,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,Dt=r;else for(;Dt!==null;){switch(i=Dt,y=i.alternate,r=i.flags,i.tag){case 0:if((r&4)!==0&&(r=i.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)p=r[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&y!==null){r=void 0,o=i,p=y.memoizedProps,y=y.memoizedState,u=o.stateNode;try{var he=Ci(o.type,p);r=u.getSnapshotBeforeUpdate(he,y),u.__reactInternalSnapshotBeforeUpdate=r}catch(Ee){Fe(o,o.return,Ee)}}break;case 3:if((r&1024)!==0){if(r=i.stateNode.containerInfo,o=r.nodeType,o===9)sp(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":sp(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(s(163))}if(r=i.sibling,r!==null){r.return=i.return,Dt=r;break}Dt=i.return}}function Cb(r,i,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:Hr(r,o),u&4&&nl(5,o);break;case 1:if(Hr(r,o),u&4)if(r=o.stateNode,i===null)try{r.componentDidMount()}catch(w){Fe(o,o.return,w)}else{var p=Ci(o.type,i.memoizedProps);i=i.memoizedState;try{r.componentDidUpdate(p,i,r.__reactInternalSnapshotBeforeUpdate)}catch(w){Fe(o,o.return,w)}}u&64&&Sb(o),u&512&&rl(o,o.return);break;case 3:if(Hr(r,o),u&64&&(r=o.updateQueue,r!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{fv(r,i)}catch(w){Fe(o,o.return,w)}}break;case 27:i===null&&u&4&&Rb(o);case 26:case 5:Hr(r,o),i===null&&u&4&&Tb(o),u&512&&rl(o,o.return);break;case 12:Hr(r,o);break;case 31:Hr(r,o),u&4&&Nb(r,o);break;case 13:Hr(r,o),u&4&&Mb(r,o),u&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=D1.bind(null,o),nC(r,o))));break;case 22:if(u=o.memoizedState!==null||qr,!u){i=i!==null&&i.memoizedState!==null||St,p=qr;var y=St;qr=u,(St=i)&&!y?Fr(r,o,(o.subtreeFlags&8772)!==0):Hr(r,o),qr=p,St=y}break;case 30:break;default:Hr(r,o)}}function Ob(r){var i=r.alternate;i!==null&&(r.alternate=null,Ob(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&cf(i)),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 nt=null,hn=!1;function Vr(r,i,o){for(o=o.child;o!==null;)kb(r,i,o),o=o.sibling}function kb(r,i,o){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(di,o)}catch{}switch(o.tag){case 26:St||gr(o,i),Vr(r,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:St||gr(o,i);var u=nt,p=hn;js(o.type)&&(nt=o.stateNode,hn=!1),Vr(r,i,o),fl(o.stateNode),nt=u,hn=p;break;case 5:St||gr(o,i);case 6:if(u=nt,p=hn,nt=null,Vr(r,i,o),nt=u,hn=p,nt!==null)if(hn)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(o.stateNode)}catch(y){Fe(o,i,y)}else try{nt.removeChild(o.stateNode)}catch(y){Fe(o,i,y)}break;case 18:nt!==null&&(hn?(r=nt,S0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),qa(r)):S0(nt,o.stateNode));break;case 4:u=nt,p=hn,nt=o.stateNode.containerInfo,hn=!0,Vr(r,i,o),nt=u,hn=p;break;case 0:case 11:case 14:case 15:As(2,o,i),St||As(4,o,i),Vr(r,i,o);break;case 1:St||(gr(o,i),u=o.stateNode,typeof u.componentWillUnmount=="function"&&xb(o,i,u)),Vr(r,i,o);break;case 21:Vr(r,i,o);break;case 22:St=(u=St)||o.memoizedState!==null,Vr(r,i,o),St=u;break;default:Vr(r,i,o)}}function Nb(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{qa(r)}catch(o){Fe(i,i.return,o)}}}function Mb(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{qa(r)}catch(o){Fe(i,i.return,o)}}function C1(r){switch(r.tag){case 31:case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new Ab),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new Ab),i;default:throw Error(s(435,r.tag))}}function Zc(r,i){var o=C1(r);i.forEach(function(u){if(!o.has(u)){o.add(u);var p=I1.bind(null,r,u);u.then(p,p)}})}function pn(r,i){var o=i.deletions;if(o!==null)for(var u=0;u<o.length;u++){var p=o[u],y=r,w=i,A=w;e:for(;A!==null;){switch(A.tag){case 27:if(js(A.type)){nt=A.stateNode,hn=!1;break e}break;case 5:nt=A.stateNode,hn=!1;break e;case 3:case 4:nt=A.stateNode.containerInfo,hn=!0;break e}A=A.return}if(nt===null)throw Error(s(160));kb(y,w,p),nt=null,hn=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Pb(i,r),i=i.sibling}var Zn=null;function Pb(r,i){var o=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:pn(i,r),mn(r),u&4&&(As(3,r,r.return),nl(3,r),As(5,r,r.return));break;case 1:pn(i,r),mn(r),u&512&&(St||o===null||gr(o,o.return)),u&64&&qr&&(r=r.updateQueue,r!==null&&(u=r.callbacks,u!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var p=Zn;if(pn(i,r),mn(r),u&512&&(St||o===null||gr(o,o.return)),u&4){var y=o!==null?o.memoizedState:null;if(u=r.memoizedState,o===null)if(u===null)if(r.stateNode===null){e:{u=r.type,o=r.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":y=p.getElementsByTagName("title")[0],(!y||y[ko]||y[qt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(u),p.head.insertBefore(y,p.querySelector("head > title"))),Gt(y,u,o),y[qt]=r,Lt(y),u=y;break e;case"link":var w=P0("link","href",p).get(u+(o.href||""));if(w){for(var A=0;A<w.length;A++)if(y=w[A],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){w.splice(A,1);break t}}y=p.createElement(u),Gt(y,u,o),p.head.appendChild(y);break;case"meta":if(w=P0("meta","content",p).get(u+(o.content||""))){for(A=0;A<w.length;A++)if(y=w[A],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){w.splice(A,1);break t}}y=p.createElement(u),Gt(y,u,o),p.head.appendChild(y);break;default:throw Error(s(468,u))}y[qt]=r,Lt(y),u=y}r.stateNode=u}else j0(p,r.type,r.stateNode);else r.stateNode=M0(p,u,r.memoizedProps);else y!==u?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,u===null?j0(p,r.type,r.stateNode):M0(p,u,r.memoizedProps)):u===null&&r.stateNode!==null&&kh(r,r.memoizedProps,o.memoizedProps)}break;case 27:pn(i,r),mn(r),u&512&&(St||o===null||gr(o,o.return)),o!==null&&u&4&&kh(r,r.memoizedProps,o.memoizedProps);break;case 5:if(pn(i,r),mn(r),u&512&&(St||o===null||gr(o,o.return)),r.flags&32){p=r.stateNode;try{da(p,"")}catch(he){Fe(r,r.return,he)}}u&4&&r.stateNode!=null&&(p=r.memoizedProps,kh(r,p,o!==null?o.memoizedProps:p)),u&1024&&(Ph=!0);break;case 6:if(pn(i,r),mn(r),u&4){if(r.stateNode===null)throw Error(s(162));u=r.memoizedProps,o=r.stateNode;try{o.nodeValue=u}catch(he){Fe(r,r.return,he)}}break;case 3:if(mu=null,p=Zn,Zn=hu(i.containerInfo),pn(i,r),Zn=p,mn(r),u&4&&o!==null&&o.memoizedState.isDehydrated)try{qa(i.containerInfo)}catch(he){Fe(r,r.return,he)}Ph&&(Ph=!1,jb(r));break;case 4:u=Zn,Zn=hu(r.stateNode.containerInfo),pn(i,r),mn(r),Zn=u;break;case 12:pn(i,r),mn(r);break;case 31:pn(i,r),mn(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Zc(r,u)));break;case 13:pn(i,r),mn(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(tu=Pt()),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Zc(r,u)));break;case 22:p=r.memoizedState!==null;var L=o!==null&&o.memoizedState!==null,V=qr,W=St;if(qr=V||p,St=W||L,pn(i,r),St=W,qr=V,mn(r),u&8192)e:for(i=r.stateNode,i._visibility=p?i._visibility&-2:i._visibility|1,p&&(o===null||L||qr||St||Oi(r)),o=null,i=r;;){if(i.tag===5||i.tag===26){if(o===null){L=o=i;try{if(y=L.stateNode,p)w=y.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{A=L.stateNode;var ee=L.memoizedProps.style,H=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;A.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(he){Fe(L,L.return,he)}}}else if(i.tag===6){if(o===null){L=i;try{L.stateNode.nodeValue=p?"":L.memoizedProps}catch(he){Fe(L,L.return,he)}}}else if(i.tag===18){if(o===null){L=i;try{var G=L.stateNode;p?x0(G,!0):x0(L.stateNode,!1)}catch(he){Fe(L,L.return,he)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=r.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,Zc(r,o))));break;case 19:pn(i,r),mn(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Zc(r,u)));break;case 30:break;case 21:break;default:pn(i,r),mn(r)}}function mn(r){var i=r.flags;if(i&2){try{for(var o,u=r.return;u!==null;){if(Eb(u)){o=u;break}u=u.return}if(o==null)throw Error(s(160));switch(o.tag){case 27:var p=o.stateNode,y=Nh(r);Jc(r,y,p);break;case 5:var w=o.stateNode;o.flags&32&&(da(w,""),o.flags&=-33);var A=Nh(r);Jc(r,A,w);break;case 3:case 4:var L=o.stateNode.containerInfo,V=Nh(r);Mh(r,V,L);break;default:throw Error(s(161))}}catch(W){Fe(r,r.return,W)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function jb(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;jb(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function Hr(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Cb(r,i.alternate,i),i=i.sibling}function Oi(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:As(4,i,i.return),Oi(i);break;case 1:gr(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&xb(i,i.return,o),Oi(i);break;case 27:fl(i.stateNode);case 26:case 5:gr(i,i.return),Oi(i);break;case 22:i.memoizedState===null&&Oi(i);break;case 30:Oi(i);break;default:Oi(i)}r=r.sibling}}function Fr(r,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,p=r,y=i,w=y.flags;switch(y.tag){case 0:case 11:case 15:Fr(p,y,o),nl(4,y);break;case 1:if(Fr(p,y,o),u=y,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(V){Fe(u,u.return,V)}if(u=y,p=u.updateQueue,p!==null){var A=u.stateNode;try{var L=p.shared.hiddenCallbacks;if(L!==null)for(p.shared.hiddenCallbacks=null,p=0;p<L.length;p++)dv(L[p],A)}catch(V){Fe(u,u.return,V)}}o&&w&64&&Sb(y),rl(y,y.return);break;case 27:Rb(y);case 26:case 5:Fr(p,y,o),o&&u===null&&w&4&&Tb(y),rl(y,y.return);break;case 12:Fr(p,y,o);break;case 31:Fr(p,y,o),o&&w&4&&Nb(p,y);break;case 13:Fr(p,y,o),o&&w&4&&Mb(p,y);break;case 22:y.memoizedState===null&&Fr(p,y,o),rl(y,y.return);break;case 30:break;default:Fr(p,y,o)}i=i.sibling}}function jh(r,i){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&Vo(o))}function Lh(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Vo(r))}function er(r,i,o,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Lb(r,i,o,u),i=i.sibling}function Lb(r,i,o,u){var p=i.flags;switch(i.tag){case 0:case 11:case 15:er(r,i,o,u),p&2048&&nl(9,i);break;case 1:er(r,i,o,u);break;case 3:er(r,i,o,u),p&2048&&(r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Vo(r)));break;case 12:if(p&2048){er(r,i,o,u),r=i.stateNode;try{var y=i.memoizedProps,w=y.id,A=y.onPostCommit;typeof A=="function"&&A(w,i.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(L){Fe(i,i.return,L)}}else er(r,i,o,u);break;case 31:er(r,i,o,u);break;case 13:er(r,i,o,u);break;case 23:break;case 22:y=i.stateNode,w=i.alternate,i.memoizedState!==null?y._visibility&2?er(r,i,o,u):sl(r,i):y._visibility&2?er(r,i,o,u):(y._visibility|=2,Na(r,i,o,u,(i.subtreeFlags&10256)!==0||!1)),p&2048&&jh(w,i);break;case 24:er(r,i,o,u),p&2048&&Lh(i.alternate,i);break;default:er(r,i,o,u)}}function Na(r,i,o,u,p){for(p=p&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var y=r,w=i,A=o,L=u,V=w.flags;switch(w.tag){case 0:case 11:case 15:Na(y,w,A,L,p),nl(8,w);break;case 23:break;case 22:var W=w.stateNode;w.memoizedState!==null?W._visibility&2?Na(y,w,A,L,p):sl(y,w):(W._visibility|=2,Na(y,w,A,L,p)),p&&V&2048&&jh(w.alternate,w);break;case 24:Na(y,w,A,L,p),p&&V&2048&&Lh(w.alternate,w);break;default:Na(y,w,A,L,p)}i=i.sibling}}function sl(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=r,u=i,p=u.flags;switch(u.tag){case 22:sl(o,u),p&2048&&jh(u.alternate,u);break;case 24:sl(o,u),p&2048&&Lh(u.alternate,u);break;default:sl(o,u)}i=i.sibling}}var il=8192;function Ma(r,i,o){if(r.subtreeFlags&il)for(r=r.child;r!==null;)Db(r,i,o),r=r.sibling}function Db(r,i,o){switch(r.tag){case 26:Ma(r,i,o),r.flags&il&&r.memoizedState!==null&&pC(o,Zn,r.memoizedState,r.memoizedProps);break;case 5:Ma(r,i,o);break;case 3:case 4:var u=Zn;Zn=hu(r.stateNode.containerInfo),Ma(r,i,o),Zn=u;break;case 22:r.memoizedState===null&&(u=r.alternate,u!==null&&u.memoizedState!==null?(u=il,il=16777216,Ma(r,i,o),il=u):Ma(r,i,o));break;default:Ma(r,i,o)}}function Ib(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function al(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var u=i[o];Dt=u,zb(u,r)}Ib(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Ub(r),r=r.sibling}function Ub(r){switch(r.tag){case 0:case 11:case 15:al(r),r.flags&2048&&As(9,r,r.return);break;case 3:al(r);break;case 12:al(r);break;case 22:var i=r.stateNode;r.memoizedState!==null&&i._visibility&2&&(r.return===null||r.return.tag!==13)?(i._visibility&=-3,eu(r)):al(r);break;default:al(r)}}function eu(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var u=i[o];Dt=u,zb(u,r)}Ib(r)}for(r=r.child;r!==null;){switch(i=r,i.tag){case 0:case 11:case 15:As(8,i,i.return),eu(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,eu(i));break;default:eu(i)}r=r.sibling}}function zb(r,i){for(;Dt!==null;){var o=Dt;switch(o.tag){case 0:case 11:case 15:As(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Vo(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,Dt=u;else e:for(o=r;Dt!==null;){u=Dt;var p=u.sibling,y=u.return;if(Ob(u),u===o){Dt=null;break e}if(p!==null){p.return=y,Dt=p;break e}Dt=y}}}var O1={getCacheForType:function(r){var i=Ht(bt),o=i.data.get(r);return o===void 0&&(o=r(),i.data.set(r,o)),o},cacheSignal:function(){return Ht(bt).controller.signal}},k1=typeof WeakMap=="function"?WeakMap:Map,qe=0,We=null,je=null,De=0,He=0,An=null,Cs=!1,Pa=!1,Dh=!1,Gr=0,ut=0,Os=0,ki=0,Ih=0,Cn=0,ja=0,ol=null,gn=null,Uh=!1,tu=0,Bb=0,nu=1/0,ru=null,ks=null,At=0,Ns=null,La=null,Kr=0,zh=0,Bh=null,$b=null,ll=0,$h=null;function On(){return(qe&2)!==0&&De!==0?De&-De:z.T!==null?Kh():of()}function qb(){if(Cn===0)if((De&536870912)===0||Ue){var r=ra;ra<<=1,(ra&3932160)===0&&(ra=262144),Cn=r}else Cn=536870912;return r=En.current,r!==null&&(r.flags|=32),Cn}function yn(r,i,o){(r===We&&(He===2||He===9)||r.cancelPendingCommit!==null)&&(Da(r,0),Ms(r,De,Cn,!1)),at(r,o),((qe&2)===0||r!==We)&&(r===We&&((qe&2)===0&&(ki|=o),ut===4&&Ms(r,De,Cn,!1)),yr(r))}function Vb(r,i,o){if((qe&6)!==0)throw Error(s(327));var u=!o&&(i&127)===0&&(i&r.expiredLanes)===0||tt(r,i),p=u?P1(r,i):Vh(r,i,!0),y=u;do{if(p===0){Pa&&!u&&Ms(r,i,0,!1);break}else{if(o=r.current.alternate,y&&!N1(o)){p=Vh(r,i,!1),y=!1;continue}if(p===2){if(y=i,r.errorRecoveryDisabledLanes&y)var w=0;else w=r.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){i=w;e:{var A=r;p=ol;var L=A.current.memoizedState.isDehydrated;
vendor: 13,737 bytes, line 9
9if(L&&(Da(A,w).flags|=256),w=Vh(A,w,!1),w!==2){if(Dh&&!L){A.errorRecoveryDisabledLanes|=y,ki|=y,p=4;break e}y=gn,gn=p,y!==null&&(gn===null?gn=y:gn.push.apply(gn,y))}p=w}if(y=!1,p!==2)continue}}if(p===1){Da(r,0),Ms(r,i,0,!0);break}e:{switch(u=r,y=p,y){case 0:case 1:throw Error(s(345));case 4:if((i&4194048)!==i)break;case 6:Ms(u,i,Cn,!Cs);break e;case 2:gn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((i&62914560)===i&&(p=tu+300-Pt(),10<p)){if(Ms(u,i,Cn,!Cs),Ae(u,0,!0)!==0)break e;Kr=i,u.timeoutHandle=w0(Hb.bind(null,u,o,gn,ru,Uh,i,Cn,ki,ja,Cs,y,"Throttled",-0,0),p);break e}Hb(u,o,gn,ru,Uh,i,Cn,ki,ja,Cs,y,null,-0,0)}}break}while(!0);yr(r)}function Hb(r,i,o,u,p,y,w,A,L,V,W,ee,H,G){if(r.timeoutHandle=-1,ee=i.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mr},Db(i,y,ee);var he=(y&62914560)===y?tu-Pt():(y&4194048)===y?Bb-Pt():0;if(he=mC(ee,he),he!==null){Kr=y,r.cancelPendingCommit=he(Jb.bind(null,r,i,y,o,u,p,w,A,L,W,ee,null,H,G)),Ms(r,y,w,!V);return}}Jb(r,i,y,o,u,p,w,A,L)}function N1(r){for(var i=r;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var p=o[u],y=p.getSnapshot;p=p.value;try{if(!xn(y(),p))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ms(r,i,o,u){i&=~Ih,i&=~ki,r.suspendedLanes|=i,r.pingedLanes&=~i,u&&(r.warmLanes|=i),u=r.expirationTimes;for(var p=i;0<p;){var y=31-Zt(p),w=1<<y;u[y]=-1,p&=~w}o!==0&&hi(r,o,i)}function su(){return(qe&6)===0?(cl(0),!1):!0}function qh(){if(je!==null){if(He===0)var r=je.return;else r=je,Dr=_i=null,sh(r),Ra=null,Fo=0,r=je;for(;r!==null;)_b(r.alternate,r),r=r.return;je=null}}function Da(r,i){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,X1(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),Kr=0,qh(),We=r,je=o=jr(r.current,null),De=i,He=0,An=null,Cs=!1,Pa=tt(r,i),Dh=!1,ja=Cn=Ih=ki=Os=ut=0,gn=ol=null,Uh=!1,(i&8)!==0&&(i|=i&32);var u=r.entangledLanes;if(u!==0)for(r=r.entanglements,u&=i;0<u;){var p=31-Zt(u),y=1<<p;i|=r[p],u&=~y}return Gr=i,Ec(),o}function Fb(r,i){Ne=null,z.H=Zo,i===Ea||i===Pc?(i=ov(),He=3):i===Gf?(i=ov(),He=4):He=i===wh?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,An=i,je===null&&(ut=1,Kc(r,Bn(i,r.current)))}function Gb(){var r=En.current;return r===null?!0:(De&4194048)===De?Hn===null:(De&62914560)===De||(De&536870912)!==0?r===Hn:!1}function Kb(){var r=z.H;return z.H=Zo,r===null?Zo:r}function Yb(){var r=z.A;return z.A=O1,r}function iu(){ut=4,Cs||(De&4194048)!==De&&En.current!==null||(Pa=!0),(Os&134217727)===0&&(ki&134217727)===0||We===null||Ms(We,De,Cn,!1)}function Vh(r,i,o){var u=qe;qe|=2;var p=Kb(),y=Yb();(We!==r||De!==i)&&(ru=null,Da(r,i)),i=!1;var w=ut;e:do try{if(He!==0&&je!==null){var A=je,L=An;switch(He){case 8:qh(),w=6;break e;case 3:case 2:case 9:case 6:En.current===null&&(i=!0);var V=He;if(He=0,An=null,Ia(r,A,L,V),o&&Pa){w=0;break e}break;default:V=He,He=0,An=null,Ia(r,A,L,V)}}M1(),w=ut;break}catch(W){Fb(r,W)}while(!0);return i&&r.shellSuspendCounter++,Dr=_i=null,qe=u,z.H=p,z.A=y,je===null&&(We=null,De=0,Ec()),w}function M1(){for(;je!==null;)Qb(je)}function P1(r,i){var o=qe;qe|=2;var u=Kb(),p=Yb();We!==r||De!==i?(ru=null,nu=Pt()+500,Da(r,i)):Pa=tt(r,i);e:do try{if(He!==0&&je!==null){i=je;var y=An;t:switch(He){case 1:He=0,An=null,Ia(r,i,y,1);break;case 2:case 9:if(iv(y)){He=0,An=null,Wb(i);break}i=function(){He!==2&&He!==9||We!==r||(He=7),yr(r)},y.then(i,i);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:iv(y)?(He=0,An=null,Wb(i)):(He=0,An=null,Ia(r,i,y,7));break;case 5:var w=null;switch(je.tag){case 26:w=je.memoizedState;case 5:case 27:var A=je;if(w?L0(w):A.stateNode.complete){He=0,An=null;var L=A.sibling;if(L!==null)je=L;else{var V=A.return;V!==null?(je=V,au(V)):je=null}break t}}He=0,An=null,Ia(r,i,y,5);break;case 6:He=0,An=null,Ia(r,i,y,6);break;case 8:qh(),ut=6;break e;default:throw Error(s(462))}}j1();break}catch(W){Fb(r,W)}while(!0);return Dr=_i=null,z.H=u,z.A=p,qe=o,je!==null?0:(We=null,De=0,Ec(),ut)}function j1(){for(;je!==null&&!Mt();)Qb(je)}function Qb(r){var i=bb(r.alternate,r,Gr);r.memoizedProps=r.pendingProps,i===null?au(r):je=i}function Wb(r){var i=r,o=i.alternate;switch(i.tag){case 15:case 0:i=hb(o,i,i.pendingProps,i.type,void 0,De);break;case 11:i=hb(o,i,i.pendingProps,i.type.render,i.ref,De);break;case 5:sh(i);default:_b(o,i),i=je=Yy(i,Gr),i=bb(o,i,Gr)}r.memoizedProps=r.pendingProps,i===null?au(r):je=i}function Ia(r,i,o,u){Dr=_i=null,sh(i),Ra=null,Fo=0;var p=i.return;try{if(S1(r,p,i,o,De)){ut=1,Kc(r,Bn(o,r.current)),je=null;return}}catch(y){if(p!==null)throw je=p,y;ut=1,Kc(r,Bn(o,r.current)),je=null;return}i.flags&32768?(Ue||u===1?r=!0:Pa||(De&536870912)!==0?r=!1:(Cs=r=!0,(u===2||u===9||u===3||u===6)&&(u=En.current,u!==null&&u.tag===13&&(u.flags|=16384))),Xb(i,r)):au(i)}function au(r){var i=r;do{if((i.flags&32768)!==0){Xb(i,Cs);return}r=i.return;var o=E1(i.alternate,i,Gr);if(o!==null){je=o;return}if(i=i.sibling,i!==null){je=i;return}je=i=r}while(i!==null);ut===0&&(ut=5)}function Xb(r,i){do{var o=R1(r.alternate,r);if(o!==null){o.flags&=32767,je=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(r=r.sibling,r!==null)){je=r;return}je=r=o}while(r!==null);ut=6,je=null}function Jb(r,i,o,u,p,y,w,A,L){r.cancelPendingCommit=null;do ou();while(At!==0);if((qe&6)!==0)throw Error(s(327));if(i!==null){if(i===r.current)throw Error(s(177));if(y=i.lanes|i.childLanes,y|=Nf,ln(r,o,y,w,A,L),r===We&&(je=We=null,De=0),La=i,Ns=r,Kr=o,zh=y,Bh=p,$b=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,U1(Or,function(){return r0(),null})):(r.callbackNode=null,r.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=z.T,z.T=null,p=Y.p,Y.p=2,w=qe,qe|=4;try{A1(r,i,o)}finally{qe=w,Y.p=p,z.T=u}}At=1,Zb(),e0(),t0()}}function Zb(){if(At===1){At=0;var r=Ns,i=La,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=z.T,z.T=null;var u=Y.p;Y.p=2;var p=qe;qe|=4;try{Pb(i,r);var y=tp,w=zy(r.containerInfo),A=y.focusedElem,L=y.selectionRange;if(w!==A&&A&&A.ownerDocument&&Uy(A.ownerDocument.documentElement,A)){if(L!==null&&Rf(A)){var V=L.start,W=L.end;if(W===void 0&&(W=V),"selectionStart"in A)A.selectionStart=V,A.selectionEnd=Math.min(W,A.value.length);else{var ee=A.ownerDocument||document,H=ee&&ee.defaultView||window;if(H.getSelection){var G=H.getSelection(),he=A.textContent.length,Ee=Math.min(L.start,he),Qe=L.end===void 0?Ee:Math.min(L.end,he);!G.extend&&Ee>Qe&&(w=Qe,Qe=Ee,Ee=w);var $=Iy(A,Ee),U=Iy(A,Qe);if($&&U&&(G.rangeCount!==1||G.anchorNode!==$.node||G.anchorOffset!==$.offset||G.focusNode!==U.node||G.focusOffset!==U.offset)){var q=ee.createRange();q.setStart($.node,$.offset),G.removeAllRanges(),Ee>Qe?(G.addRange(q),G.extend(U.node,U.offset)):(q.setEnd(U.node,U.offset),G.addRange(q))}}}}for(ee=[],G=A;G=G.parentNode;)G.nodeType===1&&ee.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<ee.length;A++){var J=ee[A];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}bu=!!ep,tp=ep=null}finally{qe=p,Y.p=u,z.T=o}}r.current=i,At=2}}function e0(){if(At===2){At=0;var r=Ns,i=La,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=z.T,z.T=null;var u=Y.p;Y.p=2;var p=qe;qe|=4;try{Cb(r,i.alternate,i)}finally{qe=p,Y.p=u,z.T=o}}At=3}}function t0(){if(At===4||At===3){At=0,dr();var r=Ns,i=La,o=Kr,u=$b;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?At=5:(At=0,La=Ns=null,n0(r,r.pendingLanes));var p=r.pendingLanes;if(p===0&&(ks=null),Xn(o),i=i.stateNode,rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(di,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=z.T,p=Y.p,Y.p=2,z.T=null;try{for(var y=r.onRecoverableError,w=0;w<u.length;w++){var A=u[w];y(A.value,{componentStack:A.stack})}}finally{z.T=i,Y.p=p}}(Kr&3)!==0&&ou(),yr(r),p=r.pendingLanes,(o&261930)!==0&&(p&42)!==0?r===$h?ll++:(ll=0,$h=r):ll=0,cl(0)}}function n0(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,Vo(i)))}function ou(){return Zb(),e0(),t0(),r0()}function r0(){if(At!==5)return!1;var r=Ns,i=zh;zh=0;var o=Xn(Kr),u=z.T,p=Y.p;try{Y.p=32>o?32:o,z.T=null,o=Bh,Bh=null;var y=Ns,w=Kr;if(At=0,La=Ns=null,Kr=0,(qe&6)!==0)throw Error(s(331));var A=qe;if(qe|=4,Ub(y.current),Lb(y,y.current,w,o),qe=A,cl(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(di,y)}catch{}return!0}finally{Y.p=p,z.T=u,n0(r,i)}}function s0(r,i,o){i=Bn(o,i),i=bh(r.stateNode,i,2),r=Ts(r,i,2),r!==null&&(at(r,2),yr(r))}function Fe(r,i,o){if(r.tag===3)s0(r,r,o);else for(;i!==null;){if(i.tag===3){s0(i,r,o);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ks===null||!ks.has(u))){r=Bn(o,r),o=ib(2),u=Ts(i,o,2),u!==null&&(ab(o,u,i,r),at(u,2),yr(u));break}}i=i.return}}function Hh(r,i,o){var u=r.pingCache;if(u===null){u=r.pingCache=new k1;var p=new Set;u.set(i,p)}else p=u.get(i),p===void 0&&(p=new Set,u.set(i,p));p.has(o)||(Dh=!0,p.add(o),r=L1.bind(null,r,i,o),i.then(r,r))}function L1(r,i,o){var u=r.pingCache;u!==null&&u.delete(i),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,We===r&&(De&o)===o&&(ut===4||ut===3&&(De&62914560)===De&&300>Pt()-tu?(qe&2)===0&&Da(r,0):Ih|=o,ja===De&&(ja=0)),yr(r)}function i0(r,i){i===0&&(i=en()),r=vi(r,i),r!==null&&(at(r,i),yr(r))}function D1(r){var i=r.memoizedState,o=0;i!==null&&(o=i.retryLane),i0(r,o)}function I1(r,i){var o=0;switch(r.tag){case 31:case 13:var u=r.stateNode,p=r.memoizedState;p!==null&&(o=p.retryLane);break;case 19:u=r.stateNode;break;case 22:u=r.stateNode._retryCache;break;default:throw Error(s(314))}u!==null&&u.delete(i),i0(r,o)}function U1(r,i){return Sn(r,i)}var lu=null,Ua=null,Fh=!1,cu=!1,Gh=!1,Ps=0;function yr(r){r!==Ua&&r.next===null&&(Ua===null?lu=Ua=r:Ua=Ua.next=r),cu=!0,Fh||(Fh=!0,B1())}function cl(r,i){if(!Gh&&cu){Gh=!0;do for(var o=!1,u=lu;u!==null;){if(r!==0){var p=u.pendingLanes;if(p===0)var y=0;else{var w=u.suspendedLanes,A=u.pingedLanes;y=(1<<31-Zt(42|r)+1)-1,y&=p&~(w&~A),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,c0(u,y))}else y=De,y=Ae(u,u===We?y:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(y&3)===0||tt(u,y)||(o=!0,c0(u,y));u=u.next}while(o);Gh=!1}}function z1(){a0()}function a0(){cu=Fh=!1;var r=0;Ps!==0&&W1()&&(r=Ps);for(var i=Pt(),o=null,u=lu;u!==null;){var p=u.next,y=o0(u,i);y===0?(u.next=null,o===null?lu=p:o.next=p,p===null&&(Ua=o)):(o=u,(r!==0||(y&3)!==0)&&(cu=!0)),u=p}At!==0&&At!==5||cl(r),Ps!==0&&(Ps=0)}function o0(r,i){for(var o=r.suspendedLanes,u=r.pingedLanes,p=r.expirationTimes,y=r.pendingLanes&-62914561;0<y;){var w=31-Zt(y),A=1<<w,L=p[w];L===-1?((A&o)===0||(A&u)!==0)&&(p[w]=jt(A,i)):L<=i&&(r.expiredLanes|=A),y&=~A}if(i=We,o=De,o=Ae(r,r===i?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u=r.callbackNode,o===0||r===i&&(He===2||He===9)||r.cancelPendingCommit!==null)return u!==null&&u!==null&&ui(u),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||tt(r,o)){if(i=o&-o,i===r.callbackPriority)return i;switch(u!==null&&ui(u),Xn(o)){case 2:case 8:o=Dn;break;case 32:o=Or;break;case 268435456:o=kr;break;default:o=Or}return u=l0.bind(null,r),o=Sn(o,u),r.callbackPriority=i,r.callbackNode=o,i}return u!==null&&u!==null&&ui(u),r.callbackPriority=2,r.callbackNode=null,2}function l0(r,i){if(At!==0&&At!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(ou()&&r.callbackNode!==o)return null;var u=De;return u=Ae(r,r===We?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u===0?null:(Vb(r,u,i),o0(r,Pt()),r.callbackNode!=null&&r.callbackNode===o?l0.bind(null,r):null)}function c0(r,i){if(ou())return null;Vb(r,i,!0)}function B1(){J1(function(){(qe&6)!==0?Sn(lt,z1):a0()})}function Kh(){if(Ps===0){var r=xa;r===0&&(r=na,na<<=1,(na&261888)===0&&(na=256)),Ps=r}return Ps}function u0(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:yc(""+r)}function d0(r,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,r.id&&o.setAttribute("form",r.id),i.parentNode.insertBefore(o,i),r=new FormData(r),o.parentNode.removeChild(o),r}function $1(r,i,o,u,p){if(i==="submit"&&o&&o.stateNode===p){var y=u0((p[dn]||null).action),w=u.submitter;w&&(i=(i=w[dn]||null)?u0(i.formAction):w.getAttribute("formAction"),i!==null&&(y=i,w=null));var A=new _c("action","action",null,u,p);r.push({event:A,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Ps!==0){var L=w?d0(p,w):new FormData(p);hh(o,{pending:!0,data:L,method:p.method,action:y},null,L)}}else typeof y=="function"&&(A.preventDefault(),L=w?d0(p,w):new FormData(p),hh(o,{pending:!0,data:L,method:p.method,action:y},y,L))},currentTarget:p}]})}}for(var Yh=0;Yh<kf.length;Yh++){var Qh=kf[Yh],q1=Qh.toLowerCase(),V1=Qh[0].toUpperCase()+Qh.slice(1);Jn(q1,"on"+V1)}Jn(qy,"onAnimationEnd"),Jn(Vy,"onAnimationIteration"),Jn(Hy,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(i1,"onTransitionRun"),Jn(a1,"onTransitionStart"),Jn(o1,"onTransitionCancel"),Jn(Fy,"onTransitionEnd"),ca("onMouseEnter",["mouseout","mouseover"]),ca("onMouseLeave",["mouseout","mouseover"]),ca("onPointerEnter",["pointerout","pointerover"]),ca("onPointerLeave",["pointerout","pointerover"]),pi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pi("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),pi("onBeforeInput",["compositionend","keypress","textInput","paste"]),pi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ul="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(" "),H1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ul));function f0(r,i){i=(i&4)!==0;for(var o=0;o<r.length;o++){var u=r[o],p=u.event;u=u.listeners;e:{var y=void 0;if(i)for(var w=u.length-1;0<=w;w--){var A=u[w],L=A.instance,V=A.currentTarget;if(A=A.listener,L!==y&&p.isPropagationStopped())break e;y=A,p.currentTarget=V;try{y(p)}catch(W){Tc(W)}p.currentTarget=null,y=L}else for(w=0;w<u.length;w++){if(A=u[w],L=A.instance,V=A.currentTarget,A=A.listener,L!==y&&p.isPropagationStopped())break e;y=A,p.currentTarget=V;try{y(p)}catch(W){Tc(W)}p.currentTarget=null,y=L}}}}function Le(r,i){var o=i[lf];o===void 0&&(o=i[lf]=new Set);var u=r+"__bubble";o.has(u)||(h0(i,r,2,!1),o.add(u))}function Wh(r,i,o){var u=0;i&&(u|=4),h0(o,r,u,i)}var uu="_reactListening"+Math.random().toString(36).slice(2);function Xh(r){if(!r[uu]){r[uu]=!0,ay.forEach(function(o){o!=="selectionchange"&&(H1.has(o)||Wh(o,!1,r),Wh(o,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[uu]||(i[uu]=!0,Wh("selectionchange",!1,i))}}function h0(r,i,o,u){switch(q0(i)){case 2:var p=vC;break;case 8:p=bC;break;default:p=fp}o=p.bind(null,i,o,r),p=void 0,!yf||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),u?p!==void 0?r.addEventListener(i,o,{capture:!0,passive:p}):r.addEventListener(i,o,!0):p!==void 0?r.addEventListener(i,o,{passive:p}):r.addEventListener(i,o,!1)}function Jh(r,i,o,u,p){var y=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var w=u.tag;if(w===3||w===4){var A=u.stateNode.containerInfo;if(A===p)break;if(w===4)for(w=u.return;w!==null;){var L=w.tag;if((L===3||L===4)&&w.stateNode.containerInfo===p)return;w=w.return}for(;A!==null;){if(w=aa(A),w===null)return;if(L=w.tag,L===5||L===6||L===26||L===27){u=y=w;continue e}A=A.parentNode}}u=u.return}vy(function(){var V=y,W=mf(o),ee=[];e:{var H=Gy.get(r);if(H!==void 0){var G=_c,he=r;switch(r){case"keypress":if(bc(o)===0)break e;case"keydown":case"keyup":G=IA;break;case"focusin":he="focus",G=_f;break;case"focusout":he="blur",G=_f;break;case"beforeblur":case"afterblur":G=_f;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=_y;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=EA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=BA;break;case qy:case Vy:case Hy:G=CA;break;case Fy:G=qA;break;case"scroll":case"scrollend":G=xA;break;case"wheel":G=HA;break;case"copy":case"cut":case"paste":G=kA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=xy;break;case"toggle":case"beforetoggle":G=GA}var Ee=(i&4)!==0,Qe=!Ee&&(r==="scroll"||r==="scrollend"),$=Ee?H!==null?H+"Capture":null:H;Ee=[];for(var U=V,q;U!==null;){var J=U;if(q=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||q===null||$===null||(J=Mo(U,$),J!=null&&Ee.push(dl(U,J,q))),Qe)break;U=U.return}0<Ee.length&&(H=new G(H,he,null,o,W),ee.push({event:H,listeners:Ee}))}}if((i&7)===0){e:{if(H=r==="mouseover"||r==="pointerover",G=r==="mouseout"||r==="pointerout",H&&o!==pf&&(he=o.relatedTarget||o.fromElement)&&(aa(he)||he[ia]))break e;if((G||H)&&(H=W.window===W?W:(H=W.ownerDocument)?H.defaultView||H.parentWindow:window,G?(he=o.relatedTarget||o.toElement,G=V,he=he?aa(he):null,he!==null&&(Qe=l(he),Ee=he.tag,he!==Qe||Ee!==5&&Ee!==27&&Ee!==6)&&(he=null)):(G=null,he=V),G!==he)){if(Ee=_y,J="onMouseLeave",$="onMouseEnter",U="mouse",(r==="pointerout"||r==="pointerover")&&(Ee=xy,J="onPointerLeave",$="onPointerEnter",U="pointer"),Qe=G==null?H:No(G),q=he==null?H:No(he),H=new Ee(J,U+"leave",G,o,W),H.target=Qe,H.relatedTarget=q,J=null,aa(W)===V&&(Ee=new Ee($,U+"enter",he,o,W),Ee.target=q,Ee.relatedTarget=Qe,J=Ee),Qe=J,G&&he)t:{for(Ee=F1,$=G,U=he,q=0,J=$;J;J=Ee(J))q++;J=0;for(var _e=U;_e;_e=Ee(_e))J++;for(;0<q-J;)$=Ee($),q--;for(;0<J-q;)U=Ee(U),J--;for(;q--;){if($===U||U!==null&&$===U.alternate){Ee=$;break t}$=Ee($),U=Ee(U)}Ee=null}else Ee=null;G!==null&&p0(ee,H,G,Ee,!1),he!==null&&Qe!==null&&p0(ee,Qe,he,Ee,!0)}}
vendor: 5,196 bytes, lines 9-10
9e:{if(H=V?No(V):window,G=H.nodeName&&H.nodeName.toLowerCase(),G==="select"||G==="input"&&H.type==="file")var ze=Ny;else if(Oy(H))if(My)ze=n1;else{ze=e1;var ve=ZA}else G=H.nodeName,!G||G.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?V&&hf(V.elementType)&&(ze=Ny):ze=t1;if(ze&&(ze=ze(r,V))){ky(ee,ze,o,W);break e}ve&&ve(r,H,V),r==="focusout"&&V&&H.type==="number"&&V.memoizedProps.value!=null&&ff(H,"number",H.value)}switch(ve=V?No(V):window,r){case"focusin":(Oy(ve)||ve.contentEditable==="true")&&(ma=ve,Af=V,Bo=null);break;case"focusout":Bo=Af=ma=null;break;case"mousedown":Cf=!0;break;case"contextmenu":case"mouseup":case"dragend":Cf=!1,By(ee,o,W);break;case"selectionchange":if(s1)break;case"keydown":case"keyup":By(ee,o,W)}var Me;if(xf)e:{switch(r){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else pa?Ay(r,o)&&(Ie="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(Ie="onCompositionStart");Ie&&(Ty&&o.locale!=="ko"&&(pa||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&pa&&(Me=by()):(ys=W,vf="value"in ys?ys.value:ys.textContent,pa=!0)),ve=du(V,Ie),0<ve.length&&(Ie=new Sy(Ie,r,null,o,W),ee.push({event:Ie,listeners:ve}),Me?Ie.data=Me:(Me=Cy(o),Me!==null&&(Ie.data=Me)))),(Me=YA?QA(r,o):WA(r,o))&&(Ie=du(V,"onBeforeInput"),0<Ie.length&&(ve=new Sy("onBeforeInput","beforeinput",null,o,W),ee.push({event:ve,listeners:Ie}),ve.data=Me)),$1(ee,r,V,o,W)}f0(ee,i)})}function dl(r,i,o){return{instance:r,listener:i,currentTarget:o}}function du(r,i){for(var o=i+"Capture",u=[];r!==null;){var p=r,y=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=Mo(r,o),p!=null&&u.unshift(dl(r,p,y)),p=Mo(r,i),p!=null&&u.push(dl(r,p,y))),r.tag===3)return u;r=r.return}return[]}function F1(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function p0(r,i,o,u,p){for(var y=i._reactName,w=[];o!==null&&o!==u;){var A=o,L=A.alternate,V=A.stateNode;if(A=A.tag,L!==null&&L===u)break;A!==5&&A!==26&&A!==27||V===null||(L=V,p?(V=Mo(o,y),V!=null&&w.unshift(dl(o,V,L))):p||(V=Mo(o,y),V!=null&&w.push(dl(o,V,L)))),o=o.return}w.length!==0&&r.push({event:i,listeners:w})}var G1=/\r\n?/g,K1=/\u0000|\uFFFD/g;function m0(r){return(typeof r=="string"?r:""+r).replace(G1,`
10`).replace(K1,"")}function g0(r,i){return i=m0(i),m0(r)===i}function Ye(r,i,o,u,p,y){switch(o){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||da(r,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&da(r,""+u);break;case"className":mc(r,"class",u);break;case"tabIndex":mc(r,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":mc(r,o,u);break;case"style":gy(r,u,y);break;case"data":if(i!=="object"){mc(r,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||o!=="href")){r.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(o);break}u=yc(""+u),r.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){r.setAttribute(o,"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 y=="function"&&(o==="formAction"?(i!=="input"&&Ye(r,i,"name",p.name,p,null),Ye(r,i,"formEncType",p.formEncType,p,null),Ye(r,i,"formMethod",p.formMethod,p,null),Ye(r,i,"formTarget",p.formTarget,p,null)):(Ye(r,i,"encType",p.encType,p,null),Ye(r,i,"method",p.method,p,null),Ye(r,i,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(o);break}u=yc(""+u),r.setAttribute(o,u);break;case"onClick":u!=null&&(r.onclick=Mr);break;case"onScroll":u!=null&&Le("scroll",r);break;case"onScrollEnd":u!=null&&Le("scrollend",r);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(o=u.__html,o!=null){if(p.children!=null)throw Error(s(60));r.innerHTML=o}}break;case"multiple":r.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":r.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){r.removeAttribute("xlink:href");break}o=yc(""+u),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(o,""+u):r.removeAttribute(o);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":u&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":u===!0?r.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(o,u):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?r.setAttribute(o,u):r.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?r.removeAttribute(o):r.setAttribute(o,u);break;case"popover":Le("beforetoggle",r),Le("toggle",r),pc(r,"popover",u);break;case"xlinkActuate":Nr(r,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Nr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Nr(r,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Nr(r,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Nr(r,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Nr(r,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":pc(r,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=_A.get(o)||o,pc(r,o,u))}}function Zh(r,i,o,u,p,y){switch(o){case"style":gy(r,u,y);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(o=u.__html,o!=null){if(p.children!=null)throw Error(s(60));r.innerHTML=o}}break;case"children":typeof u=="string"?da(r,u):(typeof u=="number"||typeof u=="bigint")&&da(r,""+u);break;case"onScroll":u!=null&&Le("scroll",r);break;case"onScrollEnd":u!=null&&Le("scrollend",r);break;case"onClick":u!=null&&(r.onclick=Mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!oy.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),i=o.slice(2,p?o.length-7:void 0),y=r[dn]||null,y=y!=null?y[o]:null,typeof y=="function"&&r.removeEventListener(i,y,p),typeof u=="function")){typeof y!="function"&&y!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(i,u,p);break e}o in r?r[o]=u:u===!0?r.setAttribute(o,""):pc(r,o,u)}}}function Gt(r,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",r),Le("load",r);var u=!1,p=!1,y;for(y in o)if(o.hasOwnProperty(y)){var w=o[y];if(w!=null)switch(y){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:Ye(r,i,y,w,o,null)}}p&&Ye(r,i,"srcSet",o.srcSet,o,null),u&&Ye(r,i,"src",o.src,o,null);return;case"input":Le("invalid",r);var A=y=w=p=null,L=null,V=null;for(u in o)if(o.hasOwnProperty(u)){var W=o[u];if(W!=null)switch(u){case"name":p=W;break;case"type":w=W;break;case"checked":L=W;break;case"defaultChecked":V=W;break;case"value":y=W;break;case"defaultValue":A=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(s(137,i));break;default:Ye(r,i,u,W,o,null)}}fy(r,y,A,L,V,w,p,!1);return;case"select":Le("invalid",r),u=w=y=null;for(p in o)if(o.hasOwnProperty(p)&&(A=o[p],A!=null))switch(p){case"value":y=A;break;case"defaultValue":w=A;break;case"multiple":u=A;default:Ye(r,i,p,A,o,null)}i=y,o=w,r.multiple=!!u,i!=null?ua(r,!!u,i,!1):o!=null&&ua(r,!!u,o,!0);return;case"textarea":Le("invalid",r),y=p=u=null;for(w in o)if(o.hasOwnProperty(w)&&(A=o[w],A!=null))switch(w){case"value":u=A;break;case"defaultValue":p=A;break;case"children":y=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(91));break;default:Ye(r,i,w,A,o,null)}py(r,u,p,y);return;case"option":for(L in o)o.hasOwnProperty(L)&&(u=o[L],u!=null)&&(L==="selected"?r.selected=u&&typeof u!="function"&&typeof u!="symbol":Ye(r,i,L,u,o,null));return;case"dialog":Le("beforetoggle",r),Le("toggle",r),Le("cancel",r),Le("close",r);break;case"iframe":case"object":Le("load",r);break;case"video":case"audio":for(u=0;
vendor: 5,801 bytes, line 10
10u<ul.length;u++)Le(ul[u],r);break;case"image":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"embed":case"source":case"link":Le("error",r),Le("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(V in o)if(o.hasOwnProperty(V)&&(u=o[V],u!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:Ye(r,i,V,u,o,null)}return;default:if(hf(i)){for(W in o)o.hasOwnProperty(W)&&(u=o[W],u!==void 0&&Zh(r,i,W,u,o,void 0));return}}for(A in o)o.hasOwnProperty(A)&&(u=o[A],u!=null&&Ye(r,i,A,u,o,null))}function Y1(r,i,o,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,w=null,A=null,L=null,V=null,W=null;for(G in o){var ee=o[G];if(o.hasOwnProperty(G)&&ee!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":L=ee;default:u.hasOwnProperty(G)||Ye(r,i,G,null,u,ee)}}for(var H in u){var G=u[H];if(ee=o[H],u.hasOwnProperty(H)&&(G!=null||ee!=null))switch(H){case"type":y=G;break;case"name":p=G;break;case"checked":V=G;break;case"defaultChecked":W=G;break;case"value":w=G;break;case"defaultValue":A=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,i));break;default:G!==ee&&Ye(r,i,H,G,u,ee)}}df(r,w,A,L,V,W,y,p);return;case"select":G=w=A=H=null;for(y in o)if(L=o[y],o.hasOwnProperty(y)&&L!=null)switch(y){case"value":break;case"multiple":G=L;default:u.hasOwnProperty(y)||Ye(r,i,y,null,u,L)}for(p in u)if(y=u[p],L=o[p],u.hasOwnProperty(p)&&(y!=null||L!=null))switch(p){case"value":H=y;break;case"defaultValue":A=y;break;case"multiple":w=y;default:y!==L&&Ye(r,i,p,y,u,L)}i=A,o=w,u=G,H!=null?ua(r,!!o,H,!1):!!u!=!!o&&(i!=null?ua(r,!!o,i,!0):ua(r,!!o,o?[]:"",!1));return;case"textarea":G=H=null;for(A in o)if(p=o[A],o.hasOwnProperty(A)&&p!=null&&!u.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Ye(r,i,A,null,u,p)}for(w in u)if(p=u[w],y=o[w],u.hasOwnProperty(w)&&(p!=null||y!=null))switch(w){case"value":H=p;break;case"defaultValue":G=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(91));break;default:p!==y&&Ye(r,i,w,p,u,y)}hy(r,H,G);return;case"option":for(var he in o)H=o[he],o.hasOwnProperty(he)&&H!=null&&!u.hasOwnProperty(he)&&(he==="selected"?r.selected=!1:Ye(r,i,he,null,u,H));for(L in u)H=u[L],G=o[L],u.hasOwnProperty(L)&&H!==G&&(H!=null||G!=null)&&(L==="selected"?r.selected=H&&typeof H!="function"&&typeof H!="symbol":Ye(r,i,L,H,u,G));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 o)H=o[Ee],o.hasOwnProperty(Ee)&&H!=null&&!u.hasOwnProperty(Ee)&&Ye(r,i,Ee,null,u,H);for(V in u)if(H=u[V],G=o[V],u.hasOwnProperty(V)&&H!==G&&(H!=null||G!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,i));break;default:Ye(r,i,V,H,u,G)}return;default:if(hf(i)){for(var Qe in o)H=o[Qe],o.hasOwnProperty(Qe)&&H!==void 0&&!u.hasOwnProperty(Qe)&&Zh(r,i,Qe,void 0,u,H);for(W in u)H=u[W],G=o[W],!u.hasOwnProperty(W)||H===G||H===void 0&&G===void 0||Zh(r,i,W,H,u,G);return}}for(var $ in o)H=o[$],o.hasOwnProperty($)&&H!=null&&!u.hasOwnProperty($)&&Ye(r,i,$,null,u,H);for(ee in u)H=u[ee],G=o[ee],!u.hasOwnProperty(ee)||H===G||H==null&&G==null||Ye(r,i,ee,H,u,G)}function y0(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Q1(){if(typeof performance.getEntriesByType=="function"){for(var r=0,i=0,o=performance.getEntriesByType("resource"),u=0;u<o.length;u++){var p=o[u],y=p.transferSize,w=p.initiatorType,A=p.duration;if(y&&A&&y0(w)){for(w=0,A=p.responseEnd,u+=1;u<o.length;u++){var L=o[u],V=L.startTime;if(V>A)break;var W=L.transferSize,ee=L.initiatorType;W&&y0(ee)&&(L=L.responseEnd,w+=W*(L<A?1:(A-V)/(L-V)))}if(--u,i+=8*(y+w)/(p.duration/1e3),r++,10<r)break}}if(0<r)return i/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var ep=null,tp=null;function fu(r){return r.nodeType===9?r:r.ownerDocument}function v0(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 b0(r,i){if(r===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&i==="foreignObject"?0:r}function np(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var rp=null;function W1(){var r=window.event;return r&&r.type==="popstate"?r===rp?!1:(rp=r,!0):(rp=null,!1)}var w0=typeof setTimeout=="function"?setTimeout:void 0,X1=typeof clearTimeout=="function"?clearTimeout:void 0,_0=typeof Promise=="function"?Promise:void 0,J1=typeof queueMicrotask=="function"?queueMicrotask:typeof _0<"u"?function(r){return _0.resolve(null).then(r).catch(Z1)}:w0;function Z1(r){setTimeout(function(){throw r})}function js(r){return r==="head"}function S0(r,i){var o=i,u=0;do{var p=o.nextSibling;if(r.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(u===0){r.removeChild(p),qa(i);return}u--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")u++;else if(o==="html")fl(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,fl(o);for(var y=o.firstChild;y;){var w=y.nextSibling,A=y.nodeName;y[ko]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&y.rel.toLowerCase()==="stylesheet"||o.removeChild(y),y=w}}else o==="body"&&fl(r.ownerDocument.body);o=p}while(o);qa(i)}function x0(r,i){var o=r;r=0;do{var u=o.nextSibling;
vendor: 10,292 bytes, line 10
10if(o.nodeType===1?i?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(i?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=u}while(o)}function sp(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":sp(o),cf(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function eC(r,i,o,u){for(;r.nodeType===1;){var p=o;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(u){if(!r[ko])switch(i){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(y=r.getAttribute("rel"),y==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(y!==p.rel||r.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||r.getAttribute("title")!==(p.title==null?null:p.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(y=r.getAttribute("src"),(y!==(p.src==null?null:p.src)||r.getAttribute("type")!==(p.type==null?null:p.type)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(i==="input"&&r.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&r.getAttribute("name")===y)return r}else return r;if(r=Fn(r.nextSibling),r===null)break}return null}function tC(r,i,o){if(i==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=Fn(r.nextSibling),r===null))return null;return r}function T0(r,i){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=Fn(r.nextSibling),r===null))return null;return r}function ip(r){return r.data==="$?"||r.data==="$~"}function ap(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function nC(r,i){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=i;else if(r.data!=="$?"||o.readyState!=="loading")i();else{var u=function(){i(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),r._reactRetry=u}}function Fn(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return r}var op=null;function E0(r){r=r.nextSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(i===0)return Fn(r.nextSibling);i--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||i++}r=r.nextSibling}return null}function R0(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(i===0)return r;i--}else o!=="/$"&&o!=="/&"||i++}r=r.previousSibling}return null}function A0(r,i,o){switch(i=fu(o),r){case"html":if(r=i.documentElement,!r)throw Error(s(452));return r;case"head":if(r=i.head,!r)throw Error(s(453));return r;case"body":if(r=i.body,!r)throw Error(s(454));return r;default:throw Error(s(451))}}function fl(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);cf(r)}var Gn=new Map,C0=new Set;function hu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Yr=Y.d;Y.d={f:rC,r:sC,D:iC,C:aC,L:oC,m:lC,X:uC,S:cC,M:dC};function rC(){var r=Yr.f(),i=su();return r||i}function sC(r){var i=oa(r);i!==null&&i.tag===5&&i.type==="form"?Fv(i):Yr.r(r)}var za=typeof document>"u"?null:document;function O0(r,i,o){var u=za;if(u&&typeof i=="string"&&i){var p=Un(i);p='link[rel="'+r+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),C0.has(p)||(C0.add(p),r={rel:r,crossOrigin:o,href:i},u.querySelector(p)===null&&(i=u.createElement("link"),Gt(i,"link",r),Lt(i),u.head.appendChild(i)))}}function iC(r){Yr.D(r),O0("dns-prefetch",r,null)}function aC(r,i){Yr.C(r,i),O0("preconnect",r,i)}function oC(r,i,o){Yr.L(r,i,o);var u=za;if(u&&r&&i){var p='link[rel="preload"][as="'+Un(i)+'"]';i==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Un(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Un(o.imageSizes)+'"]')):p+='[href="'+Un(r)+'"]';var y=p;switch(i){case"style":y=Ba(r);break;case"script":y=$a(r)}Gn.has(y)||(r=m({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:r,as:i},o),Gn.set(y,r),u.querySelector(p)!==null||i==="style"&&u.querySelector(hl(y))||i==="script"&&u.querySelector(pl(y))||(i=u.createElement("link"),Gt(i,"link",r),Lt(i),u.head.appendChild(i)))}}function lC(r,i){Yr.m(r,i);var o=za;if(o&&r){var u=i&&typeof i.as=="string"?i.as:"script",p='link[rel="modulepreload"][as="'+Un(u)+'"][href="'+Un(r)+'"]',y=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=$a(r)}if(!Gn.has(y)&&(r=m({rel:"modulepreload",href:r},i),Gn.set(y,r),o.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(pl(y)))return}u=o.createElement("link"),Gt(u,"link",r),Lt(u),o.head.appendChild(u)}}}function cC(r,i,o){Yr.S(r,i,o);var u=za;if(u&&r){var p=la(u).hoistableStyles,y=Ba(r);i=i||"default";var w=p.get(y);if(!w){var A={loading:0,preload:null};if(w=u.querySelector(hl(y)))A.loading=5;else{r=m({rel:"stylesheet",href:r,"data-precedence":i},o),(o=Gn.get(y))&&lp(r,o);var L=w=u.createElement("link");Lt(L),Gt(L,"link",r),L._p=new Promise(function(V,W){L.onload=V,L.onerror=W}),L.addEventListener("load",function(){A.loading|=1}),L.addEventListener("error",function(){A.loading|=2}),A.loading|=4,pu(w,i,u)}w={type:"stylesheet",instance:w,count:1,state:A},p.set(y,w)}}}function uC(r,i){Yr.X(r,i);var o=za;if(o&&r){var u=la(o).hoistableScripts,p=$a(r),y=u.get(p);y||(y=o.querySelector(pl(p)),y||(r=m({src:r,async:!0},i),(i=Gn.get(p))&&cp(r,i),y=o.createElement("script"),Lt(y),Gt(y,"link",r),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(p,y))}}function dC(r,i){Yr.M(r,i);var o=za;if(o&&r){var u=la(o).hoistableScripts,p=$a(r),y=u.get(p);y||(y=o.querySelector(pl(p)),y||(r=m({src:r,async:!0,type:"module"},i),(i=Gn.get(p))&&cp(r,i),y=o.createElement("script"),Lt(y),Gt(y,"link",r),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(p,y))}}function k0(r,i,o,u){var p=(p=ce.current)?hu(p):null;if(!p)throw Error(s(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=Ba(o.href),o=la(p).hoistableStyles,u=o.get(i),u||(u={type:"style",instance:null,count:0,state:null},o.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=Ba(o.href);var y=la(p).hoistableStyles,w=y.get(r);if(w||(p=p.ownerDocument||p,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(r,w),(y=p.querySelector(hl(r)))&&!y._p&&(w.instance=y,w.state.loading=5),Gn.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Gn.set(r,o),y||fC(p,r,o,w.state))),i&&u===null)throw Error(s(528,""));return w}if(i&&u!==null)throw Error(s(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=$a(o),o=la(p).hoistableScripts,u=o.get(i),u||(u={type:"script",instance:null,count:0,state:null},o.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,r))}}function Ba(r){return'href="'+Un(r)+'"'}function hl(r){return'link[rel="stylesheet"]['+r+"]"}function N0(r){return m({},r,{"data-precedence":r.precedence,precedence:null})}function fC(r,i,o,u){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=r.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),Gt(i,"link",o),Lt(i),r.head.appendChild(i))}function $a(r){return'[src="'+Un(r)+'"]'}function pl(r){return"script[async]"+r}function M0(r,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var u=r.querySelector('style[data-href~="'+Un(o.href)+'"]');if(u)return i.instance=u,Lt(u),u;var p=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(r.ownerDocument||r).createElement("style"),Lt(u),Gt(u,"style",p),pu(u,o.precedence,r),i.instance=u;case"stylesheet":p=Ba(o.href);var y=r.querySelector(hl(p));if(y)return i.state.loading|=4,i.instance=y,Lt(y),y;u=N0(o),(p=Gn.get(p))&&lp(u,p),y=(r.ownerDocument||r).createElement("link"),Lt(y);var w=y;return w._p=new Promise(function(A,L){w.onload=A,w.onerror=L}),Gt(y,"link",u),i.state.loading|=4,pu(y,o.precedence,r),i.instance=y;case"script":return y=$a(o.src),(p=r.querySelector(pl(y)))?(i.instance=p,Lt(p),p):(u=o,(p=Gn.get(y))&&(u=m({},o),cp(u,p)),r=r.ownerDocument||r,p=r.createElement("script"),Lt(p),Gt(p,"link",u),r.head.appendChild(p),i.instance=p);case"void":return null;default:throw Error(s(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,pu(u,o.precedence,r));return i.instance}function pu(r,i,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,y=p,w=0;w<u.length;w++){var A=u[w];if(A.dataset.precedence===i)y=A;else if(y!==p)break}y?y.parentNode.insertBefore(r,y.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(r,i.firstChild))}function lp(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function cp(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var mu=null;
vendor: 4,410 bytes, line 10
10function P0(r,i,o){if(mu===null){var u=new Map,p=mu=new Map;p.set(o,u)}else p=mu,u=p.get(o),u||(u=new Map,p.set(o,u));if(u.has(r))return u;for(u.set(r,null),o=o.getElementsByTagName(r),p=0;p<o.length;p++){var y=o[p];if(!(y[ko]||y[qt]||r==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var w=y.getAttribute(i)||"";w=r+w;var A=u.get(w);A?A.push(y):u.set(w,[y])}}return u}function j0(r,i,o){r=r.ownerDocument||r,r.head.insertBefore(o,i==="title"?r.querySelector("head > title"):null)}function hC(r,i,o){if(o===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(r=i.disabled,typeof i.precedence=="string"&&r==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function L0(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function pC(r,i,o,u){if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=Ba(u.href),y=i.querySelector(hl(p));if(y){i=y._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(r.count++,r=gu.bind(r),i.then(r,r)),o.state.loading|=4,o.instance=y,Lt(y);return}y=i.ownerDocument||i,u=N0(u),(p=Gn.get(p))&&lp(u,p),y=y.createElement("link"),Lt(y);var w=y;w._p=new Promise(function(A,L){w.onload=A,w.onerror=L}),Gt(y,"link",u),o.instance=y}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=gu.bind(r),i.addEventListener("load",o),i.addEventListener("error",o))}}var up=0;function mC(r,i){return r.stylesheets&&r.count===0&&vu(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var u=setTimeout(function(){if(r.stylesheets&&vu(r,r.stylesheets),r.unsuspend){var y=r.unsuspend;r.unsuspend=null,y()}},6e4+i);0<r.imgBytes&&up===0&&(up=62500*Q1());var p=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&vu(r,r.stylesheets),r.unsuspend)){var y=r.unsuspend;r.unsuspend=null,y()}},(r.imgBytes>up?50:800)+i);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(u),clearTimeout(p)}}:null}function gu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vu(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var yu=null;function vu(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,yu=new Map,i.forEach(gC,r),yu=null,gu.call(r))}function gC(r,i){if(!(i.state.loading&4)){var o=yu.get(r);if(o)var u=o.get(null);else{o=new Map,yu.set(r,o);for(var p=r.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var w=p[y];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(o.set(w.dataset.precedence,w),u=w)}u&&o.set(null,u)}p=i.instance,w=p.getAttribute("data-precedence"),y=o.get(w)||u,y===u&&o.set(null,p),o.set(w,p),this.count++,u=gu.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),y?y.parentNode.insertBefore(p,y.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(p,r.firstChild)),i.state.loading|=4}}var ml={$$typeof:C,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function yC(r,i,o,u,p,y,w,A,L){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=ms(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ms(0),this.hiddenUpdates=ms(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function D0(r,i,o,u,p,y,w,A,L,V,W,ee){return r=new yC(r,i,o,w,L,V,W,ee,A),i=1,y===!0&&(i|=24),y=Tn(3,null,null,i),r.current=y,y.stateNode=r,i=Vf(),i.refCount++,r.pooledCache=i,i.refCount++,y.memoizedState={element:u,isDehydrated:o,cache:i}
vendor: 4,211 bytes, line 10
10,Kf(y),r}function I0(r){return r?(r=va,r):va}function U0(r,i,o,u,p,y){p=I0(p),u.context===null?u.context=p:u.pendingContext=p,u=xs(i),u.payload={element:o},y=y===void 0?null:y,y!==null&&(u.callback=y),o=Ts(r,u,i),o!==null&&(yn(o,r,i),Ko(o,r,i))}function z0(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<i?o:i}}function dp(r,i){z0(r,i),(r=r.alternate)&&z0(r,i)}function B0(r){if(r.tag===13||r.tag===31){var i=vi(r,67108864);i!==null&&yn(i,r,67108864),dp(r,67108864)}}function $0(r){if(r.tag===13||r.tag===31){var i=On();i=sa(i);var o=vi(r,i);o!==null&&yn(o,r,i),dp(r,i)}}var bu=!0;function vC(r,i,o,u){var p=z.T;z.T=null;var y=Y.p;try{Y.p=2,fp(r,i,o,u)}finally{Y.p=y,z.T=p}}function bC(r,i,o,u){var p=z.T;z.T=null;var y=Y.p;try{Y.p=8,fp(r,i,o,u)}finally{Y.p=y,z.T=p}}function fp(r,i,o,u){if(bu){var p=hp(u);if(p===null)Jh(r,i,u,wu,o),V0(r,u);else if(_C(p,r,i,o,u))u.stopPropagation();else if(V0(r,u),i&4&&-1<wC.indexOf(r)){for(;p!==null;){var y=oa(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var w=hr(y.pendingLanes);if(w!==0){var A=y;for(A.pendingLanes|=2,A.entangledLanes|=2;w;){var L=1<<31-Zt(w);A.entanglements[1]|=L,w&=~L}yr(y),(qe&6)===0&&(nu=Pt()+500,cl(0))}}break;case 31:case 13:A=vi(y,2),A!==null&&yn(A,y,2),su(),dp(y,2)}if(y=hp(u),y===null&&Jh(r,i,u,wu,o),y===p)break;p=y}p!==null&&u.stopPropagation()}else Jh(r,i,u,null,o)}}function hp(r){return r=mf(r),pp(r)}var wu=null;function pp(r){if(wu=null,r=aa(r),r!==null){var i=l(r);if(i===null)r=null;else{var o=i.tag;if(o===13){if(r=c(i),r!==null)return r;r=null}else if(o===31){if(r=d(i),r!==null)return r;r=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return wu=r,null}function q0(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(Ge()){case lt:return 2;case Dn:return 8;case Or:case Co:return 32;case kr:return 268435456;default:return 32}default:return 32}}var mp=!1,Ls=null,Ds=null,Is=null,gl=new Map,yl=new Map,Us=[],wC="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 V0(r,i){switch(r){case"focusin":case"focusout":Ls=null;break;case"dragenter":case"dragleave":Ds=null;break;case"mouseover":case"mouseout":Is=null;break;case"pointerover":case"pointerout":gl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":yl.delete(i.pointerId)}}function vl(r,i,o,u,p,y){return r===null||r.nativeEvent!==y?(r={blockedOn:i,domEventName:o,eventSystemFlags:u,nativeEvent:y,targetContainers:[p]},i!==null&&(i=oa(i),i!==null&&B0(i)),r):(r.eventSystemFlags|=u,i=r.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),r)}function _C(r,i,o,u,p){switch(i){case"focusin":return Ls=vl(Ls,r,i,o,u,p),!0;case"dragenter":return Ds=vl(Ds,r,i,o,u,p),!0;case"mouseover":return Is=vl(Is,r,i,o,u,p),!0;case"pointerover":var y=p.pointerId;
10return gl.set(y,vl(gl.get(y)||null,r,i,o,u,p)),!0;case"gotpointercapture":return y=p.pointerId,yl.set(y,vl(yl.get(y)||null,r,i,o,u,p)),!0}return!1}function H0(r){var i=aa(r.target);if(i!==null){var o=l(i);if(o!==null){if(i=o.tag,i===13){if(i=c(o),i!==null){r.blockedOn=i,sy(r.priority,function(){$0(o)});return}}else if(i===31){if(i=d(o),i!==null){r.blockedOn=i,sy(r.priority,function(){$0(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function _u(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var o=hp(r.nativeEvent);if(o===null){o=r.nativeEvent;var u=new o.constructor(o.type,o);pf=u,o.target.dispatchEvent(u),pf=null}else return i=oa(o),i!==null&&B0(i),r.blockedOn=o,!1;i.shift()}return!0}function F0(r,i,o){_u(r)&&o.delete(i)}function SC(){mp=!1,Ls!==null&&_u(Ls)&&(Ls=null),Ds!==null&&_u(Ds)&&(Ds=null),Is!==null&&_u(Is)&&(Is=null),gl.forEach(F0),yl.forEach(F0)}function Su(r,i){r.blockedOn===i&&(r.blockedOn=null,mp||(mp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,SC)))}var xu=null;function G0(r){xu!==r&&(xu=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){xu===r&&(xu=null);for(var i=0;i<r.length;i+=3){var o=r[i],u=r[i+1],p=r[i+2];if(typeof u!="function"){if(pp(u||o)===null)continue;break}var y=oa(o);y!==null&&(r.splice(i,3),i-=3,hh(y,{pending:!0,data:p,method:o.method,action:u},u,p))}}))}function qa(r){function i(L){return Su(L,r)}Ls!==null&&Su(Ls,r),Ds!==null&&Su(Ds,r),Is!==null&&Su(Is,r),gl.forEach(i),yl.forEach(i);for(var o=0;o<Us.length;o++){var u=Us[o];u.blockedOn===r&&(u.blockedOn=null)}for(;0<Us.length&&(o=Us[0],o.blockedOn===null);)H0(o),o.blockedOn===null&&Us.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var p=o[u],y=o[u+1],w=p[dn]||null;if(typeof y=="function")w||G0(o);else if(w){var A=null;if(y&&y.hasAttribute("formAction")){if(p=y,w=y[dn]||null)A=w.formAction;else if(pp(p)!==null)continue}else A=w.action;typeof A=="function"?o[u+1]=A:(o.splice(u,3),u-=3),G0(o)}}}function K0(){function r(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(w){return p=w})},focusReset:"manual",scroll:"manual"})}function i(){p!==null&&(p(),p=null),u||setTimeout(o,20)}function o(){if(!u&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,p=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(o,100),function(){u=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),p!==null&&(p(),p=null)}}}function gp(r){this._internalRoot=r}Tu.prototype.render=gp.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(s(409));var o=i.current,u=On();U0(o,u,r,i,null,null)},Tu.prototype.unmount=gp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;U0(r.current,2,null,r,null,null),su(),i[ia]=null}};function Tu(r){this._internalRoot=r}Tu.prototype.unstable_scheduleHydration=function(r){if(r){var i=of();r={blockedOn:null,target:r,priority:i};for(var o=0;o<Us.length&&i!==0&&i<Us[o].priority;o++);Us.splice(o,0,r),o===0&&H0(r)}};var Y0=t.version;if(Y0!=="19.2.5")throw Error(s(527,Y0,"19.2.5"));Y.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(s(188)):(r=Object.keys(r).join(","),Error(s(268,r)));return r=h(i),r=r!==null?g(r):null,r=r===null?null:r.stateNode,r};var xC={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eu.isDisabled&&Eu.supportsFiber)try{di=Eu.inject(xC),rn=Eu}catch{}}return wl.createRoot=function(r,i){if(!a(r))throw Error(s(299));var o=!1,u="",p=tb,y=nb,w=rb;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(w=i.onRecoverableError)),i=D0(r,1,!1,null,null,o,u,null,p,y,w,K0),r[ia]=i.current,Xh(r),new gp(i)},wl.hydrateRoot=function(r,i,o){if(!a(r))throw Error(s(299));var u=!1,p="",y=tb,w=nb,A=rb,L=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(A=o.onRecoverableError),o.formState!==void 0&&(L=o.formState)),i=D0(r,1,!0,i,o??null,u,p,L,y,w,A,K0),i.context=I0(null),o=i.current,u=On(),u=sa(u),p=xs(u),p.callback=null,Ts(o,p,u),o=u,i.current.lanes=o,at(i,o),yr(i),r[ia]=i.current,Xh(r),new Tu(i)},wl.version="19.2.5",wl}var sw;function jC(){if(sw)return bp.exports;sw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),bp.exports=PC(),bp.exports}var LC=jC(),DC="__TSS_CONTEXT",rm=Symbol.for("TSS_SERVER_FUNCTION"),IC="application/x-tss-framed",Qr={JSON:0,CHUNK:1,END:2,ERROR:3},UC=/;\s*v=(\d+)/;function zC(e){const t=e.match(UC);return t?parseInt(t[1],10):void 0}function BC(e){const t=zC(e);if(t!==void 0&&t!==1)throw new Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var QS=()=>window.__TSS_START_OPTIONS__;const WS=!1;function Ul(e){return e[e.length-1]}function $C(e){return typeof e=="function"}function Ui(e,t){return $C(e)?e(t):e}const XS=Object.prototype.hasOwnProperty,iw=Object.prototype.propertyIsEnumerable;function JS(e){for(const t in e)if(XS.call(e,t))return!0;return!1}const qC=()=>Object.create(null),Ni=(e,t)=>Ks(e,t,qC);function Ks(e,t,n=()=>({}),s=0){if(e===t)return e;if(s>500)return t;const a=t,l=lw(e)&&lw(a);if(!l&&!(id(e)&&id(a)))return a;const c=l?e:aw(e);if(!c)return a;const d=l?a:aw(a);if(!d)return a;const f=c.length,h=d.length,g=l?new Array(h):n();let m=0;for(let v=0;v<h;v++){const b=l?v:d[v],_=e[b],E=a[b];if(_===E){g[b]=_,(l?v<f:XS.call(e,b))&&m++;continue}if(_===null||E===null||typeof _!="object"||typeof E!="object"){g[b]=E;continue}const S=Ks(_,E,n,s+1);g[b]=S,S===_&&m++}return f===h&&m===f?e:g}function aw(e){const t=Object.getOwnPropertyNames(e);for(const a of t)if(!iw.call(e,a))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const s=t;for(const a of n){if(!iw.call(e,a))return!1;s.push(a)}return s}function id(e){if(!ow(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!ow(n)||!n.hasOwnProperty("isPrototypeOf"))}function ow(e){return Object.prototype.toString.call(e)==="[object Object]"}function lw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function an(e,t,n){if(e===t)return!0;
10if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let s=0,a=e.length;s<a;s++)if(!an(e[s],t[s],n))return!1;return!0}if(id(e)&&id(t)){const s=n?.ignoreUndefined??!0;if(n?.partial){for(const c in t)if((!s||t[c]!==void 0)&&!an(e[c],t[c],n))return!1;return!0}let a=0;if(!s)a=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&a++;let l=0;for(const c in t)if((!s||t[c]!==void 0)&&(l++,l>a||!an(e[c],t[c],n)))return!1;return a===l}return!1}function Qi(e){let t,n;const s=new Promise((a,l)=>{t=a,n=l});return s.status="pending",s.resolve=a=>{s.status="resolved",s.value=a,t(a),e?.(a)},s.reject=a=>{s.status="rejected",n(a)},s}function VC(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function zl(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function HC(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function cw(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return HC(t)}const FC=["http:","https:","mailto:","tel:"];function ad(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}const GC={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},KC=/[&><\u2028\u2029]/g;function YC(e){return e.replace(KC,t=>GC[t])}function _l(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,s="",a;for(;(a=t.exec(e))!==null;)s+=cw(e.slice(n,a.index))+a[0],n=t.lastIndex;s=s+cw(n?e.slice(n):e);let l=!1;return s.startsWith("//")&&(l=!0,s="/"+s.replace(/^\/+/,"")),{path:s,handledProtocolRelativeURL:l}}function QC(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function WC(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function wn(){throw new Error("Invariant failed")}function Bl(e){const t=new Map;let n,s;const a=l=>{l.next&&(l.prev?(l.prev.next=l.next,l.next.prev=l.prev,l.next=void 0,s&&(s.next=l,l.prev=s)):(l.next.prev=void 0,n=l.next,l.next=void 0,s&&(l.prev=s,s.next=l)),s=l)};return{get(l){const c=t.get(l);if(c)return a(c),c.value},set(l,c){if(t.size>=e&&n){const f=n;t.delete(f.key),f.next&&(n=f.next,f.next.prev=void 0),f===s&&(s=void 0)}const d=t.get(l);if(d)d.value=c,a(d);else{const f={key:l,value:c,prev:s};s&&(s.next=f),s=f,n||(n=f),t.set(l,f)}},clear(){t.clear(),n=void 0,s=void 0}}}const Ys=4,ZS=5;function XC(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function ex(e,t,n=new Uint16Array(6)){const s=e.indexOf("/",t),a=s===-1?e.length:s,l=e.substring(t,a);if(!l||!l.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n;if(l==="$"){const d=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=d,n[4]=d,n[5]=d,n}if(l.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=a,n[4]=a,n[5]=a,n;const c=XC(l);if(c){const[d,f]=c,h=l.charCodeAt(d+1);if(h===45){if(d+2<l.length&&l.charCodeAt(d+2)===36){const g=d+3,m=f;if(g<m)return n[0]=3,n[1]=t+d,n[2]=t+g,n[3]=t+m,n[4]=t+f+1,n[5]=a,n}}else if(h===36){const g=d+1,m=d+2;return m===f?(n[0]=2,n[1]=t+d,n[2]=t+g,n[3]=t+m,n[4]=t+f+1,n[5]=e.length,n):(n[0]=1,n[1]=t+d,n[2]=t+m,n[3]=t+f,n[4]=t+f+1,n[5]=a,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n}function Ld(e,t,n,s,a,l,c){c?.(n);let d=s;{const f=n.fullPath??n.from,h=f.length,g=n.options?.caseSensitive??e,m=n.options?.params?.parse??n.options?.parseParams;for(;d<h;){const b=ex(f,d,t);let _;const E=d,S=b[5];switch(d=S+1,l++,b[0]){case 0:{const x=f.substring(b[2],b[3]);if(g){const R=a.static?.get(x);if(R)_=R;else{a.static??=new Map;const C=zi(n.fullPath??n.from);C.parent=a,C.depth=l,_=C,a.static.set(x,C)}}else{const R=x.toLowerCase(),C=a.staticInsensitive?.get(R);if(C)_=C;else{a.staticInsensitive??=new Map;const O=zi(n.fullPath??n.from);O.parent=a,O.depth=l,_=O,a.staticInsensitive.set(R,O)}}break}case 1:{const x=f.substring(E,b[1]),R=f.substring(b[4],S),C=g&&!!(x||R),O=x?C?x:x.toLowerCase():void 0,I=R?C?R:R.toLowerCase():void 0,B=!m&&a.dynamic?.find(P=>!P.parse&&P.caseSensitive===C&&P.prefix===O&&P.suffix===I);if(B)_=B;else{const P=Tp(1,n.fullPath??n.from,C,O,I);_=P,P.depth=l,P.parent=a,a.dynamic??=[],a.dynamic.push(P)}break}case 3:{const x=f.substring(E,b[1]),R=f.substring(b[4],S),C=g&&!!(x||R),O=x?C?x:x.toLowerCase():void 0,I=R?C?R:R.toLowerCase():void 0,B=!m&&a.optional?.find(P=>!P.parse&&P.caseSensitive===C&&P.prefix===O&&P.suffix===I);if(B)_=B;else{const P=Tp(3,n.fullPath??n.from,C,O,I);
10_=P,P.parent=a,P.depth=l,a.optional??=[],a.optional.push(P)}break}case 2:{const x=f.substring(E,b[1]),R=f.substring(b[4],S),C=g&&!!(x||R),O=x?C?x:x.toLowerCase():void 0,I=R?C?R:R.toLowerCase():void 0,B=Tp(2,n.fullPath??n.from,C,O,I);_=B,B.parent=a,B.depth=l,a.wildcard??=[],a.wildcard.push(B)}}a=_}if(m&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const b=zi(n.fullPath??n.from);b.kind=ZS,b.parent=a,l++,b.depth=l,a.pathless??=[],a.pathless.push(b),a=b}const v=(n.path||!n.children)&&!n.isRoot;if(v&&f.endsWith("/")){const b=zi(n.fullPath??n.from);b.kind=Ys,b.parent=a,l++,b.depth=l,a.index=b,a=b}a.parse=m??null,a.priority=n.options?.params?.priority??0,v&&!a.route&&(a.route=n,a.fullPath=n.fullPath??n.from)}if(n.children)for(const f of n.children)Ld(e,t,f,d,a,l,c)}function xp(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Vs(e){if(e.pathless)for(const t of e.pathless)Vs(t);if(e.static)for(const t of e.static.values())Vs(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Vs(t);if(e.dynamic?.length){e.dynamic.sort(xp);for(const t of e.dynamic)Vs(t)}if(e.optional?.length){e.optional.sort(xp);for(const t of e.optional)Vs(t)}if(e.wildcard?.length){e.wildcard.sort(xp);for(const t of e.wildcard)Vs(t)}}function zi(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Tp(e,t,n,s,a){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:s,suffix:a}}function JC(e,t){const n=zi("/"),s=new Uint16Array(6);for(const a of e)Ld(!1,s,a,1,n,0);Vs(n),t.masksTree=n,t.flatCache=Bl(1e3)}function ZC(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const s=lg(e,t.masksTree);return t.flatCache.set(e,s),s}function eO(e,t,n,s,a){e||="/",s||="/";const l=t?`case\0${e}`:e;let c=a.singleCache.get(l);return c||(c=zi("/"),Ld(t,new Uint16Array(6),{from:e},1,c,0),a.singleCache.set(l,c)),lg(s,c,n)}function tO(e,t,n=!1){const s=n?e:`nofuzz\0${e}`,a=t.matchCache.get(s);if(a!==void 0)return a;e||="/";let l;try{l=lg(e,t.segmentTree,n)}catch(c){if(c instanceof URIError)l=null;else throw c}return l&&(l.branch=nx(l.route)),t.matchCache.set(s,l),l}function nO(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function rO(e,t=!1,n){const s=zi(e.fullPath),a=new Uint16Array(6),l={},c={};let d=0;return Ld(t,a,e,1,s,0,f=>{if(n?.(f,d),f.id in l&&wn(),l[f.id]=f,d!==0&&f.path){const h=nO(f.fullPath);(!c[h]||f.fullPath.endsWith("/"))&&(c[h]=f)}d++}),Vs(s),{processedTree:{segmentTree:s,singleCache:Bl(1e3),matchCache:Bl(1e3),flatCache:null,masksTree:null},routesById:l,routesByPath:c}}function lg(e,t,n=!1){const s=e.split("/"),a=iO(e,s,t,n);if(!a)return null;const[l]=tx(e,s,a);return{route:a.node.route,rawParams:l}}function tx(e,t,n){const s=sO(n.node);let a=null;const l=Object.create(null);let c=n.extract?.part??0,d=n.extract?.node??0,f=n.extract?.path??0,h=n.extract?.segment??0;for(;d<s.length;c++,d++,f++,h++){const g=s[d];if(g.kind===Ys)break;if(g.kind===ZS){h--,c--,f--;continue}const m=t[c],v=f;if(m&&(f+=m.length),g.kind===1){a??=n.node.fullPath.split("/");const b=a[h],_=g.prefix?.length??0;if(b.charCodeAt(_)===123){const E=g.suffix?.length??0,S=b.substring(_+2,b.length-E-1),x=m.substring(_,m.length-E);l[S]=decodeURIComponent(x)}else{const E=b.substring(1);l[E]=decodeURIComponent(m)}}else if(g.kind===3){if(n.skipped&1<<d){c--,f=v-1;continue}a??=n.node.fullPath.split("/");const b=a[h],_=g.prefix?.length??0,E=g.suffix?.length??0,S=b.substring(_+3,b.length-E-1),x=g.suffix||g.prefix?m.substring(_,m.length-E):m;x&&(l[S]=decodeURIComponent(x))}else if(g.kind===2){const b=g,_=e.substring(v+(b.prefix?.length??0),e.length-(b.suffix?.length??0)),E=decodeURIComponent(_);l["*"]=E,l._splat=E;break}}return n.rawParams&&Object.assign(l,n.rawParams),[l,{part:c,node:d,path:f,segment:h}]}function nx(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function sO(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function iO(e,t,n,s){if(e==="/"&&n.index)return{node:n.index,skipped:0};const a=!Ul(t),l=a&&e!=="/",c=t.length-(a?1:0),d=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let f=null,h=null;for(;d.length;){const g=d.pop(),{node:m,index:v,skipped:b,depth:_,statics:E,dynamics:S,optionals:x}=g;let{extract:R,rawParams:C}=g;if(m.kind===2&&m.route&&!Au(h,g))continue;if(m.parse){if(!uw(e,t,g))continue;C=g.rawParams,R=g.extract}s&&m.route&&m.kind!==Ys&&Au(f,g)&&(f=g);const O=v===c;if(O&&(m.route&&(!l||m.kind===Ys||m.kind===2)&&Au(h,g)&&(h=g),!m.optional&&!m.wildcard&&!m.index&&!m.pathless))continue;const I=O?void 0:t[v];let B;
10if(O&&m.index){const P={node:m.index,index:v,skipped:b,depth:_+1,statics:E,dynamics:S,optionals:x,extract:R,rawParams:C};let M=!0;if(m.index.parse&&(uw(e,t,P)||(M=!1)),M){if(!S&&!x&&!b&&aO(E,c))return P;Au(h,P)&&(h=P)}}if(m.wildcard)for(let P=m.wildcard.length-1;P>=0;P--){const M=m.wildcard[P],{prefix:F,suffix:K}=M;if(!(F&&(O||!(M.caseSensitive?I:B??=I.toLowerCase()).startsWith(F)))){if(K){if(O)continue;const ne=t.slice(v).join("/").slice(-K.length);if((M.caseSensitive?ne:ne.toLowerCase())!==K)continue}d.push({node:M,index:c,skipped:b,depth:_+1,statics:E,dynamics:S,optionals:x,extract:R,rawParams:C})}}if(m.optional){const P=b|1<<_,M=_+1;for(let F=m.optional.length-1;F>=0;F--){const K=m.optional[F];d.push({node:K,index:v,skipped:P,depth:M,statics:E,dynamics:S,optionals:x,extract:R,rawParams:C})}if(!O)for(let F=m.optional.length-1;F>=0;F--){const K=m.optional[F],{prefix:ne,suffix:re}=K;if(ne||re){const fe=K.caseSensitive?I:B??=I.toLowerCase();if(ne&&!fe.startsWith(ne)||re&&!fe.endsWith(re))continue}d.push({node:K,index:v+1,skipped:b,depth:M,statics:E,dynamics:S,optionals:x+Ru(c,v),extract:R,rawParams:C})}}if(!O&&m.dynamic&&I)for(let P=m.dynamic.length-1;P>=0;P--){const M=m.dynamic[P],{prefix:F,suffix:K}=M;if(F||K){const ne=M.caseSensitive?I:B??=I.toLowerCase();if(F&&!ne.startsWith(F)||K&&!ne.endsWith(K))continue}d.push({node:M,index:v+1,skipped:b,depth:_+1,statics:E,dynamics:S+Ru(c,v),optionals:x,extract:R,rawParams:C})}if(!O&&m.staticInsensitive){const P=m.staticInsensitive.get(B??=I.toLowerCase());P&&d.push({node:P,index:v+1,skipped:b,depth:_+1,statics:E+Ru(c,v),dynamics:S,optionals:x,extract:R,rawParams:C})}if(!O&&m.static){const P=m.static.get(I);P&&d.push({node:P,index:v+1,skipped:b,depth:_+1,statics:E+Ru(c,v),dynamics:S,optionals:x,extract:R,rawParams:C})}if(m.pathless){const P=_+1;for(let M=m.pathless.length-1;M>=0;M--){const F=m.pathless[M];d.push({node:F,index:v,skipped:b,depth:P,statics:E,dynamics:S,optionals:x,extract:R,rawParams:C})}}}if(h)return h;if(s&&f){let g=f.index;for(let v=0;v<f.index;v++)g+=t[v].length;const m=g===e.length?"/":e.slice(g);return f.rawParams??=Object.create(null),f.rawParams["**"]=decodeURIComponent(m),f}return null}function Ru(e,t){return 2**(e-t-1)}function aO(e,t){return e===2**(t-1)-1}function uw(e,t,n){let s,a;try{[s,a]=tx(e,t,n)}catch{return null}if(n.rawParams=s,n.extract=a,!n.node.parse)return!0;try{if(n.node.parse(s)===!1)return null}catch{}return!0}function Au(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ys)>(e.node.kind===Ys)||t.node.kind===Ys==(e.node.kind===Ys)&&t.depth>e.depth))):!0}function Wu(e){return cg(e.filter(t=>t!==void 0).join("/"))}function cg(e){return e.replace(/\/{2,}/g,"/")}function rx(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ns(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function sx(e){return ns(rx(e))}function od(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}
10function oO(e,t,n){return od(e,n)===od(t,n)}function lO({base:e,to:t,trailingSlash:n="never",cache:s}){const a=t.startsWith("/"),l=!a&&t===".";let c;if(s){c=a?t:l?e:e+"\0"+t;const h=s.get(c);if(h)return h}let d;if(l)d=e.split("/");else if(a)d=t.split("/");else{for(d=e.split("/");d.length>1&&Ul(d)==="";)d.pop();const h=t.split("/");for(let g=0,m=h.length;g<m;g++){const v=h[g];v===""?g?g===m-1&&d.push(v):d=[v]:v===".."?d.pop():v==="."||d.push(v)}}d.length>1&&(Ul(d)===""?n==="never"&&d.pop():n==="always"&&d.push(""));const f=cg(d.join("/"))||"/";return c&&s&&s.set(c,f),f}function cO(e){const t=new Map(e.map(a=>[encodeURIComponent(a),a])),n=Array.from(t.keys()).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(n,"g");return a=>a.replace(s,l=>t.get(l)??l)}function Ep(e,t,n){const s=t[e];return typeof s!="string"?s:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(s)?s:s.split("/").map(a=>fw(a,n)).join("/"):fw(s,n)}function dw({path:e,params:t,decoder:n,...s}){let a=!1;const l=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:l,isMissingParams:a};if(!e.includes("$"))return{interpolatedPath:e,usedParams:l,isMissingParams:a};const c=e.length;let d=0,f,h="";for(;d<c;){const g=d;f=ex(e,g,f);const m=f[5];if(d=m+1,g===m)continue;const v=f[0];if(v===0){h+="/"+e.substring(g,m);continue}if(v===2){const b=t._splat;l._splat=b,l["*"]=b;const _=e.substring(g,f[1]),E=e.substring(f[4],m);if(!b){a=!0,(_||E)&&(h+="/"+_+E);continue}const S=Ep("_splat",t,n);h+="/"+_+S+E;continue}if(v===1){const b=e.substring(f[2],f[3]);!a&&!(b in t)&&(a=!0),l[b]=t[b];const _=e.substring(g,f[1]),E=e.substring(f[4],m),S=Ep(b,t,n)??"undefined";h+="/"+_+S+E;continue}if(v===3){const b=e.substring(f[2],f[3]),_=t[b];if(_==null)continue;l[b]=_;const E=e.substring(g,f[1]),S=e.substring(f[4],m),x=Ep(b,t,n)??"";h+="/"+E+x+S;continue}}return e.endsWith("/")&&(h+="/"),{usedParams:l,interpolatedPath:h||"/",isMissingParams:a}}function fw(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function bo(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function Bt(e){return e?.isNotFound===!0}function ix(e,t=String){const n=new URLSearchParams;for(const s in e){const a=e[s];a!==void 0&&n.set(s,t(a))}return n.toString()}function Rp(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function uO(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[s,a]of t.entries()){const l=n[s];l==null?n[s]=Rp(a):Array.isArray(l)?l.push(Rp(a)):n[s]=[l,Rp(a)]}return n}const dO=hO(JSON.parse),fO=pO(JSON.stringify,JSON.parse);function hO(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=uO(t);for(const s in n){const a=n[s];if(typeof a=="string")try{n[s]=e(a)}catch{}}return n}}function pO(e,t){const n=typeof t=="function";function s(a){if(typeof a=="object"&&a!==null)try{return e(a)}catch{}else if(n&&typeof a=="string")try{return t(a),e(a)}catch{}return a}return a=>{const l=ix(a,s);return l?`?${l}`:""}}const Fi="__root__";function Ve(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function nn(e){return e instanceof Response&&!!e.options}function mO(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return Ve(e)}const sm=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},gO=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Dd=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Gi=(e,t,n=!0)=>{const s={...e.router.options.context??{}},a=n?t:t-1;for(let l=0;l<=a;l++){const c=e.matches[l];if(!c)continue;const d=e.router.getMatch(c.id);d&&Object.assign(s,d.__routeContext,d.__beforeLoadContext)}return s},hw=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,s=e.matches.findIndex(c=>c.routeId===e.router.routeTree.id),a=s>=0?s:0;let l=n?e.matches.findIndex(c=>c.routeId===n):e.firstBadMatchIndex??e.matches.length-1;l<0&&(l=a);for(let c=l;c>=0;c--){const d=e.matches[c];if(e.router.looseRoutesById[d.routeId].options.notFoundComponent)return c}return n?l:a},Qs=(e,t,n)=>{if(!(!nn(n)&&!Bt(n)))throw nn(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,s=>({...s,status:nn(n)?"redirected":Bt(n)?"notFound":s.status==="pending"?"success":s.status,context:Gi(e,t.index),isFetching:!1,error:n})),Bt(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),nn(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},ax=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},pw=(e,t,n)=>
10{const s=Gi(e,n);e.updateMatch(t,a=>({...a,context:s}))},Sl=(e,t,n)=>{const{id:s,routeId:a}=e.matches[t],l=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Qs(e,e.router.getMatch(s),n);try{l.options.onError?.(n)}catch(c){n=c,Qs(e,e.router.getMatch(s),n)}e.updateMatch(s,c=>(c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,c._nonReactive.loadPromise?.resolve(),{...c,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!nn(n)&&!Bt(n)&&(e.serialError??=n)},ox=(e,t,n,s)=>{if(s._nonReactive.pendingTimeout!==void 0)return;const a=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Dd(e,t)&&(n.options.loader||n.options.beforeLoad||cx(n))&&typeof a=="number"&&a!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const l=setTimeout(()=>{sm(e)},a);s._nonReactive.pendingTimeout=l}},yO=(e,t,n)=>{const s=e.router.getMatch(t);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;ox(e,t,n,s);const a=()=>{const l=e.router.getMatch(t);l.preload&&(l.status==="redirected"||l.status==="notFound")&&Qs(e,l,l.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(a):a()},vO=(e,t,n,s)=>{const a=e.router.getMatch(t);let l=a._nonReactive.loadPromise;a._nonReactive.loadPromise=Qi(()=>{l?.resolve(),l=void 0});const{paramsError:c,searchError:d}=a;c&&Sl(e,n,c),d&&Sl(e,n,d),ox(e,t,s,a);const f=new AbortController;let h=!1;const g=()=>{h||(h=!0,e.updateMatch(t,O=>({...O,isFetching:"beforeLoad",fetchCount:O.fetchCount+1,abortController:f})))},m=()=>{a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,O=>({...O,isFetching:!1}))};if(!s.options.beforeLoad){e.router.batch(()=>{g(),m()});return}a._nonReactive.beforeLoadPromise=Qi();const v={...Gi(e,n,!1),...a.__routeContext},{search:b,params:_,cause:E}=a,S=Dd(e,t),x={search:b,abortController:f,params:_,preload:S,context:v,location:e.location,navigate:O=>e.router.navigate({...O,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:S?"preload":E,matches:e.matches,routeId:s.id,...e.router.options.additionalContext},R=O=>{if(O===void 0){e.router.batch(()=>{g(),m()});return}(nn(O)||Bt(O))&&(g(),Sl(e,n,O)),e.router.batch(()=>{g(),e.updateMatch(t,I=>({...I,__beforeLoadContext:O})),m()})};let C;try{if(C=s.options.beforeLoad(x),zl(C))return g(),C.catch(O=>{Sl(e,n,O)}).then(R)}catch(O){g(),Sl(e,n,O)}R(C)},bO=(e,t)=>{const{id:n,routeId:s}=e.matches[t],a=e.router.looseRoutesById[s],l=()=>d(),c=()=>vO(e,n,t,a),d=()=>{if(ax(e,n))return;const f=yO(e,n,a);return zl(f)?f.then(c):c()};return l()},wO=(e,t,n)=>{const s=e.router.getMatch(t);if(!s||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const a={ssr:e.router.options.ssr,matches:e.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([n.options.head?.(a),n.options.scripts?.(a),n.options.headers?.(a)]).then(([l,c,d])=>({meta:l?.meta,links:l?.links,headScripts:l?.scripts,headers:d,scripts:c,styles:l?.styles}))},lx=(e,t,n,s,a)=>{const l=t[s-1],{params:c,loaderDeps:d,abortController:f,cause:h}=e.router.getMatch(n),g=Gi(e,s),m=Dd(e,n);return{params:c,deps:d,preload:!!m,parentMatchPromise:l,abortController:f,context:g,location:e.location,navigate:v=>e.router.navigate({...v,_fromLocation:e.location}),cause:m?"preload":h,route:a,...e.router.options.additionalContext}},mw=async(e,t,n,s,a)=>{try{const l=e.router.getMatch(n);try{(!(WS??e.router.isServer)||l.ssr===!0)&&$l(a);const c=a.options.loader,d=typeof c=="function"?c:c?.handler,f=d?.(lx(e,t,n,s,a)),h=!!d&&zl(f);if((h||a._lazyPromise||a._componentsPromise||a.options.head||a.options.scripts||a.options.headers||l._nonReactive.minPendingPromise)&&e.updateMatch(n,m=>({...m,isFetching:"loader"})),d){const m=h?await f:f;Qs(e,e.router.getMatch(n),m),m!==void 0&&e.updateMatch(n,v=>({...v,loaderData:m}))}a._lazyPromise&&await a._lazyPromise;const g=l._nonReactive.minPendingPromise;g&&await g,a._componentsPromise&&await a._componentsPromise,e.updateMatch(n,m=>({...m,error:void 0,context:Gi(e,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let d=c;if(d?.name==="AbortError"){if(l.abortController.signal.aborted){l._nonReactive.loaderPromise?.resolve(),l._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,h=>({...h,status:h.status==="pending"?"success":h.status,isFetching:!1,context:Gi(e,s)}));return}const f=l._nonReactive.minPendingPromise;f&&await f,Bt(c)&&await a.options.notFoundComponent?.preload?.(),Qs(e,e.router.getMatch(n),c);try{a.options.onError?.(c)}catch(h){d=h,Qs(e,e.router.getMatch(n),h)}!nn(d)&&!Bt(d)&&await $l(a,["errorComponent"]),e.updateMatch(n,h=>
10({...h,error:d,context:Gi(e,s),status:"error",isFetching:!1}))}}catch(l){const c=e.router.getMatch(n);c&&(c._nonReactive.loaderPromise=void 0),Qs(e,c,l)}},_O=async(e,t,n)=>{async function s(b,_,E,S,x){const R=Date.now()-_.updatedAt,C=b?x.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:x.options.staleTime??e.router.options.defaultStaleTime??0,O=x.options.shouldReload,I=typeof O=="function"?O(lx(e,t,a,n,x)):O,{status:B,invalid:P}=S,M=R>=C&&(!!e.forceStaleReload||S.cause==="enter"||E!==void 0&&E!==S.id);c=B==="success"&&(P||(I??M)),b&&x.options.preload===!1||(c&&!e.sync&&g?(d=!0,(async()=>{try{await mw(e,t,a,n,x);const F=e.router.getMatch(a);F._nonReactive.loaderPromise?.resolve(),F._nonReactive.loadPromise?.resolve(),F._nonReactive.loaderPromise=void 0,F._nonReactive.loadPromise=void 0}catch(F){nn(F)&&await e.router.navigate(F.options)}})()):B!=="success"||c?await mw(e,t,a,n,x):pw(e,a,n))}const{id:a,routeId:l}=e.matches[n];let c=!1,d=!1;const f=e.router.looseRoutesById[l],h=f.options.loader,g=((typeof h=="function"?void 0:h?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(ax(e,a)){if(!e.router.getMatch(a))return e.matches[n];pw(e,a,n)}else{const b=e.router.getMatch(a),_=e.router.stores.matchesId.get()[n],E=(_&&e.router.stores.matchStores.get(_)||null)?.routeId===l?_:e.router.stores.matches.get().find(x=>x.routeId===l)?.id,S=Dd(e,a);if(b._nonReactive.loaderPromise){if(b.status==="success"&&!e.sync&&!b.preload&&g)return b;await b._nonReactive.loaderPromise;const x=e.router.getMatch(a),R=x._nonReactive.error||x.error;R&&Qs(e,x,R),x.status==="pending"&&await s(S,b,E,x,f)}else{const x=S&&!e.router.stores.matchStores.has(a),R=e.router.getMatch(a);R._nonReactive.loaderPromise=Qi(),x!==R.preload&&e.updateMatch(a,C=>({...C,preload:x})),await s(S,b,E,R,f)}}const m=e.router.getMatch(a);d||(m._nonReactive.loaderPromise?.resolve(),m._nonReactive.loadPromise?.resolve(),m._nonReactive.loadPromise=void 0),clearTimeout(m._nonReactive.pendingTimeout),m._nonReactive.pendingTimeout=void 0,d||(m._nonReactive.loaderPromise=void 0),m._nonReactive.dehydrated=void 0;const v=d?m.isFetching:!1;return v!==m.isFetching||m.invalid!==!1?(e.updateMatch(a,b=>({...b,isFetching:v,invalid:!1})),e.router.getMatch(a)):m};async function gw(e){const t=e,n=[];gO(t.router)&&sm(t);let s;for(let v=0;v<t.matches.length;v++){try{const b=bO(t,v);zl(b)&&await b}catch(b){if(nn(b))throw b;if(Bt(b))s=b;else if(!t.preload)throw b;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const a=t.firstBadMatchIndex??t.matches.length,l=s&&!t.preload?hw(t,s):void 0,c=s&&t.preload?0:l!==void 0?Math.min(l+1,a):a;let d,f;for(let v=0;v<c;v++)n.push(_O(t,n,v));try{await Promise.all(n)}catch{const v=await Promise.allSettled(n);for(const b of v){if(b.status!=="rejected")continue;const _=b.reason;if(nn(_))throw _;Bt(_)?d??=_:f??=_}if(f!==void 0)throw f}const h=d??(s&&!t.preload?s:void 0);let g=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!h&&s&&t.preload)return t.matches;if(h){const v=hw(t,h);v===void 0&&wn();const b=t.matches[v],_=t.router.looseRoutesById[b.routeId],E=t.router.options?.defaultNotFoundComponent;!_.options.notFoundComponent&&E&&(_.options.notFoundComponent=E),h.routeId=b.routeId;const S=b.routeId===t.router.routeTree.id;t.updateMatch(b.id,x=>({...x,...S?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:h},isFetching:!1})),g=v,await $l(_,["notFoundComponent"])}else if(!t.preload){const v=t.matches[0];v.globalNotFound||t.router.getMatch(v.id)?.globalNotFound&&t.updateMatch(v.id,b=>({...b,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const v=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await $l(v,["errorComponent"])}for(let v=0;v<=g;v++){const{id:b,routeId:_}=t.matches[v],E=t.router.looseRoutesById[_];try{const S=wO(t,b,E);if(S){const x=await S;t.updateMatch(b,R=>({...R,...x}))}}catch(S){console.error(`Error executing head for route ${_}:`,S)}}const m=sm(t);if(zl(m)&&await m,h)throw h;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function yw(e,t){const n=t.map(s=>
10e.options[s]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function $l(e,t=Xu){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(s=>{const{id:a,...l}=s.options;Object.assign(e.options,l),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===Xu?(()=>{if(e._componentsPromise===void 0){const s=yw(e,Xu);s?e._componentsPromise=s.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():yw(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function cx(e){for(const t of Xu)if(e.options[t]?.preload)return!0;return!1}const Xu=["component","errorComponent","pendingComponent","notFoundComponent"];function SO(e){return{input:({url:t})=>{for(const n of e)t=im(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=ux(e[n],t);return t}}}function xO(e){const t=sx(e.basepath),n=`/${t}`,s=e.caseSensitive?n:n.toLowerCase(),a=`${s}/`;return{input:({url:l})=>{const c=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return c===s?l.pathname="/":c.startsWith(a)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=Wu(["/",t,l.pathname]),l)}}function im(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function ux(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function TO(e,t){const{createMutableStore:n,createReadonlyStore:s,batch:a,init:l}=t,c=new Map,d=new Map,f=new Map,h=n(e.status),g=n(e.loadedAt),m=n(e.isLoading),v=n(e.isTransitioning),b=n(e.location),_=n(e.resolvedLocation),E=n(e.statusCode),S=n(e.redirect),x=n([]),R=n([]),C=n([]),O=s(()=>Ap(c,x.get())),I=s(()=>Ap(d,R.get())),B=s(()=>Ap(f,C.get())),P=s(()=>x.get()[0]),M=s(()=>x.get().some(Y=>c.get(Y)?.get().status==="pending")),F=s(()=>({locationHref:b.get().href,resolvedLocationHref:_.get()?.href,status:h.get()})),K=s(()=>({status:h.get(),loadedAt:g.get(),isLoading:m.get(),isTransitioning:v.get(),matches:O.get(),location:b.get(),resolvedLocation:_.get(),statusCode:E.get(),redirect:S.get()})),ne=Bl(64);function re(Y){let X=ne.get(Y);return X||(X=s(()=>{const le=x.get();for(const te of le){const D=c.get(te);if(D&&D.routeId===Y)return D.get()}}),ne.set(Y,X)),X}const fe={status:h,loadedAt:g,isLoading:m,isTransitioning:v,location:b,resolvedLocation:_,statusCode:E,redirect:S,matchesId:x,pendingIds:R,cachedIds:C,matches:O,pendingMatches:I,cachedMatches:B,firstId:P,hasPending:M,matchRouteDeps:F,matchStores:c,pendingMatchStores:d,cachedMatchStores:f,__store:K,getRouteMatchStore:re,setMatches:de,setPending:be,setCached:z};de(e.matches),l?.(fe);function de(Y){Cp(Y,c,x,n,a)}function be(Y){Cp(Y,d,R,n,a)}function z(Y){Cp(Y,f,C,n,a)}return fe}function Ap(e,t){const n=[];for(const s of t){const a=e.get(s);a&&n.push(a.get())}return n}function Cp(e,t,n,s,a){const l=e.map(d=>d.id),c=new Set(l);a(()=>{for(const d of t.keys())c.has(d)||t.delete(d);for(const d of e){const f=t.get(d.id);if(!f){const h=s(d);h.routeId=d.routeId,t.set(d.id,h);continue}f.routeId=d.routeId,f.get()!==d&&f.set(d)}WC(n.get(),l)||n.set(l)})}var Js="__TSR_index",vw="popstate",bw="beforeunload";function EO(e){let t=e.getLocation();const n=new Set,s=c=>{t=e.getLocation(),n.forEach(d=>d({location:t,action:c}))},a=c=>{e.notifyOnIndexChange??!0?s(c):t=e.getLocation()},l=async({task:c,navigateOpts:d,...f})=>{if(d?.ignoreBlocker??!1){c();return}const h=e.getBlockers?.()??[],g=f.type==="PUSH"||f.type==="REPLACE";if(typeof document<"u"&&h.length&&g)for(const m of h){const v=ld(f.path,f.state);if(await m.blockerFn({currentLocation:t,nextLocation:v,action:f.type})){e.onBlocked?.();return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:c=>(n.add(c),()=>{n.delete(c)}),push:(c,d,f)=>{const h=t.state[Js];d=ww(h+1,d),l({task:()=>{e.pushState(c,d),s({type:"PUSH"})},navigateOpts:f,type:"PUSH",path:c,state:d})},replace:(c,d,f)=>{const h=t.state[Js];d=ww(h,d),l({task:()=>{e.replaceState(c,d),s({type:"REPLACE"})},navigateOpts:f,type:"REPLACE",path:c,state:d})},go:(c,d)=>
10{l({task:()=>{e.go(c),a({type:"GO",index:c})},navigateOpts:d,type:"GO"})},back:c=>{l({task:()=>{e.back(c?.ignoreBlocker??!1),a({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{l({task:()=>{e.forward(c?.ignoreBlocker??!1),a({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>t.state[Js]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const d=e.getBlockers?.()??[];return e.setBlockers([...d,c]),()=>{const f=e.getBlockers?.()??[];e.setBlockers?.(f.filter(h=>h!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:s}}function ww(e,t){t||(t={});const n=ug();return{...t,key:n,__TSR_key:n,[Js]:e}}function RO(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,s=t.history.replaceState;let a=[];const l=()=>a,c=M=>a=M,d=(M=>M),f=(()=>ld(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const M=ug();t.history.replaceState({[Js]:0,key:M,__TSR_key:M},"")}let h=f(),g,m=!1,v=!1,b=!1,_=!1;const E=()=>h;let S,x;const R=()=>{S&&(P._ignoreSubscribers=!0,(S.isPush?t.history.pushState:t.history.replaceState)(S.state,"",S.href),P._ignoreSubscribers=!1,S=void 0,x=void 0,g=void 0)},C=(M,F,K)=>{const ne=d(F);x||(g=h),h=ld(F,K),S={href:ne,state:K,isPush:S?.isPush||M==="push"},x||(x=Promise.resolve().then(()=>R()))},O=M=>{h=f(),P.notify({type:M})},I=async()=>{if(v){v=!1;return}const M=f(),F=M.state[Js]-h.state[Js],K=F===1,ne=F===-1,re=!K&&!ne||m;m=!1;const fe=re?"GO":ne?"BACK":"FORWARD",de=re?{type:"GO",index:F}:{type:ne?"BACK":"FORWARD"};if(b)b=!1;else{const be=l();if(typeof document<"u"&&be.length){for(const z of be)if(await z.blockerFn({currentLocation:h,nextLocation:M,action:fe})){v=!0,t.history.go(1),P.notify(de);return}}}h=f(),P.notify(de)},B=M=>{if(_){_=!1;return}let F=!1;const K=l();if(typeof document<"u"&&K.length)for(const ne of K){const re=ne.enableBeforeUnload??!0;if(re===!0){F=!0;break}if(typeof re=="function"&&re()===!0){F=!0;break}}if(F)return M.preventDefault(),M.returnValue=""},P=EO({getLocation:E,getLength:()=>t.history.length,pushState:(M,F)=>C("push",M,F),replaceState:(M,F)=>C("replace",M,F),back:M=>(M&&(b=!0),_=!0,t.history.back()),forward:M=>{M&&(b=!0),_=!0,t.history.forward()},go:M=>{m=!0,t.history.go(M)},createHref:M=>d(M),flush:R,destroy:()=>{t.history.pushState=n,t.history.replaceState=s,t.removeEventListener(bw,B,{capture:!0}),t.removeEventListener(vw,I)},onBlocked:()=>{g&&h!==g&&(h=g)},getBlockers:l,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener(bw,B,{capture:!0}),t.addEventListener(vw,I),t.history.pushState=function(...M){const F=n.apply(t.history,M);return P._ignoreSubscribers||O("PUSH"),F},t.history.replaceState=function(...M){const F=s.apply(t.history,M);return P._ignoreSubscribers||O("REPLACE"),F},P}function AO(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function ld(e,t){const n=AO(e),s=n.indexOf("#"),a=n.indexOf("?"),l=ug();return{href:n,pathname:n.substring(0,s>0?a>0?Math.min(s,a):s:a>0?a:n.length),hash:s>-1?n.substring(s):"",search:a>-1?n.slice(a,s===-1?void 0:s):"",state:t||{[Js]:0,key:l,__TSR_key:l}}}function ug(){return(Math.random()+1).toString(36).substring(7)}function CO(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function lo(e,t){const n=t,s=e;return{fromLocation:n,toLocation:s,pathChanged:n?.pathname!==s.pathname,hrefChanged:n?.href!==s.href,hashChanged:n?.hash!==s.hash}}const am=new WeakMap;var OO=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=n=>
10n(),this.update=n=>{const s=this.options,a=this.basepath??s?.basepath??"/",l=this.basepath===void 0,c=s?.rewrite;if(this.options={...s,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=cO(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=RO()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let g;this.resolvePathCache=Bl(1e3),g=this.buildRouteTree(),this.setRoutes(g)}if(!this.stores&&this.latestLocation){const g=this.getStoreConfig(this);this.batch=g.batch,this.stores=TO(NO(this.latestLocation),g),qO(this)}let d=!1;const f=this.options.basepath??"/",h=this.options.rewrite;if(l||a!==f||c!==h){this.basepath=f;const g=[],m=sx(f);m&&m!=="/"&&g.push(xO({basepath:f})),h&&g.push(h),this.rewrite=g.length===0?void 0:g.length===1?g[0]:SO(g),this.history&&this.updateLatestLocation(),d=!0}d&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=rO(this.routeTree,this.options.caseSensitive,(s,a)=>{s.init({originalIndex:a})});return this.options.routeMasks&&JC(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,s)=>{const a={eventType:n,fn:s};return this.subscribers.add(a),()=>{this.subscribers.delete(a)}},this.emit=n=>{this.subscribers.forEach(s=>{s.eventType===n.type&&s.fn(n)})},this.parseLocation=(n,s)=>{const a=({pathname:f,search:h,hash:g,href:m,state:v})=>
10{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(f)){const x=this.options.parseSearch(h),R=this.options.stringifySearch(x);return{href:f+R+g,publicHref:f+R+g,pathname:_l(f).path,external:!1,searchStr:R,search:Ni(s?.search,x),hash:_l(g.slice(1)).path,state:Ks(s?.state,v)}}const b=new URL(m,this.origin),_=im(this.rewrite,b),E=this.options.parseSearch(_.search),S=this.options.stringifySearch(E);return _.search=S,{href:_.href.replace(_.origin,""),publicHref:m,pathname:_l(_.pathname).path,external:!!this.rewrite&&_.origin!==this.origin,searchStr:S,search:Ni(s?.search,E),hash:_l(_.hash.slice(1)).path,state:Ks(s?.state,v)}},l=a(n),{__tempLocation:c,__tempKey:d}=l.state;if(c&&(!d||d===this.tempLocationKey)){const f=a(c);return f.state.key=l.state.key,f.state.__TSR_key=l.state.__TSR_key,delete f.state.__tempLocation,{...f,maskedLocation:l}}return l},this.resolvePathWithBase=(n,s)=>lO({base:n,to:s.includes("//")?cg(s):s,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,s,a)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:s},a):this.matchRoutesInternal(n,s),this.getMatchedRoutes=n=>MO({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const s=this.getMatch(n);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const s=this.stores.matchStores.get(n)?.get();s&&(s.status==="pending"||s.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const s=(l={})=>{const c=l._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutesLightweight(c);l.from;const f=l.unsafeRelative==="path"?c.pathname:l.from??d.fullPath,h=l.to?`${l.to}`:void 0,g=d.search,m=Object.assign(Object.create(null),d.params),v=h?.charCodeAt(0)===47?"/":this.resolvePathWithBase(f,"."),b=h?this.resolvePathWithBase(v,h):v,_=l.params===!1||l.params===null?Object.create(null):(l.params??!0)===!0?m:Object.assign(m,Ui(l.params,m)),E=this.routesByPath[ns(b)];let S;if(E)S=this.getRouteBranch(E);else if(b.includes("$"))S=[];else{const ne=this.getMatchedRoutes(b);S=ne.matchedRoutes,this.options.notFoundRoute&&(!ne.foundRoute||ne.foundRoute.path!=="/"&&ne.routeParams["**"])&&(S=[...S,this.options.notFoundRoute])}if(S.length&&JS(_))for(const ne of S){const re=ne.options.params?.stringify??ne.options.stringifyParams;if(re)try{Object.assign(_,re(_))}catch{}}const x=n.leaveParams?b:_l(dw({path:b,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let R=g;if(n._includeValidateSearch&&this.options.search?.strict){const ne={};S.forEach(re=>{if(re.options.validateSearch)try{Object.assign(ne,Ju(re.options.validateSearch,{...ne,...R}))}catch{}}),R=ne}R=PO({search:R,dest:l,destRoutes:S,_includeValidateSearch:n._includeValidateSearch}),R=Ni(g,R);const C=this.options.stringifySearch(R),O=l.hash===!0?c.hash:l.hash?Ui(l.hash,c.hash):void 0,I=O?`#${O}`:"";let B=l.state===!0?c.state:l.state?Ui(l.state,c.state):{};B=Ks(c.state,B);const P=`${x}${C}${I}`;let M,F,K=!1;if(this.rewrite){const ne=new URL(P,this.origin),re=ux(this.rewrite,ne);M=ne.href.replace(ne.origin,""),re.origin!==this.origin?(F=re.href,K=!0):F=re.pathname+re.search+re.hash}else M=QC(P),F=M;return{publicHref:F,href:M,pathname:x,search:R,searchStr:C,state:B,hash:O??"",external:K,unmaskOnReload:l.unmaskOnReload}},a=(l={},c)=>{const d=s(l);let f=c?s(c):void 0;if(!f){const h=Object.create(null);if(this.options.routeMasks){const g=ZC(d.pathname,this.processedTree);if(g){Object.assign(h,g.rawParams);const{from:m,params:v,...b}=g.route,_=v===!1||v===null?Object.create(null):(v??!0)===!0?h:Object.assign(h,Ui(v,h));c={from:n.from,...b,params:_},f=s(c)}}}return f&&(d.maskedLocation=f),d};return n.mask?a(n,{from:n.from,...n.mask}):a(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:s,...a})=>{let l;const c=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(m=>{a.state[m]=this.latestLocation.state[m]}
10);const g=an(a.state,this.latestLocation.state);return h.forEach(m=>{delete a.state[m]}),g},d=ns(this.latestLocation.href)===ns(a.href);let f=this.commitLocationPromise;if(this.commitLocationPromise=Qi(()=>{f?.resolve(),f=void 0}),d&&c())this.load();else{let{maskedLocation:h,hashScrollIntoView:g,...m}=a;h&&(m={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...m,search:m.searchStr,state:{...m.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(m.unmaskOnReload??this.options.unmaskOnReload??!1)&&(m.state.__tempKey=this.tempLocationKey)),m.state.__hashScrollIntoViewOptions=g??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,l=a.replace?"REPLACE":"PUSH",this.history[l==="REPLACE"?"replace":"push"](m.publicHref,m.state,{ignoreBlocker:s})}return this.resetNextScroll=a.resetScroll??!0,this.history.subscribers.size||this.load(l?{action:{type:l}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:s,hashScrollIntoView:a,viewTransition:l,ignoreBlocker:c,href:d,...f}={})=>{if(d){const m=this.history.location.state.__TSR_index,v=ld(d,{__TSR_index:n?m:m+1}),b=new URL(v.pathname,this.origin);f.to=im(this.rewrite,b).pathname,f.search=this.options.parseSearch(v.search),f.hash=v.hash.slice(1)}const h=this.buildLocation({...f,_includeValidateSearch:!0});this.pendingBuiltLocation=h;const g=this.commitLocation({...h,viewTransition:l,replace:n,resetScroll:s,hashScrollIntoView:a,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===h&&(this.pendingBuiltLocation=void 0)}),g},this.navigate=async({to:n,reloadDocument:s,href:a,publicHref:l,...c})=>{let d=!1;if(a)try{new URL(`${a}`),d=!0}catch{}if(d&&!s&&(s=!0),s){if(n!==void 0||!a){const h=this.buildLocation({to:n,...c});a=a??h.publicHref,l=l??h.publicHref}const f=!d&&l?l:a;if(ad(f,this.protocolAllowlist))return Promise.resolve();if(!c.ignoreBlocker){const h=this.history.getBlockers?.()??[];for(const g of h)if(g?.blockerFn&&await g.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return c.replace?window.location.replace(f):window.location.href=f,Promise.resolve()}return this.buildAndCommitLocation({...c,href:a,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),s=this.stores.cachedMatches.get().filter(a=>!n.some(l=>l.id===a.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(s)})},this.load=async n=>{const s=n?.action?.type;let a,l,c;const d=this.stores.resolvedLocation.get()??this.stores.location.get();for(c=new Promise(h=>{this.startTransition(async()=>{try{this.beforeLoad(),s?am.set(this.latestLocation,s):am.delete(this.latestLocation);const g=this.latestLocation,m=lo(g,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...m}),this.emit({type:"onBeforeLoad",...m}),await gw({router:this,sync:n?.sync,forceStaleReload:d.href===g.href,matches:this.stores.pendingMatches.get(),location:g,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let v=null,b=null,_=null,E=null;this.batch(()=>{const S=this.stores.pendingMatches.get(),x=S.length,R=this.stores.matches.get();v=x?R.filter(I=>!this.stores.pendingMatchStores.has(I.id)):null;const C=new Set;for(const I of this.stores.pendingMatchStores.values())I.routeId&&C.add(I.routeId);const O=new Set;for(const I of this.stores.matchStores.values())I.routeId&&O.add(I.routeId);b=x?R.filter(I=>!C.has(I.routeId)):null,_=x?S.filter(I=>!O.has(I.routeId)):null,E=x?S.filter(I=>O.has(I.routeId)):R,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),x&&(this.stores.setMatches(S),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...v.filter(I=>I.status!=="error"&&I.status!=="notFound"&&I.status!=="redirected")]),this.clearExpiredCache())});for(const[S,x]of[[b,"onLeave"],[_,"onEnter"],[E,"onStay"]])if(S)for(const R of S)this.looseRoutesById[R.routeId].options[x]?.(R)})})}})}catch(g){nn(g)?(a=g,this.navigate({...a.options,replace:!0,ignoreBlocker:!0})):Bt(g)&&(l=g);const m=a?a.status:l?404:this.stores.matches.get().some(v=>v.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(m),this.stores.redirect.set(a)})}this.latestLoadPromise===c&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),h()})}),this.latestLoadPromise=c,await c;this.latestLoadPromise&&c!==this.latestLoadPromise;)await this.latestLoadPromise;let f;this.hasNotFoundMatch()?f=404:this.stores.matches.get().some(h=>h.status==="error")&&(f=500),f!==void 0&&this.stores.statusCode.set(f)},this.startViewTransition=n=>
10{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let a;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const l=this.latestLocation,c=this.stores.resolvedLocation.get(),d=typeof s.types=="function"?s.types(lo(l,c)):s.types;if(d===!1){n();return}a={update:n,types:d}}else a=n;document.startViewTransition(a)}else n()},this.updateMatch=(n,s)=>{this.startTransition(()=>{const a=this.stores.pendingMatchStores.get(n);if(a){a.set(s);return}const l=this.stores.matchStores.get(n);if(l){l.set(s);return}const c=this.stores.cachedMatchStores.get(n);if(c){const d=s(c.get());d.status==="redirected"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(f=>f.filter(h=>h!==n)):c.set(d)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const s=a=>n?.filter?.(a)??!0?{...a,invalid:!0,...n?.forcePending||a.status==="error"||a.status==="notFound"?{status:"pending",error:void 0}:void 0}:a;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(s)),this.stores.setCached(this.stores.cachedMatches.get().map(s)),this.stores.setPending(this.stores.pendingMatches.get().map(s))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const s=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const a=n.options._builtLocation??this.buildLocation(n.options),l=this.getParsedLocationHref(a);n.options.href=l,n.headers.set("Location",l)}else if(s)try{const a=new URL(s);if(this.origin&&a.origin===this.origin){const l=a.pathname+a.search+a.hash;n.options.href=l,n.headers.set("Location",l)}}catch{}if(n.options.href&&!n.options._builtLocation&&ad(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const s=n?.filter;s!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(a=>!s(a))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),s=a=>{const l=this.looseRoutesById[a.routeId];if(!l.options.loader)return!0;const c=(a.preload?l.options.preloadGcTime??this.options.defaultPreloadGcTime:l.options.gcTime??this.options.defaultGcTime)??300*1e3;return a.status==="error"?!0:n-a.updatedAt>=c};this.clearCache({filter:s})},this.loadRouteChunk=$l,this.preloadRoute=async n=>{const s=n._builtLocation??this.buildLocation(n);let a=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:n});const l=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),c=new Set([...l,...this.stores.cachedIds.get()]),d=a.filter(f=>!c.has(f.id));if(d.length){const f=this.stores.cachedMatches.get();this.stores.setCached([...f,...d])}try{return a=await gw({router:this,matches:a,location:s,preload:!0,updateMatch:(f,h)=>{l.has(f)?a=a.map(g=>g.id===f?h(g):g):this.updateMatch(f,h)}}),a}catch(f){if(nn(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:s});Bt(f)||console.error(f);return}},this.matchRoute=(n,s)=>{const a={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},l=this.buildLocation(a);if(s?.pending&&this.stores.status.get()!=="pending")return!1;const c=(s?.pending===void 0?!this.stores.isLoading.get():s.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),d=eO(l.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,c.pathname,this.processedTree);return!d||n.params&&!an(d.rawParams,n.params,{partial:!0})?!1:s?.includeSearch??!0?an(c.search,l.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??fO,parseSearch:e.parseSearch??dO,protocolAllowlist:e.protocolAllowlist??FC}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}
10isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=nx(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:s,routeParams:a}=n;let{matchedRoutes:l}=n,c=!1;(s?s.path!=="/"&&a["**"]:ns(e.pathname))&&(this.options.notFoundRoute?l=[...l,this.options.notFoundRoute]:c=!0);const d=c?LO(this.options.notFoundMode,l):void 0,f=new Array(l.length),h=new Map;for(const g of this.stores.matchStores.values())g.routeId&&h.set(g.routeId,g.get());for(let g=0;g<l.length;g++){const m=l[g],v=f[g-1];let b,_,E;{const re=v?.search??e.search,fe=v?._strictSearch??void 0;try{const de=Ju(m.options.validateSearch,{...re})??void 0;b={...re,...de},_={...fe,...de},E=void 0}catch(de){let be=de;if(de instanceof cd||(be=new cd(de.message,{cause:de})),t?.throwOnError)throw be;b=re,_={},E=be}}const S=m.options.loaderDeps?.({search:b})??"",x=S?JSON.stringify(S):"",{interpolatedPath:R,usedParams:C}=dw({path:m.fullPath,params:a,decoder:this.pathParamsDecoder,server:this.isServer}),O=m.id+R+x,I=this.getMatch(O),B=h.get(m.id),P=I?._strictParams??C;let M;if(!I)try{_w(m,P)}catch(re){if(Bt(re)||nn(re)?M=re:M=new kO(re.message,{cause:re}),t?.throwOnError)throw M}Object.assign(a,P);const F=B?"stay":"enter";let K;if(I)K={...I,cause:F,params:B?.params??a,_strictParams:P,search:Ni(B?B.search:I.search,b),_strictSearch:_};else{const re=m.options.loader||m.options.beforeLoad||m.lazyFn||cx(m)?"pending":"success";K={id:O,ssr:m.options.ssr,index:g,routeId:m.id,params:B?.params??a,_strictParams:P,pathname:R,updatedAt:Date.now(),search:B?Ni(B.search,b):b,_strictSearch:_,searchError:void 0,status:re,isFetching:!1,error:void 0,paramsError:M,__routeContext:void 0,_nonReactive:{loadPromise:Qi()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:F,loaderDeps:B?Ks(B.loaderDeps,S):S,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}t?.preload||(K.globalNotFound=d===m.id),K.searchError=E;const ne=this.getParentContext(v);
10K.context={...ne,...K.__routeContext,...K.__beforeLoadContext},f[g]=K}for(let g=0;g<f.length;g++){const m=f[g],v=this.looseRoutesById[m.routeId],b=this.getMatch(m.id),_=h.get(m.routeId);if(m.params=_?Ni(_.params,a):a,!b){const E=f[g-1],S=this.getParentContext(E);if(v.options.context){const x={deps:m.loaderDeps,params:m.params,context:S??{},location:e,navigate:R=>this.navigate({...R,_fromLocation:e}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:f,routeId:v.id};m.__routeContext=v.options.context(x)??void 0}m.context={...S,...m.__routeContext,...m.__beforeLoadContext}}}return f}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),s=Ul(t),a={...e.search};for(const h of t)try{Object.assign(a,Ju(h.options.validateSearch,a))}catch{}const l=Ul(this.stores.matchesId.get()),c=l&&this.stores.matchStores.get(l)?.get(),d=c&&c.routeId===s.id&&c.pathname===e.pathname;let f;if(d)f=c.params;else{const h=Object.assign(Object.create(null),n);for(const g of t)try{_w(g,h)}catch{}f=h}return{matchedRoutes:t,fullPath:s.fullPath,search:a,params:f}}},cd=class extends Error{},kO=class extends Error{};function NO(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Ju(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new cd("Async validation not supported");if(n.issues)throw new cd(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function MO({pathname:e,routesById:t,processedTree:n}){const s=Object.create(null),a=ns(e);let l;const c=tO(a,n,!0);return c&&(l=c.route,Object.assign(s,c.rawParams)),{matchedRoutes:c?.branch||[t.__root__],routeParams:s,foundRoute:l}}function PO({search:e,dest:t,destRoutes:n,_includeValidateSearch:s}){return jO(n)(e,t,s??!1)}function jO(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const a of e){if("search"in a.options)a.options.search?.middlewares&&t.middlewares.push(...a.options.search.middlewares);else if(a.options.preSearchFilters||a.options.postSearchFilters){const l=({search:c,next:d})=>{let f=c;"preSearchFilters"in a.options&&a.options.preSearchFilters&&(f=a.options.preSearchFilters.reduce((g,m)=>m(g),c));const h=d(f);return"postSearchFilters"in a.options&&a.options.postSearchFilters?a.options.postSearchFilters.reduce((g,m)=>m(g),h):h};t.middlewares.push(l)}if(a.options.validateSearch){const l=({search:c,next:d})=>{const f=d(c);if(!t._includeValidateSearch)return f;try{return{...f,...Ju(a.options.validateSearch,f)??void 0}}catch{return f}};t.middlewares.push(l)}}const n=({search:a})=>{const l=t.dest;return l.search?l.search===!0?a:Ui(l.search,a):{}};t.middlewares.push(n);const s=(a,l,c)=>{if(a>=c.length)return l;const d=c[a];return d({search:l,next:h=>s(a+1,h,c)})};return function(l,c,d){return t.dest=c,t._includeValidateSearch=d,s(0,l,t.middlewares)}}function LO(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const s=t[n];if(s.children)return s.id}return Fi}function _w(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const s=n(t);if(s===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,s)}}function DO(){try{return sessionStorage}catch{return}}const IO="tsr-scroll-restoration-v1_3",dx=DO();function UO(){try{return JSON.parse(dx?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function zO(){try{dx?.setItem(IO,JSON.stringify(Qa))}catch{}}const Qa=UO(),Sw="data-scroll-restoration-id",BO=e=>e.state.__TSR_key||e.href;function $O(e){const t=e.getAttribute(Sw);if(t)return`[${Sw}="${t}"]`;let n="",s=e,a;for(;a=s.parentNode;){let l=1,c=s;for(;c=c.previousElementSibling;)l++;const d=`${s.localName}:nth-child(${l})`;n=n?`${d} > ${n}`:d,s=a}return n}let Cu=!1;const Wa="window";function om(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function xw(e){const t=[];for(const n of e){if(n===Wa)continue;const s=om(n);
10s&&t.push(s)}return t}function qO(e,t){if(e.options.scrollRestoration&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,Cu=!1;const n=e.options.getScrollRestorationKey||BO,s=new Map,a=(d,f,h)=>{const g=s.get(d)||{};g.scrollX=f,g.scrollY=h,s.set(d,g)};history.scrollRestoration="manual";const l=d=>{if(!(Cu||!e.isScrollRestoring))if(d.target===document)a(Wa,scrollX,scrollY);else{const f=d.target;a(f,f.scrollLeft,f.scrollTop)}},c=d=>{if(!e.isScrollRestoring)return;const f=Qa[d]||={};for(const[h,g]of s)h===Wa?f[Wa]=g:h.isConnected&&(f[$O(h)]=g)};document.addEventListener("scroll",l,!0),e.subscribe("onBeforeLoad",d=>{d.fromLocation&&c(n(d.fromLocation)),s.clear()}),addEventListener("pagehide",()=>{c(n(e.stores.resolvedLocation.get()??e.stores.location.get())),zO()}),e.subscribe("onRendered",d=>{const f=e.options.scrollRestorationBehavior,h=e.options.scrollToTopSelectors,g=e.resetNextScroll;let m;if(s.clear(),g||(e.resetNextScroll=!0),typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const v=n(d.toLocation),b=d.fromLocation&&n(d.fromLocation);if(e.isScrollRestoring&&b&&b!==v){const _=Qa[b];if(_){let E=Qa[v];for(const S in _){if(S===Wa){if(g)continue}else{const x=om(S);if(!x||g&&h&&(m??=xw(h),m.includes(x)))continue}E||(E=Qa[v]={}),E[S]??=_[S]}}}Cu=!0;try{const _=d.toLocation.hash,E=d.toLocation.state.__hashScrollIntoViewOptions??!0;let S=!1;if(g){const x=am.get(d.toLocation),R=_&&E&&(x==="PUSH"||x==="REPLACE"),C=e.isScrollRestoring?Qa[v]:void 0;if(C)for(const O in C){const{scrollX:I,scrollY:B}=C[O];if(O===Wa){if(R)continue;scrollTo({top:B,left:I,behavior:f}),S=!0}else{const P=om(O);P&&(P.scrollLeft=I,P.scrollTop=B)}}if(!S&&!_){const O={top:0,left:0,behavior:f};if(scrollTo(O),h){m??=xw(h);for(const I of m)I.scrollTo(O)}}}!S&&_&&E&&document.getElementById(_)?.scrollIntoView(E)}finally{Cu=!1}})}const Sr=Symbol.for("TSR_DEFERRED_PROMISE");function VO(e,t){const n=e;return n[Sr]||(n[Sr]={status:"pending"},n.then(s=>{n[Sr].status="success",n[Sr].data=s}).catch(s=>{n[Sr].status="error",n[Sr].error={data:CO(s),__isServerError:!0}})),n}const HO="Error preloading route! ☝️";function fx(e,t){if(e)return typeof e=="string"?e:e[t]}function FO(e){return e?.scriptFormat??"module"}function GO(e,t,n){const s=KO(t),a=fx(n,"script")??s.crossOrigin;return{...FO(e)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:s.href,...a?{crossOrigin:a}:{}}}function KO(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function Ou(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const n=new Set;for(const s of t){const a=JSON.stringify(s);n.has(a)||(n.add(a),e.push(s))}}function YO(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}var hx=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,s=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=Fi:this.parentRoute||wn();let a=s?Fi:n?.path;a&&a!=="/"&&(a=rx(a));const l=n?.id||a;let c=s?Fi:Wu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,l]);a==="__root__"&&(a="/"),c!=="__root__"&&(c=Wu(["/",c]));const d=c==="__root__"?"/":Wu([this.parentRoute.fullPath,a]);this._path=a,this._id=c,this._fullPath=d,this._to=ns(d)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>Ve({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},QO=class extends hx{constructor(e){super(e)}},WO=(e=>(e[e.AggregateError=1]="AggregateError",e[e.ArrowFunction=2]="ArrowFunction",e[e.ErrorPrototypeStack=4]="ErrorPrototypeStack",e[e.ObjectAssign=8]="Ob
10jectAssign",e[e.BigIntTypedArray=16]="BigIntTypedArray",e[e.RegExp=32]="RegExp",e))(WO||{}),ss=Symbol.asyncIterator,px=Symbol.hasInstance,co=Symbol.isConcatSpreadable,is=Symbol.iterator,mx=Symbol.match,gx=Symbol.matchAll,yx=Symbol.replace,vx=Symbol.search,bx=Symbol.species,wx=Symbol.split,_x=Symbol.toPrimitive,uo=Symbol.toStringTag,Sx=Symbol.unscopables,xx={[ss]:0,[px]:1,[co]:2,[is]:3,[mx]:4,[gx]:5,[yx]:6,[vx]:7,[bx]:8,[wx]:9,[_x]:10,[uo]:11,[Sx]:12},XO={0:ss,1:px,2:co,3:is,4:mx,5:gx,6:yx,7:vx,8:bx,9:wx,10:_x,11:uo,12:Sx},k=void 0,JO={2:!0,3:!1,1:k,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},ZO={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},ek={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function $e(e,t,n,s,a,l,c,d,f,h,g,m){return{t:e,i:t,s:n,c:s,m:a,p:l,e:c,a:d,f,b:h,o:g,l:m}}function si(e){return $e(2,k,e,k,k,k,k,k,k,k,k,k)}var Tx=si(2),Ex=si(3),tk=si(1),nk=si(0),rk=si(4),sk=si(5),ik=si(6),ak=si(7);function ok(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case`
11`: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 k}}function ii(e){let t="",n=0,s;for(let a=0,l=e.length;a<l;a++)s=ok(e[a]),s&&(t+=e.slice(n,a)+s,n=a+1);return n===0?t=e:t+=e.slice(n),t}function lk(e){switch(e){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return`
12`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return"	";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return e}}function ai(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,lk)}var ku="__SEROVAL_REFS__",Rx=new Map,ro=new Map;function Ax(e){return Rx.has(e)}function ck(e){return ro.has(e)}function uk(e){if(Ax(e))return Rx.get(e);throw new $k(e)}function dk(e){if(ck(e))return ro.get(e);throw new qk(e)}typeof globalThis<"u"?Object.defineProperty(globalThis,ku,{value:ro,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,ku,{value:ro,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,ku,{value:ro,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,ku,{value:ro,configurable:!0,writable:!1,enumerable:!1});function dg(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function fk(e){let t=ZO[dg(e)];return e.name!==t?{name:e.name}:e.constructor.name!==t?{name:e.constructor.name}:{}}function Cx(e,t){let n=fk(e),s=Object.getOwnPropertyNames(e);for(let a=0,l=s.length,c;a<l;a++)c=s[a],c!=="name"&&c!=="message"&&(c==="stack"?t&4&&(n=n||{},n[c]=e[c]):(n=n||{},n[c]=e[c]));return n}function Ox(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}function hk(e){switch(e){case Number.POSITIVE_INFINITY:return sk;case Number.NEGATIVE_INFINITY:return ik}return e!==e?ak:Object.is(e,-0)?rk:$e(0,k,e,k,k,k,k,k,k,k,k,k)}function kx(e){return $e(1,k,ii(e),k,k,k,k,k,k,k,k,k)}function pk(e){return $e(3,k,""+e,k,k,k,k,k,k,k,k,k)}function mk(e){return $e(4,e,k,k,k,k,k,k,k,k,k,k)}function gk(e,t){let n=t.valueOf();return $e(5,e,n!==n?"":t.toISOString(),k,k,k,k,k,k,k,k,k)}function yk(e,t){return $e(6,e,k,ii(t.source),t.flags,k,k,k,k,k,k,k)}function vk(e,t){return $e(17,e,xx[t],k,k,k,k,k,k,k,k,k)}function bk(e,t){return $e(18,e,ii(uk(t)),k,k,k,k,k,k,k,k,k)}function wk(e,t,n){return $e(25,e,n,ii(t),k,k,k,k,k,k,k,k)}function _k(e,t,n){return $e(9,e,k,k,k,k,k,n,k,k,Ox(t),k)}function Sk(e,t){return $e(21,e,k,k,k,k,k,k,t,k,k,k)}function xk(e,t,n){return $e(15,e,k,t.constructor.name,k,k,k,k,n,t.byteOffset,k,t.length)}function Tk(e,t,n){return $e(16,e,k,t.constructor.name,k,k,k,k,n,t.byteOffset,k,t.byteLength)}function Ek(e,t,n){return $e(20,e,k,k,k,k,k,k,n,t.byteOffset,k,t.byteLength)}function Rk(e,t,n){return $e(13,e,dg(t),k,ii(t.message),n,k,k,k,k,k,k)}function Ak(e,t,n){return $e(14,e,dg(t),k,ii(t.message),n,k,k,k,k,k,k)}function Ck(e,t){return $e(7,e,k,k,k,k,k,t,k,k,k,k)}function Ok(e,t){return $e(28,k,k,k,k,k,k,[e,t],k,k,k,k)}function kk(e,t){return $e(30,k,k,k,k,k,k,[e,t],k,k,k,k)}function Nk(e,t,n){return $e(31,e,k,k,k,k,k,n,t,k,k,k)}function Mk(e,t){return $e(32,e,k,k,k,k,k,k,t,k,k,k)}function Pk(e,t){return $e(33,e,k,k,k,k,k,k,t,k,k,k)}function jk(e,t){return $e(34,e,k,k,k,k,k,k,t,k,k,k)}function Lk(e,t,n,s){return $e(35,e,n,k,k,k,k,t,k,k,k,s)}
12var Dk={parsing:1,serialization:2,deserialization:3};function Ik(e){return`Seroval Error (step: ${Dk[e]})`}var Uk=(e,t)=>Ik(e),Nx=class extends Error{constructor(e,t){super(Uk(e)),this.cause=t}},Tw=class extends Nx{constructor(e){super("parsing",e)}},zk=class extends Nx{constructor(e){super("deserialization",e)}};function ls(e){return`Seroval Error (specific: ${e})`}var Id=class extends Error{constructor(t){super(ls(1)),this.value=t}},Mx=class extends Error{constructor(e){super(ls(2))}},Bk=class extends Error{constructor(t){super(ls(3))}},nc=class extends Error{constructor(e){super(ls(4))}},$k=class extends Error{constructor(e){super(ls(5)),this.value=e}},qk=class extends Error{constructor(e){super(ls(6))}},Vk=class extends Error{constructor(e){super(ls(7))}},cs=class extends Error{constructor(e){super(ls(8))}},Hk=class extends Error{constructor(e){super(ls(9))}},Fk=class{constructor(e,t){this.value=e,this.replacement=t}},Ud=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},Gk=(e,t)=>{e.s(t),e.p.s=1,e.p.v=t},Kk=(e,t)=>{e.f(t),e.p.s=2,e.p.v=t};Ud.toString();Gk.toString();Kk.toString();var Yk=()=>{let e=[],t=[],n=!0,s=!1,a=0,l=(f,h,g)=>{for(g=0;g<a;g++)t[g]&&t[g][h](f)},c=(f,h,g,m)=>{for(h=0,g=e.length;h<g;h++)m=e[h],!n&&h===g-1?f[s?"return":"throw"](m):f.next(m)},d=(f,h)=>(n&&(h=a++,t[h]=f),c(f),()=>{n&&(t[h]=t[a],t[a--]=void 0)});return{__SEROVAL_STREAM__:!0,on:f=>d(f),next:f=>{n&&(e.push(f),l(f,"next"))},throw:f=>{n&&(e.push(f),l(f,"throw"),n=!1,s=!1,t.length=0)},return:f=>{n&&(e.push(f),l(f,"return"),n=!1,s=!0,t.length=0)}}},Qk=e=>t=>()=>{let n=0,s={[e]:()=>s,next:()=>{if(n>t.d)return{done:!0,value:void 0};let a=n++,l=t.v[a];if(a===t.t)throw l;return{done:a===t.d,value:l}}};return s},Wk=(e,t)=>n=>()=>{let s=0,a=-1,l=!1,c=[],d=[],f=(g=0,m=d.length)=>{for(;g<m;g++)d[g].s({done:!0,value:void 0})};n.on({next:g=>{let m=d.shift();m&&m.s({done:!1,value:g}),c.push(g)},throw:g=>{let m=d.shift();m&&m.f(g),f(),a=c.length,l=!0,c.push(g)},return:g=>{let m=d.shift();m&&m.s({done:!0,value:g}),f(),a=c.length,c.push(g)}});let h={[e]:()=>h,next:()=>{if(a===-1){let v=s++;if(v>=c.length){let b=t();return d.push(b),b.p}return{done:!1,value:c[v]}}if(s>a)return{done:!0,value:void 0};let g=s++,m=c[g];if(g!==a)return{done:!1,value:m};if(l)throw m;return{done:!0,value:m}}};return h},Px=e=>{let t=atob(e),n=t.length,s=new Uint8Array(n);for(let a=0;a<n;a++)s[a]=t.charCodeAt(a);return s.buffer};Px.toString();function Xk(e){return"__SEROVAL_SEQUENCE__"in e}function jx(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function Jk(e){let t=[],n=-1,s=-1,a=e[is]();for(;;)try{let l=a.next();if(t.push(l.value),l.done){s=t.length-1;break}}catch(l){n=t.length,t.push(l)}return jx(t,n,s)}var Zk=Qk(is);function eN(e){return Zk(e)}var tN={},nN={},rN={0:{},1:{},2:{},3:{},4:{},5:{}};function sN(e){return"__SEROVAL_STREAM__"in e}function Ji(){return Yk()}function iN(e){let t=Ji(),n=e[ss]();async function s(){try{let a=await n.next();a.done?t.return(a.value):(t.next(a.value),await s())}catch(a){t.throw(a)}}return s().catch(()=>{}),t}var aN=Wk(ss,Ud);function oN(e){return aN(e)}async function lN(e){try{return[1,await e]}catch(t){return[0,t]}}function cN(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function Zu(e,t){e.marked.add(t)}function uN(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function zd(e,t){let n=e.refs.get(t);return n!=null?(Zu(e,n),{type:1,value:mk(n)}):{type:0,value:uN(e,t)}}function fg(e,t){let n=zd(e,t);return n.type===1?n:Ax(t)?{type:2,value:bk(n.value,t)}:n}function Bi(e,t){let n=fg(e,t);if(n.type!==0)return n.value;if(t in xx)return vk(n.value,t);throw new Id(t)}function Bd(e,t){let n=zd(e,rN[t]);return n.type===1?n.value:$e(26,n.value,t,k,k,k,k,k,k,k,k,k)}function dN(e){let t=zd(e,tN);return t.type===1?t.value:$e(27,t.value,k,k,k,k,k,k,Bi(e,is),k,k,k)}function fN(e){let t=zd(e,nN);return t.type===1?t.value:$e(29,t.value,k,k,k,k,k,[Bd(e,1),Bi(e,ss)],k,k,k,k)}function hN(e,t,n,s){return $e(n?11:10,e,k,k,k,s,k,k,k,k,Ox(t),k)}function pN(e,t,n,s){return $e(8,t,k,k,k,k,{k:n,v:s},k,Bd(e,0),k,k,k)}
12function mN(e,t,n){let s=new Uint8Array(n),a="";for(let l=0,c=s.length;l<c;l++)a+=String.fromCharCode(s[l]);return $e(19,t,ii(btoa(a)),k,k,k,k,k,Bd(e,5),k,k,k)}function gN(e,t){return{base:cN(e,t),child:void 0}}var yN=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Ot(this._p,this.depth,e)}};async function vN(e,t,n){let s=[];for(let a=0,l=n.length;a<l;a++)a in n?s[a]=await Ot(e,t,n[a]):s[a]=0;return s}async function bN(e,t,n,s){return _k(n,s,await vN(e,t,s))}async function hg(e,t,n){let s=Object.entries(n),a=[],l=[];for(let c=0,d=s.length;c<d;c++)a.push(ii(s[c][0])),l.push(await Ot(e,t,s[c][1]));return is in n&&(a.push(Bi(e.base,is)),l.push(Ok(dN(e.base),await Ot(e,t,Jk(n))))),ss in n&&(a.push(Bi(e.base,ss)),l.push(kk(fN(e.base),await Ot(e,t,iN(n))))),uo in n&&(a.push(Bi(e.base,uo)),l.push(kx(n[uo]))),co in n&&(a.push(Bi(e.base,co)),l.push(n[co]?Tx:Ex)),{k:a,v:l}}async function Op(e,t,n,s,a){return hN(n,s,a,await hg(e,t,s))}async function wN(e,t,n,s){return Sk(n,await Ot(e,t,s.valueOf()))}async function _N(e,t,n,s){return xk(n,s,await Ot(e,t,s.buffer))}async function SN(e,t,n,s){return Tk(n,s,await Ot(e,t,s.buffer))}async function xN(e,t,n,s){return Ek(n,s,await Ot(e,t,s.buffer))}async function Ew(e,t,n,s){let a=Cx(s,e.base.features);return Rk(n,s,a?await hg(e,t,a):k)}async function TN(e,t,n,s){let a=Cx(s,e.base.features);return Ak(n,s,a?await hg(e,t,a):k)}async function EN(e,t,n,s){let a=[],l=[];for(let[c,d]of s.entries())a.push(await Ot(e,t,c)),l.push(await Ot(e,t,d));return pN(e.base,n,a,l)}async function RN(e,t,n,s){let a=[];for(let l of s.keys())a.push(await Ot(e,t,l));return Ck(n,a)}async function Lx(e,t,n,s){let a=e.base.plugins;if(a)for(let l=0,c=a.length;l<c;l++){let d=a[l];if(d.parse.async&&d.test(s))return wk(n,d.tag,await d.parse.async(s,new yN(e,t),{id:n}))}return k}async function AN(e,t,n,s){let[a,l]=await lN(s);return $e(12,n,a,k,k,k,k,k,await Ot(e,t,l),k,k,k)}function CN(e,t,n,s,a){let l=[],c=n.on({next:d=>{Zu(this.base,t),Ot(this,e,d).then(f=>{l.push(Mk(t,f))},f=>{a(f),c()})},throw:d=>{Zu(this.base,t),Ot(this,e,d).then(f=>{l.push(Pk(t,f)),s(l),c()},f=>{a(f),c()})},return:d=>{Zu(this.base,t),Ot(this,e,d).then(f=>{l.push(jk(t,f)),s(l),c()},f=>{a(f),c()})}})}async function ON(e,t,n,s){return Nk(n,Bd(e.base,4),await new Promise(CN.bind(e,t,n,s)))}async function kN(e,t,n,s){let a=[];for(let l=0,c=s.v.length;l<c;l++)a[l]=await Ot(e,t,s.v[l]);return Lk(n,a,s.t,s.d)}async function NN(e,t,n,s){if(Array.isArray(s))return bN(e,t,n,s);if(sN(s))return ON(e,t,n,s);if(Xk(s))return kN(e,t,n,s);let a=s.constructor;if(a===Fk)return Ot(e,t,s.replacement);let l=await Lx(e,t,n,s);if(l)return l;switch(a){case Object:return Op(e,t,n,s,!1);case k:return Op(e,t,n,s,!0);case Date:return gk(n,s);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Ew(e,t,n,s);case Number:case Boolean:case String:case BigInt:return wN(e,t,n,s);case ArrayBuffer:return mN(e.base,n,s);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return _N(e,t,n,s);case DataView:return xN(e,t,n,s);case Map:return EN(e,t,n,s);case Set:return RN(e,t,n,s)}if(a===Promise||s instanceof Promise)return AN(e,t,n,s);let c=e.base.features;if(c&32&&a===RegExp)return yk(n,s);if(c&16)switch(a){case BigInt64Array:case BigUint64Array:return SN(e,t,n,s)}if(c&1&&typeof AggregateError<"u"&&(a===AggregateError||s instanceof AggregateError))return TN(e,t,n,s);if(s instanceof Error)return Ew(e,t,n,s);if(is in s||ss in s)return Op(e,t,n,s,!!a);throw new Id(s)}async function MN(e,t,n){let s=fg(e.base,n);if(s.type!==0)return s.value;let a=await Lx(e,t,s.value,n);if(a)return a;throw new Id(n)}async function Ot(e,t,n){switch(typeof n){case"boolean":return n?Tx:Ex;case"undefined":return tk;case"string":return kx(n);case"number":return hk(n);case"bigint":return pk(n);case"object":{if(n){let s=fg(e.base,n);return s.type===0?await NN(e,t+1,s.value,n):s.value}return nk}case"symbol":return Bi(e.base,n);case"function":return MN(e,t,n);default:throw new Id(n)}}async function PN(e,t){try{return await Ot(e,0,t)}catch(n){throw n instanceof Tw?n:new Tw(n)}}var jN=(e=>(e[e.Vanilla=1]="Vanilla",e[e.Cross=2]="Cross",e))(jN||{});function Dx(e,t){for(let n=0,s=t.length;n<s;n++){let a=t[n];e.has(a)||(e.add(a),a.extends&&Dx(e,a.extends))}}function Ix(e){if(e){let t=new Set;return Dx(t,e),[...t]}}function LN(e){switch(e){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new Vk(e)}}var DN=1e6,IN=1e4,UN=2e4;function Ux(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var zN=1e3;function BN(e,t){var n;let s=t.refs||new Map;return"types"in s||Object.assign(s,{types:new Map}),{mode:e,plugins:t.plugins,refs:s,features:(n=t.features)!=null?n:63^(t.disabledFeatures||0),depthLimit:t.depthLimit||zN}}
12function $N(e){return{mode:2,base:BN(2,e),child:k}}var qN=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Xe(this._p,this.depth,e)}};function zx(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new cs({t:4,i:t});if(e.refs.has(t))throw new Error("Conflicted ref id: "+t)}function VN(e,t,n){return zx(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function HN(e,t,n){return zx(e.base,t),e.base.refs.set(t,n),n}function kt(e,t,n){return e.mode===1?VN(e,t,n):HN(e,t,n)}function lm(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new cs(e)}function FN(e,t){return kt(e,t.i,dk(ai(t.s)))}function GN(e,t,n){let s=n.a,a=s.length,l=kt(e,n.i,new Array(a));for(let c=0,d;c<a;c++)d=s[c],d&&(l[c]=Xe(e,t,d));return Ux(l,n.o),l}function KN(e){switch(e){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function YN(e){switch(e){case ss:case co:case uo:case is:return!0;default:return!1}}function Rw(e,t,n){KN(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function QN(e,t,n,s,a){if(typeof s=="string")Rw(n,ai(s),Xe(e,t,a));else{let l=Xe(e,t,s);switch(typeof l){case"string":Rw(n,l,Xe(e,t,a));break;case"symbol":YN(l)&&(n[l]=Xe(e,t,a));break;default:throw new cs(s)}}}function Bx(e,t,n){e.base.refs.types.set(t,n)}function rc(e,t,n,s){if(e.base.refs.types.get(n)!==s)throw new cs(t)}function $x(e,t,n,s){let a=n.k;if(a.length>0)for(let l=0,c=n.v,d=a.length;l<d;l++)QN(e,t,s,a[l],c[l]);return s}function WN(e,t,n){let s=kt(e,n.i,n.t===10?{}:Object.create(null));return $x(e,t,n.p,s),Ux(s,n.o),s}function XN(e,t){return kt(e,t.i,new Date(t.s))}function JN(e,t){if(e.base.features&32){let n=ai(t.c);if(n.length>UN)throw new cs(t);return kt(e,t.i,new RegExp(n,t.m))}throw new Mx(t)}function ZN(e,t,n){let s=kt(e,n.i,new Set);for(let a=0,l=n.a,c=l.length;a<c;a++)s.add(Xe(e,t,l[a]));return s}function eM(e,t,n){let s=kt(e,n.i,new Map);for(let a=0,l=n.e.k,c=n.e.v,d=l.length;a<d;a++)s.set(Xe(e,t,l[a]),Xe(e,t,c[a]));return s}function tM(e,t){if(t.s.length>DN)throw new cs(t);return kt(e,t.i,Px(ai(t.s)))}function nM(e,t,n){var s;let a=LN(n.c),l=Xe(e,t,n.f),c=(s=n.b)!=null?s:0;if(c<0||c>l.byteLength)throw new cs(n);return kt(e,n.i,new a(l,c,n.l))}function rM(e,t,n){var s;let a=Xe(e,t,n.f),l=(s=n.b)!=null?s:0;if(l<0||l>a.byteLength)throw new cs(n);return kt(e,n.i,new DataView(a,l,n.l))}function qx(e,t,n,s){if(n.p){let a=$x(e,t,n.p,{});Object.defineProperties(s,Object.getOwnPropertyDescriptors(a))}return s}function sM(e,t,n){let s=kt(e,n.i,new AggregateError([],ai(n.m)));return qx(e,t,n,s)}function iM(e,t,n){let s=lm(n,ek,n.s),a=kt(e,n.i,new s(ai(n.m)));return qx(e,t,n,a)}function aM(e,t,n){let s=Ud(),a=kt(e,n.i,s.p),l=Xe(e,t,n.f);return n.s?s.s(l):s.f(l),a}
12function oM(e,t,n){return kt(e,n.i,Object(Xe(e,t,n.f)))}function lM(e,t,n){let s=e.base.plugins;if(s){let a=ai(n.c);for(let l=0,c=s.length;l<c;l++){let d=s[l];if(d.tag===a)return kt(e,n.i,d.deserialize(n.s,new qN(e,t),{id:n.i}))}}throw new Bk(n.c)}function cM(e,t){let n=kt(e,t.i,kt(e,t.s,Ud()).p);return Bx(e,t.s,22),n}function uM(e,t,n){let s=e.base.refs.get(n.i);if(s)return rc(e,n,n.i,22),s.s(Xe(e,t,n.a[1])),k;throw new nc("Promise")}function dM(e,t,n){let s=e.base.refs.get(n.i);if(s)return rc(e,n,n.i,22),s.f(Xe(e,t,n.a[1])),k;throw new nc("Promise")}function fM(e,t,n){Xe(e,t,n.a[0]);let s=Xe(e,t,n.a[1]);return eN(s)}function hM(e,t,n){Xe(e,t,n.a[0]);let s=Xe(e,t,n.a[1]);return oN(s)}function pM(e,t,n){let s=kt(e,n.i,Ji());Bx(e,n.i,31);let a=n.a,l=a.length;if(l)for(let c=0;c<l;c++)Xe(e,t,a[c]);return s}function mM(e,t,n){let s=e.base.refs.get(n.i);if(s)return rc(e,n,n.i,31),s.next(Xe(e,t,n.f)),k;throw new nc("Stream")}function gM(e,t,n){let s=e.base.refs.get(n.i);if(s)return rc(e,n,n.i,31),s.throw(Xe(e,t,n.f)),k;throw new nc("Stream")}function yM(e,t,n){let s=e.base.refs.get(n.i);if(s)return rc(e,n,n.i,31),s.return(Xe(e,t,n.f)),k;throw new nc("Stream")}function vM(e,t,n){return Xe(e,t,n.f),k}function bM(e,t,n){return Xe(e,t,n.a[1]),k}function wM(e,t,n){let s=kt(e,n.i,jx([],n.s,n.l));for(let a=0,l=n.a.length;a<l;a++)s.v[a]=Xe(e,t,n.a[a]);return s}function Xe(e,t,n){if(t>e.base.depthLimit)throw new Hk(e.base.depthLimit);switch(t+=1,n.t){case 2:return lm(n,JO,n.s);case 0:return Number(n.s);case 1:return ai(String(n.s));case 3:if(String(n.s).length>IN)throw new cs(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return FN(e,n);case 9:return GN(e,t,n);case 10:case 11:return WN(e,t,n);case 5:return XN(e,n);case 6:return JN(e,n);case 7:return ZN(e,t,n);case 8:return eM(e,t,n);case 19:return tM(e,n);case 16:case 15:return nM(e,t,n);case 20:return rM(e,t,n);case 14:return sM(e,t,n);case 13:return iM(e,t,n);case 12:return aM(e,t,n);case 17:return lm(n,XO,n.s);case 21:return oM(e,t,n);case 25:return lM(e,t,n);case 22:return cM(e,n);case 23:return uM(e,t,n);case 24:return dM(e,t,n);case 28:return fM(e,t,n);case 30:return hM(e,t,n);case 31:return pM(e,t,n);case 32:return mM(e,t,n);case 33:return gM(e,t,n);case 34:return yM(e,t,n);case 27:return vM(e,t,n);case 29:return bM(e,t,n);case 35:return wM(e,t,n);default:throw new Mx(n)}}function _M(e,t){try{return Xe(e,0,t)}catch(n){throw new zk(n)}}var SM=()=>T;SM.toString();function Aw(e,t){let n=Ix(t.plugins),s=$N({plugins:n,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit});return _M(s,e)}async function xM(e,t={}){let n=Ix(t.plugins),s=gN(1,{plugins:n,disabledFeatures:t.disabledFeatures});return{t:await PN(s,e),f:s.base.features,m:Array.from(s.base.marked)}}function TM(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,n,s){return{v:n.parse(e.toSerializable(t))}},async async(t,n,s){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,s){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,s){return e.fromSerializable(n.deserialize(t.v))}}}var EM=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};const ud=globalThis.Buffer,Vx=!!ud&&typeof ud.from=="function";function Hx(e){if(e.length===0)return"";if(Vx)return ud.from(e).toString("base64");const t=32768,n=[];for(let s=0;s<e.length;s+=t){const a=e.subarray(s,s+t);n.push(String.fromCharCode.apply(null,a))}return btoa(n.join(""))}function Fx(e){if(e.length===0)return new Uint8Array(0);if(Vx){const s=ud.from(e,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}const t=atob(e),n=new Uint8Array(t.length);for(let s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}const xl=Object.create(null),Tl=Object.create(null),RM=e=>new ReadableStream({start(t){e.on({next(n){try{t.enqueue(Fx(n))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),AM=new TextEncoder,CM=e=>new ReadableStream({start(t){e.on({next(n){try{typeof n=="string"?t.enqueue(AM.encode(n)):t.enqueue(Fx(n.$b64))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),OM="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;
12i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",kM="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function Cw(e){const t=Ji(),n=e.getReader();return(async()=>{try{for(;;){const{done:s,value:a}=await n.read();if(s){t.return(void 0);break}t.next(Hx(a))}}catch(s){t.throw(s)}finally{n.releaseLock()}})(),t}function Ow(e){const t=Ji(),n=e.getReader(),s=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:a,value:l}=await n.read();if(a){try{const c=s.decode();c.length>0&&t.next(c)}catch{}t.return(void 0);break}try{const c=s.decode(l,{stream:!0});c.length>0&&t.next(c)}catch{t.next({$b64:Hx(l)})}}}catch(a){t.throw(a)}finally{n.releaseLock()}})(),t}const NM={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(e){return e===xl},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return OM},deserialize(e,t,n){return xl}},{tag:"tss/RawStreamFactoryText",test(e){return e===Tl},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return kM},deserialize(e,t,n){return Tl}}],test(e){return e instanceof EM},parse:{sync(e,t,n){const s=e.hint==="text"?Tl:xl;return{hint:t.parse(e.hint),factory:t.parse(s),stream:t.parse(Ji())}},async async(e,t,n){const s=e.hint==="text"?Tl:xl,a=e.hint==="text"?Ow(e.stream):Cw(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(s),stream:await t.parse(a)}},stream(e,t,n){const s=e.hint==="text"?Tl:xl,a=e.hint==="text"?Ow(e.stream):Cw(e.stream);return{hint:t.parse(e.hint),factory:t.parse(s),stream:t.parse(a)}}},serialize(e,t,n){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t,n){const s=t.deserialize(e.stream);return t.deserialize(e.hint)==="text"?CM(s):RM(s)}};function MM(e){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(t,n,s){return e(typeof n?.deserialize=="function"?n.deserialize(t.streamId):t.streamId)}}}const PM={tag:"$TSR/Error",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return"new Error("+t.serialize(e.message)+")"},deserialize(e,t){return new Error(t.deserialize(e.message))}};var Hs={},Gx=e=>new ReadableStream({start:t=>{e.on({next:n=>{try{t.enqueue(n)}catch{}},throw:n=>{t.error(n)},return:()=>{try{t.close()}catch{}}})}}),jM={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===Hs},parse:{sync(){return Hs},async async(){return await Promise.resolve(Hs)},stream(){return Hs}},serialize(){return Gx.toString()},deserialize(){return Hs}};function kw(e){let t=Ji(),n=e.getReader();async function s(){try{let a=await n.read();a.done?t.return(a.value):(t.next(a.value),await s())}catch(a){t.throw(a)}}return s().catch(()=>{}),t}var LM={tag:"seroval/plugins/web/ReadableStream",extends:[jM],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Hs),stream:t.parse(Ji())}},async async(e,t){return{factory:await t.parse(Hs),stream:await t.parse(kw(e))}},stream(e,t){return{factory:t.parse(Hs),stream:t.parse(kw(e))}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){let n=t.deserialize(e.stream);return Gx(n)}},DM=LM;const IM=[PM,NM,DM];function UM(){return[...QS()?.serializationAdapters?.map(TM)??[],...IM]}var Nw=new TextDecoder,zM=new Uint8Array(0),Mw=16*1024*1024,Pw=32*1024*1024,jw=1024,Lw=1e5;function BM(e){const t=new Map,n=new Map,s=new Set;let a=!1,l=null,c=0,d;const f=new ReadableStream({start(m){d=m},cancel(){a=!0;try{l?.cancel()}catch{}t.forEach(m=>{try{m.error(new Error("Framed response cancelled"))}catch{}}),t.clear(),n.clear(),s.clear()}});function h(m){const v=n.get(m);
12if(v)return v;if(s.has(m))return new ReadableStream({start(_){_.close()}});if(n.size>=jw)throw new Error(`Too many raw streams in framed response (max ${jw})`);const b=new ReadableStream({start(_){t.set(m,_)},cancel(){s.add(m),t.delete(m),n.delete(m)}});return n.set(m,b),b}function g(m){return h(m),t.get(m)}return(async()=>{const m=e.getReader();l=m;const v=[];let b=0;function _(){if(b<9)return null;const S=v[0];if(S.length>=9)return{type:S[0],streamId:(S[1]<<24|S[2]<<16|S[3]<<8|S[4])>>>0,length:(S[5]<<24|S[6]<<16|S[7]<<8|S[8])>>>0};const x=new Uint8Array(9);let R=0,C=9;for(let O=0;O<v.length&&C>0;O++){const I=v[O],B=Math.min(I.length,C);x.set(I.subarray(0,B),R),R+=B,C-=B}return{type:x[0],streamId:(x[1]<<24|x[2]<<16|x[3]<<8|x[4])>>>0,length:(x[5]<<24|x[6]<<16|x[7]<<8|x[8])>>>0}}function E(S){if(S===0)return zM;const x=new Uint8Array(S);let R=0,C=S;for(;C>0&&v.length>0;){const O=v[0];if(!O)break;const I=Math.min(O.length,C);x.set(O.subarray(0,I),R),R+=I,C-=I,I===O.length?v.shift():v[0]=O.subarray(I)}return b-=S,x}try{for(;;){const{done:S,value:x}=await m.read();if(a||S)break;if(x){if(b+x.length>Pw)throw new Error(`Framed response buffer exceeded ${Pw} bytes`);for(v.push(x),b+=x.length;;){const R=_();if(!R)break;const{type:C,streamId:O,length:I}=R;if(C!==Qr.JSON&&C!==Qr.CHUNK&&C!==Qr.END&&C!==Qr.ERROR)throw new Error(`Unknown frame type: ${C}`);if(C===Qr.JSON){if(O!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(O===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(I>Mw)throw new Error(`Frame payload too large: ${I} bytes (max ${Mw})`);const B=9+I;if(b<B)break;if(++c>Lw)throw new Error(`Too many frames in framed response (max ${Lw})`);E(9);const P=E(I);switch(C){case Qr.JSON:try{d.enqueue(Nw.decode(P))}catch{}break;case Qr.CHUNK:{const M=g(O);M&&M.enqueue(P);break}case Qr.END:{const M=g(O);if(s.add(O),M){try{M.close()}catch{}t.delete(O)}break}case Qr.ERROR:{const M=g(O);if(s.add(O),M){const F=Nw.decode(P);M.error(new Error(F)),t.delete(O)}break}}}}}if(b!==0)throw new Error("Incomplete frame at end of framed response");try{d.close()}catch{}t.forEach(S=>{try{S.close()}catch{}}),t.clear()}catch(S){try{d.error(S)}catch{}t.forEach(x=>{try{x.error(S)}catch{}}),t.clear()}finally{try{m.releaseLock()}catch{}l=null}})(),{getOrCreateStream:h,jsonChunks:f}}var ql=null;async function cm(e){e.length>0&&await Promise.allSettled(e)}var $M=Object.prototype.hasOwnProperty;function Kx(e){for(const t in e)if($M.call(e,t))return!0;return!1}async function qM(e,t,n){ql||(ql=UM());const s=t[0],a=s.fetch??n,l=s.data instanceof FormData?"formData":"payload",c=s.headers?new Headers(s.headers):new Headers;if(c.set("x-tsr-serverFn","true"),l==="payload"&&c.set("accept",`${IC}, application/x-ndjson, application/json`),s.method==="GET"){if(l==="formData")throw new Error("FormData is not supported with GET requests");const f=await Yx(s);if(f!==void 0){const h=ix({payload:f});e.includes("?")?e+=`&${h}`:e+=`?${h}`}}let d;if(s.method==="POST"){const f=await VM(s);f?.contentType&&c.set("content-type",f.contentType),d=f?.body}return await HM(async()=>a(e,{method:s.method,headers:c,signal:s.signal,body:d}))}async function Yx(e){let t=!1;const n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&Kx(e.context)&&(t=!0,n.context=e.context),t)return Qx(n)}async function Qx(e){return JSON.stringify(await Promise.resolve(xM(e,{plugins:ql})))}async function VM(e){if(e.data instanceof FormData){let n;return e.context&&Kx(e.context)&&(n=await Qx(e.context)),n!==void 0&&e.data.set(DC,n),{body:e.data}}const t=await Yx(e);if(t)return{body:t,contentType:"application/json"}}async function HM(e){let t;try{t=await e()}catch(s){if(s instanceof Response)t=s;else throw console.log(s),s}if(t.headers.get("x-tss-raw")==="true")return t;const n=t.headers.get("content-type");if(n||wn(),t.headers.get("x-tss-serialized")){let s;if(n.includes("application/x-tss-framed")){if(BC(n),!t.body)throw new Error("No response body for framed response");const{getOrCreateStream:a,jsonChunks:l}=BM(t.body),c=[MM(a),...ql||[]],d=new Map;s=await FM({jsonStream:l,onMessage:f=>Aw(f,{refs:d,plugins:c}),onError(f,h){console.error(f,h)}})}else if(n.includes("application/json")){const a=await t.json(),l=[];s=Aw(a,{plugins:ql}),await cm(l)}if(s||wn(),s instanceof Error)throw s;return s}if(n.includes("application/json")){const s=await t.json(),a=mO(s);if(a)throw a;if(Bt(s))throw s;return s}if(!t.ok)throw new Error(await t.text());return t}async function FM({jsonStream:e,onMessage:t,onError:n}){const s=e.getReader(),{value:a,done:l}=await s.read();if(l||!a)throw new Error("Stream ended before first object");const c=JSON.parse(a);let d=!1;const f=(async()=>{try{for(;;){const{value:m,done:v}=await s.read();if(v)break;if(m)try{const b=[];try{t(JSON.parse(m))}finally{}await cm(b)}catch(b){n?.(`Invalid JSON: ${m}`,b)}}}catch(m){d||n?.("Stream processing error:",m)}})();let h;const g=[];try{h=t(c)}catch(m){throw d=!0,s.cancel().catch(()=>{}),m}return await cm(g),Promise.resolve(h).catch(()=>{d=!0,s.cancel().catch(()=>{})}),f.finally(()=>{try{s.releaseLock()}catch{}}),h}function GM(e){const t="/_serverFn/"+e;return Object.assign((...a)=>{const l=QS()?.serverFns?.fetch;return qM(t,a,l??fetch)},{url:t,serverFnMeta:{id:e},[rm]:!0})}var KM={key:"$TSS/serverfn",test:e=>typeof e!="function"||!(rm in e)?!1:!!e[rm],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>GM(e)};function Dw(e){return e.replaceAll("\0","/").replaceAll("�","/")}function YM(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.
12status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function QM(e){window.$_TSR||wn();const t=e.options.serializationAdapters;if(t?.length){const S=new Map;t.forEach(x=>{S.set(x.key,x.fromSerializable)}),window.$_TSR.t=S,window.$_TSR.buffer.forEach(x=>x())}window.$_TSR.initialized=!0,window.$_TSR.router||wn();const n=window.$_TSR.router;n.matches.forEach(S=>{S.i=Dw(S.i)}),n.lastMatchId&&(n.lastMatchId=Dw(n.lastMatchId));const{manifest:s,dehydratedData:a,lastMatchId:l}=n;e.ssr={manifest:s};const c=document.querySelector('meta[property="csp-nonce"]')?.content;e.options.ssr={nonce:c},await e.options.hydrate?.(a);const d=e.matchRoutes(e.stores.location.get()),f=Promise.all(d.map(S=>e.loadRouteChunk(e.looseRoutesById[S.routeId])));function h(S){const x=e.looseRoutesById[S.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(x){const R=Qi();S._nonReactive.minPendingPromise=R,S._forcePending=!0,setTimeout(()=>{R.resolve(),e.updateMatch(S.id,C=>(C._nonReactive.minPendingPromise=void 0,{...C,_forcePending:void 0}))},x)}}function g(S){const x=e.looseRoutesById[S.routeId];x&&(x.options.ssr=S.ssr)}let m;d.forEach(S=>{const x=n.matches.find(R=>R.i===S.id);if(!x){S._nonReactive.dehydrated=!1,S.ssr=!1,g(S);return}YM(S,x),g(S),S._nonReactive.dehydrated=S.ssr!==!1,(S.ssr==="data-only"||S.ssr===!1)&&m===void 0&&(m=S.index,h(S))}),e.stores.setMatches(d);const v=e.stores.matches.get(),b=e.stores.location.get();await Promise.all(v.map(async S=>{try{const x=e.looseRoutesById[S.routeId],R=v[S.index-1]?.context??e.options.context;if(x.options.context){const B={deps:S.loaderDeps,params:S.params,context:R??{},location:b,navigate:P=>e.navigate({...P,_fromLocation:b}),buildLocation:e.buildLocation,cause:S.cause,abortController:S.abortController,preload:!1,matches:d,routeId:x.id};
12S.__routeContext=x.options.context(B)??void 0}S.context={...R,...S.__routeContext,...S.__beforeLoadContext};const C={ssr:e.options.ssr,matches:v,match:S,params:S.params,loaderData:S.loaderData},O=await x.options.head?.(C),I=await x.options.scripts?.(C);S.meta=O?.meta,S.links=O?.links,S.headScripts=O?.scripts,S.styles=O?.styles,S.scripts=I}catch(x){if(Bt(x))S.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${S.routeId}`,x);else throw S.error=x,console.error(`Error during hydration for route ${S.routeId}:`,x),x}}));const _=d[d.length-1].id!==l;if(!d.some(S=>S.ssr===!1)&&!_)return d.forEach(S=>{S._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),f;const E=Promise.resolve().then(()=>e.load()).catch(S=>{console.error("Error during router hydration:",S)});if(_){const S=d[1];S||wn(),h(S),S._displayPending=!0,S._nonReactive.displayPendingPromise=E,E.then(()=>{e.batch(()=>{e.stores.status.get()==="pending"&&(e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(S.id,x=>({...x,_displayPending:void 0,displayPendingPromise:void 0}))})})}return f}var dd=j.use,so=typeof window<"u"?j.useLayoutEffect:j.useEffect;function kp(e){const t=j.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function WM(e,t,n={},s={}){j.useEffect(()=>{if(!e.current||s.disabled||typeof IntersectionObserver!="function")return;const a=new IntersectionObserver(([l])=>{t(l)},n);return a.observe(e.current),()=>{a.disconnect()}},[t,n,s.disabled,e])}function XM(e){const t=j.useRef(null);return j.useImperativeHandle(e,()=>t.current,[]),t}function JM({promise:e}){if(dd)return dd(e);const t=VO(e);if(t[Sr].status==="pending")throw t;if(t[Sr].status==="error")throw t[Sr].error;return t[Sr].data}function ZM(e){const t=N.jsx(eP,{...e});return e.fallback?N.jsx(j.Suspense,{fallback:e.fallback,children:t}):t}function eP(e){const t=JM(e);return e.children(t)}function pg(e){const t=e.errorComponent??mg;return N.jsx(tP,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:s})=>n?j.createElement(t,{error:n,reset:s}):e.children})}var tP=class extends j.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function mg({error:e}){const[t,n]=j.useState(!1);return N.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[N.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[N.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),N.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(s=>!s),children:t?"Hide Error":"Show Error"})]}),N.jsx("div",{style:{height:".25rem"}}),t?N.jsx("div",{children:N.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?N.jsx("code",{children:e.message}):null})}):null]})}function nP({children:e,fallback:t=null}){return gg()?N.jsx(ae.Fragment,{children:e}):N.jsx(ae.Fragment,{children:t})}function gg(){return ae.useSyncExternalStore(rP,()=>!0,()=>!1)}function rP(){return()=>{}}var Wx=j.createContext(null);function Nt(e){return j.useContext(Wx)}var $d=j.createContext(void 0),sP=j.createContext(void 0),rt=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(rt||{});function iP({update:e,notify:t,unwatched:n}){return{link:s,unlink:a,propagate:l,checkDirty:c,shallowPropagate:d};function s(h,g,m){const v=g.depsTail;if(v!==void 0&&v.dep===h)return;const b=v!==void 0?v.nextDep:g.deps;if(b!==void 0&&b.dep===h){b.version=m,g.depsTail=b;return}const _=h.subsTail;if(_!==void 0&&_.version===m&&_.sub===g)return;const E=g.depsTail=h.subsTail={version:m,dep:h,sub:g,prevDep:v,nextDep:b,prevSub:_,nextSub:void 0};b!==void 0&&(b.prevDep=E),v!==void 0?v.nextDep=E:g.deps=E,_!==void 0?_.nextSub=E:h.subs=E}function a(h,g=h.sub){const m=h.dep,v=h.prevDep,b=h.nextDep,_=h.nextSub,E=h.prevSub;return b!==void 0?b.prevDep=v:g.depsTail=v,v!==void 0?v.nextDep=b:g.deps=b,_!==void 0?_.prevSub=E:m.subsTail=E,E!==void 0?E.nextSub=_:(m.subs=_)===void 0&&n(m),b}function l(h){let g=h.nextSub,m;e:do{const v=h.sub;let b=v.flags;if(b&60?b&12?b&4?!(b&48)&&f(h,v)?(v.flags=b|40,b&=1):b=0:v.flags=b&-9|32:b=0:v.flags=b|32,b&2&&t(v),b&1){const _=v.subs;if(_!==void 0){const E=(h=_).nextSub;E!==void 0&&(m={value:g,prev:m},g=E);continue}}if((h=g)!==void 0){g=h.nextSub;continue}for(;m!==void 0;)if(h=m.value,m=m.prev,h!==void 0){g=h.nextSub;continue e}break}while(!0)}function c(h,g){let m,v=0,b=!1;e:do{const _=h.dep,E=_.flags;if(g.flags&16)b=!0;else if((E&17)===17){if(e(_)){const S=_.subs;S.nextSub!==void 0&&d(S),b=!0}}else if((E&33)===33){(h.nextSub!==void 0||h.prevSub!==void 0)&&(m={value:h,prev:m}),h=_.deps,g=_,++v;continue}if(!b){const S=h.nextDep;if(S!==void 0){h=S;continue}}for(;v--;){const S=g.subs,x=S.nextSub!==void 0;if(x?(h=m.value,m=m.prev):h=S,b){if(e(g)){x&&d(S),g=h.sub;continue}b=!1}else g.flags&=-33;g=h.sub;const R=h.nextDep;if(R!==void 0){h=R;continue e}}return b}while(!0)}function d(h){do{const g=h.sub,m=g.flags;(m&48)===32&&(g.flags=m|16,(m&6)===2&&t(g))}while((h=h.nextSub)!==void 0)}function f(h,g){let m=g.depsTail;for(;m!==void 0;){if(m===h)return!0;m=m.prevDep}return!1}}function aP(e,t,n){const s=typeof e=="object",a=s?e:void 0;return{next:(s?e.next:e)?.bind(a),error:(s?e.error:t)?.bind(a),complete:(s?e.complete:n)?.bind(a)}}const um=[];let ed=0;const{link:Iw,unlink:oP,propagate:lP,checkDirty:Xx,shallowPropagate:Uw}=iP({update(e){return e._update()},notify(e){um[dm++]=e,e.flags&=~rt.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=rt.Mutable|rt.Dirty,fd(e))}});let Nu=0,dm=0,wr,fm=0;
12function Jx(e){try{++fm,e()}finally{--fm||Zx()}}function fd(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=oP(n,e)}function Zx(){if(!(fm>0)){for(;Nu<dm;){const e=um[Nu];um[Nu++]=void 0,e.notify()}Nu=0,dm=0}}function zw(e,t){const n=typeof e=="function",s=e,a={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?rt.None:rt.Mutable,get(){return wr!==void 0&&Iw(a,wr,ed),a._snapshot},subscribe(l){const c=aP(l),d={current:!1},f=cP(()=>{a.get(),d.current?c.next?.(a._snapshot):d.current=!0});return{unsubscribe:()=>{f.stop()}}},_update(l){const c=wr,d=t?.compare??Object.is;if(n)wr=a,++ed,a.depsTail=void 0;else if(l===void 0)return!1;n&&(a.flags=rt.Mutable|rt.RecursedCheck);try{const f=a._snapshot,h=typeof l=="function"?l(f):l===void 0&&n?s(f):l;return f===void 0||!d(f,h)?(a._snapshot=h,!0):!1}finally{wr=c,n&&(a.flags&=~rt.RecursedCheck),fd(a)}}};return n?(a.flags=rt.Mutable|rt.Dirty,a.get=function(){const l=a.flags;if(l&rt.Dirty||l&rt.Pending&&Xx(a.deps,a)){if(a._update()){const c=a.subs;c!==void 0&&Uw(c)}}else l&rt.Pending&&(a.flags=l&~rt.Pending);return wr!==void 0&&Iw(a,wr,ed),a._snapshot}):a.set=function(l){if(a._update(l)){const c=a.subs;c!==void 0&&(lP(c),Uw(c),Zx())}},a}function cP(e){const t=()=>{const s=wr;wr=n,++ed,n.depsTail=void 0,n.flags=rt.Watching|rt.RecursedCheck;try{return e()}finally{wr=s,n.flags&=~rt.RecursedCheck,fd(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:rt.Watching|rt.RecursedCheck,notify(){const s=this.flags;s&rt.Dirty||s&rt.Pending&&Xx(this.deps,this)?t():this.flags=rt.Watching},stop(){this.flags=rt.None,this.depsTail=void 0,fd(this)}};return t(),n}var Np={exports:{}},Mp={},Pp={exports:{}},jp={};var Bw;function uP(){if(Bw)return jp;Bw=1;var e=tc();function t(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var n=typeof Object.is=="function"?Object.is:t,s=e.useState,a=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function d(m,v){var b=v(),_=s({inst:{value:b,getSnapshot:v}}),E=_[0].inst,S=_[1];return l(function(){E.value=b,E.getSnapshot=v,f(E)&&S({inst:E})},[m,b,v]),a(function(){return f(E)&&S({inst:E}),m(function(){f(E)&&S({inst:E})})},[m]),c(b),b}function f(m){var v=m.getSnapshot;m=m.value;try{var b=v();return!n(m,b)}catch{return!0}}function h(m,v){return v()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return jp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,jp}var $w;function dP(){return $w||($w=1,Pp.exports=uP()),Pp.exports}var qw;function fP(){if(qw)return Mp;qw=1;var e=tc(),t=dP();function n(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var s=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,l=e.useRef,c=e.useEffect,d=e.useMemo,f=e.useDebugValue;return Mp.useSyncExternalStoreWithSelector=function(h,g,m,v,b){var _=l(null);if(_.current===null){var E={hasValue:!1,value:null};_.current=E}else E=_.current;_=d(function(){function x(B){if(!R){if(R=!0,C=B,B=v(B),b!==void 0&&E.hasValue){var P=E.value;if(b(P,B))return O=P}return O=B}if(P=O,s(C,B))return P;var M=v(B);return b!==void 0&&b(P,M)?(C=B,P):(C=B,O=M)}var R=!1,C,O,I=m===void 0?null:m;return[function(){return x(g())},I===null?void 0:function(){return x(I())}]},[g,m,v,b]);var S=a(h,_[0],_[1]);return c(function(){E.hasValue=!0,E.value=S},[S]),f(S),S},Mp}var Vw;function hP(){return Vw||(Vw=1,Np.exports=fP()),Np.exports}var pP=hP();function mP(e,t){return e===t}function ht(e,t,n=mP){const s=j.useCallback(c=>{if(!e)return()=>{};const{unsubscribe:d}=e.subscribe(c);return d},[e]),a=j.useCallback(()=>e?.get(),[e]);return pP.useSyncExternalStoreWithSelector(s,a,a,t,n)}var gP={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Zi(e){const t=Nt(),n=j.useContext(e.from?sP:$d),s=e.from??n,a=s?e.from?t.stores.getRouteMatchStore(s):t.stores.matchStores.get(s):void 0,l=j.useRef(void 0);return ht(a??gP,c=>{if((e.shouldThrow??!0)&&!c&&wn(),c===void 0)return;const d=e.select?e.select(c):c;if(e.structuralSharing??t.options.defaultStructuralSharing){const f=Ks(l.current,d);return l.current=f,f}return d})}function eT(e){return Zi({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function tT(e){const{select:t,...n}=e;return Zi({...n,select:s=>t?t(s.loaderDeps):s.loaderDeps})}function nT(e){return Zi({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function rT(e){return Zi({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function qd(e){const t=Nt();return j.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function _H(e){const t=Nt(),n=qd(),s=j.useRef(null);return so(()=>{s.current!==e&&(n(e),s.current=e)},[t,e,n]),null}function sT(e){return Zi({...e,select:t=>e.select?e.select(t.context):t.context})}var Vd=YS();const iT=KS(Vd);function yP(e,t){const n=Nt(),s=XM(t),{activeProps:a,inactiveProps:l,activeOptions:c,to:d,preload:f,preloadDelay:h,preloadIntentProximity:g,hashScrollIntoView:m,replace:v,startTransition:b,resetScroll:_,viewTransition:E,children:S,target:x,disabled:R,style:C,className:O,onClick:I,onBlur:B,onFocus:P,onMouseEnter:M,onMouseLeave:F,onTouchStart:K,ignoreBlocker:ne,params:re,search:fe,hash:de,state:be,mask:z,reloadDocument:Y,unsafeRelative:X,from:le,_fromLocation:te,...D}=e,Q=gg(),Z=j.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),ie=ht(n.stores.location,Ge=>Ge,(Ge,lt)=>Ge.href===lt.href),se=j.useMemo(()=>{const Ge={_fromLocation:ie,...Z};return n.buildLocation(Ge)},[n,ie,Z]),ce=se.maskedLocation?se.maskedLocation.publicHref:se.publicHref,Te=se.maskedLocation?se.maskedLocation.external:se.external,xe=j.useMemo(()=>xP(ce,Te,n.history,R),[R,Te,ce,n.history]),we=j.useMemo(()=>
12{if(xe?.external)return ad(xe.href,n.protocolAllowlist)?void 0:xe.href;if(!TP(d)&&!(typeof d!="string"||d.indexOf(":")===-1))try{return new URL(d),ad(d,n.protocolAllowlist)?void 0:d}catch{}},[d,xe,n.protocolAllowlist]),Et=j.useMemo(()=>{if(we)return!1;if(c?.exact){if(!oO(ie.pathname,se.pathname,n.basepath))return!1}else{const Ge=od(ie.pathname,n.basepath),lt=od(se.pathname,n.basepath);if(!(Ge.startsWith(lt)&&(Ge.length===lt.length||Ge[lt.length]==="/")))return!1}return(c?.includeSearch??!0)&&!an(ie.search,se.search,{partial:!c?.exact,ignoreUndefined:!c?.explicitUndefined})?!1:c?.includeHash?Q&&ie.hash===se.hash:!0},[c?.exact,c?.explicitUndefined,c?.includeHash,c?.includeSearch,ie,we,Q,se.hash,se.pathname,se.search,n.basepath]),mt=Et?Ui(a,{})??vP:Lp,ot=Et?Lp:Ui(l,{})??Lp,Jt=[O,mt.className,ot.className].filter(Boolean).join(" "),Rt=(C||mt.style||ot.style)&&{...C,...mt.style,...ot.style},[ci,Cr]=j.useState(!1),ur=j.useRef(!1),Ln=e.reloadDocument||we?!1:f??n.options.defaultPreload,$t=h??n.options.defaultPreloadDelay??0,Sn=j.useCallback(()=>{n.preloadRoute({...Z,_builtLocation:se}).catch(Ge=>{console.warn(Ge),console.warn(HO)})},[n,Z,se]);WM(s,j.useCallback(Ge=>{Ge?.isIntersecting&&Sn()},[Sn]),SP,{disabled:!!R||Ln!=="viewport"}),j.useEffect(()=>{ur.current||!R&&Ln==="render"&&(Sn(),ur.current=!0)},[R,Sn,Ln]);const ui=Ge=>{const lt=Ge.currentTarget.getAttribute("target"),Dn=x!==void 0?x:lt;if(!R&&!EP(Ge)&&!Ge.defaultPrevented&&(!Dn||Dn==="_self")&&Ge.button===0){Ge.preventDefault(),Vd.flushSync(()=>{Cr(!0)});const Or=n.subscribe("onResolved",()=>{Or(),Cr(!1)});n.navigate({...Z,replace:v,resetScroll:_,hashScrollIntoView:m,startTransition:b,viewTransition:E,ignoreBlocker:ne})}};if(we)return{...D,ref:s,href:we,...S&&{children:S},...x&&{target:x},...R&&{disabled:R},...C&&{style:C},...O&&{className:O},...I&&{onClick:I},...B&&{onBlur:B},...P&&{onFocus:P},...M&&{onMouseEnter:M},...F&&{onMouseLeave:F},...K&&{onTouchStart:K}};const Mt=Ge=>{if(R||Ln!=="intent")return;if(!$t){Sn();return}const lt=Ge.currentTarget;if(El.has(lt))return;const Dn=setTimeout(()=>{El.delete(lt),Sn()},$t);El.set(lt,Dn)},dr=Ge=>{R||Ln!=="intent"||Sn()},Pt=Ge=>{if(R||!Ln||!$t)return;const lt=Ge.currentTarget,Dn=El.get(lt);Dn&&(clearTimeout(Dn),El.delete(lt))};return{...D,...mt,...ot,href:xe?.href,ref:s,onClick:Va([I,ui]),onBlur:Va([B,Pt]),onFocus:Va([P,Mt]),onMouseEnter:Va([M,Mt]),onMouseLeave:Va([F,Pt]),onTouchStart:Va([K,dr]),disabled:!!R,target:x,...Rt&&{style:Rt},...Jt&&{className:Jt},...R&&bP,...Et&&wP,...Q&&ci&&_P}}var Lp={},vP={className:"active"},bP={role:"link","aria-disabled":!0},wP={"data-status":"active","aria-current":"page"},_P={"data-transitioning":"transitioning"},El=new WeakMap,SP={rootMargin:"100px"},Va=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function xP(e,t,n,s){if(!s)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function TP(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Qt=j.forwardRef((e,t)=>{const{_asChild:n,...s}=e,{type:a,...l}=yP(s,t),c=typeof s.children=="function"?s.children({isActive:l["data-status"]==="active"}):s.children;if(!n){const{disabled:d,...f}=l;return j.createElement("a",f,c)}return j.createElement(n,l,c)});function EP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var RP=class extends hx{constructor(t){super(t),this.useMatch=n=>Zi({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>sT({...n,from:this.id}),this.useSearch=n=>rT({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>nT({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>tT({...n,from:this.id}),this.useLoaderData=n=>eT({...n,from:this.id}),this.useNavigate=()=>qd({from:this.fullPath}),this.Link=ae.forwardRef((n,s)=>N.jsx(Qt,{ref:s,from:this.fullPath,...n}))}};function AP(e){return new RP(e)}function CP(){return e=>kP(e)}var OP=class extends QO{constructor(e){super(e),this.useMatch=t=>Zi({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>sT({...t,from:this.id}),this.useSearch=t=>rT({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>nT({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>tT({...t,from:this.id}),this.useLoaderData=t=>eT({...t,from:this.id}),this.useNavigate=()=>qd({from:this.fullPath}
12),this.Link=ae.forwardRef((t,n)=>N.jsx(Qt,{ref:n,from:this.fullPath,...t}))}};function kP(e){return new OP(e)}function ue(e){return new NP(e,{silent:!0}).createRoute}var NP=class{constructor(e,t){this.path=e,this.createRoute=n=>{const s=AP(n);return s.isRoot=!1,s},this.silent=t?.silent}};function Oe(e,t){let n,s,a,l;const c=()=>(n||(n=e().then(f=>{n=void 0,s=f[t??"default"]}).catch(f=>{if(a=f,VC(a)&&a instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const h=`tanstack_router_reload:${a.message}`;sessionStorage.getItem(h)||(sessionStorage.setItem(h,"1"),l=!0)}})),n),d=function(h){if(l)throw window.location.reload(),new Promise(()=>{});if(a)throw a;if(!s)if(dd)dd(c());else throw c();return j.createElement(s,h)};return d.preload=c,d}function MP(e){const t=Nt(),n=`not-found-${ht(t.stores.location,s=>s.pathname)}-${ht(t.stores.status,s=>s)}`;return N.jsx(pg,{getResetKey:()=>n,onCatch:(s,a)=>{if(Bt(s))e.onCatch?.(s,a);else throw s},errorComponent:({error:s})=>{if(Bt(s))return e.fallback?.(s);throw s},children:e.children})}function PP(){return N.jsx("p",{children:"Not Found"})}function Xa(e){return N.jsx(N.Fragment,{children:e.children})}function aT(e,t,n){return t.options.notFoundComponent?N.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?N.jsx(e.options.defaultNotFoundComponent,{...n}):N.jsx(PP,{})}function jP(e){return null}function LP(){return jP(Nt()),null}var oT=j.memo(function({matchId:t}){const n=Nt(),s=n.stores.matchStores.get(t);s||wn();const a=ht(n.stores.loadedAt,c=>c),l=ht(s,c=>c);return N.jsx(DP,{router:n,matchId:t,resetKey:a,matchState:j.useMemo(()=>{const c=l.routeId,d=n.routesById[c].parentRoute?.id;return{routeId:c,ssr:l.ssr,_displayPending:l._displayPending,parentRouteId:d}},[l._displayPending,l.routeId,l.ssr,n.routesById])})});function DP({router:e,matchId:t,resetKey:n,matchState:s}){const a=e.routesById[s.routeId],l=a.options.pendingComponent??e.options.defaultPendingComponent,c=l?N.jsx(l,{}):null,d=a.options.errorComponent??e.options.defaultErrorComponent,f=a.options.onCatch??e.options.defaultOnCatch,h=a.isRoot?a.options.notFoundComponent??e.options.notFoundRoute?.options.component:a.options.notFoundComponent,g=s.ssr===!1||s.ssr==="data-only",m=(!a.isRoot||a.options.wrapInSuspense||g)&&(a.options.wrapInSuspense??l??(a.options.errorComponent?.preload||g))?j.Suspense:Xa,v=d?pg:Xa,b=h?MP:Xa;return N.jsxs(a.isRoot?a.options.shellComponent??Xa:Xa,{children:[N.jsx($d.Provider,{value:t,children:N.jsx(m,{fallback:c,children:N.jsx(v,{getResetKey:()=>n,errorComponent:d||mg,onCatch:(_,E)=>{if(Bt(_))throw _.routeId??=s.routeId,_;f?.(_,E)},children:N.jsx(b,{fallback:_=>{if(_.routeId??=s.routeId,!h||_.routeId&&_.routeId!==s.routeId||!_.routeId&&!a.isRoot)throw _;return j.createElement(h,_)},children:g||s._displayPending?N.jsx(nP,{fallback:c,children:N.jsx(Hw,{matchId:t})}):N.jsx(Hw,{matchId:t})})})})}),s.parentRouteId===Fi?N.jsxs(N.Fragment,{children:[N.jsx(IP,{resetKey:n}),e.options.scrollRestoration&&WS?N.jsx(LP,{}):null]}):null]})}function IP({resetKey:e}){const t=Nt(),n=j.useRef(void 0);return so(()=>{const s=t.latestLocation.href;(n.current===void 0||n.current!==s)&&(t.emit({type:"onRendered",...lo(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=s)},[t.latestLocation.state.__TSR_key,e,t]),null}var Hw=j.memo(function({matchId:t}){const n=Nt(),s=(g,m)=>n.getMatch(g.id)?._nonReactive[m]??g._nonReactive[m],a=n.stores.matchStores.get(t);a||wn();const l=ht(a,g=>g),c=l.routeId,d=n.routesById[c],f=j.useMemo(()=>{const g=(n.routesById[c].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:c,loaderDeps:l.loaderDeps,params:l._strictParams,search:l._strictSearch});return g?JSON.stringify(g):void 0},[c,l.loaderDeps,l._strictParams,l._strictSearch,n.options.defaultRemountDeps,n.routesById]),h=j.useMemo(()=>{const g=d.options.component??n.options.defaultComponent;return g?N.jsx(g,{},f):N.jsx(lT,{})},[f,d.options.component,n.options.defaultComponent]);if(l._displayPending)throw s(l,"displayPendingPromise");if(l._forcePending)throw s(l,"minPendingPromise");if(l.status==="pending"){const g=d.options.pendingMinMs??n.options.defaultPendingMinMs;if(g){const m=n.getMatch(l.id);if(m&&!m._nonReactive.minPendingPromise){const v=Qi();m._nonReactive.minPendingPromise=v,setTimeout(()=>{v.resolve(),m._nonReactive.minPendingPromise=void 0},g)}}throw s(l,"loadPromise")}if(l.status==="notFound")return Bt(l.error)||wn(),aT(n,d,l.error);if(l.status==="redirected")throw nn(l.error)||wn(),s(l,"loadPromise");if(l.status==="error")throw l.error;return h}),lT=j.memo(function(){const t=Nt(),n=j.useContext($d);let s,a=!1,l;{const h=n?t.stores.matchStores.get(n):void 0;[s,a]=ht(h,g=>[g?.routeId,g?.globalNotFound??!1]),l=ht(t.stores.matchesId,g=>g[g.findIndex(m=>
12m===n)+1])}const c=s?t.routesById[s]:void 0,d=t.options.defaultPendingComponent?N.jsx(t.options.defaultPendingComponent,{}):null;if(a)return c||wn(),aT(t,c,void 0);if(!l)return null;const f=N.jsx(oT,{matchId:l});return s===Fi?N.jsx(j.Suspense,{fallback:d,children:f}):f});function UP(){const e=Nt(),t=j.useRef({router:e,mounted:!1}),[n,s]=j.useState(!1),a=ht(e.stores.isLoading,m=>m),l=ht(e.stores.hasPending,m=>m),c=kp(a),d=a||n||l,f=kp(d),h=a||l,g=kp(h);return e.startTransition=m=>{s(!0),j.startTransition(()=>{m(),s(!1)})},j.useEffect(()=>{const m=e.history.subscribe(e.load),v=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ns(e.latestLocation.publicHref)!==ns(v.publicHref)&&e.commitLocation({...v,replace:!0}),()=>{m()}},[e,e.history]),so(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(v){console.error(v)}})()},[e]),so(()=>{c&&!a&&e.emit({type:"onLoad",...lo(e.stores.location.get(),e.stores.resolvedLocation.get())})},[c,e,a]),so(()=>{g&&!h&&e.emit({type:"onBeforeRouteMount",...lo(e.stores.location.get(),e.stores.resolvedLocation.get())})},[h,g,e]),so(()=>{if(f&&!d){const m=lo(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...m}),Jx(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[d,f,e]),null}function zP(){const e=Nt(),t=e.routesById[Fi].options.pendingComponent??e.options.defaultPendingComponent,n=t?N.jsx(t,{}):null,s=N.jsxs(typeof document<"u"&&e.ssr?Xa:j.Suspense,{fallback:n,children:[N.jsx(UP,{}),N.jsx(BP,{})]});return e.options.InnerWrap?N.jsx(e.options.InnerWrap,{children:s}):s}function BP(){const e=Nt(),t=ht(e.stores.firstId,a=>a),n=ht(e.stores.loadedAt,a=>a),s=t?N.jsx(oT,{matchId:t}):null;return N.jsx($d.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?s:N.jsx(pg,{getResetKey:()=>n,errorComponent:mg,onCatch:void 0,children:s})})}var $P=e=>({createMutableStore:zw,createReadonlyStore:zw,batch:Jx}),qP=e=>new VP(e),VP=class extends OO{constructor(e){super(e,$P)}};function HP({router:e,children:t,...n}
12){JS(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const s=N.jsx(Wx.Provider,{value:e,children:t});return e.options.Wrap?N.jsx(e.options.Wrap,{children:s}):s}function FP({router:e,...t}){return N.jsx(HP,{router:e,...t,children:N.jsx(zP,{})})}function cT(e){const t=Nt(),n=j.useRef(void 0);return ht(t.stores.location,s=>{const a=s;if(t.options.defaultStructuralSharing){const l=Ks(n.current,a);return n.current=l,l}return a})}function Fw(e,t){if(t)for(const[n,s]of Object.entries(t))n!=="suppressHydrationWarning"&&s!==void 0&&s!==!1&&e.setAttribute(n,typeof s=="boolean"?"":String(s))}function uT(e){const{attrs:t,children:n,nonce:s,preventScriptHoist:a}=e;switch(e.tag){case"title":return N.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return N.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return N.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:s,suppressHydrationWarning:!0});case"style":return e.inlineCss,N.jsx("style",{...t,dangerouslySetInnerHTML:{__html:n},nonce:s});case"script":return N.jsx(GP,{attrs:t,preventScriptHoist:a,children:n});default:return null}}function GP({attrs:e,children:t,preventScriptHoist:n}){Nt();const s=gg(),a=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(j.useEffect(()=>{if(!a){if(e?.src){const l=(()=>{try{const d=document.baseURI||window.location.href;return new URL(e.src,d).href}catch{return e.src}})();for(const d of document.querySelectorAll("script[src]"))if(d.src===l)return;const c=document.createElement("script");return Fw(c,e),document.head.appendChild(c),()=>c.remove()}if(typeof t=="string"){const l=typeof e?.type=="string"?e.type:"text/javascript",c=typeof e?.nonce=="string"?e.nonce:void 0;for(const f of document.querySelectorAll("script:not([src])")){if(!(f instanceof HTMLScriptElement))continue;const h=f.getAttribute("type")??"text/javascript",g=f.getAttribute("nonce")??void 0;if(f.textContent===t&&h===l&&g===c)return}const d=document.createElement("script");return d.textContent=t,Fw(d,e),document.head.appendChild(d),()=>d.remove()}}},[e,t,a]),a&&typeof t=="string")return N.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!s){if(e?.src)return N.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return N.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var KP=e=>{const t=Nt(),n=t.options.ssr?.nonce,s=ht(t.stores.matches,m=>m.map(v=>v.meta).filter(v=>v!==void 0),an),a=j.useMemo(()=>{const m=[],v={};let b;for(let _=s.length-1;_>=0;_--){const E=s[_];for(let S=E.length-1;S>=0;S--){const x=E[S];if(x)if(x.title)b||(b={tag:"title",children:x.title});else if("script:ld+json"in x)try{const R=JSON.stringify(x["script:ld+json"]);m.push({tag:"script",attrs:{type:"application/ld+json"},children:YC(R)})}catch{}else{const R=x.name??x.property;if(R){if(v[R])continue;v[R]=!0}m.push({tag:"meta",attrs:{...x,nonce:n}})}}}return b&&m.push(b),n&&m.push({tag:"meta",attrs:{property:"csp-nonce",content:n}}),m.reverse(),m},[s,n]),l=ht(t.stores.matches,m=>m.flatMap(v=>v.links??[]).filter(v=>v!==void 0).map(v=>({tag:"link",attrs:{...v,nonce:n}})),an),c=ht(t.stores.matches,m=>{const v=t.ssr?.manifest,b=[];return v&&(m.forEach(_=>{v.routes[_.routeId]?.css?.forEach(E=>{const S=YO(E);b.push({tag:"link",attrs:{rel:"stylesheet",...S,crossOrigin:fx(e,"stylesheet")??S.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),v.inlineStyle&&b.push({tag:"style",attrs:{...v.inlineStyle.attrs,nonce:n},children:v.inlineStyle.children,inlineCss:!0})),b},an),d=ht(t.stores.matches,m=>{const v=[],b=t.ssr?.manifest;return b&&m.forEach(_=>{b.routes[_.routeId]?.preloads?.forEach(E=>{v.push({tag:"link",attrs:{...GO(b,E,e),nonce:n}})})}),v},an),f=ht(t.stores.matches,m=>m.flatMap(v=>v.styles??[]).filter(v=>v!==void 0).map(({children:v,...b})=>({tag:"style",attrs:{...b,nonce:n},children:v})),an),h=ht(t.stores.matches,m=>m.flatMap(v=>v.headScripts??[]).filter(v=>v!==void 0).map(({children:v,...b})=>({tag:"script",attrs:{...b,nonce:n},children:v})),an),g=[];return Ou(g,a),g.push(...d),Ou(g,l),g.push(...c),Ou(g,f),Ou(g,h),g};function YP(e){const t=KP(e.assetCrossOrigin),n=Nt().options.ssr?.nonce;return N.jsx(N.Fragment,{children:t.map(s=>j.createElement(uT,{...s,key:`tsr-meta-${JSON.stringify(s)}`,nonce:n}))})}var QP=()=>{const e=Nt(),t=e.options.ssr?.nonce,n=l=>{const c=[],d=e.ssr?.manifest;if(!d)return[];for(const f of l){const h=d.routes[f.routeId]?.scripts;if(h)for(const g of h)c.push({tag:"script",attrs:{...g.attrs,nonce:t},children:g.children,...typeof g.attrs?.src=="string"?{preventScriptHoist:!0}:{}})}return c},s=l=>l.map(c=>
12c.scripts).flat(1).filter(Boolean).map(({children:c,...d})=>({tag:"script",attrs:{...d,suppressHydrationWarning:!0,nonce:t},children:c})),a=ht(e.stores.matches,n,an);return WP(e,ht(e.stores.matches,s,an),a)};function WP(e,t,n){const s=[...t,...n];return N.jsx(N.Fragment,{children:s.map((a,l)=>j.createElement(uT,{...a,key:`tsr-scripts-${a.tag}-${l}`}))})}var Ws=(e,t)=>{const n={type:"request",...t||e};return{options:n,middleware:s=>Ws({},Object.assign(n,{middleware:s})),inputValidator:s=>Ws({},Object.assign(n,{inputValidator:s})),client:s=>Ws({},Object.assign(n,{client:s})),server:s=>Ws({},Object.assign(n,{server:s}))}};function dT(e,t){for(let n=0,s=t.length;n<s;n++){const a=t[n];e.has(a)||(e.add(a),a.extends&&dT(e,a.extends))}}var XP=e=>({getOptions:async()=>{const t=await e();if(t.serializationAdapters){const n=new Set;dT(n,t.serializationAdapters),t.serializationAdapters=Array.from(n)}return t},createMiddleware:Ws}),Gw=function(){return Gw=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Gw.apply(this,arguments)};function Hd(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]]);return n}function JP(e,t,n,s){function a(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function d(g){try{h(s.next(g))}catch(m){c(m)}}function f(g){try{h(s.throw(g))}catch(m){c(m)}}function h(g){g.done?l(g.value):a(g.value).then(d,f)}h((s=s.apply(e,t||[])).next())})}function xH(e,t,n){if(n||arguments.length===2)for(var s=0,a=t.length,l;s<a;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}const ZP=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class yg extends Error{constructor(t,n="FunctionsError",s){super(t),this.name=n,this.context=s}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class e2 extends yg{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Kw extends yg{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Yw extends yg{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var hm;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(hm||(hm={}));class t2{constructor(t,{headers:n={},customFetch:s,region:a=hm.Any}={}){this.url=t,this.headers=n,this.region=a,this.fetch=ZP(s)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return JP(this,arguments,void 0,function*(n,s={}){var a;let l,c;try{const{headers:d,method:f,body:h,signal:g,timeout:m}=s;let v={},{region:b}=s;b||(b=this.region);const _=new URL(`${this.url}/${n}`);b&&b!=="any"&&(v["x-region"]=b,_.searchParams.set("forceFunctionRegion",b));let E;h&&(d&&!Object.prototype.hasOwnProperty.call(d,"Content-Type")||!d)?typeof Blob<"u"&&h instanceof Blob||h instanceof ArrayBuffer?(v["Content-Type"]="application/octet-stream",E=h):typeof h=="string"?(v["Content-Type"]="text/plain",E=h):typeof FormData<"u"&&h instanceof FormData?E=h:(v["Content-Type"]="application/json",E=JSON.stringify(h)):h&&typeof h!="string"&&!(typeof Blob<"u"&&h instanceof Blob)&&!(h instanceof ArrayBuffer)&&!(typeof FormData<"u"&&h instanceof FormData)?E=JSON.stringify(h):E=h;let S=g;m&&(c=new AbortController,l=setTimeout(()=>c.abort(),m),g?(S=c.signal,g.addEventListener("abort",()=>c.abort())):S=c.signal);const x=yield this.fetch(_.toString(),{method:f||"POST",headers:Object.assign(Object.assign(Object.assign({},v),this.headers),d),body:E,signal:S}
12).catch(I=>{throw new e2(I)}),R=x.headers.get("x-relay-error");if(R&&R==="true")throw new Kw(x);if(!x.ok)throw new Yw(x);let C=((a=x.headers.get("Content-Type"))!==null&&a!==void 0?a:"text/plain").split(";")[0].trim(),O;return C==="application/json"?O=yield x.json():C==="application/octet-stream"||C==="application/pdf"?O=yield x.blob():C==="text/event-stream"?O=x:C==="multipart/form-data"?O=yield x.formData():O=yield x.text(),{data:O,error:null,response:x}}catch(d){return{data:null,error:d,response:d instanceof Yw||d instanceof Kw?d.context:void 0}}finally{l&&clearTimeout(l)}})}}const fT=3,Qw=e=>Math.min(1e3*2**e,3e4),n2=[520,503],hT=["GET","HEAD","OPTIONS"];var r2=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Ww(e,t){return new Promise(n=>{if(t?.aborted){n();return}const s=setTimeout(()=>{t?.removeEventListener("abort",a),n()},e);function a(){clearTimeout(s),n()}t?.addEventListener("abort",a)})}function s2(e,t,n,s){return!(!s||n>=fT||!hT.includes(e)||!n2.includes(t))}var i2=class{constructor(e){var t,n,s,a,l;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(s=e.shouldStripNulls)!==null&&s!==void 0?s:!1,this.urlLengthLimit=(a=e.urlLengthLimit)!==null&&a!==void 0?a:8e3,this.retryEnabled=(l=e.retry)!==null&&l!==void 0?l:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var 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 c=this.headers.get("Accept");c==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!c||c==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const s=this.fetch;let l=(async()=>{let c=0;for(;;){const h=new Headers(n.headers);c>0&&h.set("X-Retry-Count",String(c));let g;try{g=await s(n.url.toString(),{method:n.method,headers:h,body:JSON.stringify(n.body,(m,v)=>typeof v=="bigint"?v.toString():v),signal:n.signal})}catch(m){if(m?.name==="AbortError"||m?.code==="ABORT_ERR"||!hT.includes(n.method))throw m;if(n.retryEnabled&&c<fT){const v=Qw(c);c++,await Ww(v,n.signal);continue}throw m}if(s2(n.method,g.status,c,n.retryEnabled)){var d,f;const m=(d=(f=g.headers)===null||f===void 0?void 0:f.get("Retry-After"))!==null&&d!==void 0?d:null,v=m!==null?Math.max(0,parseInt(m,10)||0)*1e3:Qw(c);await g.text(),c++,await Ww(v,n.signal);continue}return await n.processResponse(g)}})();return this.shouldThrowOnError||(l=l.catch(c=>{var d;let f="",h="",g="";const m=c?.cause;if(m){var v,b,_,E;const R=(v=m?.message)!==null&&v!==void 0?v:"",C=(b=m?.code)!==null&&b!==void 0?b:"";f=`${(_=c?.name)!==null&&_!==void 0?_:"FetchError"}: ${c?.message}`,f+=`
13
14Caused by: ${(E=m?.name)!==null&&E!==void 0?E:"Error"}: ${R}`,C&&(f+=` (${C})`),m?.stack&&(f+=`
15${m.stack}`)}else{var S;f=(S=c?.stack)!==null&&S!==void 0?S:""}const x=this.url.toString().length;return c?.name==="AbortError"||c?.code==="ABORT_ERR"?(g="",h="Request was aborted (timeout or manual cancellation)",x>this.urlLengthLimit&&(h+=`. Note: Your request URL is ${x} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(m?.name==="HeadersOverflowError"||m?.code==="UND_ERR_HEADERS_OVERFLOW")&&(g="",h="HTTP headers exceeded server limits (typically 16KB)",x>this.urlLengthLimit&&(h+=`. Your request URL is ${x} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(d=c?.name)!==null&&d!==void 0?d:"FetchError"}: ${c?.message}`,details:f,hint:h,code:g},data:null,count:null,status:0,statusText:""}}
15)),l.then(e,t)}async processResponse(e){var t=this;let n=null,s=null,a=null,l=e.status,c=e.statusText;if(e.ok){var d,f;if(t.method!=="HEAD"){var h;const v=await e.text();v===""||(t.headers.get("Accept")==="text/csv"||t.headers.get("Accept")&&(!((h=t.headers.get("Accept"))===null||h===void 0)&&h.includes("application/vnd.pgrst.plan+text"))?s=v:s=JSON.parse(v))}const g=(d=t.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),m=(f=e.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");g&&m&&m.length>1&&(a=parseInt(m[1])),t.isMaybeSingle&&Array.isArray(s)&&(s.length>1?(n={code:"PGRST116",details:`Results contain ${s.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},s=null,a=null,l=406,c="Not Acceptable"):s.length===1?s=s[0]:s=null)}else{const g=await e.text();try{n=JSON.parse(g),Array.isArray(n)&&e.status===404&&(s=[],n=null,l=200,c="OK")}catch{e.status===404&&g===""?(l=204,c="No Content"):n={message:g}}if(n&&t.shouldThrowOnError)throw new r2(n)}return{success:n===null,error:n,data:s,count:a,status:l,statusText:c}}returns(){return this}overrideTypes(){return this}},a2=class extends i2{select(e){let t=!1;const n=(e??"*").split("").map(s=>/\s/.test(s)&&!t?"":(s==='"'&&(t=!t),s)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:s,referencedTable:a=s}={}){const l=a?`${a}.order`:"order",c=this.url.searchParams.get(l);return this.url.searchParams.set(l,`${c?`${c},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const s=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:s=n}={}){const a=typeof s>"u"?"offset":`${s}.offset`,l=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(a,`${e}`),this.url.searchParams.set(l,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:s=!1,wal:a=!1,format:l="text"}={}){var c;const d=[e?"analyze":null,t?"verbose":null,n?"settings":null,s?"buffers":null,a?"wal":null].filter(Boolean).join("|"),f=(c=this.headers.get("Accept"))!==null&&c!==void 0?c:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${l}; for="${f}"; options=${d};`),l==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Xw=new RegExp("[,()]");var Ja=class extends a2{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(s=>typeof s=="string"&&Xw.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(s=>typeof s=="string"&&Xw.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:s}={}){let a="";s==="plain"?a="pl":s==="phrase"?a="ph":s==="websearch"&&(a="w");const l=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${a}fts${l}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>
15n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const s=n?`${n}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},o2=class{constructor(e,{headers:t={},schema:n,fetch:s,urlLengthLimit:a=8e3,retry:l}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=s,this.urlLengthLimit=a,this.retry=l}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:s}=t??{},a=n?"HEAD":"GET";let l=!1;const c=(e??"*").split("").map(h=>/\s/.test(h)&&!l?"":(h==='"'&&(l=!l),h)).join(""),{url:d,headers:f}=this.cloneRequestState();return d.searchParams.set("select",c),s&&f.append("Prefer",`count=${s}`),new Ja({method:a,url:d,headers:f,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){var s;const a="POST",{url:l,headers:c}=this.cloneRequestState();if(t&&c.append("Prefer",`count=${t}`),n||c.append("Prefer","missing=default"),Array.isArray(e)){const d=e.reduce((f,h)=>f.concat(Object.keys(h)),[]);if(d.length>0){const f=[...new Set(d)].map(h=>`"${h}"`);l.searchParams.set("columns",f.join(","))}}return new Ja({method:a,url:l,headers:c,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:s,defaultToNull:a=!0}={}){var l;const c="POST",{url:d,headers:f}=this.cloneRequestState();if(f.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&d.searchParams.set("on_conflict",t),s&&f.append("Prefer",`count=${s}`),a||f.append("Prefer","missing=default"),Array.isArray(e)){const h=e.reduce((g,m)=>g.concat(Object.keys(m)),[]);if(h.length>0){const g=[...new Set(h)].map(m=>`"${m}"`);d.searchParams.set("columns",g.join(","))}}return new Ja({method:c,url:d,headers:f,schema:this.schema,body:e,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const s="PATCH",{url:a,headers:l}=this.cloneRequestState();return t&&l.append("Prefer",`count=${t}`),new Ja({method:s,url:a,headers:l,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:s,headers:a}=this.cloneRequestState();return e&&a.append("Prefer",`count=${e}`),new Ja({method:n,url:s,headers:a,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Vl(e){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vl(e)}function l2(e,t){if(Vl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(Vl(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c2(e){var t=l2(e,"string");return Vl(t)=="symbol"?t:t+""}function u2(e,t,n){return(t=c2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function Mu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jw(Object(n),!0).forEach(function(s){u2(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}var d2=class pT{constructor(t,{headers:n={},schema:s,fetch:a,timeout:l,urlLengthLimit:c=8e3,retry:d}={}){this.url=t,this.headers=new Headers(n),this.schemaName=s,this.urlLengthLimit=c;const f=a??globalThis.fetch;l!==void 0&&l>0?this.fetch=(h,g)=>{const m=new AbortController,v=setTimeout(()=>m.abort(),l),b=g?.signal;if(b){if(b.aborted)return clearTimeout(v),f(h,g);const _=()=>{clearTimeout(v),m.abort()};return b.addEventListener("abort",_,{once:!0}),f(h,Mu(Mu({},g),{},{signal:m.signal})).finally(()=>{clearTimeout(v),b.removeEventListener("abort",_)})}return f(h,Mu(Mu({},g),{},{signal:m.signal})).finally(()=>clearTimeout(v))}:this.fetch=f,this.retry=d}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new o2(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new pT(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,n={},{head:s=!1,get:a=!1,count:l}={}){var c;let d;const f=new URL(`${this.url}/rpc/${t}`);let h;const g=b=>b!==null&&typeof b=="object"&&(!Array.isArray(b)||b.some(g)),m=s&&Object.values(n).some(g);m?(d="POST",h=n):s||a?(d=s?"HEAD":"GET",Object.entries(n).filter(([b,_])=>_!==void 0).map(([b,_])=>[b,Array.isArray(_)?`{${_.join(",")}}`:`${_}
15`]).forEach(([b,_])=>{f.searchParams.append(b,_)})):(d="POST",h=n);const v=new Headers(this.headers);return m?v.set("Prefer",l?`count=${l},return=minimal`:"return=minimal"):l&&v.set("Prefer",`count=${l}`),new Ja({method:d,url:f,headers:v,schema:this.schemaName,body:h,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class f2{constructor(){}static detectEnvironment(){var t;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 s=typeof global<"u"?global:void 0;if(s&&typeof s.WebSocket<"u")return{type:"native",wsConstructor:s.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"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const a=globalThis.process;if(a){const l=a.versions;if(l&&l.node){const c=l.node,d=parseInt(c.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:
16import ws from "ws"
17new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
18
19Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const h2="2.105.4",p2=`realtime-js/${h2}`,m2="1.0.0",mT="2.0.0",g2=mT,y2=1e4,v2=100,Fs={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},gT={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},pm={connecting:"connecting",closing:"closing",closed:"closed"};class b2{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let s=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(s))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,s;const a=(s=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&s!==void 0?s:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,a)}_encodeJsonUserBroadcastPush(t){var n,s;const a=(s=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&s!==void 0?s:{},c=new TextEncoder().encode(JSON.stringify(a)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,c)}_encodeUserBroadcastPush(t,n,s){var a,l;const c=t.topic,d=(a=t.ref)!==null&&a!==void 0?a:"",f=(l=t.join_ref)!==null&&l!==void 0?l:"",h=t.payload.event,g=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},m=Object.keys(g).length===0?"":JSON.stringify(g);if(f.length>255)throw new Error(`joinRef length ${f.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`ref length ${d.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`topic length ${c.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`userEvent length ${h.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`metadata length ${m.length} exceeds maximum of 255`);const v=this.USER_BROADCAST_PUSH_META_LENGTH+f.length+d.length+c.length+h.length+m.length,b=new ArrayBuffer(this.HEADER_LENGTH+v);let _=new DataView(b),E=0;_.setUint8(E++,this.KINDS.userBroadcastPush),_.setUint8(E++,f.length),_.setUint8(E++,d.length),_.setUint8(E++,c.length),_.setUint8(E++,h.length),_.setUint8(E++,m.length),_.setUint8(E++,n),Array.from(f,x=>_.setUint8(E++,x.charCodeAt(0))),Array.from(d,x=>_.setUint8(E++,x.charCodeAt(0))),Array.from(c,x=>_.setUint8(E++,x.charCodeAt(0))),Array.from(h,x=>_.setUint8(E++,x.charCodeAt(0))),Array.from(m,x=>_.setUint8(E++,x.charCodeAt(0)));var S=new Uint8Array(b.byteLength+s.byteLength);return S.set(new Uint8Array(b),0),S.set(new Uint8Array(s),b.byteLength),S.buffer}decode(t,n){if(this._isArrayBuffer(t)){let s=this._binaryDecode(t);return n(s)}if(typeof t=="string"){const s=JSON.parse(t),[a,l,c,d,f]=s;
19return n({join_ref:a,ref:l,topic:c,event:d,payload:f})}return n({})}_binaryDecode(t){const n=new DataView(t),s=n.getUint8(0),a=new TextDecoder;if(s===this.KINDS.userBroadcast)return this._decodeUserBroadcast(t,n,a)}_decodeUserBroadcast(t,n,s){const a=n.getUint8(1),l=n.getUint8(2),c=n.getUint8(3),d=n.getUint8(4);let f=this.HEADER_LENGTH+4;const h=s.decode(t.slice(f,f+a));f=f+a;const g=s.decode(t.slice(f,f+l));f=f+l;const m=s.decode(t.slice(f,f+c));f=f+c;const v=t.slice(f,t.byteLength),b=d===this.JSON_ENCODING?JSON.parse(s.decode(v)):v,_={type:this.BROADCAST_EVENT,event:g,payload:b};return c>0&&(_.meta=JSON.parse(m)),{join_ref:null,ref:null,topic:h,event:this.BROADCAST_EVENT,payload:_}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t?.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([s])=>n.includes(s)))}}var Je;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Je||(Je={}));const Zw=(e,t,n={})=>{var s;const a=(s=n.skipTypes)!==null&&s!==void 0?s:[];return t?Object.keys(t).reduce((l,c)=>(l[c]=w2(c,e,t,a),l),{}):{}},w2=(e,t,n,s)=>{const a=t.find(d=>d.name===e),l=a?.type,c=n[e];return l&&!s.includes(l)?yT(l,c):mm(c)},yT=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return T2(t,n)}switch(e){case Je.bool:return _2(t);case Je.float4:case Je.float8:case Je.int2:case Je.int4:case Je.int8:case Je.numeric:case Je.oid:return S2(t);case Je.json:case Je.jsonb:return x2(t);case Je.timestamp:return E2(t);case Je.abstime:case Je.date:case Je.daterange:case Je.int4range:case Je.int8range:case Je.money:case Je.reltime:case Je.text:case Je.time:case Je.timestamptz:case Je.timetz:case Je.tsrange:case Je.tstzrange:return mm(t);default:return mm(t)}},mm=e=>e,_2=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},S2=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},x2=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},T2=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,s=e[n];if(e[0]==="{"&&s==="}"){let l;const c=e.slice(1,n);try{l=JSON.parse("["+c+"]")}catch{l=c?c.split(","):[]}return l.map(d=>yT(t,d))}return e},E2=e=>typeof e=="string"?e.replace(" ","T"):e,vT=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Pl=e=>typeof e=="function"?e:function(){return e},R2=typeof self<"u"?self:null,Za=typeof window<"u"?window:null,_r=R2||Za||globalThis,A2="2.0.0",C2=1e4,O2=1e3,xr={connecting:0,open:1,closing:2,closed:3},vn={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"},gm={longpoll:"longpoll",websocket:"websocket"},k2={complete:4},ym="base64url.bearer.phx.",Pu=class{constructor(e,t,n,s){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}
vendor: 8,135 bytes, line 19
19matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(s=>s.status===e).forEach(s=>s.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},bT=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},N2=class{constructor(e,t,n){this.state=vn.closed,this.topic=e,this.params=Pl(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Pu(this,Zr.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new bT(()=>{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=vn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",s=>{this.state=vn.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=vn.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=vn.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 Pu(this,Zr.leave,Pl({}),this.timeout).send(),this.state=vn.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Zr.reply,(s,a)=>{this.trigger(this.replyEventName(a),s)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=vn.closed,this.bindings=[]}onClose(e){this.on(Zr.close,e)}onError(e){return this.on(Zr.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new Pu(this,e,function(){return t},n);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=vn.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Zr.close,"leave")},n=new Pu(this,Zr.leave,Pl({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,s){return this.topic!==e?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=vn.joining,this.joinPush.resend(e))}trigger(e,t,n,s){let a=this.onMessage(e,t,n,s);if(t&&!a)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let l=this.bindings.filter(c=>c.event===e&&this.filterBindings(c,t,n));for(let c=0;c<l.length;c++)l[c].callback(a,n,s||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===vn.closed}isErrored(){return this.state===vn.errored}isJoined(){return this.state===vn.joined}isJoining(){return this.state===vn.joining}isLeaving(){return this.state===vn.leaving}},hd=class{static request(e,t,n,s,a,l,c){if(_r.XDomainRequest){let d=new _r.XDomainRequest;return this.xdomainRequest(d,e,t,s,a,l,c)}else if(_r.XMLHttpRequest){let d=new _r.XMLHttpRequest;return this.xhrRequest(d,e,t,n,s,a,l,c)}else{if(_r.fetch&&_r.AbortController)return this.fetchRequest(e,t,n,s,a,l,c);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,s,a,l,c){let d={method:e,headers:n,body:s},f=null;return a&&(f=new AbortController,setTimeout(()=>f.abort(),a),d.signal=f.signal),_r.fetch(t,d).then(h=>h.text()).then(h=>this.parseJSON(h)).then(h=>c&&c(h)).catch(h=>{h.name==="AbortError"&&l?l():c&&c(null)}),f}static xdomainRequest(e,t,n,s,a,l,c){return e.timeout=a,e.open(t,n),e.onload=()=>{let d=this.parseJSON(e.responseText);c&&c(d)},l&&(e.ontimeout=l),e.onprogress=()=>{},e.send(s),e}static xhrRequest(e,t,n,s,a,l,c,d){e.open(t,n,!0),e.timeout=l;for(let[f,h]of Object.entries(s))e.setRequestHeader(f,h);return e.onerror=()=>d&&d(null),e.onreadystatechange=()=>{if(e.readyState===k2.complete&&d){let f=this.parseJSON(e.responseText);d(f)}},c&&(e.ontimeout=c),e.send(a),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let a=t?`${t}[${s}]`:s,l=e[s];typeof l=="object"?n.push(this.serialize(l,a)):n.push(encodeURIComponent(a)+"="+encodeURIComponent(l))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},M2=e=>{let t="",n=new Uint8Array(e),s=n.byteLength;for(let a=0;a<s;a++)t+=String.fromCharCode(n[a]);return btoa(t)},Ha=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(ym)&&(this.authToken=atob(t[1].slice(ym.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=xr.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+gm.websocket),"$1/"+gm.longpoll)}endpointURL(){return hd.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=xr.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===xr.open||this.readyState===xr.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:s,messages:a}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=s}else n=0;switch(n){case 200:a.forEach(l=>{setTimeout(()=>this.onmessage({data:l}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=xr.open,this.onopen({}),this.poll();break;
19case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=M2(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(`
20`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let a of this.reqs)a.abort();this.readyState=xr.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(e,t,n,s,a){let l,c=()=>{this.reqs.delete(l),s()};l=hd.request(e,this.endpointURL(),t,n,this.timeout,c,d=>{this.reqs.delete(l),this.isActive()&&a(d)}),this.reqs.add(l)}},P2=class kl{constructor(t,n={}){let s=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(s.state,a=>{let{onJoin:l,onLeave:c,onSync:d}=this.caller;this.joinRef=this.channel.joinRef(),this.state=kl.syncState(this.state,a,l,c),this.pendingDiffs.forEach(f=>{this.state=kl.syncDiff(this.state,f,l,c)}),this.pendingDiffs=[],d()}),this.channel.on(s.diff,a=>{let{onJoin:l,onLeave:c,onSync:d}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(a):(this.state=kl.syncDiff(this.state,a,l,c),d())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return kl.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,s,a){let l=this.clone(t),c={},d={};return this.map(l,(f,h)=>{n[f]||(d[f]=h)}),this.map(n,(f,h)=>{let g=l[f];if(g){let m=h.metas.map(E=>E.phx_ref),v=g.metas.map(E=>E.phx_ref),b=h.metas.filter(E=>v.indexOf(E.phx_ref)<0),_=g.metas.filter(E=>m.indexOf(E.phx_ref)<0);b.length>0&&(c[f]=h,c[f].metas=b),_.length>0&&(d[f]=this.clone(g),d[f].metas=_)}else c[f]=h}),this.syncDiff(l,{joins:c,leaves:d},s,a)}static syncDiff(t,n,s,a){let{joins:l,leaves:c}=this.clone(n);return s||(s=function(){}),a||(a=function(){}),this.map(l,(d,f)=>{let h=t[d];if(t[d]=this.clone(f),h){let g=t[d].metas.map(v=>v.phx_ref),m=h.metas.filter(v=>g.indexOf(v.phx_ref)<0);t[d].metas.unshift(...m)}s(d,h,f)}),this.map(c,(d,f)=>{let h=t[d];if(!h)return;let g=f.metas.map(m=>m.phx_ref);h.metas=h.metas.filter(m=>g.indexOf(m.phx_ref)<0),a(d,h,f),h.metas.length===0&&delete t[d]}),t}static list(t,n){return n||(n=function(s,a){return a}),this.map(t,(s,a)=>n(s,a))}static map(t,n){return Object.getOwnPropertyNames(t).map(s=>n(s,t[s]))}static clone(t){return JSON.parse(JSON.stringify(t))}},ju={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,s,a,l,c]=JSON.parse(e);return t({join_ref:n,ref:s,topic:a,event:l,payload:c})}},binaryEncode(e){let{join_ref:t,ref:n,event:s,topic:a,payload:l}=e,c=this.META_LENGTH+t.length+n.length+a.length+s.length,d=new ArrayBuffer(this.HEADER_LENGTH+c),f=new DataView(d),h=0;f.setUint8(h++,this.KINDS.push),f.setUint8(h++,t.length),f.setUint8(h++,n.length),f.setUint8(h++,a.length),f.setUint8(h++,s.length),Array.from(t,m=>f.setUint8(h++,m.charCodeAt(0))),Array.from(n,m=>f.setUint8(h++,m.charCodeAt(0))),Array.from(a,m=>f.setUint8(h++,m.charCodeAt(0))),Array.from(s,m=>f.setUint8(h++,m.charCodeAt(0)));var g=new Uint8Array(d.byteLength+l.byteLength);return g.set(new Uint8Array(d),0),g.set(new Uint8Array(l),d.byteLength),g.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,s);case this.KINDS.reply:return this.decodeReply(e,t,s);
20case this.KINDS.broadcast:return this.decodeBroadcast(e,t,s)}},decodePush(e,t,n){let s=t.getUint8(1),a=t.getUint8(2),l=t.getUint8(3),c=this.HEADER_LENGTH+this.META_LENGTH-1,d=n.decode(e.slice(c,c+s));c=c+s;let f=n.decode(e.slice(c,c+a));c=c+a;let h=n.decode(e.slice(c,c+l));c=c+l;let g=e.slice(c,e.byteLength);return{join_ref:d,ref:null,topic:f,event:h,payload:g}},decodeReply(e,t,n){let s=t.getUint8(1),a=t.getUint8(2),l=t.getUint8(3),c=t.getUint8(4),d=this.HEADER_LENGTH+this.META_LENGTH,f=n.decode(e.slice(d,d+s));d=d+s;let h=n.decode(e.slice(d,d+a));d=d+a;let g=n.decode(e.slice(d,d+l));d=d+l;let m=n.decode(e.slice(d,d+c));d=d+c;let v=e.slice(d,e.byteLength),b={status:m,response:v};return{join_ref:f,ref:h,topic:g,event:Zr.reply,payload:b}},decodeBroadcast(e,t,n){let s=t.getUint8(1),a=t.getUint8(2),l=this.HEADER_LENGTH+2,c=n.decode(e.slice(l,l+s));l=l+s;let d=n.decode(e.slice(l,l+a));l=l+a;let f=e.slice(l,e.byteLength);return{join_ref:null,ref:null,topic:c,event:d,payload:f}}},j2=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||C2,this.transport=t.transport||_r.WebSocket||Ha,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=_r&&_r.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=ju.encode.bind(ju),this.defaultDecoder=ju.decode.bind(ju),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==Ha?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let s=null;Za&&Za.addEventListener&&(Za.addEventListener("pagehide",a=>{this.conn&&(this.disconnect(),s=this.connectClock)}),Za.addEventListener("pageshow",a=>{s===this.connectClock&&(s=null,this.connect())}),Za.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=a=>t.rejoinAfterMs?t.rejoinAfterMs(a):[1e3,2e3,5e3][a-1]||1e4,this.reconnectAfterMs=a=>t.reconnectAfterMs?t.reconnectAfterMs(a):[10,50,100,150,200,250,500,1e3,2e3][a-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(a,l,c)=>{console.log(`${a}: ${l}`,c)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Pl(t.params||{}),this.endPoint=`${e}/${gm.websocket}`,this.vsn=t.vsn||A2,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new bT(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return Ha}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=hd.appendParams(hd.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Pl(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Ha?this.connectWithF
vendor: 4,353 bytes, line 20
20allback(Ha,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let s=this.onMessage(a=>{a.ref===t&&(this.off([s]),e(Date.now()-n))});return!0}transportName(e){return e===Ha?"LongPoll":e.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${ym}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,s=!0,a,l,c=this.transportName(e),d=f=>{this.log("transport",`falling back to ${c}...`,f),this.off([a,l]),s=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${c}`))return d("memorized");this.fallbackTimer=setTimeout(d,t),l=this.onError(f=>{this.log("transport","error",f),s&&!n&&(clearTimeout(this.fallbackTimer),d(f))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!s){let f=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${f}`,"true"),this.log("transport",`established ${f} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(d,t),this.ping(f=>{this.log("transport","connected to primary after",f),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),O2,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const s=this.conn;this.waitForBufferDone(s,()=>{t?s.close(t,n||""):s.close(),this.waitForSocketClosed(s,()=>{this.conn===s&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===xr.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
20triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Zr.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case xr.connecting:return"connecting";case xr.open:return"open";case xr.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new N2(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:s,ref:a,join_ref:l}=e;this.log("push",`${t} ${n} (${l}, ${a})`,s)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:s,payload:a,ref:l,join_ref:c}=t;if(l&&l===this.pendingHeartbeatRef){const d=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(a.status==="ok"?"ok":"error",d)}catch(f){this.log("error","error in heartbeat callback",f)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${a.status||""} ${n} ${s} ${l&&"("+l+")"||""}`.trim(),a);for(let d=0;d<this.channels.length;d++){const f=this.channels[d];f.isMember(n,s,a,c)&&f.trigger(s,a,l,c)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,s])=>{try{s(...t)}catch(a){this.log("error",`error in ${e} callback`,a)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class jl{constructor(t,n){const s=D2(n);this.presence=new P2(t.getChannel(),s),this.presence.onJoin((a,l,c)=>{const d=jl.onJoinPayload(a,l,c);t.getChannel().trigger("presence",d)}),this.presence.onLeave((a,l,c)=>{const d=jl.onLeavePayload(a,l,c);t.getChannel().trigger("presence",d)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return jl.transformState(this.presence.state)}static transformState(t){return t=L2(t),Object.getOwnPropertyNames(t).reduce((n,s)=>{const a=t[s];return n[s]=td(a),n},{})}static onJoinPayload(t,n,s){const a=e_(n),l=td(s);return{event:"join",key:t,currentPresences:a,newPresences:l}}static onLeavePayload(t,n,s){const a=e_(n),l=td(s);return{event:"leave",key:t,currentPresences:a,leftPresences:l}}}function td(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function L2(e){return JSON.parse(JSON.stringify(e))}function D2(e){return e?.events&&{events:e.events}}function e_(e){return e?.metas?td(e):[]}var t_;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(t_||(t_={}));class I2{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new jl(this.channel.channelAdapter,n)}}function U2(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
20if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const n=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${n}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class z2{constructor(t,n,s){const a=B2(s);this.channel=t.getSocket().channel(n,a),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,s){let a;try{a=this.channel.push(t,n,s)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>v2){const l=this.channel.pushBuffer.shift();l.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${l.event}`,l.payload())}return a}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===Fs.joined}isJoined(){return this.state===Fs.joined}isJoining(){return this.state===Fs.joining}isClosed(){return this.state===Fs.closed}isLeaving(){return this.state===Fs.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function B2(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var n_;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(n_||(n_={}));var io;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(io||(io={}));var es;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(es||(es={}));class Ll{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},s){var a,l;if(this.topic=t,this.params=n,this.socket=s,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new z2(this.socket.socketAdapter,t,this.params),this.presence=new I2(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=vT(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((l=(a=this.params.config)===null||a===void 0?void 0:a.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(t,n=this.timeout){var s,a,l;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:c,presence:d,private:f}}=this.params,h=(a=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(b=>b.filter))!==null&&a!==void 0?a:[],g=!!this.bindings[io.PRESENCE]&&this.bindings[io.PRESENCE].length>0||((l=this.params.config.presence)===null||l===void 0?void 0:l.enabled)===!0,m={},v={broadcast:c,presence:Object.assign(Object.assign({},d),{enabled:g}),postgres_changes:h,private:f};this.socket.accessTokenValue&&(m.access_token=this.socket.accessTokenValue),this._onError(b=>{t?.(es.CHANNEL_ERROR,U2(b))}),this._onClose(()=>t?.(es.CLOSED)),this.updateJoinPayload(Object.assign({config:v},m)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:b})=>{if(this.socket._isManualToken()||this.socket.setAuth(),b===void 0){t?.(es.SUBSCRIBED);return}this._updatePostgresBindings(b,t)}).receive("error",b=>{this.state=Fs.errored;const _=Object.values(b).join(", ")||"error";t?.(es.CHANNEL_ERROR,new Error(_,{cause:b}))}).receive("timeout",()=>{t?.(es.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var s;const a=this.bindings.postgres_changes,l=(s=a?.length)!==null&&s!==void 0?s:0,c=[];for(let d=0;d<l;d++){const f=a[d],{filter:{event:h,schema:g,table:m,filter:v}}=f,b=t&&t[d];if(b&&b.event===h&&Ll.isFilterValueEqual(b.schema,g)&&Ll.isFilterValueEqual(b.table,m)&&Ll.isFilterValueEqual(b.filter,v))c.push(Object.assign(Object.assign({},f),{id:b.id}));else{this.unsubscribe(),this.state=Fs.errored,n?.(es.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=c,this.state!=Fs.errored&&n&&n(es.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,s){const a=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),l=t===io.PRESENCE||t===io.POSTGRES_CHANGES;if(a&&l)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,s)}async httpSend(t,n,s={}){var a;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 c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},d=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(a=s.timeout)!==null&&a!==void 0?a:this.timeout);if(d.status===202)return{success:!0};let f=d.statusText;
20try{const h=await d.json();f=h.error||h.message||f}catch{}return Promise.reject(new Error(f))}async send(t,n={}){var s,a;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:l,payload:c}=t,d={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(d.Authorization=`Bearer ${this.socket.accessTokenValue}`);const f={method:"POST",headers:d,body:JSON.stringify({messages:[{topic:this.subTopic,event:l,payload:c,private:this.private}]})};try{const h=await this._fetchWithTimeout(this.broadcastEndpointURL,f,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);return await((a=h.body)===null||a===void 0?void 0:a.cancel()),h.ok?"ok":"error"}catch(h){return h instanceof Error&&h.name==="AbortError"?"timed out":"error"}}else return new Promise(l=>{var c,d,f;const h=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((f=(d=(c=this.params)===null||c===void 0?void 0:c.config)===null||d===void 0?void 0:d.broadcast)===null||f===void 0)&&f.ack)&&l("ok"),h.receive("ok",()=>l("ok")),h.receive("error",()=>l("error")),h.receive("timeout",()=>l("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,s){const a=new AbortController,l=setTimeout(()=>a.abort(),s),c=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:a.signal}));return clearTimeout(l),c}_on(t,n,s){const a=t.toLocaleLowerCase(),l=this.channelAdapter.on(t,s),c={type:a,filter:n,callback:s,ref:l};return this.bindings[a]?this.bindings[a].push(c):this.bindings[a]=[c],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,s)=>{var a,l,c,d,f,h,g;const m=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(m,s))return!1;const v=(a=this.bindings[m])===null||a===void 0?void 0:a.find(b=>b.ref===t.ref);if(!v)return!0;if(["broadcast","presence","postgres_changes"].includes(m))if("id"in v){const b=v.id,_=(l=v.filter)===null||l===void 0?void 0:l.event;return b&&((c=n.ids)===null||c===void 0?void 0:c.includes(b))&&(_==="*"||_?.toLocaleLowerCase()===((d=n.data)===null||d===void 0?void 0:d.type.toLocaleLowerCase()))}else{const b=(h=(f=v?.filter)===null||f===void 0?void 0:f.event)===null||h===void 0?void 0:h.toLocaleLowerCase();return b==="*"||b===((g=n?.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return v.type.toLocaleLowerCase()===m})}_notThisChannelEvent(t,n){const{close:s,error:a,leave:l,join:c}=gT;return n&&[s,a,l,c].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,s)=>{if(typeof n=="object"&&"ids"in n){const a=n.data,{schema:l,table:c,commit_timestamp:d,type:f,errors:h}=a;return Object.assign(Object.assign({},{schema:l,table:c,commit_timestamp:d,eventType:f,new:{},old:{},errors:h}),this._getPayloadRecords(a))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const s of t.bindings[n])this._on(s.type,s.filter,s.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Zw(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Zw(t.columns,t.old_record)),n}}class $2{constructor(t,n){this.socket=new j2(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,s,a=1e4){return new Promise(l=>{setTimeout(()=>l("timeout"),a),this.socket.disconnect(()=>{t(),l("ok")},n,s)})}push(t){this.socket.push(t)}log(t,n,s){this.socket.log(t,n,s)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==pm.connecting}isDisconnecting(){return this.socket.connectionState()==pm.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const r_={HEARTBEAT_INTERVAL:25e3},q2=[1e3,2e3,5e3,1e4],V2=1e4;function H2(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var n;return(n=Array.from(e.keys())[t])!==null&&n!==void 0?n:null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function F2(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return H2()}const G2=`
21  addEventListener("message", (e) => {
22    if (e.data.event === "start") {
23      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
24    }
25  });`;class K2{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var s;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
25,this.ref=0,this.serializer=new b2,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=l=>l?(...c)=>l(...c):(...c)=>fetch(...c),!(!((s=n?.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const a=this._initializeOptions(n);this.socketAdapter=new $2(t,a),this.httpEndpoint=vT(t),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(t){const n=t.message;throw n.includes("Node.js")?new Error(`${n}
26
27To use Realtime in Node.js, you need to provide a WebSocket implementation:
28
29Option 1: Use Node.js 22+ which has native WebSocket support
30Option 2: Install and provide the "ws" package:
31
32  npm install ws
33
34  import ws from "ws"
35  const client = new RealtimeClient(url, {
36    ...options,
37    transport: ws
38  })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),n}async removeAllChannels(){const t=this.channels.map(async s=>{const a=await s.unsubscribe();return s.teardown(),a}),n=await Promise.all(t);return await this.disconnect(),n}log(t,n,s){this.socketAdapter.log(t,n,s)}connectionState(){return this.socketAdapter.connectionState()||pm.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const s=`realtime:${t}`,a=this.getChannels().find(l=>l.topic===s);if(a)return a;{const l=new Ll(`realtime:${t}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(l),l}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic),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}
38this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let n,s=!1;if(t)n=t,s=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(a){this.log("error","Error fetching access token from callback",a),n=this.accessTokenValue}else n=this.accessTokenValue;s?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(a=>{const l={access_token:n,version:p2};n&&a.updateJoinPayload(l),a.joinedOnce&&a.channelAdapter.isJoined()&&a.channelAdapter.push(gT.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,s)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,s)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let n;if(t)n=t;else{const s=new Blob([G2],{type:"application/javascript"});n=URL.createObjectURL(s)}return n}_initializeOptions(t){var n,s,a,l,c,d,f,h,g,m,v,b;this.worker=(n=t?.worker)!==null&&n!==void 0?n:!1,this.accessToken=(s=t?.accessToken)!==null&&s!==void 0?s:null;const _={};_.timeout=(a=t?.timeout)!==null&&a!==void 0?a:y2,_.heartbeatIntervalMs=(l=t?.heartbeatIntervalMs)!==null&&l!==void 0?l:r_.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(c=t?.disconnectOnEmptyChannelsAfterMs)!==null&&c!==void 0?c:2*((d=t?.heartbeatIntervalMs)!==null&&d!==void 0?d:r_.HEARTBEAT_INTERVAL),_.transport=(f=t?.transport)!==null&&f!==void 0?f:f2.getWebSocketConstructor(),_.params=t?.params,_.logger=t?.logger,_.heartbeatCallback=this._wrapHeartbeatCallback(t?.heartbeatCallback),_.sessionStorage=(h=t?.sessionStorage)!==null&&h!==void 0?h:F2(),_.reconnectAfterMs=(g=t?.reconnectAfterMs)!==null&&g!==void 0?g:(R=>q2[R-1]||V2);let E,S;const x=(m=t?.vsn)!==null&&m!==void 0?m:g2;switch(x){case m2:E=(R,C)=>C(JSON.stringify(R)),S=(R,C)=>C(JSON.parse(R));break;case mT:E=this.serializer.encode.bind(this.serializer),S=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${_.vsn}`)}if(_.vsn=x,_.encode=(v=t?.encode)!==null&&v!==void 0?v:E,_.decode=(b=t?.decode)!==null&&b!==void 0?b:S,_.beforeReconnect=this._reconnectAuth.bind(this),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,_.params=Object.assign(Object.assign({},_.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t?.workerUrl,_.autoSendHeartbeat=!this.worker}return _}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
38var Hl=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&t.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function Y2(e,t,n){const s=new URL(t,e);if(n)for(const[a,l]of Object.entries(n))l!==void 0&&s.searchParams.set(a,l);return s.toString()}async function Q2(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function W2(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:s,query:a,body:l,headers:c}){const d=Y2(e.baseUrl,s,a),f=await Q2(e.auth),h=await t(d,{method:n,headers:{...l?{"Content-Type":"application/json"}:{},...f,...c},body:l?JSON.stringify(l):void 0}),g=await h.text(),m=(h.headers.get("content-type")||"").includes("application/json"),v=m&&g?JSON.parse(g):g;if(!h.ok){const b=m?v:void 0,_=b?.error;throw new Hl(_?.message??`Request failed with status ${h.status}`,{status:h.status,icebergType:_?.type,icebergCode:_?.code,details:b})}return{status:h.status,headers:h.headers,data:v}}}}function Lu(e){return e.join("�")}var X2=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Lu(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(s=>({namespace:s}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Lu(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Lu(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Lu(e.namespace)}`}),!0}catch(t){if(t instanceof Hl&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Hl&&n.status===409)return;throw n}}};function Fa(e){return e.join("�")}var J2=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Fa(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Fa(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Fa(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Fa(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Fa(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Fa(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Hl&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Hl&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},Z2=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=W2({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new X2(this.client,t),this.tableOps=new J2(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
38async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function Fl(e){"@babel/helpers - typeof";return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fl(e)}function ej(e,t){if(Fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(Fl(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tj(e){var t=ej(e,"string");return Fl(t)=="symbol"?t:t+""}function nj(e,t,n){return(t=tj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s_(Object(n),!0).forEach(function(s){nj(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s_(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}var Fd=class extends Error{constructor(e,t="storage",n,s){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Gd(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var vm=class extends Fd{constructor(e,t,n,s="storage"){super(e,s,t,n),this.name=s==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return Re({},super.toJSON())}},wT=class extends Fd{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function pd(e,t,n){const s=Re({},e),a=t.toLowerCase();for(const l of Object.keys(s))l.toLowerCase()===a&&delete s[l];return s[a]=n,s}function rj(e){const t={};for(const[n,s]of Object.entries(e))t[n.toLowerCase()]=s;return t}const sj=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),ij=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bm=e=>{if(Array.isArray(e))return e.map(n=>bm(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,s])=>{const a=n.replace(/([-_][a-z])/gi,l=>l.toUpperCase().replace(/[-_]/g,""));t[a]=bm(s)}),t},aj=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),i_=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const n=t.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(e)},oj=async(e,t,n,s)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const a=e;let l=parseInt(String(a.status),10);Number.isFinite(l)||(l=500),a.json().then(c=>{const d=c?.statusCode||c?.code||l+"";t(new vm(i_(c),l,d,s))}).catch(()=>{const c=l+"";t(new vm(a.statusText||`HTTP ${l} error`,l,c,s))})}else t(new wT(i_(e),e,s))},lj=(e,t,n,s)=>{const a={method:e,headers:t?.headers||{}};if(e==="GET"||e==="HEAD"||!s)return Re(Re({},a),n);if(ij(s)){var l;const c=t?.headers||{};let d;for(const[f,h]of Object.entries(c))f.toLowerCase()==="content-type"&&(d=h);a.headers=pd(c,"Content-Type",(l=d)!==null&&l!==void 0?l:"application/json"),a.body=JSON.stringify(s)}else a.body=s;return t?.duplex&&(a.duplex=t.duplex),Re(Re({},a),n)};async function Rl(e,t,n,s,a,l,c){return new Promise((d,f)=>{e(n,lj(t,s,a,l)).then(h=>{if(!h.ok)throw h;if(s?.noResolveJson)return h;if(c==="vectors"){const g=h.headers.get("content-type");if(h.headers.get("content-length")==="0"||h.status===204)return{};if(!g||!g.includes("application/json"))return{}}return h.json()}).then(h=>
38d(h)).catch(h=>oj(h,f,s,c))})}function _T(e="storage"){return{get:async(t,n,s,a)=>Rl(t,"GET",n,s,a,void 0,e),post:async(t,n,s,a,l)=>Rl(t,"POST",n,a,l,s,e),put:async(t,n,s,a,l)=>Rl(t,"PUT",n,a,l,s,e),head:async(t,n,s,a)=>Rl(t,"HEAD",n,Re(Re({},s),{},{noResolveJson:!0}),a,void 0,e),remove:async(t,n,s,a,l)=>Rl(t,"DELETE",n,a,l,s,e)}}const cj=_T("storage"),{get:Gl,post:nr,put:wm,head:uj,remove:vg}=cj,Mn=_T("vectors");var wo=class{constructor(e,t={},n,s="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=rj(t),this.fetch=sj(n),this.namespace=s}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=pd(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Gd(n))return{data:null,error:n};throw n}}},dj=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Gd(t))return{data:null,error:t};throw t}}};let ST;ST=Symbol.toStringTag;var fj=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[ST]="BlobDownloadBuilder",this.promise=null}asStream(){return new dj(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Gd(t))return{data:null,error:t};throw t}}};const hj={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},a_={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var pj=class extends wo{constructor(e,t={},n,s){super(e,t,s,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,s){var a=this;return a.handleOperation(async()=>{let l;const c=Re(Re({},a_),s);let d=Re(Re({},a.headers),e==="POST"&&{"x-upsert":String(c.upsert)});const f=c.metadata;if(typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),f&&l.append("metadata",a.encodeMetadata(f)),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.has("cacheControl")||l.append("cacheControl",c.cacheControl),f&&!l.has("metadata")&&l.append("metadata",a.encodeMetadata(f))):(l=n,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType,f&&(d["x-metadata"]=a.toBase64(a.encodeMetadata(f))),(typeof ReadableStream<"u"&&l instanceof ReadableStream||l&&typeof l=="object"&&"pipe"in l&&typeof l.pipe=="function")&&!c.duplex&&(c.duplex="half")),s?.headers)for(const[v,b]of Object.entries(s.headers))d=pd(d,v,b);const h=a._removeEmptyFolders(t),g=a._getFinalPath(h),m=await(e=="PUT"?wm:nr)(a.fetch,`${a.url}/object/${g}`,l,Re({headers:d},c?.duplex?{duplex:c.duplex}:{}));return{path:h,id:m.Id,fullPath:m.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,s){var a=this;const l=a._removeEmptyFolders(e),c=a._getFinalPath(l),d=new URL(a.url+`/object/upload/sign/${c}`);return d.searchParams.set("token",t),a.handleOperation(async()=>{let f;const h=Re(Re({},a_),s);let g=Re(Re({},a.headers),{"x-upsert":String(h.upsert)});const m=h.metadata;if(typeof Blob<"u"&&n instanceof Blob?(f=new FormData,f.append("cacheControl",h.cacheControl),m&&f.append("metadata",a.encodeMetadata(m)),f.append("",n)):typeof FormData<"u"&&n instanceof FormData?(f=n,f.has("cacheControl")||f.append("cacheControl",h.cacheControl),m&&!f.has("metadata")&&f.append("metadata",a.encodeMetadata(m))):(f=n,g["cache-control"]=`max-age=${h.cacheControl}`,g["content-type"]=h.contentType,m&&(g["x-metadata"]=a.toBase64(a.encodeMetadata(m))),(typeof ReadableStream<"u"&&f instanceof ReadableStream||f&&typeof f=="object"&&"pipe"in f&&typeof f.pipe=="function")&&!h.duplex&&(h.duplex="half")),s?.headers)for(const[v,b]of Object.entries(s.headers))g=pd(g,v,b);return{path:l,fullPath:(await wm(a.fetch,d.toString(),f,Re({headers:g},h?.duplex?{duplex:h.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let s=n._getFinalPath(e);const a=Re({},n.headers);t?.upsert&&(a["x-upsert"]="true");const l=await nr(n.fetch,`${n.url}/object/upload/sign/${s}`,{},{headers:a}),c=new URL(n.url+l.url),d=c.searchParams.get("token");if(!d)throw new Fd("No token returned by API");return{signedUrl:c.toString(),path:e,token:d}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var s=this;return s.handleOperation(async()=>await nr(s.fetch,`${s.url}/object/move`,{bucketId:s.bucketId,sourceKey:e,destinationKey:t,de
38stinationBucket:n?.destinationBucket},{headers:s.headers}))}async copy(e,t,n){var s=this;return s.handleOperation(async()=>({path:(await nr(s.fetch,`${s.url}/object/copy`,{bucketId:s.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n?.destinationBucket},{headers:s.headers})).Key}))}async createSignedUrl(e,t,n){var s=this;return s.handleOperation(async()=>{let a=s._getFinalPath(e);const l=typeof n?.transform=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let c=await nr(s.fetch,`${s.url}/object/sign/${a}`,Re({expiresIn:t},l?{transform:n.transform}:{}),{headers:s.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 f=d.toString();return{signedUrl:encodeURI(`${s.url}${c.signedURL}${f?`&${f}`:""}`)}})}async createSignedUrls(e,t,n){var s=this;return s.handleOperation(async()=>{const a=await nr(s.fetch,`${s.url}/object/sign/${s.bucketId}`,{expiresIn:t,paths:e},{headers:s.headers}),l=new URLSearchParams;n?.download&&l.set("download",n.download===!0?"":n.download),n?.cacheNonce!=null&&l.set("cacheNonce",String(n.cacheNonce));const c=l.toString();return a.map(d=>Re(Re({},d),{},{signedUrl:d.signedURL?encodeURI(`${s.url}${d.signedURL}${c?`&${c}`:""}`):null}))})}download(e,t,n){const s=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",a=new URLSearchParams;t?.transform&&this.applyTransformOptsToQuery(a,t.transform),t?.cacheNonce!=null&&a.set("cacheNonce",String(t.cacheNonce));const l=a.toString(),c=this._getFinalPath(e),d=()=>Gl(this.fetch,`${this.url}/${s}/${c}${l?`?${l}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new fj(d,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>bm(await Gl(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await uj(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(a){if(t.shouldThrowOnError)throw a;if(Gd(a)){var s;const l=a instanceof vm?a.status:a instanceof wT?(s=a.originalError)===null||s===void 0?void 0:s.status:void 0;if(l!==void 0&&[400,404].includes(l))return{data:!1,error:a}}throw a}}getPublicUrl(e,t){const n=this._getFinalPath(e),s=new URLSearchParams;t?.download&&s.set("download",t.download===!0?"":t.download),t?.transform&&this.applyTransformOptsToQuery(s,t.transform),t?.cacheNonce!=null&&s.set("cacheNonce",String(t.cacheNonce));const a=s.toString(),l=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${n}`)+(a?`?${a}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await vg(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var s=this;return s.handleOperation(async()=>{const a=Re(Re(Re({},hj),t),{},{prefix:e||""});return await nr(s.fetch,`${s.url}/object/list/${s.bucketId}`,a,{headers:s.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const s=Re({},e);return await nr(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,s,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const mj="2.105.4",sc={"X-Client-Info":`storage-js/${mj}`};var gj=class extends wo{constructor(e,t={},n,s){const a=new URL(e);s?.useNewHostname&&/supabase\.(co|in|red)$/.test(a.hostname)&&!a.hostname.includes("storage.supabase.")&&(a.hostname=a.hostname.replace("supabase.","storage.supabase."));const l=a.href.replace(/\/$/,""),c=Re(Re({},sc),t);super(l,c,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Gl(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Gl(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await nr(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await wm(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await nr(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await vg(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},yj=class extends wo{constructor(e,t={},n){const s=e.replace(/\/$/,""),a=Re(Re({},sc),t);super(s,a,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await nr(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;e?.limit!==void 0&&n.set("limit",e.limit.toString()),e?.offset!==void 0&&n.set("offset",e.offset.toString()),e?.sortColumn&&n.set("sortColumn",e.sortColumn),e?.sortOrder&&n.set("sortOrder",e.sortOrder),e?.search&&n.set("search",e.search);const s=n.toString(),a=s?`${t.url}/bucket?${s}`:`${t.url}/bucket`;return await Gl(t.fetch,a,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await vg(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!aj(e))throw new Fd("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 Z2({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),s=this.shouldThrowOnError;return new Proxy(n,{get(a,l){const c=a[l];return typeof c!="function"?c:async(...d)=>{try{return{data:await c.apply(a,d),error:null}}catch(f){if(s)throw f;return{data:null,error:f}}}}})}},vj=class extends wo{constructor(e,t={},n){const s=e.replace(/\/$/,""),a=Re(Re({},sc),{},{"Content-Type":"application/json"},t);super(s,a,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Mn.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Mn.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Mn.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Mn.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},bj=class extends wo{constructor(e,t={},n){const s=e.replace(/\/$/,""),a=Re(Re({},sc),{},{"Content-Type":"application/json"},t);super(s,a,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Mn.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Mn.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
38if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Mn.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Mn.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Mn.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},wj=class extends wo{constructor(e,t={},n){const s=e.replace(/\/$/,""),a=Re(Re({},sc),{},{"Content-Type":"application/json"},t);super(s,a,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Mn.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Mn.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Mn.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Mn.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},_j=class extends wj{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new Sj(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},Sj=class extends vj{constructor(e,t,n,s){super(e,t,s),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,Re(Re({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,Re(Re({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new xj(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},xj=class extends bj{constructor(e,t,n,s,a){super(e,t,a),this.vectorBucketName=n,this.indexName=s}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,Re(Re({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,Re(Re({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,Re(Re({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,Re(Re({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,Re(Re({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},Tj=class extends gj{constructor(e,t={},n,s){super(e,t,n,s)}from(e){return new pj(this.url,this.headers,e,this.fetch)}get vectors(){return new _j(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new yj(this.url+"/iceberg",this.headers,this.fetch)}};const xT="2.105.4",eo=30*1e3,_m=3,Dp=_m*eo,Ej="http://localhost:9999",Rj="supabase.auth.token",Aj={"X-Client-Info":`gotrue-js/${xT}`},Sm="X-Supabase-Api-Version",TT={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Cj=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Oj=600*1e3;class Kl extends Error{constructor(t,n,s){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=s}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function oe(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}
38class kj extends Kl{constructor(t,n,s){super(t,n,s),this.name="AuthApiError",this.status=n,this.code=s}}function Nj(e){return oe(e)&&e.name==="AuthApiError"}class sr extends Kl{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class us extends Kl{constructor(t,n,s,a){super(t,s,a),this.name=n,this.status=s}}class It extends us{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Du(e){return oe(e)&&e.name==="AuthSessionMissingError"}class Ga extends us{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Iu extends us{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Uu extends us{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function Mj(e){return oe(e)&&e.name==="AuthImplicitGrantRedirectError"}class o_ extends us{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class Pj extends us{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 xm extends us{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Ip(e){return oe(e)&&e.name==="AuthRetryableFetchError"}class l_ extends us{constructor(t,n,s){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Tm extends us{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const md="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),c_=` 	
39\r=`.split(""),jj=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<c_.length;t+=1)e[c_[t].charCodeAt(0)]=-2;for(let t=0;t<md.length;t+=1)e[md[t].charCodeAt(0)]=t;return e})();function u_(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;n(md[s]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;n(md[s]),t.queuedBits-=6}}function ET(e,t,n){const s=jj[e];if(s>-1)for(t.queue=t.queue<<6|s,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(s===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function d_(e){const t=[],n=c=>{t.push(String.fromCodePoint(c))},s={utf8seq:0,codepoint:0},a={queue:0,queuedBits:0},l=c=>{Ij(c,s,n)};for(let c=0;c<e.length;c+=1)ET(e.charCodeAt(c),a,l);return t.join("")}function Lj(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Dj(e,t){for(let n=0;n<e.length;n+=1){let s=e.charCodeAt(n);if(s>55295&&s<=56319){const a=(s-55296)*1024&65535;s=(e.charCodeAt(n+1)-56320&65535|a)+65536,n+=1}Lj(s,t)}}function Ij(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let s=1;s<6;s+=1)if((e>>7-s&1)===0){t.utf8seq=s;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function fo(e){const t=[],n={queue:0,queuedBits:0},s=a=>{t.push(a)};for(let a=0;a<e.length;a+=1)ET(e.charCodeAt(a),n,s);return new Uint8Array(t)}function Uj(e){const t=[];return Dj(e,n=>t.push(n)),new Uint8Array(t)}function $i(e){const t=[],n={queue:0,queuedBits:0},s=a=>{t.push(a)};return e.forEach(a=>u_(a,n,s)),u_(null,n,s),t.join("")}function zj(e){return Math.round(Date.now()/1e3)+e}function Bj(){return Symbol("auth-callback")}const Yt=()=>typeof window<"u"&&typeof document<"u",Mi={tested:!1,writable:!1},RT=()=>{if(!Yt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Mi.tested)return Mi.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Mi.tested=!0,Mi.writable=!0}catch{Mi.tested=!0,Mi.writable=!1}return Mi.writable};function $j(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
39h((a,l)=>{t[l]=a})}catch{}return n.searchParams.forEach((s,a)=>{t[a]=s}),t}const AT=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),qj=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",to=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Pi=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},Kt=async(e,t)=>{await e.removeItem(t)};class Kd{constructor(){this.promise=new Kd.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Kd.promiseConstructor=Promise;function zu(e){const t=e.split(".");if(t.length!==3)throw new Tm("Invalid JWT structure");for(let s=0;s<t.length;s++)if(!Cj.test(t[s]))throw new Tm("JWT not in base64url format");return{header:JSON.parse(d_(t[0])),payload:JSON.parse(d_(t[1])),signature:fo(t[2]),raw:{header:t[0],payload:t[1]}}}async function Vj(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Hj(e,t){return new Promise((s,a)=>{(async()=>{for(let l=0;l<1/0;l++)try{const c=await e(l);if(!t(l,null,c)){s(c);return}}catch(c){if(!t(l,c)){a(c);return}}})()})}function Fj(e){return("0"+e.toString(16)).substr(-2)}function Gj(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=n.length;let a="";for(let l=0;l<56;l++)a+=n.charAt(Math.floor(Math.random()*s));return a}return crypto.getRandomValues(t),Array.from(t,Fj).join("")}async function Kj(e){const n=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",n),a=new Uint8Array(s);return Array.from(a).map(l=>String.fromCharCode(l)).join("")}async function Yj(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await Kj(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Ka(e,t,n=!1){const s=Gj();let a=s;n&&(a+="/recovery"),await to(e,`${t}-code-verifier`,a);const l=await Yj(s);return[l,s===l?"plain":"s256"]}const Qj=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Wj(e){const t=e.headers.get(Sm);if(!t||!t.match(Qj))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Xj(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function Jj(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const Zj=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Wr(e){if(!Zj.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function tr(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function Up(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const s=n.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function eL(e,t){return new Proxy(e,{get:(n,s,a)=>
39{if(s==="__isInsecureUserWarningProxy")return!0;if(typeof s=="symbol"){const l=s.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,s,a)}return!t.value&&typeof s=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,s,a)}})}function f_(e){return JSON.parse(JSON.stringify(e))}const Ii=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},tL=[502,503,504,520,521,522,523,524,530];async function h_(e){var t;if(!qj(e))throw new xm(Ii(e),0);if(tL.includes(e.status))throw new xm(Ii(e),e.status);let n;try{n=await e.json()}catch(l){throw new sr(Ii(l),l)}let s;const a=Wj(e);if(a&&a.getTime()>=TT["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?s=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(s=n.error_code),s){if(s==="weak_password")throw new l_(Ii(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(s==="session_not_found")throw new It}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,c)=>l&&typeof c=="string",!0))throw new l_(Ii(n),e.status,n.weak_password.reasons);throw new kj(Ii(n),e.status||500,s)}const nL=(e,t,n,s)=>{const a={method:e,headers:t?.headers||{}};return e==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t?.headers),a.body=JSON.stringify(s),Object.assign(Object.assign({},a),n))};async function me(e,t,n,s){var a;const l=Object.assign({},s?.headers);l[Sm]||(l[Sm]=TT["2024-01-01"].name),s?.jwt&&(l.Authorization=`Bearer ${s.jwt}`);const c=(a=s?.query)!==null&&a!==void 0?a:{};s?.redirectTo&&(c.redirect_to=s.redirectTo);const d=Object.keys(c).length?"?"+new URLSearchParams(c).toString():"",f=await rL(e,t,n+d,{headers:l,noResolveJson:s?.noResolveJson},{},s?.body);return s?.xform?s?.xform(f):{data:Object.assign({},f),error:null}}async function rL(e,t,n,s,a,l){const c=nL(t,s,a,l);let d;try{d=await e(n,Object.assign({},c))}catch(f){throw console.error(f),new xm(Ii(f),0)}if(d.ok||await h_(d),s?.noResolveJson)return d;try{return await d.json()}catch(f){await h_(f)}}function Kn(e){var t;let n=null;aL(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=zj(e.expires_in)));const s=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:s},error:null}}function p_(e){const t=Kn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,s)=>n&&typeof s=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Gs(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function sL(e){return{data:e,error:null}}function iL(e){const{action_link:t,email_otp:n,hashed_token:s,redirect_to:a,verification_type:l}=e,c=Hd(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),d={action_link:t,email_otp:n,hashed_token:s,redirect_to:a,verification_type:l},f=Object.assign({},c);return{data:{properties:d,user:f},error:null}}function m_(e){return e}function aL(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const zp=["global","local","others"];class oL{constructor({url:t="",headers:n={},fetch:s,experimental:a}){this.url=t,this.headers=n,this.fetch=AT(s),this.experimental=a??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(t,n=zp[0]){if(zp.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${zp.join(", ")}`);try{return await me(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(s){if(oe(s))return{data:null,error:s};throw s}}async inviteUserByEmail(t,n={}){try{return await me(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Gs})}catch(s){if(oe(s))return{data:{user:null},error:s};throw s}}async generateLink(t){try{const{options:n}=t,s=Hd(t,["options"]),a=Object.assign(Object.assign({},s),n);return"newEmail"in s&&(a.new_email=s?.newEmail,delete a.newEmail),await me(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:a,headers:this.headers,xform:iL,redirectTo:n?.redirectTo})}catch(n){if(oe(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await me(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Gs})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,s,a,l,c,d,f;try{const h={nextPage:null,lastPage:0,total:0},g=await me(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(n=t?.page)===null||n===void 0?void 0:n.toString())!==null&&s!==void 0?s:"",per_page:(l=(a=t?.perPage)===null||a===void 0?void 0:a.toString())!==null&&l!==void 0?l:""},xform:m_});if(g.error)throw g.error;const m=await g.json(),v=(c=g.headers.get("x-total-count"))!==null&&c!==void 0?c:0,b=(f=(d=g.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&f!==void 0?f:[];return b.length>0&&(b.forEach(_=>{const E=parseInt(_.split(";")[0].split("=")[1].substring(0,1)),S=JSON.parse(_.split(";")[1].split("=")[1]);h[`${S}Page`]=E}),h.total=parseInt(v)),{data:Object.assign(Object.assign({},m),h),error:null}}catch(h){if(oe(h))return{data:{users:[]},error:h};throw h}}async getUserById(t){Wr(t);try{return await me(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Gs})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Wr(t);try{return await me(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Gs})}catch(s){if(oe(s))return{data:{user:null},error:s};throw s}}async deleteUser(t,n=!1){Wr(t);
39try{return await me(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Gs})}catch(s){if(oe(s))return{data:{user:null},error:s};throw s}}async _listFactors(t){Wr(t.userId);try{const{data:n,error:s}=await me(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:a=>({data:{factors:a},error:null})});return{data:n,error:s}}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Wr(t.userId),Wr(t.id);try{return{data:await me(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,s,a,l,c,d,f;try{const h={nextPage:null,lastPage:0,total:0},g=await me(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(n=t?.page)===null||n===void 0?void 0:n.toString())!==null&&s!==void 0?s:"",per_page:(l=(a=t?.perPage)===null||a===void 0?void 0:a.toString())!==null&&l!==void 0?l:""},xform:m_});if(g.error)throw g.error;const m=await g.json(),v=(c=g.headers.get("x-total-count"))!==null&&c!==void 0?c:0,b=(f=(d=g.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&f!==void 0?f:[];return b.length>0&&(b.forEach(_=>{const E=parseInt(_.split(";")[0].split("=")[1].substring(0,1)),S=JSON.parse(_.split(";")[1].split("=")[1]);h[`${S}Page`]=E}),h.total=parseInt(v)),{data:Object.assign(Object.assign({},m),h),error:null}}catch(h){if(oe(h))return{data:{clients:[]},error:h};throw h}}async _createOAuthClient(t){try{return await me(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await me(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await me(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(oe(s))return{data:null,error:s};throw s}}async _deleteOAuthClient(t){try{return await me(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await me(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t?.type&&(n.type=t.type),await me(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:s=>{var a;return{data:{providers:(a=s?.providers)!==null&&a!==void 0?a:[]},error:null}}})}catch(n){if(oe(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await me(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await me(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await me(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(oe(s))return{data:null,error:s};throw s}}async _deleteCustomProvider(t){try{return await me(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _adminListPasskeys(t){tr(this.experimental),Wr(t.userId);try{return await me(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(t){tr(this.experimental),Wr(t.userId),Wr(t.passkeyId);
39try{return await me(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(oe(n))return{data:null,error:n};throw n}}}function g_(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const vr={debug:!!(globalThis&&RT()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class CT extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class y_ extends CT{}async function lL(e,t,n){vr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const s=new globalThis.AbortController;let a;t>0&&(a=setTimeout(()=>{s.abort(),vr.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:s.signal},async l=>{if(l){clearTimeout(a),vr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,l.name);try{return await n()}finally{vr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,l.name)}}else{if(t===0)throw vr.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new y_(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(vr.debug)try{const c=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(c,null,"  "))}catch(c){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",c)}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(a),await n()}})}catch(l){if(t>0&&clearTimeout(a),l!==null&&typeof l=="object"&&"name"in l&&l.name==="AbortError"&&t>0){if(s.signal.aborted)return vr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async c=>{if(c){vr.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,c.name);try{return await n()}finally{vr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,c.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw vr.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new y_(`Lock "${e}" was released because another request stole it`)}throw l}}function cL(){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 OT(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function uL(e){return parseInt(e,16)}function dL(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,s=>s.toString(16).padStart(2,"0")).join("")}function fL(e){var t;const{chainId:n,domain:s,expirationTime:a,issuedAt:l=new Date,nonce:c,notBefore:d,requestId:f,resources:h,scheme:g,uri:m,version:v}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!s)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(c&&c.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${c}`);if(!m)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(!((t=e.statement)===null||t===void 0)&&t.includes(`
40`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const b=OT(e.address),_=g?`${g}://${s}`:s,E=e.statement?`${e.statement}
41`:"",S=`${_} wants you to sign in with your Ethereum account:
42${b}
43
44${E}`;let x=`URI: ${m}
45Version: ${v}
46Chain ID: ${n}${c?`
47Nonce: ${c}`:""}
48Issued At: ${l.toISOString()}`;if(a&&(x+=`
49Expiration Time: ${a.toISOString()}`),d&&(x+=`
50Not Before: ${d.toISOString()}`),f&&(x+=`
51Request ID: ${f}`),h){let R=`
52Resources:`;for(const C of h){if(!C||typeof C!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${C}`);R+=`
53- ${C}`}x+=R}return`${S}
54${x}`}
54class xt extends Error{constructor({message:t,code:n,cause:s,name:a}){var l;super(t,{cause:s}),this.__isWebAuthnError=!0,this.name=(l=a??(s instanceof Error?s.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 gd extends xt{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function hL({error:e,options:t}){var n,s,a;const{publicKey:l}=t;if(!l)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new xt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=l.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new xt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((s=l.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new xt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((a=l.authenticatorSelection)===null||a===void 0?void 0:a.userVerification)==="required")return new xt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new xt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new xt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return l.pubKeyCredParams.filter(d=>d.type==="public-key").length===0?new xt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new xt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const c=window.location.hostname;if(kT(c)){if(l.rp.id!==c)return new xt({message:`The RP ID "${l.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new xt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(l.user.id.byteLength<1||l.user.id.byteLength>64)return new xt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new xt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new xt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function pL({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new xt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new xt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const s=window.location.hostname;if(kT(s)){if(n.rpId!==s)return new xt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new xt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new xt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new xt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class mL{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const Em=new mL;function v_(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:s}=e,a=Hd(e,["challenge","user","excludeCredentials"]),l=fo(t).buffer,c=Object.assign(Object.assign({},n),{id:fo(n.id).buffer}),d=Object.assign(Object.assign({},a),{challenge:l,user:c});if(s&&s.length>0){d.excludeCredentials=new Array(s.length);for(let f=0;f<s.length;f++){const h=s[f];d.excludeCredentials[f]=Object.assign(Object.assign({},h),{id:fo(h.id).buffer,type:h.type||"public-key",transports:h.transports})}}return d}function b_(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,s=Hd(e,["challenge","allowCredentials"]),a=fo(t).buffer,l=Object.assign(Object.assign({}
54,s),{challenge:a});if(n&&n.length>0){l.allowCredentials=new Array(n.length);for(let c=0;c<n.length;c++){const d=n[c];l.allowCredentials[c]=Object.assign(Object.assign({},d),{id:fo(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return l}function w_(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:$i(new Uint8Array(e.response.attestationObject)),clientDataJSON:$i(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function __(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,s=e.getClientExtensionResults(),a=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:$i(new Uint8Array(a.authenticatorData)),clientDataJSON:$i(new Uint8Array(a.clientDataJSON)),signature:$i(new Uint8Array(a.signature)),userHandle:a.userHandle?$i(new Uint8Array(a.userHandle)):void 0},type:"public-key",clientExtensionResults:s,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function kT(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function yd(){var e,t;return!!(Yt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.get)=="function")}async function NT(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new gd("Browser returned unexpected credential type",t)}:{data:null,error:new gd("Empty credential response",t)}}catch(t){return{data:null,error:hL({error:t,options:e})}}}async function MT(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new gd("Browser returned unexpected credential type",t)}:{data:null,error:new gd("Empty credential response",t)}}catch(t){return{data:null,error:pL({error:t,options:e})}}}const gL={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},yL={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function vd(...e){const t=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),n=a=>a instanceof ArrayBuffer||ArrayBuffer.isView(a),s={};for(const a of e)if(a)for(const l in a){const c=a[l];if(c!==void 0)if(Array.isArray(c))s[l]=c;else if(n(c))s[l]=c;else if(t(c)){const d=s[l];t(d)?s[l]=vd(d,c):s[l]=vd(c)}else s[l]=c}return s}function vL(e,t){return vd(gL,e,t||{})}function bL(e,t){return vd(yL,e,t||{})}class wL{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:s,signal:a},l){var c;try{const{data:d,error:f}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!d)return{data:null,error:f};const h=a??Em.createNewAbortSignal();if(d.webauthn.type==="create"){const{user:g}=d.webauthn.credential_options.publicKey;if(!g.name){const m=s;if(m)g.name=`${g.id}:${m}`;else{const b=(await this.client.getUser()).data.user,_=((c=b?.user_metadata)===null||c===void 0?void 0:c.name)||b?.email||b?.id||"User";g.name=`${g.id}:${_}`}}g.displayName||(g.displayName=g.name)}switch(d.webauthn.type){case"create":{const g=vL(d.webauthn.credential_options.publicKey,l?.create),{data:m,error:v}=await NT({publicKey:g,signal:h});return m?{data:{factorId:t,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:m}},error:null}:{data:null,error:v}}case"request":{const g=bL(d.webauthn.credential_options.publicKey,l?.request),{data:m,error:v}=await MT(Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:g,signal:h}));return m?{data:{factorId:t,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:m}},error:null}:{data:null,error:v}}}}catch(d){return oe(d)?{data:null,error:d}:{data:null,error:new sr("Unexpected error in challenge",d)}}}async _verify({challengeId:t,factorId:n,webauthn:s}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:s})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:a}={}},l){if(!n)return{data:null,error:new Kl("rpId is required for WebAuthn authentication")};try{if(!yd())return{data:null,error:new sr("Browser does not support WebAuthn",null)};const{data:c,error:d}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:s},signal:a},{request:l});if(!c)return{data:null,error:d};const{webauthn:f}=c;return this._verify({factorId:t,challengeId:c.challengeId,webauthn:{type:f.type,rpId:n,rpOrigins:s,credential_response:f.credential_response}})}catch(c){return oe(c)?{data:null,error:c}:{data:null,error:new sr("Unexpected error in authenticate",c)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:a}={}},l){if(!n)return{data:null,error:new Kl("rpId is required for WebAuthn registration")};try{if(!yd())return{data:null,error:new sr("Browser does not support WebAuthn",null)};const{data:c,error:d}=await this._enroll({friendlyName:t});if(!c)return await this.client.mfa.listFactors().then(g=>{var m;return(m=g.data)===null||m===void 0?void 0:m.all.find(v=>v.factor_type==="webauthn"&&v.friendly_name===t&&v.status!=="unverified")}).then(g=>g?this.client.mfa.unenroll({factorId:g?.id}):void 0),{data:null,error:d};const{data:f,error:h}=await this._challenge({factorId:c.id,friendlyName:c.friendly_name,webauthn:{rpId:n,rpOrigins:s},signal:a},{create:l});return f?this._verify({factorId:c.id,challengeId:f.challengeId,webauthn:{rpId:n,rpOrigins:s,type:f.webauthn.type,credential_response:f.webauthn.credential_response}}):{data:null,error:h}}catch(c){return oe(c)?{data:null,error:c}:{data:null,error:new sr("Unexpected error in register",c)}}}}cL();const _L={url:Ej,storageKey:Rj,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Aj,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function S_(e,t,n){return await n()}const Ya={};class Yl{get jwks(){var t,n;return(n=(t=Ya[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Ya[this.storageKey]=Object.assign(Object.assign({},Ya[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Ya[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Ya[this.storageKey]=Object.assign(Object.assign({},Ya[this.storageKey]),{cachedAt:t})}constructor(t){var n,s,a,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 c=Object.assign(Object.assign({},_L),t);if(this.storageKey=c.storageKey,this.instanceID=(n=Yl.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Yl.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!c.debug,typeof c.debug=="function"&&(this.logger=c.debug),this.instanceID>0&&Yt()){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=c.persistSession,this.autoRefreshToken=c.autoRefreshToken,this.experimental=(s=c.experimental)!==null&&s!==void 0?s:{},this.admin=new oL({url:c.url,headers:c.headers,fetch:c.fetch,experimental:this.experimental}),this.url=c.url,this.headers=c.headers,this.fetch=AT(c.fetch),this.lock=c.lock||S_,this.detectSessionInUrl=c.detectSessionInUrl,this.flowType=c.flowType,this.hasCustomAuthorizationHeader=c.hasCustomAuthorizationHeader,this.throwOnError=c.throwOnError,this.lockAcquireTimeout=c.lockAcquireTimeout,c.lock?this.lock=c.lock:this.persistSession&&Yt()&&(!((a=globalThis?.navigator)===null||a===void 0)&&a.locks)?this.lock=lL:this.lock=S_,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 wL(this)}
54,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?(c.storage?this.storage=c.storage:RT()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=g_(this.memoryStorage)),c.userStorage&&(this.userStorage=c.userStorage)):(this.memoryStorage={},this.storage=g_(this.memoryStorage)),Yt()&&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(f){this._debug("#broadcastChannel","error",f)}})}c.skipAutoInitialize||this.initialize().catch(d=>{this._debug("#initialize()","error",d)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${xT}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},s="none";if(Yt()&&(n=$j(window.location.href),this._isImplicitGrantCallback(n)?s="implicit":await this._isPKCECallback(n)&&(s="pkce")),Yt()&&this.detectSessionInUrl&&s!=="none"){const{data:a,error:l}=await this._getSessionFromURL(n,s);if(l){if(this._debug("#_initialize()","error detecting session from URL",l),Mj(l)){const f=(t=l.details)===null||t===void 0?void 0:t.code;if(f==="identity_already_exists"||f==="identity_not_found"||f==="single_identity_not_deletable")return{error:l}}return{error:l}}const{session:c,redirectType:d}=a;return this._debug("#_initialize()","detected session in URL",c,"redirect type",d),await this._saveSession(c),setTimeout(async()=>{d==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",c):await this._notifyAllSubscribers("SIGNED_IN",c)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return oe(n)?this._returnResult({error:n}):this._returnResult({error:new sr("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,s,a;try{const l=await me(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(n=t?.options)===null||n===void 0?void 0:n.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(a=t?.options)===null||a===void 0?void 0:a.captchaToken}},xform:Kn}),{data:c,error:d}=l;if(d||!c)return this._returnResult({data:{user:null,session:null},error:d});const f=c.session,h=c.user;return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(l){if(oe(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signUp(t){var n,s,a;try{let l;if("email"in t){const{email:g,password:m,options:v}=t;let b=null,_=null;this.flowType==="pkce"&&([b,_]=await Ka(this.storage,this.storageKey)),l=await me(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:v?.emailRedirectTo,body:{email:g,password:m,data:(n=v?.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:v?.captchaToken},code_challenge:b,code_challenge_method:_},xform:Kn})}else if("phone"in t){const{phone:g,password:m,options:v}=t;l=await me(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:g,password:m,data:(s=v?.data)!==null&&s!==void 0?s:{},channel:(a=v?.channel)!==null&&a!==void 0?a:"sms",gotrue_meta_security:{captcha_token:v?.captchaToken}},xform:Kn})}else throw new Iu("You must provide either an email or phone number and a password");const{data:c,error:d}=l;if(d||!c)return await Kt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:d});const f=c.session,h=c.user;return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(l){if(await Kt(this.storage,`${this.storageKey}-code-verifier`),oe(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signInWithPassword(t){try{let n;if("email"in t){const{email:l,password:c,options:d}=t;n=await me(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:l,password:c,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:p_})}else if("phone"in t){const{phone:l,password:c,options:d}=t;n=await me(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:l,password:c,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:p_})}else throw new Iu("You must provide either an email or phone number and a password");const{data:s,error:a}=n;
54if(a)return this._returnResult({data:{user:null,session:null},error:a});if(!s||!s.session||!s.user){const l=new Ga;return this._returnResult({data:{user:null,session:null},error:l})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:a})}catch(n){if(oe(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,s,a,l;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(s=t.options)===null||s===void 0?void 0:s.scopes,queryParams:(a=t.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:(l=t.options)===null||l===void 0?void 0:l.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,s,a,l,c,d,f,h,g,m,v;let b,_;if("message"in t)b=t.message,_=t.signature;else{const{chain:E,wallet:S,statement:x,options:R}=t;let C;if(Yt())if(typeof S=="object")C=S;else{const F=window;if("ethereum"in F&&typeof F.ethereum=="object"&&"request"in F.ethereum&&typeof F.ethereum.request=="function")C=F.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 S!="object"||!R?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");C=S}const O=new URL((n=R?.url)!==null&&n!==void 0?n:window.location.href),I=await C.request({method:"eth_requestAccounts"}).then(F=>F).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!I||I.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const B=OT(I[0]);let P=(s=R?.signInWithEthereum)===null||s===void 0?void 0:s.chainId;if(!P){const F=await C.request({method:"eth_chainId"});P=uL(F)}const M={domain:O.host,address:B,statement:x,uri:O.href,version:"1",chainId:P,nonce:(a=R?.signInWithEthereum)===null||a===void 0?void 0:a.nonce,issuedAt:(c=(l=R?.signInWithEthereum)===null||l===void 0?void 0:l.issuedAt)!==null&&c!==void 0?c:new Date,expirationTime:(d=R?.signInWithEthereum)===null||d===void 0?void 0:d.expirationTime,notBefore:(f=R?.signInWithEthereum)===null||f===void 0?void 0:f.notBefore,requestId:(h=R?.signInWithEthereum)===null||h===void 0?void 0:h.requestId,resources:(g=R?.signInWithEthereum)===null||g===void 0?void 0:g.resources};b=fL(M),_=await C.request({method:"personal_sign",params:[dL(b),B]})}try{const{data:E,error:S}=await me(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:b,signature:_},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(v=t.options)===null||v===void 0?void 0:v.captchaToken}}:null),xform:Kn});if(S)throw S;if(!E||!E.session||!E.user){const x=new Ga;return this._returnResult({data:{user:null,session:null},error:x})}return E.session&&(await this._saveSession(E.session),await this._notifyAllSubscribers("SIGNED_IN",E.session)),this._returnResult({data:Object.assign({},E),error:S})}catch(E){if(oe(E))return this._returnResult({data:{user:null,session:null},error:E});throw E}}async signInWithSolana(t){var n,s,a,l,c,d,f,h,g,m,v,b;let _,E;if("message"in t)_=t.message,E=t.signature;else{const{chain:S,wallet:x,statement:R,options:C}=t;let O;if(Yt())if(typeof x=="object")O=x;else{const B=window;if("solana"in B&&typeof B.solana=="object"&&("signIn"in B.solana&&typeof B.solana.signIn=="function"||"signMessage"in B.solana&&typeof B.solana.signMessage=="function"))O=B.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 x!="object"||!C?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");O=x}const I=new URL((n=C?.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in O&&O.signIn){const B=await O.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},C?.signInWithSolana),{version:"1",domain:I.host,uri:I.href}),R?{statement:R}:null));let P;if(Array.isArray(B)&&B[0]&&typeof B[0]=="object")P=B[0];else if(B&&typeof B=="object"&&"signedMessage"in B&&"signature"in B)P=B;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in P&&"signature"in P&&(typeof P.signedMessage=="string"||P.signedMessage instanceof Uint8Array)&&P.signature instanceof Uint8Array)_=typeof P.signedMessage=="string"?P.signedMessage:new TextDecoder().decode(P.signedMessage),E=P.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in O)||typeof O.signMessage!="function"||!("publicKey"in O)||typeof O!="object"||!O.publicKey||!("toBase58"in O.publicKey)||typeof O.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");_=[`${I.host} wants you to sign in with your Solana account:`,O.publicKey.toBase58(),...R?["",R,""]:[""],"Version: 1",`URI: ${I.href}`,`Issued At: ${(a=(s=C?.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&a!==void 0?a:new Date().toISOString()}`,...!((l=C?.signInWithSolana)===null||l===void 0)&&l.notBefore?[`Not Before: ${C.signInWithSolana.notBefore}`]:[],...!((c=C?.signInWithSolana)===null||c===void 0)&&c.expirationTime?[`Expiration Time: ${C.signInWithSolana.expirationTime}`]:[],...!((d=C?.signInWithSolana)===null||d===void 0)&&d.chainId?[`Chain ID: ${C.signInWithSolana.chainId}`]:[],...!((f=C?.signInWithSolana)===null||f===void 0)&&f.nonce?[`Nonce: ${C.signInWithSolana.nonce}`]:[],...!((h=C?.signInWithSolana)===null||h===void 0)&&h.requestId?[`Request ID: ${C.signInWithSolana.requestId}`]:[],...!((m=(g=C?.signInWithSolana)===null||g===void 0?void 0:g.resources)===null||m===void 0)&&m.length?["Resources",...C.signInWithSolana.resources.map(P=>`- ${P}`)]:[]].join(`
55`);const B=await O.signMessage(new TextEncoder().encode(_),"utf8");if(!B||!(B instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");E=B}}try{const{data:S,error:x}=await me(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:_,signature:$i(E)},!((v=t.options)===null||v===void 0)&&v.captchaToken?{gotrue_meta_security:{captcha_token:(b=t.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:Kn});if(x)throw x;if(!S||!S.session||!S.user){const R=new Ga;return this._returnResult({data:{user:null,session:null},error:R})}return S.session&&(await this._saveSession(S.session),await this._notifyAllSubscribers("SIGNED_IN",S.session)),this._returnResult({data:Object.assign({},S),error:x})}catch(S){if(oe(S))return this._returnResult({data:{user:null,session:null},error:S});throw S}}async _exchangeCodeForSession(t){const n=await Pi(this.storage,`${this.storageKey}-code-verifier`),[s,a]=(n??"").split("/");try{if(!s&&this.flowType==="pkce")throw new Pj;const{data:l,error:c}=await me(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:s},xform:Kn});if(await Kt(this.storage,`${this.storageKey}-code-verifier`),c)throw c;if(!l||!l.session||!l.user){const d=new Ga;return this._returnResult({data:{user:null,session:null,redirectType:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers(a==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l.session)),this._returnResult({data:Object.assign(Object.assign({},l),{redirectType:a??null}),error:c})}catch(l){if(await Kt(this.storage,`${this.storageKey}-code-verifier`),oe(l))return this._returnResult({data:{user:null,session:null,redirectType:null},error:l});throw l}}async signInWithIdToken(t){try{const{options:n,provider:s,token:a,access_token:l,nonce:c}=t,d=await me(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:a,access_token:l,nonce:c,gotrue_meta_security:{captcha_token:n?.captchaToken}},xform:Kn}),{data:f,error:h}=d;if(h)return this._returnResult({data:{user:null,session:null},error:h});if(!f||!f.session||!f.user){const g=new Ga;return this._returnResult({data:{user:null,session:null},error:g})}return f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("SIGNED_IN",f.session)),this._returnResult({data:f,error:h})}catch(n){if(oe(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,s,a,l,c;try{if("email"in t){const{email:d,options:f}=t;let h=null,g=null;this.flowType==="pkce"&&([h,g]=await Ka(this.storage,this.storageKey));const{error:m}=await me(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,data:(n=f?.data)!==null&&n!==void 0?n:{},create_user:(s=f?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},code_challenge:h,code_challenge_method:g},redirectTo:f?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:m})}if("phone"in t){const{phone:d,options:f}=t,{data:h,error:g}=await me(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:d,data:(a=f?.data)!==null&&a!==void 0?a:{},create_user:(l=f?.shouldCreateUser)!==null&&l!==void 0?l:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},channel:(c=f?.channel)!==null&&c!==void 0?c:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:h?.message_id},error:g})}throw new Iu("You must provide either an email or phone number.")}catch(d){if(await Kt(this.storage,`${this.storageKey}-code-verifier`),oe(d))return this._returnResult({data:{user:null,session:null},error:d});throw d}}async verifyOtp(t){var n,s;try{let a,l;"options"in t&&(a=(n=t.options)===null||n===void 0?void 0:n.redirectTo,l=(s=t.options)===null||s===void 0?void 0:s.captchaToken);const{data:c,error:d}=await me(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:l}}),redirectTo:a,xform:Kn});if(d)throw d;if(!c)throw new Error("An error occurred on token verification.");const f=c.session,h=c.user;return f?.access_token&&(await this._saveSession(f),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(a){if(oe(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithSSO(t){var n,s,a,l,c;try{let d=null,f=null;this.flowType==="pkce"&&([d,f]=await Ka(this.storage,this.storageKey));const h=await me(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&s!==void 0?s:void 0}
55),!((a=t?.options)===null||a===void 0)&&a.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:d,code_challenge_method:f}),headers:this.headers,xform:sL});return!((l=h.data)===null||l===void 0)&&l.url&&Yt()&&!(!((c=t.options)===null||c===void 0)&&c.skipBrowserRedirect)&&window.location.assign(h.data.url),this._returnResult(h)}catch(d){if(await Kt(this.storage,`${this.storageKey}-code-verifier`),oe(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 t=>{const{data:{session:n},error:s}=t;if(s)throw s;if(!n)throw new It;const{error:a}=await me(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:a})})}catch(t){if(oe(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:s,type:a,options:l}=t,{error:c}=await me(this.fetch,"POST",n,{headers:this.headers,body:{email:s,type:a,gotrue_meta_security:{captcha_token:l?.captchaToken}},redirectTo:l?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:c})}else if("phone"in t){const{phone:s,type:a,options:l}=t,{data:c,error:d}=await me(this.fetch,"POST",n,{headers:this.headers,body:{phone:s,type:a,gotrue_meta_security:{captcha_token:l?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:c?.message_id},error:d})}throw new Iu("You must provide either an email or phone number and a type")}catch(n){if(oe(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),a=(async()=>(await s,await n()))();return this.pendingInLock.push((async()=>{try{await a}catch{}})()),a}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const s=n();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await s}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Pi(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const s=t.expires_at?t.expires_at*1e3-Date.now()<Dp:!1;if(this._debug("#__loadSession()",`session has${s?"":" not"} expired`,"expires_at",t.expires_at),!s){if(this.userStorage){const c=await Pi(this.userStorage,this.storageKey+"-user");c?.user?t.user=c.user:t.user=Up()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const c={value:this.suppressGetSessionWarning};t.user=eL(t.user,c),c.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);return l?this._returnResult({data:{session:null},error:l}):this._returnResult({data:{session:a},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await me(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Gs}):await this._useSession(async n=>{var s,a,l;const{data:c,error:d}=n;
55if(d)throw d;return!(!((s=c.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new It}:await me(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(l=(a=c.session)===null||a===void 0?void 0:a.access_token)!==null&&l!==void 0?l:void 0,xform:Gs})})}catch(n){if(oe(n))return Du(n)&&(await this._removeSession(),await Kt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async s=>{const{data:a,error:l}=s;if(l)throw l;if(!a.session)throw new It;const c=a.session;let d=null,f=null;this.flowType==="pkce"&&t.email!=null&&([d,f]=await Ka(this.storage,this.storageKey));const{data:h,error:g}=await me(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n?.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:d,code_challenge_method:f}),jwt:c.access_token,xform:Gs});if(g)throw g;return c.user=h.user,await this._saveSession(c),await this._notifyAllSubscribers("USER_UPDATED",c),this._returnResult({data:{user:c.user},error:null})})}catch(s){if(await Kt(this.storage,`${this.storageKey}-code-verifier`),oe(s))return this._returnResult({data:{user:null},error:s});throw s}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new It;const n=Date.now()/1e3;let s=n,a=!0,l=null;const{payload:c}=zu(t.access_token);if(c.exp&&(s=c.exp,a=s<=n),a){const{data:d,error:f}=await this._callRefreshToken(t.refresh_token);if(f)return this._returnResult({data:{user:null,session:null},error:f});if(!d)return{data:{user:null,session:null},error:null};l=d}else{const{data:d,error:f}=await this._getUser(t.access_token);if(f)return this._returnResult({data:{user:null,session:null},error:f});l={access_token:t.access_token,refresh_token:t.refresh_token,user:d.user,token_type:"bearer",expires_in:s-n,expires_at:s},await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)}return this._returnResult({data:{user:l.user,session:l},error:null})}catch(n){if(oe(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var s;if(!t){const{data:c,error:d}=n;if(d)throw d;t=(s=c.session)!==null&&s!==void 0?s:void 0}if(!t?.refresh_token)throw new It;const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);return l?this._returnResult({data:{user:null,session:null},error:l}):a?this._returnResult({data:{user:a.user,session:a},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(oe(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){var s;try{if(!Yt())throw new Uu("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Uu(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new o_("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Uu("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new o_("No code detected.");const{data:C,error:O}=await this._exchangeCodeForSession(t.code);if(O)throw O;const I=new URL(window.location.href);return I.searchParams.delete("code"),window.history.replaceState(window.history.state,"",I.toString()),{data:{session:C.session,redirectType:(s=C.redirectType)!==null&&s!==void 0?s:null},error:null}}const{provider_token:a,provider_refresh_token:l,access_token:c,refresh_token:d,expires_in:f,expires_at:h,token_type:g}=t;if(!c||!f||!d||!g)throw new Uu("No session defined in URL");const m=Math.round(Date.now()/1e3),v=parseInt(f);let b=m+v;h&&(b=parseInt(h));const _=b-m;
55_*1e3<=eo&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${_}s, should have been closer to ${v}s`);const E=b-v;m-E>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",E,b,m):m-E<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",E,b,m);const{data:S,error:x}=await this._getUser(c);if(x)throw x;const R={provider_token:a,provider_refresh_token:l,access_token:c,expires_in:v,expires_at:b,refresh_token:d,token_type:g,user:S.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:R,redirectType:t.type},error:null})}catch(a){if(oe(a))return this._returnResult({data:{session:null,redirectType:null},error:a});throw a}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Pi(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var s;const{data:a,error:l}=n;if(l&&!Du(l))return this._returnResult({error:l});const c=(s=a.session)===null||s===void 0?void 0:s.access_token;if(c){const{error:d}=await this.admin.signOut(c,t);if(d&&!(Nj(d)&&(d.status===404||d.status===401||d.status===403)||Du(d)))return this._returnResult({error:d})}return t!=="others"&&(await this._removeSession(),await Kt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=Bj(),s={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,s),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:s}}}async _emitInitialSession(t){return await this._useSession(async n=>{var s,a;try{const{data:{session:l},error:c}=n;if(c)throw c;await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",l)),this._debug("INITIAL_SESSION","callback id",t,"session",l)}catch(l){await((a=this.stateChangeEmitters.get(t))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",l),Du(l)?console.warn(l):console.error(l)}})}async resetPasswordForEmail(t,n={}){let s=null,a=null;this.flowType==="pkce"&&([s,a]=await Ka(this.storage,this.storageKey,!0));try{return await me(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:s,code_challenge_method:a,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(l){if(await Kt(this.storage,`${this.storageKey}-code-verifier`),oe(l))return this._returnResult({data:null,error:l});throw l}}async getUserIdentities(){var t;try{const{data:n,error:s}=await this.getUser();if(s)throw s;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:s,error:a}=await this._useSession(async l=>{var c,d,f,h,g;const{data:m,error:v}=l;if(v)throw v;const b=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(c=t.options)===null||c===void 0?void 0:c.redirectTo,scopes:(d=t.options)===null||d===void 0?void 0:d.scopes,queryParams:(f=t.options)===null||f===void 0?void 0:f.queryParams,skipBrowserRedirect:!0});return await me(this.fetch,"GET",b,{headers:this.headers,jwt:(g=(h=m.session)===null||h===void 0?void 0:h.access_token)!==null&&g!==void 0?g:void 0})});if(a)throw a;return Yt()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(s?.url),this._returnResult({data:{provider:t.provider,url:s?.url},error:null})}catch(s){if(oe(s))return this._returnResult({data:{provider:t.provider,url:null},error:s});throw s}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var s;try{const{error:a,data:{session:l}}=n;if(a)throw a;const{options:c,provider:d,token:f,access_token:h,nonce:g}=t,m=await me(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(s=l?.access_token)!==null&&s!==void 0?s:void 0,body:{provider:d,id_token:f,access_token:h,nonce:g,link_identity:!0,gotrue_meta_security:{captcha_token:c?.captchaToken}},xform:Kn}),{data:v,error:b}=m;return b?this._returnResult({data:{user:null,session:null},error:b}):!v||!v.session||!v.user?this._returnResult({data:{user:null,session:null},error:new Ga}):(v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("USER_UPDATED",v.session)),this._returnResult({data:v,error:b}))}catch(a){if(await Kt(this.storage,`${this.storageKey}-code-verifier`),oe(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var s,a;const{data:l,error:c}=n;if(c)throw c;
55return await me(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(a=(s=l.session)===null||s===void 0?void 0:s.access_token)!==null&&a!==void 0?a:void 0})})}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const s=Date.now();return await Hj(async a=>(a>0&&await Vj(200*Math.pow(2,a-1)),this._debug(n,"refreshing attempt",a),await me(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Kn})),(a,l)=>{const c=200*Math.pow(2,a);return l&&Ip(l)&&Date.now()+c-s<eo})}catch(s){if(this._debug(n,"error",s),oe(s))return this._returnResult({data:{session:null,user:null},error:s});throw s}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const s=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",s),Yt()&&!n.skipBrowserRedirect&&window.location.assign(s),{data:{provider:t,url:s},error:null}}async _recoverAndRefresh(){var t,n;const s="#_recoverAndRefresh()";this._debug(s,"begin");try{const a=await Pi(this.storage,this.storageKey);if(a&&this.userStorage){let c=await Pi(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!c&&(c={user:a.user},await to(this.userStorage,this.storageKey+"-user",c)),a.user=(t=c?.user)!==null&&t!==void 0?t:Up()}else if(a&&!a.user&&!a.user){const c=await Pi(this.storage,this.storageKey+"-user");c&&c?.user?(a.user=c.user,await Kt(this.storage,this.storageKey+"-user"),await to(this.storage,this.storageKey,a)):a.user=Up()}if(this._debug(s,"session from storage",a),!this._isValidSession(a)){this._debug(s,"session is not valid"),a!==null&&await this._removeSession();return}const l=((n=a.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Dp;if(this._debug(s,`session has${l?"":" not"} expired with margin of ${Dp}s`),l){if(this.autoRefreshToken&&a.refresh_token){const{error:c}=await this._callRefreshToken(a.refresh_token);c&&(console.error(c),Ip(c)||(this._debug(s,"refresh failed with a non-retryable error, removing the session",c),await this._removeSession()))}}else if(a.user&&a.user.__isUserNotAvailableProxy===!0)try{const{data:c,error:d}=await this._getUser(a.access_token);!d&&c?.user?(a.user=c.user,await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)):this._debug(s,"could not get user data, skipping SIGNED_IN notification")}catch(c){console.error("Error getting user data:",c),this._debug(s,"error getting user data, skipping SIGNED_IN notification",c)}else await this._notifyAllSubscribers("SIGNED_IN",a)}catch(a){this._debug(s,"error",a),console.error(a);return}finally{this._debug(s,"end")}}async _callRefreshToken(t){var n,s;if(!t)throw new It;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const a=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(a,"begin");try{this.refreshingDeferred=new Kd;const{data:l,error:c}=await this._refreshAccessToken(t);if(c)throw c;if(!l.session)throw new It;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(a,"error",l),oe(l)){const c={data:null,error:l};return Ip(l)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(c),c}throw(s=this.refreshingDeferred)===null||s===void 0||s.reject(l),l}finally{this.refreshingDeferred=null,this._debug(a,"end")}}async _notifyAllSubscribers(t,n,s=!0){const a=`#_notifyAllSubscribers(${t})`;this._debug(a,"begin",n,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:t,session:n});const l=[],c=Array.from(this.stateChangeEmitters.values()).map(async d=>{try{await d.callback(t,n)}catch(f){l.push(f)}});if(await Promise.all(c),l.length>0){for(let d=0;d<l.length;d+=1)console.error(l[d]);throw l[0]}}finally{this._debug(a,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Kt(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),s=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!s&&n.user&&await to(this.userStorage,this.storageKey+"-user",{user:n.user});const a=Object.assign({},n);delete a.user;const l=f_(a);await to(this.storage,this.storageKey,l)}else{const a=f_(n);await to(this.storage,this.storageKey,a)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Kt(this.storage,this.storageKey),await Kt(this.storage,this.storageKey+"-code-verifier"),await Kt(this.storage,this.storageKey+"-user"),this.userStorage&&await Kt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Yt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}
55catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),eo);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:s}}=n;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const a=Math.floor((s.expires_at*1e3-t)/eo);this._debug("#_autoRefreshTokenTick()",`access token expires in ${a} ticks, a tick lasts ${eo}ms, refresh threshold is ${_m} ticks`),a<=_m&&await this._callRefreshToken(s.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof CT)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Yt()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,s){const a=[`provider=${encodeURIComponent(n)}`];if(s?.redirectTo&&a.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s?.scopes&&a.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[l,c]=await Ka(this.storage,this.storageKey),d=new URLSearchParams({code_challenge:`${encodeURIComponent(l)}`,code_challenge_method:`${encodeURIComponent(c)}`});a.push(d.toString())}if(s?.queryParams){const l=new URLSearchParams(s.queryParams);a.push(l.toString())}return s?.skipBrowserRedirect&&a.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${t}?${a.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var s;const{data:a,error:l}=n;return l?this._returnResult({data:null,error:l}):await me(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(s=a?.session)===null||s===void 0?void 0:s.access_token})})}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var s,a;const{data:l,error:c}=n;if(c)return this._returnResult({data:null,error:c});const d=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:f,error:h}=await me(this.fetch,"POST",`${this.url}/factors`,{body:d,headers:this.headers,jwt:(s=l?.session)===null||s===void 0?void 0:s.access_token});return h?this._returnResult({data:null,error:h}):(t.factorType==="totp"&&f.type==="totp"&&(!((a=f?.totp)===null||a===void 0)&&a.qr_code)&&(f.totp.qr_code=`data:image/svg+xml;utf-8,${f.totp.qr_code}`),this._returnResult({data:f,error:null}))})}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var s;const{data:a,error:l}=n;if(l)return this._returnResult({data:null,error:l});const c=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?w_(t.webauthn.credential_response):__(t.webauthn.credential_response)})}:{code:t.code}),{data:d,error:f}=await me(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:c,headers:this.headers,jwt:(s=a?.session)===null||s===void 0?void 0:s.access_token});return f?this._returnResult({data:null,error:f}):(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:f}))})}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var s;const{data:a,error:l}=n;if(l)return this._returnResult({data:null,error:l});const c=await me(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(s=a?.session)===null||s===void 0?void 0:s.access_token});if(c.error)return c;const{data:d}=c;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:v_(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:b_(d.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:s}=await this._challenge({factorId:t.factorId});return s?this._returnResult({data:null,error:s}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:s}=await this.getUser();if(s)return{data:null,error:s};const a={all:[],phone:[],totp:[],webauthn:[]};for(const l of(t=n?.factors)!==null&&t!==void 0?t:[])a.all.push(l),l.status==="verified"&&a[l.factor_type].push(l);return{data:a,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,s,a,l;if(t)try{const{payload:b}=zu(t);let _=null;b.aal&&(_=b.aal);let E=_;const{data:{user:S},error:x}=await this.getUser(t);if(x)return this._returnResult({data:null,error:x});((s=(n=S?.factors)===null||n===void 0?void 0:n.filter(O=>O.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(E="aal2");const C=b.amr||[];return{data:{currentLevel:_,nextLevel:E,currentAuthenticationMethods:C},error:null}}catch(b){if(oe(b))return this._returnResult({data:null,error:b});throw b}const{data:{session:c},error:d}
55=await this.getSession();if(d)return this._returnResult({data:null,error:d});if(!c)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:f}=zu(c.access_token);let h=null;f.aal&&(h=f.aal);let g=h;((l=(a=c.user.factors)===null||a===void 0?void 0:a.filter(b=>b.status==="verified"))!==null&&l!==void 0?l:[]).length>0&&(g="aal2");const v=f.amr||[];return{data:{currentLevel:h,nextLevel:g,currentAuthenticationMethods:v},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:s},error:a}=n;return a?this._returnResult({data:null,error:a}):s?await me(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:s.access_token,xform:l=>({data:l,error:null})}):this._returnResult({data:null,error:new It})})}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async s=>{const{data:{session:a},error:l}=s;if(l)return this._returnResult({data:null,error:l});if(!a)return this._returnResult({data:null,error:new It});const c=await me(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:a.access_token,body:{action:"approve"},xform:d=>({data:d,error:null})});return c.data&&c.data.redirect_url&&Yt()&&!n?.skipBrowserRedirect&&window.location.assign(c.data.redirect_url),c})}catch(s){if(oe(s))return this._returnResult({data:null,error:s});throw s}}async _denyAuthorization(t,n){try{return await this._useSession(async s=>{const{data:{session:a},error:l}=s;if(l)return this._returnResult({data:null,error:l});if(!a)return this._returnResult({data:null,error:new It});const c=await me(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:a.access_token,body:{action:"deny"},xform:d=>({data:d,error:null})});return c.data&&c.data.redirect_url&&Yt()&&!n?.skipBrowserRedirect&&window.location.assign(c.data.redirect_url),c})}catch(s){if(oe(s))return this._returnResult({data:null,error:s});throw s}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:s}=t;return s?this._returnResult({data:null,error:s}):n?await me(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new It})})}catch(t){if(oe(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:s},error:a}=n;return a?this._returnResult({data:null,error:a}):s?(await me(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:s.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new It})})}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let s=n.keys.find(d=>d.kid===t);if(s)return s;const a=Date.now();if(s=this.jwks.keys.find(d=>d.kid===t),s&&this.jwks_cached_at+Oj>a)return s;const{data:l,error:c}=await me(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(c)throw c;return!l.keys||l.keys.length===0||(this.jwks=l,this.jwks_cached_at=a,s=l.keys.find(d=>d.kid===t),!s)?null:s}async getClaims(t,n={}){try{let s=t;if(!s){const{data:b,error:_}
55=await this.getSession();if(_||!b.session)return this._returnResult({data:null,error:_});s=b.session.access_token}const{header:a,payload:l,signature:c,raw:{header:d,payload:f}}=zu(s);n?.allowExpired||Xj(l.exp);const h=!a.alg||a.alg.startsWith("HS")||!a.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(a.kid,n?.keys?{keys:n.keys}:n?.jwks);if(!h){const{error:b}=await this.getUser(s);if(b)throw b;return{data:{claims:l,header:a,signature:c},error:null}}const g=Jj(a.alg),m=await crypto.subtle.importKey("jwk",h,g,!0,["verify"]);if(!await crypto.subtle.verify(g,m,c,Uj(`${d}.${f}`)))throw new Tm("Invalid JWT signature");return{data:{claims:l,header:a,signature:c},error:null}}catch(s){if(oe(s))return this._returnResult({data:null,error:s});throw s}}async signInWithPasskey(t){var n,s,a;tr(this.experimental);try{if(!yd())return this._returnResult({data:null,error:new sr("Browser does not support WebAuthn",null)});const{data:l,error:c}=await this._startPasskeyAuthentication({options:{captchaToken:(n=t?.options)===null||n===void 0?void 0:n.captchaToken}});if(c||!l)return this._returnResult({data:null,error:c});const d=b_(l.options),f=(a=(s=t?.options)===null||s===void 0?void 0:s.signal)!==null&&a!==void 0?a:Em.createNewAbortSignal(),{data:h,error:g}=await MT({publicKey:d,signal:f});if(g||!h)return this._returnResult({data:null,error:g??new sr("WebAuthn ceremony failed",null)});const m=__(h);return this._verifyPasskeyAuthentication({challengeId:l.challenge_id,credential:m})}catch(l){if(oe(l))return this._returnResult({data:null,error:l});throw l}}async registerPasskey(t){var n,s;tr(this.experimental);try{if(!yd())return this._returnResult({data:null,error:new sr("Browser does not support WebAuthn",null)});const{data:a,error:l}=await this._startPasskeyRegistration();if(l||!a)return this._returnResult({data:null,error:l});const c=v_(a.options),d=(s=(n=t?.options)===null||n===void 0?void 0:n.signal)!==null&&s!==void 0?s:Em.createNewAbortSignal(),{data:f,error:h}=await NT({publicKey:c,signal:d});if(h||!f)return this._returnResult({data:null,error:h??new sr("WebAuthn ceremony failed",null)});const g=w_(f);return this._verifyPasskeyRegistration({challengeId:a.challenge_id,credential:g})}catch(a){if(oe(a))return this._returnResult({data:null,error:a});throw a}}async _startPasskeyRegistration(){tr(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:s}=t;if(s)return this._returnResult({data:null,error:s});if(!n)return this._returnResult({data:null,error:new It});const{data:a,error:l}=await me(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:a,error:null})})}catch(t){if(oe(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){tr(this.experimental);try{return await this._useSession(async n=>{const{data:{session:s},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!s)return this._returnResult({data:null,error:new It});const{data:l,error:c}=await me(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:s.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(t){var n;tr(this.experimental);try{const{data:s,error:a}=await me(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=t?.options)===null||n===void 0?void 0:n.captchaToken}}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:s,error:null})}catch(s){if(oe(s))return this._returnResult({data:null,error:s});throw s}}async _verifyPasskeyAuthentication(t){tr(this.experimental);try{const{data:n,error:s}=await me(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:Kn});return s?this._returnResult({data:null,error:s}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){tr(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:s}=t;if(s)return this._returnResult({data:null,error:s});if(!n)return this._returnResult({data:null,error:new It});const{data:a,error:l}=await me(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:c=>({data:c,error:null})});return l?this._returnResult({data:null,error:l}):this._returnResult({data:a,error:null})})}catch(t){if(oe(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){tr(this.experimental);try{return await this._useSession(async n=>{const{data:{session:s},error:a}=n;
55if(a)return this._returnResult({data:null,error:a});if(!s)return this._returnResult({data:null,error:new It});const{data:l,error:c}=await me(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:s.access_token,body:{friendly_name:t.friendlyName}});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(t){tr(this.experimental);try{return await this._useSession(async n=>{const{data:{session:s},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!s)return this._returnResult({data:null,error:new It});const{error:l}=await me(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:s.access_token,noResolveJson:!0});return l?this._returnResult({data:null,error:l}):this._returnResult({data:null,error:null})})}catch(n){if(oe(n))return this._returnResult({data:null,error:n});throw n}}}Yl.nextInstanceID={};const SL=Yl,xL="2.105.4";let Nl="";typeof Deno<"u"?Nl="deno":typeof document<"u"?Nl="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Nl="react-native":Nl="node";const TL={"X-Client-Info":`supabase-js-${Nl}/${xL}`},EL={headers:TL},RL={schema:"public"},AL={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},CL={};function Ql(e){"@babel/helpers - typeof";return Ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ql(e)}function OL(e,t){if(Ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(Ql(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kL(e){var t=OL(e,"string");return Ql(t)=="symbol"?t:t+""}function NL(e,t,n){return(t=kL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x_(Object(n),!0).forEach(function(s){NL(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x_(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}const ML=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),PL=()=>Headers,jL=(e,t,n)=>{const s=ML(n),a=PL();return async(l,c)=>{var d;const f=(d=await t())!==null&&d!==void 0?d:e;let h=new a(c?.headers);return h.has("apikey")||h.set("apikey",e),h.has("Authorization")||h.set("Authorization",`Bearer ${f}`),s(l,dt(dt({},c),{},{headers:h}))}};function LL(e){return e.endsWith("/")?e:e+"/"}function DL(e,t){var n,s;const{db:a,auth:l,realtime:c,global:d}=e,{db:f,auth:h,realtime:g,global:m}=t,v={db:dt(dt({},f),a),auth:dt(dt({},h),l),realtime:dt(dt({},g),c),storage:{},global:dt(dt(dt({},m),d),{},{headers:dt(dt({},(n=m?.headers)!==null&&n!==void 0?n:{}),(s=d?.headers)!==null&&s!==void 0?s:{})}),accessToken:async()=>""};return e.accessToken?v.accessToken=e.accessToken:delete v.accessToken,v}function IL(e){const t=e?.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(LL(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var UL=class extends SL{constructor(e){super(e)}},zL=class{constructor(e,t,n){var s,a;this.supabaseUrl=e,this.supabaseKey=t;const l=IL(e);if(!t)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 c=`sb-${l.hostname.split(".")[0]}-auth-token`,d={db:RL,realtime:CL,auth:dt(dt({},AL),{},{storageKey:c}),global:EL},f=DL(n??{},d);if(this.storageKey=(s=f.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(a=f.global.headers)!==null&&a!==void 0?a:{},f.accessToken)this.accessToken=f.accessToken,this.auth=new Proxy({},{get:(g,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}});else{var h;this.auth=this._initSupabaseAuthClient((h=f.auth)!==null&&h!==void 0?h:{},this.headers,f.global.fetch)}this.fetch=jL(t,this._getAccessToken.bind(this),f.global.fetch),this.realtime=this._initRealtimeClient(dt({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},f.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(g=>this.realtime.setAuth(g)).catch(g=>console.warn("Failed to set initial Realtime auth token:",g)),this.rest=new d2(new URL("rest/v1",l).href,{headers:this.headers,schema:f.db.schema,fetch:this.fetch,timeout:f.db.timeout,urlLengthLimit:f.db.urlLengthLimit}),this.storage=new Tj(this.storageUrl.href,this.headers,this.fetch,n?.storage),f.accessToken||this._listenForAuthEvents()}get functions(){return new t2(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
55channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:s}=await e.auth.getSession();return(t=(n=s.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:s,userStorage:a,storageKey:l,flowType:c,lock:d,debug:f,throwOnError:h,experimental:g,lockAcquireTimeout:m,skipAutoInitialize:v},b,_){const E={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new UL({url:this.authUrl.href,headers:dt(dt({},E),b),storageKey:l,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:s,userStorage:a,flowType:c,lock:d,debug:f,throwOnError:h,experimental:g,fetch:_,lockAcquireTimeout:m,skipAutoInitialize:v,hasCustomAuthorizationHeader:Object.keys(this.headers).some(S=>S.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new K2(this.realtimeUrl.href,dt(dt({},e),{},{params:dt(dt({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t?.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const BL=(e,t,n)=>new zL(e,t,n);function $L(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}$L()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function qL(){if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(S=>e===S||e.endsWith("."+S)),s="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",a=n?e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+s+")(?:-dev)?(?=\\.|$)","i"))?.[1]??e.match(new RegExp("^("+s+")(?=[.-])","i"))?.[1]:void 0,l=window.parent&&window.parent!==window;if(!a||!l)return localStorage;const c=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),d=c?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,f=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),h=f&&d.test(f)?[f]:c?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],g="lovable-preview-auth:result",m=2e3,v=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),b=(S,x,R)=>new Promise(C=>{const O=v();let I=!1,B;const P=K=>{I||(I=!0,clearTimeout(B),window.removeEventListener("message",M),C(K))},M=K=>{if(h.indexOf(K.origin)<0)return;const ne=K.data;ne&&ne.type===g&&ne.requestId===O&&P(ne)};window.addEventListener("message",M);const F={type:S,requestId:O,projectId:a,key:x};R!==void 0&&(F.value=R);for(const K of h)window.parent.postMessage(F,K);B=setTimeout(()=>P(null),m)});let _=!0;const E=250;return{getItem:async S=>{let x=await b("lovable-preview-auth:get",S);return!x&&_&&(await new Promise(R=>setTimeout(R,E)),x=await b("lovable-preview-auth:get",S)),_=!1,x&&x.ok&&typeof x.value=="string"?x.value===""?(localStorage.removeItem(S),null):x.value:localStorage.getItem(S)},setItem:(S,x)=>(localStorage.setItem(S,x),b("lovable-preview-auth:set",S,x).then(R=>{R&&R.ok&&typeof R.value=="string"&&localStorage.getItem(S)===x&&(R.value===""?localStorage.removeItem(S):localStorage.setItem(S,R.value))})),removeItem:S=>(localStorage.removeItem(S),b("lovable-preview-auth:remove",S).then(()=>{}))}}function VL(){return BL("https://mdzcdqdeyrcmpnnputvw.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1kemNkcWRleXJjbXBubnB1dHZ3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDgxMDE1MTksImV4cCI6MjA2MzY3NzUxOX0.U30JzYsI8RUmDVAZ08ezYCYHYXgi0mhmivTn1Qn99bc",{auth:{storage:qL(),persistSession:!0,autoRefreshToken:!0}})}let Bp;
55const zt=new Proxy({},{get(e,t,n){return Bp||(Bp=VL()),Reflect.get(Bp,t,n)}}),HL=Ws({type:"function"}).client(async({next:e})=>{const{data:t}=await zt.auth.getSession(),n=t.session?.access_token;return e({headers:n?{Authorization:`Bearer ${n}`}:{}})}),FL=Ws(),GL=Ws(),T_=XP(()=>({functionMiddleware:[HL],requestMiddleware:[FL,GL]}));var ic=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},KL=class extends ic{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},bg=new KL,YL={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},QL=class{#e=YL;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},qi=new QL;function WL(e){setTimeout(e,0)}var XL=typeof window>"u"||"Deno"in globalThis;function Ut(){}function JL(e,t){return typeof e=="function"?e(t):e}function Rm(e){return typeof e=="number"&&e>=0&&e!==1/0}function PT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zs(e,t){return typeof e=="function"?e(t):e}function kn(e,t){return typeof e=="function"?e(t):e}function E_(e,t){const{type:n="all",exact:s,fetchStatus:a,predicate:l,queryKey:c,stale:d}=e;if(c){if(s){if(t.queryHash!==wg(c,t.options))return!1}else if(!Xl(t.queryKey,c))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||a&&a!==t.state.fetchStatus||l&&!l(t))}function R_(e,t){const{exact:n,status:s,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Wl(t.options.mutationKey)!==Wl(l))return!1}else if(!Xl(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||a&&!a(t))}function wg(e,t){return(t?.queryKeyHashFn||Wl)(e)}function Wl(e){return JSON.stringify(e,(t,n)=>Cm(n)?Object.keys(n).sort().reduce((s,a)=>(s[a]=n[a],s),{}):n)}function Xl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Xl(e[n],t[n])):!1}var ZL=Object.prototype.hasOwnProperty;function jT(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=A_(e)&&A_(t);if(!s&&!(Cm(e)&&Cm(t)))return t;const l=(s?e:Object.keys(e)).length,c=s?t:Object.keys(t),d=c.length,f=s?new Array(d):{};let h=0;for(let g=0;g<d;g++){const m=s?g:c[g],v=e[m],b=t[m];if(v===b){f[m]=v,(s?g<l:ZL.call(e,m))&&h++;continue}if(v===null||b===null||typeof v!="object"||typeof b!="object"){f[m]=b;continue}const _=jT(v,b,n+1);f[m]=_,_===v&&h++}return l===d&&h===l?e:f}function Am(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function A_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Cm(e){if(!C_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!C_(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function C_(e){return Object.prototype.toString.call(e)==="[object Object]"}function eD(e){return new Promise(t=>{qi.setTimeout(t,e)})}function Om(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?jT(e,t):t}function tD(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function nD(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var _g=Symbol();function LT(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===_g?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function DT(e,t){return typeof e=="function"?e(...t):!!e}function rD(e,t,n){let s=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),s||(s=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var Jl=(()=>{let e=()=>XL;return{isServer(){return e()},setIsServer(t){e=t}}})();function km(){let e,t;const n=new Promise((a,l)=>{e=a,t=l});n.status="pending",n.catch(()=>{});function s(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},n.reject=a=>{s({status:"rejected",reason:a}),t(a)},n}function sD(e){let t;if(e.then(n=>(t=n,n),Ut)?.catch(Ut),t!==void 0)return{data:t}}function IT(e){return e}function iD(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}
55function aD(e,t,n){const s=()=>{const a=e.promise?.then(t).catch(l=>n(l)?Promise.reject(new Error("redacted")):Promise.reject(l));return a?.catch(Ut),a};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:s()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function oD(e){return e.state.isPaused}function lD(e){return e.state.status==="success"}function cD(e){return!0}function O_(e,t={}){const n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??oD,s=e.getMutationCache().getAll().flatMap(f=>n(f)?[iD(f)]:[]),a=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??lD,l=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??cD,c=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??IT,d=e.getQueryCache().getAll().flatMap(f=>a(f)?[aD(f,c,l)]:[]);return{mutations:s,queries:d}}function k_(e,t,n){if(typeof t!="object"||t===null)return;const s=e.getMutationCache(),a=e.getQueryCache(),l=e.getDefaultOptions().hydrate?.deserializeData??IT,c=t.mutations||[],d=t.queries||[];
55c.forEach(({state:f,...h})=>{s.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...h},f)}),d.forEach(({queryKey:f,state:h,queryHash:g,meta:m,promise:v,dehydratedAt:b,queryType:_})=>{const E=v?sD(v):void 0,S=h.data===void 0?E?.data:h.data,x=S===void 0?S:l(S);let R=a.get(g);const C=R?.state.status==="pending",O=R?.state.fetchStatus==="fetching";if(R){const I=E&&b!==void 0&&b>R.state.dataUpdatedAt;if(h.dataUpdatedAt>R.state.dataUpdatedAt||I){const{fetchStatus:B,...P}=h;R.setState({...P,data:x,...h.status==="pending"&&x!==void 0&&{status:"success",...!O&&{fetchStatus:"idle"}}})}}else R=a.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:f,queryHash:g,meta:m,_type:_},{...h,data:x,fetchStatus:"idle",status:h.status==="pending"&&x!==void 0?"success":h.status});v&&!E&&!C&&!O&&(b===void 0||b>R.state.dataUpdatedAt)&&R.fetch(void 0,{initialPromise:Promise.resolve(v).then(l)}).catch(Ut)})}var uD=WL;function dD(){let e=[],t=0,n=d=>{d()},s=d=>{d()},a=uD;const l=d=>{t?e.push(d):a(()=>{n(d)})},c=()=>{const d=e;e=[],d.length&&a(()=>{s(()=>{d.forEach(f=>{n(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||c()}return f},batchCalls:d=>(...f)=>{l(()=>{d(...f)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{a=d}}}var Wt=dD(),fD=class extends ic{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},bd=new fD;function hD(e){return Math.min(1e3*2**e,3e4)}function UT(e){return(e??"online")==="online"?bd.isOnline():!0}var Nm=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function zT(e){let t=!1,n=0,s;const a=km(),l=()=>a.status!=="pending",c=E=>{if(!l()){const S=new Nm(E);v(S),e.onCancel?.(S)}},d=()=>{t=!0},f=()=>{t=!1},h=()=>bg.isFocused()&&(e.networkMode==="always"||bd.isOnline())&&e.canRun(),g=()=>UT(e.networkMode)&&e.canRun(),m=E=>{l()||(s?.(),a.resolve(E))},v=E=>{l()||(s?.(),a.reject(E))},b=()=>new Promise(E=>{s=S=>{(l()||h())&&E(S)},e.onPause?.()}).then(()=>{s=void 0,l()||e.onContinue?.()}),_=()=>{if(l())return;let E;const S=n===0?e.initialPromise:void 0;try{E=S??e.fn()}catch(x){E=Promise.reject(x)}Promise.resolve(E).then(m).catch(x=>
55{if(l())return;const R=e.retry??(Jl.isServer()?0:3),C=e.retryDelay??hD,O=typeof C=="function"?C(n,x):C,I=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,x);if(t||!I){v(x);return}n++,e.onFail?.(n,x),eD(O).then(()=>h()?void 0:b()).then(()=>{t?v(x):_()})})};return{promise:a,status:()=>a.status,cancel:c,continue:()=>(s?.(),a),cancelRetry:d,continueRetry:f,canStart:g,start:()=>(g()?_():b().then(_),a)}}var BT=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rm(this.gcTime)&&(this.#e=qi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Jl.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(qi.clearTimeout(this.#e),this.#e=void 0)}};function pD(e){return{onFetch:(t,n)=>{const s=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},f=0;const h=async()=>{let g=!1;const m=_=>{rD(_,()=>t.signal,()=>g=!0)},v=LT(t.options,t.fetchOptions),b=async(_,E,S)=>{if(g)return Promise.reject(t.signal.reason);if(E==null&&_.pages.length)return Promise.resolve(_);const R=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:E,direction:S?"backward":"forward",meta:t.options.meta};return m(B),B})(),C=await v(R),{maxPages:O}=t.options,I=S?nD:tD;return{pages:I(_.pages,C,O),pageParams:I(_.pageParams,E,O)}};if(a&&l.length){const _=a==="backward",E=_?mD:N_,S={pages:l,pageParams:c},x=E(s,S);d=await b(S,x,_)}else{const _=e??l.length;do{const E=f===0?c[0]??s.initialPageParam:N_(s,d);if(f>0&&E==null)break;d=await b(d,E),f++}while(f<_)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function N_(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function mD(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var gD=class extends BT{#e;#t;#n;#r;#i;#s;#o;#a;constructor(e){super(),this.#a=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=P_(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=P_(this.options);t.data!==void 0&&(this.setState(M_(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const n=Om(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(Ut).catch(Ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>kn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_g||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Zs(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!PT(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#a||this.#u()?this.#s.c
vendor: 20,994 bytes, line 55
55ancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},a=()=>{const f=LT(this.options,t),g=(()=>{const m={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(m),m})();return this.#a=!1,this.options.persister?this.options.persister(f,g,this):f(g)},c=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:a};return s(f),f})();(this.#e==="infinite"?pD(this.options.pages):this.options.behavior)?.onFetch(c,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#l({type:"fetch",meta:c.fetchOptions?.meta}),this.#s=zT({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:f=>{f instanceof Nm&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(f,h)=>{this.#l({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const f=await this.#s.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#r.config.onSuccess?.(f,this),this.#r.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Nm){if(f.silent)return this.#s.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#l({type:"error",error:f}),this.#r.config.onError?.(f,this),this.#r.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#l(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...$T(n.data,this.options),fetchMeta:e.meta??null};case"success":const s={...n,...M_(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Wt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function $T(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:UT(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function M_(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function P_(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var yD=class extends ic{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#o=km(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#s;#o;#a;#u;#l;#p;#d;#f;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),j_(this.#t,this.options)?this.#h():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mm(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mm(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#_(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof kn(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),t._defaulted&&!Am(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&L_(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),s&&(this.#t!==n||kn(this.options.enabled,this.#t)!==kn(t.enabled,this.#t)||Zs(this.options.staleTime,this.#t)!==Zs(t.staleTime,this.#t))&&this.#g();const a=this.#y();s&&(this.#t!==n||kn(this.options.enabled,this.#t)!==kn(t.enabled,this.#t)||a!==this.#c)&&this.#v(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return bD(this,n)&&(this.#r=n,this.#s=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,s)=>(this.trackProp(s),t?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,s))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ut)),t}#g(){this.#w();const e=Zs(this.options.staleTime,this.#t);if(Jl.isServer()||this.#r.isStale||!Rm(e))return;const n=PT(this.#r.dataUpdatedAt,e)+1;this.#d=qi.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#_(),this.#c=e,!(Jl.isServer()||kn(this.options.enabled,this.#t)===!1||!Rm(this.#c)||this.#c===0)&&(this.#f=qi.setInterval(()=>{(this.options.refetchIntervalInBackground||bg.isFocused())&&this.#h()},this.#c))}#b(){this.#g(),this.#v(this.#y())}#w(){this.#d!==void 0&&(qi.clearTimeout(this.#d),this.#d=void 0)}#_(){this.#f!==void 0&&(qi.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const n=this.#t,s=this.options,a=this.#r,l=this.#i,c=this.#s,f=e!==n?e.state:this.#n,{state:h}=e;let g={...h},m=!1,v;if(t._optimisticResults){const M=this.hasListeners(),F=!M&&j_(e,t),K=M&&L_(e,n,t,s);(F||K)&&(g={...g,...$T(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:_,status:E}=g;v=g.data;let S=!1;if(t.placeholderData!==void 0&&v===void 0&&E==="pending"){let M;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(M=a.data,S=!0):M=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,M!==void 0&&(E="success",v=Om(a?.data,M,t),m=!0)}if(t.select&&v!==void 0&&!S)if(a&&v===l?.data&&t.select===this.#u)v=this.#l;else try{this.#u=t.select,v=t.select(v),v=Om(a?.data,v,t),this.#l=v,this.#a=null}catch(M){this.#a=M}this.#a&&(b=this.#a,v=this.#l,_=Date.now(),E="error");const x=g.fetchStatus==="fetching",R=E==="pending",C=E==="error",O=R&&x,I=v!==void 0,P={status:E,fetchStatus:g.fetchStatus,isPending:R,isSuccess:E==="success",isError:C,isInitialLoading:O,isLoading:O,data:v,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:_,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:x,isRefetching:x&&!R,isLoadingError:C&&!I,isPaused:g.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:C&&I,isStale:Sg(e,t),refetch:this.refetch,promise:this.#o,isEnabled:kn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const M=P.data!==void 0,F=P.status==="error"&&!M,K=fe=>{F?fe.reject(P.error):M&&fe.resolve(P.data)},ne=()=>{const fe=this.#o=P.promise=km();K(fe)},re=this.#o;switch(re.status){case"pending":e.queryHash===n.queryHash&&K(re);break;case"fulfilled":(F||P.data!==re.value)&&ne();break;case"rejected":(!F||P.error!==re.reason)&&ne();break}}return P}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#s=this.options,this.#i.data!==void 0&&(this.#p=this.#t),Am(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!this.#m.size)return!0;const l=new Set(a??this.#m);return this.options.throwOnError&&l.add("error"),Object.keys(this.#r).some(c=>{const d=c;return this.#r[d]!==e[d]&&l.has(d)})};this.#x({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(e){Wt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function vD(e,t){return kn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&kn(t.retryOnMount,e)===!1)}function j_(e,t){return vD(e,t)||e.state.data!==void 0&&Mm(e,t,t.refetchOnMount)}function Mm(e,t,n){if(kn(t.enabled,e)!==!1&&Zs(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&Sg(e,t)}return!1}function L_(e,t,n,s){return(e!==t||kn(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Sg(e,n)}function Sg(e,t){return kn(t.enabled,e)!==!1&&e.isStaleByTime(Zs(t.staleTime,e))}function bD(e,t){return!Am(e.getCurrentResult(),t)}var wD=class extends BT{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||_D(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=zT({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#i({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",a=!this.#r.canStart();try{if(s)t();else{this.#i({type:"pending",variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#i({type:"pending",context:c,variables:e,isPaused:a})}const l=await this.#r.start();return await this.#n.config.onSuccess?.(l,e,this.state.context,this,n),await this.options.onSuccess?.(l,e,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,e,this.state.context,n),this.#i({type:"success",data:l}),l}catch(l){try{await this.#n.config.onError?.(l,e,this.state.context,this,n)}catch(c){Promise.reject(c)}try{await this.options.onError?.(l,e,this.state.context,n)}catch(c){Promise.reject(c)}try{await this.#n.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,n)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,l,e,this.state.context,n)}catch(c){Promise.reject(c)}throw this.#i({type:"error",error:l}),l}finally{this.#n.runNext(this)}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Wt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function _D(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var SD=class extends ic{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const s=new wD({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(s),s}add(e){this.#e.add(e);const t=Bu(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Bu(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const s=n.indexOf(e);s!==-1&&n.splice(s,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Bu(e);if(typeof t=="string"){const s=this.#t.get(t)?.find(a=>a.state.status==="pending");return!s||s===e}else return!0}runNext(e){const t=Bu(e);return typeof t=="string"?this.#t.get(t)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Wt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>R_(t,n))}findAll(e={}){return this.getAll().filter(t=>R_(e,t))}notify(e){Wt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Wt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Ut))))}};function Bu(e){return e.options.scope?.id}var xD=class extends ic{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const s=t.queryKey,a=t.queryHash??wg(s,t);let l=this.get(a);return l||(l=new gD({client:e,queryKey:s,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Wt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>E_(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>E_(e,n)):t}notify(e){Wt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Wt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Wt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},TD=class{#e;#t;#n;#r;#i;#s;#o;#a;constructor(e={}){this.#e=e.queryCache||new xD,this.#t=e.mutationCache||new SD,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=bg.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=bd.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Zs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),l=this.#e.get(s.queryHash)?.state.data,c=JL(t,l);if(c!==void 0)return this.#e.build(this,s).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Wt.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Wt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Wt.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=Wt.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(s).then(Ut).catch(Ut)}invalidateQueries(e,t={}){return Wt.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=Wt.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(Ut)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(Ut)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Zs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ut).catch(Ut)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ut).catch(Ut)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return bd.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Wl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(s=>{Xl(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Wl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(s=>{Xl(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=wg(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===_g&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},qT=j.createContext(void 0),ED=e=>{const t=j.useContext(qT);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},VT=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(qT.Provider,{value:e,children:t})),HT=j.createContext(!1),RD=()=>j.useContext(HT);HT.Provider;function AD(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
55var CD=j.createContext(AD()),OD=()=>j.useContext(CD),kD=(e,t,n)=>{const s=n?.state.error&&typeof e.throwOnError=="function"?DT(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},ND=e=>{j.useEffect(()=>{e.clearReset()},[e])},MD=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||DT(n,[e.error,s])),TH=(e,t)=>t.state.data===void 0,PD=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...a)=>n(s(...a)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},jD=(e,t)=>e.isLoading&&e.isFetching&&!t,LD=(e,t)=>e?.suspense&&t.isPending,D_=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function DD(e,t,n){const s=RD(),a=OD(),l=ED(),c=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const d=l.getQueryCache().get(c.queryHash),f=e.subscribed!==!1;c._optimisticResults=s?"isRestoring":f?"optimistic":void 0,PD(c),kD(c,a,d),ND(a);const h=!l.getQueryCache().get(c.queryHash),[g]=j.useState(()=>new t(l,c)),m=g.getOptimisticResult(c),v=!s&&f;if(j.useSyncExternalStore(j.useCallback(b=>{const _=v?g.subscribe(Wt.batchCalls(b)):Ut;return g.updateResult(),_},[g,v]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),j.useEffect(()=>{g.setOptions(c)},[c,g]),LD(c,m))throw D_(c,g,a);if(MD({result:m,errorResetBoundary:a,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw m.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(c,m),c.experimental_prefetchInRender&&!Jl.isServer()&&jD(m,s)&&(h?D_(c,g,a):d?.promise)?.catch(Ut).finally(()=>{g.updateResult()}),c.notifyOnChangeProps?m:g.trackResult(m)}function ID(e,t){return DD(e,yD)}function UD(e,t,n){const s=e.options;if(e.options={...e.options,context:{...s.context,queryClient:t},Wrap:({children:a})=>{const l=j.Fragment,c=s.Wrap||j.Fragment;return N.jsx(l,{children:N.jsx(VT,{client:t,children:N.jsx(c,{children:a})})})}},e.isServer){const a=zD();e.options.dehydrate=async()=>{var c;const d=await((c=s.dehydrate)==null?void 0:c.call(s)),f=O_(t);return e.serverSsr.onRenderFinished(()=>a.close()),{...d,dehydratedQueryClient:f,queryStream:a.stream}};const l=t.getDefaultOptions();t.setDefaultOptions({...l,dehydrate:{shouldDehydrateQuery:()=>!0,...l.dehydrate}}),t.getQueryCache().subscribe(c=>{if(c.type==="added"){if(!e.serverSsr.isDehydrated())return;if(a.isClosed()){console.warn(`tried to stream query ${c.query.queryHash} after stream was already closed`);return}a.enqueue(O_(t,{shouldDehydrateQuery:d=>{var f,h;return d.queryHash===c.query.queryHash?((h=(f=l.dehydrate)==null?void 0:f.shouldDehydrateQuery)==null?void 0:h.call(f,d))??!0:!1}}))}})}else{e.options.hydrate=async a=>{var l;await((l=s.hydrate)==null?void 0:l.call(s,a)),k_(t,a.dehydratedQueryClient);const c=a.queryStream.getReader();c.read().then(async function d({done:f,value:h}
55){if(k_(t,h),f)return;const g=await c.read();return d(g)}).catch(d=>{console.error("Error reading query stream:",d)})};{const a=t.getMutationCache().config;t.getMutationCache().config={...a,onError:(c,d,f,h)=>{var g;return nn(c)?(c.options._fromLocation=e.state.location,e.navigate(e.resolveRedirect(c).options)):(g=a.onError)==null?void 0:g.call(a,c,d,f,h)}};const l=t.getQueryCache().config;t.getQueryCache().config={...l,onError:(c,d)=>{var f;return nn(c)?(c.options._fromLocation=e.state.location,e.navigate(e.resolveRedirect(c).options)):(f=l.onError)==null?void 0:f.call(l,c,d)}}}}return e}function zD(){let e;const t=new ReadableStream({start(s){e=s}});let n=!1;return{stream:t,enqueue:s=>e.enqueue(s),close:()=>{e.close(),n=!0},isClosed:()=>n,error:s=>e.error(s)}}function BD(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const $D=e=>{switch(e){case"success":return HD;case"info":return GD;case"warning":return FD;case"error":return KD;default:return null}},qD=Array(12).fill(0),VD=({visible:e,className:t})=>ae.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ae.createElement("div",{className:"sonner-spinner"},qD.map((n,s)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),HD=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),FD=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ae.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"})),GD=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),KD=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),YD=ae.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"},ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),QD=()=>{const[e,t]=ae.useState(document.hidden);return ae.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Pm=1;class WD{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:s,...a}=t,l=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Pm++,c=this.toasts.find(f=>f.id===l),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),c?this.toasts=this.toasts.map(f=>f.id===l?(this.publish({...f,...t,id:l,title:s}),{...f,...t,id:l,dismissible:d,title:s}):f):this.addToast({title:s,...a,dismissible:d,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>
vendor: 3,006 bytes, line 55
55this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(s=>s({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let s;n.loading!==void 0&&(s=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let l=s!==void 0,c;const d=a.then(async h=>{if(c=["resolve",h],ae.isValidElement(h))l=!1,this.create({id:s,type:"default",message:h});else if(JD(h)&&!h.ok){l=!1;const m=typeof n.error=="function"?await n.error(`HTTP error! status: ${h.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${h.status}`):n.description,_=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:s,type:"error",description:v,..._})}else if(h instanceof Error){l=!1;const m=typeof n.error=="function"?await n.error(h):n.error,v=typeof n.description=="function"?await n.description(h):n.description,_=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:s,type:"error",description:v,..._})}else if(n.success!==void 0){l=!1;const m=typeof n.success=="function"?await n.success(h):n.success,v=typeof n.description=="function"?await n.description(h):n.description,_=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:s,type:"success",description:v,..._})}}).catch(async h=>{if(c=["reject",h],n.error!==void 0){l=!1;const g=typeof n.error=="function"?await n.error(h):n.error,m=typeof n.description=="function"?await n.description(h):n.description,b=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:m,...b})}}).finally(()=>{l&&(this.dismiss(s),s=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((h,g)=>d.then(()=>c[0]==="reject"?g(c[1]):h(c[1])).catch(g));return typeof s!="string"&&typeof s!="number"?{unwrap:f}:Object.assign(s,{unwrap:f})},this.custom=(t,n)=>{const s=n?.id||Pm++;return this.create({jsx:t(s),id:s,...n}),s},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const bn=new WD,XD=(e,t)=>{const n=t?.id||Pm++;return bn.addToast({title:e,...t,id:n}),n},JD=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ZD=XD,eI=()=>bn.toasts,tI=()=>bn.getActiveToasts(),EH=Object.assign(ZD,{success:bn.success,info:bn.info,warning:bn.warning,error:bn.error,custom:bn.custom,message:bn.message,promise:bn.promise,dismiss:bn.dismiss,loading:bn.loading},{getHistory:eI,getToasts:tI});BD
vendor: 14,873 bytes, line 55
55("[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;left: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,139 bytes, line 55
55$u(e){return e.label!==void 0}const nI=3,rI="24px",sI="16px",I_=4e3,iI=356,aI=14,oI=45,lI=200;function br(...e){return e.filter(Boolean).join(" ")}function cI(e){const[t,n]=e.split("-"),s=[];return t&&s.push(t),n&&s.push(n),s}const uI=e=>{var t,n,s,a,l,c,d,f,h;const{invert:g,toast:m,unstyled:v,interacting:b,setHeights:_,visibleToasts:E,heights:S,index:x,toasts:R,expanded:C,removeToast:O,defaultRichColors:I,closeButton:B,style:P,cancelButtonStyle:M,actionButtonStyle:F,className:K="",descriptionClassName:ne="",duration:re,position:fe,gap:de,expandByDefault:be,classNames:z,icons:Y,closeButtonAriaLabel:X="Close toast"}=e,[le,te]=ae.useState(null),[D,Q]=ae.useState(null),[Z,ie]=ae.useState(!1),[se,ce]=ae.useState(!1),[Te,xe]=ae.useState(!1),[we,Et]=ae.useState(!1),[mt,ot]=ae.useState(!1),[Jt,Rt]=ae.useState(0),[ci,Cr]=ae.useState(0),ur=ae.useRef(m.duration||re||I_),Ln=ae.useRef(null),$t=ae.useRef(null),Sn=x===0,ui=x+1<=E,Mt=m.type,dr=m.dismissible!==!1,Pt=m.className||"",Ge=m.descriptionClassName||"",lt=ae.useMemo(()=>S.findIndex(Ae=>Ae.toastId===m.id)||0,[S,m.id]),Dn=ae.useMemo(()=>{var Ae;return(Ae=m.closeButton)!=null?Ae:B}
vendor: 4,131 bytes, line 55
55,[m.closeButton,B]),Or=ae.useMemo(()=>m.duration||re||I_,[m.duration,re]),Co=ae.useRef(0),kr=ae.useRef(0),hc=ae.useRef(0),ps=ae.useRef(null),[di,rn]=fe.split("-"),Wn=ae.useMemo(()=>S.reduce((Ae,tt,jt)=>jt>=lt?Ae:Ae+tt.height,0),[S,lt]),Zt=QD(),af=m.invert||g,Oo=Mt==="loading";kr.current=ae.useMemo(()=>lt*de+Wn,[lt,Wn]),ae.useEffect(()=>{ur.current=Or},[Or]),ae.useEffect(()=>{ie(!0)},[]),ae.useEffect(()=>{const Ae=$t.current;if(Ae){const tt=Ae.getBoundingClientRect().height;return Cr(tt),_(jt=>[{toastId:m.id,height:tt,position:m.position},...jt]),()=>_(jt=>jt.filter(en=>en.toastId!==m.id))}},[_,m.id]),ae.useLayoutEffect(()=>{if(!Z)return;const Ae=$t.current,tt=Ae.style.height;Ae.style.height="auto";const jt=Ae.getBoundingClientRect().height;Ae.style.height=tt,Cr(jt),_(en=>en.find(at=>at.toastId===m.id)?en.map(at=>at.toastId===m.id?{...at,height:jt}:at):[{toastId:m.id,height:jt,position:m.position},...en])},[Z,m.title,m.description,_,m.id,m.jsx,m.action,m.cancel]);const fr=ae.useCallback(()=>{ce(!0),Rt(kr.current),_(Ae=>Ae.filter(tt=>tt.toastId!==m.id)),setTimeout(()=>{O(m)},lI)},[m,O,_,kr]);ae.useEffect(()=>{if(m.promise&&Mt==="loading"||m.duration===1/0||m.type==="loading")return;let Ae;return C||b||Zt?(()=>{if(hc.current<Co.current){const en=new Date().getTime()-Co.current;ur.current=ur.current-en}hc.current=new Date().getTime()})():ur.current!==1/0&&(Co.current=new Date().getTime(),Ae=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),fr()},ur.current)),()=>clearTimeout(Ae)},[C,b,m,Mt,Zt,fr]),ae.useEffect(()=>{m.delete&&(fr(),m.onDismiss==null||m.onDismiss.call(m,m))},[fr,m.delete]);function na(){var Ae;if(Y?.loading){var tt;return ae.createElement("div",{className:br(z?.loader,m==null||(tt=m.classNames)==null?void 0:tt.loader,"sonner-loader"),"data-visible":Mt==="loading"},Y.loading)}return ae.createElement(VD,{className:br(z?.loader,m==null||(Ae=m.classNames)==null?void 0:Ae.loader),visible:Mt==="loading"})}const ra=m.icon||Y?.[Mt]||$D(Mt);var fi,hr;return ae.createElement("li",{tabIndex:0,ref:$t,className:br(K,Pt,z?.toast,m==null||(t=m.classNames)==null?void 0:t.toast,z?.default,z?.[Mt],m==null||(n=m.classNames)==null?void 0:n[Mt]),"data-sonner-toast":"","data-rich-colors":(fi=m.richColors)!=null?fi:I,"data-styled":!(m.jsx||m.unstyled||v),"data-mounted":Z,"data-promise":!!m.promise,"data-swiped":mt,"data-removed":se,"data-visible":ui,"data-y-position":di,"data-x-position":rn,"data-index":x,"data-front":Sn,"data-swiping":Te,"data-dismissible":dr,"data-type":Mt,"data-invert":af,"data-swipe-out":we,"data-swipe-direction":D,"data-expanded":!!(C||be&&Z),"data-testid":m.testId,style:{"--index":x,"--toasts-before":x,"--z-index":R.length-x,"--offset":`${se?Jt:kr.current}px`,"--initial-height":be?"auto":`${ci}px`,...P,...m.style},onDragEnd:()=>{xe(!1),te(null),ps.current=null},onPointerDown:Ae=>{Ae.button!==2&&(Oo||!dr||(Ln.current=new Date,Rt(kr.current),Ae.target.setPointerCapture(Ae.pointerId),Ae.target.tagName!=="BUTTON"&&(xe(!0),ps.current={x:Ae.clientX,y:Ae.clientY})))},onPointerUp:()=>{var Ae,tt,jt;if(we||!dr)return;ps.current=null;const en=Number(((Ae=$t.current)==null?void 0:Ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ms=Number(((tt=$t.current)==null?void 0:tt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),at=new Date().getTime()-((jt=Ln.current)==null?void 0:jt.getTime()),ln=le==="x"?en:ms,hi=Math.abs(ln)/at;if(Math.abs(ln)>=oI||hi>.11){Rt(kr.current),m.onDismiss==null||m.onDismiss.call(m,m),Q(le==="x"?en>0?"right":"left":ms>0?"down":"up"),fr(),Et(!0);return}else{var cn,un;(cn=$t.current)==null||cn.style.setProperty("--swipe-amount-x","0px"),(un=$t.current)==null||un.style.setProperty("--swipe-amount-y","0px")}ot(!1),xe(!1),te(null)},onPointerMove:Ae=>{var tt,jt,en;if(!ps.current||!dr||((tt=window.getSelection())==null?void 0:tt.toString().length)>0)return;const at=Ae.clientY-ps.current.y,ln=Ae.clientX-ps.current.x;var hi;const cn=(hi=e.swipeDirections)!=null?hi:cI(fe);!le&&(Math.abs(ln)>1||Math.abs(at)>1)&&te(Math.abs(ln)>Math.abs(at)?"x":"y");let un={x:0,y:0};const sa=Xn=>1/(1.5+Math.abs(Xn)/20);
vendor: 12,102 bytes, line 55
55if(le==="y"){if(cn.includes("top")||cn.includes("bottom"))if(cn.includes("top")&&at<0||cn.includes("bottom")&&at>0)un.y=at;else{const Xn=at*sa(at);un.y=Math.abs(Xn)<Math.abs(at)?Xn:at}}else if(le==="x"&&(cn.includes("left")||cn.includes("right")))if(cn.includes("left")&&ln<0||cn.includes("right")&&ln>0)un.x=ln;else{const Xn=ln*sa(ln);un.x=Math.abs(Xn)<Math.abs(ln)?Xn:ln}(Math.abs(un.x)>0||Math.abs(un.y)>0)&&ot(!0),(jt=$t.current)==null||jt.style.setProperty("--swipe-amount-x",`${un.x}px`),(en=$t.current)==null||en.style.setProperty("--swipe-amount-y",`${un.y}px`)}},Dn&&!m.jsx&&Mt!=="loading"?ae.createElement("button",{"aria-label":X,"data-disabled":Oo,"data-close-button":!0,onClick:Oo||!dr?()=>{}:()=>{fr(),m.onDismiss==null||m.onDismiss.call(m,m)},className:br(z?.closeButton,m==null||(s=m.classNames)==null?void 0:s.closeButton)},(hr=Y?.close)!=null?hr:YD):null,(Mt||m.icon||m.promise)&&m.icon!==null&&(Y?.[Mt]!==null||m.icon)?ae.createElement("div",{"data-icon":"",className:br(z?.icon,m==null||(a=m.classNames)==null?void 0:a.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||na():null,m.type!=="loading"?ra:null):null,ae.createElement("div",{"data-content":"",className:br(z?.content,m==null||(l=m.classNames)==null?void 0:l.content)},ae.createElement("div",{"data-title":"",className:br(z?.title,m==null||(c=m.classNames)==null?void 0:c.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?ae.createElement("div",{"data-description":"",className:br(ne,Ge,z?.description,m==null||(d=m.classNames)==null?void 0:d.description)},typeof m.description=="function"?m.description():m.description):null),ae.isValidElement(m.cancel)?m.cancel:m.cancel&&$u(m.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||M,onClick:Ae=>{$u(m.cancel)&&dr&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,Ae),fr())},className:br(z?.cancelButton,m==null||(f=m.classNames)==null?void 0:f.cancelButton)},m.cancel.label):null,ae.isValidElement(m.action)?m.action:m.action&&$u(m.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||F,onClick:Ae=>{$u(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,Ae),!Ae.defaultPrevented&&fr())},className:br(z?.actionButton,m==null||(h=m.classNames)==null?void 0:h.actionButton)},m.action.label):null)};function U_(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function dI(e,t){const n={};return[e,t].forEach((s,a)=>{const l=a===1,c=l?"--mobile-offset":"--offset",d=l?sI:rI;function f(h){["top","right","bottom","left"].forEach(g=>{n[`${c}-${g}`]=typeof h=="number"?`${h}px`:h})}typeof s=="number"||typeof s=="string"?f(s):typeof s=="object"?["top","right","bottom","left"].forEach(h=>{s[h]===void 0?n[`${c}-${h}`]=d:n[`${c}-${h}`]=typeof s[h]=="number"?`${s[h]}px`:s[h]}):f(d)}),n}const fI=ae.forwardRef(function(t,n){const{id:s,invert:a,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:f,className:h,offset:g,mobileOffset:m,theme:v="light",richColors:b,duration:_,style:E,visibleToasts:S=nI,toastOptions:x,dir:R=U_(),gap:C=aI,icons:O,containerAriaLabel:I="Notifications"}=t,[B,P]=ae.useState([]),M=ae.useMemo(()=>s?B.filter(Z=>Z.toasterId===s):B.filter(Z=>!Z.toasterId),[B,s]),F=ae.useMemo(()=>Array.from(new Set([l].concat(M.filter(Z=>Z.position).map(Z=>Z.position)))),[M,l]),[K,ne]=ae.useState([]),[re,fe]=ae.useState(!1),[de,be]=ae.useState(!1),[z,Y]=ae.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=ae.useRef(null),le=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),te=ae.useRef(null),D=ae.useRef(!1),Q=ae.useCallback(Z=>{P(ie=>{var se;return(se=ie.find(ce=>ce.id===Z.id))!=null&&se.delete||bn.dismiss(Z.id),ie.filter(({id:ce})=>ce!==Z.id)})},[]);return ae.useEffect(()=>bn.subscribe(Z=>{if(Z.dismiss){requestAnimationFrame(()=>{P(ie=>ie.map(se=>se.id===Z.id?{...se,delete:!0}:se))});return}setTimeout(()=>{iT.flushSync(()=>{P(ie=>{const se=ie.findIndex(ce=>ce.id===Z.id);return se!==-1?[...ie.slice(0,se),{...ie[se],...Z},...ie.slice(se+1)]:[Z,...ie]})})})}),[B]),ae.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 Z=window.matchMedia("(prefers-color-scheme: dark)");try{Z.addEventListener("change",({matches:ie})=>{Y(ie?"dark":"light")})}catch{Z.addListener(({matches:se})=>{try{Y(se?"dark":"light")}catch(ce){console.error(ce)}})}},[v]),ae.useEffect(()=>{B.length<=1&&fe(!1)},[B]),ae.useEffect(()=>{const Z=ie=>{var se;if(c.every(xe=>ie[xe]||ie.code===xe)){var Te;fe(!0),(Te=X.current)==null||Te.focus()}ie.code==="Escape"&&(document.activeElement===X.current||(se=X.current)!=null&&se.contains(document.activeElement))&&fe(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[c]),ae.useEffect(()=>{if(X.current)return()=>{te.current&&(te.current.focus({preventScroll:!0}),te.current=null,D.current=!1)}},[X.current]),ae.createElement("section",{ref:n,"aria-label":`${I} ${le}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},F.map((Z,ie)=>{var se;const[ce,Te]=Z.split("-");return M.length?ae.createElement("ol",{key:Z,dir:R==="auto"?U_():R,tabIndex:-1,ref:X,className:h,"data-sonner-toaster":!0,"data-sonner-theme":z,"data-y-position":ce,"data-x-position":Te,style:{"--front-toast-height":`${((se=K[0])==null?void 0:se.height)||0}px`,"--width":`${iI}px`,"--gap":`${C}px`,...E,...dI(g,m)},onBlur:xe=>{D.current&&!xe.currentTarget.contains(xe.relatedTarget)&&(D.current=!1,te.current&&(te.current.focus({preventScroll:!0}),te.current=null))},onFocus:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||D.current||(D.current=!0,te.current=xe.relatedTarget)},onMouseEnter:()=>fe(!0),onMouseMove:()=>fe(!0),onMouseLeave:()=>{de||fe(!1)},onDragEnd:()=>fe(!1),onPointerDown:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||be(!0)},onPointerUp:()=>be(!1)},M.filter(xe=>!xe.position&&ie===0||xe.position===Z).map((xe,we)=>{var Et,mt;return ae.createElement(uI,{key:xe.id,icons:O,index:we,toast:xe,defaultRichColors:b,duration:(Et=x?.duration)!=null?Et:_,className:x?.className,descriptionClassName:x?.descriptionClassName,invert:a,visibleToasts:S,closeButton:(mt=x?.closeButton)!=null?mt:f,interacting:de,position:Z,style:x?.style,unstyled:x?.unstyled,classNames:x?.classNames,cancelButtonStyle:x?.cancelButtonStyle,actionButtonStyle:x?.actionButtonStyle,closeButtonAriaLabel:x?.closeButtonAriaLabel,removeToast:Q,toasts:M.filter(ot=>ot.position==xe.position),heights:K.filter(ot=>ot.position==xe.position),setHeights:ne,expandByDefault:d,gap:C,expanded:re,swipeDirections:t.swipeDirections})})):null}))}),hI=({...e})=>N.jsx(fI,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});function ts(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function z_(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xg(...e){return t=>{let n=!1;const s=e.map(a=>{const l=z_(a,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<s.length;a++){const l=s[a];typeof l=="function"?l():z_(e[a],null)}}}}function ea(...e){return j.useCallback(xg(...e),e)}function RH(e,t){const n=j.createContext(t),s=l=>{const{children:c,...d}=l,f=j.useMemo(()=>d,Object.values(d));return N.jsx(n.Provider,{value:f,children:c})};s.displayName=e+"Provider";function a(l){const c=j.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[s,a]}function FT(e,t=[]){let n=[];function s(l,c){const d=j.createContext(c),f=n.length;n=[...n,c];const h=m=>{const{scope:v,children:b,..._}=m,E=v?.[e]?.[f]||d,S=j.useMemo(()=>_,Object.values(_));return N.jsx(E.Provider,{value:S,children:b})};h.displayName=l+"Provider";function g(m,v){const b=v?.[e]?.[f]||d,_=j.useContext(b);if(_)return _;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${l}\``)}return[h,g]}const a=()=>{const l=n.map(c=>j.createContext(c));return function(d){const f=d?.[e]||l;return j.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return a.scopeName=e,[s,pI(a,...t)]}function pI(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const c=s.reduce((d,{useScope:f,scopeName:h})=>{const m=f(l)[`__scope${h}`];return{...d,...m}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function mI(e){const t=gI(e),n=j.forwardRef((s,a)=>{const{children:l,...c}=s,d=j.Children.toArray(l),f=d.find(vI);if(f){const h=f.props.children,g=d.map(m=>m===f?j.Children.count(h)>1?j.Children.only(null):j.isValidElement(h)?h.props.children:null:m);return N.jsx(t,{...c,ref:a,children:j.isValidElement(h)?j.cloneElement(h,void 0,g):null})}return N.jsx(t,{...c,ref:a,children:l})});return n.displayName=`${e}.Slot`,n}function gI(e){const t=j.forwardRef((n,s)=>{const{children:a,...l}=n;if(j.isValidElement(a)){const c=wI(a),d=bI(l,a.props);return a.type!==j.Fragment&&(d.ref=s?xg(s,c):c),j.cloneElement(a,d)}return j.Children.count(a)>1?j.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yI=Symbol("radix.slottable");function vI(e){return j.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yI}function bI(e,t){const n={...t};for(const s in t){const a=e[s],l=t[s];/^on[A-Z]/.test(s)?a&&l?n[s]=(...d)=>{const f=l(...d);return a(...d),f}:a&&(n[s]=a):s==="style"?n[s]={...a,...l}:s==="className"&&(n[s]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}function wI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _I=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oi=_I.reduce((e,t)=>{const n=mI(`Primitive.${t}`),s=j.forwardRef((a,l)=>{const{asChild:c,...d}=a,f=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),N.jsx(f,{...d,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function SI(e,t){e&&Vd.flushSync(()=>e.dispatchEvent(t))}function Yd(e){const t=j.useRef(e);return j.useEffect(()=>{t.current=e}),j.useMemo(()=>(...n)=>t.current?.(...n),[])}function xI(e,t=globalThis?.document){const n=Yd(e);j.useEffect(()=>{const s=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var TI="DismissableLayer",jm="dismissableLayer.update",EI="dismissableLayer.pointerDownOutside",RI="dismissableLayer.focusOutside",B_,GT=j.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),KT=j.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...f}=e,h=j.useContext(GT),[g,m]=j.useState(null),v=g?.ownerDocument??globalThis?.document,[,b]=j.useState({}),_=ea(t,P=>m(P)),E=Array.from(h.layers),[S]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),x=E.indexOf(S),R=g?E.indexOf(g):-1,C=h.layersWithOutsidePointerEventsDisabled.size>0,O=R>=x,I=OI(P=>{const M=P.target,F=[...h.branches].some(K=>
vendor: 9,793 bytes, line 55
55K.contains(M));!O||F||(a?.(P),c?.(P),P.defaultPrevented||d?.())},v),B=kI(P=>{const M=P.target;[...h.branches].some(K=>K.contains(M))||(l?.(P),c?.(P),P.defaultPrevented||d?.())},v);return xI(P=>{R===h.layers.size-1&&(s?.(P),!P.defaultPrevented&&d&&(P.preventDefault(),d()))},v),j.useEffect(()=>{if(g)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(B_=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),$_(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=B_)}},[g,v,n,h]),j.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),$_())},[g,h]),j.useEffect(()=>{const P=()=>b({});return document.addEventListener(jm,P),()=>document.removeEventListener(jm,P)},[]),N.jsx(oi.div,{...f,ref:_,style:{pointerEvents:C?O?"auto":"none":void 0,...e.style},onFocusCapture:ts(e.onFocusCapture,B.onFocusCapture),onBlurCapture:ts(e.onBlurCapture,B.onBlurCapture),onPointerDownCapture:ts(e.onPointerDownCapture,I.onPointerDownCapture)})});KT.displayName=TI;var AI="DismissableLayerBranch",CI=j.forwardRef((e,t)=>{const n=j.useContext(GT),s=j.useRef(null),a=ea(t,s);return j.useEffect(()=>{const l=s.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),N.jsx(oi.div,{...e,ref:a})});CI.displayName=AI;function OI(e,t=globalThis?.document){const n=Yd(e),s=j.useRef(!1),a=j.useRef(()=>{});return j.useEffect(()=>{const l=d=>{if(d.target&&!s.current){let f=function(){YT(EI,n,h,{discrete:!0})};const h={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);s.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function kI(e,t=globalThis?.document){const n=Yd(e),s=j.useRef(!1);return j.useEffect(()=>{const a=l=>{l.target&&!s.current&&YT(RI,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function $_(){const e=new CustomEvent(jm);document.dispatchEvent(e)}function YT(e,t,n,{discrete:s}){const a=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?SI(a,l):a.dispatchEvent(l)}var mo=globalThis?.document?j.useLayoutEffect:()=>{};const NI=["top","right","bottom","left"],ei=Math.min,Nn=Math.max,wd=Math.round,qu=Math.floor,Er=e=>({x:e,y:e}),MI={left:"right",right:"left",bottom:"top",top:"bottom"};function Lm(e,t,n){return Nn(e,ei(t,n))}function as(e,t){return typeof e=="function"?e(t):e}function os(e){return e.split("-")[0]}function _o(e){return e.split("-")[1]}function Tg(e){return e==="x"?"y":"x"}function Eg(e){return e==="y"?"height":"width"}function Tr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Rg(e){return Tg(Tr(e))}function PI(e,t,n){n===void 0&&(n=!1);const s=_o(e),a=Rg(e),l=Eg(a);let c=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=_d(c)),[c,_d(c)]}function jI(e){const t=_d(e);return[Dm(e),t,Dm(t)]}function Dm(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const q_=["left","right"],V_=["right","left"],LI=["top","bottom"],DI=["bottom","top"];function II(e,t,n){switch(e){case"top":case"bottom":return n?t?V_:q_:t?q_:V_;case"left":case"right":return t?LI:DI;default:return[]}}function UI(e,t,n,s){const a=_o(e);let l=II(os(e),n==="start",s);return a&&(l=l.map(c=>c+"-"+a),t&&(l=l.concat(l.map(Dm)))),l}function _d(e){const t=os(e);return MI[t]+e.slice(t.length)}function zI(e){return{top:0,right:0,bottom:0,left:0,...e}}function QT(e){return typeof e!="number"?zI(e):{top:e,right:e,bottom:e,left:e}}function Sd(e){const{x:t,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:t,right:t+s,bottom:n+a,x:t,y:n}}function H_(e,t,n){let{reference:s,floating:a}=e;const l=Tr(t),c=Rg(t),d=Eg(c),f=os(t),h=l==="y",g=s.x+s.width/2-a.width/2,m=s.y+s.height/2-a.height/2,v=s[d]/2-a[d]/2;let b;switch(f){case"top":b={x:g,y:s.y-a.height};break;case"bottom":b={x:g,y:s.y+s.height};break;case"right":b={x:s.x+s.width,y:m};break;case"left":b={x:s.x-a.width,y:m};break;default:b={x:s.x,y:s.y}}switch(_o(t)){case"start":b[c]-=v*(n&&h?-1:1);break;case"end":b[c]+=v*(n&&h?-1:1);break}return b}async function BI(e,t){var n;t===void 0&&(t={});const{x:s,y:a,platform:l,rects:c,elements:d,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:v=!1,padding:b=0}=as(t,e),_=QT(b),S=d[v?m==="floating"?"reference":"floating":m],x=Sd(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(S)))==null||n?S:S.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:h,rootBoundary:g,strategy:f})),R=m==="floating"?{x:s,y:a,width:c.floating.width,height:c.floating.height}:c.reference,C=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),O=await(l.isElement==null?void 0:l.isElement(C))?await(l.getScale==null?void 0:l.getScale(C))||{x:1,y:1}:{x:1,y:1},I=Sd(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:C,strategy:f}):R);return{top:(x.top-I.top+_.top)/O.y,bottom:(I.bottom-x.bottom+_.bottom)/O.y,left:(x.left-I.left+_.left)/O.x,right:(I.right-x.right+_.right)/O.x}}const $I=50,qI=async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:l=[],platform:c}=n,d=c.detectOverflow?c:{...c,detectOverflow:BI},f=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:g,y:m}=H_(h,s,f),v=s,b=0;const _={};for(let E=0;E<l.length;E++){const S=l[E];if(!S)continue;const{name:x,fn:R}=S,{x:C,y:O,data:I,reset:B}=await R({x:g,y:m,initialPlacement:s,placement:v,strategy:a,middlewareData:_,rects:h,platform:d,elements:{reference:e,floating:t}});g=C??g,m=O??m,_[x]={..._[x],...I},B&&b<$I&&(b++,typeof B=="object"&&(B.placement&&(v=B.placement),B.rects&&(h=B.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):B.rects),{x:g,y:m}=H_(h,v,f)),E=-1)}return{x:g,y:m,placement:v,strategy:a,middlewareData:_}},VI=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:a,rects:l,platform:c,elements:d,middlewareData:f}=t,{element:h,padding:g=0}=as(e,t)||{};if(h==null)return{};const m=QT(g),v={x:n,y:s},b=Rg(a),_=Eg(b),E=await c.getDimensions(h),S=b==="y",x=S?"top":"left",R=S?"bottom":"right",C=S?"clientHeight":"clientWidth",O=l.reference[_]+l.reference[b]-v[b]-l.floating[_],I=v[b]-l.reference[b],B=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let P=B?B[C]:0;(!P||!await(c.isElement==null?void 0:c.isElement(B)))&&(P=d.floating[C]||l.floating[_]);const M=O/2-I/2,F=P/2-E[_]/2-1,K=ei(m[x],F),ne=ei(m[R],F),re=K,fe=P-E[_]-ne,de=P/2-E[_]/2+M,be=Lm(re,de,fe),z=!f.arrow&&_o(a)!=null&&de!==be&&l.reference[_]/2-(de<re?K:ne)-E[_]/2<0,Y=z?de<re?de-re:de-fe:0;return{[b]:v[b]+Y,data:{[b]:be,centerOffset:de-be-Y,...z&&{alignmentOffset:Y}},reset:z}}}),HI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:a,middlewareData:l,rects:c,initialPlacement:d,platform:f,elements:h}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:E=!0,...S}=as(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const x=os(a),R=Tr(d),C=os(d)===d,O=await(f.isRTL==null?void 0:f.isRTL(h.floating)),I=v||(C||!E?[_d(d)]:jI(d)),B=_!=="none";!v&&B&&I.push(...UI(d,E,_,O));const P=[d,...I],M=await f.detectOverflow(t,S),F=[];let K=((s=l.flip)==null?void 0:s.overflows)||[];if(g&&F.push(M[x]),m){const de=PI(a,c,O);F.push(M[de[0]],M[de[1]])}if(K=[...K,{placement:a,overflows:F}],!F.every(de=>de<=0)){var ne,re;const de=(((ne=l.flip)==null?void 0:ne.index)||0)+1,be=P[de];if(be&&(!(m==="alignment"?R!==Tr(be):!1)||K.every(X=>Tr(X.placement)===R?X.overflows[0]>0:!0)))return{data:{index:de,overflows:K},reset:{placement:be}};let z=(re=K.filter(Y=>Y.overflows[0]<=0).sort((Y,X)=>Y.overflows[1]-X.overflows[1])[0])==null?void 0:re.placement;if(!z)switch(b){case"bestFit":{var fe;const Y=(fe=K.filter(X=>{if(B){const le=Tr(X.placement);return le===R||le==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(le=>le>0).reduce((le,te)=>le+te,0)]).sort((X,le)=>X[1]-le[1])[0])==null?void 0:fe[0];Y&&(z=Y);break}case"initialPlacement":z=d;break}if(a!==z)return{reset:{placement:z}}}return{}}}};function F_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function G_(e){return NI.some(t=>e[t]>=0)}const FI=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:a="referenceHidden",...l}=as(e,t);switch(a){case"referenceHidden":{const c=await s.detectOverflow(t,{...l,elementContext:"reference"}),d=F_(c,n.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:G_(d)}}}case"escaped":{const c=await s.detectOverflow(t,{...l,altBoundary:!0}),d=F_(c,n.floating);return{data:{escapedOffsets:d,escaped:G_(d)}}}default:return{}}}}},WT=new Set(["left","top"]);async function GI(e,t){const{placement:n,platform:s,elements:a}=e,l=await(s.isRTL==null?void 0:s.isRTL(a.floating)),c=os(n),d=_o(n),f=Tr(n)==="y",h=WT.has(c)?-1:1,g=l&&f?-1:1,m=as(t,e);let{mainAxis:v,crossAxis:b,alignmentAxis:_}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}
55:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return d&&typeof _=="number"&&(b=d==="end"?_*-1:_),f?{x:b*g,y:v*h}:{x:v*h,y:b*g}}const KI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:l,placement:c,middlewareData:d}=t,f=await GI(t,e);return c===((n=d.offset)==null?void 0:n.placement)&&(s=d.arrow)!=null&&s.alignmentOffset?{}:{x:a+f.x,y:l+f.y,data:{...f,placement:c}}}}},YI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a,platform:l}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:f={fn:x=>{let{x:R,y:C}=x;return{x:R,y:C}}},...h}=as(e,t),g={x:n,y:s},m=await l.detectOverflow(t,h),v=Tr(os(a)),b=Tg(v);let _=g[b],E=g[v];if(c){const x=b==="y"?"top":"left",R=b==="y"?"bottom":"right",C=_+m[x],O=_-m[R];_=Lm(C,_,O)}if(d){const x=v==="y"?"top":"left",R=v==="y"?"bottom":"right",C=E+m[x],O=E-m[R];E=Lm(C,E,O)}const S=f.fn({...t,[b]:_,[v]:E});return{...S,data:{x:S.x-n,y:S.y-s,enabled:{[b]:c,[v]:d}}}}}},QI=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:a,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:f=!0,crossAxis:h=!0}=as(e,t),g={x:n,y:s},m=Tr(a),v=Tg(m);let b=g[v],_=g[m];const E=as(d,t),S=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(f){const C=v==="y"?"height":"width",O=l.reference[v]-l.floating[C]+S.mainAxis,I=l.reference[v]+l.reference[C]-S.mainAxis;b<O?b=O:b>I&&(b=I)}if(h){var x,R;const C=v==="y"?"width":"height",O=WT.has(os(a)),I=l.reference[m]-l.floating[C]+(O&&((x=c.offset)==null?void 0:x[m])||0)+(O?0:S.crossAxis),B=l.reference[m]+l.reference[C]+(O?0:((R=c.offset)==null?void 0:R[m])||0)-(O?S.crossAxis:0);_<I?_=I:_>B&&(_=B)}return{[v]:b,[m]:_}}}},WI=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:a,rects:l,platform:c,elements:d}=t,{apply:f=()=>{},...h}=as(e,t),g=await c.detectOverflow(t,h),m=os(a),v=_o(a),b=Tr(a)==="y",{width:_,height:E}=l.floating;let S,x;m==="top"||m==="bottom"?(S=m,x=v===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(x=m,S=v==="end"?"top":"bottom");const R=E-g.top-g.bottom,C=_-g.left-g.right,O=ei(E-g[S],R),I=ei(_-g[x],C),B=!t.middlewareData.shift;let P=O,M=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=C),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(P=R),B&&!v){const K=Nn(g.left,0),ne=Nn(g.right,0),re=Nn(g.top,0),fe=Nn(g.bottom,0);b?M=_-2*(K!==0||ne!==0?K+ne:Nn(g.left,g.right)):P=E-2*(re!==0||fe!==0?re+fe:Nn(g.top,g.bottom))}await f({...t,availableWidth:M,availableHeight:P});const F=await c.getDimensions(d.floating);return _!==F.width||E!==F.height?{reset:{rects:!0}}:{}}}};function Qd(){return typeof window<"u"}function So(e){return XT(e)?(e.nodeName||"").toLowerCase():"#document"}function jn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ar(e){var t;return(t=(XT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function XT(e){return Qd()?e instanceof Node||e instanceof jn(e).Node:!1}function lr(e){return Qd()?e instanceof Element||e instanceof jn(e).Element:!1}function ds(e){return Qd()?e instanceof HTMLElement||e instanceof jn(e).HTMLElement:!1}function K_(e){return!Qd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jn(e).ShadowRoot}function ac(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=cr(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&a!=="inline"&&a!=="contents"}function XI(e){return/^(table|td|th)$/.test(So(e))}function Wd(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const JI=/transform|translate|scale|rotate|perspective|filter/,ZI=/paint|layout|strict|content/,ji=e=>!!e&&e!=="none";let $p;function Ag(e){const t=lr(e)?cr(e):e;return ji(t.transform)||ji(t.translate)||ji(t.scale)||ji(t.rotate)||ji(t.perspective)||!Cg()&&(ji(t.backdropFilter)||ji(t.filter))||JI.test(t.willChange||"")||ZI.test(t.contain||"")}function e3(e){let t=ti(e);for(;ds(t)&&!go(t);){if(Ag(t))return t;if(Wd(t))return null;t=ti(t)}return null}function Cg(){return $p==null&&($p=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$p}function go(e){return/^(html|body|#document)$/.test(So(e))}function cr(e){return jn(e).getComputedStyle(e)}function Xd(e){return lr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ti(e){if(So(e)==="html")return e;const t=e.assignedSlot||e.parentNode||K_(e)&&e.host||Ar(e);return K_(t)?t.host:t}function JT(e){const t=ti(e);return go(t)?e.ownerDocument?e.ownerDocument.body:e.body:ds(t)&&ac(t)?t:JT(t)}function Zl(e,t,n){var s;
vendor: 7,705 bytes, line 55
55t===void 0&&(t=[]),n===void 0&&(n=!0);const a=JT(e),l=a===((s=e.ownerDocument)==null?void 0:s.body),c=jn(a);if(l){const d=Im(c);return t.concat(c,c.visualViewport||[],ac(a)?a:[],d&&n?Zl(d):[])}else return t.concat(a,Zl(a,[],n))}function Im(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ZT(e){const t=cr(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=ds(e),l=a?e.offsetWidth:n,c=a?e.offsetHeight:s,d=wd(n)!==l||wd(s)!==c;return d&&(n=l,s=c),{width:n,height:s,$:d}}function Og(e){return lr(e)?e:e.contextElement}function ho(e){const t=Og(e);if(!ds(t))return Er(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:l}=ZT(t);let c=(l?wd(n.width):n.width)/s,d=(l?wd(n.height):n.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const t3=Er(0);function eE(e){const t=jn(e);return!Cg()||!t.visualViewport?t3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function n3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==jn(e)?!1:t}function Wi(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=Og(e);let c=Er(1);t&&(s?lr(s)&&(c=ho(s)):c=ho(e));const d=n3(l,n,s)?eE(l):Er(0);let f=(a.left+d.x)/c.x,h=(a.top+d.y)/c.y,g=a.width/c.x,m=a.height/c.y;if(l){const v=jn(l),b=s&&lr(s)?jn(s):s;let _=v,E=Im(_);for(;E&&s&&b!==_;){const S=ho(E),x=E.getBoundingClientRect(),R=cr(E),C=x.left+(E.clientLeft+parseFloat(R.paddingLeft))*S.x,O=x.top+(E.clientTop+parseFloat(R.paddingTop))*S.y;f*=S.x,h*=S.y,g*=S.x,m*=S.y,f+=C,h+=O,_=jn(E),E=Im(_)}}return Sd({width:g,height:m,x:f,y:h})}function Jd(e,t){const n=Xd(e).scrollLeft;return t?t.left+n:Wi(Ar(e)).left+n}function tE(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Jd(e,n),a=n.top+t.scrollTop;return{x:s,y:a}}function r3(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const l=a==="fixed",c=Ar(s),d=t?Wd(t.floating):!1;if(s===c||d&&l)return n;let f={scrollLeft:0,scrollTop:0},h=Er(1);const g=Er(0),m=ds(s);if((m||!m&&!l)&&((So(s)!=="body"||ac(c))&&(f=Xd(s)),m)){const b=Wi(s);h=ho(s),g.x=b.x+s.clientLeft,g.y=b.y+s.clientTop}const v=c&&!m&&!l?tE(c,f):Er(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+g.x+v.x,y:n.y*h.y-f.scrollTop*h.y+g.y+v.y}}function s3(e){return Array.from(e.getClientRects())}function i3(e){const t=Ar(e),n=Xd(e),s=e.ownerDocument.body,a=Nn(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),l=Nn(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let c=-n.scrollLeft+Jd(e);const d=-n.scrollTop;return cr(s).direction==="rtl"&&(c+=Nn(t.clientWidth,s.clientWidth)-a),{width:a,height:l,x:c,y:d}}const Y_=25;function a3(e,t){const n=jn(e),s=Ar(e),a=n.visualViewport;let l=s.clientWidth,c=s.clientHeight,d=0,f=0;if(a){l=a.width,c=a.height;const g=Cg();(!g||g&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}const h=Jd(s);if(h<=0){const g=s.ownerDocument,m=g.body,v=getComputedStyle(m),b=g.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,_=Math.abs(s.clientWidth-m.clientWidth-b);_<=Y_&&(l-=_)}else h<=Y_&&(l+=h);return{width:l,height:c,x:d,y:f}}function o3(e,t){const n=Wi(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,l=ds(e)?ho(e):Er(1),c=e.clientWidth*l.x,d=e.clientHeight*l.y,f=a*l.x,h=s*l.y;return{width:c,height:d,x:f,y:h}}function Q_(e,t,n){let s;if(t==="viewport")s=a3(e,n);else if(t==="document")s=i3(Ar(e));else if(lr(t))s=o3(t,n);else{const a=eE(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Sd(s)}function nE(e,t){const n=ti(e);return n===t||!lr(n)||go(n)?!1:cr(n).position==="fixed"||nE(n,t)}function l3(e,t){const n=t.get(e);if(n)return n;let s=Zl(e,[],!1).filter(d=>lr(d)&&So(d)!=="body"),a=null;const l=cr(e).position==="fixed";let c=l?ti(e):e;for(;lr(c)&&!go(c);){const d=cr(c),f=Ag(c);!f&&d.position==="fixed"&&(a=null),(l?!f&&!a:!f&&d.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||ac(c)&&!f&&nE(e,c))?s=s.filter(g=>g!==c):a=d,c=ti(c)}return t.set(e,s),s}function c3(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const c=[...n==="clippingAncestors"?Wd(t)?[]:l3(t,this._c):[].concat(n),s],d=Q_(t,c[0],a);let f=d.top,h=d.right,g=d.bottom,m=d.left;for(let v=1;v<c.length;v++){const b=Q_(t,c[v],a);f=Nn(b.top,f),h=ei(b.right,h),g=ei(b.bottom,g),m=Nn(b.left,m)}return{width:h-m,height:g-f,x:m,y:f}}function u3(e){const{width:t,height:n}=ZT(e);return{width:t,height:n}}function d3(e,t,n){const s=ds(t),a=Ar(t),l=n==="fixed",c=Wi(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const f=Er(0);function h(){f.x=Jd(a)}if(s||!s&&!l)if((So(t)!=="body"||ac(a))&&(d=Xd(t)),s){const b=Wi(t,!0,l,t);f.x=b.x+t.clientLeft,f.y=b.y+t.clientTop}else a&&h();l&&!s&&a&&h();const g=a&&!s&&!l?tE(a,d):Er(0),m=c.left+d.scrollLeft-f.x-g.x,v=c.top+d.scrollTop-f.y-g.y;return{x:m,y:v,width:c.width,height:c.height}}function qp(e){return cr(e).position==="static"}function W_(e,t){if(!ds(e)||cr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ar(e)===n&&(n=n.ownerDocument.body),n}function rE(e,t){const n=jn(e);if(Wd(e))return n;if(!ds(e)){let a=ti(e);for(;a&&!go(a);){if(lr(a)&&!qp(a))return a;a=ti(a)}return n}let s=W_(e,t);for(;s&&XI(s)&&qp(s);)s=W_(s,t);return s&&go(s)&&qp(s)&&!Ag(s)?n:s||e3(e)||n}const f3=async function(e){const t=this.getOffsetParent||rE,n=this.getDimensions,s=await n(e.floating);return{reference:d3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function h3(e){return cr(e).direction==="rtl"}const p3={convertOffsetParentRelativeRectToViewportRelativeRect:r3,getDocumentElement:Ar,getClippingRect:c3,getOffsetParent:rE,getElementRects:f3,getClientRects:s3,getDimensions:u3,getScale:ho,isElement:lr,isRTL:h3};function sE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function m3(e,t){let n=null,s;const a=Ar(e);function l(){var d;clearTimeout(s),(d=n)==null||d.disconnect(),n=null}function c(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),l();const h=e.getBoundingClientRect(),{left:g,top:m,width:v,height:b}=h;if(d||t(),!v||!b)return;const _=qu(m),E=qu(a.clientWidth-(g+v)),S=qu(a.clientHeight-(m+b)),x=qu(g),C={rootMargin:-_+"px "+-E+"px "+-S+"px "+-x+"px",threshold:Nn(0,ei(1,f))||1};let O=!0;function I(B){const P=B[0].intersectionRatio;if(P!==f){if(!O)return c();P?c(!1,P):s=setTimeout(()=>{c(!1,1e-7)},1e3)}P===1&&!sE(h,e.getBoundingClientRect())&&c(),O=!1}try{n=new IntersectionObserver(I,{...C,root:a.ownerDocument})}catch{n=new IntersectionObserver(I,C)}n.observe(e)}return c(!0),l}function g3(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=s,h=Og(e),g=a||l?[...h?Zl(h):[],...t?Zl(t):[]]:[];g.forEach(x=>{a&&x.addEventListener("scroll",n,{passive:!0}),l&&x.addEventListener("resize",n)});const m=h&&d?m3(h,n):null;let v=-1,b=null;c&&(b=new ResizeObserver(x=>{let[R]=x;R&&R.target===h&&b&&t&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=b)==null||C.observe(t)})),n()}),h&&!f&&b.observe(h),t&&b.observe(t));let _,E=f?Wi(e):null;f&&S();function S(){const x=Wi(e);E&&!sE(E,x)&&n(),E=x,_=requestAnimationFrame(S)}return n(),()=>{var x;g.forEach(R=>{a&&R.removeEventListener("scroll",n),l&&R.removeEventListener("resize",n)}),m?.(),(x=b)==null||x.disconnect(),b=null,f&&cancelAnimationFrame(_)}}const y3=KI,v3=YI,b3=HI,w3=WI,_3=FI,X_=VI,S3=QI,x3=(e,t,n)=>{const s=new Map,a={platform:p3,...n},l={...a.platform,_c:s};return qI(e,t,{...a,platform:l})};var T3=typeof document<"u",E3=function(){},nd=T3?j.useLayoutEffect:E3;function xd(e,t){if(e===t)return!0;
vendor: 4,418 bytes, line 55
55if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!xd(e[s],t[s]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,a[s]))return!1;for(s=n;s--!==0;){const l=a[s];if(!(l==="_owner"&&e.$$typeof)&&!xd(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function iE(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function J_(e,t){const n=iE(e);return Math.round(t*n)/n}function Vp(e){const t=j.useRef(e);return nd(()=>{t.current=e}),t}function R3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:a,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:f,open:h}=e,[g,m]=j.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=j.useState(s);xd(v,s)||b(s);const[_,E]=j.useState(null),[S,x]=j.useState(null),R=j.useCallback(X=>{X!==B.current&&(B.current=X,E(X))},[]),C=j.useCallback(X=>{X!==P.current&&(P.current=X,x(X))},[]),O=l||_,I=c||S,B=j.useRef(null),P=j.useRef(null),M=j.useRef(g),F=f!=null,K=Vp(f),ne=Vp(a),re=Vp(h),fe=j.useCallback(()=>{if(!B.current||!P.current)return;const X={placement:t,strategy:n,middleware:v};ne.current&&(X.platform=ne.current),x3(B.current,P.current,X).then(le=>{const te={...le,isPositioned:re.current!==!1};de.current&&!xd(M.current,te)&&(M.current=te,Vd.flushSync(()=>{m(te)}))})},[v,t,n,ne,re]);nd(()=>{h===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,m(X=>({...X,isPositioned:!1})))},[h]);const de=j.useRef(!1);nd(()=>(de.current=!0,()=>{de.current=!1}),[]),nd(()=>{if(O&&(B.current=O),I&&(P.current=I),O&&I){if(K.current)return K.current(O,I,fe);fe()}},[O,I,fe,K,F]);const be=j.useMemo(()=>({reference:B,floating:P,setReference:R,setFloating:C}),[R,C]),z=j.useMemo(()=>({reference:O,floating:I}),[O,I]),Y=j.useMemo(()=>{const X={position:n,left:0,top:0};if(!z.floating)return X;const le=J_(z.floating,g.x),te=J_(z.floating,g.y);return d?{...X,transform:"translate("+le+"px, "+te+"px)",...iE(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:le,top:te}},[n,d,z.floating,g.x,g.y]);return j.useMemo(()=>({...g,update:fe,refs:be,elements:z,floatingStyles:Y}),[g,fe,be,z,Y])}const A3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:a}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?X_({element:s.current,padding:a}).fn(n):{}:s?X_({element:s,padding:a}).fn(n):{}}}},C3=(e,t)=>{const n=y3(e);return{name:n.name,fn:n.fn,options:[e,t]}},O3=(e,t)=>{const n=v3(e);return{name:n.name,fn:n.fn,options:[e,t]}},k3=(e,t)=>({fn:S3(e).fn,options:[e,t]}),N3=(e,t)=>{const n=b3(e);return{name:n.name,fn:n.fn,options:[e,t]}},M3=(e,t)=>{const n=w3(e);return{name:n.name,fn:n.fn,options:[e,t]}},P3=(e,t)=>{const n=_3(e);return{name:n.name,fn:n.fn,options:[e,t]}},j3=(e,t)=>{const n=A3(e);return{name:n.name,fn:n.fn,options:[e,t]}};var L3="Arrow",aE=j.forwardRef((e,t)=>{const{children:n,width:s=10,height:a=5,...l}=e;return N.jsx(oi.svg,{...l,ref:t,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:N.jsx("polygon",{points:"0,0 30,0 15,10"})})});aE.displayName=L3;var D3=aE;function I3(e){const[t,n]=j.useState(void 0);return mo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let c,d;if("borderBoxSize"in l){const f=l.borderBoxSize,h=Array.isArray(f)?f[0]:f;c=h.inlineSize,d=h.blockSize}else c=e.offsetWidth,d=e.offsetHeight;n({width:c,height:d})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var kg="Popper",[oE,lE]=FT(kg),[U3,cE]=oE(kg),uE=e=>{const{__scopePopper:t,children:n}=e,[s,a]=j.useState(null);return N.jsx(U3,{scope:t,anchor:s,onAnchorChange:a,children:n})};uE.displayName=kg;var dE="PopperAnchor",fE=j.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...a}=e,l=cE(dE,n),c=j.useRef(null),d=ea(t,c),f=j.useRef(null);return j.useEffect(()=>{const h=f.current;f.current=s?.current||c.current,h!==f.current&&l.onAnchorChange(f.current)}),s?null:N.jsx(oi.div,{...a,ref:d})});fE.displayName=dE;var Ng="PopperContent",[z3,B3]=oE(Ng),hE=j.forwardRef((e,t)=>
vendor: 4,501 bytes, line 55
55{const{__scopePopper:n,side:s="bottom",sideOffset:a=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:_,...E}=e,S=cE(Ng,n),[x,R]=j.useState(null),C=ea(t,Te=>R(Te)),[O,I]=j.useState(null),B=I3(O),P=B?.width??0,M=B?.height??0,F=s+(l!=="center"?"-"+l:""),K=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},ne=Array.isArray(h)?h:[h],re=ne.length>0,fe={padding:K,boundary:ne.filter(q3),altBoundary:re},{refs:de,floatingStyles:be,placement:z,isPositioned:Y,middlewareData:X}=R3({strategy:"fixed",placement:F,whileElementsMounted:(...Te)=>g3(...Te,{animationFrame:b==="always"}),elements:{reference:S.anchor},middleware:[C3({mainAxis:a+M,alignmentAxis:c}),f&&O3({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?k3():void 0,...fe}),f&&N3({...fe}),M3({...fe,apply:({elements:Te,rects:xe,availableWidth:we,availableHeight:Et})=>{const{width:mt,height:ot}=xe.reference,Jt=Te.floating.style;Jt.setProperty("--radix-popper-available-width",`${we}px`),Jt.setProperty("--radix-popper-available-height",`${Et}px`),Jt.setProperty("--radix-popper-anchor-width",`${mt}px`),Jt.setProperty("--radix-popper-anchor-height",`${ot}px`)}}),O&&j3({element:O,padding:d}),V3({arrowWidth:P,arrowHeight:M}),v&&P3({strategy:"referenceHidden",...fe})]}),[le,te]=gE(z),D=Yd(_);mo(()=>{Y&&D?.()},[Y,D]);const Q=X.arrow?.x,Z=X.arrow?.y,ie=X.arrow?.centerOffset!==0,[se,ce]=j.useState();return mo(()=>{x&&ce(window.getComputedStyle(x).zIndex)},[x]),N.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:Y?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:N.jsx(z3,{scope:n,placedSide:le,onArrowChange:I,arrowX:Q,arrowY:Z,shouldHideArrow:ie,children:N.jsx(oi.div,{"data-side":le,"data-align":te,...E,ref:C,style:{...E.style,animation:Y?void 0:"none"}})})})});hE.displayName=Ng;var pE="PopperArrow",$3={top:"bottom",right:"left",bottom:"top",left:"right"},mE=j.forwardRef(function(t,n){const{__scopePopper:s,...a}=t,l=B3(pE,s),c=$3[l.placedSide];return N.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:N.jsx(D3,{...a,ref:n,style:{...a.style,display:"block"}})})});mE.displayName=pE;function q3(e){return e!==null}var V3=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:s,middlewareData:a}=t,c=a.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,g]=gE(n),m={start:"0%",center:"50%",end:"100%"}[g],v=(a.arrow?.x??0)+d/2,b=(a.arrow?.y??0)+f/2;let _="",E="";return h==="bottom"?(_=c?m:`${v}px`,E=`${-f}px`):h==="top"?(_=c?m:`${v}px`,E=`${s.floating.height+f}px`):h==="right"?(_=`${-f}px`,E=c?m:`${b}px`):h==="left"&&(_=`${s.floating.width+f}px`,E=c?m:`${b}px`),{data:{x:_,y:E}}}});function gE(e){const[t,n="center"]=e.split("-");return[t,n]}var AH=uE,H3=fE,F3=hE,G3=mE,K3="Portal",yE=j.forwardRef((e,t)=>{const{container:n,...s}=e,[a,l]=j.useState(!1);mo(()=>l(!0),[]);const c=n||a&&globalThis?.document?.body;return c?iT.createPortal(N.jsx(oi.div,{...s,ref:t}),c):null});yE.displayName=K3;function Y3(e,t){return j.useReducer((n,s)=>t[n][s]??n,e)}var Mg=e=>{const{present:t,children:n}=e,s=Q3(t),a=typeof n=="function"?n({present:s.isPresent}):j.Children.only(n),l=ea(s.ref,W3(a));return typeof n=="function"||s.isPresent?j.cloneElement(a,{ref:l}):null};Mg.displayName="Presence";function Q3(e){const[t,n]=j.useState(),s=j.useRef(null),a=j.useRef(e),l=j.useRef("none"),c=e?"mounted":"unmounted",[d,f]=Y3(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j.useEffect(()=>{const h=Vu(s.current);l.current=d==="mounted"?h:"none"},[d]),mo(()=>{const h=s.current,g=a.current;if(g!==e){const v=l.current,b=Vu(h);e?f("MOUNT"):b==="none"||h?.display==="none"?f("UNMOUNT"):f(g&&v!==b?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),mo(()=>
vendor: 4,753 bytes, line 55
55{if(t){let h;const g=t.ownerDocument.defaultView??window,m=b=>{const E=Vu(s.current).includes(CSS.escape(b.animationName));if(b.target===t&&E&&(f("ANIMATION_END"),!a.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",h=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},v=b=>{b.target===t&&(l.current=Vu(s.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{g.clearTimeout(h),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:j.useCallback(h=>{s.current=h?getComputedStyle(h):null,n(h)},[])}}function Vu(e){return e?.animationName||"none"}function W3(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var X3=Symbol("radix.slottable");function J3(e){const t=({children:n})=>N.jsx(N.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=X3,t}var Z3=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),eU="VisuallyHidden",vE=j.forwardRef((e,t)=>N.jsx(oi.span,{...e,ref:t,style:{...Z3,...e.style}}));vE.displayName=eU;var tU=vE,[Zd]=FT("Tooltip",[lE]),Pg=lE(),bE="TooltipProvider",nU=700,Z_="tooltip.open",[rU,wE]=Zd(bE),_E=e=>{const{__scopeTooltip:t,delayDuration:n=nU,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:l}=e,c=j.useRef(!0),d=j.useRef(!1),f=j.useRef(0);return j.useEffect(()=>{const h=f.current;return()=>window.clearTimeout(h)},[]),N.jsx(rU,{scope:t,isOpenDelayedRef:c,delayDuration:n,onOpen:j.useCallback(()=>{window.clearTimeout(f.current),c.current=!1},[]),onClose:j.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.current=!0,s)},[s]),isPointerInTransitRef:d,onPointerInTransitChange:j.useCallback(h=>{d.current=h},[]),disableHoverableContent:a,children:l})};_E.displayName=bE;var SE="Tooltip",[CH,oc]=Zd(SE),Um="TooltipTrigger",sU=j.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=oc(Um,n),l=wE(Um,n),c=Pg(n),d=j.useRef(null),f=ea(t,d,a.onTriggerChange),h=j.useRef(!1),g=j.useRef(!1),m=j.useCallback(()=>h.current=!1,[]);return j.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),N.jsx(H3,{asChild:!0,...c,children:N.jsx(oi.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:f,onPointerMove:ts(e.onPointerMove,v=>{v.pointerType!=="touch"&&!g.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),g.current=!0)}),onPointerLeave:ts(e.onPointerLeave,()=>{a.onTriggerLeave(),g.current=!1}),onPointerDown:ts(e.onPointerDown,()=>{a.open&&a.onClose(),h.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:ts(e.onFocus,()=>{h.current||a.onOpen()}),onBlur:ts(e.onBlur,a.onClose),onClick:ts(e.onClick,a.onClose)})})});sU.displayName=Um;var jg="TooltipPortal",[iU,aU]=Zd(jg,{forceMount:void 0}),xE=e=>{const{__scopeTooltip:t,forceMount:n,children:s,container:a}=e,l=oc(jg,t);return N.jsx(iU,{scope:t,forceMount:n,children:N.jsx(Mg,{present:n||l.open,children:N.jsx(yE,{asChild:!0,container:a,children:s})})})};xE.displayName=jg;var yo="TooltipContent",TE=j.forwardRef((e,t)=>{const n=aU(yo,e.__scopeTooltip),{forceMount:s=n.forceMount,side:a="top",...l}=e,c=oc(yo,e.__scopeTooltip);return N.jsx(Mg,{present:s||c.open,children:c.disableHoverableContent?N.jsx(EE,{side:a,...l,ref:t}):N.jsx(oU,{side:a,...l,ref:t})})}),oU=j.forwardRef((e,t)=>{const n=oc(yo,e.__scopeTooltip),s=wE(yo,e.__scopeTooltip),a=j.useRef(null),l=ea(t,a),[c,d]=j.useState(null),{trigger:f,onClose:h}=n,g=a.current,{onPointerInTransitChange:m}=s,v=j.useCallback(()=>{d(null),m(!1)},[m]),b=j.useCallback((_,E)=>{const S=_.currentTarget,x={x:_.clientX,y:_.clientY},R=fU(x,S.getBoundingClientRect()),C=hU(x,R),O=pU(E.getBoundingClientRect()),I=gU([...C,...O]);d(I),m(!0)},[m]);return j.useEffect(()=>()=>v(),[v]),j.useEffect(()=>{if(f&&g){const _=S=>b(S,g),E=S=>b(S,f);return f.addEventListener("pointerleave",_),g.addEventListener("pointerleave",E),()=>{f.removeEventListener("pointerleave",_),g.removeEventListener("pointerleave",E)}}},[f,g,b,v]),j.useEffect(()=>{if(c){const _=E=>{const S=E.target,x={x:E.clientX,y:E.clientY},R=f?.contains(S)||g?.contains(S),C=!mU(x,c);R?v():C&&(v(),h())};return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}
vendor: 1,779 bytes, line 55
55},[f,g,c,h,v]),N.jsx(EE,{...e,ref:l})}),[lU,cU]=Zd(SE,{isInside:!1}),uU=J3("TooltipContent"),EE=j.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:c,...d}=e,f=oc(yo,n),h=Pg(n),{onClose:g}=f;return j.useEffect(()=>(document.addEventListener(Z_,g),()=>document.removeEventListener(Z_,g)),[g]),j.useEffect(()=>{if(f.trigger){const m=v=>{v.target?.contains(f.trigger)&&g()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[f.trigger,g]),N.jsx(KT,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:m=>m.preventDefault(),onDismiss:g,children:N.jsxs(F3,{"data-state":f.stateAttribute,...h,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[N.jsx(uU,{children:s}),N.jsx(lU,{scope:n,isInside:!0,children:N.jsx(tU,{id:f.contentId,role:"tooltip",children:a||s})})]})})});TE.displayName=yo;var RE="TooltipArrow",dU=j.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=Pg(n);return cU(RE,n).isInside?null:N.jsx(G3,{...a,...s,ref:t})});dU.displayName=RE;function fU(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,s,a,l)){case l:return"left";case a:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function hU(e,t,n=5){const s=[];
vendor: 4,442 bytes, line 55
55switch(t){case"top":s.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":s.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":s.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":s.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return s}function pU(e){const{top:t,right:n,bottom:s,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:s},{x:a,y:s}]}function mU(e,t){const{x:n,y:s}=e;let a=!1;for(let l=0,c=t.length-1;l<t.length;c=l++){const d=t[l],f=t[c],h=d.x,g=d.y,m=f.x,v=f.y;g>s!=v>s&&n<(m-h)*(s-g)/(v-g)+h&&(a=!a)}return a}function gU(e){const t=e.slice();return t.sort((n,s)=>n.x<s.x?-1:n.x>s.x?1:n.y<s.y?-1:n.y>s.y?1:0),yU(t)}function yU(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const a=e[s];for(;t.length>=2;){const l=t[t.length-1],c=t[t.length-2];if((l.x-c.x)*(a.y-c.y)>=(l.y-c.y)*(a.x-c.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let s=e.length-1;s>=0;s--){const a=e[s];for(;n.length>=2;){const l=n[n.length-1],c=n[n.length-2];if((l.x-c.x)*(a.y-c.y)>=(l.y-c.y)*(a.x-c.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var vU=_E,bU=xE,AE=TE;function CE(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=CE(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function OE(){for(var e,t,n=0,s="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=CE(e))&&(s&&(s+=" "),s+=t);return s}const wU=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},_U=(e,t)=>({classGroupId:e,validator:t}),kE=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Td="-",eS=[],SU="arbitrary..",xU=e=>{const t=EU(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return TU(c);const d=c.split(Td),f=d[0]===""&&d.length>1?1:0;return NE(d,f,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const f=s[c],h=n[c];return f?h?wU(h,f):f:h||eS}return n[c]||eS}}},NE=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],l=n.nextPart.get(a);if(l){const h=NE(e,t+1,l);if(h)return h}const c=n.validators;if(c===null)return;const d=t===0?e.join(Td):e.slice(t).join(Td),f=c.length;for(let h=0;h<f;h++){const g=c[h];if(g.validator(d))return g.classGroupId}},TU=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?SU+s:void 0})(),EU=e=>{const{theme:t,classGroups:n}=e;return RU(n,t)},RU=(e,t)=>{const n=kE();for(const s in e){const a=e[s];Lg(a,n,s,t)}return n},Lg=(e,t,n,s)=>{const a=e.length;for(let l=0;l<a;l++){const c=e[l];AU(c,t,n,s)}},AU=(e,t,n,s)=>{if(typeof e=="string"){CU(e,t,n);return}if(typeof e=="function"){OU(e,t,n,s);return}kU(e,t,n,s)},CU=(e,t,n)=>{const s=e===""?t:ME(t,e);s.classGroupId=n},OU=(e,t,n,s)=>{if(NU(e)){Lg(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(_U(n,e))},kU=(e,t,n,s)=>{const a=Object.entries(e),l=a.length;for(let c=0;c<l;c++){const[d,f]=a[c];Lg(f,ME(t,d),n,s)}},ME=(e,t)=>{let n=e;const s=t.split(Td),a=s.length;for(let l=0;l<a;l++){const c=s[l];let d=n.nextPart.get(c);d||(d=kE(),n.nextPart.set(c,d)),n=d}return n},NU=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,MU=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const a=(l,c)=>{n[l]=c,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(l){let c=n[l];if(c!==void 0)return c;if((c=s[l])!==void 0)return a(l,c),c},set(l,c){l in n?n[l]=c:a(l,c)}}},zm="!",tS=":",PU=[],nS=(e,t,n,s,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:a}),jU=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=a=>{const l=[];let c=0,d=0,f=0,h;const g=a.length;for(let E=0;E<g;E++){const S=a[E];if(c===0&&d===0){if(S===tS){l.push(a.slice(f,E)),f=E+1;continue}if(S==="/"){h=E;continue}}S==="["?c++:S==="]"?c--:S==="("?d++:S===")"&&d--}const m=l.length===0?a:a.slice(f);let v=m,b=!1;m.endsWith(zm)?(v=m.slice(0,-1),b=!0):m.startsWith(zm)&&(v=m.slice(1),b=!0);const _=h&&h>f?h-f:void 0;return nS(l,b,v,_)};if(t){const a=t+tS,l=s;s=c=>c.startsWith(a)?l(c.slice(a.length)):nS(PU,!1,c,void 0,!0)}if(n){const a=s;s=l=>n({className:l,parseClassName:a})}return s},LU=e=>{const t=new Map;
vendor: 2,240 bytes, line 55
55return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let a=[];for(let l=0;l<n.length;l++){const c=n[l],d=c[0]==="[",f=t.has(c);d||f?(a.length>0&&(a.sort(),s.push(...a),a=[]),s.push(c)):a.push(c)}return a.length>0&&(a.sort(),s.push(...a)),s}},DU=e=>({cache:MU(e.cacheSize),parseClassName:jU(e),sortModifiers:LU(e),...xU(e)}),IU=/\s+/,UU=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:a,sortModifiers:l}=t,c=[],d=e.trim().split(IU);let f="";for(let h=d.length-1;h>=0;h-=1){const g=d[h],{isExternal:m,modifiers:v,hasImportantModifier:b,baseClassName:_,maybePostfixModifierPosition:E}=n(g);if(m){f=g+(f.length>0?" "+f:f);continue}let S=!!E,x=s(S?_.substring(0,E):_);if(!x){if(!S){f=g+(f.length>0?" "+f:f);continue}if(x=s(_),!x){f=g+(f.length>0?" "+f:f);continue}S=!1}const R=v.length===0?"":v.length===1?v[0]:l(v).join(":"),C=b?R+zm:R,O=C+x;if(c.indexOf(O)>-1)continue;c.push(O);const I=a(x,S);for(let B=0;B<I.length;++B){const P=I[B];c.push(C+P)}f=g+(f.length>0?" "+f:f)}return f},zU=(...e)=>{let t=0,n,s,a="";for(;t<e.length;)(n=e[t++])&&(s=PE(n))&&(a&&(a+=" "),a+=s);return a},PE=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=PE(e[s]))&&(n&&(n+=" "),n+=t);return n},BU=(e,...t)=>{let n,s,a,l;const c=f=>{const h=t.reduce((g,m)=>m(g),e());return n=DU(h),s=n.cache.get,a=n.cache.set,l=d,d(f)},d=f=>{const h=s(f);if(h)return h;const g=UU(f,n);return a(f,g),g};return l=c,(...f)=>l(zU(...f))},$U=[],Ct=e=>{const t=n=>n[e]||$U;return t.isThemeGetter=!0,t},jE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,LE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qU=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,VU=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HU=/\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$/,FU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,GU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,KU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bs=e=>qU.test(e),Pe=e=>!!e&&!Number.isNaN(Number(e)),$s=e=>!!e&&Number.isInteger(Number(e)),Hp=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),Xr=e=>VU.test(e),DE=()=>!0,YU=e=>HU.test(e)&&!FU.test(e),Dg=()=>!1,QU=e=>
vendor: 4,569 bytes, line 55
55GU.test(e),WU=e=>KU.test(e),XU=e=>!pe(e)&&!ge(e),JU=e=>li(e,zE,Dg),pe=e=>jE.test(e),Li=e=>li(e,BE,YU),rS=e=>li(e,az,Pe),ZU=e=>li(e,qE,DE),ez=e=>li(e,$E,Dg),sS=e=>li(e,IE,Dg),tz=e=>li(e,UE,WU),Hu=e=>li(e,VE,QU),ge=e=>LE.test(e),Al=e=>ta(e,BE),nz=e=>ta(e,$E),iS=e=>ta(e,IE),rz=e=>ta(e,zE),sz=e=>ta(e,UE),Fu=e=>ta(e,VE,!0),iz=e=>ta(e,qE,!0),li=(e,t,n)=>{const s=jE.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},ta=(e,t,n=!1)=>{const s=LE.exec(e);return s?s[1]?t(s[1]):n:!1},IE=e=>e==="position"||e==="percentage",UE=e=>e==="image"||e==="url",zE=e=>e==="length"||e==="size"||e==="bg-size",BE=e=>e==="length",az=e=>e==="number",$E=e=>e==="family-name",qE=e=>e==="number"||e==="weight",VE=e=>e==="shadow",oz=()=>{const e=Ct("color"),t=Ct("font"),n=Ct("text"),s=Ct("font-weight"),a=Ct("tracking"),l=Ct("leading"),c=Ct("breakpoint"),d=Ct("container"),f=Ct("spacing"),h=Ct("radius"),g=Ct("shadow"),m=Ct("inset-shadow"),v=Ct("text-shadow"),b=Ct("drop-shadow"),_=Ct("blur"),E=Ct("perspective"),S=Ct("aspect"),x=Ct("ease"),R=Ct("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...O(),ge,pe],B=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],M=()=>[ge,pe,f],F=()=>[Bs,"full","auto",...M()],K=()=>[$s,"none","subgrid",ge,pe],ne=()=>["auto",{span:["full",$s,ge,pe]},$s,ge,pe],re=()=>[$s,"auto",ge,pe],fe=()=>["auto","min","max","fr",ge,pe],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],be=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...M()],Y=()=>[Bs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],X=()=>[Bs,"screen","full","dvw","lvw","svw","min","max","fit",...M()],le=()=>[Bs,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],te=()=>[e,ge,pe],D=()=>[...O(),iS,sS,{position:[ge,pe]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",rz,JU,{size:[ge,pe]}],ie=()=>[Hp,Al,Li],se=()=>["","none","full",h,ge,pe],ce=()=>["",Pe,Al,Li],Te=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[Pe,Hp,iS,sS],Et=()=>["","none",_,ge,pe],mt=()=>["none",Pe,ge,pe],ot=()=>["none",Pe,ge,pe],Jt=()=>[Pe,ge,pe],Rt=()=>[Bs,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xr],breakpoint:[Xr],color:[DE],container:[Xr],"drop-shadow":[Xr],ease:["in","out","in-out"],font:[XU],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xr],shadow:[Xr],spacing:["px",Pe],text:[Xr],"text-shadow":[Xr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Bs,pe,ge,S]}],container:["container"],columns:[{columns:[Pe,pe,ge,d]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:I()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}
vendor: 4,767 bytes, line 55
55],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[$s,"auto",ge,pe]}],basis:[{basis:[Bs,"full","auto",d,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,Bs,"auto","initial","none",pe]}],grow:[{grow:["",Pe,ge,pe]}],shrink:[{shrink:["",Pe,ge,pe]}],order:[{order:[$s,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...be(),"normal"]}],"justify-self":[{"justify-self":["auto",...be()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...be(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...be(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...be(),"baseline"]}],"place-self":[{"place-self":["auto",...be()]}],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:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"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",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],w:[{w:[d,"screen",...Y()]}],"min-w":[{"min-w":[d,"screen","none",...Y()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...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,Al,Li]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,iz,ZU]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Hp,pe]}],"font-family":[{font:[nz,ez,t]}],"font-features":[{"font-features":[pe]}],"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:[a,ge,pe]}],"line-clamp":[{"line-clamp":[Pe,"none",ge,rS]}],leading:[{leading:[l,...M()]}],"list-image":[{"list-image":["none",ge,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:te()}],"text-color":[{text:te()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",ge,Li]}],"text-decoration-color":[{decoration:te()}],"underline-offset":[{"underline-offset":[Pe,"auto",ge,pe]}],"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",ge,pe]}],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",ge,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$s,ge,pe],radial:["",ge,pe],conic:[$s,ge,pe]},sz,tz]}],"bg-color":[{bg:te()}],"gradient-from-pos":[{from:ie()}
55],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:te()}],"gradient-via":[{via:te()}],"gradient-to":[{to:te()}],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:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-bs":[{"border-bs":ce()}],"border-w-be":[{"border-be":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Te(),"hidden","none"]}],"divide-style":[{divide:[...Te(),"hidden","none"]}],"border-color":[{border:te()}],"border-color-x":[{"border-x":te()}],"border-color-y":[{"border-y":te()}],"border-color-s":[{"border-s":te()}],"border-color-e":[{"border-e":te()}],"border-color-bs":[{"border-bs":te()}],"border-color-be":[{"border-be":te()}],"border-color-t":[{"border-t":te()}],"border-color-r":[{"border-r":te()}],"border-color-b":[{"border-b":te()}],"border-color-l":[{"border-l":te()}
vendor: 5,755 bytes, line 55
55],"divide-color":[{divide:te()}],"outline-style":[{outline:[...Te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,ge,pe]}],"outline-w":[{outline:["",Pe,Al,Li]}],"outline-color":[{outline:te()}],shadow:[{shadow:["","none",g,Fu,Hu]}],"shadow-color":[{shadow:te()}],"inset-shadow":[{"inset-shadow":["none",m,Fu,Hu]}],"inset-shadow-color":[{"inset-shadow":te()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:te()}],"ring-offset-w":[{"ring-offset":[Pe,Li]}],"ring-offset-color":[{"ring-offset":te()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":te()}],"text-shadow":[{"text-shadow":["none",v,Fu,Hu]}],"text-shadow-color":[{"text-shadow":te()}],opacity:[{opacity:[Pe,ge,pe]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"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":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":te()}],"mask-image-linear-to-color":[{"mask-linear-to":te()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":te()}],"mask-image-t-to-color":[{"mask-t-to":te()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":te()}],"mask-image-r-to-color":[{"mask-r-to":te()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":te()}],"mask-image-b-to-color":[{"mask-b-to":te()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":te()}],"mask-image-l-to-color":[{"mask-l-to":te()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":te()}],"mask-image-x-to-color":[{"mask-x-to":te()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":te()}],"mask-image-y-to-color":[{"mask-y-to":te()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":te()}],"mask-image-radial-to-color":[{"mask-radial-to":te()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":te()}],"mask-image-conic-to-color":[{"mask-conic-to":te()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:Et()}],brightness:[{brightness:[Pe,ge,pe]}],contrast:[{contrast:[Pe,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",b,Fu,Hu]}],"drop-shadow-color":[{"drop-shadow":te()}],grayscale:[{grayscale:["",Pe,ge,pe]}],"hue-rotate":[{"hue-rotate":[Pe,ge,pe]}],invert:[{invert:["",Pe,ge,pe]}],saturate:[{saturate:[Pe,ge,pe]}],sepia:[{sepia:["",Pe,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":Et()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",Pe,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,ge,pe]}],"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",ge,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",ge,pe]}],ease:[{ease:["linear","initial",x,ge,pe]}],delay:[{delay:[Pe,ge,pe]}],animate:[{animate:["none",R,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ge,pe]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:mt()}],"rotate-x":[{"rotate-x":mt()}],"rotate-y":[{"rotate-y":mt()}],"rotate-z":[{"rotate-z":mt()}],scale:[{scale:ot()}],"scale-x":[{"scale-x":ot()}],"scale-y":[{"scale-y":ot()}],"scale-z":[{"scale-z":ot()}],"scale-3d":["scale-3d"],skew:[{skew:Jt()}],"skew-x":[{"skew-x":Jt()}],"skew-y":[{"skew-y":Jt()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Rt()}],"translate-x":[{"translate-x":Rt()}],"translate-y":[{"translate-y":Rt()}],"translate-z":[{"translate-z":Rt()}],"translate-none":["translate-none"],accent:[{accent:te()}],appearance:[{appearance:["none","auto"]}
vendor: 5,241 bytes, line 55
55],"caret-color":[{caret:te()}],"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",ge,pe]}],"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",ge,pe]}],fill:[{fill:["none",...te()]}],"stroke-w":[{stroke:[Pe,Al,Li,rS]}],stroke:[{stroke:["none",...te()]}],"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"]}},lz=BU(oz);function HE(...e){return lz(OE(e))}const cz=vU,uz=j.forwardRef(({className:e,sideOffset:t=4,...n},s)=>N.jsx(bU,{children:N.jsx(AE,{ref:s,sideOffset:t,className:HE("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
55de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)",e),...n})}));uz.displayName=AE.displayName;const dz="https://api.whatsapp.com/send?phone=5521997794585&text=Ol%C3%A1%2C%20gostaria%20de%20saber%20mais%20sobre%20os%20servi%C3%A7os%20da%20Nower",OH=e=>{if(typeof document>"u")return;const t=document.querySelector(".rdstation-popup-js-floating-button");t&&(e.preventDefault(),t.click())},fz=".rdstation-popup-js-floating-button",hz=12e3,pz=()=>{const[e,t]=j.useState(!1);return j.useEffect(()=>{if(typeof document>"u")return;let n=!1,s=null;const a=()=>!!document.querySelector(fz),l=()=>{s=new MutationObserver(()=>{a()&&(t(!1),s?.disconnect(),s=null)}),s.observe(document.body,{childList:!0,subtree:!0})};if(a())return;const c=setTimeout(()=>{n||a()||(t(!0),l())},hz);return()=>{n=!0,clearTimeout(c),s?.disconnect()}},[]),e?N.jsx("a",{href:dz,target:"_blank",rel:"noopener noreferrer","aria-label":"Falar no WhatsApp",className:"fixed bottom-5 right-5 z-50 inline-flex h-14 w-14 items-center justify-center rounded-full bg-[#25D366] text-white shadow-[0_8px_24px_-6px_rgba(0,0,0,0.4)] transition-transform hover:scale-110 focus:outline-none focus:ring-2 focus:ring-[#25D366] focus:ring-offset-2",children:N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:"h-7 w-7",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{d:"M19.11 17.205c-.372 0-1.088 1.39-1.518 1.39a.63.63 0 0 1-.315-.1c-.802-.402-1.504-.817-2.163-1.447-.545-.516-1.146-1.29-1.46-1.963a.426.426 0 0 1-.073-.215c0-.33.99-.945.99-1.49 0-.143-.73-2.09-.832-2.335-.143-.372-.214-.487-.6-.487-.187 0-.36-.043-.53-.043-.302 0-.53.115-.746.315-.688.645-1.032 1.318-1.06 2.264v.114c-.015.99.472 1.977 1.017 2.78 1.23 1.82 2.506 3.41 4.554 4.34.616.287 2.035.888 2.722.888.817 0 2.15-.515 2.478-1.318.13-.33.244-.688.244-1.045 0-.058 0-.144-.03-.215-.1-.172-2.434-1.39-2.678-1.433zm-2.908 7.593c-1.747 0-3.48-.53-4.942-1.49L7.793 24.41l1.132-3.337a8.955 8.955 0 0 1-1.72-5.272c0-4.955 4.04-8.995 8.997-8.995S25.2 10.845 25.2 15.8c0 4.958-4.04 8.998-8.998 8.998zm0-19.798c-5.96 0-10.8 4.842-10.8 10.8 0 1.964.532 3.898 1.55 5.574L5 27.176l5.974-1.92a10.807 10.807 0 0 0 16.03-9.455c0-5.958-4.844-10.8-10.802-10.8z"})})}):null},aS="nower-cookie-consent",mz=()=>{const[e,t]=j.useState(!1);j.useEffect(()=>{try{window.localStorage.getItem(aS)||t(!0)}catch{}},[]);const n=s=>{try{window.localStorage.setItem(aS,s)}catch{}s==="accepted"&&window.__nowerLoadAnalytics?.(),t(!1)};return e?N.jsx("div",{role:"dialog","aria-label":"Aviso de cookies",className:"fixed bottom-0 left-0 right-0 z-[90] border-t border-white/10 bg-nower-dark/95 backdrop-blur px-4 py-4 text-white",children:N.jsxs("div",{className:"container flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[N.jsxs("p",{className:"text-sm text-white/80 max-w-2xl",children:["Usamos cookies para medir o uso do site e melhorar sua experiência. Você pode aceitar ou recusar a medição. Saiba mais na"," ",N.jsx(Qt,{to:"/politica-de-privacidade",className:"underline hover:text-primary",children:"política de privacidade"}),"."]}),N.jsxs("div",{className:"flex shrink-0 gap-2",children:[N.jsx("button",{type:"button",onClick:()=>n("rejected"),className:"rounded-md border border-white/30 px-4 py-2 text-sm font-medium text-white hover:bg-white/10",children:"Recusar"}),N.jsx("button",{type:"button",onClick:()=>n("accepted"),className:"rounded-md bg-primary px-4 py-2 text-sm font-bold text-primary-foreground hover:bg-primary/90",children:"Aceitar"})]})]})}):null};function gz(e,t){e.indexOf(t)===-1&&e.push(t)}function yz(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ni=(e,t,n)=>n>t?t:n<e?e:n;let Ig=()=>{};const ri={},FE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),vz=e=>typeof e=="object"&&e!==null,GE=e=>/^0[^.\s]+$/u.test(e);function KE(e){let t;return()=>(t===void 0&&(t=e()),t)}const xo=e=>e,ef=(...e)=>e.reduce((t,n)=>s=>n(t(s))),YE=(e,t,n)=>{const s=t-e;return s?(n-e)/s:1};class QE{constructor(){this.subscriptions=[]}add(t){return gz(this.subscriptions,t),()=>yz(this.subscriptions,t)}notify(t,n,s){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,s);else for(let l=0;l<a;l++){const c=this.subscriptions[l];c&&c(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ar=e=>e*1e3,ir=e=>e/1e3,WE=(e,t)=>t?e*(1e3/t):0,XE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,bz=1e-7,wz=12;function _z(e,t,n,s,a){let l,c,d=0;do c=t+(n-t)/2,l=XE(c,s,a)-e,l>0?n=c:t=c;while(Math.abs(l)>bz&&++d<wz);return c}function lc(e,t,n,s){if(e===t&&n===s)return xo;const a=l=>_z(l,0,1,e,n);return l=>l===0||l===1?l:XE(a(l),t,s)}const JE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ZE=e=>t=>1-e(1-t),eR=lc(.33,1.53,.69,.99),Ug=ZE(eR),tR=JE(Ug),nR=e=>e>=1?1:(e*=2)<1?.5*Ug(e):.5*(2-Math.pow(2,-10*(e-1))),zg=e=>1-Math.sin(Math.acos(e)),Sz=ZE(zg),rR=JE(zg),xz=lc(.42,0,1,1),Tz=lc(0,0,.58,1),sR=lc(.42,0,.58,1),Ez=e=>Array.isArray(e)&&typeof e[0]!="number",iR=e=>Array.isArray(e)&&typeof e[0]=="number",Rz={linear:xo,easeIn:xz,easeInOut:sR,easeOut:Tz,circIn:zg,circInOut:rR,circOut:Sz,backIn:Ug,backInOut:tR,backOut:eR,anticipate:nR},Az=e=>typeof e=="string",oS=e=>{if(iR(e)){Ig(e.length===4);const[t,n,s,a]=e;return lc(t,n,s,a)}else if(Az(e))return Rz[e];return e},Gu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Cz(e,t){let n=new Set,s=new Set,a=!1,l=!1;const c=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};
vendor: 51,457 bytes, line 55
55function f(g){c.has(g)&&(h.schedule(g),e()),g(d)}const h={schedule:(g,m=!1,v=!1)=>{const _=v&&a?n:s;return m&&c.add(g),_.add(g),g},cancel:g=>{s.delete(g),c.delete(g)},process:g=>{if(d=g,a){l=!0;return}a=!0;const m=n;n=s,s=m,n.forEach(f),n.clear(),a=!1,l&&(l=!1,h.process(g))}};return h}const Oz=40;function aR(e,t){let n=!1,s=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,c=Gu.reduce((C,O)=>(C[O]=Cz(l),C),{}),{setup:d,read:f,resolveKeyframes:h,preUpdate:g,update:m,preRender:v,render:b,postRender:_}=c,E=()=>{const C=ri.useManualTiming,O=C?a.timestamp:performance.now();n=!1,C||(a.delta=s?1e3/60:Math.max(Math.min(O-a.timestamp,Oz),1)),a.timestamp=O,a.isProcessing=!0,d.process(a),f.process(a),h.process(a),g.process(a),m.process(a),v.process(a),b.process(a),_.process(a),a.isProcessing=!1,n&&t&&(s=!1,e(E))},S=()=>{n=!0,s=!0,a.isProcessing||e(E)};return{schedule:Gu.reduce((C,O)=>{const I=c[O];return C[O]=(B,P=!1,M=!1)=>(n||S(),I.schedule(B,P,M)),C},{}),cancel:C=>{for(let O=0;O<Gu.length;O++)c[Gu[O]].cancel(C)},state:a,steps:c}}const{schedule:Qn,cancel:Bm,state:Ed}=aR(typeof requestAnimationFrame<"u"?requestAnimationFrame:xo,!0);let rd;function kz(){rd=void 0}const Pn={now:()=>(rd===void 0&&Pn.set(Ed.isProcessing||ri.useManualTiming?Ed.timestamp:performance.now()),rd),set:e=>{rd=e,queueMicrotask(kz)}},oR=e=>t=>typeof t=="string"&&t.startsWith(e),lR=oR("--"),Nz=oR("var(--"),Bg=e=>Nz(e)?Mz.test(e.split("/*")[0].trim()):!1,Mz=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function lS(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const To={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ec={...To,transform:e=>ni(0,1,e)},Ku={...To,default:1},Dl=e=>Math.round(e*1e5)/1e5,$g=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Pz(e){return e==null}const jz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,qg=(e,t)=>n=>!!(typeof n=="string"&&jz.test(n)&&n.startsWith(e)||t&&!Pz(n)&&Object.prototype.hasOwnProperty.call(n,t)),cR=(e,t,n)=>s=>{if(typeof s!="string")return s;const[a,l,c,d]=s.match($g);return{[e]:parseFloat(a),[t]:parseFloat(l),[n]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},Lz=e=>ni(0,255,e),Fp={...To,transform:e=>Math.round(Lz(e))},Vi={test:qg("rgb","red"),parse:cR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Fp.transform(e)+", "+Fp.transform(t)+", "+Fp.transform(n)+", "+Dl(ec.transform(s))+")"};function Dz(e){let t="",n="",s="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,s+=s,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}}const $m={test:qg("#"),parse:Dz,transform:Vi.transform},cc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jr=cc("deg"),po=cc("%"),ye=cc("px"),Iz=cc("vh"),Uz=cc("vw"),cS={...po,parse:e=>po.parse(e)/100,transform:e=>po.transform(e*100)},ao={test:qg("hsl","hue"),parse:cR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+po.transform(Dl(t))+", "+po.transform(Dl(n))+", "+Dl(ec.transform(s))+")"},Tt={test:e=>Vi.test(e)||$m.test(e)||ao.test(e),parse:e=>Vi.test(e)?Vi.parse(e):ao.test(e)?ao.parse(e):$m.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Vi.transform(e):ao.transform(e),getAnimatableNone:e=>{const t=Tt.parse(e);return t.alpha=0,Tt.transform(t)}},zz=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bz(e){return isNaN(e)&&typeof e=="string"&&(e.match($g)?.length||0)+(e.match(zz)?.length||0)>0}const uR="number",dR="color",$z="var",qz="var(",uS="${}",Vz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function vo(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},a=[];let l=0;const d=t.replace(Vz,f=>(Tt.test(f)?(s.color.push(l),a.push(dR),n.push(Tt.parse(f))):f.startsWith(qz)?(s.var.push(l),a.push($z),n.push(f)):(s.number.push(l),a.push(uR),n.push(parseFloat(f))),++l,uS)).split(uS);return{values:n,split:d,indexes:s,types:a}}function Hz(e){return vo(e).values}function fR({split:e,types:t}){const n=e.length;return s=>{let a="";for(let l=0;l<n;l++)if(a+=e[l],s[l]!==void 0){const c=t[l];c===uR?a+=Dl(s[l]):c===dR?a+=Tt.transform(s[l]):a+=s[l]}return a}}function Fz(e){return fR(vo(e))}const Gz=e=>typeof e=="number"?0:Tt.test(e)?Tt.getAnimatableNone(e):e,Kz=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Gz(e);function Yz(e){const t=vo(e);return fR(t)(t.values.map((s,a)=>Kz(s,t.split[a])))}const or={test:Bz,parse:Hz,createTransformer:Fz,getAnimatableNone:Yz};function Gp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Qz({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let a=0,l=0,c=0;if(!t)a=l=c=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;a=Gp(f,d,e+1/3),l=Gp(f,d,e),c=Gp(f,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:s}}function Rd(e,t){return n=>n>0?t:e}const uc=(e,t,n)=>e+(t-e)*n,Kp=(e,t,n)=>{const s=e*e,a=n*(t*t-s)+s;return a<0?0:Math.sqrt(a)},Wz=[$m,Vi,ao],Xz=e=>Wz.find(t=>t.test(e));function dS(e){const t=Xz(e);if(!t)return!1;let n=t.parse(e);return t===ao&&(n=Qz(n)),n}const fS=(e,t)=>{const n=dS(e),s=dS(t);if(!n||!s)return Rd(e,t);const a={...n};return l=>(a.red=Kp(n.red,s.red,l),a.green=Kp(n.green,s.green,l),a.blue=Kp(n.blue,s.blue,l),a.alpha=uc(n.alpha,s.alpha,l),Vi.transform(a))},qm=new Set(["none","hidden"]);function Jz(e,t){return qm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Zz(e,t){return n=>uc(e,t,n)}function Vg(e){return typeof e=="number"?Zz:typeof e=="string"?Bg(e)?Rd:Tt.test(e)?fS:nB:Array.isArray(e)?hR:typeof e=="object"?Tt.test(e)?fS:eB:Rd}function hR(e,t){const n=[...e],s=n.length,a=e.map((l,c)=>Vg(l)(l,t[c]));return l=>{for(let c=0;c<s;c++)n[c]=a[c](l);return n}}function eB(e,t){const n={...e,...t},s={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(s[a]=Vg(e[a])(e[a],t[a]));return a=>{for(const l in s)n[l]=s[l](a);return n}}function tB(e,t){const n=[],s={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],c=e.indexes[l][s[l]],d=e.values[c]??0;n[a]=d,s[l]++}return n}const nB=(e,t)=>{const n=or.createTransformer(t),s=vo(e),a=vo(t);return s.indexes.var.length===a.indexes.var.length&&s.indexes.color.length===a.indexes.color.length&&s.indexes.number.length>=a.indexes.number.length?qm.has(e)&&!a.values.length||qm.has(t)&&!s.values.length?Jz(e,t):ef(hR(tB(s,a),a.values),n):Rd(e,t)};function pR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?uc(e,t,n):Vg(e)(e,t)}const rB=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Qn.update(t,n),stop:()=>Bm(t),now:()=>Ed.isProcessing?Ed.timestamp:Pn.now()}},mR=(e,t,n=10)=>{let s="";const a=Math.max(Math.round(t/n),2);for(let l=0;l<a;l++)s+=Math.round(e(l/(a-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Ad=2e4;function Hg(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Ad;)t+=n,s=e.next(t);return t>=Ad?1/0:t}function sB(e,t=100,n){const s=n({...e,keyframes:[0,t]}),a=Math.min(Hg(s),Ad);return{type:"keyframes",ease:l=>s.next(a*l).value/t,duration:ir(a)}}const ft={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Vm(e,t){return e*Math.sqrt(1-t*t)}const iB=12;function aB(e,t,n){let s=n;for(let a=1;a<iB;a++)s=s-e(s)/t(s);return s}const Yp=.001;function oB({duration:e=ft.duration,bounce:t=ft.bounce,velocity:n=ft.velocity,mass:s=ft.mass}){let a,l,c=1-t;c=ni(ft.minDamping,ft.maxDamping,c),e=ni(ft.minDuration,ft.maxDuration,ir(e)),c<1?(a=h=>{const g=h*c,m=g*e,v=g-n,b=Vm(h,c),_=Math.exp(-m);return Yp-v/b*_},l=h=>{const m=h*c*e,v=m*n+n,b=Math.pow(c,2)*Math.pow(h,2)*e,_=Math.exp(-m),E=Vm(Math.pow(h,2),c);return(-a(h)+Yp>0?-1:1)*((v-b)*_)/E}):(a=h=>{const g=Math.exp(-h*e),m=(h-n)*e+1;return-Yp+g*m},l=h=>{const g=Math.exp(-h*e),m=(n-h)*(e*e);return g*m});const d=5/e,f=aB(a,l,d);if(e=ar(e),isNaN(f))return{stiffness:ft.stiffness,damping:ft.damping,duration:e};{const h=Math.pow(f,2)*s;return{stiffness:h,damping:c*2*Math.sqrt(s*h),duration:e}}}const lB=["duration","bounce"],cB=["stiffness","damping","mass"];function hS(e,t){return t.some(n=>e[n]!==void 0)}function uB(e){let t={velocity:ft.velocity,stiffness:ft.stiffness,damping:ft.damping,mass:ft.mass,isResolvedFromDuration:!1,...e};if(!hS(e,cB)&&hS(e,lB))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),a=s*s,l=2*ni(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:ft.mass,stiffness:a,damping:l}}else{const n=oB({...e,velocity:0});t={...t,...n,mass:ft.mass},t.isResolvedFromDuration=!0}return t}function Cd(e=ft.visualDuration,t=ft.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:a}=n;const l=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:f,damping:h,mass:g,duration:m,velocity:v,isResolvedFromDuration:b}=uB({...n,velocity:-ir(n.velocity||0)}),_=v||0,E=h/(2*Math.sqrt(f*g)),S=c-l,x=ir(Math.sqrt(f/g)),R=Math.abs(S)<5;s||(s=R?ft.restSpeed.granular:ft.restSpeed.default),a||(a=R?ft.restDelta.granular:ft.restDelta.default);let C,O,I,B,P,M;if(E<1)I=Vm(x,E),B=(_+E*x*S)/I,C=K=>{const ne=Math.exp(-E*x*K);return c-ne*(B*Math.sin(I*K)+S*Math.cos(I*K))},P=E*x*B+S*I,M=E*x*S-B*I,O=K=>Math.exp(-E*x*K)*(P*Math.sin(I*K)+M*Math.cos(I*K));else if(E===1){C=ne=>c-Math.exp(-x*ne)*(S+(_+x*S)*ne);const K=_+x*S;O=ne=>Math.exp(-x*ne)*(x*K*ne-_)}else{const K=x*Math.sqrt(E*E-1);C=de=>{const be=Math.exp(-E*x*de),z=Math.min(K*de,300);return c-be*((_+E*x*S)*Math.sinh(z)+K*S*Math.cosh(z))/K};const ne=(_+E*x*S)/K,re=E*x*ne-S*K,fe=E*x*S-ne*K;O=de=>{const be=Math.exp(-E*x*de),z=Math.min(K*de,300);return be*(re*Math.sinh(z)+fe*Math.cosh(z))}}const F={calculatedDuration:b&&m||null,velocity:K=>ar(O(K)),next:K=>{if(!b&&E<1){const re=Math.exp(-E*x*K),fe=Math.sin(I*K),de=Math.cos(I*K),be=c-re*(B*fe+S*de),z=ar(re*(P*fe+M*de));return d.done=Math.abs(z)<=s&&Math.abs(c-be)<=a,d.value=d.done?c:be,d}const ne=C(K);if(b)d.done=K>=m;else{const re=ar(O(K));d.done=Math.abs(re)<=s&&Math.abs(c-ne)<=a}return d.value=d.done?c:ne,d},toString:()=>{const K=Math.min(Hg(F),Ad),ne=mR(re=>F.next(K*re).value,K,30);return K+"ms "+ne},toTransition:()=>{}};return F}Cd.applyToOptions=e=>{const t=sB(e,100,Cd);return e.ease=t.ease,e.duration=ar(t.duration),e.type="keyframes",e};const dB=5;function gR(e,t,n){const s=Math.max(t-dB,0);return WE(n-e(s),t-s)}function Hm({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:c,min:d,max:f,restDelta:h=.5,restSpeed:g}){const m=e[0],v={done:!1,value:m},b=M=>d!==void 0&&M<d||f!==void 0&&M>f,_=M=>d===void 0?f:f===void 0||Math.abs(d-M)<Math.abs(f-M)?d:f;let E=n*t;const S=m+E,x=c===void 0?S:c(S);x!==S&&(E=x-m);const R=M=>-E*Math.exp(-M/s),C=M=>x+R(M),O=M=>{const F=R(M),K=C(M);v.done=Math.abs(F)<=h,v.value=v.done?x:K};let I,B;const P=M=>{b(v.value)&&(I=M,B=Cd({keyframes:[v.value,_(v.value)],velocity:gR(C,M,v.value),damping:a,stiffness:l,restDelta:h,restSpeed:g}))};return P(0),{calculatedDuration:null,next:M=>{let F=!1;return!B&&I===void 0&&(F=!0,O(M),P(M)),I!==void 0&&M>=I?B.next(M-I):(!F&&O(M),v)}}}function fB(e,t,n){const s=[],a=n||ri.mix||pR,l=e.length-1;for(let c=0;c<l;c++){let d=a(e[c],e[c+1]);if(t){const f=Array.isArray(t)?t[c]||xo:t;d=ef(f,d)}s.push(d)}return s}function hB(e,t,{clamp:n=!0,ease:s,mixer:a}={}){const l=e.length;if(Ig(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=fB(t,s,a),f=d.length,h=g=>{if(c&&g<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(g<e[m+1]);m++);const v=YE(e[m],e[m+1],g);return d[m](v)};return n?g=>h(ni(e[0],e[l-1],g)):h}function pB(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const a=YE(0,t,s);e.push(uc(n,1,a))}}function mB(e){const t=[0];return pB(t,e.length-1),t}function gB(e,t){return e.map(n=>n*t)}function yB(e,t){return e.map(()=>t||sR).splice(0,e.length-1)}function Il({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const a=Ez(s)?s.map(oS):oS(s),l={done:!1,value:t[0]},c=gB(n&&n.length===t.length?n:mB(t),e),d=hB(c,t,{ease:Array.isArray(a)?a:yB(t,a)});return{calculatedDuration:e,next:f=>(l.value=d(f),l.done=f>=e,l)}}const vB=e=>e!==null;function tf(e,{repeat:t,repeatType:n="loop"},s,a=1){const l=e.filter(vB),d=a<0||t&&n!=="loop"&&t%2===1?0:l.length-1;return!d||s===void 0?l[d]:s}const bB={decay:Hm,inertia:Hm,tween:Il,keyframes:Il,spring:Cd};function yR(e){typeof e.type=="string"&&(e.type=bB[e.type])}class Fg{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const wB=e=>e/100;class Od extends Fg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Pn.now()&&this.tick(Pn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;yR(t);const{type:n=Il,repeat:s=0,repeatDelay:a=0,repeatType:l,velocity:c=0}=t;let{keyframes:d}=t;const f=n||Il;f!==Il&&typeof d[0]!="number"&&(this.mixKeyframes=ef(wB,pR(d[0],d[1])),d=[0,100]);const h=f({...t,keyframes:d});l==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...d].reverse(),velocity:-c})),h.calculatedDuration===null&&(h.calculatedDuration=Hg(h));const{calculatedDuration:g}=h;this.calculatedDuration=g,this.resolvedDuration=g+a,this.totalDuration=this.resolvedDuration*(s+1)-a,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:a,mixKeyframes:l,mirroredGenerator:c,resolvedDuration:d,calculatedDuration:f}=this;if(this.startTime===null)return s.next(0);const{delay:h=0,keyframes:g,repeat:m,repeatType:v,repeatDelay:b,type:_,onUpdate:E,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const x=this.currentTime-h*(this.playbackSpeed>=0?1:-1),R=this.playbackSpeed>=0?x<0:x>a;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let C=this.currentTime,O=s;if(m){const M=Math.min(this.currentTime,a)/d;let F=Math.floor(M),K=M%1;!K&&M>=1&&(K=1),K===1&&F--,F=Math.min(F,m+1),F%2&&(v==="reverse"?(K=1-K,b&&(K-=b/d)):v==="mirror"&&(O=c)),C=ni(0,1,K)*d}let I;R?(this.delayState.value=g[0],I=this.delayState):I=O.next(C),l&&!R&&(I.value=l(I.value));let{done:B}=I;!R&&f!==null&&(B=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return P&&_!==Hm&&(I.value=tf(g,this.options,S,this.speed)),E&&E(I.value),P&&this.finish(),I}then(t,n){return this.finished.then(t,n)}get duration(){return ir(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ir(t)}get time(){return ir(this.currentTime)}set time(t){t=ar(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return gR(s=>this.generator.next(s).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Pn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ir(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=rB,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Pn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function _B(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Hi=e=>e*180/Math.PI,Fm=e=>{const t=Hi(Math.atan2(e[1],e[0]));return Gm(t)},SB={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Fm,rotateZ:Fm,skewX:e=>Hi(Math.atan(e[1])),skewY:e=>Hi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Gm=e=>(e=e%360,e<0&&(e+=360),e),pS=Fm,mS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),gS=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),xB={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mS,scaleY:gS,scale:e=>(mS(e)+gS(e))/2,rotateX:e=>Gm(Hi(Math.atan2(e[6],e[5]))),rotateY:e=>Gm(Hi(Math.atan2(-e[2],e[0]))),rotateZ:pS,rotate:pS,skewX:e=>Hi(Math.atan(e[4])),skewY:e=>Hi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Km(e){return e.includes("scale")?1:0}function Ym(e,t){if(!e||e==="none")return Km(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,a;if(n)s=xB,a=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=SB,a=d}if(!a)return Km(t);const l=s[t],c=a[1].split(",").map(EB);return typeof l=="function"?l(c):c[l]}const TB=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ym(n,t)};function EB(e){return parseFloat(e.trim())}const Eo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ro=new Set([...Eo,"pathRotation"]),yS=e=>e===To||e===ye,RB=new Set(["x","y","z"]),AB=Eo.filter(e=>!RB.has(e));function CB(e){const t=[];return AB.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const Xs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:s})=>{const a=e.max-e.min;return s==="border-box"?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:s})=>{const a=e.max-e.min;return s==="border-box"?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ym(t,"x"),y:(e,{transform:t})=>Ym(t,"y")};Xs.translateX=Xs.x;Xs.translateY=Xs.y;const Ki=new Set;let Qm=!1,Wm=!1,Xm=!1;function vR(){if(Wm){const e=Array.from(Ki).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const a=CB(s);a.length&&(n.set(s,a),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const a=n.get(s);a&&a.forEach(([l,c])=>{s.getValue(l)?.set(c)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Wm=!1,Qm=!1,Ki.forEach(e=>e.complete(Xm)),Ki.clear()}function bR(){Ki.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Wm=!0)})}function OB(){Xm=!0,bR(),vR(),Xm=!1}class Gg{constructor(t,n,s,a,l,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=a,this.element=l,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Ki.add(this),Qm||(Qm=!0,Qn.read(bR),Qn.resolveKeyframes(vR))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:a}=this;if(t[0]===null){const l=a?.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(s&&n){const d=s.readValue(n,c);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=c),a&&l===void 0&&a.set(t[0])}_B(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ki.delete(this)}cancel(){this.state==="scheduled"&&(Ki.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kB=e=>e.startsWith("--");function wR(e,t,n){kB(t)?e.style.setProperty(t,n):e.style[t]=n}const NB={};function _R(e,t){const n=KE(e);return()=>NB[t]??n()}const MB=_R(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),SR=_R(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ml=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,vS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ml([0,.65,.55,1]),circOut:Ml([.55,0,1,.45]),backIn:Ml([.31,.01,.66,-.59]),backOut:Ml([.33,1.53,.69,.99])};function xR(e,t){if(e)return typeof e=="function"?SR()?mR(e,t):"ease-out":iR(e)?Ml(e):Array.isArray(e)?e.map(n=>xR(n,t)||vS.easeOut):vS[e]}function PB(e,t,n,{delay:s=0,duration:a=300,repeat:l=0,repeatType:c="loop",ease:d="easeOut",times:f}={},h=void 0){const g={[t]:n};f&&(g.offset=f);const m=xR(d,a);Array.isArray(m)&&(g.easing=m);const v={delay:s,duration:a,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"};return h&&(v.pseudoElement=h),e.animate(g,v)}function TR(e){return typeof e=="function"&&"applyToOptions"in e}function jB({type:e,...t}){return TR(e)&&SR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ER extends Fg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:s,keyframes:a,pseudoElement:l,allowFlatten:c=!1,finalKeyframe:d,onComplete:f}=t;this.isPseudoElement=!!l,this.allowFlatten=c,this.options=t,Ig(typeof t.type!="string");const h=jB(t);this.animation=PB(n,s,a,h,l),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const g=tf(a,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(g),wR(n,s,g),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ir(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ir(t)}get time(){return ir(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ar(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:s,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&MB()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),xo):a(this)}}const RR={anticipate:nR,backInOut:tR,circInOut:rR};function LB(e){return e in RR}function DB(e){typeof e.ease=="string"&&LB(e.ease)&&(e.ease=RR[e.ease])}const Qp=10;class IB extends ER{constructor(t){DB(t),yR(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:a,element:l,...c}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const d=new Od({...c,autoplay:!1}),f=Math.max(Qp,Pn.now()-this.startTime),h=ni(0,Qp,f-Qp),g=d.sample(f).value,{name:m}=this.options;l&&m&&wR(l,m,g),n.setWithVelocity(d.sample(Math.max(0,f-h)).value,g,h),d.stop()}}const bS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(or.test(e)||e==="0")&&!e.startsWith("url("));function UB(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function zB(e,t,n,s){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],c=bS(a,t),d=bS(l,t);return!c||!d?!1:UB(e)||(n==="spring"||TR(n))&&s}function Jm(e){e.duration=0,e.type="keyframes"}const AR=new Set(["opacity","clipPath","filter","transform"]),BB=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function $B(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&BB.test(e[t]))return!0;return!1}const qB=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),VB=KE(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function HB(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:a,damping:l,type:c,keyframes:d}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:g}=t.owner.getProps();return VB()&&n&&(AR.has(n)||qB.has(n)&&$B(d))&&(n!=="transform"||!g)&&!h&&!s&&a!=="mirror"&&l!==0&&c!=="inertia"}const FB=40;class GB extends Fg{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:c="loop",keyframes:d,name:f,motionValue:h,element:g,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Pn.now();const v={autoplay:t,delay:n,type:s,repeat:a,repeatDelay:l,repeatType:c,name:f,motionValue:h,element:g,...m},b=g?.KeyframeResolver||Gg;this.keyframeResolver=new b(d,(_,E,S)=>this.onKeyframesResolved(_,E,v,!S),f,h,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,a){this.keyframeResolver=void 0;const{name:l,type:c,velocity:d,delay:f,isHandoff:h,onUpdate:g}=s;this.resolvedAt=Pn.now();let m=!0;zB(t,l,c,d)||(m=!1,(ri.instantAnimations||!f)&&g?.(tf(t,s,n)),t[0]=t[t.length-1],Jm(s),s.repeat=0);const b={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>FB?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},_=m&&!h&&HB(b),E=b.motionValue?.owner?.current;let S;if(_)try{S=new IB({...b,element:E})}catch{S=new Od(b)}else S=new Od(b);S.finished.then(()=>{this.notifyFinished()}).catch(xo),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),OB()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function CR(e,t,n,s=0,a=1){const l=Array.from(e).sort((h,g)=>h.sortNodePosition(g)).indexOf(t),c=e.size,d=(c-1)*s;return typeof n=="function"?n(l,c):a===1?l*s:d-l*s}const wS=30,KB=e=>!isNaN(parseFloat(e));class YB{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const a=Pn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Pn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=KB(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new QE);const s=this.events[t].add(n);return t==="change"?()=>{s(),Qn.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Pn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>wS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,wS);return WE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function kd(e,t){return new YB(e,t)}function OR(e,t){if(e?.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function kR(e,t){const n=e?.[t]??e?.default??e;return n!==e?OR(n,e):n}const QB={type:"spring",stiffness:500,damping:25,restSpeed:10},WB=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),XB={type:"keyframes",duration:.8},JB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ZB=(e,{keyframes:t})=>t.length>2?XB:Ro.has(e)?e.startsWith("scale")?WB(t[1]):QB:JB,e4=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function t4(e){for(const t in e)if(!e4.has(t))return!0;return!1}const n4=(e,t,n,s={},a,l)=>c=>{const d=kR(s,e)||{},f=d.delay||s.delay||0;let{elapsed:h=0}=s;h=h-ar(f);const g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:v=>{t.set(v),d.onUpdate&&d.onUpdate(v)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:a};t4(d)||Object.assign(g,ZB(e,g)),g.duration&&(g.duration=ar(g.duration)),g.repeatDelay&&(g.repeatDelay=ar(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let m=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Jm(g),g.delay===0&&(m=!0)),(ri.instantAnimations||ri.skipAnimations||a?.shouldSkipAnimations||d.skipAnimations)&&(m=!0,Jm(g),g.delay=0),g.allowFlatten=!d.type&&!d.ease,m&&!l&&t.get()!==void 0){const v=tf(g.keyframes,d);if(v!==void 0){Qn.update(()=>{g.onUpdate(v),g.onComplete()});return}}return d.isSync?new Od(g):new GB(g)},r4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function s4(e){const t=r4.exec(e);if(!t)return[,];const[,n,s,a]=t;return[`--${n??s}`,a]}function NR(e,t,n=1){const[s,a]=s4(e);if(!s)return;const l=window.getComputedStyle(t).getPropertyValue(s);if(l){const c=l.trim();return FE(c)?parseFloat(c):c}return Bg(a)?NR(a,t,n+1):a}function _S(e){const t=[{},{}];return e?.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function MR(e,t,n,s){if(typeof t=="function"){const[a,l]=_S(s);t=t(n!==void 0?n:e.custom,a,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,l]=_S(s);t=t(n!==void 0?n:e.custom,a,l)}return t}function Yi(e,t,n){const s=e.getProps();return MR(s,t,n!==void 0?n:s.custom,e)}const PR=new Set(["width","height","top","left","right","bottom",...Eo]),Zm=e=>Array.isArray(e);function i4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,kd(n))}function a4(e){return Zm(e)?e[e.length-1]||0:e}function o4(e,t){const n=Yi(e,t);let{transitionEnd:s={},transition:a={},...l}=n||{};l={...l,...s};for(const c in l){const d=a4(l[c]);i4(e,c,d)}}const Yn=e=>!!(e&&e.getVelocity);function l4(e){return!!(Yn(e)&&e.add)}function c4(e,t){const n=e.getValue("willChange");if(l4(n))return n.add(t);if(!n&&ri.WillChange){const s=new ri.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Kg(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const u4="framerAppearId",d4="data-"+Kg(u4);function f4(e){return e.props[d4]}function h4({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function jR(e,t,{delay:n=0,transitionOverride:s,type:a}={}){let{transition:l,transitionEnd:c,...d}=t;const f=e.getDefaultTransition();l=l?OR(l,f):f;const h=l?.reduceMotion,g=l?.skipAnimations;s&&(l=s);const m=[],v=a&&e.animationState&&e.animationState.getState()[a],b=l?.path;b&&b.animateVisualElement(e,d,l,n,m);for(const _ in d){const E=e.getValue(_,e.latestValues[_]??null),S=d[_];if(S===void 0||v&&h4(v,_))continue;const x={delay:n,...kR(l||{},_)};g&&(x.skipAnimations=!0);const R=E.get();if(R!==void 0&&!E.isAnimating()&&!Array.isArray(S)&&S===R&&!x.velocity){Qn.update(()=>E.set(S));continue}let C=!1;if(window.MotionHandoffAnimation){const B=f4(e);if(B){const P=window.MotionHandoffAnimation(B,_,Qn);P!==null&&(x.startTime=P,C=!0)}}c4(e,_);const O=h??e.shouldReduceMotion;E.start(n4(_,E,S,O&&PR.has(_)?{type:!1}:x,e,C));const I=E.animation;I&&m.push(I)}if(c){const _=()=>Qn.update(()=>{c&&o4(e,c)});m.length?Promise.all(m).then(_):_()}return m}function eg(e,t,n={}){const s=Yi(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(a=n.transitionOverride);const l=s?()=>Promise.all(jR(e,s,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:g,staggerDirection:m}=a;return p4(e,t,f,h,g,m,n)}:()=>Promise.resolve(),{when:d}=a;if(d){const[f,h]=d==="beforeChildren"?[l,c]:[c,l];return f().then(()=>h())}else return Promise.all([l(),c(n.delay)])}function p4(e,t,n=0,s=0,a=0,l=1,c){const d=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),d.push(eg(f,t,{...c,delay:n+(typeof s=="function"?0:s)+CR(e.variantChildren,f,s,a,l)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(d)}function m4(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const a=t.map(l=>eg(e,l,n));s=Promise.all(a)}else if(typeof t=="string")s=eg(e,t,n);else{const a=typeof t=="function"?Yi(e,t,n.custom):t;s=Promise.all(jR(e,a,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const g4={test:e=>e==="auto",parse:e=>e},LR=e=>t=>t.test(e),DR=[To,ye,po,Jr,Uz,Iz,g4],SS=e=>DR.find(LR(e));function y4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||GE(e):!0}const v4=new Set(["brightness","contrast","saturate","opacity"]);function b4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match($g)||[];if(!s)return e;const a=n.replace(s,"");let l=v4.has(t)?1:0;return s!==n&&(l*=100),t+"("+l+a+")"}const w4=/\b([a-z-]*)\(.*?\)/gu,tg={...or,getAnimatableNone:e=>{const t=e.match(w4);return t?t.map(b4).join(" "):e}},ng={...or,getAnimatableNone:e=>{const t=or.parse(e);return or.createTransformer(e)(t.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},xS={...To,transform:Math.round},_4={rotate:Jr,pathRotation:Jr,rotateX:Jr,rotateY:Jr,rotateZ:Jr,scale:Ku,scaleX:Ku,scaleY:Ku,scaleZ:Ku,skew:Jr,skewX:Jr,skewY:Jr,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:ec,originX:cS,originY:cS,originZ:ye},Nd={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,inset:ye,insetBlock:ye,insetBlockStart:ye,insetBlockEnd:ye,insetInline:ye,insetInlineStart:ye,insetInlineEnd:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,paddingBlock:ye,paddingBlockStart:ye,paddingBlockEnd:ye,paddingInline:ye,paddingInlineStart:ye,paddingInlineEnd:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,marginBlock:ye,marginBlockStart:ye,marginBlockEnd:ye,marginInline:ye,marginInlineStart:ye,marginInlineEnd:ye,fontSize:ye,backgroundPositionX:ye,backgroundPositionY:ye,..._4,zIndex:xS,fillOpacity:ec,strokeOpacity:ec,numOctaves:xS},S4={...Nd,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:tg,WebkitFilter:tg,mask:ng,WebkitMask:ng},IR=e=>S4[e],x4=new Set([tg,ng]);function UR(e,t){let n=IR(e);return x4.has(n)||(n=or),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const T4=new Set(["auto","none","0"]);function E4(e,t,n){let s=0,a;for(;s<e.length&&!a;){const l=e[s];typeof l=="string"&&!T4.has(l)&&vo(l).values.length&&(a=e[s]),s++}if(a&&n)for(const l of t)e[l]=UR(n,a)}class R4 extends Gg{constructor(t,n,s,a,l){super(t,n,s,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let g=0;g<t.length;g++){let m=t[g];if(typeof m=="string"&&(m=m.trim(),Bg(m))){const v=NR(m,n.current);v!==void 0&&(t[g]=v),g===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!PR.has(s)||t.length!==2)return;const[a,l]=t,c=SS(a),d=SS(l),f=lS(a),h=lS(l);if(f!==h&&Xs[s]){this.needsMeasurement=!0;return}if(c!==d)if(yS(c)&&yS(d))for(let g=0;g<t.length;g++){const m=t[g];typeof m=="string"&&(t[g]=parseFloat(m))}else Xs[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let a=0;a<t.length;a++)(t[a]===null||y4(t[a]))&&s.push(a);s.length&&E4(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Xs[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(s,a).jump(a,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const l=s.length-1,c=s[l];s[l]=Xs[n](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,f])=>{t.getValue(d).set(f)}),this.resolveNoneKeyframes()}}function A4(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const a=n?.[e]??s.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(s=>s!=null)}const rg=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function C4(e){return vz(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:O4}=aR(queueMicrotask,!1),k4={y:!1};function N4(){return k4.y}function zR(e,t){const n=A4(e),s=new AbortController,a={passive:!0,...t,signal:s.signal};return[n,a,()=>s.abort()]}function M4(e){return!(e.pointerType==="touch"||N4())}function P4(e,t,n={}){const[s,a,l]=zR(e,n);return s.forEach(c=>{let d=!1,f=!1,h;const g=()=>{c.removeEventListener("pointerleave",_)},m=S=>{h&&(h(S),h=void 0),g()},v=S=>{d=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),f&&(f=!1,m(S))},b=()=>{d=!0,window.addEventListener("pointerup",v,a),window.addEventListener("pointercancel",v,a)},_=S=>{if(S.pointerType!=="touch"){if(d){f=!0;return}m(S)}},E=S=>{if(!M4(S))return;f=!1;const x=t(c,S);typeof x=="function"&&(h=x,c.addEventListener("pointerleave",_,a))};c.addEventListener("pointerenter",E,a),c.addEventListener("pointerdown",b,a)}),l}const BR=(e,t)=>t?e===t?!0:BR(e,t.parentElement):!1,j4=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,L4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function D4(e){return L4.has(e.tagName)||e.isContentEditable===!0}const sd=new WeakSet;function TS(e){return t=>{t.key==="Enter"&&e(t)}}function Wp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const I4=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=TS(()=>{if(sd.has(n))return;Wp(n,"down");const a=TS(()=>{Wp(n,"up")}),l=()=>Wp(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function ES(e){return j4(e)&&!0}const RS=new WeakSet;function U4(e,t,n={}){const[s,a,l]=zR(e,n),c=d=>{const f=d.currentTarget;if(!ES(d)||RS.has(d))return;sd.add(f),n.stopPropagation&&RS.add(d);const h=t(f,d),g=(b,_)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",v),sd.has(f)&&sd.delete(f),ES(b)&&typeof h=="function"&&h(b,{success:_})},m=b=>{g(b,f===window||f===document||n.useGlobalTarget||BR(f,b.target))},v=b=>{g(b,!1)};window.addEventListener("pointerup",m,a),window.addEventListener("pointercancel",v,a)};return s.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",c,a),C4(d)&&(d.addEventListener("focus",h=>I4(h,a)),!D4(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),l}const z4=[...DR,Tt,or],B4=e=>z4.find(LR(e)),AS=()=>({min:0,max:0}),$R=()=>({x:AS(),y:AS()}),$4=new WeakMap;function Yg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Qg(e){return typeof e=="string"||Array.isArray(e)}const Wg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xg=["initial",...Wg];function qR(e){return Yg(e.animate)||Xg.some(t=>Qg(e[t]))}function q4(e){return!!(qR(e)||e.variants)}function V4(e,t,n){for(const s in t){const a=t[s],l=n[s];if(Yn(a))e.addValue(s,a);else if(Yn(l))e.addValue(s,kd(a,{owner:e}));else if(l!==a)if(e.hasValue(s)){const c=e.getValue(s);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=e.getStaticValue(s);e.addValue(s,kd(c!==void 0?c:a,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const sg={current:null},VR={current:!1},H4=typeof window<"u";function F4(){if(VR.current=!0,!!H4)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sg.current=e.matches;e.addEventListener("change",t),t()}else sg.current=!1}const CS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Md={};function HR(e){Md=e}function G4(){return Md}class K4{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:a,skipAnimations:l,blockInitialAnimation:c,visualState:d},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Gg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Pn.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Qn.render(this.render,!1,!0))};const{latestValues:h,renderState:g}=d;this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=g,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=l,this.options=f,this.blockInitialAnimation=!!c,this.isControllingVariants=qR(n),this.isVariantNode=q4(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in v){const _=v[b];h[b]!==void 0&&Yn(_)&&_.set(h[b])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,$4.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(VR.current||F4(),this.shouldReduceMotion=sg.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Bm(this.notifyUpdate),Bm(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&AR.has(t)&&this.current instanceof HTMLElement){const{factory:c,keyframes:d,times:f,ease:h,duration:g}=n.accelerate,m=new ER({element:this.current,name:t,keyframes:d,times:f,ease:h,duration:ar(g)}),v=c(m);this.valueSubscriptions.set(t,()=>{v(),m.cancel()});return}const s=Ro.has(t);s&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Qn.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;typeof window<"u"&&window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),l&&l()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Md){const n=Md[t];if(!n)continue;const{isEnabled:s,Feature:a}=n;if(!this.features[t]&&a&&s(this.props)&&(this.features[t]=new a(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$R()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<CS.length;s++){const a=CS[s];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,c=t[l];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=V4(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=kd(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(FE(s)||GE(s))?s=parseFloat(s):!B4(s)&&or.test(n)&&(s=UR(t,
vendor: 4,558 bytes, line 55
55n)),this.setBaseTarget(t,Yn(s)?s.get():s)),Yn(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const l=MR(this.props,n,this.presenceContext?.custom);l&&(s=l[t])}if(n&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Yn(a)?a:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new QE),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){O4.render(this.render)}}class FR extends K4{constructor(){super(...arguments),this.KeyframeResolver=R4}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Yn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Ao{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Y4({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Q4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function W4(e,t){return Y4(Q4(e.getBoundingClientRect(),t))}const X4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},J4=Eo.length;function Z4(e,t,n){let s="",a=!0;for(let c=0;c<J4;c++){const d=Eo[c],f=e[d];if(f===void 0)continue;let h=!0;if(typeof f=="number")h=f===(d.startsWith("scale")?1:0);else{const g=parseFloat(f);h=d.startsWith("scale")?g===1:g===0}if(!h||n){const g=rg(f,Nd[d]);if(!h){a=!1;const m=X4[d]||d;s+=`${m}(${g}) `}n&&(t[d]=g)}}const l=e.pathRotation;return l&&(a=!1,s+=`rotate(${rg(l,Nd.pathRotation)}) `),s=s.trim(),n?s=n(t,a?"":s):a&&(s="none"),s}function GR(e,t,n){const{style:s,vars:a,transformOrigin:l}=e;let c=!1,d=!1;for(const f in t){const h=t[f];if(Ro.has(f)){c=!0;continue}else if(lR(f)){a[f]=h;continue}else{const g=rg(h,Nd[f]);f.startsWith("origin")?(d=!0,l[f]=g):s[f]=g}}if(t.transform||(c||n?s.transform=Z4(t,e.transform,n):s.transform&&(s.transform="none")),d){const{originX:f="50%",originY:h="50%",originZ:g=0}=l;s.transformOrigin=`${f} ${h} ${g}`}}function KR(e,{style:t,vars:n},s,a){const l=e.style;let c;for(c in t)l[c]=t[c];a?.applyProjectionStyles(l,s);for(c in n)l.setProperty(c,n[c])}function OS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Cl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=OS(e,t.target.x),s=OS(e,t.target.y);return`${n}% ${s}%`}},e$={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,a=or.parse(e);if(a.length>5)return s;const l=or.createTransformer(e),c=typeof a[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;a[0+c]/=d,a[1+c]/=f;const h=uc(d,f,.5);return typeof a[2+c]=="number"&&(a[2+c]/=h),typeof a[3+c]=="number"&&(a[3+c]/=h),l(a)}},t$={borderRadius:{...Cl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cl,borderTopRightRadius:Cl,borderBottomLeftRadius:Cl,borderBottomRightRadius:Cl,boxShadow:e$};function n$(e,{layout:t,layoutId:n}){return Ro.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!t$[e]||e==="opacity")}function YR(e,t,n){const s=e.style,a=t?.style,l={};if(!s)return l;for(const c in s)(Yn(s[c])||a&&Yn(a[c])||n$(c,e)||n?.getValue(c)?.liveStyle!==void 0)&&(l[c]=s[c]);return l}function r$(e){return window.getComputedStyle(e)}class s$ extends FR{constructor(){super(...arguments),this.type="html",this.renderInstance=KR}readValueFromInstance(t,n){if(Ro.has(n))return this.projection?.isProjecting?Km(n):TB(t,n);{const s=r$(t),a=(lR(n)?s.getPropertyValue(n):s[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return W4(t,n)}build(t,n,s){GR(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return YR(t,n,s)}}const i$={offset:"stroke-dashoffset",array:"stroke-dasharray"},a$={offset:"strokeDashoffset",array:"strokeDasharray"};function o$(e,t,n=1,s=0,a=!0){e.pathLength=1;const l=a?i$:a$;e[l.offset]=`${-s}`,e[l.array]=`${t} ${n}`}const l$=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function c$(e,{attrX:t,attrY:n,attrScale:s,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...d}
vendor: 4,467 bytes, line 55
55,f,h,g){if(GR(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v}=e;m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=g?.transformBox??"fill-box",delete m.transformBox);for(const b of l$)m[b]!==void 0&&(v[b]=m[b],delete m[b]);t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),s!==void 0&&(m.scale=s),a!==void 0&&o$(m,a,l,c,!1)}const QR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),u$=e=>typeof e=="string"&&e.toLowerCase()==="svg";function d$(e,t,n,s){KR(e,t,void 0,s);for(const a in t.attrs)e.setAttribute(QR.has(a)?a:Kg(a),t.attrs[a])}function f$(e,t,n){const s=YR(e,t,n);for(const a in e)if(Yn(e[a])||Yn(t[a])){const l=Eo.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;s[l]=e[a]}return s}class h$ extends FR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$R}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ro.has(n)){const s=IR(n);return s&&s.default||0}return n=QR.has(n)?n:Kg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return f$(t,n,s)}build(t,n,s){c$(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,a){d$(t,n,s,a)}mount(t){this.isSVGTag=u$(t.tagName),super.mount(t)}}const p$=Xg.length;function WR(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?WR(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<p$;n++){const s=Xg[n],a=e.props[s];(Qg(a)||a===!1)&&(t[s]=a)}return t}function XR(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const m$=[...Wg].reverse(),g$=Wg.length;function y$(e){return t=>Promise.all(t.map(({animation:n,options:s})=>m4(e,n,s)))}function v$(e){let t=y$(e),n=kS(),s=!0,a=!1;const l=h=>(g,m)=>{const v=Yi(e,m,h==="exit"?e.presenceContext?.custom:void 0);if(v){const{transition:b,transitionEnd:_,...E}=v;g={...g,...E,..._}}return g};function c(h){t=h(e)}function d(h){const{props:g}=e,m=WR(e.parent)||{},v=[],b=new Set;let _={},E=1/0;for(let x=0;x<g$;x++){const R=m$[x],C=n[R],O=g[R]!==void 0?g[R]:m[R],I=Qg(O),B=R===h?C.isActive:null;B===!1&&(E=x);let P=O===m[R]&&O!==g[R]&&I;if(P&&(s||a)&&e.manuallyAnimateOnMount&&(P=!1),C.protectedKeys={..._},!C.isActive&&B===null||!O&&!C.prevProp||Yg(O)||typeof O=="boolean")continue;if(R==="exit"&&C.isActive&&B!==!0){C.prevResolvedValues&&(_={..._,...C.prevResolvedValues});continue}const M=b$(C.prevProp,O);let F=M||R===h&&C.isActive&&!P&&I||x>E&&I,K=!1;const ne=Array.isArray(O)?O:[O];let re=ne.reduce(l(R),{});B===!1&&(re={});const{prevResolvedValues:fe={}}=C,de={...fe,...re},be=X=>{F=!0,b.has(X)&&(K=!0,b.delete(X)),C.needsAnimating[X]=!0;const le=e.getValue(X);le&&(le.liveStyle=!1)};for(const X in de){const le=re[X],te=fe[X];if(_.hasOwnProperty(X))continue;let D=!1;Zm(le)&&Zm(te)?D=!XR(le,te)||M:D=le!==te,D?le!=null?be(X):b.add(X):le!==void 0&&b.has(X)?be(X):C.protectedKeys[X]=!0}C.prevProp=O,C.prevResolvedValues=re,C.isActive&&(_={..._,...re}),(s||a)&&e.blockInitialAnimation&&(F=!1);const z=P&&M;F&&(!z||K)&&v.push(...ne.map(X=>{const le={type:R};if(typeof X=="string"&&(s||a)&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:te}=e,D=Yi(te,X);if(te.enteringChildren&&D){const{delayChildren:Q}=D.transition||{};le.delay=CR(te.enteringChildren,e,Q)}}return{animation:X,options:le}}))}if(b.size){const x={};if(typeof g.initial!="boolean"){const R=Yi(e,Array.isArray(g.initial)?g.initial[0]:g.initial);R&&R.transition&&(x.transition=R.transition)}b.forEach(R=>{const C=e.getBaseTarget(R),O=e.getValue(R);O&&(O.liveStyle=!0),x[R]=C??null}),v.push({animation:x})}let S=!!v.length;return s&&(g.initial===!1||g.initial===g.animate)&&!e.manuallyAnimateOnMount&&(S=!1),s=!1,a=!1,S?t(v):Promise.resolve()}function f(h,g){if(n[h].isActive===g)return Promise.resolve();e.variantChildren?.forEach(v=>v.animationState?.setActive(h,g)),n[h].isActive=g;const m=d(h);for(const v in n)n[v].protectedKeys={};return m}
55return{animateChanges:d,setActive:f,setAnimateFunction:c,getState:()=>n,reset:()=>{n=kS(),a=!0}}}function b$(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!XR(t,e):!1}function Di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kS(){return{animate:Di(!0),whileInView:Di(),whileHover:Di(),whileTap:Di(),whileDrag:Di(),whileFocus:Di(),exit:Di()}}function NS(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const w$=j.createContext({strict:!1}),MS={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let PS=!1;function _$(){if(PS)return;const e={};for(const t in MS)e[t]={isEnabled:n=>MS[t].some(s=>!!n[s])};HR(e),PS=!0}function S$(){return _$(),G4()}function jS(e){const t=S$();for(const n in e)t[n]={...t[n],...e[n]};HR(t)}function x$({children:e,features:t,strict:n=!1}){const[,s]=j.useState(!Xp(t)),a=j.useRef(void 0);if(!Xp(t)){const{renderer:l,...c}=t;a.current=l,jS(c)}return j.useEffect(()=>{Xp(t)&&t().then(({renderer:l,...c})=>{jS(c),a.current=l,s(!0)})},[]),N.jsx(w$.Provider,{value:{renderer:a.current,strict:n},children:e})}function Xp(e){return typeof e=="function"}const T$=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function E$(e){return typeof e!="string"||e.includes("-")?!1:!!(T$.indexOf(e)>-1||/[A-Z]/u.test(e))}const R$=(e,t)=>t.isSVG??E$(e)?new h$(t):new s$(t,{allowProjection:e!==j.Fragment});class A$ extends Ao{constructor(t){super(t),t.animationState||(t.animationState=v$(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Yg(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let C$=0;class O$ extends Ao{constructor(){super(...arguments),this.id=C$++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&s===!1){if(this.isExitComplete){const{initial:l,custom:c}=this.node.getProps();if(typeof l=="string"||typeof l=="object"&&l!==null&&!Array.isArray(l)){const d=Yi(this.node,l,c);if(d){const{transition:f,transitionEnd:h,...g}=d;for(const m in g)this.node.getValue(m)?.jump(g[m])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const k$={animation:{Feature:A$},exit:{Feature:O$}};function JR(e){return{point:{x:e.pageX,y:e.pageY}}}function LS(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=s[a];l&&Qn.postRender(()=>l(t,JR(t)))}class N$ extends Ao{mount(){const{current:t}=this.node;t&&(this.unmount=P4(t,(n,s)=>(LS(this.node,s,"Start"),a=>LS(this.node,a,"End"))))}unmount(){}}class M$ extends Ao{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ef(NS(this.node.current,"focus",()=>this.onFocus()),NS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function DS(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=s[a];l&&Qn.postRender(()=>l(t,JR(t)))}class P$ extends Ao{mount(){const{current:t}=this.node;if(!t)return;
55const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=U4(t,(a,l)=>(DS(this.node,l,"Start"),(c,{success:d})=>DS(this.node,c,d?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const ig=new WeakMap,Jp=new WeakMap,j$=e=>{const t=ig.get(e.target);t&&t(e)},L$=e=>{e.forEach(j$)};function D$({root:e,...t}){const n=e||document;Jp.has(n)||Jp.set(n,{});const s=Jp.get(n),a=JSON.stringify(t);return s[a]||(s[a]=new IntersectionObserver(L$,{root:e,...t})),s[a]}function I$(e,t,n){const s=D$(t);return ig.set(e,n),s.observe(e),()=>{ig.delete(e),s.unobserve(e)}}const U$={some:0,all:1};class z$ extends Ao{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:a="some",once:l}=t,c={root:n?n.current:void 0,rootMargin:s,threshold:typeof a=="number"?a:U$[a]},d=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,l&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:g,onViewportLeave:m}=this.node.getProps(),v=h?g:m;v&&v(f)};this.stopObserver=I$(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(B$(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function B$({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $$={inView:{Feature:z$},tap:{Feature:P$},focus:{Feature:M$},hover:{Feature:N$}},q$={renderer:R$,...k$,...$$},V$="/assets/styles-CBUFWRqB.css",st="https://nower.global",rs="Nower",Pd=`${st}/og-default.jpg`,H$="@nower",ZR="Consultoria de aceleração de resultados, treinamentos in-company e conteúdos de liderança, OKRs, performance e cultura organizacional para empresas líderes de mercado.",F$=["https://www.linkedin.com/company/nower","https://www.instagram.com/nower.global"];function on(e){return e?e.startsWith("http")?e:`${st}${e.startsWith("/")?"":"/"}${e}`:st}const eA={"@context":"https://schema.org","@type":"Organization","@id":`${st}/#organization`,name:rs,legalName:"Nower",url:st,logo:{"@type":"ImageObject",url:`${st}/logo.png`,width:512,height:512},image:Pd,description:ZR,sameAs:F$,areaServed:["BR","LATAM"],knowsAbout:["OKRs","Liderança","Cultura Organizacional","Performance","Gestão de Resultados","Eficiência Operacional","Desenvolvimento de Pessoas","Estratégia","Transformação Cultural"],contactPoint:[{"@type":"ContactPoint",contactType:"customer service",areaServed:"BR",availableLanguage:["pt-BR","en"],telephone:"+55-21-99779-4585",email:"[email protected]",url:`${st}/sobre-a-nower`}],slogan:"Consultoria de gestão e resultados do grupo Knowledge21",founder:[{"@type":"Person",name:"Carlos Felippe Cardoso",sameAs:"https://www.linkedin.com/in/cfcresende/"},{"@type":"Person",name:"Rodrigo de Toledo",sameAs:"https://www.linkedin.com/in/rodrigodetoledo/"},{"@type":"Person",name:"Marcos Garrido",sameAs:"https://www.linkedin.com/in/mgarridobr/"},{"@type":"Person",name:"Rafael Sabbagh",sameAs:"https://www.linkedin.com/in/rafaelsabbagh/"}],parentOrganization:{"@type":"Organization",name:"Knowledge21",url:"https://k21.global"}},tA={"@context":"https://schema.org","@type":"WebSite","@id":`${st}/#website`,url:st,name:rs,description:ZR,inLanguage:"pt-BR",publisher:{"@id":`${st}/#organization`}},G$="modulepreload",K$=function(e){return"/"+e},IS={},Se=function(t,n,s){let a=Promise.resolve();if(n&&n.length>0){let f=function(h){return Promise.all(h.map(g=>Promise.resolve(g).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");a=f(n.map(h=>{if(h=K$(h),h in IS)return;IS[h]=!0;const g=h.endsWith(".css"),m=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const v=document.createElement("link");if(v.rel=g?"stylesheet":G$,g||(v.as="script"),v.crossOrigin="",v.href=h,d&&v.setAttribute("nonce",d),document.head.appendChild(v),g)return new Promise((b,_)=>{v.addEventListener("load",b),v.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return a.then(c=>{for(const d of c||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})},Y$={treinamentos:()=>Se(()=>import("./treinamentos-Cg2bdbqX.js"),[]),consultoria:()=>Se(()=>import("./consultoria-BaiIr8bm.js"),[]),instrutores:()=>Se(()=>import("./instrutores-D3CP3BeM.js"),[]),cases:()=>Se(()=>import("./cases-DKUxIBD0.js"),[]),categorias:()=>Se(()=>import("./categorias-DaRo-u4J.js"),[]),faqs:()=>Se(()=>import("./faqs-NBtFCg6n.js"),[]),beneficios:()=>Se(()=>import("./beneficios-D_DcbmhI.js"),[]),imagens:()=>Se(()=>import("./imagens-C6fAIdop.js"),[])},US=new Map;async function _n(e){const t=US.get(e);if(t)return t;const n=await Y$[e](),s=n.default??n;return US.set(e,s),s}let ag=!1;const og=new Set;function Q$(){return ag}function W$(e){return og.add(e),()=>og.delete(e)}
55function X$(){ag||(ag=!0,og.forEach(e=>e()))}const J$=2500;function Z$(e,t=J$){return new Promise((n,s)=>{const a=setTimeout(()=>s(new Error("db-timeout")),t);e.then(l=>{clearTimeout(a),n(l)},l=>{clearTimeout(a),s(l)})})}async function fs(e,t,n){try{return await Z$(e())}catch{}const s=await t();return n(s)||X$(),s}const rr=e=>Array.isArray(e)?e:[],Rr=(e,t)=>rr(e).map(n=>n&&typeof n=="object"&&t in n?n[t]:n).filter(Boolean),vt=(e,t)=>Number(e.sort_order??0)-Number(t.sort_order??0),Jg=(e,t)=>{const n={};for(const[s,a]of Object.entries(e))t.includes(s)||(n[s]=a);return n};async function e5(e){const[t,n,s]=await Promise.all([_n("categorias"),_n("treinamentos"),_n("consultoria")]),a=t.find(f=>f.slug===e&&f.is_active!==!1);if(!a)return{category:null,trainings:[],services:[]};const l=f=>Rr(f.categories,"category").some(h=>h?.slug===e),c=n.filter(f=>f.is_published!==!1&&l(f)).map(f=>({id:f.id,slug:f.slug,title:f.title,tagline:f.tagline??null,description:f.description??null,format_text:f.format_text??null,formats:f.formats??null,objectives:f.objectives??null,benefits:f.benefits??null})),d=s.filter(f=>f.is_published!==!1&&l(f)).sort(vt).map(f=>({id:f.id,slug:f.slug,title:f.title,short_name:f.short_name??null,hero_subheadline:f.hero_subheadline??null,objectives:rr(f.objectives).sort(vt).map(h=>({title:h.title,description:h.description??null})),deliverables:rr(f.deliverables).sort(vt).map(h=>({title:h.title,description:h.description??null}))}));return{category:{id:a.id,name:a.name,slug:a.slug,tagline:a.tagline??null,description:a.description??null,applies_to_training:a.applies_to_training!==!1,applies_to_consulting:a.applies_to_consulting!==!1},trainings:c,services:d}}async function t5(e){const n=(await _n("treinamentos")).find(a=>a.slug===e&&a.is_published!==!1),s={training:null,modules:[],trainers:[],testimonials:[],generalFaqs:[],generalBenefits:[]};return n?{training:Jg(n,["modules","trainers","categories","contents","benefits","faqs"]),modules:rr(n.modules).sort(vt),trainers:Rr(n.trainers,"trainer"),testimonials:[],generalFaqs:Rr(n.faqs,"faq").filter(a=>a.is_active!==!1).sort(vt).map(a=>({question:a.question,answer:a.answer})),generalBenefits:Rr(n.benefits,"benefit").filter(a=>a.is_active!==!1).sort(vt).map(a=>({icon:a.icon||"🏆",title:a.title,text:a.text||""}))}:s}async function n5(){return(await _n("faqs")).filter(t=>t.is_active!==!1).sort(vt).map(t=>({question:t.question,answer:t.answer}))}function Zg(e){const t=e.client;return{id:e.id,slug:e.slug,internal_name:e.internal_name??null,card_headline:e.card_headline??null,card_summary:e.card_summary??null,card_tag:e.card_tag??null,hero_image_url:e.hero_image_url??null,hero_image_alt:e.hero_image_alt??null,sort_order:Number(e.sort_order??0),client:t?{id:t.id,name:t.name??null,logo_url:t.logo_url??null}:null}}async function r5(){return(await _n("cases")).filter(t=>t.published!==!1).sort(vt).map(Zg)}async function s5(e){const n=(await _n("cases")).find(a=>a.slug===e&&a.published!==!1);return n?{...Jg(n,["client","challenges","solutions","metrics","learnings","transformation_steps","related_contents","consulting_services","trainings"]),...Zg(n),hero_tags:n.hero_tags??[],hero_stats:n.hero_stats??[],challenges:rr(n.challenges).sort(vt),solutions:rr(n.solutions).sort(vt),metrics:rr(n.metrics).sort(vt),learnings:rr(n.learnings).sort(vt),transformation_steps:rr(n.transformation_steps).sort(vt),related_contents:rr(n.related_contents).sort(vt),related_services:Rr(n.consulting_services,"service").map(a=>({id:a.id,slug:a.slug,title:a.title})),related_trainings:Rr(n.trainings,"training").map(a=>({id:a.id,slug:a.slug,title:a.title}))}:null}async function nA(e){return(await _n("cases")).filter(n=>n.published!==!1&&Rr(n.consulting_services,"service").some(s=>s?.id===e)).sort(vt).map(Zg)}async function i5(e){const[t,n]=await Promise.all([_n("consultoria"),_n("categorias")]),s=t.find(l=>l.slug===e);if(!s)return n.some(l=>l.slug===e&&l.is_active!==!1)?{redirectToCategory:e}:null;const a=l=>rr(s[l]).sort(vt);return{service:Jg(s,["pillars","benefits","challenges","objectives","deliverables","formats","timeline","faqs","contents","testimonials","clients","categories","cases"]),pillars:a("pillars"),objectives:a("objectives"),deliverables:a("deliverables"),benefits:a("benefits"),timeline:a("timeline"),formats:a("formats"),testimonials:a("testimonials"),faqs:a("faqs"),contents:a("contents"),challenges:a("challenges"),clients:Rr(s.clients,"client").filter(l=>!!l.logo_url).sort(vt).map(l=>({id:l.id,sort_order:Number(l.sort_order??0),name:l.name??null,logo_url:l.logo_url})),cases:await nA(s.id)}}async function a5(e){return nA(e)}async function o5(){const[e,t]=await Promise.all([_n("categorias"),_n("consultoria")]),n=e.filter(a=>a.is_active!==!1).sort(vt),s=a=>t.filter(l=>l.is_published!==!1&&Rr(l.categories,"category").some(c=>c?.slug===a)).sort(vt).map(l=>({label:l.short_name||l.title,href:`/consultoria/${l.slug}`}));return{categories:n.map(a=>({id:a.id,slug:a.slug,name:a.name,tagline:a.tagline??null,sort_order:Number(a.sort_order??0)})),trainingItems:n.filter(a=>a.applies_to_training!==!1).map(a=>({label:a.name,href:`/${a.slug}`,description:a.tagline||""})),consultingItems:n.filter(a=>a.applies_to_consulting!==!1).map(a=>({label:a.name,href:`/${a.slug}`,description:a.tagline||"",services:s(a.slug)}))}}async function l5(){const[e,t]=await Promise.all([_n("categorias"),_n("consultoria")]);return e.filter(n=>n.is_active!==!1&&n.applies_to_consulting!==!1).sort(vt).map(n=>({id:n.id,slug:n.slug,name:n.name,tagline:n.tagline??null,description:n.description??null,services:t.filter(s=>s.is_published!==!1&&Rr(s.categories,"category").some(a=>a?.slug===n.slug)).sort(vt).map((s,a)=>
55({sort_order:a,service:{id:s.id,slug:s.slug,title:s.title,short_name:s.short_name??null,is_published:!0}}))}))}async function c5(){const{data:e,error:t}=await zt.from("siteNower_categories").select(`id,slug,name,tagline,sort_order,applies_to_training,applies_to_consulting,
56      services:siteNower_consulting_service_categories(
57        sort_order,
58        service:siteNower_consulting_services(slug,title,short_name,is_published)
59      )`).eq("is_active",!0).order("sort_order");if(t)throw t;const n=e||[];return{categories:n.map(s=>({id:s.id,slug:s.slug,name:s.name,tagline:s.tagline??null,sort_order:s.sort_order})),trainingItems:n.filter(s=>s.applies_to_training).map(s=>({label:s.name,href:`/${s.slug}`,description:s.tagline||""})),consultingItems:n.filter(s=>s.applies_to_consulting).map(s=>({label:s.name,href:`/${s.slug}`,description:s.tagline||"",services:(s.services??[]).filter(a=>a.service&&a.service.is_published).sort((a,l)=>a.sort_order-l.sort_order).map(a=>({label:a.service.short_name||a.service.title,href:`/consultoria/${a.service.slug}`}))}))}}const ey=()=>({queryKey:["nav","categories"],queryFn:()=>fs(c5,o5,e=>e.trainingItems.length===0&&e.consultingItems.length===0),staleTime:600*1e3});const rA=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();const u5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const d5=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase());const zS=e=>{const t=d5(e);return t.charAt(0).toUpperCase()+t.slice(1)};var f5={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 h5=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const p5=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:a="",children:l,iconNode:c,...d},f)=>j.createElement("svg",{ref:f,...f5,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:rA("lucide",a),...!l&&!h5(d)&&{"aria-hidden":"true"},...d},[...c.map(([h,g])=>j.createElement(h,g)),...Array.isArray(l)?l:[l]]));const dc=(e,t)=>{const n=j.forwardRef(({className:s,...a},l)=>j.createElement(p5,{ref:l,iconNode:t,className:rA(`lucide-${u5(zS(e))}`,`lucide-${e}`,s),...a}
59));return n.displayName=zS(e),n};const m5=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],BS=dc("chevron-down",m5);const g5=[["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"}]],y5=dc("instagram",g5);const v5=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],b5=dc("linkedin",v5);const w5=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],_5=dc("menu",w5);const S5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],x5=dc("x",S5),sA="/assets/nower-logo-D31VFQFH.svg",T5=[{label:"Nower Insights",href:"/blog",description:"Artigos sobre tendências, estratégias e ideias para acelerar resultados de negócio."},{label:"Leadership Club",href:"/leadership-club",description:"Conteúdos premium para lideranças que transformam organizações."}],E5=[{label:"Modelo Nower",href:"/modelo-nower",description:"O modelo de gestão que vai levar a sua empresa ao próximo nível."},{label:"Consultoria + IA",href:"/consultoria/ia",description:"Como a Nower aplica IA para acelerar resultados em cada área do negócio."}],$S=[{label:"Consultoria & Treinamentos",href:"/consultoria",dropdown:"consulting"},{label:"Sobre nós",href:"/sobre-a-nower"},{label:"Como atuamos",href:"/modelo-nower",dropdown:"how"},{label:"Cases",href:"/cases"},{label:"Conteúdos",href:"/blog",dropdown:"content"}],R5=()=>{const[e,t]=j.useState(!1),[n,s]=j.useState(null),[a,l]=j.useState(null),c=cT(),d=qd(),f=j.useRef(null),h=j.useRef(null),{data:g}=ID(ey()),m=g?.trainingItems??[],v=g?.consultingItems??[];j.useEffect(()=>{t(!1),s(null),l(null)},[c.pathname]),j.useEffect(()=>{if(!(typeof document>"u"))return document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}},[e]),j.useEffect(()=>{if(typeof document>"u")return;const R=O=>{O.key==="Escape"&&s(null)},C=O=>{h.current&&!h.current.contains(O.target)&&s(null)};return document.addEventListener("keydown",R),document.addEventListener("pointerdown",C),()=>{document.removeEventListener("keydown",R),document.removeEventListener("pointerdown",C)}},[]);const b=R=>{R.preventDefault(),c.pathname==="/"?document.getElementById("contato")?.scrollIntoView({behavior:"smooth"}):d({to:"/",hash:"contato"})},_=R=>{f.current&&clearTimeout(f.current),s(R)},E=()=>{f.current=setTimeout(()=>s(null),150)},S=R=>R==="consulting"?c.pathname.startsWith("/consultoria"):R==="content"?c.pathname.startsWith("/blog")||c.pathname.startsWith("/leadership-club"):R==="how"?c.pathname.startsWith("/modelo-nower"):c.pathname.startsWith("/treinamentos-in-company"),x=R=>R==="consulting"?v:R==="content"?T5:R==="how"?E5:m;return N.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50 bg-nower-dark py-4",children:[N.jsxs("div",{className:"container flex items-center justify-between",children:[N.jsx(Qt,{to:"/",children:N.jsx("img",{src:sA,alt:"Nower",className:"h-8 md:h-10"})}),N.jsxs("nav",{ref:h,"aria-label":"Navegação principal",className:"hidden lg:flex items-center gap-8",children:[$S.map(R=>R.dropdown?N.jsxs("div",{className:"relative",onMouseEnter:()=>_(R.dropdown),onMouseLeave:E,children:[N.jsxs("div",{className:`flex items-center gap-1 text-sm font-semibold uppercase tracking-wide transition-colors ${n===R.dropdown||S(R.dropdown)?"text-nower-red":"text-white hover:text-nower-red"}`,children:[N.jsx(Qt,{to:R.href,className:"transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-nower-red",onClick:()=>s(null),children:R.label}),N.jsx("button",{type:"button","aria-haspopup":"true","aria-expanded":n===R.dropdown,"aria-label":`${n===R.dropdown?"Fechar":"Abrir"} submenu ${R.label}`,onClick:()=>s(n===R.dropdown?null:R.dropdown),className:"cursor-pointer p-1 -m-1 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-nower-red",children:N.jsx(BS,{size:14,className:`transition-transform duration-200 ${n===R.dropdown?"rotate-180":""}`})})]}),n===R.dropdown&&(()=>{const C=x(R.dropdown),O=R.dropdown==="content",I=R.dropdown==="consulting",B=R.dropdown==="how",P=B||O?"w-[560px]":I?"w-[960px]":"w-[920px]",M=B||O?"grid-cols-2":"grid-cols-4";return N.jsxs("div",{className:`absolute top-full left-1/2 -translate-x-1/2 mt-4 ${P} bg-white rounded-lg shadow-xl z-[60] p-6`,children:[N.jsx("div",{className:"absolute -top-2 left-1/2 -translate-x-1/2 w-4 h-4 bg-white rotate-45"}),N.jsxs("div",{className:"relative z-10",children:[I&&N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[N.jsx(Qt,{to:"/consultoria",className:"group flex items-center gap-2 p-3 rounded-md bg-muted/50 hover:bg-primary/10 transition-colors",children:N.jsx("span",{className:"text-sm font-bold text-foreground group-hover:text-primary transition-colors",children:"Conheça nosso portfólio de consultoria →"})}),N.jsx(Qt,{to:"/treinamentos-in-company",className:"group flex items-center gap-2 p-3 rounded-md bg-muted/50 hover:bg-primary/10 transition-colors",children:N.jsx("span",{className:"text-sm font-bold text-foreground group-hover:text-primary transition-colors",children:"Conheça todos os treinamentos →"})})]}),N.jsx("div",{className:"border-t border-border my-4"}),N.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground mb-3",children:"Conheça nossas soluções para:"})]}),N.jsx("div",{className:`grid ${M} gap-4`,children:C.map(F=>N.jsxs("div",{className:"p-3 rounded-md hover:bg-muted transition-colors",children:[N.jsxs(Qt,{to:F.href,className:"group block",children:[N.jsx("span",{className:"block text-sm font-bold text-foreground group-hover:text-nower-red transition-colors",children:F.label}),N.jsx("span",{className:"block text-xs text-muted-foreground mt-1 leading-relaxed",children:F.description})]}),I&&F.services&&F.services.length>0&&N.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:F.services.map(K=>N.jsx(Qt,{to:K.href,className:"text-[11px] font-semibold px-2 py-0.5 rounded-full bg-primary/10 text-primary hover:bg-primary hover:text-white transition-colors",children:K.label},K.href))})]},F.href))})]})]})})()]},R.href):N.jsx(Qt,{to:R.href,"aria-current":c.pathname===R.href?"page":void 0,className:`text-sm font-semibold uppercase tracking-wide transition-colors hover:text-nower-red ${c.pathname===R.href?"text-nower-red":"text-white"}`,children:R.label},R.href)),N.jsx("button",{onClick:b,className:"bg-nower-red text-white text-sm font-bold uppercase px-6 py-3 rounded hover:opacity-90 transition-opacity cursor-pointer",children:"Contato"})]}),N.jsx("button",{className:"lg:hidden",onClick:()=>t(!e),"aria-label":e?"Fechar menu":"Abrir menu","aria-expanded":e,children:e?N.jsx(x5,{className:"text-white",size:28}):N.jsx(_5,{className:"text-white",size:28})})]}),e&&N.jsx("div",{className:"lg:hidden bg-nower-dark max-h-[calc(100vh-5rem)] overflow-y-auto overscroll-contain",children:N.jsxs("nav",{"aria-label":"Navegação principal (celular)",className:"flex flex-col items-center py-6 gap-4 pb-28",children:[$S.map(R=>R.dropdown?N.jsxs("div",{className:"flex flex-col items-center",children:[N.jsxs("button",{"aria-expanded":a===R.dropdown,"aria-haspopup":"true",onClick:()=>l(a===R.dropdown?null:R.dropdown),className:`text-sm font-semibold uppercase tracking-wide transition-colors flex items-center gap-1 cursor-pointer ${a===R.dropdown?"text-nower-red":"text-white"}`,children:[R.label,N.jsx(BS,{size:14,className:`transition-transform duration-200 ${a===R.dropdown?"rotate-180":""}`})]}),a===R.dropdown&&N.jsxs("div",{className:"flex flex-col items-center gap-2 mt-3 bg-white/10 rounded-lg px-6 py-4",children:[R.dropdown==="consulting"&&N.jsxs(N.Fragment,{children:[N.jsx(Qt,{to:"/consultoria",className:"text-white text-sm font-bold hover:text-nower-red transition-colors text-center",children:"Conheça nosso portfólio de consultoria →"}),N.jsx(Qt,{to:"/treinamentos-in-company",className:"text-white text-sm font-bold hover:text-nower-red transition-colors text-center",children:"Conheça todos os treinamentos →"}),N.jsx("div",{className:"w-full border-t border-white/20 my-2"}),N.jsx("p",{className:"text-white/60 text-xs uppercase tracking-wider",children:"Conheça nossas soluções para:"})]}),x(R.dropdown).map(C=>N.jsx(Qt,{to:C.href,className:"text-white text-sm font-medium hover:text-nower-red transition-colors",children:C.label},C.href))]})]},R.href):N.jsx(Qt,{to:R.href,className:"text-white text-sm font-semibold uppercase tracking-wide hover:text-nower-red transition-colors",children:R.label},R.href)),N.jsx("button",{onClick:b,className:"bg-nower-red text-white text-sm font-bold uppercase px-6 py-3 rounded mt-2 cursor-pointer",children:"Contato"})]})})]})},A5=[{label:"Consultoria",to:"/consultoria"},{label:"Treinamentos In Company",to:"/treinamentos-in-company"},{label:"Sobre nós",to:"/sobre-a-nower"},{label:"Nower Insights",to:"/blog"},{label:"Cases",to:"/cases"},{label:"Modelo Nower",to:"/modelo-nower"},{label:"Leadership Club",to:"/leadership-club"},{label:"Glossário",to:"/glossario"},{label:"Política de Privacidade",to:"/politica-de-privacidade"}],C5=[{icon:y5,href:"https://instagram.com/nower.global",label:"Instagram"},{icon:b5,href:"https://www.linkedin.com/company/nower-global",label:"LinkedIn"}],O5=()=>N.jsx("footer",{className:"bg-nower-dark text-white",children:N.jsxs("div",{className:"container py-16",children:[N.jsxs("div",{className:"grid md:grid-cols-12 gap-10 mb-12",children:[N.jsxs("div",{className:"md:col-span-4",children:[N.jsx("img",{src:sA,alt:"Nower",loading:"lazy",decoding:"async",width:120,height:32,className:"h-8 w-auto mb-4"}),N.jsx("p",{className:"text-sm text-white/70 max-w-xs",children:"Consultoria de Aceleração de Resultados das empresas líderes de mercado."})]}),N.jsxs("div",{className:"md:col-span-4",children:[N.jsx("h2",{className:"font-extrabold text-xs uppercase tracking-wider text-white/70 mb-4",children:"Navegação"}),N.jsx("nav",{className:"flex flex-col gap-2",children:A5.map(e=>N.jsx(Qt,{to:e.to,className:"text-sm text-white/80 hover:text-primary transition-colors",children:e.label},e.to))})]}),N.jsxs("div",{className:"md:col-span-4",children:[N.jsx("h2",{className:"font-extrabold text-xs uppercase tracking-wider text-white/70 mb-4",children:"Escritórios"}),N.jsxs("div",{className:"space-y-4",children:[N.jsxs("div",{children:[N.jsx("p",{className:"font-bold text-sm text-white mb-1",children:"Brasil"}),N.jsxs("div",{className:"flex flex-col gap-0.5",children:[N.jsx("a",{href:"tel:+5521997794585",className:"text-sm text-white/70 hover:text-primary transition-colors",children:"+55 21 99779-4585"}),N.jsx("a",{href:"mailto:[email protected]",className:"text-sm text-white/70 hover:text-primary transition-colors",children:"[email protected]"})]})]}),N.jsxs("div",{children:[N.jsx("p",{className:"font-bold text-sm text-white mb-1",children:"EUA"}),N.jsxs("div",{className:"flex flex-col gap-0.5",children:[N.jsx("a",{href:"tel:+15616313255",className:"text-sm text-white/70 hover:text-primary transition-colors",children:"+1 561 631 3255"}
59),N.jsx("a",{href:"mailto:[email protected]",className:"text-sm text-white/70 hover:text-primary transition-colors",children:"[email protected]"})]})]}),N.jsxs("div",{children:[N.jsx("p",{className:"font-bold text-sm text-white mb-1",children:"Portugal"}),N.jsxs("div",{className:"flex flex-col gap-0.5",children:[N.jsx("a",{href:"tel:+351912310701",className:"text-sm text-white/70 hover:text-primary transition-colors",children:"+351 912 310 701"}),N.jsx("a",{href:"mailto:[email protected]",className:"text-sm text-white/70 hover:text-primary transition-colors",children:"[email protected]"})]})]})]})]})]}),N.jsxs("div",{className:"border-t border-white/10 pt-8 flex flex-col md:flex-row items-center justify-between gap-4",children:[N.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-2 md:gap-4 text-xs text-white/70",children:[N.jsxs("span",{children:["© ",new Date().getFullYear()," Nower — consultoria de gestão e resultados do grupo Knowledge21. Todos os direitos reservados."]}),N.jsx("span",{className:"text-white/40",children:"v1.02"})]}),N.jsx("div",{className:"flex items-center gap-4",children:C5.map(e=>N.jsx("a",{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.label,className:"text-white/70 hover:text-primary transition-colors",children:N.jsx(e.icon,{size:20})},e.label))})]})]})}),k5=()=>j.useSyncExternalStore(t=>W$(t),()=>Q$(),()=>!1)?N.jsx("div",{role:"status",className:"w-full bg-secondary/10 border-b border-secondary/30 text-foreground/80 text-xs md:text-sm",children:N.jsx("div",{className:"container py-2 text-center",children:"Exibindo conteúdo salvo — algumas informações podem estar desatualizadas."})}):null,N5=({children:e})=>N.jsxs("div",{className:"min-h-screen flex flex-col",children:[N.jsx(R5,{}),N.jsx(k5,{}),N.jsx("main",{className:"flex-1",children:e}),N.jsx(O5,{})]});var M5=Symbol.for("react.lazy"),jd=OC[" use ".trim().toString()];function P5(e){return typeof e=="object"&&e!==null&&"then"in e}function iA(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===M5&&"_payload"in e&&P5(e._payload)}function j5(e){const t=D5(e),n=j.forwardRef((s,a)=>{let{children:l,...c}=s;iA(l)&&typeof jd=="function"&&(l=jd(l._payload));const d=j.Children.toArray(l),f=d.find(U5);if(f){const h=f.props.children,g=d.map(m=>m===f?j.Children.count(h)>1?j.Children.only(null):j.isValidElement(h)?h.props.children:null:m);return N.jsx(t,{...c,ref:a,children:j.isValidElement(h)?j.cloneElement(h,void 0,g):null})}return N.jsx(t,{...c,ref:a,children:l})});return n.displayName=`${e}.Slot`,n}var L5=j5("Slot");function D5(e){const t=j.forwardRef((n,s)=>{let{children:a,...l}=n;if(iA(a)&&typeof jd=="function"&&(a=jd(a._payload)),j.isValidElement(a)){const c=B5(a),d=z5(l,a.props);return a.type!==j.Fragment&&(d.ref=s?xg(s,c):c),j.cloneElement(a,d)}return j.Children.count(a)>1?j.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var I5=Symbol("radix.slottable");function U5(e){return j.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===I5}function z5(e,t){const n={...t};for(const s in t){const a=e[s],l=t[s];/^on[A-Z]/.test(s)?a&&l?n[s]=(...d)=>{const f=l(...d);return a(...d),f}:a&&(n[s]=a):s==="style"?n[s]={...a,...l}:s==="className"&&(n[s]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}function B5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const qS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,VS=OE,$5=(e,t)=>n=>{var s;if(t?.variants==null)return VS(e,n?.class,n?.className);const{variants:a,defaultVariants:l}=t,c=Object.keys(a).map(h=>{const g=n?.[h],m=l?.[h];if(g===null)return null;const v=qS(g)||qS(m);return a[h][v]}),d=n&&Object.entries(n).reduce((h,g)=>{let[m,v]=g;return v===void 0||(h[m]=v),h},{}),f=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((h,g)=>{let{class:m,className:v,...b}=g;return Object.entries(b).every(_=>{let[E,S]=_;return Array.isArray(S)?S.includes({...l,...d}[E]):{...l,...d}[E]===S})?[...h,m,v]:h},[]);return VS(e,c,f,n?.class,n?.className)},q5=$5("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"}}),aA=j.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...a},l)=>{const c=s?L5:"button";return N.jsx(c,{className:HE(q5({variant:t,size:n,className:e})),ref:l,...a})});aA.displayName="Button";const V5=[{to:"/",label:"Início"},{to:"/consultoria",label:"Consultoria"},{to:"/treinamentos-in-company",label:"Treinamentos in-company"},{to:"/cases",label:"Cases"},{to:"/blog",label:"Conteúdos"},{to:"/sobre-a-nower",label:"Sobre a Nower"}],H5=()=>{const e=cT();return j.useEffect(()=>{console.error("404: rota inexistente acessada:",e.pathname)}
59,[e.pathname]),N.jsx(N5,{children:N.jsx("section",{className:"container py-20 md:py-28",children:N.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[N.jsx("p",{className:"font-heading text-6xl font-extrabold text-primary md:text-7xl",children:"404"}),N.jsx("h1",{className:"mt-4 font-heading text-3xl font-bold md:text-4xl",children:"Não encontramos esta página"}),N.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:"O endereço pode ter mudado ou o conteúdo não existe mais. Veja abaixo os caminhos principais do site ou fale com a gente."}),N.jsx("nav",{"aria-label":"Páginas principais",className:"mt-8 flex flex-wrap justify-center gap-3",children:V5.map(t=>N.jsx(Qt,{to:t.to,className:"rounded-full border border-foreground/15 px-4 py-2 text-sm font-medium transition-colors hover:border-primary hover:text-primary",children:t.label},t.to))}),N.jsx("div",{className:"mt-10",children:N.jsx(aA,{asChild:!0,size:"lg",children:N.jsx(Qt,{to:"/",hash:"contato",children:"Falar com a Nower"})})})]})})})},Zp="Nower | Consultoria de Aceleração de Resultados",em="A Nower acelera resultados de empresas líderes de mercado com gestão estratégica, OKRs, eficiência operacional e desenvolvimento de pessoas.";function F5(){return N.jsxs(N.Fragment,{children:[N.jsx("title",{children:"Página não encontrada | Nower"}),N.jsx("meta",{name:"robots",content:"noindex, follow"}),N.jsx(H5,{})]})}function G5({error:e,reset:t}){console.error(e);const n=Nt();return N.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:N.jsxs("div",{className:"max-w-md text-center",children:[N.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"Esta página não carregou"}),N.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Algo deu errado do nosso lado. V
59ocê pode tentar atualizar ou voltar para o início."}),N.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[N.jsx("button",{onClick:()=>{n.invalidate(),t()},className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Tentar novamente"}),N.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:"Voltar ao início"})]})]})})}const Ce=CP()({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ey()).catch(()=>{})},head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:Zp},{name:"description",content:em},{name:"author",content:rs},{property:"og:title",content:Zp},{property:"og:description",content:em},{property:"og:type",content:"website"},{property:"og:site_name",content:rs},{property:"og:locale",content:"pt_BR"},{property:"og:url",content:st},{property:"og:image",content:Pd},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{property:"og:image:alt",content:`${rs} — Consultoria de aceleração de resultados`},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:Zp},{name:"twitter:description",content:em},{name:"twitter:image",content:Pd},{name:"twitter:image:alt",content:`${rs} — Consultoria de aceleração de resultados`},{name:"robots",content:"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"}],links:[{rel:"stylesheet",href:V$},{rel:"icon",href:"/favicon.ico",type:"image/x-icon"},{rel:"preload",as:"font",type:"font/woff2",href:"/fonts/poppins-400-latin.woff2",crossOrigin:"anonymous"},{rel:"preload",as:"font",type:"font/woff2",href:"/fonts/prompt-800-latin.woff2",crossOrigin:"anonymous"},{rel:"preconnect",href:"https://d335luupugsy2.cloudfront.net",crossOrigin:"anonymous"},{rel:"preconnect",href:"https://www.clarity.ms",crossOrigin:"anonymous"},{rel:"preconnect",href:"https://www.googletagmanager.com",crossOrigin:"anonymous"},{rel:"dns-prefetch",href:"https://scripts.clarity.ms"},{rel:"dns-prefetch",href:"https://www.google-analytics.com"}],scripts:[{children:"window.dataLayer=window.dataLayer||[];"},{children:`(function () {
60  var triggered = false;
61  var listeners = ["scroll", "mousemove", "touchstart", "keydown", "click"];
62  function loadGTM() {
vendor: 328 bytes, lines 62-63
62
63    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','
63GTM-T4TZN7XN
vendor: 6 bytes, lines 63-64
63');
64  
64}
65  function loadClarity() {
66    (function (c, l, a, r, i, t, y) {
67      c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments); };
68      t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
69      y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
70    })(window, document, "clarity", "script", "vnjm957xu9");
71  }
72  function loadRDStation() {
73    var s = document.createElement("script");
74    s.type = "text/javascript"; s.async = true;
75    s.src = "https://d335luupugsy2.cloudfront.net/js/loader-scripts/6e9f2036-10c1-4aa8-b719-c57b263d33f3-loader.js";
76    document.body.appendChild(s);
77  }
78  function startWhatsAppFieldWatcher() {
79    function hideCampos() {
80      var campos = document.querySelectorAll('[name="cf_url_conversao_pipedrive"]');
81      if (!campos.length) return false;
82      var url = window.location.href;
83      campos.forEach(function (campo) {
84        if (campo.value !== url || campo.style.display !== "none") {
85          campo.value = url;
86          campo.dispatchEvent(new Event("change", { bubbles: true }));
87          campo.dispatchEvent(new Event("input", { bubbles: true }));
88          var c = campo.closest(".bricks-form__field") || campo.parentElement;
89          if (c) {
90            c.style.setProperty("display", "none", "important");
91            c.style.setProperty("visibility", "hidden", "important");
92            c.style.setProperty("height", "0", "important");
93            c.style.setProperty("margin", "0", "important");
94          }
95          campo.style.setProperty("display", "none", "important");
96        }
97      });
98      return true;
99    }
100    var mo = new MutationObserver(function () { hideCampos(); });
101    function stop() { try { mo.disconnect(); } catch (e) {} }
102    if (hideCampos()) { setTimeout(stop, 5000); }
103    mo.observe(document.body, { childList: true, subtree: true });
104    // Encerra o vigia depois de 20s para não observar o DOM indefinidamente
105    setTimeout(stop, 20000);
106  }
107  var analyticsLoaded = false;
108  var rdLoaded = false;
109  // O RD Station (pop-ups/botão) puxa uma folha externa com 19 famílias de
110  // fontes. Só entra depois de interação real ou 8s, fora da janela crítica.
111  function startRD() {
112    if (rdLoaded) return;
113    rdLoaded = true;
114    try { loadRDStation(); } catch (e) {}
115    try { startWhatsAppFieldWatcher(); } catch (e) {}
116  }
117  function hasConsent() {
118    try { return window.localStorage.getItem("nower-cookie-consent") === "accepted"; } catch (e) { return false; }
119  }
120  function loadAnalytics() {
121    if (analyticsLoaded || !hasConsent()) return;
122    analyticsLoaded = true;
123    try { loadGTM(); } catch (e) {}
124    try { loadClarity(); } catch (e) {}
125  }
126  // Chamado pelo aviso de cookies quando a pessoa aceita.
127  window.__nowerLoadAnalytics = function () { loadAnalytics(); };
128  function trigger() {
129    if (triggered) return;
130    triggered = true;
131    listeners.forEach(function (e) { window.removeEventListener(e, trigger); });
132    loadAnalytics();
133    startRD();
134  }
135  if (typeof window === "undefined") return;
136  listeners.forEach(function (e) { window.addEventListener(e, trigger, { passive: true }); });
137  if ("requestIdleCallback" in window) {
138    window.requestIdleCallback(loadAnalytics, { timeout: 2500 });
139  } else {
140    setTimeout(loadAnalytics, 3000);
141  }
142  setTimeout(startRD, 8000);
143})();`}]}),shellComponent:K5,component:Y5,notFoundComponent:F5,errorComponent:G5});function K5({children:e}){return N.jsxs("html",{lang:"pt-BR",children:[N.jsx("head",{children:N.jsx(YP,{})}),N.jsxs("body",{children:[N.jsx("a",{href:"#conteudo",className:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[100] focus:rounded focus:bg-nower-red focus:px-4 focus:py-2 focus:text-sm focus:font-bold focus:text-white",children:"Pular para o conteúdo"}),N.jsx("noscript",{children:N.jsx("iframe",{src:"https://www.googletagmanager.com/ns.html?id=GTM-T4TZN7XN",height:"0",width:"0",style:{display:"none",visibility:"hidden"}})}),e,N.jsx(QP,{})]})]})}function Y5(){const{queryClient:e}=Ce.useRouteContext();return N.jsx(VT,{client:e,children:N.jsx(x$,{features:q$,strict:!0,children:N.jsxs(cz,{children:[N.jsx(hI,{}),N.jsx(lT,{}),N.jsx(pz,{}),N.jsx(mz,{})]})})})}const Q5=ue("/vmo")({beforeLoad:()=>{throw Ve({to:"/consultoria/$slug",params:{slug:"vmo"},statusCode:301})}}),W5=ue("/treinamento-product-analytics")({beforeLoad:()=>{throw Ve({to:"/treinamentos-in-company/$slug",params:{slug:"product-analytics-para-pms"},statusCode:301})}}),X5=ue("/treinamento-ia-para-empresas")({beforeLoad:()=>{throw Ve({to:"/treinamentos-in-company/$slug",params:{slug:"ia-para-empresas"},statusCode:301})}}),J5=ue("/treinamento-ia-lideranca")({beforeLoad:()=>{throw Ve({to:"/treinamentos-in-company/$slug",params:{slug:"ia-para-liderancas"},statusCode:301})}});function Z5(e,t=155){const n=e.replace(/\s+/g," ").trim();if(n.length<=t)return n;const s=n.slice(0,t-1),a=s.lastIndexOf(" ");return`${(a>100?s.slice(0,a):s).replace(/[\s,.;:–-]+$/,"")}…`}function pt(e){const t={...e,description:Z5(e.description)},n=on(t.path),s=t.image?t.image.startsWith("http")?t.image:on(t.image):Pd,a=t.title.toLowerCase().includes("nower")?t.title:`${t.title} | ${rs}`,l=[{title:a},{name:"description",content:t.description},{property:"og:title",content:a},{property:"og:description",content:t.description},{property:"og:url",content:n},{property:"og:type",content:t.type??"website"},{property:"og:site_name",content:rs},{property:"og:locale",content:"pt_BR"},{property:"og:image",content:s}
143,{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{property:"og:image:alt",content:t.title},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:H$},{name:"twitter:title",content:a},{name:"twitter:description",content:t.description},{name:"twitter:image",content:s},{name:"twitter:image:alt",content:t.title}];if(t.keywords?.length&&l.push({name:"keywords",content:t.keywords.join(", ")}),t.noindex&&l.push({name:"robots",content:"noindex,nofollow"}),t.publishedTime&&l.push({property:"article:published_time",content:t.publishedTime}),t.modifiedTime&&l.push({property:"article:modified_time",content:t.modifiedTime}),t.author&&l.push({property:"article:author",content:t.author}),t.section&&l.push({property:"article:section",content:t.section}),t.tags)for(const h of t.tags)l.push({property:"article:tag",content:h});const c=[{rel:"canonical",href:n},{rel:"alternate",hrefLang:"pt-BR",href:n},{rel:"alternate",hrefLang:"x-default",href:n}];if(t.preloadImage){const h={rel:"preload",as:"image",href:t.preloadImage.href,fetchPriority:"high"};t.preloadImage.imagesrcset&&(h.imageSrcSet=t.preloadImage.imagesrcset),t.preloadImage.imagesizes&&(h.imageSizes=t.preloadImage.imagesizes),c.push(h)}const f=[eA,tA,...t.jsonLd??[]].map(h=>({type:"application/ld+json",children:JSON.stringify(h)}));return{meta:l,links:c,scripts:f}}function Xt(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,n)=>({"@type":"ListItem",position:n+1,name:t.name,item:on(t.path)}))}}function oA(e){return e?typeof e=="string"?{"@type":"Person",name:e}:{"@type":"Person",name:e.name,...e.url?{url:e.url}:{},...e.jobTitle?{jobTitle:e.jobTitle}:{},...e.sameAs?.length?{sameAs:e.sameAs}:{}}:{"@type":"Organization","@id":`${st}/#organization`,name:rs}}function e6(e){return{"@context":"https://schema.org","@type":"Article",mainEntityOfPage:{"@type":"WebPage","@id":on(e.url)},headline:e.headline,description:e.description,image:e.image?[e.image]:void 0,datePublished:e.datePublished,dateModified:e.dateModified??e.datePublished,author:oA(e.author),publisher:{"@id":`${st}/#organization`},articleSection:e.section,keywords:e.tags?.join(", "),inLanguage:"pt-BR"}}function lA(e){return{...e6(e),"@type":"BlogPosting"}}function nf(e){return{"@context":"https://schema.org","@type":"Service",name:e.name,description:e.description,serviceType:e.serviceType??"Consultoria",url:on(e.url),image:e.image,provider:{"@id":`${st}/#organization`},areaServed:["BR","LATAM"],inLanguage:"pt-BR"}}function hs(e){return{"@context":"https://schema.org","@type":"FAQPage",speakable:{"@type":"SpeakableSpecification",cssSelector:["[data-speakable]","h1","h2"]},mainEntity:e.map(t=>({"@type":"Question",name:t.q,acceptedAnswer:{"@type":"Answer",text:t.a}}))}}function rf(e){return{"@context":"https://schema.org","@type":"ItemList",itemListElement:e.map((t,n)=>({"@type":"ListItem",position:n+1,name:t.name,url:on(t.url)}))}}function fc(e){return{"@context":"https://schema.org","@type":"CollectionPage",name:e.name,description:e.description,url:on(e.url),isPartOf:{"@id":`${st}/#website`}}}function t6(e){return{"@context":"https://schema.org","@type":"AboutPage",name:e.name,description:e.description,url:on(e.url),mainEntity:{"@id":`${st}/#organization`}}}function n6(e){return{"@context":"https://schema.org","@type":"ProfessionalService","@id":`${st}${e.url}#service`,name:e.name,description:e.description,url:on(e.url),serviceType:e.serviceType??"Consultoria Empresarial",provider:{"@id":`${st}/#organization`},areaServed:e.areaServed??["BR","LATAM"],...e.priceRange?{priceRange:e.priceRange}:{},inLanguage:"pt-BR"}}function r6(e){const t=e.image?e.image.startsWith("http")?e.image:on(e.image):`${st}/og-default.jpg`,n=e.datePublished;return{"@context":"https://schema.org","@type":"Article","@id":`${st}${e.url}#case`,mainEntityOfPage:{"@type":"WebPage","@id":on(e.url)},headline:e.headline,description:e.description,image:[t],...n?{datePublished:n}:{},...e.dateModified??n?{dateModified:e.dateModified??n}:{},author:oA(e.author),about:{"@type":"Organization",name:e.client},publisher:{"@id":`${st}/#organization`},inLanguage:"pt-BR",articleSection:"Cases",mentions:e.outcomes.map(s=>({"@type":"PropertyValue",name:s.name,value:s.value}))}}const s6="/assets/hero-team-nower-dE7-H0Lg.webp",i6="/assets/hero-team-nower-DtI7rVQm.webp 320w, /assets/hero-team-nower-dE7-H0Lg.webp 640w, /assets/hero-team-nower-BbJx6g2o.webp 787w",a6=()=>Se(()=>import("./sobre-a-nower-CbZBh_9d.js"),__vite__mapDeps([0,1,2,3,4,5,6])),o6=[{name:"Carlos Felippe Cardoso",jobTitle:"CEO & Co-Founder",linkedin:"cfcresende"},{name:"Rodrigo de Toledo",jobTitle:"Co-Founder",linkedin:"rodrigodetoledo"},{name:"Marcos Garrido",jobTitle:"Head of Education & Co-Founder",linkedin:"mgarridobr"},{name:"Rafael Sabbagh",jobTitle:"Co-Founder",linkedin:"rafaelsabbagh"},{name:"Raphael Montenegro",jobTitle:"Head of Consultancy",linkedin:"raphaelmontenegro"},{name:"Rafaela Fonseca",jobTitle:"Partner & Strategic Consultant",linkedin:"rafaelafons"},{name:"Samira Tavares",jobTitle:"Partner & Strategic Consultant",linkedin:"samirarst"},{name:"Magno de Santana",jobTitle:"Partner & Strategic Consultant",linkedin:"magno-de-santana"}],l6=o6.map(e=>({"@context":"https://schema.org","@type":"Person",name:e.name,jobTitle:e.jobTitle,worksFor:{"@id":`${st}/#organization`},sameAs:[`https://www.linkedin.com/in/${e.linkedin}/`]})),c6=ue("/sobre-a-nower")({component:Oe(a6,"component"),head:()=>pt({title:"Sobre a Nower | Quem Somos",description:"Conheça a Nower: nossa história, time e essência. Consultoria de aceleração de resultados para empresas líderes de mercado.",path:"/sobre-a-nower",keywords:["sobre Nower","consultoria","aceleração de resultados","história Nower"],jsonLd:[t6({name:"Sobre a Nower",description:"Quem somos, nossa história e essência.",url:"/sobre-a-nower"}),Xt([{name:"Início",path:"/"},{name:"Sobre a Nower",path:"/sobre-a-nower"}]),...l6,hs([{q:"O que é a Nower?",a:"A Nower é uma consultoria de aceleração de resultados que combina gestão estratég
143ica, OKRs, eficiência operacional e desenvolvimento de pessoas para empresas líderes de mercado no Brasil e LATAM."},{q:"Onde a Nower atua?",a:"Atendemos empresas em todo o Brasil e na América Latina, presencialmente e remoto, com projetos de consultoria, treinamentos in-company e programas de liderança."},{q:"Quais empresas já trabalharam com a Nower?",a:"Entre nossos clientes estão Sicredi, Gerdau, UPL, Livelo, Ambev, Coca-Cola, 3M, Algar, Alelo e PagSeguro, entre outras referências de mercado."}])],preloadImage:{href:s6,imagesrcset:i6,imagesizes:"(max-width: 1024px) 90vw, 560px"}})}),u6=ue("/sobre")({beforeLoad:()=>{throw Ve({to:"/sobre-a-nower",replace:!0,statusCode:301})}}),d6=()=>Se(()=>import("./portfolio-treinamentos-in-company-DKy2wrER.js"),__vite__mapDeps([7,2,8,9])),f6=ue("/portfolio-treinamentos-in-company")({component:Oe(d6,"component"),head:()=>pt({title:"Portfólio de Treinamentos In Company",description:"Baixe o portfólio completo de treinamentos in company da Nower, organizado por persona: liderança, gestão estratégica, produtos, eficiência operacional e IA.",path:"/portfolio-treinamentos-in-company",keywords:["portfólio treinamentos in company","treinamentos corporativos","desenvolvimento de lideranças","Nower"]})}),h6=()=>Se(()=>import("./politica-de-privacidade-DWZCFtnd.js"),[]),p6=ue("/politica-de-privacidade")({component:Oe(h6,"component"),head:()=>pt({title:"Política de Privacidade | Nower",description:"Como a Nower coleta, usa, armazena e protege dados pessoais, em conformidade com a LGPD, e como exercer seus direitos.",path:"/politica-de-privacidade",jsonLd:[Xt([{name:"Início",path:"/"},{name:"Política de Privacidade",path:"/politica-de-privacidade"}])]})}),m6=ue("/okrs-cooperativas")({beforeLoad:()=>{throw Ve({to:"/consultoria/$slug",params:{slug:"okr-cooperativas"},statusCode:301})}}),g6=ue("/okrs")({beforeLoad:()=>{throw Ve({to:"/consultoria/$slug",params:{slug:"okr"},statusCode:301})}}),y6=ue("/okr")({beforeLoad:()=>{throw Ve({to:"/consultoria/$slug",params:{slug:"okr"},statusCode:301})}}),v6=()=>Se(()=>import("./obrigado-CtLQiJg8.js"),__vite__mapDeps([10,6,9,3,4])),b6=ue("/obrigado")({component:Oe(v6,"component"),head:()=>pt({title:"Obrigado pelo contato | Nower",description:"Recebemos sua mensagem. Em breve nosso time entrará em contato.",path:"/obrigado",noindex:!0})}),w6=()=>Se(()=>import("./modelo-nower-CrXXazZT.js"),__vite__mapDeps([11,2,5,6,3,4])),_6=ue("/modelo-nower")({component:Oe(w6,"component"),head:()=>pt({title:"Modelo Nower | Gestão Produtizado, Enxuto e Humano",description:"O Modelo Nower é uma proposta de gestão estruturada e flexível, orientada por três princípios — Produtizado, Enxuto e Humano — para acelerar resultados.",path:"/modelo-nower",keywords:["modelo Nower","modelo de gestão","gestão produtizada","gestão enxuta"],jsonLd:[rf([{name:"Produtizado",url:"/modelo-nower"},{name:"Enxuto",url:"/modelo-nower"},{name:"Humano",url:"/modelo-nower"}]),Xt([{name:"Início",path:"/"},{name:"Modelo Nower",path:"/modelo-nower"}]),hs([{q:"O que é o Modelo Nower?",a:"Um modelo de gestão orientado por três princípios — Produtizado, Enxuto e Humano — para acelerar resultados de empresas líderes."}])]})}),S6=ue("/jornada-lideranca")({beforeLoad:()=>{throw Ve({to:"/treinamentos-in-company/$slug",params:{slug:"jornada-de-lideranca"},statusCode:301})}}),x6=ue("/ia-para-produtos")({beforeLoad:()=>{throw Ve({to:"/treinamentos-in-company/$slug",params:{slug:"ia-para-produtos"},statusCode:301})}}),T6=ue("/gmo-gestao-da-mudanca-organizacional")({beforeLoad:()=>{throw Ve({to:"/consultoria/$slug",params:{slug:"gmo"},statusCode:301})}}),E6=[{id:"okr",term:"OKR",definition:"Objectives and Key Results (Objetivos e Resultados-Chave). Framework de gestão por resultados em que cada objetivo qualitativo é medido por 3 a 5 resultados-chave quantitativos, com ciclos curtos (geralmente trimestrais) de planejamento, execução e revisão."},{id:"modelo-nower",term:"Modelo Nower",definition:"Proposta de gestão estruturada e flexível organizada por três princípios complementares: Produtizado (entregar valor de forma iterativa e modular), Enxuto (eliminar desperdício e maximizar foco) e Humano (colocar pessoas no centro com propósito, autonomia e desenvolvimento contínuo)."},{id:"produtizado",term:"Produtizado",definition:"Princípio que trata cada iniciativa de gestão como um produto vivo: com hipóteses, ciclos curtos de entrega, métricas claras de uso e melhoria contínua orientada a valor percebido pelo cliente final."},{id:"enxuto",term:"Enxuto",definition:"Princípio derivado do pensamento Lean. Eliminar desperdício, reduzir handoffs, encurtar lead time e concentrar esforço nas atividades que geram resultado de negócio mensurável."},{id:"humano",term:"Humano",definition:"Princípio que coloca as pessoas no centro: autonomia com clareza de objetivos, desenvolvimento contínuo, segurança psicológica e cultura de feedback como motor de performance sustentável."},{id:"unfix",term:"unFix",definition:"Modelo organizacional criado por Jurgen Appelo. Combina padrões de design organizacional em blocos reutilizáveis (crews, bases, forums) para times se reorganizarem rapidamente sem rituais pesados de transformação."},{id:"vmo",term:"VMO",definition:"Value Management Office. Escritório que orquestra a entrega de valor da empresa conectando estratég
143ia, OKRs, portfólio e times de execução — o equivalente moderno e ágil de um PMO tradicional."},{id:"gmo",term:"GMO",definition:"Gestão da Mudança Organizacional. Disciplina que apoia pessoas e times durante transformações — engajamento de stakeholders, comunicação, treinamento e sustentação — para que a mudança se traduza em adoção e resultado."},{id:"aceleracao-resultados",term:"Aceleração de Resultados",definition:"Abordagem da Nower que combina OKRs, ritmo de execução, eficiência operacional e desenvolvimento de lideranças para empresas líderes destravarem performance no curto e médio prazo."},{id:"in-company",term:"Treinamento In-Company",definition:"Programa de capacitação desenhado sob medida para uma única empresa, conduzido com o time do cliente — presencial ou remoto — em temas como liderança, OKRs, gestão de produtos, IA aplicada e estratégia."}],R6=()=>Se(()=>import("./glossario-BdFhxiy0.js"),[]),oo="/glossario",A6="Glossário Nower | OKRs, Modelo Nower e gestão",C6="Definições curtas e canônicas dos termos que usamos em consultoria, treinamentos e nos conteúdos do Modelo Nower.";function O6(){return{"@context":"https://schema.org","@type":"DefinedTermSet",name:"Glossário Nower",url:on(oo),inLanguage:"pt-BR",hasDefinedTerm:E6.map(e=>({"@type":"DefinedTerm","@id":`${on(oo)}#${e.id}`,name:e.term,description:e.definition,inDefinedTermSet:on(oo),url:`${on(oo)}#${e.id}`}))}}const k6=ue("/glossario")({component:Oe(R6,"component"),head:()=>pt({title:A6,description:C6,path:oo,keywords:["glossário OKR","Modelo Nower","unFix","VMO","GMO"],jsonLd:[O6(),Xt([{name:"Início",path:"/"},{name:"Glossário",path:oo}])]})}),N6=ue("/gestao-de-produto-5-0-treinamentos-corporativos")({beforeLoad:()=>{throw Ve({to:"/treinamentos-in-company/$slug",params:{slug:"workshops-gestao-de-produtos-5-0"},statusCode:301})}}),M6=ue("/conteudos")({beforeLoad:()=>{throw Ve({to:"/blog",statusCode:301})}}),P6=ue("/cases-livelo")({beforeLoad:()=>{throw Ve({to:"/cases/$slug",params:{slug:"livelo"},replace:!0,statusCode:301})}}),j6=ue("/case-upl")({beforeLoad:()=>{throw Ve({to:"/cases/$slug",params:{slug:"upl"},replace:!0,statusCode:301})}}),L6=ue("/case-sicredi")({beforeLoad:()=>{throw Ve({to:"/cases/$slug",params:{slug:"sicredi"},replace:!0,statusCode:301})}}),D6=ue("/case-gerdau")({beforeLoad:()=>{throw Ve({to:"/cases/$slug",params:{slug:"gerdau"},replace:!0,statusCode:301})}}),I6=()=>Se(()=>import("./admin-CaGZubZ5.js"),__vite__mapDeps([12,13])),U6=ue("/admin")({component:Oe(I6,"component"),head:()=>({meta:[{title:"Nower CMS"},{name:"description",content:"Painel administrativo"},{name:"robots",content:"noindex,nofollow"}]})});async function z6(e){const{data:t,error:n}=await zt.from("siteNower_categories").select("id,name,slug,tagline,description,applies_to_training,applies_to_consulting").eq("slug",e).eq("is_active",!0).maybeSingle();if(n)throw n;if(!t)return{category:null,trainings:[],services:[]};const s=t,{data:a,error:l}=await zt.from("siteNower_training_categories").select("training_id, sort_order").eq("category_id",s.id).order("sort_order");if(l)throw l;const c=(a||[]).map(v=>v.training_id);let d=[];if(c.length){const{data:v,error:b}=await zt.from("siteNower_trainings").select("id,slug,title,tagline,description,format_text,formats,objectives,benefits").in("id",c).eq("is_published",!0);if(b)throw b;const _=new Map(c.map((E,S)=>[E,S]));d=(v||[]).slice().sort((E,S)=>_.get(E.id)-_.get(S.id))}const{data:f,error:h}=await zt.from("siteNower_consulting_service_categories").select("service_id, sort_order").eq("category_id",s.id).order("sort_order");if(h)throw h;const g=(f||[]).map(v=>v.service_id);let m=[];if(g.length){const{data:v,error:b}=await zt.from("siteNower_consulting_services").select("id,slug,title,short_name,hero_subheadline,is_published").in("id",g).eq("is_published",!0);if(b)throw b;const _=(v||[]).map(O=>O.id),[E,S]=await Promise.all([_.length?zt.from("siteNower_consulting_objectives").select("service_id,title,description,sort_order").in("service_id",_).order("sort_order"):Promise.resolve({data:[]}),_.length?zt.from("siteNower_consulting_deliverables").select("service_id,title,de
143scription,sort_order").in("service_id",_).order("sort_order"):Promise.resolve({data:[]})]),x=new Map;(E.data||[]).forEach(O=>{const I=x.get(O.service_id)||[];I.push({title:O.title,description:O.description}),x.set(O.service_id,I)});const R=new Map;(S.data||[]).forEach(O=>{const I=R.get(O.service_id)||[];I.push({title:O.title,description:O.description}),R.set(O.service_id,I)});const C=new Map(g.map((O,I)=>[O,I]));m=(v||[]).slice().sort((O,I)=>C.get(O.id)-C.get(I.id)).map(O=>({...O,objectives:x.get(O.id)||[],deliverables:R.get(O.id)||[]}))}return{category:s,trainings:d,services:m}}const B6=e=>({queryKey:["category-page",e],queryFn:()=>fs(()=>z6(e),()=>e5(e),t=>!t.category),staleTime:300*1e3}),$6=()=>Se(()=>import("./_slug-47twRYpc.js"),__vite__mapDeps([14,15,2,6,16,17,4,18,19,20,21,22,23,24,25,26,27,5,3])),q6=ue("/$slug")({loader:async({params:e,context:t})=>{const n=await t.queryClient.ensureQueryData(B6(e.slug));if(!n.category){const{data:s}=await zt.from("siteNower_trainings").select("id").eq("slug",e.slug).eq("is_published",!0).maybeSingle();throw s?Ve({to:"/treinamentos-in-company/$slug",params:{slug:e.slug},replace:!0}):bo()}return{kind:"category",name:n.category.name,tagline:n.category.tagline}},component:Oe($6,"component"),head:({loaderData:e,params:t})=>{const n=`${e?.name??"Treinamentos"} | Nower`,s=e?.tagline??"Treinamentos in company da Nower.",a=`/${t.slug}`;return pt({title:n,description:s,path:a,jsonLd:[fc({name:e?.name??"Treinamentos",description:s,url:a}),Xt([{name:"Início",path:"/"},{name:"Treinamentos in-company",path:"/treinamentos-in-company"},{name:e?.name??t.slug,path:a}])]})}}),V6=async()=>fs(async()=>{const{data:e,error:t}=await zt.from("siteNower_categories").select(`id, slug, name, tagline, description,
144           services:siteNower_consulting_service_categories(
145             sort_order,
146             service:siteNower_consulting_services(id, slug, title, short_name, is_published)
147           )`).eq("applies_to_consulting",!0).eq("is_active",!0).order("sort_order",{ascending:!0});if(t)throw t;return e??[]},async()=>await l5(),e=>e.length===0),H6=async()=>{const{data:e}=await zt.from("siteNower_clients").select("id, name, logo_url").order("sort_order");return(e||[]).filter(t=>t.logo_url&&t.logo_url.trim()!=="")};async function F6(){const[e,t]=await Promise.all([V6(),H6()]);return{categories:e,clients:t}}const cA=()=>({queryKey:["consultoria-page"],queryFn:F6,staleTime:5*6e4}),G6="/assets/hero-bg-10-DzuEqeDS.webp",K6="/assets/hero-bg-10-s9nVHy49.webp 480w, /assets/hero-bg-10-DzuEqeDS.webp 960w, /assets/hero-bg-10-6kNGgh5m.webp 1280w",Y6=()=>Se(()=>import("./index-ae9wxiIm.js"),__vite__mapDeps([28,1,4,29,15,2,6,25,30,20,31,18,32,33,34,5,3,35,36,37,38,23,26,27,39,40,41,42])),Q6=zt,W6=ue("/")({component:Oe(Y6,"component"),loader:async({context:e})=>{const t=e.queryClient.ensureQueryData(cA()).catch(()=>{}),n=await fs(async()=>{const{data:s,error:a}=await Q6.from("siteNower_general_faqs").select("question, answer").eq("is_active",!0).order("sort_order");if(a)throw a;return s||[]},n5,s=>s.length===0).catch(()=>[]);return await t,{faqs:n}},head:({loaderData:e})=>{const t=e?.faqs??[],n=[eA,tA,Xt([{name:"Início",path:"/"}]),rf([{name:"Sobre a Nower",url:"/sobre-a-nower"},{name:"Consultoria",url:"/consultoria"},{name:"Treinamentos in-company",url:"/treinamentos-in-company"},{name:"Modelo Nower",url:"/modelo-nower"},{name:"Blog",url:"/blog"},{name:"Leadership Club",url:"/leadership-club"}])];return t.length>0&&n.push(hs(t.map(s=>({q:s.question,a:s.answer})))),pt({title:"Nower | Consultoria de Aceleração de Resultados",description:"Consultoria de aceleração de resultados e treinamentos in company com framework OKR, Lean Portfolio Management (LPM), Agilidade Organizacional e Business Agility para empresas líderes de mercado.",path:"/",keywords:["consultoria de resultados","framework OKR","Lean Portfolio Management","Agilidade Organizacional","Business Agility","liderança","treinamento in company","performance","cultura organizacional","Nower"],jsonLd:n,preloadImage:{href:G6,imagesrcset:K6,imagesizes:"100vw"}})}}),X6=()=>({...ey(),select:e=>e.categories}),J6=()=>Se(()=>import("./treinamentos-in-company.index-xMVrm8Wp.js"),__vite__mapDeps([43,2,36,4,34,6,5,3,35,15,31,25,30,16,37,44,17,45,32,23,9])),Z6=ue("/treinamentos-in-company/")({loader:({context:e})=>e.queryClient.ensureQueryData(X6()),component:Oe(J6,"component"),head:({loaderData:e})=>{const t=Array.isArray(e)?e.filter(n=>n.slug&&n.name).map(n=>({name:n.name,url:`/${n.slug}`})):[];return pt({title:"Treinamentos In Company para Líderes e Times | Nower",description:"Treinamentos corporativos, workshops e palestras em Liderança, OKRs, IA, Produtos e Estratégia para desenvolver lideranças e times de alta performance.",path:"/treinamentos-in-company",keywords:["treinamento in company","treinamento corporativo","workshop liderança","treinamento OKRs"],jsonLd:[fc({name:"Treinamentos In Company",description:"Catálogo de treinamentos corporativos da Nower.",url:"/treinamentos-in-company"}),Xt([{name:"Início",path:"/"},{name:"Treinamentos in-company",path:"/treinamentos-in-company"}]),hs([{q:"O que é um treinamento in company?",a:"É um programa de capacitação desenhado sob medida para uma única empresa, conduzido com o time do cliente — presencial ou remoto — em temas como liderança, OKRs, gestão de produtos, IA aplicada e estratég
147ia."},{q:"Quais temas de treinamento a Nower oferece?",a:"Trilhas de Liderança e Cultura, OKRs e Gestão de Resultados, Produtos e Projetos, IA aplicada à gestão, Estratégia e Eficiência Operacional, todas customizáveis ao contexto da empresa."},{q:"Como funciona a customização dos treinamentos?",a:"Antes do programa, fazemos um diagnóstico com a liderança do cliente para adaptar conteúdo, cases e dinâmicas à realidade da empresa, garantindo aplicação prática no dia a dia."},{q:"Em quais formatos os treinamentos são entregues?",a:"Workshops intensivos, trilhas de desenvolvimento de média duração, palestras executivas e programas blended (presencial + remoto + materiais assíncronos)."}]),...t.length?[rf(t)]:[]]})}}),e8=()=>Se(()=>import("./leadership-club.index-DjTTAraD.js"),__vite__mapDeps([46,47,48,49,44,50,21,51])),t8=ue("/leadership-club/")({component:Oe(e8,"component"),head:()=>pt({title:"Leadership Club | Nower",description:"Conteúdos premium para líderes que transformam organizações: estratégia, gestão e cultura de alta performance.",path:"/leadership-club",keywords:["leadership club","liderança","alta performance","cultura organizacional"],jsonLd:[{"@context":"https://schema.org","@type":"Blog",name:"Leadership Club",url:`${st}/leadership-club`,description:"Conteúdos premium para líderes.",publisher:{"@id":`${st}/#organization`},inLanguage:"pt-BR"},fc({name:"Leadership Club",description:"Conteúdos premium para líderes.",url:"/leadership-club"}),Xt([{name:"Início",path:"/"},{name:"Leadership Club",path:"/leadership-club"}]),hs([{q:"O que é o Leadership Club da Nower?",a:"É a curadoria de conteúdos premium da Nower para lideranças: artigos, frameworks, provocações e bastidores de transformações reais em empresas líderes de mercado."},{q:"Para quem é o Leadership Club?",a:"Para executivos, diretores e gerentes seniores que querem ir além do óbvio em estratégia, gestão, cultura e alta performance."},{q:"Quanto custa o Leadership Club?",a:"O acesso aos conteúdos do Leadership Club é gratuito — basta navegar pelas publicações no site da Nower."}])]})}),n8="/assets/hero-consultoria-BKWAMtDA.webp",r8="/assets/hero-consultoria-BXnMfnD0.webp 480w, /assets/hero-consultoria-BKWAMtDA.webp 960w, /assets/hero-consultoria-B_zv_1Ra.webp 979w",s8=()=>Se(()=>import("./consultoria.index-CyRiUnq6.js"),__vite__mapDeps([52,1,4,34,6,5,3,35,2,29,15,25,30,20,31,18,32,33,22,26,27])),i8=ue("/consultoria/")({loader:({context:e})=>e.queryClient.ensureQueryData(cA()),component:Oe(s8,"component"),head:()=>pt({title:"Consultoria Empresarial de Resultados e OKRs | Nower",description:"Consultoria de aceleração de resultados: OKRs, gestão estratégica, eficiência operacional e desenvolvimento de pessoas para empresas líderes.",path:"/consultoria",keywords:["consultoria empresarial","OKRs","gestão de resultados","consultoria estratégica"],jsonLd:[n6({name:"Consultoria Nower",description:"Consultoria de aceleração de resultados para empresas líderes de mercado.",url:"/consultoria",serviceType:"Consultoria de Aceleração de Resultados",areaServed:["BR","LATAM"]}),nf({name:"Consultoria Nower",description:"Consultoria de aceleração de resultados para empresas líderes de mercado.",url:"/consultoria",serviceType:"Consultoria Empresarial"}),Xt([{name:"Início",path:"/"},{name:"Consultoria",path:"/consultoria"}]),hs([{q:"O que a Nower faz em uma consultoria?",a:"Acelera resultados de empresas líderes através de gestão de resultados, OKRs, eficiência operacional e desenvolvimento de pessoas."},{q:"Para quem é a consultoria da Nower?",a:"Empresas líderes de mercado que querem destravar performance, alinhar estratégia e cultura e acelerar entregas."}])],preloadImage:{href:n8,imagesrcset:r8,imagesizes:"100vw"}})}),ty=zt,uA="id, slug, sort_order, internal_name, card_headline, card_summary, card_tag, hero_image_url, hero_image_alt, client:siteNower_clients(id, name, logo_url)";async function a8(){const{data:e,error:t}=await ty.from("siteNower_cases").select(uA).eq("published",!0).order("sort_order",{ascending:!0});if(t)throw t;return e||[]}const o8=`*,
148  client:siteNower_clients(id, name, logo_url),
149  challenges:siteNower_case_challenges(*),
150  solutions:siteNower_case_solutions(*),
151  metrics:siteNower_case_metrics(*),
152  learnings:siteNower_case_learnings(*),
153  transformation_steps:siteNower_case_transformation_steps(*),
154  related_contents:siteNower_case_related_contents(*),
155  services:siteNower_case_consulting_services(sort_order, service:siteNower_consulting_services(id, slug, title, is_published)),
156  trainings:siteNower_case_trainings(sort_order, training:siteNower_trainings(id, slug, title, is_published))`,qs=e=>[...e||[]].sort((t,n)=>Number(t.sort_order??0)-Number(n.sort_order??0));async function l8(e){const{data:t,error:n}=await ty.from("siteNower_cases").select(o8).eq("slug",e).eq("published",!0).maybeSingle();if(n)throw n;if(!t)return null;const s=t,a=qs(s.services||[]).map(d=>d.service).filter(d=>!!d&&d.is_published!==!1).map(({id:d,slug:f,title:h})=>({id:d,slug:f,title:h})),l=qs(s.trainings||[]).map(d=>d.training).filter(d=>!!d&&d.is_published!==!1).map(({id:d,slug:f,title:h})=>({id:d,slug:f,title:h})),c={...s};return delete c.services,delete c.trainings,{...c,hero_tags:s.hero_tags??[],hero_stats:s.hero_stats??[],challenges:qs(s.challenges),solutions:qs(s.solutions),metrics:qs(s.metrics),learnings:qs(s.learnings),transformation_steps:qs(s.transformation_steps),related_contents:qs(s.related_contents),related_services:a,related_trainings:l}}const c8=()=>({queryKey:["cases","list"],queryFn:()=>fs(a8,r5,e=>e.length===0),staleTime:300*1e3}),u8=e=>({queryKey:["cases","detail",e],queryFn:()=>fs(()=>l8(e),()=>s5(e),t=>!t),staleTime:300*1e3});async function d8(e){return fs(()=>f8(e),()=>a5(e),t=>t.length===0)}async function f8(e){const{data:t,error:n}=await ty.from("siteNower_case_consulting_services").select(`sort_order, case:siteNower_cases(${uA}, published)`).eq("service_id",e).order("sort_order",{ascending:!0});if(n)throw n;return(t||[]).map(s=>s.case).filter(s=>!!s&&s.published).map(s=>({id:s.id,slug:s.slug,sort_order:s.sort_order,internal_name:s.internal_name,card_headline:s.card_headline,card_summary:s.card_summary,card_tag:s.card_tag,hero_image_url:s.hero_image_url,hero_image_alt:s.hero_image_alt,client:s.client}))}const h8=()=>Se(()=>import("./cases.index-DdCNWQ5B.js"),__vite__mapDeps([53,15,54])),Yu="/cases",p8="Cases | Nower",HS="Resultados concretos da Nower com empresas líderes. Aceleração de resultados, OKRs e transformação cultural.",m8=ue("/cases/")({loader:({context:e})=>e.queryClient.ensureQueryData(c8()),component:Oe(h8,"component"),head:({loaderData:e})=>{const t=Array.isArray(e)?e.filter(n=>n.slug&&(n.internal_name||n.card_headline)).map(n=>({name:n.internal_name||n.card_headline,url:`${Yu}/${n.slug}`})):[];return pt({title:p8,description:HS,path:Yu,keywords:["cases Nower","consultoria resultados","OKRs empresas"],jsonLd:[fc({name:"Cases",description:HS,url:Yu}),...t.length?[rf(t)]:[],Xt([{name:"Início",path:"/"},{name:"Cases",path:Yu}])]})}}),tm="https://blog.nower.global/wp-json/wp/v2";let no=null;const g8=6e4,ny=async()=>{const e=Date.now();if(no&&e-no.ts<g8)return no.value;try{const{data:t}=await zt.from("siteNower_settings").select("value").eq("key","wp_api_base_url").maybeSingle(),n=t?.value?.trim()||tm;return no={value:n,ts:e},n}catch{return no={value:tm,ts:e},tm}},kH=()=>{no=null},sf=(e,t,n={})=>{const s=new URL(`${e.replace(/\/$/,"")}/${t.replace(/^\//,"")}`);
156return Object.entries(n).forEach(([a,l])=>{l==null||l===""||(Array.isArray(l)?l.length&&s.searchParams.set(a,l.join(",")):s.searchParams.set(a,String(l)))}),s.toString()},y8=6e3,v8=15*6e4,Ol=new Map,b8=e=>new Promise(t=>setTimeout(t,e)),w8=async(e,t)=>{const n=new AbortController,s=setTimeout(()=>n.abort(),t);try{const a=await fetch(e,{headers:{Accept:"application/json"},signal:n.signal});if(!a.ok){const l=new Error(`WP API error ${a.status}`);throw l.status=a.status,l}return{body:await a.text(),total:Number(a.headers.get("x-wp-total")||0),totalPages:Number(a.headers.get("x-wp-totalpages")||1)}}finally{clearTimeout(s)}},ry=async(e,t={})=>{const n=t.cache!==!1,s=e,a=Date.now();if(n){const f=Ol.get(s);if(f&&a-f.ts<v8)return{body:f.body,total:f.total,totalPages:f.totalPages}}const l=t.timeoutMs??y8;let c;for(let f=0;f<2;f++)try{const h=await w8(e,l);return n&&(Ol.size>200&&Ol.clear(),Ol.set(s,{ts:Date.now(),...h})),h}catch(h){c=h;const g=h.status,m=g===void 0||g===429||g>=500;if(f===0&&m){await b8(600);continue}break}const d=n?Ol.get(s):void 0;if(d)return{body:d.body,total:d.total,totalPages:d.totalPages};throw c},_8=["id","date","modified","slug","link","title","excerpt","categories","author","featured_media","jetpack_featured_media_url","_links.wp:featuredmedia","_links.author"].join(","),NH=async(e={})=>{const t=e.baseUrl||await ny(),n=sf(t,"posts",{_embed:"wp:featuredmedia,author",_fields:_8,per_page:e.perPage??12,page:e.page??1,categories:e.categories,categories_exclude:e.excludeCategories,search:e.search,orderby:"date",order:"desc"}),{body:s,total:a,totalPages:l}=await ry(n);return{posts:JSON.parse(s),total:a,totalPages:l}},dA=async(e,t)=>{const n=await ny(),s=sf(n,"posts",{_embed:1,slug:e}),{body:a}=await ry(s);return JSON.parse(a)[0]||null},S8=async e=>{const t=e||await ny(),n=sf(t,"categories",{per_page:100,hide_empty:0}),{body:s}=await ry(n);return JSON.parse(s)},MH=async e=>{const t=performance.now();try{const n=sf(e,"posts",{per_page:1,_fields:"id,date,modified"}),s=await fetch(n,{headers:{Accept:"application/json"}});if(!s.ok)return{ok:!1,latencyMs:Math.round(performance.now()-t),error:`HTTP ${s.status}`};const a=Number(s.headers.get("x-wp-total")||0),l=await s.json(),c=await S8(e).catch(()=>[]);return{ok:!0,latencyMs:Math.round(performance.now()-t),totalPosts:a,totalCategories:c.length,lastPublishedAt:l[0]?.date}}catch(n){return{ok:!1,latencyMs:Math.round(performance.now()-t),error:n instanceof Error?n.message:"Erro desconhecido"}}},x8={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",hellip:"…",mdash:"—",ndash:"–",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",laquo:"«",raquo:"»",bull:"•",middot:"·",deg:"°",euro:"€",pound:"£",copy:"©",reg:"®",trade:"™",eacute:"é",ccedil:"ç",atilde:"ã",otilde:"õ",aacute:"á",oacute:"ó",iacute:"í",uacute:"ú",acirc:"â",ecirc:"ê",ocirc:"ô",agrave:"à"},FS=(e,t)=>{try{return Number.isFinite(e)?String.fromCodePoint(e):t}catch{return t}},T8=e=>e&&e.replace(/&#x([0-9a-f]+);/gi,(t,n)=>FS(parseInt(n,16),t)).replace(/&#(\d+);/g,(t,n)=>FS(parseInt(n,10),t)).replace(/&([a-z]+[0-9]*);/gi,(t,n)=>{const s=n.toLowerCase();return x8[s]??t}),Xi=e=>T8(e.replace(/<[^>]*>/g,"")).replace(/\s+/g," ").trim(),PH=e=>{const n=Xi(e).split(/\s+/).filter(Boolean).length;return Math.max(1,Math.round(n/220))},jH=e=>{try{return new Date(e).toLocaleDateString("pt-BR",{day:"2-digit",month:"long",year:"numeric"})}catch{return e}},fA=e=>{const t=e._embedded?.["wp:featuredmedia"]?.[0];return t?.source_url?{src:t.source_url,alt:t.alt_text||Xi(e.title.rendered)}:e.jetpack_featured_media_url?{src:e.jetpack_featured_media_url,alt:Xi(e.title.rendered)}:null},hA=e=>{const t=e._embedded?.author?.[0];if(!t)return null;const n=t.avatar_urls||{};return{name:t.name,avatar:n[96]||n[48]||n[24],url:t.url||t.link,description:t.description}},E8=(e,t)=>{const s=(e._embedded?.["wp:term"]||[]).find(a=>a[0]?.taxonomy==="category")||[];return s.length?s.map(a=>({id:a.id,name:a.name,slug:a.slug})):t?.length&&e.categories?.length?e.categories.map(a=>t.find(l=>l.id===a)).filter(a=>!!a).map(a=>({id:a.id,name:a.name,slug:a.slug})):[]},R8=()=>Se(()=>import("./blog.index-aJidfPUg.js"),__vite__mapDeps([55,47,48,49,44,50,21,51])),A8=ue("/blog/")({component:Oe(R8,"component"),head:()=>pt({title:"Blog | Nower",description:"Artigos sobre aceleração de resultados, OKRs, gestão estratég
156ica, liderança e transformação organizacional.",path:"/blog",keywords:["blog Nower","OKRs","liderança","gestão de resultados","performance"],jsonLd:[fc({name:"Blog Nower",description:"Artigos sobre aceleração de resultados e liderança.",url:"/blog"}),Xt([{name:"Início",path:"/"},{name:"Blog",path:"/blog"}])]})}),C8=ue("/treinamentos-in-company/soft-skills")({beforeLoad:()=>{throw Ve({to:"/$slug",params:{slug:"soft-skills"},statusCode:301})}}),O8=ue("/treinamentos-in-company/lideranca")({beforeLoad:()=>{throw Ve({to:"/$slug",params:{slug:"lideranca"},statusCode:301})}}),k8=ue("/treinamentos-in-company/inteligencia-artificial-treinamentos-in-company")({beforeLoad:()=>{throw Ve({to:"/$slug",params:{slug:"inteligencia-artificial"},statusCode:301})}}),N8=ue("/treinamentos-in-company/gestao-estrategica-de-resultados")({beforeLoad:()=>{throw Ve({to:"/$slug",params:{slug:"gestao-estrategica-de-resultados"},statusCode:301})}}),M8=ue("/treinamentos-in-company/gestao-de-times")({beforeLoad:()=>{throw Ve({to:"/$slug",params:{slug:"gestao-de-times"},statusCode:301})}}),P8=ue("/treinamentos-in-company/gestao-de-produtos")({beforeLoad:()=>{throw Ve({to:"/$slug",params:{slug:"gestao-de-produtos"},statusCode:301})}}),j8=ue("/treinamentos-in-company/eficiencia-operacional")({beforeLoad:()=>{throw Ve({to:"/$slug",params:{slug:"eficiencia-operacional"},statusCode:301})}});async function L8(e){const t=zt,{data:n,error:s}=await t.from("siteNower_trainings").select(`*,
157       modules:siteNower_modules(*),
158       trainer_links:siteNower_training_trainers(sort_order, trainer:siteNower_trainers(*)),
159       testimonials:siteNower_testimonials(*),
160       faq_links:siteNower_training_general_faqs(general_faq:siteNower_general_faqs(question,answer,is_active,sort_order)),
161       benefit_links:siteNower_training_general_benefits(general_benefit:siteNower_general_benefits(icon,title,text,is_active,sort_order))`).eq("slug",e).eq("is_published",!0).maybeSingle();if(s)throw s;if(!n)return{training:null,modules:[],trainers:[],testimonials:[],generalFaqs:[],generalBenefits:[]};const a=n,l=a,c=(a.modules||[]).slice().sort((m,v)=>(m.sort_order??0)-(v.sort_order??0)),d=(a.trainer_links||[]).slice().sort((m,v)=>(m.sort_order??0)-(v.sort_order??0)).map(m=>
161m.trainer).filter(Boolean),f=(a.testimonials||[]).filter(m=>m.is_active!==!1).slice().sort((m,v)=>(m.sort_order??0)-(v.sort_order??0)),h=(a.faq_links||[]).map(m=>m.general_faq).filter(m=>!!m&&m.is_active!==!1).sort((m,v)=>(m.sort_order??0)-(v.sort_order??0)).map(m=>({question:m.question,answer:m.answer})),g=(a.benefit_links||[]).map(m=>m.general_benefit).filter(m=>!!m&&m.is_active!==!1).sort((m,v)=>(m.sort_order??0)-(v.sort_order??0)).map(m=>({icon:m.icon||"🏆",title:m.title,text:m.text||""}));return{training:l,modules:c,trainers:d,testimonials:f,generalFaqs:h,generalBenefits:g}}const D8=e=>({queryKey:["training-detail",e],queryFn:()=>fs(()=>L8(e),()=>t5(e),t=>!t.training),staleTime:300*1e3}),I8=()=>Se(()=>import("./treinamentos-in-company._slug-CfmcYrwS.js"),__vite__mapDeps([56,15,2,57,5,6,3,4,39,40,41,42,18,22])),U8=ue("/treinamentos-in-company/$slug")({loader:async({params:e,context:t})=>{const n=await t.queryClient.ensureQueryData(D8(e.slug));if(n.training){const a=n.training,l=d=>(d??"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim(),c=[...a.faqs??[],...n.generalFaqs??[]].filter(d=>d?.question&&d?.answer).map(d=>({q:l(d.question),a:l(d.answer)}));return{title:a.title,description:a.seo_description??a.tagline??"",faqs:c}}const{data:s}=await zt.from("siteNower_categories").select("id").eq("slug",e.slug).eq("is_active",!0).maybeSingle();throw s?Ve({to:"/$slug",params:{slug:e.slug},replace:!0}):bo()},component:Oe(I8,"component"),head:({loaderData:e,params:t})=>{const n=`${e?.title??"Treinamento"} | Nower`,s=e?.description||"Treinamento in company da Nower.",a=`/treinamentos-in-company/${t.slug}`;return pt({title:n,description:s,path:a,keywords:["treinamento in company",e?.title??"treinamento corporativo"],jsonLd:[nf({name:e?.title??"Treinamento",description:s,url:a,serviceType:"Treinamento in company"}),...e?.faqs?.length?[hs(e.faqs)]:[],Xt([{name:"Início",path:"/"},{name:"Treinamentos in-company",path:"/treinamentos-in-company"},{name:e?.title??t.slug,path:a}])]})}}),LH={"aceleracao-de-resultados":"aceleracao-de-resultados","desenvolvimento-de-pessoas":"desenvolvimento-de-pessoas","eficiencia-operacional":"eficiencia-operacional","gestao-de-produtos":"gestao-de-produtos",lideranca:"lideranca","soft-skills":"soft-skills","desenvolvimento-de-times":"gestao-de-times","gestao-estrategica":"gestao-estrategica-de-resultados","gestao-de-resultados":"gestao-estrategica-de-resultados",agilidade:null,okr:null,"transformacao-digital":null,"vmo-value-management-office":null,"leadership-club":null,"sem-categoria":null},z8="leadership-club",B8=()=>Se(()=>import("./leadership-club._slug-D4s2dey2.js"),__vite__mapDeps([58,59,3,60,49,44,50,21,61])),$8=e=>({queryKey:["wp","post",e],queryFn:()=>dA(e),staleTime:1800*1e3}),q8=ue("/leadership-club/$slug")({component:Oe(B8,"component"),loader:async({params:e,context:t})=>{let n;try{n=await t.queryClient.ensureQueryData($8(e.slug))}catch(a){return console.error("leadership club post loader falhou",a),{post:null}}if(!n)throw bo();const s=E8(n);if(s.length&&!s.some(a=>a.slug===z8))throw Ve({to:"/blog/$slug",params:{slug:e.slug},statusCode:301});return{post:n}},head:({params:e,loaderData:t})=>{const n=`/leadership-club/${e.slug}`,s=t?.post;if(!s){const f=e.slug.split("-").map(h=>h.charAt(0).toUpperCase()+h.slice(1)).join(" ");return pt({title:`${f} | Leadership Club Nower`,description:"Conteúdo premium do Leadership Club para líderes de alta performance.",path:n,type:"article",noindex:!0})}const a=Xi(s.title.rendered),l=Xi(s.excerpt.rendered).slice(0,160)||`Artigo de ${a}.`,c=fA(s),d=hA(s);return pt({title:a,description:l,path:n,image:c?.src,type:"article",section:"Leadership Club",publishedTime:s.date,modifiedTime:s.modified,author:d?.name,jsonLd:[lA({url:n,headline:a,description:l,image:c?.src,datePublished:s.date,dateModified:s.modified,author:d?.name,section:"Leadership Club"}),Xt([{name:"Início",path:"/"},{name:"Leadership Club",path:"/leadership-club"},{name:a,path:n}])]})}}),V8=[{q:"O que é a consultoria de IA da Nower?",a:"É uma consultoria que aplica inteligência artificial da estratég
161ia à operação: identificamos onde a IA gera resultado, desenhamos a solução com o time e acompanhamos a adoção até o impacto aparecer nos indicadores."},{q:"Para que tipo de empresa a consultoria de IA é indicada?",a:"Para empresas de médio e grande porte que querem sair de experimentos isolados e usar IA de forma estruturada em vendas, operações, educação corporativa, liderança e marketing."},{q:"Quais ferramentas de IA a Nower utiliza?",a:"Trabalhamos com ferramentas como Claude, ChatGPT, Gemini, NotebookLM, Cursor e Lovable, escolhidas conforme o problema de negócio e as políticas de segurança do cliente."},{q:"Como começar um projeto de IA com a Nower?",a:"O primeiro passo é uma conversa de diagnóstico com nosso time comercial pelo formulário de contato ou WhatsApp, para entender objetivos, maturidade e prioridades."}],H8="/assets/hero-BJcQLsSo.webp",F8=()=>Se(()=>import("./consultoria.ia-B0UZjk2t.js"),__vite__mapDeps([62,4,36,24,18,30,17,63,48,9])),G8="Consultoria de IA para empresas | Nower",GS="Consultoria de IA aplicada da estratégia à operação: cases reais, metodologia e aprendizados que a Nower vive internamente e leva para os clientes.",K8=ue("/consultoria/ia")({beforeLoad:({location:e})=>{if(e.pathname!=="/consultoria/ia"&&e.pathname!=="/consultoria/ia/")throw Ve({to:"/consultoria/ia",replace:!0,statusCode:301})},component:Oe(F8,"component"),head:()=>pt({title:G8,description:GS,path:"/consultoria/ia",keywords:["consultoria de IA para empresas","inteligência artificial nas empresas","IA aplicada a negócios"],preloadImage:{href:H8},jsonLd:[nf({name:"Consultoria de IA para empresas",description:GS,url:"/consultoria/ia"}),hs(V8),Xt([{name:"Início",path:"/"},{name:"Consultoria",path:"/consultoria"},{name:"Consultoria + IA",path:"/consultoria/ia"}])]})}),Qu=zt;async function Y8(e){const{data:t,error:n}=await Qu.from("siteNower_consulting_services").select("*").eq("slug",e).maybeSingle();if(n)throw n;if(!t){const{data:O,error:I}=await Qu.from("siteNower_categories").select("id").eq("slug",e).eq("is_active",!0).maybeSingle();if(I)throw I;return O?{redirectToCategory:e}:null}const s=t,a=["siteNower_consulting_pillars","siteNower_consulting_objectives","siteNower_consulting_deliverables","siteNower_consulting_benefits","siteNower_consulting_timeline","siteNower_consulting_formats","siteNower_consulting_testimonials","siteNower_consulting_faqs","siteNower_consulting_contents","siteNower_consulting_challenges"],l=await Promise.all(a.map(async O=>{const{data:I,error:B}=await Qu.from(O).select("*").eq("service_id",s.id).order("sort_order",{ascending:!0});if(B)throw B;return I||[]})),[c,d,f,h,g,m,v,b,_,E]=l,{data:S,error:x}=await Qu.from("siteNower_client_consulting_services").select("sort_order, client:siteNower_clients(id, name, logo_url, sort_order)").eq("service_id",s.id).order("sort_order",{ascending:!0});if(x)throw x;const R=(S||[]).map(O=>O.client).filter(O=>!!O&&!!O.logo_url&&O.logo_url.trim()!=="").map(O=>({id:O.id,sort_order:O.sort_order,name:O.name,logo_url:O.logo_url})),C=await d8(s.id);return{service:s,pillars:c,objectives:d,deliverables:f,benefits:h,timeline:g,formats:m,testimonials:v,faqs:b,contents:_,challenges:E,clients:R,cases:C}}const Q8=e=>({queryKey:["consultoria-service",e],queryFn:()=>fs(()=>Y8(e),()=>i5(e),t=>!t||!("redirectToCategory"in t)&&!t.service),staleTime:300*1e3}),W8=()=>Se(()=>import("./consultoria._slug-eJRb46L7.js"),__vite__mapDeps([64,15,65,66,61,4,23,19,37,16,50,30,22,51,67,9,68,21,45,69,44,8,70,17,71,33,60,3,38,72,73,20,24,48,31,36,18,74,75,76,63,25,32,2,57,5,6,39,40,41,42,27,35,54])),X8=ue("/consultoria/$slug")({loader:async({params:e,context:t})=>{const n=await t.queryClient.ensureQueryData(Q8(e.slug));if(!n)throw bo();if("redirectToCategory"in n)throw Ve({to:"/$slug",params:{slug:n.redirectToCategory},replace:!0});const s=n.service,a=l=>(l??"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();return{title:s.title,description:s.seo_description??s.hero_subheadline??"",faqs:(n.faqs??[]).filter(l=>l.question&&l.answer).map(l=>({q:a(l.question),a:a(l.answer)}))}},component:Oe(W8,"component"),head:({loaderData:e,params:t})=>{const n=`${e?.title??"Serviço"} | Consultoria Nower`,s=e?.description||"Serviço de consultoria Nower.",a=`/consultoria/${t.slug}`;return pt({title:n,description:s,path:a,jsonLd:[nf({name:e?.title??"Serviço",description:s,url:a}),...e?.faqs?.length?[hs(e.faqs)]:[],Xt([{name:"Início",path:"/"},{name:"Consultoria",path:"/consultoria"},{name:e?.title??t.slug,path:a}])]})}}),J8=()=>Se(()=>import("./cases._slug-CxhujHjf.js"),[]),Z8=()=>Se(()=>import("./cases._slug-DWJEaVzp.js"),[]),eq=()=>Se(()=>import("./cases._slug-DlrY7Umf.js"),__vite__mapDeps([77,15,65,66,61,4,23,19,37,16,50,30,22,51,67,9,68,21,45,69,44,8,70,17,71,33,60,3,38,72,73,20,24,48,31,36,18,74,75,76,63,25,32,2,5,6])),tq=ue("/cases/$slug")({loader:async({params:e,context:t})=>{const n=await t.queryClient.ensureQueryData(u8(e.slug));if(!n)throw bo();return n},head:({params:e,loaderData:t})=>{const n=`/cases/${e.slug}`,s=t;if(!s)return pt({title:"Case",description:"Case Nower",path:n});const a=s.seo_title||[s.hero_headline_prefix,s.hero_headline_emphasis,s.hero_headline_suffix].filter(
161Boolean).join(" ")||`Case ${s.client?.name??""}`,l=s.seo_description||s.card_summary||s.hero_subtitle||"Case Nower",c=s.og_image_url||s.hero_image_url||void 0;return pt({title:a,description:l,path:n,image:c??void 0,preloadImage:s.hero_image_url?{href:s.hero_image_url}:void 0,type:"article",publishedTime:s.article_published_at??void 0,modifiedTime:s.article_modified_at??void 0,section:"Cases",tags:s.hero_tags,jsonLd:[r6({url:n,headline:a,description:l,image:c??void 0,client:s.client?.name??"",datePublished:s.article_published_at??void 0,dateModified:s.article_modified_at??void 0,outcomes:(s.metrics||[]).map(d=>({name:d.label??"",value:d.value}))}),Xt([{name:"Início",path:"/"},{name:"Cases",path:"/cases"},{name:s.client?.name??e.slug,path:n}])]})},component:Oe(eq,"component"),errorComponent:Oe(Z8,"errorComponent"),notFoundComponent:Oe(J8,"notFoundComponent")}),nq=()=>Se(()=>import("./blog._slug-Dyw4jvTL.js"),__vite__mapDeps([78,59,3,60,49,44,50,21,61])),rq=e=>({queryKey:["wp","post",e],queryFn:()=>dA(e),staleTime:1800*1e3}),sq=ue("/blog/$slug")({component:Oe(nq,"component"),loader:async({params:e,context:t})=>{try{const n=await t.queryClient.ensureQueryData(rq(e.slug));if(!n)throw bo();return{post:n}}catch(n){if(n&&typeof n=="object"&&"isNotFound"in n)throw n;return console.error("blog post loader falhou",n),{post:null}}},head:({params:e,loaderData:t})=>{const n=`/blog/${e.slug}`,s=t?.post;if(!s){const f=e.slug.split("-").map(h=>h.charAt(0).toUpperCase()+h.slice(1)).join(" ");return pt({title:`${f} | Blog Nower`,description:"Artigo do blog da Nower.",path:n,type:"article",noindex:!0})}const a=Xi(s.title.rendered),l=Xi(s.excerpt.rendered).slice(0,160)||`Artigo de ${a}.`,c=fA(s),d=hA(s);return pt({title:a,description:l,path:n,image:c?.src,type:"article",section:"Blog",publishedTime:s.date,modifiedTime:s.modified,author:d?.name,jsonLd:[lA({url:n,headline:a,description:l,image:c?.src,datePublished:s.date,dateModified:s.modified,author:d?.name,section:"Blog"}),Xt([{name:"Início",path:"/"},{name:"Blog",path:"/blog"},{name:a,path:n}])]})}}),iq=()=>Se(()=>import("./admin.index-DLA8BwBG.js"),[]),aq=ue("/admin/")({component:Oe(iq,"component")}),oq=()=>Se(()=>import("./admin.usuarios-KXtyTpiQ.js"),__vite__mapDeps([79,80,81,41,82,73,74])),lq=ue("/admin/usuarios")({component:Oe(oq,"component")}),cq=()=>Se(()=>import("./admin.reset-password-C79dya_t.js"),__vite__mapDeps([83,80,84])),uq=ue("/admin/reset-password")({component:Oe(cq,"component"),head:()=>({meta:[{title:"Redefinir senha | Nower"},{name:"robots",content:"noindex,nofollow"}]})}),dq=()=>Se(()=>import("./admin.midia-Xj-OTYwp.js"),__vite__mapDeps([85,80,84,86,87,76,48,32,69,74])),fq=ue("/admin/midia")({component:Oe(dq,"component")}),hq=()=>Se(()=>import("./admin.login-BU2-NAfm.js"),__vite__mapDeps([88,13,80,84])),pq=ue("/admin/login")({component:Oe(hq,"component"),head:()=>({meta:[{title:"Admin Nower"},{name:"description",content:"Acesso restrito"},{name:"robots",content:"noindex,nofollow"}]})}),mq=()=>Se(()=>import("./admin.instrutores-DWYd8NV3.js"),__vite__mapDeps([89,80,84,90,81,41,82,91,42,87,73,76,72,74])),gq=ue("/admin/instrutores")({component:Oe(mq,"component")}),yq=()=>Se(()=>import("./admin.inconsistencias-D28ZH6pw.js"),__vite__mapDeps([92,93,80,20,9,75,70,72])),vq=ue("/admin/inconsistencias")({component:Oe(yq,"component")}),bq=()=>Se(()=>import("./admin.faq-CJx-mEHA.js"),__vite__mapDeps([94,80,84,90,81,41,82,91,42,73,72,74])),wq=ue("/admin/faq")({component:Oe(bq,"component")}),_q=()=>Se(()=>import("./admin.depoimentos-DAMwat5b.js"),__vite__mapDeps([95,80,84,90,81,41,82,91,42,40,22,67,73,72,74])),Sq=ue("/admin/depoimentos")({component:Oe(_q,"component")}),xq=()=>Se(()=>import("./admin.conteudos-Dqg3hGJX.js"),__vite__mapDeps([96,80,84,68,20,9])),Tq=ue("/admin/conteudos")({component:Oe(xq,"component")}),Eq=()=>Se(()=>import("./admin.clientes-DkGgH0-O.js"),__vite__mapDeps([97,80,84,98,41,82,22,91,42,99,86,87,76,71,48,73,72,74])),Rq=ue("/admin/clientes")({component:Oe(Eq,"component")}),Aq=()=>Se(()=>import("./admin.categorias-Bl_6tK-8.js"),__vite__mapDeps([100,80,84,90,81,41,82,98,22,91,42,87,73,70,72,74])),Cq=ue("/admin/categorias")({component:Oe(Aq,"component")}),Oq=()=>Se(()=>import("./admin.beneficios-mGOsnvGI.js"),__vite__mapDeps([101,80,84,90,81,41,82,91,42,73,72,74])),kq=ue("/admin/beneficios")({component:Oe(Oq,"component")}),Nq=()=>Se(()=>import("./admin.backup-DYfETeQQ.js"),__vite__mapDeps([102,66,8])),Mq=ue("/admin/backup")({component:Oe(Nq,"component")}),Pq=()=>Se(()=>import("./admin.treinamentos.index-PTFBPY5c.js"),__vite__mapDeps([103,80,93,73,70,72,74])),jq=ue("/admin/treinamentos/")({component:Oe(Pq,"component")}),Lq=()=>Se(()=>import("./admin.consultoria.index-9Sqcsy8D.js"),__vite__mapDeps([104,80,93,73,70,72,74])),Dq=ue("/admin/consultoria/")({component:Oe(Lq,"component")}),Iq=()=>Se(()=>import("./admin.cases.index-B3JRIALv.js"),__vite__mapDeps([105,80,93,73,70,72,74])),Uq=ue("/admin/cases/")({component:Oe(Iq,"component")}),zq=()=>Se(()=>import("./admin.treinamentos.novo-DdnRADCy.js"),__vite__mapDeps([106,107,80,84,90,81,41,82,98,22,93,108,40,42,99,91,86,87,76,71,48,61,73])),Bq=ue("/admin/treinamentos/novo")({component:Oe(zq,"component")}),$q=()=>Se(()=>import("./admin.treinamentos._id-DdnRADCy.js"),__vite__mapDeps([109,107,80,84,90,81,41,82,98,22,93,108,40,42,99,91,86,87,76,71,48,61,73])),qq=ue("/admin/treinamentos/$id")({component:Oe($q,"component")}),Vq=()=>Se(()=>import("./admin.consultoria.novo-CuZUaQWH.js"),__vite__mapDeps([110,111,80,84,90,81,41,82,87,108,40,42,99,91,86,76,71,48,112,65,66,61,4,23,19,37,16,50,30,22,51,67,9,68,21,45,69,44,8,70,17,33,60,3,38,72,73,20,24,31,36,18,74,75,63,25,32])),Hq=ue("/admin/consultoria/novo")({component:Oe(Vq,"component")}),Fq=()=>Se(()=>import("./admin.consultoria._id-CuZUaQWH.js"),__vite__mapDeps([113,111,80,84,90,81,41,82,87,108,40,42,99,91,86,76,71,48,112,65,66,61,4,23,19,37,16,50,30,22,51,67,9,68,21,45,69,44,8,70,17,33,60,3,38,72,73,20,24,31,36,18,74,75,63,25,32])),Gq=ue("/admin/consultoria/$id")({component:Oe(Fq,"component")}),Kq=()=>Se(()=>import("./admin.cases.novo-BJaskuco.js"),__vite__mapDeps([114,115,80,84,90,81,41,82,87,108,40,42,99,91,86,76,71,48,112,65,66,61,4,23,19,37,16,50,30,22,51,67,9,68,21,45,69,44,8,70,17,33,60,3,38,72,73,20,24,31,36,18,74,75,63,25,32])),Yq=ue("/admin/cases/novo")({component:Oe(Kq,"component")}),Qq=()=>Se(()=>import("./admin.cases._id-BJaskuco.js"),__vite__mapDeps([116,115,80,84,90,81,41,82,87,108,40,42,99,91,86,76,71,48,112,65,66,61,4,23,19,37,16,50,30,22,51,67,9,68,21,45,69,44,8,70,17,33,60,3,38,72,73,20,24,31,36,18,74,75,63,25,32])),Wq=ue("/admin/cases/$id")({component:Oe(Qq,"component")}),Xq=Q5.update({id:"/vmo",path:"/vmo",getParentRoute:()=>Ce}),Jq=W5.update({id:"/treinamento-product-analytics",path:"/treinamento-product-analytics",getParentRoute:()=>Ce}),Zq=X5.update({id:"/treinamento-ia-para-empresas",path:"/treinamento-ia-para-empresas",getParentRoute:()=>Ce}),eV=J5.update({id:"/treinamento-ia-lideranca",path:"/treinamento-ia-lideranca",getParentRoute:()=>Ce}),tV=c6.update({id:"/sobre-a-nower",path:"/sobre-a-nower",getParentRoute:()=>Ce}),nV=u6.update({id:"/sobre",path:"/sobre",getParentRoute:()=>Ce}),rV=f6.update({id:"/portfolio-treinamentos-in-company",path:"/portfolio-treinamentos-in-company",getParentRoute:()=>Ce}),sV=p6.update({id:"/politica-de-privacidade",path:"/politica-de-privacidade",getParentRoute:()=>Ce}),iV=m6.update({id:"/okrs-cooperativas",path:"/okrs-cooperativas",getParentRoute:()=>Ce}),aV=g6.update({id:"/okrs",path:"/okrs",getParentRoute:()=>Ce}),oV=y6.update({id:"/okr",path:"/okr",getParentRoute:()=>Ce}),lV=b6.update({id:"/obrigado",path:"/obrigado",getParentRoute:()=>Ce}),cV=_6.update({id:"/modelo-nower",path:"/modelo-nower",getParentRoute:()=>Ce}),uV=S6.update({id:"/jornada-lideranca",path:"/jornada-lideranca",getParentRoute:()=>Ce}
161),dV=x6.update({id:"/ia-para-produtos",path:"/ia-para-produtos",getParentRoute:()=>Ce}),fV=T6.update({id:"/gmo-gestao-da-mudanca-organizacional",path:"/gmo-gestao-da-mudanca-organizacional",getParentRoute:()=>Ce}),hV=k6.update({id:"/glossario",path:"/glossario",getParentRoute:()=>Ce}),pV=N6.update({id:"/gestao-de-produto-5-0-treinamentos-corporativos",path:"/gestao-de-produto-5-0-treinamentos-corporativos",getParentRoute:()=>Ce}),mV=M6.update({id:"/conteudos",path:"/conteudos",getParentRoute:()=>Ce}),gV=P6.update({id:"/cases-livelo",path:"/cases-livelo",getParentRoute:()=>Ce}),yV=j6.update({id:"/case-upl",path:"/case-upl",getParentRoute:()=>Ce}),vV=L6.update({id:"/case-sicredi",path:"/case-sicredi",getParentRoute:()=>Ce}),bV=D6.update({id:"/case-gerdau",path:"/case-gerdau",getParentRoute:()=>Ce}),it=U6.update({id:"/admin",path:"/admin",getParentRoute:()=>Ce}),wV=q6.update({id:"/$slug",path:"/$slug",getParentRoute:()=>Ce}),_V=W6.update({id:"/",path:"/",getParentRoute:()=>Ce}),SV=Z6.update({id:"/treinamentos-in-company/",path:"/treinamentos-in-company/",getParentRoute:()=>Ce}),xV=t8.update({id:"/leadership-club/",path:"/leadership-club/",getParentRoute:()=>Ce}),TV=i8.update({id:"/consultoria/",path:"/consultoria/",getParentRoute:()=>Ce}),EV=m8.update({id:"/cases/",path:"/cases/",getParentRoute:()=>Ce}),RV=A8.update({id:"/blog/",path:"/blog/",getParentRoute:()=>Ce}),AV=C8.update({id:"/treinamentos-in-company/soft-skills",path:"/treinamentos-in-company/soft-skills",getParentRoute:()=>Ce}),CV=O8.update({id:"/treinamentos-in-company/lideranca",path:"/treinamentos-in-company/lideranca",getParentRoute:()=>Ce}),OV=k8.update({id:"/treinamentos-in-company/inteligencia-artificial-treinamentos-in-company",path:"/treinamentos-in-company/inteligencia-artificial-treinamentos-in-company",getParentRoute:()=>Ce}),kV=N8.update({id:"/treinamentos-in-company/gestao-estrategica-de-resultados",path:"/treinamentos-in-company/gestao-estrategica-de-resultados",getParentRoute:()=>Ce}),NV=M8.update({id:"/treinamentos-in-company/gestao-de-times",path:"/treinamentos-in-company/gestao-de-times",getParentRoute:()=>Ce}),MV=P8.update({id:"/treinamentos-in-company/gestao-de-produtos",path:"/treinamentos-in-company/gestao-de-produtos",getParentRoute:()=>Ce}),PV=j8.update({id:"/treinamentos-in-company/eficiencia-operacional",path:"/treinamentos-in-company/eficiencia-operacional",getParentRoute:()=>Ce}),jV=U8.update({id:"/treinamentos-in-company/$slug",path:"/treinamentos-in-company/$slug",getParentRoute:()=>Ce}),LV=q8.update({id:"/leadership-club/$slug",path:"/leadership-club/$slug",getParentRoute:()=>Ce}),DV=K8.update({id:"/consultoria/ia",path:"/consultoria/ia",getParentRoute:()=>Ce}),IV=X8.update({id:"/consultoria/$slug",path:"/consultoria/$slug",getParentRoute:()=>Ce}),UV=tq.update({id:"/cases/$slug",path:"/cases/$slug",getParentRoute:()=>Ce}),zV=sq.update({id:"/blog/$slug",path:"/blog/$slug",getParentRoute:()=>Ce}),BV=aq.update({id:"/",path:"/",getParentRoute:()=>it}),$V=lq.update({id:"/usuarios",path:"/usuarios",getParentRoute:()=>it}),qV=uq.update({id:"/reset-password",path:"/reset-password",getParentRoute:()=>it}),VV=fq.update({id:"/midia",path:"/midia",getParentRoute:()=>it}),HV=pq.update({id:"/login",path:"/login",getParentRoute:()=>it}),FV=gq.update({id:"/instrutores",path:"/instrutores",getParentRoute:()=>it}),GV=vq.update({id:"/inconsistencias",path:"/inconsistencias",getParentRoute:()=>it}),KV=wq.update({id:"/faq",path:"/faq",getParentRoute:()=>it}),YV=Sq.update({id:"/depoimentos",path:"/depoimentos",getParentRoute:()=>it}),QV=Tq.update({id:"/conteudos",path:"/conteudos",getParentRoute:()=>it}),WV=Rq.update({id:"/clientes",path:"/clientes",getParentRoute:()=>it}),XV=Cq.update({id:"/categorias",path:"/categorias",getParentRoute:()=>it}),JV=kq.update({id:"/beneficios",path:"/beneficios",getParentRoute:()=>it}),ZV=Mq.update({id:"/backup",path:"/backup",getParentRoute:()=>it}),eH=jq.update({id:"/treinamentos/",path:"/treinamentos/",getParentRoute:()=>it}),tH=Dq.update({id:"/consultoria/",path:"/consultoria/",getParentRoute:()=>it}),nH=Uq.update({id:"/cases/",path:"/cases/",getParentRoute:()=>it}),rH=Bq.update({id:"/treinamentos/novo",path:"/treinamentos/novo",getParentRoute:()=>it}),sH=qq.update({id:"/treinamentos/$id",path:"/treinamentos/$id",getParentRoute:()=>it}),iH=Hq.update({id:"/consultoria/novo",path:"/consultoria/novo",getParentRoute:()=>it}),aH=Gq.update({id:"/consultoria/$id",path:"/consultoria/$id",getParentRoute:()=>it}),oH=Yq.update({id:"/cases/novo",path:"/cases/novo",getParentRoute:()=>it}),lH=Wq.update({id:"/cases/$id",path:"/cases/$id",getParentRoute:()=>it}),cH={AdminBackupRoute:ZV,AdminBeneficiosRoute:JV,AdminCategoriasRoute:XV,AdminClientesRoute:WV,AdminConteudosRoute:QV,AdminDepoimentosRoute:YV,AdminFaqRoute:KV,AdminInconsistenciasRoute:GV,AdminInstrutoresRoute:FV,AdminLoginRoute:HV,AdminMidiaRoute:VV,AdminResetPasswordRoute:qV,AdminUsuariosRoute:$V,AdminIndexRoute:BV,AdminCasesIdRoute:lH,AdminCasesNovoRoute:oH,AdminConsultoriaIdRoute:aH,AdminConsultoriaNovoRoute:iH,AdminTreinamentosIdRoute:sH,AdminTreinamentosNovoRoute:rH,AdminCasesIndexRoute:nH,AdminConsultoriaIndexRoute:tH,AdminTreinamentosIndexRoute:eH},uH=it._addFileChildren(cH),dH={IndexRoute:_V,SlugRoute:wV,AdminRoute:uH,C
161aseGerdauRoute:bV,CaseSicrediRoute:vV,CaseUplRoute:yV,CasesLiveloRoute:gV,ConteudosRoute:mV,GestaoDeProduto50TreinamentosCorporativosRoute:pV,GlossarioRoute:hV,GmoGestaoDaMudancaOrganizacionalRoute:fV,IaParaProdutosRoute:dV,JornadaLiderancaRoute:uV,ModeloNowerRoute:cV,ObrigadoRoute:lV,OkrRoute:oV,OkrsRoute:aV,OkrsCooperativasRoute:iV,PoliticaDePrivacidadeRoute:sV,PortfolioTreinamentosInCompanyRoute:rV,SobreRoute:nV,SobreANowerRoute:tV,TreinamentoIaLiderancaRoute:eV,TreinamentoIaParaEmpresasRoute:Zq,TreinamentoProductAnalyticsRoute:Jq,VmoRoute:Xq,BlogSlugRoute:zV,CasesSlugRoute:UV,ConsultoriaSlugRoute:IV,ConsultoriaIaRoute:DV,LeadershipClubSlugRoute:LV,TreinamentosInCompanySlugRoute:jV,TreinamentosInCompanyEficienciaOperacionalRoute:PV,TreinamentosInCompanyGestaoDeProdutosRoute:MV,TreinamentosInCompanyGestaoDeTimesRoute:NV,TreinamentosInCompanyGestaoEstrategicaDeResultadosRoute:kV,TreinamentosInCompanyInteligenciaArtificialTreinamentosInCompanyRoute:OV,TreinamentosInCompanyLiderancaRoute:CV,TreinamentosInCompanySoftSkillsRoute:AV,BlogIndexRoute:RV,CasesIndexRoute:EV,ConsultoriaIndexRoute:TV,LeadershipClubIndexRoute:xV,TreinamentosInCompanyIndexRoute:SV},fH=Ce._addFileChildren(dH),hH=()=>{const e=new TD,t=qP({routeTree:fH,context:{queryClient:e},scrollRestoration:!0,defaultPreloadStaleTime:0});return UD(t,e)};async function pH(){const e=await hH();let t;if(T_){const n=await T_.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,t=n.serializationAdapters,e.options.defaultSsr=n.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(KM),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.matchesId.get().length||await QM(e),e}var mH=pH;async function gH(){const e=await mH();return window.$_TSR?.h(),e}var nm;function yH(){return nm||(nm=gH()),N.jsx(ZM,{promise:nm,children:e=>N.jsx(FP,{router:e})})}j.startTransition(()=>{LC.hydrateRoot(document,N.jsx(j.StrictMode,{children:N.jsx(yH,{})}))});export{ts as $,u$ as A,aA as B,BS as C,E$ as D,q4 as E,O5 as F,E6 as G,R5 as H,Yg as I,MR as J,YR as K,b5 as L,f$ as M,_H as N,lT as O,w$ as P,d4 as Q,W6 as R,jS as S,S$ as T,c8 as U,D8 as V,dz as W,H8 as X,V8 as Y,Q8 as Z,oi as _,s6 as a,Mg as a0,FT as a1,ea as a2,mo as a3,ae as a4,Nt as a5,OD as a6,u8 as a7,tq as a8,DD as a9,dc as aA,OC as aB,y5 as aC,_5 as aD,x5 as aE,p5 as aF,I3 as aG,j5 as aH,$5 as aI,Gw as aJ,Hd as aK,xH as aL,RH as aM,tm as aN,LH as aO,kH as aP,MH as aQ,vH as aR,KS as aS,yD as aa,TH as ab,EH as ac,eT as ad,fA as ae,hA as af,E8 as ag,PH as ah,Xi as ai,jH as aj,ID as ak,S8 as al,NH as am,dA as an,zt as ao,xg as ap,AH as aq,lE as ar,Z3 as as,H3 as at,yE as au,Vd as av,Yd as aw,KT as ax,F3 as ay,G3 as az,N5 as b,Qt as c,cT as d,HE as e,nT as f,H5 as g,i6 as h,B6 as i,N as j,K6 as k,G6 as l,X6 as m,z8 as n,r8 as o,n8 as p,cA as q,j as r,Yn as s,OH as t,qd as u,qR as v,Qg as w,n$ as x,GR as y,c$ 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.