vendor: 5,884 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BsJtz6XT.js","assets/HomeV15-BHuoqqrK.js","assets/triple-impact-venn-DwOU83bh.js","assets/HomeV15-CLTJxMCp.css","assets/home-islands-oKHYQZdl.css","assets/agb-BysbUOH2.js","assets/LegacyPage-B3JfM252.js","assets/check-intern-DspjMgUj.js","assets/datenschutz-D6foZ_Lv.js","assets/impressum-D4gn82yD.js","assets/kontakt-DnbOUkuS.js","assets/leadership-communication-check-4YOAtGyu.js","assets/media-manifest-tx5KGPbf.js","assets/presse-Dpv7Q-xw.js","assets/studio-produktion-xQbva_Vh.js","assets/top-speakers-CCeiAvJh.js","assets/top-speakers-masterclass-BP6ddAWn.js","assets/triple-impact-methodik-CnMuCM4-.js","assets/ueber-uns-rsOlAFfM.js","assets/blog.index-DRWo9Fgx.js","assets/blog.emotion-schlaegt-information-CxKVrIin.js","assets/blog.energy-matching-twd0E8Zw.js","assets/blog.public-speaking-fuehrungskraefte-CRLsY3u9.js","assets/en.index-D-cRM-B0.js","assets/en.agb-BbYWBI_6.js","assets/en.check-internal-1-_yASjl.js","assets/en.datenschutz-BWkzkFRH.js","assets/en.impressum-DyuxQWnp.js","assets/en.kontakt-jJfjZVFs.js","assets/en.leadership-communication-check-D84e730J.js","assets/en.media-manifest-D9hyKsv3.js","assets/en.presse-DwUDq5cw.js","assets/en.studio-produktion-Bh59_Ia9.js","assets/en.top-speakers-CPve5TBY.js","assets/en.top-speakers-masterclass-DLcSm-6I.js","assets/en.triple-impact-methodik-BnOGWq2X.js","assets/en.ueber-uns-a7z6wP8L.js","assets/events.index-D7BZC68_.js","assets/EventsGallery-eMD3NYbj.js","assets/events.leadership-communication-masterclass-DaWc9liw.js","assets/map-pin-BgPZc7TE.js","assets/loesungen.index-7hdVxjiQ.js","assets/LoesungenSections-DNK6L3W9.js","assets/LoesungenSections-X5ylOdUK.css","assets/loesungen._slug-Dx_Wl9B7.js","assets/ProductPage-A5eiiwMy.js","assets/en.blog.index-cBjqPEey.js","assets/en.blog.emotion-schlaegt-information-Dbd2mC2G.js","assets/en.blog.energy-matching-B6gS6ydH.js","assets/en.blog.public-speaking-fuehrungskraefte-B0mnhm-j.js","assets/en.events.index-CHH5k1Y6.js","assets/en.events.leadership-communication-masterclass-CXhhKxep.js","assets/en.loesungen.index-BJl7Ey2N.js","assets/en.loesungen._slug-Ccc63_Ss.js"])))=>i.map(i=>d[i]); 2function dA(e,t){for(var i=0;i<t.length;i++){const s=t[i];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const c=Object.getOwnPropertyDescriptor(s,o);c&&Object.defineProperty(e,o,c.get?c:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function gS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Th={exports:{}},po={};var mb;function hA(){if(mb)return po;mb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(s,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var d in o)d!=="key"&&(c[d]=o[d])}else c=o;return o=c.ref,{$$typeof:e,type:s,key:u,ref:o!==void 0?o:null,props:c}}return po.Fragment=t,po.jsx=i,po.jsxs=i,po}var pb;function fA(){return pb||(pb=1,Th.exports=hA()),Th.exports}var A=fA(),Ah={exports:{}},Te={};var gb;function mA(){if(gb)return Te;gb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,T={};function E(R,H,F){this.props=R,this.context=H,this.refs=T,this.updater=F||S}E.prototype.isReactComponent={},E.prototype.setState=function(R,H){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,H,"setState")},E.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function L(){}L.prototype=E.prototype;function C(R,H,F){this.props=R,this.context=H,this.refs=T,this.updater=F||S}var $=C.prototype=new L;$.constructor=C,k($,E.prototype),$.isPureReactComponent=!0;var Q=Array.isArray;function P(){}var j={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function ee(R,H,F){var X=F.ref;return{$$typeof:e,type:R,key:H,ref:X!==void 0?X:null,props:F}}function he(R,H){return ee(R.type,H,R.props)}function G(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function Y(R){var H={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(F){return H[F]})}var te=/\/+/g;function ye(R,H){return typeof R=="object"&&R!==null&&R.key!=null?Y(""+R.key):H.toString(36)}function se(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(P,P):(R.status="pending",R.then(function(H){R.status==="pending"&&(R.status="fulfilled",R.value=H)},function(H){R.status==="pending"&&(R.status="rejected",R.reason=H)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function z(R,H,F,X,ne){var oe=typeof R;(oe==="undefined"||oe==="boolean")&&(R=null);var fe=!1;if(R===null)fe=!0;else switch(oe){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(R.$$typeof){case e:case t:fe=!0;break;case y:return fe=R._init,z(fe(R._payload),H,F,X,ne)}}if(fe)return ne=ne(R),fe=X===""?"."+ye(R,0):X,Q(ne)?(F="",fe!=null&&(F=fe.replace(te,"$&/")+"/"),z(ne,H,F,"",function(vt){return vt})):ne!=null&&(G(ne)&&(ne=he(ne,F+(ne.key==null||R&&R.key===ne.ke
vendor: 9,531 bytes, line 2
2y?"":(""+ne.key).replace(te,"$&/")+"/")+fe)),H.push(ne)),1;fe=0;var ge=X===""?".":X+":";if(Q(R))for(var be=0;be<R.length;be++)X=R[be],oe=ge+ye(X,be),fe+=z(X,H,F,oe,ne);else if(be=w(R),typeof be=="function")for(R=be.call(R),be=0;!(X=R.next()).done;)X=X.value,oe=ge+ye(X,be++),fe+=z(X,H,F,oe,ne);else if(oe==="object"){if(typeof R.then=="function")return z(se(R),H,F,X,ne);throw H=String(R),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(R,H,F){if(R==null)return R;var X=[],ne=0;return z(R,X,"","",function(oe){return H.call(F,oe,ne++)}),X}function le(R){if(R._status===-1){var H=R._result;H=H(),H.then(function(F){(R._status===0||R._status===-1)&&(R._status=1,R._result=F)},function(F){(R._status===0||R._status===-1)&&(R._status=2,R._result=F)}),R._status===-1&&(R._status=0,R._result=H)}if(R._status===1)return R._result.default;throw R._result}var Ae=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},J={map:W,forEach:function(R,H,F){W(R,function(){H.apply(this,arguments)},F)},count:function(R){var H=0;return W(R,function(){H++}),H},toArray:function(R){return W(R,function(H){return H})||[]},only:function(R){if(!G(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Te.Activity=g,Te.Children=J,Te.Component=E,Te.Fragment=i,Te.Profiler=o,Te.PureComponent=C,Te.StrictMode=s,Te.Suspense=f,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,Te.__COMPILER_RUNTIME={__proto__:null,c:function(R){return j.H.useMemoCache(R)}},Te.cache=function(R){return function(){return R.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(R,H,F){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var X=k({},R.props),ne=R.key;if(H!=null)for(oe in H.key!==void 0&&(ne=""+H.key),H)!U.call(H,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&H.ref===void 0||(X[oe]=H[oe]);var oe=arguments.length-2;if(oe===1)X.children=F;else if(1<oe){for(var fe=Array(oe),ge=0;ge<oe;ge++)fe[ge]=arguments[ge+2];X.children=fe}return ee(R.type,ne,X)},Te.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},Te.createElement=function(R,H,F){var X,ne={},oe=null;if(H!=null)for(X in H.key!==void 0&&(oe=""+H.key),H)U.call(H,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ne[X]=H[X]);var fe=arguments.length-2;if(fe===1)ne.children=F;else if(1<fe){for(var ge=Array(fe),be=0;be<fe;be++)ge[be]=arguments[be+2];ne.children=ge}if(R&&R.defaultProps)for(X in fe=R.defaultProps,fe)ne[X]===void 0&&(ne[X]=fe[X]);return ee(R,oe,ne)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(R){return{$$typeof:d,render:R}},Te.isValidElement=G,Te.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:le}},Te.memo=function(R,H){return{$$typeof:p,type:R,compare:H===void 0?null:H}},Te.startTransition=function(R){var H=j.T,F={};j.T=F;try{var X=R(),ne=j.S;ne!==null&&ne(F,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(P,Ae)}catch(oe){Ae(oe)}finally{H!==null&&F.types!==null&&(H.types=F.types),j.T=H}},Te.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},Te.use=function(R){return j.H.use(R)},Te.useActionState=function(R,H,F){return j.H.useActionState(R,H,F)},Te.useCallback=function(R,H){return j.H.useCallback(R,H)},Te.useContext=function(R){return j.H.useContext(R)},Te.useDebugValue=function(){},Te.useDeferredValue=function(R,H){return j.H.useDeferredValue(R,H)},Te.useEffect=function(R,H){return j.H.useEffect(R,H)},Te.useEffectEvent=function(R){return j.H.useEffectEvent(R)},Te.useId=function(){return j.H.useId()},Te.useImperativeHandle=function(R,H,F){return j.H.useImperativeHandle(R,H,F)},Te.useInsertionEffect=function(R,H){return j.H.useInsertionEffect(R,H)},Te.useLayoutEffect=function(R,H){return j.H.useLayoutEffect(R,H)},Te.useMemo=function(R,H){return j.H.useMemo(R,H)},Te.useOptimistic=function(R,H){return j.H.useOptimistic(R,H)},Te.useReducer=function(R,H,F){return j.H.useReducer(R,H,F)},Te.useRef=function(R){return j.H.useRef(R)},Te.useState=function(R){return j.H.useState(R)},Te.useSyncExternalStore=function(R,H,F){return j.H.useSyncExternalStore(R,H,F)},Te.useTransition=function(){return j.H.useTransition()},Te.version="19.2.5",Te}var yb;function Ko(){return yb||(yb=1,Ah.exports=mA()),Ah.exports}var ie=Ko();const Z=gS(ie),pA=dA({__proto__:null,default:Z},[ie]);var xh={exports:{}},go={},Rh={exports:{}},Ch={};var vb;function gA(){return vb||(vb=1,(function(e){function t(z,W){var le=z.length;z.push(W);e:for(;0<le;){var Ae=le-1>>>1,J=z[Ae];if(0<o(J,W))z[Ae]=W,z[le]=J,le=Ae;else break e}}function i(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var W=z[0],le=z.pop();if(le!==W){z[0]=le;e:for(var Ae=0,J=z.length,R=J>>>1;Ae<R;){var H=2*(Ae+1)-1,F=z[H],X=H+1,ne=z[X];if(0>o(F,le))X<J&&0>o(ne,F)?(z[Ae]=ne,z[X]=le,Ae=X):(z[Ae]=F,z[H]=le,Ae=H);else if(X<J&&0>o(ne,le))z[Ae]=ne,z[X]=le,Ae=X;else break e}}return W}function o(z,W){var le=z.sortIndex-W.sortIndex;return le!==0?le:z.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],p=[],y=1,g=null,b=3,w=!1,S=!1,k=!1,T=!1,E=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function $(z){for(var W=i(p);W!==null;){if(W.callback===null)s(p);else if(W.startTime<=z)s(p),W.sortIndex=W.expirationTime,t(f,W);else break;W=i(p)}}function Q(z){if(k=!1,$(z),!S)if(i(f)!==null)S=!0,P||(P=!0,Y());else{var W=i(p);W!==null&&se(Q,W.startTime-z)}}var P=!1,j=-1,U=5,ee=-1;function he(){return T?!0:!(e.unstable_now()-ee<U)}function G(){if(T=!1,P){var z=e.unstable_now();ee=z;var W=!0;try{e:{S=!1,k&&(k=!1,L(j),j=-1),w=!0;var le=b;try{t:{for($(z),g=i(f);g!==null&&!(g.expirationTime>z&&he());){var Ae=g.callback;if(typeof Ae=="function"){g.callback=null,b=g.priorityLevel;var J=Ae(g.expirationTime<=z);if(z=e.unstable_now(),typeof J=="function"){g.callback=J,$(z),W=!0;break t}g===i(f)&&s(f),$(z)}else s(f);g=i(f)}if(g!==null)W=!0;else{var R=i(p);R!==null&&se(Q,R.startTime-z),W=!1}}break e}finally{g=null,b=le,w=!1}W=void 0}}finally{W?Y():P=!1}}}var Y;if(typeof C=="function")Y=function(){C(G)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ye=te.port2;te.port1.onmessage=G,Y=function(){ye.postMessage(null)}}else Y=function(){E(G,0)};function se(z,W){j=E(function(){z(e.unstable_now())},W)}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"):U=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(z){switch(b){case 1:case 2:case 3:var W=3;break;default:W=b}var le=b;b=W;try{return z()}finally{b=le}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(z,W){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var le=b;b=z;try{return W()}finally{b=le}},e.unstable_scheduleCallback=function(z,W,le){var Ae=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?Ae+le:Ae):le=Ae,z){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=le+J,z={id:y++,callback:W,priorityLevel:z,startTime:le,expirationTime:J,sortIndex:-1},le>Ae?(z.sortIndex=le,t(p,z),i(f)===null&&z===i(p)&&(k?(L(j),j=-1):k=!0,se(Q,le-Ae))):(z.sortIndex=J,t(f,z),S||w||(S=!0,P||(P=!0,Y()))),z},e.unstable_shouldYield=he,e.unstable_wrapCallback=function(z){var W=b;return function(){var le=b;b=W;try{return z.apply(this,arguments)}finally{b=le}}}})(Ch)),Ch}var bb;function yA(){return bb||(bb=1,Rh.exports=gA()),Rh.exports}var Oh={exports:{}},Nt={};var wb;function vA(){if(wb)return Nt;wb=1;var e=Ko();function t(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(f,p,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:f,containerInfo:p,implementation:y}}
vendor: 7,822 bytes, lines 2-4
2var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,p){if(f==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Nt.createPortal=function(f,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return c(f,p,null,y)},Nt.flushSync=function(f){var p=u.T,y=s.p;try{if(u.T=null,s.p=2,f)return f()}finally{u.T=p,s.p=y,s.d.f()}},Nt.preconnect=function(f,p){typeof f=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(f,p))},Nt.prefetchDNS=function(f){typeof f=="string"&&s.d.D(f)},Nt.preinit=function(f,p){if(typeof f=="string"&&p&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?s.d.S(f,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:w}):y==="script"&&s.d.X(f,{crossOrigin:g,integrity:b,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Nt.preinitModule=function(f,p){if(typeof f=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=d(p.as,p.crossOrigin);s.d.M(f,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(f)},Nt.preload=function(f,p){if(typeof f=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin);s.d.L(f,y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Nt.preloadModule=function(f,p){if(typeof f=="string")if(p){var y=d(p.as,p.crossOrigin);s.d.m(f,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(f)},Nt.requestFormReset=function(f){s.d.r(f)},Nt.unstable_batchedUpdates=function(f,p){return f(p)},Nt.useFormState=function(f,p,y){return u.H.useFormState(f,p,y)},Nt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Nt.version="19.2.5",Nt}var Sb;function yS(){if(Sb)return Oh.exports;Sb=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(),Oh.exports=vA(),Oh.exports}var _b;function bA(){if(_b)return go;_b=1;var e=yA(),t=Ko(),i=yS();function s(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var r=n,a=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(a=r.return),n=r.return;while(n)}return r.tag===3?a:null}function u(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function d(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(c(n)!==n)throw Error(s(188))}function p(n){var r=n.alternate;if(!r){if(r=c(n),r===null)throw Error(s(188));return r!==n?null:n}for(var a=n,l=r;;){var h=a.return;if(h===null)break;var m=h.alternate;if(m===null){if(l=h.return,l!==null){a=l;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===a)return f(h),n;if(m===l)return f(h),r;m=m.sibling}throw Error(s(188))}if(a.return!==l.return)a=h,l=m;else{for(var v=!1,_=h.child;_;){if(_===a){v=!0,a=h,l=m;break}if(_===l){v=!0,l=h,a=m;break}_=_.sibling}if(!v){for(_=m.child;_;){if(_===a){v=!0,a=m,l=h;break}if(_===l){v=!0,l=m,a=h;break}_=_.sibling}if(!v)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?n:r}function y(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=y(n),r!==null)return r;n=n.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),C=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function Y(n){return n===null||typeof n!="object"?null:(n=G&&n[G]||n["@@iterator"],typeof n=="function"?n:null)}var te=Symbol.for("react.client.reference");function ye(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===te?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case k:return"Fragment";case E:return"Profiler";case T:return"StrictMode";case Q:return"Suspense";case P:return"SuspenseList";case ee:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case C:return n.displayName||"Context";case L:return(n._context.displayName||"Context")+".Consumer";case $:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case j:return r=n.displayName||null,r!==null?r:ye(n.type)||"Memo";case U:r=n._payload,n=n._init;try{return ye(n(r))}catch{}}return null}var se=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},Ae=[],J=-1;function R(n){return{current:n}}function H(n){0>J||(n.current=Ae[J],Ae[J]=null,J--)}function F(n,r){J++,Ae[J]=n.current,n.current=r}var X=R(null),ne=R(null),oe=R(null),fe=R(null);function ge(n,r){switch(F(oe,r),F(ne,n),F(X,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Nv(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Nv(r),n=Pv(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}H(X),F(X,n)}function be(){H(X),H(ne),H(oe)}function vt(n){n.memoizedState!==null&&F(fe,n);var r=X.current,a=Pv(r,n.type);r!==a&&(F(ne,n),F(X,a))}function Tt(n){ne.current===n&&(H(X),H(ne)),fe.current===n&&(H(fe),uo._currentValue=le)}var st,Li;function Dt(n){if(st===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);st=r&&r[1]||"",Li=-1<a.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+st+n+Li}var ba=!1;function as(n,r){if(!n||ba)return"";ba=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(r){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(B){var N=B}Reflect.construct(n,[],K)}else{try{K.call()}catch(B){N=B}n.call(K.prototype)}}else{try{throw Error()}catch(B){N=B}(K=n())&&typeof K.catch=="function"&&K.catch(function(){})}}
vendor: 6,458 bytes, lines 4-9
4catch(B){if(B&&N&&typeof B.stack=="string")return[B.stack,N.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),v=m[0],_=m[1];if(v&&_){var x=v.split(` 5`),I=_.split(` 6`);for(h=l=0;l<x.length&&!x[l].includes("DetermineComponentFrameRoot");)l++;for(;h<I.length&&!I[h].includes("DetermineComponentFrameRoot");)h++;if(l===x.length||h===I.length)for(l=x.length-1,h=I.length-1;1<=l&&0<=h&&x[l]!==I[h];)h--;for(;1<=l&&0<=h;l--,h--)if(x[l]!==I[h]){if(l!==1||h!==1)do if(l--,h--,0>h||x[l]!==I[h]){var q=` 7`+x[l].replace(" at new "," at ");return n.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",n.displayName)),q}while(1<=l&&0<=h);break}}}finally{ba=!1,Error.prepareStackTrace=a}return(a=n?n.displayName||n.name:"")?Dt(a):""}function Sr(n,r){switch(n.tag){case 26:case 27:case 5:return Dt(n.type);case 16:return Dt("Lazy");case 13:return n.child!==r&&r!==null?Dt("Suspense Fallback"):Dt("Suspense");case 19:return Dt("SuspenseList");case 0:case 15:return as(n.type,!1);case 11:return as(n.type.render,!1);case 1:return as(n.type,!0);case 31:return Dt("Activity");default:return""}}function wa(n){try{var r="",a=null;do r+=Sr(n,a),a=n,n=n.return;while(n);return r}catch(l){return` 8Error generating stack: `+l.message+` 9`+l.stack}}var rn=Object.prototype.hasOwnProperty,Sa=e.unstable_scheduleCallback,_a=e.unstable_cancelCallback,Ut=e.unstable_shouldYield,zi=e.unstable_requestPaint,Bt=e.unstable_now,fu=e.unstable_getCurrentPriorityLevel,_r=e.unstable_ImmediatePriority,Qo=e.unstable_UserBlockingPriority,kr=e.unstable_NormalPriority,ka=e.unstable_LowPriority,Xn=e.unstable_IdlePriority,Xo=e.log,ji=e.unstable_setDisableYieldValue,Er=null,$t=null;function Tn(n){if(typeof Xo=="function"&&ji(n),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(Er,n)}catch{}}var Mt=Math.clz32?Math.clz32:Pn,mu=Math.log,Ea=Math.LN2;function Pn(n){return n>>>=0,n===0?32:31-(mu(n)/Ea|0)|0}var os=256,ls=262144,Tr=4194304;function Un(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Ee(n,r,a){var l=n.pendingLanes;if(l===0)return 0;var h=0,m=n.suspendedLanes,v=n.pingedLanes;n=n.warmLanes;var _=l&134217727;return _!==0?(l=_&~m,l!==0?h=Un(l):(v&=_,v!==0?h=Un(v):a||(a=_&~n,a!==0&&(h=Un(a))))):(_=l&~m,_!==0?h=Un(_):v!==0?h=Un(v):a||(a=l&~n,a!==0&&(h=Un(a)))),h===0?0:r!==0&&r!==h&&(r&m)===0&&(m=h&-h,a=r&-r,m>=a||m===32&&(a&4194048)!==0)?r:h}function Ze(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function bt(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 It(){var n=Tr;return Tr<<=1,(Tr&62914560)===0&&(Tr=4194304),n}function Di(n){for(var r=[],a=0;31>a;a++)r.push(n);return r}function tt(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Vt(n,r,a,l,h,m){var v=n.pendingLanes;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=a,n.entangledLanes&=a,n.errorRecoveryDisabledLanes&=a,n.shellSuspendCounter=0;var _=n.entanglements,x=n.expirationTimes,I=n.hiddenUpdates;for(a=v&~a;0<a;){var q=31-Mt(a),K=1<<q;_[q]=0,x[q]=-1;var N=I[q];if(N!==null)for(I[q]=null,q=0;q<N.length;q++){var B=N[q];B!==null&&(B.lane&=-536870913)}a&=~K}l!==0&&Ar(n,l,0),m!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=m&~(v&~r))}function Ar(n,r,a){n.pendingLanes|=r,n.suspendedLanes&=~r;var l=31-Mt(r);n.entangledLanes|=r,n.entanglements[l]=n.entanglements[l]|1073741824|a&261930}function Kt(n,r){var a=n.entangledLanes|=r;for(n=n.entanglements;a;){var l=31-Mt(a),h=1<<l;h&r|n[l]&r&&(n[l]|=r),a&=~h}}function Gt(n,r){var a=r&-r;return a=(a&42)!==0?1:cs(a),(a&(n.suspendedLanes|r))!==0?0:a}function cs(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function An(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function pu(){var n=W.p;return n!==0?n:(n=window.event,n===void 0?32:ob(n.type))}function kp(n,r){var a=W.p;try{return W.p=n,r()}finally{W.p=a}}var Mi=Math.random().toString(36).slice(2),At="__reactFiber$"+Mi,Yt="__reactProps$"+Mi,us="__reactContainer$"+Mi,gu="__reactEvents$"+Mi,eE="__reactListeners$"+Mi,tE="__reactHandles$"+Mi,Ep="__reactResources$"+Mi,Ta="__reactMarker$"+Mi;function yu(n){delete n[At],delete n[Yt],delete n[gu],delete n[eE],delete n[tE]}function ds(n){var r=n[At];if(r)return r;for(var a=n.parentNode;a;){if(r=a[us]||a[At]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(n=Vv(n);n!==null;){if(a=n[At])return a;n=Vv(n)}return r}n=a,a=n.parentNode}return null}function hs(n){if(n=n[At]||n[us]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function Aa(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(s(33))}function fs(n){var r=n[Ep];return r||(r=n[Ep]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function wt(n){n[Ta]=!0}var Tp=new Set,Ap={};function xr(n,r){ms(n,r),ms(n+"Capture",r)}function ms(n,r){for(Ap[n]=r,n=0;n<r.length;n++)Tp.add(r[n])}var nE=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 6,765 bytes, line 9
9037D\\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]*$"),xp={},Rp={};function iE(n){return rn.call(Rp,n)?!0:rn.call(xp,n)?!1:nE.test(n)?Rp[n]=!0:(xp[n]=!0,!1)}function Zo(n,r,a){if(iE(r))if(a===null)n.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var l=r.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+a)}}function el(n,r,a){if(a===null)n.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+a)}}function Zn(n,r,a,l){if(l===null)n.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttributeNS(r,a,""+l)}}function fn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Cp(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function rE(n,r,a){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,m=l.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return h.call(this)},set:function(v){a=""+v,m.call(this,v)}}),Object.defineProperty(n,r,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(v){a=""+v},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function vu(n){if(!n._valueTracker){var r=Cp(n)?"checked":"value";n._valueTracker=rE(n,r,""+n[r])}}function Op(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var a=r.getValue(),l="";return n&&(l=Cp(n)?n.checked?"true":"false":n.value),n=l,n!==a?(r.setValue(n),!0):!1}function tl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var sE=/[\n"\\]/g;function mn(n){return n.replace(sE,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function bu(n,r,a,l,h,m,v,_){n.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.type=v:n.removeAttribute("type"),r!=null?v==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+fn(r)):n.value!==""+fn(r)&&(n.value=""+fn(r)):v!=="submit"&&v!=="reset"||n.removeAttribute("value"),r!=null?wu(n,v,fn(r)):a!=null?wu(n,v,fn(a)):l!=null&&n.removeAttribute("value"),h==null&&m!=null&&(n.defaultChecked=!!m),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?n.name=""+fn(_):n.removeAttribute("name")}function Lp(n,r,a,l,h,m,v,_){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),r!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||r!=null)){vu(n);return}a=a!=null?""+fn(a):"",r=r!=null?""+fn(r):a,_||r===n.value||(n.value=r),n.defaultValue=r}l=l??h,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=_?n.checked:!!l,n.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.name=v),vu(n)}function wu(n,r,a){r==="number"&&tl(n.ownerDocument)===n||n.defaultValue===""+a||(n.defaultValue=""+a)}function ps(n,r,a,l){if(n=n.options,r){r={};for(var h=0;h<a.length;h++)r["$"+a[h]]=!0;for(a=0;a<n.length;a++)h=r.hasOwnProperty("$"+n[a].value),n[a].selected!==h&&(n[a].selected=h),h&&l&&(n[a].defaultSelected=!0)}else{for(a=""+fn(a),r=null,h=0;h<n.length;h++){if(n[h].value===a){n[h].selected=!0,l&&(n[h].defaultSelected=!0);return}r!==null||n[h].disabled||(r=n[h])}r!==null&&(r.selected=!0)}}function zp(n,r,a){if(r!=null&&(r=""+fn(r),r!==n.value&&(n.value=r),a==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=a!=null?""+fn(a):""}function jp(n,r,a,l){if(r==null){if(l!=null){if(a!=null)throw Error(s(92));if(se(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),r=a}a=fn(r),n.defaultValue=a,l=n.textContent,l===a&&l!==""&&l!==null&&(n.value=l),vu(n)}function gs(n,r){if(r){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=r;return}}n.textContent=r}var aE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Dp(n,r,a){var l=r.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":l?n.setProperty(r,a):typeof a!="number"||a===0||aE.has(r)?r==="float"?n.cssFloat=a:n[r]=(""+a).trim():n[r]=a+"px"}function Mp(n,r,a){if(r!=null&&typeof r!="object")throw Error(s(62));if(n=n.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||r!=null&&r.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var h in r)l=r[h],r.hasOwnProperty(h)&&a[h]!==l&&Dp(n,h,l)}else for(var m in r)r.hasOwnProperty(m)&&Dp(n,m,r[m])}function Su(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var oE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
9dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),lE=/^[\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 nl(n){return lE.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function ei(){}var _u=null;function ku(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ys=null,vs=null;function Ip(n){var r=hs(n);if(r&&(n=r.stateNode)){var a=n[Yt]||null;e:switch(n=r.stateNode,r.type){case"input":if(bu(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),r=a.name,a.type==="radio"&&r!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+mn(""+r)+'"][type="radio"]'),r=0;r<a.length;r++){var l=a[r];if(l!==n&&l.form===n.form){var h=l[Yt]||null;if(!h)throw Error(s(90));bu(l,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(r=0;r<a.length;r++)l=a[r],l.form===n.form&&Op(l)}break e;case"textarea":zp(n,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&ps(n,!!a.multiple,r,!1)}}}var Eu=!1;function Np(n,r,a){if(Eu)return n(r,a);Eu=!0;try{var l=n(r);return l}finally{if(Eu=!1,(ys!==null||vs!==null)&&(Hl(),ys&&(r=ys,n=vs,vs=ys=null,Ip(r),n)))for(r=0;r<n.length;r++)Ip(n[r])}}function xa(n,r){var a=n.stateNode;if(a===null)return null;var l=a[Yt]||null;if(l===null)return null;a=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(s(231,r,typeof a));return a}var ti=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tu=!1;if(ti)try{var Ra={};Object.defineProperty(Ra,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",Ra,Ra),window.removeEventListener("test",Ra,Ra)}catch{Tu=!1}var Ii=null,Au=null,il=null;function Pp(){if(il)return il;
vendor: 3,122 bytes, line 9
9var n,r=Au,a=r.length,l,h="value"in Ii?Ii.value:Ii.textContent,m=h.length;for(n=0;n<a&&r[n]===h[n];n++);var v=a-n;for(l=1;l<=v&&r[a-l]===h[m-l];l++);return il=h.slice(n,1<l?1-l:void 0)}function rl(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function sl(){return!0}function Up(){return!1}function Wt(n){function r(a,l,h,m,v){this._reactName=a,this._targetInst=h,this.type=l,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var _ in n)n.hasOwnProperty(_)&&(a=n[_],this[_]=a?a(m):m[_]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?sl:Up,this.isPropagationStopped=Up,this}return g(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=sl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=sl)},persist:function(){},isPersistent:sl}),r}var Rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},al=Wt(Rr),Ca=g({},Rr,{view:0,detail:0}),cE=Wt(Ca),xu,Ru,Oa,ol=g({},Ca,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ou,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Oa&&(Oa&&n.type==="mousemove"?(xu=n.screenX-Oa.screenX,Ru=n.screenY-Oa.screenY):Ru=xu=0,Oa=n),xu)},movementY:function(n){return"movementY"in n?n.movementY:Ru}}),Bp=Wt(ol),uE=g({},ol,{dataTransfer:0}),dE=Wt(uE),hE=g({},Ca,{relatedTarget:0}),Cu=Wt(hE),fE=g({},Rr,{animationName:0,elapsedTime:0,pseudoElement:0}),mE=Wt(fE),pE=g({},Rr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),gE=Wt(pE),yE=g({},Rr,{data:0}),$p=Wt(yE),vE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bE={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"},wE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SE(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=wE[n])?!!r[n]:!1}function Ou(){return SE}var _E=g({},Ca,{key:function(n){if(n.key){var r=vE[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=rl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="
9keydown"||n.type==="keyup"?bE[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ou,charCode:function(n){return n.type==="keypress"?rl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?rl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),kE=Wt(_E),EE=g({},ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qp=Wt(EE),TE=g({},Ca,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),AE=Wt(TE),xE=g({},Rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),RE=Wt(xE),CE=g({},ol,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),OE=Wt(CE),LE=g({},Rr,{newState:0,oldState:0}),zE=Wt(LE),jE=[9,13,27,32],Lu=ti&&"CompositionEvent"in window,La=null;ti&&"documentMode"in document&&(La=document.documentMode);var DE=ti&&"TextEvent"in window&&!La,Hp=ti&&(!Lu||La&&8<La&&11>=La),Fp=" ",Vp=!1;function Kp(n,r){switch(n){case"keyup":return jE.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var bs=!1;function ME(n,r){switch(n){case"compositionend":return Gp(r);case"keypress":return r.which!==32?null:(Vp=!0,Fp);case"textInput":return n=r.data,n===Fp&&Vp?null:n;default:return null}}function IE(n,r){if(bs)return n==="compositionend"||!Lu&&Kp(n,r)?(n=Pp(),il=Au=Ii=null,bs=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Hp&&r.locale!=="ko"?null:r.data;default:return null}}var NE={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 Yp(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!NE[n.type]:r==="textarea"}function Wp(n,r,a,l){ys?vs?vs.push(l):vs=[l]:ys=l,r=Jl(r,"onChange"),0<r.length&&(a=new al("onChange","change",null,a,l),n.push({event:a,listeners:r}))}var za=null,ja=null;function PE(n){Lv(n,0)}function ll(n){var r=Aa(n);if(Op(r))return n}function Jp(n,r){if(n==="change")return r}var Qp=!1;if(ti){var zu;if(ti){var ju="oninput"in document;if(!ju){var Xp=document.createElement("div");Xp.setAttribute("oninput","return;"),ju=typeof Xp.oninput=="function"}zu=ju}else zu=!1;Qp=zu&&(!document.documentMode||9<document.documentMode)}function Zp(){za&&(za.detachEvent("onpropertychange",eg),ja=za=null)}function eg(n){if(n.propertyName==="value"&&ll(ja)){var r=[];Wp(r,ja,n,ku(n)),Np(PE,r)}}function UE(n,r,a){n==="focusin"?(Zp(),za=r,ja=a,za.attachEvent("onpropertychange",eg)):n==="focusout"&&Zp()}function BE(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ll(ja)}function $E(n,r){if(n==="click")return ll(r)}function qE(n,r){if(n==="input"||n==="change")return ll(r)}function HE(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var sn=typeof Object.is=="function"?Object.is:HE;function Da(n,r){if(sn(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var a=Object.keys(n),l=Object.keys(r);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var h=a[l];if(!rn.call(r,h)||!sn(n[h],r[h]))return!1}return!0}function tg(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function ng(n,r){var a=tg(n);n=0;for(var l;a;){if(a.nodeType===3){if(l=n+a.textContent.length,n<=r&&l>=r)return{node:a,offset:r-n};n=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=tg(a)}}function ig(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?ig(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function rg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=tl(n.document);r instanceof n.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)n=r.contentWindow;else break;r=tl(n.document)}return r}function Du(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var FE=ti&&"documentMode"in document&&11>=document.documentMode,ws=null,Mu=null,Ma=null,Iu=!1;function sg(n,r,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Iu||ws==null||ws!==tl(l)||(l=ws,"selectionStart"in l&&Du(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focu
vendor: 18,893 bytes, line 9
9sNode:l.focusNode,focusOffset:l.focusOffset}),Ma&&Da(Ma,l)||(Ma=l,l=Jl(Mu,"onSelect"),0<l.length&&(r=new al("onSelect","select",null,r,a),n.push({event:r,listeners:l}),r.target=ws)))}function Cr(n,r){var a={};return a[n.toLowerCase()]=r.toLowerCase(),a["Webkit"+n]="webkit"+r,a["Moz"+n]="moz"+r,a}var Ss={animationend:Cr("Animation","AnimationEnd"),animationiteration:Cr("Animation","AnimationIteration"),animationstart:Cr("Animation","AnimationStart"),transitionrun:Cr("Transition","TransitionRun"),transitionstart:Cr("Transition","TransitionStart"),transitioncancel:Cr("Transition","TransitionCancel"),transitionend:Cr("Transition","TransitionEnd")},Nu={},ag={};ti&&(ag=document.createElement("div").style,"AnimationEvent"in window||(delete Ss.animationend.animation,delete Ss.animationiteration.animation,delete Ss.animationstart.animation),"TransitionEvent"in window||delete Ss.transitionend.transition);function Or(n){if(Nu[n])return Nu[n];if(!Ss[n])return n;var r=Ss[n],a;for(a in r)if(r.hasOwnProperty(a)&&a in ag)return Nu[n]=r[a];return n}var og=Or("animationend"),lg=Or("animationiteration"),cg=Or("animationstart"),VE=Or("transitionrun"),KE=Or("transitionstart"),GE=Or("transitioncancel"),ug=Or("transitionend"),dg=new Map,Pu="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(" ");Pu.push("scrollEnd");function xn(n,r){dg.set(n,r),xr(r,[n])}var cl=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},pn=[],_s=0,Uu=0;function ul(){for(var n=_s,r=Uu=_s=0;r<n;){var a=pn[r];pn[r++]=null;var l=pn[r];pn[r++]=null;var h=pn[r];pn[r++]=null;var m=pn[r];if(pn[r++]=null,l!==null&&h!==null){var v=l.pending;v===null?h.next=h:(h.next=v.next,v.next=h),l.pending=h}m!==0&&hg(a,h,m)}}function dl(n,r,a,l){pn[_s++]=n,pn[_s++]=r,pn[_s++]=a,pn[_s++]=l,Uu|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function Bu(n,r,a,l){return dl(n,r,a,l),hl(n)}function Lr(n,r){return dl(n,null,null,r),hl(n)}function hg(n,r,a){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a);for(var h=!1,m=n.return;m!==null;)m.childLanes|=a,l=m.alternate,l!==null&&(l.childLanes|=a),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(h=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,h&&r!==null&&(h=31-Mt(a),n=m.hiddenUpdates,l=n[h],l===null?n[h]=[r]:l.push(r),r.lane=a|536870912),m):null}function hl(n){if(50<io)throw io=0,Wd=null,Error(s(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var ks={};function YE(n,r,a,l){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(n,r,a,l){return new YE(n,r,a,l)}function $u(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ni(n,r){var a=n.alternate;return a===null?(a=an(n.tag,r,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=r,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&65011712,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,r=n.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a.refCleanup=n.refCleanup,a}function fg(n,r){n.flags&=65011714;var a=n.alternate;return a===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=a.childLanes,n.lanes=a.lanes,n.child=a.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=a.memoizedProps,n.memoizedState=a.memoizedState,n.updateQueue=a.updateQueue,n.type=a.type,r=a.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function fl(n,r,a,l,h,m){var v=0;if(l=n,typeof n=="function")$u(n)&&(v=1);else if(typeof n=="string")v=ZT(n,a,X.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case ee:return n=an(31,a,r,h),n.elementType=ee,n.lanes=m,n;case k:return zr(a.children,h,m,r);case T:v=8,h|=24;break;case E:return n=an(12,a,r,h|2),n.elementType=E,n.lanes=m,n;case Q:return n=an(13,a,r,h),n.elementType=Q,n.lanes=m,n;case P:return n=an(19,a,r,h),n.elementType=P,n.lanes=m,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case C:v=10;break e;case L:v=9;break e;case $:v=11;break e;case j:v=14;break e;case U:v=16,l=null;break e}v=29,a=Error(s(130,n===null?"null":typeof n,"")),l=null}return r=an(v,a,r,h),r.elementType=n,r.type=l,r.lanes=m,r}function zr(n,r,a,l){return n=an(7,n,l,r),n.lanes=a,n}function qu(n,r,a){return n=an(6,n,null,r),n.lanes=a,n}function mg(n){var r=an(18,null,null,0);return r.stateNode=n,r}function Hu(n,r,a){return r=an(4,n.children!==null?n.children:[],n.key,r),r.lanes=a,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var pg=new WeakMap;function gn(n,r){if(typeof n=="object"&&n!==null){var a=pg.get(n);return a!==void 0?a:(r={value:n,source:r,stack:wa(r)},pg.set(n,r),r)}return{value:n,source:r,stack:wa(r)}}var Es=[],Ts=0,ml=null,Ia=0,yn=[],vn=0,Ni=null,Bn=1,$n="";function ii(n,r){Es[Ts++]=Ia,Es[Ts++]=ml,ml=n,Ia=r}function gg(n,r,a){yn[vn++]=Bn,yn[vn++]=$n,yn[vn++]=Ni,Ni=n;var l=Bn;n=$n;var h=32-Mt(l)-1;l&=~(1<<h),a+=1;var m=32-Mt(r)+h;if(30<m){var v=h-h%5;m=(l&(1<<v)-1).toString(32),l>>=v,h-=v,Bn=1<<32-Mt(r)+h|a<<h|l,$n=m+n}else Bn=1<<m|a<<h|l,$n=n}function Fu(n){n.return!==null&&(ii(n,1),gg(n,1,0))}function Vu(n){for(;n===ml;)ml=Es[--Ts],Es[Ts]=null,Ia=Es[--Ts],Es[Ts]=null;for(;n===Ni;)Ni=yn[--vn],yn[vn]=null,$n=yn[--vn],yn[vn]=null,Bn=yn[--vn],yn[vn]=null}function yg(n,r){yn[vn++]=Bn,yn[vn++]=$n,yn[vn++]=Ni,Bn=r.id,$n=r.overflow,Ni=n}var xt=null,Qe=null,De=!1,Pi=null,bn=!1,Ku=Error(s(519));function Ui(n){var r=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Na(gn(r,n)),Ku}function vg(n){var r=n.stateNode,a=n.type,l=n.memoizedProps;switch(r[At]=n,r[Yt]=l,a){case"dialog":Le("cancel",r),Le("close",r);break;case"iframe":case"object":case"embed":Le("load",r);break;case"video":case"audio":for(a=0;a<so.length;a++)Le(so[a],r);break;case"source":Le("error",r);break;case"img":case"image":case"link":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"input":Le("invalid",r),Lp(r,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Le("invalid",r);break;case"textarea":Le("invalid",r),jp(r,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||l.suppressHydrationWarning===!0||Mv(r.textContent,a)?(l.popover!=null&&(Le("beforetoggle",r),Le("toggle",r)),l.onScroll!=null&&Le("scroll",r),l.onScrollEnd!=null&&Le("scrollend",r),l.onClick!=null&&(r.onclick=ei),r=!0):r=!1,r||Ui(n,!0)}function bg(n){for(xt=n.return;xt;)switch(xt.tag){case 5:case 31:case 13:bn=!1;return;case 27:case 3:bn=!0;return;default:xt=xt.return}}function As(n){if(n!==xt)return!1;if(!De)return bg(n),De=!0,!1;var r=n.tag,a;if((a=r!==3&&r!==27)&&((a=r===5)&&(a=n.type,a=!(a!=="form"&&a!=="button")||uh(n.type,n.memoizedProps)),a=!a),a&&Qe&&Ui(n),bg(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Qe=Fv(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Qe=Fv(n)}else r===27?(r=Qe,Zi(n.type)?(n=ph,ph=null,Qe=n):Qe=r):Qe=xt?Sn(n.stateNode.nextSibling):null;return!0}function jr(){Qe=xt=null,De=!1}function Gu(){var n=Pi;return n!==null&&(Zt===null?Zt=n:Zt.push.apply(Zt,n),Pi=null),n}function Na(n){Pi===null?Pi=[n]:Pi.push(n)}var Yu=R(null),Dr=null,ri=null;function Bi(n,r,a){F(Yu,r._currentValue),r._currentValue=a}function si(n){n._currentValue=Yu.current,H(Yu)}function Wu(n,r,a){for(;n!==null;){var l=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),n===a)break;n=n.return}}function Ju(n,r,a,l){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var m=h.dependencies;if(m!==null){var v=h.child;m=m.firstContext;e:for(;m!==null;){var _=m;m=h;for(var x=0;x<r.length;x++)if(_.context===r[x]){m.lanes|=a,_=m.alternate,_!==null&&(_.lanes|=a),Wu(m.return,a,n),l||(v=null);break e}m=_.next}}else if(h.tag===18){if(v=h.return,v===null)throw Error(s(341));v.lanes|=a,m=v.alternate,m!==null&&(m.lanes|=a),Wu(v,a,n),v=null}else v=h.child;if(v!==null)v.return=h;else for(v=h;v!==null;){if(v===n){v=null;break}if(h=v.sibling,h!==null){h.return=v.return,v=h;break}v=v.return}h=v}}function xs(n,r,a,l){n=null;for(var h=r,m=!1;h!==null;){if(!m){if((h.flags&524288)!==0)m=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var v=h.alternate;if(v===null)throw Error(s(387));if(v=v.memoizedProps,v!==null){var _=h.type;sn(h.pendingProps.value,v.value)||(n!==null?n.push(_):n=[_])}}else if(h===fe.current){if(v=h.alternate,v===null)throw Error(s(387));v.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(uo):n=[uo])}h=h.return}n!==null&&Ju(r,n,a,l),r.flags|=262144}function pl(n){for(n=n.firstContext;n!==null;){if(!sn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Mr(n){Dr=n,ri=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Rt(n){return wg(Dr,n)}function gl(n,r){return Dr===null&&Mr(n),wg(n,r)}function wg(n,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},ri===null){if(n===null)throw Error(s(308));ri=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else ri=ri.next=r;return a}var WE=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(a,l){n.push(l)}};this.abort=function(){r.aborted=!0,n.forEach(function(a){return a()})}},JE=e.unstable_scheduleCallback,QE=e.unstable_NormalPriority,lt={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qu(){return{controller:new WE,data:new Map,refCount:0}}function Pa(n){n.refCount--,n.refCount===0&&JE(QE,function(){n.controller.abort()})}var Ua=null,Xu=0,Rs=0,Cs=null;function XE(n,r){if(Ua===null){var a=Ua=[];Xu=0,Rs=th(),Cs={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Xu++,r.then(Sg,Sg),r}function Sg(){if(--Xu===0&&Ua!==null){Cs!==null&&(Cs.status="fulfilled");var n=Ua;Ua=null,Rs=0,Cs=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function ZE(n,r){var a=[],l={status:"pending",value:null,reason:null,then:function(h){a.push(h)}};return n.then(function(){l.status="fulfilled",l.value=r;for(var h=0;h<a.length;h++)(0,a[h])(r)},function(h){for(l.status="rejected",l.reason=h,h=0;h<a.length;h++)(0,a[h])(void 0)}),l}var _g=z.S;z.S=function(n,r){sv=Bt(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&XE(n,r),_g!==null&&_g(n,r)};var Ir=R(null);function Zu(){var n=Ir.current;return n!==null?n:Ge.pooledCache}function yl(n,r){r===null?F(Ir,Ir.current):F(Ir,r.pool)}function kg(){var n=Zu();return n===null?null:{parent:lt._currentValue,pool:n}}var Os=Error(s(460)),ed=Error(s(474)),vl=Error(s(542)),bl={then:function(){}};function Eg(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Tg(n,r,a){switch(a=n[a],a===void 0?n.push(r):a!==r&&(r.then(ei,ei),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,xg(n),n;default:if(typeof r.status=="string")r.then(ei,ei);else{if(n=Ge,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=r,n.status="pending",n.then(function(l){if(r.status==="pending"){var h=r;h.status="fulfilled",h.value=l}},function(l){if(r.status==="pending"){var h=r;h.status="rejected",h.reason=l}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,xg(n),n}throw Pr=r,Os}}function Nr(n){try{var r=n._init;return r(n._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Pr=a,Os):a}}var Pr=null;function Ag(){if(Pr===null)throw Error(s(459));var n=Pr;return Pr=null,n}function xg(n){if(n===Os||n===vl)throw Error(s(483))}var Ls=null,Ba=0;function wl(n){var r=Ba;return Ba+=1,Ls===null&&(Ls=[]),Tg(Ls,n,r)}function $a(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function Sl(n,r){throw r.$$typeof===b?Error(s(525)):(n=Object.prototype.toString.call(r),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function Rg(n){function r(D,O){if(n){var M=D.deletions;M===null?(D.deletions=[O],D.flags|=16):M.push(O)}}function a(D,O){if(!n)return null;for(;O!==null;)r(D,O),O=O.sibling;return null}function l(D){for(var O=new Map;D!==null;)D.key!==null?O.set(D.key,D):O.set(D.index,D),D=D.sibling;return O}function h(D,O){return D=ni(D,O),D.index=0,D.sibling=null,D}function m(D,O,M){return D.index=M,n?(M=D.alternate,M!==null?(M=M.index,M<O?(D.flags|=67108866,O):M):(D.flags|=67108866,O)):(D.flags|=1048576,O)}function v(D){return n&&D.alternate===null&&(D.flags|=67108866),D}function _(D,O,M,V){return O===null||O.tag!==6?(O=qu(M,D.mode,V),O.return=D,O):(O=h(O,M),O.return=D,O)}function x(D,O,M,V){var ve=M.type;return ve===k?q(D,O,M.props.children,V,M.key):O!==null&&(O.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===U&&Nr(ve)===O.type)?(O=h(O,M.props),$a(O,M),O.return=D,O):(O=fl(M.type,M.key,M.props,null,D.mode,V),$a(O,M),O.return=D,O)}function I(D,O,M,V){return O===null||O.tag!==4||O.stateNode.containerInfo!==M.containerInfo||O.stateNode.implementation!==M.implementation?(O=Hu(M,D.mode,V),O.return=D,O):(O=h(O,M.children||[]),O.return=D,O)}function q(D,O,M,V,ve){return O===null||O.tag!==7?(O=zr(M,D.mode,V,ve),O.return=D,O):(O=h(O,M),O.return=D,O)}function K(D,O,M){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=qu(""+O,D.mode,M),O.return=D,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case w:return M=fl(O.type,O.key,O.props,null,D.mode,M),$a(M,O),M.return=D,M;case S:return O=Hu(O,D.mode,M),O.return=D,O;case U:return O=Nr(O),K(D,O,M)}if(se(O)||Y(O))return O=zr(O,D.mode,M,null),O.return=D,O;if(typeof O.then=="function")return K(D,wl(O),M);if(O.$$typeof===C)return K(D,gl(D,O),M);Sl(D,O)}return null}function N(D,O,M,V){var ve=O!==null?O.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ve!==null?null:_(D,O,""+M,V);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case w:return M.key===ve?x(D,O,M,V):null;case S:return M.key===ve?I(D,O,M,V):null;case U:return M=Nr(M),N(D,O,M,V)}if(se(M)||Y(M))return ve!==null?null:q(D,O,M,V,null);if(typeof M.then=="function")return N(D,O,wl(M),V);if(M.$$typeof===C)return N(D,O,gl(D,M),V);Sl(D,M)}return null}function B(D,O,M,V,ve){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return D=D.get(M)||null,_(O,D,""+V,ve);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case w:return D=D.get(V.key===null?M:V.key)||null,x(O,D,V,ve);case S:return D=D.get(V.key===null?M:V.key)||null,I(O,D,V,ve);case U:return V=Nr(V),B(D,O,M,V,ve)}if(se(V)||Y(V))return D=D.get(M)||null,q(O,D,V,ve,null);if(typeof V.then=="function")return B(D,O,M,wl(V),ve);if(V.$$typeof===C)return B(D,O,M,gl(O,V),ve);Sl(O,V)}return null}function ce(D,O,M,V){for(var ve=null,Ne=null,pe=O,Re=O=0,je=null;pe!==null&&Re<M.length;Re++){pe.index>Re?(je=pe,pe=null):je=pe.sibling;var Pe=N(D,pe,M[Re],V);if(Pe===null){pe===null&&(pe=je);break}n&&pe&&Pe.alternate===null&&r(D,pe),O=m(Pe,O,Re),Ne===null?ve=Pe:Ne.sibling=Pe,Ne=Pe,pe=je}if(Re===M.length)return a(D,pe),De&&ii(D,Re),ve;if(pe===null){for(;Re<M.length;Re++)pe=K(D,M[Re],V),pe!==null&&(O=m(pe,O,Re),Ne===null?ve=pe:Ne.sibling=pe,Ne=pe);return De&&ii(D,Re),ve}for(pe=l(pe);Re<M.length;Re++)je=B(pe,D,Re,M[Re],V),je!==null&&(n&&je.alternate!==null&&pe.delete(je.key===null?Re:je.key),O=m(je,O,Re),Ne===null?ve=je:Ne.sibling=je,Ne=je);return n&&pe.forEach(function(rr){return r(D,rr)}),De&&ii(D,Re),ve}function _e(D,O,M,V){if(M==null)throw Error(s(151));for(var ve=null,Ne=null,pe=O,Re=O=0,je=null,Pe=M.next();pe!==null&&!Pe.done;Re++,Pe=M.next()){pe.index>Re?(je=pe,pe=null):je=pe.sibling;var rr=N(D,pe,Pe.value,V);if(rr===null){pe===null&&(pe=je);break}n&&pe&&rr.alternate===null&&r(D,pe),O=m(rr,O,Re),Ne===null?ve=rr:Ne.sibling=rr,Ne=rr,pe=je}if(Pe.done)return a(D,pe),De&&ii(D,Re),ve;if(pe===null){for(;!Pe.done;Re++,Pe=M.next())Pe=K(D,Pe.value,V),Pe!==null&&(O=m(Pe,O,Re),Ne===null?ve=Pe:Ne.sibling=Pe,Ne=Pe);return De&&ii(D,Re),ve}for(pe=l(pe);!Pe.done;Re++,Pe=M.next())Pe=B(pe,D,Re,Pe.value,V),Pe!==null&&(n&&Pe.alternate!==null&&pe.delete(Pe.key===null?Re:Pe.key),O=m(Pe,O,Re),Ne===null?ve=Pe:Ne.sibling=Pe,Ne=Pe);return n&&pe.forEach(function(uA){return r(D,uA)}),De&&ii(D,Re),ve}function Ve(D,O,M,V){if(typeof M=="object"&&M!==null&&M.type===k&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case w:e:{for(var ve=M.key;O!==null;){if(O.key===ve){if(ve=M.type,ve===k){if(O.tag===7){a(D,O.sibling),V=h(O,M.props.children),V.return=D,D=V;break e}}else if(O.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===U&&Nr(ve)===O.type){a(D,O.sibling),V=h(O,M.props),$a(V,M),V.return=D,D=V;break e}a(D,O);break}else r(D,O);O=O.sibling}M.type===k?(V=zr(M.props.children,D.mode,V,M.key),V.return=D,D=V):(V=fl(M.type,M.key,M.props,null,D.mode,V),$a(V,M),V.return=D,D=V)}return v(D);case S:e:{for(ve=M.key;O!==null;){if(O.key===ve)if(O.tag===4&&O.stateNode.containerInfo===M.containerInfo&&O.stateNode.implementation===M.implementation){a(D,O.sibling),V=h(O,M.children||[]),V.return=D,D=V;break e}else{a(D,O);break}else r(D,O);O=O.sibling}V=Hu(M,D.mode,V),V.return=D,D=V}return v(D);case U:return M=Nr(M),Ve(D,O,M,V)}if(se(M))return ce(D,O,M,V);if(Y(M)){if(ve=Y(M),typeof ve!="function")throw Error(s(150));return M=ve.call(M),_e(D,O,M,V)}
vendor: 5,086 bytes, line 9
9if(typeof M.then=="function")return Ve(D,O,wl(M),V);if(M.$$typeof===C)return Ve(D,O,gl(D,M),V);Sl(D,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,O!==null&&O.tag===6?(a(D,O.sibling),V=h(O,M),V.return=D,D=V):(a(D,O),V=qu(M,D.mode,V),V.return=D,D=V),v(D)):a(D,O)}return function(D,O,M,V){try{Ba=0;var ve=Ve(D,O,M,V);return Ls=null,ve}catch(pe){if(pe===Os||pe===vl)throw pe;var Ne=an(29,pe,null,D.mode);return Ne.lanes=V,Ne.return=D,Ne}}}var Ur=Rg(!0),Cg=Rg(!1),$i=!1;function td(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nd(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function qi(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Hi(n,r,a){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Ue&2)!==0){var h=l.pending;return h===null?r.next=r:(r.next=h.next,h.next=r),l.pending=r,r=hl(n),hg(n,null,a),r}return dl(n,l,r,a),hl(n)}function qa(n,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,(a&4194048)!==0)){var l=r.lanes;l&=n.pendingLanes,a|=l,r.lanes=a,Kt(n,a)}}function id(n,r){var a=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var h=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?h=m=v:m=m.next=v,a=a.next}while(a!==null);m===null?h=m=r:m=m.next=r}else h=m=r;a={baseState:l.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=r:n.next=r,a.lastBaseUpdate=r}var rd=!1;function Ha(){if(rd){var n=Cs;if(n!==null)throw n}}function Fa(n,r,a,l){rd=!1;var h=n.updateQueue;$i=!1;var m=h.firstBaseUpdate,v=h.lastBaseUpdate,_=h.shared.pending;if(_!==null){h.shared.pending=null;var x=_,I=x.next;x.next=null,v===null?m=I:v.next=I,v=x;var q=n.alternate;q!==null&&(q=q.updateQueue,_=q.lastBaseUpdate,_!==v&&(_===null?q.firstBaseUpdate=I:_.next=I,q.lastBaseUpdate=x))}if(m!==null){var K=h.baseState;v=0,q=I=x=null,_=m;do{var N=_.lane&-536870913,B=N!==_.lane;if(B?(ze&N)===N:(l&N)===N){N!==0&&N===Rs&&(rd=!0),q!==null&&(q=q.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var ce=n,_e=_;N=r;var Ve=a;switch(_e.tag){case 1:if(ce=_e.payload,typeof ce=="function"){K=ce.call(Ve,K,N);break e}K=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=_e.payload,N=typeof ce=="function"?ce.call(Ve,K,N):ce,N==null)break e;K=g({},K,N);break e;case 2:$i=!0}}N=_.callback,N!==null&&(n.flags|=64,B&&(n.flags|=8192),B=h.callbacks,B===null?h.callbacks=[N]:B.push(N))}else B={lane:N,tag:_.tag,payload:_.payload,callback:_.callback,next:null},q===null?(I=q=B,x=K):q=q.next=B,v|=N;if(_=_.next,_===null){if(_=h.shared.pending,_===null)break;B=_,_=B.next,B.next=null,h.lastBaseUpdate=B,h.shared.pending=null}}while(!0);q===null&&(x=K),h.baseState=x,h.firstBaseUpdate=I,h.lastBaseUpdate=q,m===null&&(h.shared.lanes=0),Yi|=v,n.lanes=v,n.memoizedState=K}}function Og(n,r){if(typeof n!="function")throw Error(s(191,n));n.call(r)}function Lg(n,r){var a=n.callbacks;if(a!==null)for(n.callbacks=null,n=0;n<a.length;n++)Og(a[n],r)}var zs=R(null),_l=R(0);function zg(n,r){n=mi,F(_l,n),F(zs,r),mi=n|r.baseLanes}function sd(){F(_l,mi),F(zs,zs.current)}function ad(){mi=_l.current,H(zs),H(_l)}var on=R(null),wn=null;function Fi(n){var r=n.alternate;F(at,at.current&1),F(on,n),wn===null&&(r===null||zs.current!==null||r.memoizedState!==null)&&(wn=n)}function od(n){F(at,at.current),F(on,n),wn===null&&(wn=n)}function jg(n){n.tag===22?(F(at,at.current),F(on,n),wn===null&&(wn=n)):Vi()}function Vi(){F(at,at.current),F(on,on.current)}function ln(n){H(on),wn===n&&(wn=null),H(at)}var at=R(0);function kl(n){for(var r=n;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||fh(a)||mh(a)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var ai=0,xe=null,He=null,ct=null,El=!1,js=!1,Br=!1,Tl=0,Va=0,Ds=null,eT=0;function nt(){throw Error(s(321))}function ld(n,r){if(r===null)return!1;for(var a=0;a<r.length&&a<n.length;a++)if(!sn(n[a],r[a]))return!1;return!0}function cd(n,r,a,l,h,m){return ai=m,xe=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,z.H=n===null||n.memoizedState===null?gy:Ed,Br=!1,m=a(l,h),Br=!1,js&&(m=Mg(r,a,l,h)),Dg(n),m}function Dg(n){z.H=Ya;var r=He!==null&&He.next!==null;if(ai=0,ct=He=xe=null,El=!1,Va=0,Ds=null,r)throw Error(s(300));n===null||ut||(n=n.dependencies,n!==null&&pl(n)&&(ut=!0))}function Mg(n,r,a,l){xe=n;var h=0;
vendor: 7,370 bytes, line 9
9do{if(js&&(Ds=null),Va=0,js=!1,25<=h)throw Error(s(301));if(h+=1,ct=He=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}z.H=yy,m=r(a,l)}while(js);return m}function tT(){var n=z.H,r=n.useState()[0];return r=typeof r.then=="function"?Ka(r):r,n=n.useState()[0],(He!==null?He.memoizedState:null)!==n&&(xe.flags|=1024),r}function ud(){var n=Tl!==0;return Tl=0,n}function dd(n,r,a){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~a}function hd(n){if(El){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}El=!1}ai=0,ct=He=xe=null,js=!1,Va=Tl=0,Ds=null}function qt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?xe.memoizedState=ct=n:ct=ct.next=n,ct}function ot(){if(He===null){var n=xe.alternate;n=n!==null?n.memoizedState:null}else n=He.next;var r=ct===null?xe.memoizedState:ct.next;if(r!==null)ct=r,He=n;else{if(n===null)throw xe.alternate===null?Error(s(467)):Error(s(310));He=n,n={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},ct===null?xe.memoizedState=ct=n:ct=ct.next=n}return ct}function Al(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ka(n){var r=Va;return Va+=1,Ds===null&&(Ds=[]),n=Tg(Ds,n,r),r=xe,(ct===null?r.memoizedState:ct.next)===null&&(r=r.alternate,z.H=r===null||r.memoizedState===null?gy:Ed),n}function xl(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Ka(n);if(n.$$typeof===C)return Rt(n)}throw Error(s(438,String(n)))}function fd(n){var r=null,a=xe.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var l=xe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(r={data:l.data.map(function(h){return h.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),a===null&&(a=Al(),xe.updateQueue=a),a.memoCache=r,a=r.data[r.index],a===void 0)for(a=r.data[r.index]=Array(n),l=0;l<n;l++)a[l]=he;return r.index++,a}function oi(n,r){return typeof r=="function"?r(n):r}function Rl(n){var r=ot();return md(r,He,n)}function md(n,r,a){var l=n.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var h=n.baseQueue,m=l.pending;if(m!==null){if(h!==null){var v=h.next;h.next=m.next,m.next=v}r.baseQueue=h=m,l.pending=null}if(m=n.baseState,h===null)n.memoizedState=m;else{r=h.next;var _=v=null,x=null,I=r,q=!1;do{var K=I.lane&-536870913;if(K!==I.lane?(ze&K)===K:(ai&K)===K){var N=I.revertLane;if(N===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),K===Rs&&(q=!0);else if((ai&N)===N){I=I.next,N===Rs&&(q=!0);continue}else K={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},x===null?(_=x=K,v=m):x=x.next=K,xe.lanes|=N,Yi|=N;K=I.action,Br&&a(m,K),m=I.hasEagerState?I.eagerState:a(m,K)}else N={lane:K,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},x===null?(_=x=N,v=m):x=x.next=N,xe.lanes|=K,Yi|=K;I=I.next}while(I!==null&&I!==r);if(x===null?v=m:x.next=_,!sn(m,n.memoizedState)&&(ut=!0,q&&(a=Cs,a!==null)))throw a;n.memoizedState=m,n.baseState=v,n.baseQueue=x,l.lastRenderedState=m}return h===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function pd(n){var r=ot(),a=r.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var l=a.dispatch,h=a.pending,m=r.memoizedState;if(h!==null){a.pending=null;var v=h=h.next;do m=n(m,v.action),v=v.next;while(v!==h);sn(m,r.memoizedState)||(ut=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),a.lastRenderedState=m}return[m,l]}function Ig(n,r,a){var l=xe,h=ot(),m=De;if(m){if(a===void 0)throw Error(s(407));a=a()}else a=r();var v=!sn((He||h).memoizedState,a);if(v&&(h.memoizedState=a,ut=!0),h=h.queue,vd(Ug.bind(null,l,h,n),[n]),h.getSnapshot!==r||v||ct!==null&&ct.memoizedState.tag&1){if(l.flags|=2048,Ms(9,{destroy:void 0},Pg.bind(null,l,h,a,r),null),Ge===null)throw Error(s(349));m||(ai&127)!==0||Ng(l,r,a)}return a}function Ng(n,r,a){n.flags|=16384,n={getSnapshot:r,value:a},r=xe.updateQueue,r===null?(r=Al(),xe.updateQueue=r,r.stores=[n]):(a=r.stores,a===null?r.stores=[n]:a.push(n))}function Pg(n,r,a,l){r.value=a,r.getSnapshot=l,Bg(r)&&$g(n)}function Ug(n,r,a){return a(function(){Bg(r)&&$g(n)})}function Bg(n){var r=n.getSnapshot;n=n.value;try{var a=r();return!sn(n,a)}catch{return!0}}function $g(n){var r=Lr(n,2);r!==null&&en(r,n,2)}function gd(n){var r=qt();if(typeof n=="function"){var a=n;if(n=a(),Br){Tn(!0);try{a()}finally{Tn(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:n},r}function qg(n,r,a,l){return n.baseState=a,md(n,He,typeof l=="function"?l:oi)}function nT(n,r,a,l,h){if(Ll(n))throw Error(s(485));if(n=r.action,n!==null){var m={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){m.listeners.push(v)}};z.T!==null?a(!0):m.isTransition=!1,l(m),a=r.pending,a===null?(m.next=r.pending=m,Hg(r,m)):(m.next=a.next,r.pending=a.next=m)}}function Hg(n,r){var a=r.action,l=r.payload,h=n.state;if(r.isTransition){var m=z.T,v={};z.T=v;try{var _=a(h,l),x=z.S;x!==null&&x(v,_),Fg(n,r,_)}catch(I){yd(n,r,I)}finally{m!==null&&v.types!==null&&(m.types=v.types),z.T=m}}else try{m=a(h,l),Fg(n,r,m)}catch(I){yd(n,r,I)}}function Fg(n,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Vg(n,r,l)},function(l){return yd(n,r,l)}):Vg(n,r,a)}function Vg(n,r,a){r.status="fulfilled",r.value=a,Kg(r),n.state=a,r=n.pending,r!==null&&(a=r.next,a===r?n.pending=null:(a=a.next,r.next=a,Hg(n,a)))}function yd(n,r,a){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do r.status="rejected",r.reason=a,Kg(r),r=r.next;while(r!==l)}n.action=null}function Kg(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function Gg(n,r){return r}function Yg(n,r){if(De){var a=Ge.formState;if(a!==null){e:{var l=xe;if(De){if(Qe){t:{for(var h=Qe,m=bn;h.nodeType!==8;){if(!m){h=null;break t}if(h=Sn(h.nextSibling),h===null){h=null;break t}}m=h.data,h=m==="F!"||m==="F"?h:null}if(h){Qe=Sn(h.nextSibling),l=h.data==="F!";break e}}Ui(l)}l=!1}l&&(r=a[0])}}return a=qt(),a.memoizedState=a.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gg,lastRenderedState:r},a.queue=l,a=fy.bind(null,xe,l),l.dispatch=a,l=gd(!1),m=kd.bind(null,xe,!1,l.queue),l=qt(),h={state:r,dispatch:null,action:n,pending:null},l.queue=h,a=nT.bind(null,xe,h,m,a),h.dispatch=a,l.memoizedState=n,[r,a,!1]}function Wg(n){var r=ot();return Jg(r,He,n)}function Jg(n,r,a){if(r=md(n,r,Gg)[0],n=Rl(oi)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var l=Ka(r)}catch(v){throw v===Os?vl:v}else l=r;r=ot();var h=r.queue,m=h.dispatch;return a!==r.memoizedState&&(xe.flags|=2048,Ms(9,{destroy:void 0},iT.bind(null,h,a),null)),[l,m,n]}function iT(n,r){n.action=r}function Qg(n){var r=ot(),a=He;if(a!==null)return Jg(r,a,n);ot(),r=r.memoizedState,a=ot();var l=a.queue.dispatch;return a.memoizedState=n,[r,l,!1]}function Ms(n,r,a,l){return n={tag:n,create:a,deps:l,inst:r,next:null},r=xe.updateQueue,r===null&&(r=Al(),xe.updateQueue=r),a=r.lastEffect,a===null?r.lastEffect=n.next=n:(l=a.next,a.next=n,n.next=l,r.lastEffect=n),n}
vendor: 5,291 bytes, line 9
9function Xg(){return ot().memoizedState}function Cl(n,r,a,l){var h=qt();xe.flags|=n,h.memoizedState=Ms(1|r,{destroy:void 0},a,l===void 0?null:l)}function Ol(n,r,a,l){var h=ot();l=l===void 0?null:l;var m=h.memoizedState.inst;He!==null&&l!==null&&ld(l,He.memoizedState.deps)?h.memoizedState=Ms(r,m,a,l):(xe.flags|=n,h.memoizedState=Ms(1|r,m,a,l))}function Zg(n,r){Cl(8390656,8,n,r)}function vd(n,r){Ol(2048,8,n,r)}function rT(n){xe.flags|=4;var r=xe.updateQueue;if(r===null)r=Al(),xe.updateQueue=r,r.events=[n];else{var a=r.events;a===null?r.events=[n]:a.push(n)}}function ey(n){var r=ot().memoizedState;return rT({ref:r,nextImpl:n}),function(){if((Ue&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function ty(n,r){return Ol(4,2,n,r)}function ny(n,r){return Ol(4,4,n,r)}function iy(n,r){if(typeof r=="function"){n=n();var a=r(n);return function(){typeof a=="function"?a():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function ry(n,r,a){a=a!=null?a.concat([n]):null,Ol(4,4,iy.bind(null,r,n),a)}function bd(){}function sy(n,r){var a=ot();r=r===void 0?null:r;var l=a.memoizedState;return r!==null&&ld(r,l[1])?l[0]:(a.memoizedState=[n,r],n)}function ay(n,r){var a=ot();r=r===void 0?null:r;var l=a.memoizedState;if(r!==null&&ld(r,l[1]))return l[0];if(l=n(),Br){Tn(!0);try{n()}finally{Tn(!1)}}return a.memoizedState=[l,r],l}function wd(n,r,a){return a===void 0||(ai&1073741824)!==0&&(ze&261930)===0?n.memoizedState=r:(n.memoizedState=a,n=ov(),xe.lanes|=n,Yi|=n,a)}function oy(n,r,a,l){return sn(a,r)?a:zs.current!==null?(n=wd(n,a,l),sn(n,r)||(ut=!0),n):(ai&42)===0||(ai&1073741824)!==0&&(ze&261930)===0?(ut=!0,n.memoizedState=a):(n=ov(),xe.lanes|=n,Yi|=n,r)}function ly(n,r,a,l,h){var m=W.p;W.p=m!==0&&8>m?m:8;var v=z.T,_={};z.T=_,kd(n,!1,r,a);try{var x=h(),I=z.S;if(I!==null&&I(_,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var q=ZE(x,l);Ga(n,r,q,dn(n))}else Ga(n,r,l,dn(n))}catch(K){Ga(n,r,{then:function(){},status:"rejected",reason:K},dn())}finally{W.p=m,v!==null&&_.types!==null&&(v.types=_.types),z.T=v}}function sT(){}function Sd(n,r,a,l){if(n.tag!==5)throw Error(s(476));var h=cy(n).queue;ly(n,h,r,le,a===null?sT:function(){return uy(n),a(l)})}function cy(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:le},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:a},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function uy(n){var r=cy(n);r.next===null&&(r=n.alternate.memoizedState),Ga(n,r.next.queue,{},dn())}function _d(){return Rt(uo)}function dy(){return ot().memoizedState}function hy(){return ot().memoizedState}function aT(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var a=dn();n=qi(a);var l=Hi(r,n,a);l!==null&&(en(l,r,a),qa(l,r,a)),r={cache:Qu()},n.payload=r;return}r=r.return}}function oT(n,r,a){var l=dn();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ll(n)?my(r,a):(a=Bu(n,r,a,l),a!==null&&(en(a,n,l),py(a,r,l)))}function fy(n,r,a){var l=dn();Ga(n,r,a,l)}function Ga(n,r,a,l){var h={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ll(n))my(r,h);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var v=r.lastRenderedState,_=m(v,a);if(h.hasEagerState=!0,h.eagerState=_,sn(_,v))return dl(n,r,h,0),Ge===null&&ul(),!1}catch{}if(a=Bu(n,r,h,l),a!==null)return en(a,n,l),py(a,r,l),!0}return!1}function kd(n,r,a,l){if(l={lane:2,revertLane:th(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ll(n)){if(r)throw Error(s(479))}else r=Bu(n,a,l,2),r!==null&&en(r,n,2)}function Ll(n){var r=n.alternate;return n===xe||r!==null&&r===xe}function my(n,r){js=El=!0;var a=n.pending;a===null?r.next=r:(r.next=a.next,a.next=r),n.pending=r}function py(n,r,a){if((a&4194048)!==0){var l=r.lanes;l&=n.pendingLanes,a|=l,r.lanes=a,Kt(n,a)}}var Ya={readContext:Rt,use:xl,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};Ya.useEffectEvent=nt;var gy={readContext:Rt,use:xl,useCallback:function(n,r){return qt().memoizedState=[n,r===void 0?null:r],n},useContext:Rt,useEffect:Zg,useImperativeHandle:function(n,r,a){a=a!=null?a.concat([n]):null,Cl(4194308,4,iy.bind(null,r,n),a)},useLayoutEffect:function(n,r){return Cl(4194308,4,n,r)},useInsertionEffect:function(n,r){Cl(4,2,n,r)},useMemo:function(n,r){var a=qt();r=r===void 0?null:r;var l=n();if(Br){Tn(!0);try{n()}finally{Tn(!1)}}return a.memoizedState=[l,r],l},useReducer:function(n,r,a){var l=qt();if(a!==void 0){var h=a(r);if(Br){Tn(!0);try{a(r)}finally{Tn(!1)}}}else h=r;return l.memoizedState=l.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},l.queue=n,n=n.dispatch=oT.bind(null,xe,n),[l.memoizedState,n]}
vendor: 6,380 bytes, line 9
9,useRef:function(n){var r=qt();return n={current:n},r.memoizedState=n},useState:function(n){n=gd(n);var r=n.queue,a=fy.bind(null,xe,r);return r.dispatch=a,[n.memoizedState,a]},useDebugValue:bd,useDeferredValue:function(n,r){var a=qt();return wd(a,n,r)},useTransition:function(){var n=gd(!1);return n=ly.bind(null,xe,n.queue,!0,!1),qt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,a){var l=xe,h=qt();if(De){if(a===void 0)throw Error(s(407));a=a()}else{if(a=r(),Ge===null)throw Error(s(349));(ze&127)!==0||Ng(l,r,a)}h.memoizedState=a;var m={value:a,getSnapshot:r};return h.queue=m,Zg(Ug.bind(null,l,m,n),[n]),l.flags|=2048,Ms(9,{destroy:void 0},Pg.bind(null,l,m,a,r),null),a},useId:function(){var n=qt(),r=Ge.identifierPrefix;if(De){var a=$n,l=Bn;a=(l&~(1<<32-Mt(l)-1)).toString(32)+a,r="_"+r+"R_"+a,a=Tl++,0<a&&(r+="H"+a.toString(32)),r+="_"}else a=eT++,r="_"+r+"r_"+a.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:_d,useFormState:Yg,useActionState:Yg,useOptimistic:function(n){var r=qt();r.memoizedState=r.baseState=n;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=kd.bind(null,xe,!0,a),a.dispatch=r,[n,r]},useMemoCache:fd,useCacheRefresh:function(){return qt().memoizedState=aT.bind(null,xe)},useEffectEvent:function(n){var r=qt(),a={impl:n};return r.memoizedState=a,function(){if((Ue&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Ed={readContext:Rt,use:xl,useCallback:sy,useContext:Rt,useEffect:vd,useImperativeHandle:ry,useInsertionEffect:ty,useLayoutEffect:ny,useMemo:ay,useReducer:Rl,useRef:Xg,useState:function(){return Rl(oi)},useDebugValue:bd,useDeferredValue:function(n,r){var a=ot();return oy(a,He.memoizedState,n,r)},useTransition:function(){var n=Rl(oi)[0],r=ot().memoizedState;return[typeof n=="boolean"?n:Ka(n),r]},useSyncExternalStore:Ig,useId:dy,useHostTransitionStatus:_d,useFormState:Wg,useActionState:Wg,useOptimistic:function(n,r){var a=ot();return qg(a,He,n,r)},useMemoCache:fd,useCacheRefresh:hy};Ed.useEffectEvent=ey;var yy={readContext:Rt,use:xl,useCallback:sy,useContext:Rt,useEffect:vd,useImperativeHandle:ry,useInsertionEffect:ty,useLayoutEffect:ny,useMemo:ay,useReducer:pd,useRef:Xg,useState:function(){return pd(oi)},useDebugValue:bd,useDeferredValue:function(n,r){var a=ot();return He===null?wd(a,n,r):oy(a,He.memoizedState,n,r)},useTransition:function(){var n=pd(oi)[0],r=ot().memoizedState;return[typeof n=="boolean"?n:Ka(n),r]},useSyncExternalStore:Ig,useId:dy,useHostTransitionStatus:_d,useFormState:Qg,useActionState:Qg,useOptimistic:function(n,r){var a=ot();return He!==null?qg(a,He,n,r):(a.baseState=n,[n,a.queue.dispatch])},useMemoCache:fd,useCacheRefresh:hy};yy.useEffectEvent=ey;function Td(n,r,a,l){r=n.memoizedState,a=a(l,r),a=a==null?r:g({},r,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var Ad={enqueueSetState:function(n,r,a){n=n._reactInternals;var l=dn(),h=qi(l);h.payload=r,a!=null&&(h.callback=a),r=Hi(n,h,l),r!==null&&(en(r,n,l),qa(r,n,l))},enqueueReplaceState:function(n,r,a){n=n._reactInternals;var l=dn(),h=qi(l);h.tag=1,h.payload=r,a!=null&&(h.callback=a),r=Hi(n,h,l),r!==null&&(en(r,n,l),qa(r,n,l))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var a=dn(),l=qi(a);l.tag=2,r!=null&&(l.callback=r),r=Hi(n,l,a),r!==null&&(en(r,n,a),qa(r,n,a))}};function vy(n,r,a,l,h,m,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,m,v):r.prototype&&r.prototype.isPureReactComponent?!Da(a,l)||!Da(h,m):!0}function by(n,r,a,l){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,l),r.state!==n&&Ad.enqueueReplaceState(r,r.state,null)}function $r(n,r){var a=r;if("ref"in r){a={};for(var l in r)l!=="ref"&&(a[l]=r[l])}if(n=n.defaultProps){a===r&&(a=g({},a));for(var h in n)a[h]===void 0&&(a[h]=n[h])}return a}function wy(n){cl(n)}function Sy(n){console.error(n)}function _y(n){cl(n)}function zl(n,r){try{var a=n.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(l){setTimeout(function(){throw l})}}function ky(n,r,a){try{var l=n.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function xd(n,r,a){return a=qi(a),a.tag=3,a.payload={element:null},a.callback=function(){zl(n,r)},a}function Ey(n){return n=qi(n),n.tag=3,n}function Ty(n,r,a,l){var h=a.type.getDerivedStateFromError;if(typeof h=="function"){var m=l.value;n.payload=function(){return h(m)},n.callback=function(){ky(r,a,l)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(n.callback=function(){ky(r,a,l),typeof h!="function"&&(Wi===null?Wi=new Set([this]):Wi.add(this));var _=l.stack;this.componentDidCatch(l.value,{componentStack:_!==null?_:""})})}function lT(n,r,a,l,h){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(r=a.alternate,r!==null&&xs(r,a,h,!0),a=on.current,a!==null){switch(a.tag){case 31:case 13:return wn===null?Fl():a.alternate===null&&it===0&&(it=3),a.flags&=-257,a.flags|=65536,a.lanes=h,l===bl?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([l]):r.add(l),Xd(n,l,h)),!1;case 22:return a.flags|=65536,l===bl?a.flags|=16384:(r=a.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=r):(a=r.retryQueue,a===null?r.retryQueue=new Set([l]):a.add(l)),Xd(n,l,h)),!1}throw Error(s(435,a.tag))}return Xd(n,l,h),Fl(),!1}if(De)return r=on.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=h,l!==Ku&&(n=Error(s(422),{cause:l}),Na(gn(n,a)))):(l!==Ku&&(r=Error(s(423),{cause:l}),Na(gn(r,a))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,l=gn(l,a),h=xd(n.stateNode,l,h),id(n,h),it!==4&&(it=2)),!1;var m=Error(s(520),{cause:l});if(m=gn(m,a),no===null?no=[m]:no.push(m),it!==4&&(it=2),r===null)return!0;l=gn(l,a),a=r;do{switch(a.tag){case 3:return a.flags|=65536,n=h&-h,a.lanes|=n,n=xd(a.stateNode,l,n),id(a,n),!1;case 1:if(r=a.type,m=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Wi===null||!Wi.has(m))))return a.flags|=65536,h&=-h,a.lanes|=h,h=Ey(h),Ty(h,n,a,l),id(a,h),!1}a=a.return}while(a!==null);return!1}var Rd=Error(s(461)),ut=!1;
vendor: 9,959 bytes, line 9
9function Ct(n,r,a,l){r.child=n===null?Cg(r,null,a,l):Ur(r,n.child,a,l)}function Ay(n,r,a,l,h){a=a.render;var m=r.ref;if("ref"in l){var v={};for(var _ in l)_!=="ref"&&(v[_]=l[_])}else v=l;return Mr(r),l=cd(n,r,a,v,m,h),_=ud(),n!==null&&!ut?(dd(n,r,h),li(n,r,h)):(De&&_&&Fu(r),r.flags|=1,Ct(n,r,l,h),r.child)}function xy(n,r,a,l,h){if(n===null){var m=a.type;return typeof m=="function"&&!$u(m)&&m.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=m,Ry(n,r,m,l,h)):(n=fl(a.type,null,l,r,r.mode,h),n.ref=r.ref,n.return=r,r.child=n)}if(m=n.child,!Id(n,h)){var v=m.memoizedProps;if(a=a.compare,a=a!==null?a:Da,a(v,l)&&n.ref===r.ref)return li(n,r,h)}return r.flags|=1,n=ni(m,l),n.ref=r.ref,n.return=r,r.child=n}function Ry(n,r,a,l,h){if(n!==null){var m=n.memoizedProps;if(Da(m,l)&&n.ref===r.ref)if(ut=!1,r.pendingProps=l=m,Id(n,h))(n.flags&131072)!==0&&(ut=!0);else return r.lanes=n.lanes,li(n,r,h)}return Cd(n,r,a,l,h)}function Cy(n,r,a,l){var h=l.children,m=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((r.flags&128)!==0){if(m=m!==null?m.baseLanes|a:a,n!==null){for(l=r.child=n.child,h=0;l!==null;)h=h|l.lanes|l.childLanes,l=l.sibling;l=h&~m}else l=0,r.child=null;return Oy(n,r,m,a,l)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&yl(r,m!==null?m.cachePool:null),m!==null?zg(r,m):sd(),jg(r);else return l=r.lanes=536870912,Oy(n,r,m!==null?m.baseLanes|a:a,a,l)}else m!==null?(yl(r,m.cachePool),zg(r,m),Vi(),r.memoizedState=null):(n!==null&&yl(r,null),sd(),Vi());return Ct(n,r,h,a),r.child}function Wa(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function Oy(n,r,a,l,h){var m=Zu();return m=m===null?null:{parent:lt._currentValue,pool:m},r.memoizedState={baseLanes:a,cachePool:m},n!==null&&yl(r,null),sd(),jg(r),n!==null&&xs(n,r,l,!0),r.childLanes=h,null}function jl(n,r){return r=Ml({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function Ly(n,r,a){return Ur(r,n.child,null,a),n=jl(r,r.pendingProps),n.flags|=2,ln(r),r.memoizedState=null,n}function cT(n,r,a){var l=r.pendingProps,h=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(De){if(l.mode==="hidden")return n=jl(r,l),r.lanes=536870912,Wa(null,n);if(od(r),(n=Qe)?(n=Hv(n,bn),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Ni!==null?{id:Bn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},a=mg(n),a.return=r,r.child=a,xt=r,Qe=null)):n=null,n===null)throw Ui(r);return r.lanes=536870912,null}return jl(r,l)}var m=n.memoizedState;if(m!==null){var v=m.dehydrated;if(od(r),h)if(r.flags&256)r.flags&=-257,r=Ly(n,r,a);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(s(558));else if(ut||xs(n,r,a,!1),h=(a&n.childLanes)!==0,ut||h){if(l=Ge,l!==null&&(v=Gt(l,a),v!==0&&v!==m.retryLane))throw m.retryLane=v,Lr(n,v),en(l,n,v),Rd;Fl(),r=Ly(n,r,a)}else n=m.treeContext,Qe=Sn(v.nextSibling),xt=r,De=!0,Pi=null,bn=!1,n!==null&&yg(r,n),r=jl(r,l),r.flags|=4096;return r}return n=ni(n.child,{mode:l.mode,children:l.children}),n.ref=r.ref,r.child=n,n.return=r,n}function Dl(n,r){var a=r.ref;if(a===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(n===null||n.ref!==a)&&(r.flags|=4194816)}}function Cd(n,r,a,l,h){return Mr(r),a=cd(n,r,a,l,void 0,h),l=ud(),n!==null&&!ut?(dd(n,r,h),li(n,r,h)):(De&&l&&Fu(r),r.flags|=1,Ct(n,r,a,h),r.child)}function zy(n,r,a,l,h,m){return Mr(r),r.updateQueue=null,a=Mg(r,l,a,h),Dg(n),l=ud(),n!==null&&!ut?(dd(n,r,m),li(n,r,m)):(De&&l&&Fu(r),r.flags|=1,Ct(n,r,a,m),r.child)}function jy(n,r,a,l,h){if(Mr(r),r.stateNode===null){var m=ks,v=a.contextType;typeof v=="object"&&v!==null&&(m=Rt(v)),m=new a(l,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Ad,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=l,m.state=r.memoizedState,m.refs={},td(r),v=a.contextType,m.context=typeof v=="object"&&v!==null?Rt(v):ks,m.state=r.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(Td(r,a,v,l),m.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(v=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),v!==m.state&&Ad.enqueueReplaceState(m,m.state,null),Fa(r,l,m,h),Ha(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),l=!0}else if(n===null){m=r.stateNode;var _=r.memoizedProps,x=$r(a,_);m.props=x;var I=m.context,q=a.contextType;v=ks,typeof q=="object"&&q!==null&&(v=Rt(q));var K=a.getDerivedStateFromProps;q=typeof K=="function"||typeof m.getSnapshotBeforeUpdate=="function",_=r.pendingProps!==_,q||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(_||I!==v)&&by(r,m,l,v),$i=!1;var N=r.memoizedState;m.state=N,Fa(r,l,m,h),Ha(),I=r.memoizedState,_||N!==I||$i?(typeof K=="function"&&(Td(r,a,K,l),I=r.memoizedState),(x=$i||vy(r,a,x,l,N,I,v))?(q||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=I),m.props=l,m.state=I,m.context=v,l=x):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{m=r.stateNode,nd(n,r),v=r.memoizedProps,q=$r(a,v),m.props=q,K=r.pendingProps,N=m.context,I=a.contextType,x=ks,typeof I=="object"&&I!==null&&(x=Rt(I)),_=a.getDerivedStateFromProps,(I=typeof _=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==K||N!==x)&&by(r,m,l,x),$i=!1,N=r.memoizedState,m.state=N,Fa(r,l,m,h),Ha();var B=r.memoizedState;v!==K||N!==B||$i||n!==null&&n.dependencies!==null&&pl(n.dependencies)?(typeof _=="function"&&(Td(r,a,_,l),B=r.memoizedState),(q=$i||vy(r,a,q,l,N,B,x)||n!==null&&n.dependencies!==null&&pl(n.dependencies))?(I||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,B,x),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,B,x)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===n.memoizedProps&&N===n.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&N===n.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=B),m.props=l,m.state=B,m.context=x,l=q):(typeof m.componentDidUpdate!="function"||v===n.memoizedProps&&N===n.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&N===n.memoizedState||(r.flags|=1024),l=!1)}return m=l,Dl(n,r),l=(r.flags&128)!==0,m||l?(m=r.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,n!==null&&l?(r.child=Ur(r,n.child,null,h),r.child=Ur(r,null,a,h)):Ct(n,r,a,h),r.memoizedState=m.state,n=r.child):n=li(n,r,h),n}function Dy(n,r,a,l){return jr(),r.flags|=256,Ct(n,r,a,l),r.child}var Od={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ld(n){return{baseLanes:n,cachePool:kg()}}function zd(n,r,a){return n=n!==null?n.childLanes&~a:0,r&&(n|=un),n}function My(n,r,a){var l=r.pendingProps,h=!1,m=(r.flags&128)!==0,v;if((v=m)||(v=n!==null&&n.memoizedState===null?!1:(at.current&2)!==0),v&&(h=!0,r.flags&=-129),v=(r.flags&32)!==0,r.flags&=-33,n===null){if(De){if(h?Fi(r):Vi(),(n=Qe)?(n=Hv(n,bn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Ni!==null?{id:Bn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},a=mg(n),a.return=r,r.child=a,xt=r,Qe=null)):n=null,n===null)throw Ui(r);return mh(n)?r.lanes=32:r.lanes=536870912,null}var _=l.children;return l=l.fallback,h?(Vi(),h=r.mode,_=Ml({mode:"hidden",children:_},h),l=zr(l,h,a,null),_.return=r,l.return=r,_.sibling=l,r.child=_,l=r.child,l.memoizedState=Ld(a),l.childLanes=zd(n,v,a),r.memoizedState=Od,Wa(null,l)):(Fi(r),jd(r,_))}var x=n.memoizedState;if(x!==null&&(_=x.dehydrated,_!==null)){if(m)r.flags&256?(Fi(r),r.flags&=-257,r=Dd(n,r,a)):r.memoizedState!==null?(Vi(),r.child=n.child,r.flags|=128,r=null):(Vi(),_=l.fallback,h=r.mode,l=Ml({mode:"visible",children:l.children},h),_=zr(_,h,a,null),_.flags|=2,l.return=r,_.return=r,l.sibling=_,r.child=l,Ur(r,n.child,null,a),l=r.child,l.memoizedState=Ld(a),l.childLanes=zd(n,v,a),r.memoizedState=Od,r=Wa(null,l));else if(Fi(r),mh(_)){if(v=_.nextSibling&&_.nextSibling.dataset,v)var I=v.dgst;v=I,l=Error(s(419)),l.stack="",l.digest=v,Na({value:l,source:null,stack:null}),r=Dd(n,r,a)}else if(ut||xs(n,r,a,!1),v=(a&n.childLanes)!==0,ut||v){if(v=Ge,v!==null&&(l=Gt(v,a),l!==0&&l!==x.retryLane))throw x.retryLane=l,Lr(n,l),en(v,n,l),Rd;fh(_)||Fl(),r=Dd(n,r,a)}else fh(_)?(r.flags|=192,r.child=n.child,r=null):(n=x.treeContext,Qe=Sn(_.nextSibling),xt=r,De=!0,Pi=null,bn=!1,n!==null&&yg(r,n),r=jd(r,l.children),r.flags|=4096);return r}return h?(Vi(),_=l.fallback,h=r.mode,x=n.child,I=x.sibling,l=ni(x,{mode:"hidden",children:l.children}),l.subtreeFlags=x.subtreeFlags&65011712,I!==null?_=ni(I,_):(_=zr(_,h,a,null),_.flags|=2),_.return=r,l.return=r,l.sibling=_,r.child=l,Wa(null,l),l=r.child,_=n.child.memoizedState,_===null?_=Ld(a):(h=_.cachePool,h!==null?(x=lt._currentValue,h=h.parent!==x?{parent:x,pool:x}
vendor: 4,524 bytes, line 9
9:h):h=kg(),_={baseLanes:_.baseLanes|a,cachePool:h}),l.memoizedState=_,l.childLanes=zd(n,v,a),r.memoizedState=Od,Wa(n.child,l)):(Fi(r),a=n.child,n=a.sibling,a=ni(a,{mode:"visible",children:l.children}),a.return=r,a.sibling=null,n!==null&&(v=r.deletions,v===null?(r.deletions=[n],r.flags|=16):v.push(n)),r.child=a,r.memoizedState=null,a)}function jd(n,r){return r=Ml({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function Ml(n,r){return n=an(22,n,null,r),n.lanes=0,n}function Dd(n,r,a){return Ur(r,n.child,null,a),n=jd(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function Iy(n,r,a){n.lanes|=r;var l=n.alternate;l!==null&&(l.lanes|=r),Wu(n.return,r,a)}function Md(n,r,a,l,h,m){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:h,treeForkCount:m}:(v.isBackwards=r,v.rendering=null,v.renderingStartTime=0,v.last=l,v.tail=a,v.tailMode=h,v.treeForkCount=m)}function Ny(n,r,a){var l=r.pendingProps,h=l.revealOrder,m=l.tail;l=l.children;var v=at.current,_=(v&2)!==0;if(_?(v=v&1|2,r.flags|=128):v&=1,F(at,v),Ct(n,r,l,a),l=De?Ia:0,!_&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Iy(n,a,r);else if(n.tag===19)Iy(n,a,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(h){case"forwards":for(a=r.child,h=null;a!==null;)n=a.alternate,n!==null&&kl(n)===null&&(h=a),a=a.sibling;a=h,a===null?(h=r.child,r.child=null):(h=a.sibling,a.sibling=null),Md(r,!1,h,a,m,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,h=r.child,r.child=null;h!==null;){if(n=h.alternate,n!==null&&kl(n)===null){r.child=h;break}n=h.sibling,h.sibling=a,a=h,h=n}Md(r,!0,a,null,m,l);break;case"together":Md(r,!1,null,null,void 0,l);break;default:r.memoizedState=null}return r.child}function li(n,r,a){if(n!==null&&(r.dependencies=n.dependencies),Yi|=r.lanes,(a&r.childLanes)===0)if(n!==null){if(xs(n,r,a,!1),(a&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(s(153));if(r.child!==null){for(n=r.child,a=ni(n,n.pendingProps),r.child=a,a.return=r;n.sibling!==null;)n=n.sibling,a=a.sibling=ni(n,n.pendingProps),a.return=r;a.sibling=null}return r.child}function Id(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&pl(n)))}function uT(n,r,a){switch(r.tag){case 3:ge(r,r.stateNode.containerInfo),Bi(r,lt,n.memoizedState.cache),jr();break;case 27:case 5:vt(r);break;case 4:ge(r,r.stateNode.containerInfo);break;case 10:Bi(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,od(r),null;break;case 13:var l=r.memoizedState;if(l!==null)return l.dehydrated!==null?(Fi(r),r.flags|=128,null):(a&r.child.childLanes)!==0?My(n,r,a):(Fi(r),n=li(n,r,a),n!==null?n.sibling:null);Fi(r);break;case 19:var h=(n.flags&128)!==0;if(l=(a&r.childLanes)!==0,l||(xs(n,r,a,!1),l=(a&r.childLanes)!==0),h){if(l)return Ny(n,r,a);r.flags|=128}if(h=r.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),F(at,at.current),l)break;return null;case 22:return r.lanes=0,Cy(n,r,a,r.pendingProps);case 24:Bi(r,lt,n.memoizedState.cache)}return li(n,r,a)}function Py(n,r,a){if(n!==null)if(n.memoizedProps!==r.pendingProps)ut=!0;else{if(!Id(n,a)&&(r.flags&128)===0)return ut=!1,uT(n,r,a);ut=(n.flags&131072)!==0}else ut=!1,De&&(r.flags&1048576)!==0&&gg(r,Ia,r.index);switch(r.lanes=0,r.tag){case 16:e:{var l=r.pendingProps;if(n=Nr(r.elementType),r.type=n,typeof n=="function")$u(n)?(l=$r(n,l),r.tag=1,r=jy(null,r,n,l,a)):(r.tag=0,r=Cd(null,r,n,l,a));else{if(n!=null){var h=n.$$typeof;if(h===$){r.tag=11,r=Ay(null,r,n,l,a);break e}else if(h===j){r.tag=14,r=xy(null,r,n,l,a);break e}}throw r=ye(n)||n,Error(s(306,r,""))}}return r;case 0:return Cd(n,r,r.type,r.pendingProps,a);case 1:return l=r.type,h=$r(l,r.pendingProps),jy(n,r,l,h,a);case 3:e:{if(ge(r,r.stateNode.containerInfo),n===null)throw Error(s(387));l=r.pendingProps;var m=r.memoizedState;h=m.element,nd(n,r),Fa(r,l,null,a);var v=r.memoizedState;if(l=v.cache,Bi(r,lt,l),l!==m.cache&&Ju(r,[lt],a,!0),Ha(),l=v.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:v.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=Dy(n,r,l,a);break e}else if(l!==h){h=gn(Error(s(424)),r),Na(h),r=Dy(n,r,l,a);break e}else for(n=r.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,Qe
vendor: 5,246 bytes, line 9
9=Sn(n.firstChild),xt=r,De=!0,Pi=null,bn=!0,a=Cg(r,null,l,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(jr(),l===h){r=li(n,r,a);break e}Ct(n,r,l,a)}r=r.child}return r;case 26:return Dl(n,r),n===null?(a=Wv(r.type,null,r.pendingProps,null))?r.memoizedState=a:De||(a=r.type,n=r.pendingProps,l=Ql(oe.current).createElement(a),l[At]=r,l[Yt]=n,Ot(l,a,n),wt(l),r.stateNode=l):r.memoizedState=Wv(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return vt(r),n===null&&De&&(l=r.stateNode=Kv(r.type,r.pendingProps,oe.current),xt=r,bn=!0,h=Qe,Zi(r.type)?(ph=h,Qe=Sn(l.firstChild)):Qe=h),Ct(n,r,r.pendingProps.children,a),Dl(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&De&&((h=l=Qe)&&(l=BT(l,r.type,r.pendingProps,bn),l!==null?(r.stateNode=l,xt=r,Qe=Sn(l.firstChild),bn=!1,h=!0):h=!1),h||Ui(r)),vt(r),h=r.type,m=r.pendingProps,v=n!==null?n.memoizedProps:null,l=m.children,uh(h,m)?l=null:v!==null&&uh(h,v)&&(r.flags|=32),r.memoizedState!==null&&(h=cd(n,r,tT,null,null,a),uo._currentValue=h),Dl(n,r),Ct(n,r,l,a),r.child;case 6:return n===null&&De&&((n=a=Qe)&&(a=$T(a,r.pendingProps,bn),a!==null?(r.stateNode=a,xt=r,Qe=null,n=!0):n=!1),n||Ui(r)),null;case 13:return My(n,r,a);case 4:return ge(r,r.stateNode.containerInfo),l=r.pendingProps,n===null?r.child=Ur(r,null,l,a):Ct(n,r,l,a),r.child;case 11:return Ay(n,r,r.type,r.pendingProps,a);case 7:return Ct(n,r,r.pendingProps,a),r.child;case 8:return Ct(n,r,r.pendingProps.children,a),r.child;case 12:return Ct(n,r,r.pendingProps.children,a),r.child;case 10:return l=r.pendingProps,Bi(r,r.type,l.value),Ct(n,r,l.children,a),r.child;case 9:return h=r.type._context,l=r.pendingProps.children,Mr(r),h=Rt(h),l=l(h),r.flags|=1,Ct(n,r,l,a),r.child;case 14:return xy(n,r,r.type,r.pendingProps,a);case 15:return Ry(n,r,r.type,r.pendingProps,a);case 19:return Ny(n,r,a);case 31:return cT(n,r,a);case 22:return Cy(n,r,a,r.pendingProps);case 24:return Mr(r),l=Rt(lt),n===null?(h=Zu(),h===null&&(h=Ge,m=Qu(),h.pooledCache=m,m.refCount++,m!==null&&(h.pooledCacheLanes|=a),h=m),r.memoizedState={parent:l,cache:h},td(r),Bi(r,lt,h)):((n.lanes&a)!==0&&(nd(n,r),Fa(r,null,null,a),Ha()),h=n.memoizedState,m=r.memoizedState,h.parent!==l?(h={parent:l,cache:l},r.memoizedState=h,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=h),Bi(r,lt,l)):(l=m.cache,Bi(r,lt,l),l!==h.cache&&Ju(r,[lt],a,!0))),Ct(n,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function ci(n){n.flags|=4}function Nd(n,r,a,l,h){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(h&335544128)===h)if(n.stateNode.complete)n.flags|=8192;else if(dv())n.flags|=8192;else throw Pr=bl,ed}else n.flags&=-16777217}function Uy(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!eb(r))if(dv())n.flags|=8192;else throw Pr=bl,ed}function Il(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?It():536870912,n.lanes|=r,Us|=r)}function Ja(n,r){if(!De)switch(n.tailMode){case"hidden":r=n.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Xe(n){var r=n.alternate!==null&&n.alternate.child===n.child,a=0,l=0;if(r)for(var h=n.child;h!==null;)a|=h.lanes|h.childLanes,l|=h.subtreeFlags&65011712,l|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)a|=h.lanes|h.childLanes,l|=h.subtreeFlags,l|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=l,n.childLanes=a,r}function dT(n,r,a){var l=r.pendingProps;switch(Vu(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(r),null;case 1:return Xe(r),null;case 3:return a=r.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),si(lt),be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(n===null||n.child===null)&&(As(r)?ci(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Gu())),Xe(r),null;case 26:var h=r.type,m=r.memoizedState;return n===null?(ci(r),m!==null?(Xe(r),Uy(r,m)):(Xe(r),Nd(r,h,null,l,a))):m?m!==n.memoizedState?(ci(r),Xe(r),Uy(r,m)):(Xe(r),r.flags&=-16777217):(n=n.memoizedProps,n!==l&&ci(r),Xe(r),Nd(r,h,n,l,a)),null;case 27:if(Tt(r),a=oe.current,h=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==l&&ci(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return Xe(r),null}n=X.current,As(r)?vg(r):(n=Kv(h,l,a),r.stateNode=n,ci(r))}return Xe(r),null;case 5:if(Tt(r),h=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==l&&ci(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return Xe(r),null}if(m=X.current,As(r))vg(r);else{var v=Ql(oe.current);switch(m){case 1:m=v.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:m=v.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":m=v.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":m=v.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":m=v.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;
vendor: 27,185 bytes, line 9
9case"select":m=typeof l.is=="string"?v.createElement("select",{is:l.is}):v.createElement("select"),l.multiple?m.multiple=!0:l.size&&(m.size=l.size);break;default:m=typeof l.is=="string"?v.createElement(h,{is:l.is}):v.createElement(h)}}m[At]=r,m[Yt]=l;e:for(v=r.child;v!==null;){if(v.tag===5||v.tag===6)m.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===r)break e;for(;v.sibling===null;){if(v.return===null||v.return===r)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}r.stateNode=m;e:switch(Ot(m,h,l),h){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ci(r)}}return Xe(r),Nd(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,a),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==l&&ci(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(s(166));if(n=oe.current,As(r)){if(n=r.stateNode,a=r.memoizedProps,l=null,h=xt,h!==null)switch(h.tag){case 27:case 5:l=h.memoizedProps}n[At]=r,n=!!(n.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Mv(n.nodeValue,a)),n||Ui(r,!0)}else n=Ql(n).createTextNode(l),n[At]=r,r.stateNode=n}return Xe(r),null;case 31:if(a=r.memoizedState,n===null||n.memoizedState!==null){if(l=As(r),a!==null){if(n===null){if(!l)throw Error(s(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[At]=r}else jr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Xe(r),n=!1}else a=Gu(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=a),n=!0;if(!n)return r.flags&256?(ln(r),r):(ln(r),null);if((r.flags&128)!==0)throw Error(s(558))}return Xe(r),null;case 13:if(l=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=As(r),l!==null&&l.dehydrated!==null){if(n===null){if(!h)throw Error(s(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(s(317));h[At]=r}else jr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Xe(r),h=!1}else h=Gu(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return r.flags&256?(ln(r),r):(ln(r),null)}return ln(r),(r.flags&128)!==0?(r.lanes=a,r):(a=l!==null,n=n!==null&&n.memoizedState!==null,a&&(l=r.child,h=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(h=l.alternate.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==h&&(l.flags|=2048)),a!==n&&a&&(r.child.flags|=8192),Il(r,r.updateQueue),Xe(r),null);case 4:return be(),n===null&&sh(r.stateNode.containerInfo),Xe(r),null;case 10:return si(r.type),Xe(r),null;case 19:if(H(at),l=r.memoizedState,l===null)return Xe(r),null;if(h=(r.flags&128)!==0,m=l.rendering,m===null)if(h)Ja(l,!1);else{if(it!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(m=kl(n),m!==null){for(r.flags|=128,Ja(l,!1),n=m.updateQueue,r.updateQueue=n,Il(r,n),r.subtreeFlags=0,n=a,a=r.child;a!==null;)fg(a,n),a=a.sibling;return F(at,at.current&1|2),De&&ii(r,l.treeForkCount),r.child}n=n.sibling}l.tail!==null&&Bt()>$l&&(r.flags|=128,h=!0,Ja(l,!1),r.lanes=4194304)}else{if(!h)if(n=kl(m),n!==null){if(r.flags|=128,h=!0,n=n.updateQueue,r.updateQueue=n,Il(r,n),Ja(l,!0),l.tail===null&&l.tailMode==="hidden"&&!m.alternate&&!De)return Xe(r),null}else 2*Bt()-l.renderingStartTime>$l&&a!==536870912&&(r.flags|=128,h=!0,Ja(l,!1),r.lanes=4194304);l.isBackwards?(m.sibling=r.child,r.child=m):(n=l.last,n!==null?n.sibling=m:r.child=m,l.last=m)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Bt(),n.sibling=null,a=at.current,F(at,h?a&1|2:a&1),De&&ii(r,l.treeForkCount),n):(Xe(r),null);case 22:case 23:return ln(r),ad(),l=r.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(r.flags|=8192):l&&(r.flags|=8192),l?(a&536870912)!==0&&(r.flags&128)===0&&(Xe(r),r.subtreeFlags&6&&(r.flags|=8192)):Xe(r),a=r.updateQueue,a!==null&&Il(r,a.retryQueue),a=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==a&&(r.flags|=2048),n!==null&&H(Ir),null;case 24:return a=null,n!==null&&(a=n.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),si(lt),Xe(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function hT(n,r){switch(Vu(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return si(lt),be(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return Tt(r),null;case 31:if(r.memoizedState!==null){if(ln(r),r.alternate===null)throw Error(s(340));jr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(ln(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(s(340));jr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return H(at),null;case 4:return be(),null;case 10:return si(r.type),null;case 22:case 23:return ln(r),ad(),n!==null&&H(Ir),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return si(lt),null;case 25:return null;default:return null}}function By(n,r){switch(Vu(r),r.tag){case 3:si(lt),be();break;case 26:case 27:case 5:Tt(r);break;case 4:be();break;case 31:r.memoizedState!==null&&ln(r);break;case 13:ln(r);break;case 19:H(at);break;case 10:si(r.type);break;case 22:case 23:ln(r),ad(),n!==null&&H(Ir);break;case 24:si(lt)}}function Qa(n,r){try{var a=r.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var h=l.next;a=h;do{if((a.tag&n)===n){l=void 0;var m=a.create,v=a.inst;l=m(),v.destroy=l}a=a.next}while(a!==h)}}catch(_){qe(r,r.return,_)}}function Ki(n,r,a){try{var l=r.updateQueue,h=l!==null?l.lastEffect:null;if(h!==null){var m=h.next;l=m;do{if((l.tag&n)===n){var v=l.inst,_=v.destroy;if(_!==void 0){v.destroy=void 0,h=r;var x=a,I=_;try{I()}catch(q){qe(h,x,q)}}}l=l.next}while(l!==m)}}catch(q){qe(r,r.return,q)}}function $y(n){var r=n.updateQueue;if(r!==null){var a=n.stateNode;try{Lg(r,a)}catch(l){qe(n,n.return,l)}}}function qy(n,r,a){a.props=$r(n.type,n.memoizedProps),a.state=n.memoizedState;try{a.componentWillUnmount()}catch(l){qe(n,r,l)}}function Xa(n,r){try{var a=n.ref;if(a!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof a=="function"?n.refCleanup=a(l):a.current=l}}catch(h){qe(n,r,h)}}function qn(n,r){var a=n.ref,l=n.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(h){qe(n,r,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){qe(n,r,h)}else a.current=null}function Hy(n){var r=n.type,a=n.memoizedProps,l=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(h){qe(n,n.return,h)}}function Pd(n,r,a){try{var l=n.stateNode;DT(l,n.type,a,r),l[Yt]=r}catch(h){qe(n,n.return,h)}}function Fy(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Zi(n.type)||n.tag===4}function Ud(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Fy(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Zi(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Bd(n,r,a){var l=n.tag;if(l===5||l===6)n=n.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(n,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(n),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=ei));else if(l!==4&&(l===27&&Zi(n.type)&&(a=n.stateNode,r=null),n=n.child,n!==null))for(Bd(n,r,a),n=n.sibling;n!==null;)Bd(n,r,a),n=n.sibling}function Nl(n,r,a){var l=n.tag;if(l===5||l===6)n=n.stateNode,r?a.insertBefore(n,r):a.appendChild(n);else if(l!==4&&(l===27&&Zi(n.type)&&(a=n.stateNode),n=n.child,n!==null))for(Nl(n,r,a),n=n.sibling;n!==null;)Nl(n,r,a),n=n.sibling}function Vy(n){var r=n.stateNode,a=n.memoizedProps;try{for(var l=n.type,h=r.attributes;h.length;)r.removeAttributeNode(h[0]);Ot(r,l,a),r[At]=n,r[Yt]=a}catch(m){qe(n,n.return,m)}}var ui=!1,dt=!1,$d=!1,Ky=typeof WeakSet=="function"?WeakSet:Set,St=null;function fT(n,r){if(n=n.containerInfo,lh=rc,n=rg(n),Du(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var h=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var v=0,_=-1,x=-1,I=0,q=0,K=n,N=null;t:for(;;){for(var B;K!==a||h!==0&&K.nodeType!==3||(_=v+h),K!==m||l!==0&&K.nodeType!==3||(x=v+l),K.nodeType===3&&(v+=K.nodeValue.length),(B=K.firstChild)!==null;)N=K,K=B;for(;;){if(K===n)break t;if(N===a&&++I===h&&(_=v),N===m&&++q===l&&(x=v),(B=K.nextSibling)!==null)break;K=N,N=K.parentNode}K=B}a=_===-1||x===-1?null:{start:_,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(ch={focusedElem:n,selectionRange:a},rc=!1,St=r;St!==null;)if(r=St,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,St=n;else for(;St!==null;){switch(r=St,m=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(a=0;a<n.length;a++)h=n[a],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&m!==null){n=void 0,a=r,h=m.memoizedProps,m=m.memoizedState,l=a.stateNode;try{var ce=$r(a.type,h);n=l.getSnapshotBeforeUpdate(ce,m),l.__reactInternalSnapshotBeforeUpdate=n}catch(_e){qe(a,a.return,_e)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,a=n.nodeType,a===9)hh(n);else if(a===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":hh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=r.sibling,n!==null){n.return=r.return,St=n;break}St=r.return}}function Gy(n,r,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:hi(n,a),l&4&&Qa(5,a);break;case 1:if(hi(n,a),l&4)if(n=a.stateNode,r===null)try{n.componentDidMount()}catch(v){qe(a,a.return,v)}else{var h=$r(a.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(h,r,n.__reactInternalSnapshotBeforeUpdate)}catch(v){qe(a,a.return,v)}}l&64&&$y(a),l&512&&Xa(a,a.return);break;case 3:if(hi(n,a),l&64&&(n=a.updateQueue,n!==null)){if(r=null,a.child!==null)switch(a.child.tag){case 27:case 5:r=a.child.stateNode;break;case 1:r=a.child.stateNode}try{Lg(n,r)}catch(v){qe(a,a.return,v)}}break;case 27:r===null&&l&4&&Vy(a);case 26:case 5:hi(n,a),r===null&&l&4&&Hy(a),l&512&&Xa(a,a.return);break;case 12:hi(n,a);break;case 31:hi(n,a),l&4&&Jy(n,a);break;case 13:hi(n,a),l&4&&Qy(n,a),l&64&&(n=a.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(a=_T.bind(null,a),qT(n,a))));break;case 22:if(l=a.memoizedState!==null||ui,!l){r=r!==null&&r.memoizedState!==null||dt,h=ui;var m=dt;ui=l,(dt=r)&&!m?fi(n,a,(a.subtreeFlags&8772)!==0):hi(n,a),ui=h,dt=m}break;case 30:break;default:hi(n,a)}}function Yy(n){var r=n.alternate;r!==null&&(n.alternate=null,Yy(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&yu(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var et=null,Jt=!1;function di(n,r,a){for(a=a.child;a!==null;)Wy(n,r,a),a=a.sibling}function Wy(n,r,a){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Er,a)}catch{}switch(a.tag){case 26:dt||qn(a,r),di(n,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:dt||qn(a,r);var l=et,h=Jt;Zi(a.type)&&(et=a.stateNode,Jt=!1),di(n,r,a),oo(a.stateNode),et=l,Jt=h;break;case 5:dt||qn(a,r);case 6:if(l=et,h=Jt,et=null,di(n,r,a),et=l,Jt=h,et!==null)if(Jt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(m){qe(a,r,m)}else try{et.removeChild(a.stateNode)}catch(m){qe(a,r,m)}break;case 18:et!==null&&(Jt?(n=et,$v(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,a.stateNode),Gs(n)):$v(et,a.stateNode));break;case 4:l=et,h=Jt,et=a.stateNode.containerInfo,Jt=!0,di(n,r,a),et=l,Jt=h;break;case 0:case 11:case 14:case 15:Ki(2,a,r),dt||Ki(4,a,r),di(n,r,a);break;case 1:dt||(qn(a,r),l=a.stateNode,typeof l.componentWillUnmount=="function"&&qy(a,r,l)),di(n,r,a);break;case 21:di(n,r,a);break;case 22:dt=(l=dt)||a.memoizedState!==null,di(n,r,a),dt=l;break;default:di(n,r,a)}}function Jy(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Gs(n)}catch(a){qe(r,r.return,a)}}}function Qy(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Gs(n)}catch(a){qe(r,r.return,a)}}function mT(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new Ky),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new Ky),r;default:throw Error(s(435,n.tag))}}function Pl(n,r){var a=mT(n);r.forEach(function(l){if(!a.has(l)){a.add(l);var h=kT.bind(null,n,l);l.then(h,h)}})}function Qt(n,r){var a=r.deletions;if(a!==null)for(var l=0;l<a.length;l++){var h=a[l],m=n,v=r,_=v;e:for(;_!==null;){switch(_.tag){case 27:if(Zi(_.type)){et=_.stateNode,Jt=!1;break e}break;case 5:et=_.stateNode,Jt=!1;break e;case 3:case 4:et=_.stateNode.containerInfo,Jt=!0;break e}_=_.return}if(et===null)throw Error(s(160));Wy(m,v,h),et=null,Jt=!1,m=h.alternate,m!==null&&(m.return=null),h.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Xy(r,n),r=r.sibling}var Rn=null;function Xy(n,r){var a=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Qt(r,n),Xt(n),l&4&&(Ki(3,n,n.return),Qa(3,n),Ki(5,n,n.return));break;case 1:Qt(r,n),Xt(n),l&512&&(dt||a===null||qn(a,a.return)),l&64&&ui&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(a=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var h=Rn;if(Qt(r,n),Xt(n),l&512&&(dt||a===null||qn(a,a.return)),l&4){var m=a!==null?a.memoizedState:null;if(l=n.memoizedState,a===null)if(l===null)if(n.stateNode===null){e:{l=n.type,a=n.memoizedProps,h=h.ownerDocument||h;t:switch(l){case"title":m=h.getElementsByTagName("title")[0],(!m||m[Ta]||m[At]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=h.createElement(l),h.head.insertBefore(m,h.querySelector("head > title"))),Ot(m,l,a),m[At]=n,wt(m),l=m;break e;case"link":var v=Xv("link","href",h).get(l+(a.href||""));if(v){for(var _=0;_<v.length;_++)if(m=v[_],m.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&m.getAttribute("rel")===(a.rel==null?null:a.rel)&&m.getAttribute("title")===(a.title==null?null:a.title)&&m.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){v.splice(_,1);break t}}m=h.createElement(l),Ot(m,l,a),h.head.appendChild(m);break;case"meta":if(v=Xv("meta","content",h).get(l+(a.content||""))){for(_=0;_<v.length;_++)if(m=v[_],m.getAttribute("content")===(a.content==null?null:""+a.content)&&m.getAttribute("name")===(a.name==null?null:a.name)&&m.getAttribute("property")===(a.property==null?null:a.property)&&m.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&m.getAttribute("charset")===(a.charSet==null?null:a.charSet)){v.splice(_,1);break t}}m=h.createElement(l),Ot(m,l,a),h.head.appendChild(m);break;default:throw Error(s(468,l))}m[At]=n,wt(m),l=m}n.stateNode=l}else Zv(h,n.type,n.stateNode);else n.stateNode=Qv(h,l,n.memoizedProps);else m!==l?(m===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):m.count--,l===null?Zv(h,n.type,n.stateNode):Qv(h,l,n.memoizedProps)):l===null&&n.stateNode!==null&&Pd(n,n.memoizedProps,a.memoizedProps)}break;case 27:Qt(r,n),Xt(n),l&512&&(dt||a===null||qn(a,a.return)),a!==null&&l&4&&Pd(n,n.memoizedProps,a.memoizedProps);break;case 5:if(Qt(r,n),Xt(n),l&512&&(dt||a===null||qn(a,a.return)),n.flags&32){h=n.stateNode;try{gs(h,"")}catch(ce){qe(n,n.return,ce)}}l&4&&n.stateNode!=null&&(h=n.memoizedProps,Pd(n,h,a!==null?a.memoizedProps:h)),l&1024&&($d=!0);break;case 6:if(Qt(r,n),Xt(n),l&4){if(n.stateNode===null)throw Error(s(162));l=n.memoizedProps,a=n.stateNode;try{a.nodeValue=l}catch(ce){qe(n,n.return,ce)}}break;case 3:if(ec=null,h=Rn,Rn=Xl(r.containerInfo),Qt(r,n),Rn=h,Xt(n),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Gs(r.containerInfo)}catch(ce){qe(n,n.return,ce)}$d&&($d=!1,Zy(n));break;case 4:l=Rn,Rn=Xl(n.stateNode.containerInfo),Qt(r,n),Xt(n),Rn=l;break;case 12:Qt(r,n),Xt(n);break;case 31:Qt(r,n),Xt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Pl(n,l)));break;case 13:Qt(r,n),Xt(n),n.child.flags&8192&&n.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Bl=Bt()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Pl(n,l)));break;case 22:h=n.memoizedState!==null;var x=a!==null&&a.memoizedState!==null,I=ui,q=dt;if(ui=I||h,dt=q||x,Qt(r,n),dt=q,ui=I,Xt(n),l&8192)e:for(r=n.stateNode,r._visibility=h?r._visibility&-2:r._visibility|1,h&&(a===null||x||ui||dt||qr(n)),a=null,r=n;;){if(r.tag===5||r.tag===26){if(a===null){x=a=r;try{if(m=x.stateNode,h)v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{_=x.stateNode;var K=x.memoizedProps.style,N=K!=null&&K.hasOwnProperty("display")?K.display:null;_.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(ce){qe(x,x.return,ce)}}}else if(r.tag===6){if(a===null){x=r;try{x.stateNode.nodeValue=h?"":x.memoizedProps}catch(ce){qe(x,x.return,ce)}}}else if(r.tag===18){if(a===null){x=r;try{var B=x.stateNode;h?qv(B,!0):qv(x.stateNode,!1)}catch(ce){qe(x,x.return,ce)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;a===r&&(a=null),r=r.return}a===r&&(a=null),r.sibling.return=r.return,r=r.sibling}l&4&&(l=n.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Pl(n,a))));break;case 19:Qt(r,n),Xt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Pl(n,l)));break;case 30:break;case 21:break;default:Qt(r,n),Xt(n)}}function Xt(n){var r=n.flags;if(r&2){try{for(var a,l=n.return;l!==null;){if(Fy(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var h=a.stateNode,m=Ud(n);Nl(n,m,h);break;case 5:var v=a.stateNode;a.flags&32&&(gs(v,""),a.flags&=-33);var _=Ud(n);Nl(n,_,v);break;case 3:case 4:var x=a.stateNode.containerInfo,I=Ud(n);Bd(n,I,x);break;default:throw Error(s(161))}}catch(q){qe(n,n.return,q)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function Zy(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;Zy(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function hi(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Gy(n,r.alternate,r),r=r.sibling}function qr(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:Ki(4,r,r.return),qr(r);break;case 1:qn(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&qy(r,r.return,a),qr(r);break;case 27:oo(r.stateNode);case 26:case 5:qn(r,r.return),qr(r);break;case 22:r.memoizedState===null&&qr(r);break;case 30:qr(r);break;default:qr(r)}n=n.sibling}}function fi(n,r,a){for(a=a&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var l=r.alternate,h=n,m=r,v=m.flags;switch(m.tag){case 0:case 11:case 15:fi(h,m,a),Qa(4,m);break;case 1:if(fi(h,m,a),l=m,h=l.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(I){qe(l,l.return,I)}if(l=m,h=l.updateQueue,h!==null){var _=l.stateNode;try{var x=h.shared.hiddenCallbacks;if(x!==null)for(h.shared.hiddenCallbacks=null,h=0;h<x.length;h++)Og(x[h],_)}catch(I){qe(l,l.return,I)}}a&&v&64&&$y(m),Xa(m,m.return);break;case 27:Vy(m);case 26:case 5:fi(h,m,a),a&&l===null&&v&4&&Hy(m),Xa(m,m.return);break;case 12:fi(h,m,a);break;case 31:fi(h,m,a),a&&v&4&&Jy(h,m);break;case 13:fi(h,m,a),a&&v&4&&Qy(h,m);break;case 22:m.memoizedState===null&&fi(h,m,a),Xa(m,m.return);break;case 30:break;default:fi(h,m,a)}r=r.sibling}}function qd(n,r){var a=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==a&&(n!=null&&n.refCount++,a!=null&&Pa(a))}function Hd(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Pa(n))}function Cn(n,r,a,l){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)ev(n,r,a,l),r=r.sibling}function ev(n,r,a,l){var h=r.flags;switch(r.tag){case 0:case 11:case 15:Cn(n,r,a,l),h&2048&&Qa(9,r);break;case 1:Cn(n,r,a,l);break;case 3:Cn(n,r,a,l),h&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Pa(n)));break;case 12:if(h&2048){Cn(n,r,a,l),n=r.stateNode;try{var m=r.memoizedProps,v=m.id,_=m.onPostCommit;typeof _=="function"&&_(v,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(x){qe(r,r.return,x)}}else Cn(n,r,a,l);break;case 31:Cn(n,r,a,l);break;case 13:Cn(n,r,a,l);break;case 23:break;case 22:m=r.stateNode,v=r.alternate,r.memoizedState!==null?m._visibility&2?Cn(n,r,a,l):Za(n,r):m._visibility&2?Cn(n,r,a,l):(m._visibility|=2,Is(n,r,a,l,(r.subtreeFlags&10256)!==0||!1)),h&2048&&qd(v,r);break;case 24:Cn(n,r,a,l),h&2048&&Hd(r.alternate,r);break;default:Cn(n,r,a,l)}}function Is(n,r,a,l,h){for(h=h&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var m=n,v=r,_=a,x=l,I=v.flags;switch(v.tag){case 0:case 11:case 15:Is(m,v,_,x,h),Qa(8,v);break;case 23:break;case 22:var q=v.stateNode;v.memoizedState!==null?q._visibility&2?Is(m,v,_,x,h):Za(m,v):(q._visibility|=2,Is(m,v,_,x,h)),h&&I&2048&&qd(v.alternate,v);break;case 24:Is(m,v,_,x,h),h&&I&2048&&Hd(v.alternate,v);break;default:Is(m,v,_,x,h)}r=r.sibling}}function Za(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var a=n,l=r,h=l.flags;switch(l.tag){case 22:Za(a,l),h&2048&&qd(l.alternate,l);break;case 24:Za(a,l),h&2048&&Hd(l.alternate,l);break;default:Za(a,l)}r=r.sibling}}var eo=8192;function Ns(n,r,a){if(n.subtreeFlags&eo)for(n=n.child;n!==null;)tv(n,r,a),n=n.sibling}function tv(n,r,a){switch(n.tag){case 26:Ns(n,r,a),n.flags&eo&&n.memoizedState!==null&&eA(a,Rn,n.memoizedState,n.memoizedProps);break;case 5:Ns(n,r,a);break;case 3:case 4:var l=Rn;Rn=Xl(n.stateNode.containerInfo),Ns(n,r,a),Rn=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=eo,eo=16777216,Ns(n,r,a),eo=l):Ns(n,r,a));break;default:Ns(n,r,a)}}function nv(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function to(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var l=r[a];St=l,rv(l,n)}nv(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)iv(n),n=n.sibling}function iv(n){switch(n.tag){case 0:case 11:case 15:to(n),n.flags&2048&&Ki(9,n,n.return);break;case 3:to(n);break;case 12:to(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,Ul(n)):to(n);break;default:to(n)}}function Ul(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var l=r[a];St=l,rv(l,n)}nv(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:Ki(8,r,r.return),Ul(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,Ul(r));break;default:Ul(r)}n=n.sibling}}function rv(n,r){for(;St!==null;){var a=St;switch(a.tag){case 0:case 11:case 15:Ki(8,a,r);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Pa(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,St=l;else e:for(a=n;St!==null;){l=St;var h=l.sibling,m=l.return;if(Yy(l),l===a){St=null;break e}if(h!==null){h.return=m,St=h;break e}St=m}}}var pT={getCacheForType:function(n){var r=Rt(lt),a=r.data.get(n);return a===void 0&&(a=n(),r.data.set(n,a)),a},cacheSignal:function(){return Rt(lt).controller.signal}},gT=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ge=null,Oe=null,ze=0,$e=0,cn=null,Gi=!1,Ps=!1,Fd=!1,mi=0,it=0,Yi=0,Hr=0,Vd=0,un=0,Us=0,no=null,Zt=null,Kd=!1,Bl=0,sv=0,$l=1/0,ql=null,Wi=null,pt=0,Ji=null,Bs=null,pi=0,Gd=0,Yd=null,av=null,io=0,Wd=null;function dn(){return(Ue&2)!==0&&ze!==0?ze&-ze:z.T!==null?th():pu()}function ov(){if(un===0)if((ze&536870912)===0||De){var n=ls;ls<<=1,(ls&3932160)===0&&(ls=262144),un=n}else un=536870912;return n=on.current,n!==null&&(n.flags|=32),un}function en(n,r,a){(n===Ge&&($e===2||$e===9)||n.cancelPendingCommit!==null)&&($s(n,0),Qi(n,ze,un,!1)),tt(n,a),((Ue&2)===0||n!==Ge)&&(n===Ge&&((Ue&2)===0&&(Hr|=a),it===4&&Qi(n,ze,un,!1)),Hn(n))}function lv(n,r,a){if((Ue&6)!==0)throw Error(s(327));var l=!a&&(r&127)===0&&(r&n.expiredLanes)===0||Ze(n,r),h=l?bT(n,r):Qd(n,r,!0),m=l;do{if(h===0){Ps&&!l&&Qi(n,r,0,!1);break}else{if(a=n.current.alternate,m&&!yT(a)){h=Qd(n,r,!1),m=!1;continue}if(h===2){if(m=r,n.errorRecoveryDisabledLanes&m)var v=0;else v=n.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){r=v;e:{var _=n;h=no;var x=_.current.memoizedState.isDehydrated;if(x&&($s(_,v).flags|=256),v=Qd(_,v,!1),v!==2){if(Fd&&!x){_.errorRecoveryDisabledLanes|=m,Hr|=m,h=4;break e}m=Zt,Zt=h,m!==null&&(Zt===null?Zt=m:Zt.push.apply(Zt,m))}h=v}if(m=!1,h!==2)continue}}if(h===1){$s(n,0),Qi(n,r,0,!0);break}e:{switch(l=n,m=h,m){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:Qi(l,r,un,!Gi);break e;case 2:Zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(h=Bl+300-Bt(),10<h)){if(Qi(l,r,un,!Gi),Ee(l,0,!0)!==0)break e;pi=r,l.timeoutHandle=Uv(cv.bind(null,l,a,Zt,ql,Kd,r,un,Hr,Us,Gi,m,"Throttled",-0,0),h);break e}cv(l,a,Zt,ql,Kd,r,un,Hr,Us,Gi,m,null,-0,0)}}break}while(!0);Hn(n)}function cv(n,r,a,l,h,m,v,_,x,I,q,K,N,B){if(n.timeoutHandle=-1,K=r.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ei},tv(r,m,K);var ce=(m&62914560)===m?Bl-Bt():(m&4194048)===m?sv-Bt():0;if(ce=tA(K,ce),ce!==null){pi=m,n.cancelPendingCommit=ce(yv.bind(null,n,r,m,a,l,h,v,_,x,q,K,null,N,B)),Qi(n,m,v,!I);return}}yv(n,r,m,a,l,h,v,_,x)}function yT(n){for(var r=n;;){var a=r.tag;if((a===0||a===11||a===15)&&r.flags&16384&&(a=r.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var h=a[l],m=h.getSnapshot;h=h.value;try{if(!sn(m(),h))return!1}catch{return!1}}if(a=r.child,r.subtreeFlags&16384&&a!==null)a.return=r,r=a;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Qi(n,r,a,l){r&=~Vd,r&=~Hr,n.suspendedLanes|=r,n.pingedLanes&=~r,l&&(n.warmLanes|=r),l=n.expirationTimes;for(var h=r;
vendor: 22,070 bytes, lines 9-10
90<h;){var m=31-Mt(h),v=1<<m;l[m]=-1,h&=~v}a!==0&&Ar(n,a,r)}function Hl(){return(Ue&6)===0?(ro(0),!1):!0}function Jd(){if(Oe!==null){if($e===0)var n=Oe.return;else n=Oe,ri=Dr=null,hd(n),Ls=null,Ba=0,n=Oe;for(;n!==null;)By(n.alternate,n),n=n.return;Oe=null}}function $s(n,r){var a=n.timeoutHandle;a!==-1&&(n.timeoutHandle=-1,NT(a)),a=n.cancelPendingCommit,a!==null&&(n.cancelPendingCommit=null,a()),pi=0,Jd(),Ge=n,Oe=a=ni(n.current,null),ze=r,$e=0,cn=null,Gi=!1,Ps=Ze(n,r),Fd=!1,Us=un=Vd=Hr=Yi=it=0,Zt=no=null,Kd=!1,(r&8)!==0&&(r|=r&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=r;0<l;){var h=31-Mt(l),m=1<<h;r|=n[h],l&=~m}return mi=r,ul(),a}function uv(n,r){xe=null,z.H=Ya,r===Os||r===vl?(r=Ag(),$e=3):r===ed?(r=Ag(),$e=4):$e=r===Rd?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,cn=r,Oe===null&&(it=1,zl(n,gn(r,n.current)))}function dv(){var n=on.current;return n===null?!0:(ze&4194048)===ze?wn===null:(ze&62914560)===ze||(ze&536870912)!==0?n===wn:!1}function hv(){var n=z.H;return z.H=Ya,n===null?Ya:n}function fv(){var n=z.A;return z.A=pT,n}function Fl(){it=4,Gi||(ze&4194048)!==ze&&on.current!==null||(Ps=!0),(Yi&134217727)===0&&(Hr&134217727)===0||Ge===null||Qi(Ge,ze,un,!1)}function Qd(n,r,a){var l=Ue;Ue|=2;var h=hv(),m=fv();(Ge!==n||ze!==r)&&(ql=null,$s(n,r)),r=!1;var v=it;e:do try{if($e!==0&&Oe!==null){var _=Oe,x=cn;switch($e){case 8:Jd(),v=6;break e;case 3:case 2:case 9:case 6:on.current===null&&(r=!0);var I=$e;if($e=0,cn=null,qs(n,_,x,I),a&&Ps){v=0;break e}break;default:I=$e,$e=0,cn=null,qs(n,_,x,I)}}vT(),v=it;break}catch(q){uv(n,q)}while(!0);return r&&n.shellSuspendCounter++,ri=Dr=null,Ue=l,z.H=h,z.A=m,Oe===null&&(Ge=null,ze=0,ul()),v}function vT(){for(;Oe!==null;)mv(Oe)}function bT(n,r){var a=Ue;Ue|=2;var l=hv(),h=fv();Ge!==n||ze!==r?(ql=null,$l=Bt()+500,$s(n,r)):Ps=Ze(n,r);e:do try{if($e!==0&&Oe!==null){r=Oe;var m=cn;t:switch($e){case 1:$e=0,cn=null,qs(n,r,m,1);break;case 2:case 9:if(Eg(m)){$e=0,cn=null,pv(r);break}r=function(){$e!==2&&$e!==9||Ge!==n||($e=7),Hn(n)},m.then(r,r);break e;case 3:$e=7;break e;case 4:$e=5;break e;case 7:Eg(m)?($e=0,cn=null,pv(r)):($e=0,cn=null,qs(n,r,m,7));break;case 5:var v=null;switch(Oe.tag){case 26:v=Oe.memoizedState;case 5:case 27:var _=Oe;if(v?eb(v):_.stateNode.complete){$e=0,cn=null;var x=_.sibling;if(x!==null)Oe=x;else{var I=_.return;I!==null?(Oe=I,Vl(I)):Oe=null}break t}}$e=0,cn=null,qs(n,r,m,5);break;case 6:$e=0,cn=null,qs(n,r,m,6);break;case 8:Jd(),it=6;break e;default:throw Error(s(462))}}wT();break}catch(q){uv(n,q)}while(!0);return ri=Dr=null,z.H=l,z.A=h,Ue=a,Oe!==null?0:(Ge=null,ze=0,ul(),it)}function wT(){for(;Oe!==null&&!Ut();)mv(Oe)}function mv(n){var r=Py(n.alternate,n,mi);n.memoizedProps=n.pendingProps,r===null?Vl(n):Oe=r}function pv(n){var r=n,a=r.alternate;switch(r.tag){case 15:case 0:r=zy(a,r,r.pendingProps,r.type,void 0,ze);break;case 11:r=zy(a,r,r.pendingProps,r.type.render,r.ref,ze);break;case 5:hd(r);default:By(a,r),r=Oe=fg(r,mi),r=Py(a,r,mi)}n.memoizedProps=n.pendingProps,r===null?Vl(n):Oe=r}function qs(n,r,a,l){ri=Dr=null,hd(r),Ls=null,Ba=0;var h=r.return;try{if(lT(n,h,r,a,ze)){it=1,zl(n,gn(a,n.current)),Oe=null;return}}catch(m){if(h!==null)throw Oe=h,m;it=1,zl(n,gn(a,n.current)),Oe=null;return}r.flags&32768?(De||l===1?n=!0:Ps||(ze&536870912)!==0?n=!1:(Gi=n=!0,(l===2||l===9||l===3||l===6)&&(l=on.current,l!==null&&l.tag===13&&(l.flags|=16384))),gv(r,n)):Vl(r)}function Vl(n){var r=n;do{if((r.flags&32768)!==0){gv(r,Gi);return}n=r.return;var a=dT(r.alternate,r,mi);if(a!==null){Oe=a;return}if(r=r.sibling,r!==null){Oe=r;return}Oe=r=n}while(r!==null);it===0&&(it=5)}function gv(n,r){do{var a=hT(n.alternate,n);if(a!==null){a.flags&=32767,Oe=a;return}if(a=n.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(n=n.sibling,n!==null)){Oe=n;return}Oe=n=a}while(n!==null);it=6,Oe=null}function yv(n,r,a,l,h,m,v,_,x){n.cancelPendingCommit=null;do Kl();while(pt!==0);if((Ue&6)!==0)throw Error(s(327));if(r!==null){if(r===n.current)throw Error(s(177));if(m=r.lanes|r.childLanes,m|=Uu,Vt(n,a,m,v,_,x),n===Ge&&(Oe=Ge=null,ze=0),Bs=r,Ji=n,pi=a,Gd=m,Yd=h,av=l,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,ET(kr,function(){return _v(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,h=W.p,W.p=2,v=Ue,Ue|=4;try{fT(n,r,a)}finally{Ue=v,W.p=h,z.T=l}}pt=1,vv(),bv(),wv()}}function vv(){if(pt===1){pt=0;var n=Ji,r=Bs,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var l=W.p;W.p=2;var h=Ue;Ue|=4;try{Xy(r,n);var m=ch,v=rg(n.containerInfo),_=m.focusedElem,x=m.selectionRange;if(v!==_&&_&&_.ownerDocument&&ig(_.ownerDocument.documentElement,_)){if(x!==null&&Du(_)){var I=x.start,q=x.end;if(q===void 0&&(q=I),"selectionStart"in _)_.selectionStart=I,_.selectionEnd=Math.min(q,_.value.length);else{var K=_.ownerDocument||document,N=K&&K.defaultView||window;if(N.getSelection){var B=N.getSelection(),ce=_.textContent.length,_e=Math.min(x.start,ce),Ve=x.end===void 0?_e:Math.min(x.end,ce);!B.extend&&_e>Ve&&(v=Ve,Ve=_e,_e=v);var D=ng(_,_e),O=ng(_,Ve);if(D&&O&&(B.rangeCount!==1||B.anchorNode!==D.node||B.anchorOffset!==D.offset||B.focusNode!==O.node||B.focusOffset!==O.offset)){var M=K.createRange();M.setStart(D.node,D.offset),B.removeAllRanges(),_e>Ve?(B.addRange(M),B.extend(O.node,O.offset)):(M.setEnd(O.node,O.offset),B.addRange(M))}}}}for(K=[],B=_;B=B.parentNode;)B.nodeType===1&&K.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<K.length;_++){var V=K[_];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}rc=!!lh,ch=lh=null}finally{Ue=h,W.p=l,z.T=a}}n.current=r,pt=2}}function bv(){if(pt===2){pt=0;var n=Ji,r=Bs,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var l=W.p;W.p=2;var h=Ue;Ue|=4;try{Gy(n,r.alternate,r)}finally{Ue=h,W.p=l,z.T=a}}pt=3}}function wv(){if(pt===4||pt===3){pt=0,zi();var n=Ji,r=Bs,a=pi,l=av;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?pt=5:(pt=0,Bs=Ji=null,Sv(n,n.pendingLanes));var h=n.pendingLanes;if(h===0&&(Wi=null),An(a),r=r.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Er,r,void 0,(r.current.flags&128)===128)}catch{}if(l!==null){r=z.T,h=W.p,W.p=2,z.T=null;try{for(var m=n.onRecoverableError,v=0;v<l.length;v++){var _=l[v];m(_.value,{componentStack:_.stack})}}finally{z.T=r,W.p=h}}(pi&3)!==0&&Kl(),Hn(n),h=n.pendingLanes,(a&261930)!==0&&(h&42)!==0?n===Wd?io++:(io=0,Wd=n):io=0,ro(0)}}function Sv(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,Pa(r)))}function Kl(){return vv(),bv(),wv(),_v()}function _v(){if(pt!==5)return!1;var n=Ji,r=Gd;Gd=0;var a=An(pi),l=z.T,h=W.p;try{W.p=32>a?32:a,z.T=null,a=Yd,Yd=null;var m=Ji,v=pi;if(pt=0,Bs=Ji=null,pi=0,(Ue&6)!==0)throw Error(s(331));var _=Ue;if(Ue|=4,iv(m.current),ev(m,m.current,v,a),Ue=_,ro(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Er,m)}catch{}return!0}finally{W.p=h,z.T=l,Sv(n,r)}}function kv(n,r,a){r=gn(a,r),r=xd(n.stateNode,r,2),n=Hi(n,r,2),n!==null&&(tt(n,2),Hn(n))}function qe(n,r,a){if(n.tag===3)kv(n,n,a);else for(;r!==null;){if(r.tag===3){kv(r,n,a);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wi===null||!Wi.has(l))){n=gn(a,n),a=Ey(2),l=Hi(r,a,2),l!==null&&(Ty(a,l,r,n),tt(l,2),Hn(l));break}}r=r.return}}function Xd(n,r,a){var l=n.pingCache;if(l===null){l=n.pingCache=new gT;var h=new Set;l.set(r,h)}else h=l.get(r),h===void 0&&(h=new Set,l.set(r,h));h.has(a)||(Fd=!0,h.add(a),n=ST.bind(null,n,r,a),r.then(n,n))}function ST(n,r,a){var l=n.pingCache;l!==null&&l.delete(r),n.pingedLanes|=n.suspendedLanes&a,n.warmLanes&=~a,Ge===n&&(ze&a)===a&&(it===4||it===3&&(ze&62914560)===ze&&300>Bt()-Bl?(Ue&2)===0&&$s(n,0):Vd|=a,Us===ze&&(Us=0)),Hn(n)}function Ev(n,r){r===0&&(r=It()),n=Lr(n,r),n!==null&&(tt(n,r),Hn(n))}function _T(n){var r=n.memoizedState,a=0;r!==null&&(a=r.retryLane),Ev(n,a)}function kT(n,r){var a=0;switch(n.tag){case 31:case 13:var l=n.stateNode,h=n.memoizedState;h!==null&&(a=h.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(r),Ev(n,a)}function ET(n,r){return Sa(n,r)}var Gl=null,Hs=null,Zd=!1,Yl=!1,eh=!1,Xi=0;function Hn(n){n!==Hs&&n.next===null&&(Hs===null?Gl=Hs=n:Hs=Hs.next=n),Yl=!0,Zd||(Zd=!0,AT())}function ro(n,r){if(!eh&&Yl){eh=!0;do for(var a=!1,l=Gl;l!==null;){if(n!==0){var h=l.pendingLanes;if(h===0)var m=0;else{var v=l.suspendedLanes,_=l.pingedLanes;m=(1<<31-Mt(42|n)+1)-1,m&=h&~(v&~_),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,Rv(l,m))}else m=ze,m=Ee(l,l===Ge?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||Ze(l,m)||(a=!0,Rv(l,m));l=l.next}while(a);eh=!1}}function TT(){Tv()}function Tv(){Yl=Zd=!1;var n=0;Xi!==0&&IT()&&(n=Xi);for(var r=Bt(),a=null,l=Gl;l!==null;){var h=l.next,m=Av(l,r);m===0?(l.next=null,a===null?Gl=h:a.next=h,h===null&&(Hs=a)):(a=l,(n!==0||(m&3)!==0)&&(Yl=!0)),l=h}pt!==0&&pt!==5||ro(n),Xi!==0&&(Xi=0)}function Av(n,r){for(var a=n.suspendedLanes,l=n.pingedLanes,h=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var v=31-Mt(m),_=1<<v,x=h[v];x===-1?((_&a)===0||(_&l)!==0)&&(h[v]=bt(_,r)):x<=r&&(n.expiredLanes|=_),m&=~_}if(r=Ge,a=ze,a=Ee(n,n===r?a:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,a===0||n===r&&($e===2||$e===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&_a(l),n.callbackNode=null,n.callbackPriority=0;if((a&3)===0||Ze(n,a)){if(r=a&-a,r===n.callbackPriority)return r;switch(l!==null&&_a(l),An(a)){case 2:case 8:a=Qo;break;case 32:a=kr;break;case 268435456:a=Xn;break;default:a=kr}return l=xv.bind(null,n),a=Sa(a,l),n.callbackPriority=r,n.callbackNode=a,r}return l!==null&&l!==null&&_a(l),n.callbackPriority=2,n.callbackNode=null,2}function xv(n,r){if(pt!==0&&pt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var a=n.callbackNode;if(Kl()&&n.callbackNode!==a)return null;var l=ze;return l=Ee(n,n===Ge?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(lv(n,l,r),Av(n,Bt()),n.callbackNode!=null&&n.callbackNode===a?xv.bind(null,n):null)}function Rv(n,r){if(Kl())return null;lv(n,r,!0)}function AT(){PT(function(){(Ue&6)!==0?Sa(_r,TT):Tv()})}function th(){if(Xi===0){var n=Rs;n===0&&(n=os,os<<=1,(os&261888)===0&&(os=256)),Xi=n}return Xi}function Cv(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:nl(""+n)}function Ov(n,r){var a=r.ownerDocument.createElement("input");return a.name=r.name,a.value=r.value,n.id&&a.setAttribute("form",n.id),r.parentNode.insertBefore(a,r),n=new FormData(n),a.parentNode.removeChild(a),n}function xT(n,r,a,l,h){if(r==="submit"&&a&&a.stateNode===h){var m=Cv((h[Yt]||null).action),v=l.submitter;v&&(r=(r=v[Yt]||null)?Cv(r.formAction):v.getAttribute("formAction"),r!==null&&(m=r,v=null));var _=new al("action","action",null,l,h);n.push({event:_,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Xi!==0){var x=v?Ov(h,v):new FormData(h);Sd(a,{pending:!0,data:x,method:h.method,action:m},null,x)}}else typeof m=="function"&&(_.preventDefault(),x=v?Ov(h,v):new FormData(h),Sd(a,{pending:!0,data:x,method:h.method,action:m},m,x))},currentTarget:h}]})}}for(var nh=0;nh<Pu.length;nh++){var ih=Pu[nh],RT=ih.toLowerCase(),CT=ih[0].toUpperCase()+ih.slice(1);xn(RT,"on"+CT)}xn(og,"onAnimationEnd"),xn(lg,"onAnimationIteration"),xn(cg,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(VE,"onTransitionRun"),xn(KE,"onTransitionStart"),xn(GE,"onTransitionCancel"),xn(ug,"onTransitionEnd"),ms("onMouseEnter",["mouseout","mouseover"]),ms("onMouseLeave",["mouseout","mouseover"]),ms("onPointerEnter",["pointerout","pointerover"]),ms("onPointerLeave",["pointerout","pointerover"]),xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xr("onBeforeInput",["compositionend","keypress","textInput","paste"]),xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var so="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(" "),OT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(so));function Lv(n,r){r=(r&4)!==0;for(var a=0;a<n.length;a++){var l=n[a],h=l.event;l=l.listeners;e:{var m=void 0;if(r)for(var v=l.length-1;0<=v;v--){var _=l[v],x=_.instance,I=_.currentTarget;if(_=_.listener,x!==m&&h.isPropagationStopped())break e;m=_,h.currentTarget=I;try{m(h)}catch(q){cl(q)}h.currentTarget=null,m=x}else for(v=0;v<l.length;v++){if(_=l[v],x=_.instance,I=_.currentTarget,_=_.listener,x!==m&&h.isPropagationStopped())break e;m=_,h.currentTarget=I;try{m(h)}catch(q){cl(q)}h.currentTarget=null,m=x}}}}function Le(n,r){var a=r[gu];a===void 0&&(a=r[gu]=new Set);var l=n+"__bubble";a.has(l)||(zv(r,n,2,!1),a.add(l))}function rh(n,r,a){var l=0;r&&(l|=4),zv(a,n,l,r)}var Wl="_reactListening"+Math.random().toString(36).slice(2);function sh(n){if(!n[Wl]){n[Wl]=!0,Tp.forEach(function(a){a!=="selectionchange"&&(OT.has(a)||rh(a,!1,n),rh(a,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[Wl]||(r[Wl]=!0,rh("selectionchange",!1,r))}}function zv(n,r,a,l){switch(ob(r)){case 2:var h=rA;break;case 8:h=sA;break;default:h=wh}a=h.bind(null,r,a,n),h=void 0,!Tu||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(h=!0),l?h!==void 0?n.addEventListener(r,a,{capture:!0,passive:h}):n.addEventListener(r,a,!0):h!==void 0?n.addEventListener(r,a,{passive:h}):n.addEventListener(r,a,!1)}function ah(n,r,a,l,h){var m=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var _=l.stateNode.containerInfo;if(_===h)break;if(v===4)for(v=l.return;v!==null;){var x=v.tag;if((x===3||x===4)&&v.stateNode.containerInfo===h)return;v=v.return}for(;_!==null;){if(v=ds(_),v===null)return;if(x=v.tag,x===5||x===6||x===26||x===27){l=m=v;continue e}_=_.parentNode}}l=l.return}Np(function(){var I=m,q=ku(a),K=[];e:{var N=dg.get(n);if(N!==void 0){var B=al,ce=n;switch(n){case"keypress":if(rl(a)===0)break e;case"keydown":case"keyup":B=kE;break;case"focusin":ce="focus",B=Cu;break;case"focusout":ce="blur",B=Cu;break;case"beforeblur":case"afterblur":B=Cu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Bp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=dE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=AE;break;case og:case lg:case cg:B=mE;break;case ug:B=RE;break;case"scroll":case"scrollend":B=cE;break;case"wheel":B=OE;break;case"copy":case"cut":case"paste":B=gE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=qp;break;case"toggle":case"beforetoggle":B=zE}var _e=(r&4)!==0,Ve=!_e&&(n==="scroll"||n==="scrollend"),D=_e?N!==null?N+"Capture":null:N;_e=[];for(var O=I,M;O!==null;){var V=O;if(M=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||M===null||D===null||(V=xa(O,D),V!=null&&_e.push(ao(O,V,M))),Ve)break;O=O.return}0<_e.length&&(N=new B(N,ce,null,a,q),K.push({event:N,listeners:_e}))}}if((r&7)===0){e:{if(N=n==="mouseover"||n==="pointerover",B=n==="mouseout"||n==="pointerout",N&&a!==_u&&(ce=a.relatedTarget||a.fromElement)&&(ds(ce)||ce[us]))break e;if((B||N)&&(N=q.window===q?q:(N=q.ownerDocument)?N.defaultView||N.parentWindow:window,B?(ce=a.relatedTarget||a.toElement,B=I,ce=ce?ds(ce):null,ce!==null&&(Ve=c(ce),_e=ce.tag,ce!==Ve||_e!==5&&_e!==27&&_e!==6)&&(ce=null)):(B=null,ce=I),B!==ce)){if(_e=Bp,V="onMouseLeave",D="onMouseEnter",O="mouse",(n==="pointerout"||n==="pointerover")&&(_e=qp,V="onPointerLeave",D="onPointerEnter",O="pointer"),Ve=B==null?N:Aa(B),M=ce==null?N:Aa(ce),N=new _e(V,O+"leave",B,a,q),N.target=Ve,N.relatedTarget=M,V=null,ds(q)===I&&(_e=new _e(D,O+"enter",ce,a,q),_e.target=M,_e.relatedTarget=Ve,V=_e),Ve=V,B&&ce)t:{for(_e=LT,D=B,O=ce,M=0,V=D;V;V=_e(V))M++;V=0;for(var ve=O;ve;ve=_e(ve))V++;for(;0<M-V;)D=_e(D),M--;for(;0<V-M;)O=_e(O),V--;for(;M--;){if(D===O||O!==null&&D===O.alternate){_e=D;break t}D=_e(D),O=_e(O)}_e=null}else _e=null;B!==null&&jv(K,N,B,_e,!1),ce!==null&&Ve!==null&&jv(K,Ve,ce,_e,!0)}}e:{if(N=I?Aa(I):window,B=N.nodeName&&N.nodeName.toLowerCase(),B==="select"||B==="input"&&N.type==="file")var Ne=Jp;else if(Yp(N))if(Qp)Ne=qE;else{Ne=BE;var pe=UE}else B=N.nodeName,!B||B.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?I&&Su(I.elementType)&&(Ne=Jp):Ne=$E;if(Ne&&(Ne=Ne(n,I))){Wp(K,Ne,a,q);break e}pe&&pe(n,N,I),n==="focusout"&&I&&N.type==="number"&&I.memoizedProps.value!=null&&wu(N,"number",N.value)}switch(pe=I?Aa(I):window,n){case"focusin":(Yp(pe)||pe.contentEditable==="true")&&(ws=pe,Mu=I,Ma=null);break;case"focusout":Ma=Mu=ws=null;break;case"mousedown":Iu=!0;break;case"contextmenu":case"mouseup":case"dragend":Iu=!1,sg(K,a,q);break;case"selectionchange":if(FE)break;case"keydown":case"keyup":sg(K,a,q)}var Re;if(Lu)e:{switch(n){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else bs?Kp(n,a)&&(je="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&(je="onCompositionStart");je&&(Hp&&a.locale!=="ko"&&(bs||je!=="onCompositionStart"?je==="onCompositionEnd"&&bs&&(Re=Pp()):(Ii=q,Au="value"in Ii?Ii.value:Ii.textContent,bs=!0)),pe=Jl(I,je),0<pe.length&&(je=new $p(je,n,null,a,q),K.push({event:je,listeners:pe}),Re?je.data=Re:(Re=Gp(a),Re!==null&&(je.data=Re)))),(Re=DE?ME(n,a):IE(n,a))&&(je=Jl(I,"onBeforeInput"),0<je.length&&(pe=new $p("onBeforeInput","beforeinput",null,a,q),K.push({event:pe,listeners:je}),pe.data=Re)),xT(K,n,I,a,q)}Lv(K,r)})}function ao(n,r,a){return{instance:n,listener:r,currentTarget:a}}function Jl(n,r){for(var a=r+"Capture",l=[];n!==null;){var h=n,m=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||m===null||(h=xa(n,a),h!=null&&l.unshift(ao(n,h,m)),h=xa(n,r),h!=null&&l.push(ao(n,h,m))),n.tag===3)return l;n=n.return}return[]}function LT(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function jv(n,r,a,l,h){for(var m=r._reactName,v=[];a!==null&&a!==l;){var _=a,x=_.alternate,I=_.stateNode;if(_=_.tag,x!==null&&x===l)break;_!==5&&_!==26&&_!==27||I===null||(x=I,h?(I=xa(a,m),I!=null&&v.unshift(ao(a,I,x))):h||(I=xa(a,m),I!=null&&v.push(ao(a,I,x)))),a=a.return}v.length!==0&&n.push({event:r,listeners:v})}var zT=/\r\n?/g,jT=/\u0000|\uFFFD/g;function Dv(n){return(typeof n=="string"?n:""+n).replace(zT,` 10`).replace(jT,"")}function Mv(n,r){return r=Dv(r),Dv(n)===r}function Fe(n,r,a,l,h,m){switch(a){case"children":typeof l=="string"?r==="body"||r==="textarea"&&l===""||gs(n,l):(typeof l=="number"||typeof l=="bigint")&&r!=="body"&&gs(n,""+l);break;case"className":el(n,"class",l);break;case"tabIndex":el(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":el(n,a,l);break;case"style":Mp(n,l,m);break;case"data":if(r!=="object"){el(n,"data",l);break}case"src":case"href":if(l===""&&(r!=="a"||a!=="href")){n.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(a);break}l=nl(""+l),n.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(a==="formAction"?(r!=="input"&&Fe(n,r,"name",h.name,h,null),Fe(n,r,"formEncType",h.formEncType,h,null),Fe(n,r,"formMethod",h.formMethod,h,null),Fe(n,r,"formTarget",h.formTarget,h,null)):(Fe(n,r,"encType",h.encType,h,null),Fe(n,r,"method",h.method,h,null),Fe(n,r,"target",h.target,h,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(a);break}l=nl(""+l),n.setAttribute(a,l);break;case"onClick":l!=null&&(n.onclick=ei);break;case"onScroll":l!=null&&Le("scroll",n);break;case"onScrollEnd":l!=null&&Le("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(h.children!=null)throw Error(s(60));n.innerHTML=a}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}a=nl(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,""+l):n.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,""):n.removeAttribute(a);break;case"capture":case"download":l===!0?n.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,l):n.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(a,l):n.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(a):n.setAttribute(a,l);break;case"popover":Le("beforetoggle",n),Le("toggle",n),Zo(n,"popover",l);break;case"xlinkActuate":Zn(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Zn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Zn(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Zn(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Zn(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Zn(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Zo(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=oE.get(a)||a,Zo(n,a,l))}}function oh(n,r,a,l,h,m){switch(a){case"style":Mp(n,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(h.children!=null)throw Error(s(60));n.innerHTML=a}}break;case"children":typeof l=="string"?gs(n,l):(typeof l=="number"||typeof l=="bigint")&&gs(n,""+l);break;case"onScroll":l!=null&&Le("scroll",n);break;case"onScrollEnd":l!=null&&Le("scrollend",n);break;case"onClick":l!=null&&(n.onclick=ei);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ap.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),r=a.slice(2,h?a.length-7:void 0),m=n[Yt]||null,m=m!=null?m[a]:null,typeof m=="function"&&n.removeEventListener(r,m,h),typeof l=="function")){typeof m!="function"&&m!==null&&(a in n?n[a]=null:n.hasAttribute(a)&&n.removeAttribute(a)),n.addEventListener(r,l,h);break e}a in n?n[a]=l:l===!0?n.setAttribute(a,""):Zo(n,a,l)}}}function Ot(n,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",n),Le("load",n);var l=!1,h=!1,m;for(m in a)if(a.hasOwnProperty(m)){var v=a[m];if(v!=null)switch(m){case"src":l=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Fe(n,r,m,v,a,null)}}h&&Fe(n,r,"srcSet",a.srcSet,a,null),l&&Fe(n,r,"src",a.src,a,null);return;case"input":Le("invalid",n);var _=m=v=h=null,x=null,I=null;for(l in a)if(a.hasOwnProperty(l)){var q=a[l];if(q!=null)switch(l){case"name":h=q;break;case"type":v=q;break;case"checked":x=q;break;case"defaultChecked":I=q;break;case"value":m=q;break;case"defaultValue":_=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,r));break;default:Fe(n,r,l,q,a,null)}}Lp(n,m,_,x,I,v,h,!1);return;case"select":Le("invalid",n),l=v=m=null;for(h in a)if(a.hasOwnProperty(h)&&(_=a[h],_!=null))switch(h){case"value":m=_;break;case"defaultValue":v=_;break;case"multiple":l=_;default:Fe(n,r,h,_,a,null)}r=m,a=v,n.multiple=!!l,r!=null?ps(n,!!l,r,!1):a!=null&&ps(n,!!l,a,!0);return;case"textarea":Le("invalid",n),m=h=l=null;for(v in a)if(a.hasOwnProperty(v)&&(_=a[v],_!=null))switch(v){case"value":l=_;break;case"defaultValue":h=_;break;case"children":m=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:Fe(n,r,v,_,a,null)}jp(n,l,h,m);return;case"option":for(x in a)a.hasOwnProperty(x)&&(l=a[x],l!=null)&&(x==="selected"?n.selected=l&&typeof l!="function"&&typeof l!="symbol":Fe(n,r,x,l,a,null));return;case"dialog":Le("beforetoggle",n),Le("toggle",n),Le("cancel",n),Le("close",n);break;case"iframe":case"object":Le("load",n);break;case"video":case"audio":for(l=0;l<so.length;l++)Le(so[l],n);break;case"image":Le("error",n),Le("load",n);break;case"details":Le("toggle",n);break;case"embed":case"source":case"link":Le("error",n),Le("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in a)if(a.hasOwnProperty(I)&&(l=a[I],l!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Fe(n,r,I,l,a,null)}return;default:if(Su(r)){for(q in a)a.hasOwnProperty(q)&&(l=a[q],l!==void 0&&oh(n,r,q,l,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!=null&&Fe(n,r,_,l,a,null))}function DT(n,r,a,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,m=null,v=null,_=null,x=null,I=null,q=null;for(B in a){var K=a[B];if(a.hasOwnProperty(B)&&K!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":x=K;default:l.hasOwnProperty(B)||Fe(n,r,B,null,l,K)}}for(var N in l){var B=l[N];if(K=a[N],l.hasOwnProperty(N)&&(B!=null||K!=null))switch(N){case"type":m=B;break;case"name":h=B;break;case"checked":I=B;break;case"defaultChecked":q=B;break;case"value":v=B;break;case"defaultValue":_=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,r));break;default:B!==K&&Fe(n,r,N,B,l,K)}}bu(n,v,_,x,I,q,m,h);return;case"select":B=v=_=N=null;for(m in a)if(x=a[m],a.hasOwnProperty(m)&&x!=null)switch(m){case"value":break;case"multiple":B=x;default:l.hasOwnProperty(m)||Fe(n,r,m,null,l,x)}for(h in l)if(m=l[h],x=a[h],l.hasOwnProperty(h)&&(m!=null||x!=null))switch(h){case"value":N=m;break;case"defaultValue":_=m;break;case"multiple":v=m;default:m!==x&&Fe(n,r,h,m,l,x)}r=_,a=v,l=B,N!=null?ps(n,!!a,N,!1):!!l!=!!a&&(r!=null?ps(n,!!a,r,!0):ps(n,!!a,a?[]:"",!1));return;case"textarea":B=N=null;for(_ in a)if(h=a[_],a.hasOwnProperty(_)&&h!=null&&!l.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Fe(n,r,_,null,l,h)}for(v in l)if(h=l[v],m=a[v],l.hasOwnProperty(v)&&(h!=null||m!=null))switch(v){case"value":N=h;break;case"defaultValue":B=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:h!==m&&Fe(n,r,v,h,l,m)}zp(n,N,B);return;case"option":for(var ce in a)N=a[ce],a.hasOwnProperty(ce)&&N!=null&&!l.hasOwnProperty(ce)&&(ce==="selected"?n.selected=!1:Fe(n,r,ce,null,l,N));for(x in l)N=l[x],B=a[x],l.hasOwnProperty(x)&&N!==B&&(N!=null||B!=null)&&(x==="selected"?n.selected=N&&t
vendor: 5,989 bytes, line 10
10ypeof N!="function"&&typeof N!="symbol":Fe(n,r,x,N,l,B));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 _e in a)N=a[_e],a.hasOwnProperty(_e)&&N!=null&&!l.hasOwnProperty(_e)&&Fe(n,r,_e,null,l,N);for(I in l)if(N=l[I],B=a[I],l.hasOwnProperty(I)&&N!==B&&(N!=null||B!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,r));break;default:Fe(n,r,I,N,l,B)}return;default:if(Su(r)){for(var Ve in a)N=a[Ve],a.hasOwnProperty(Ve)&&N!==void 0&&!l.hasOwnProperty(Ve)&&oh(n,r,Ve,void 0,l,N);for(q in l)N=l[q],B=a[q],!l.hasOwnProperty(q)||N===B||N===void 0&&B===void 0||oh(n,r,q,N,l,B);return}}for(var D in a)N=a[D],a.hasOwnProperty(D)&&N!=null&&!l.hasOwnProperty(D)&&Fe(n,r,D,null,l,N);for(K in l)N=l[K],B=a[K],!l.hasOwnProperty(K)||N===B||N==null&&B==null||Fe(n,r,K,N,l,B)}function Iv(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function MT(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var h=a[l],m=h.transferSize,v=h.initiatorType,_=h.duration;if(m&&_&&Iv(v)){for(v=0,_=h.responseEnd,l+=1;l<a.length;l++){var x=a[l],I=x.startTime;if(I>_)break;var q=x.transferSize,K=x.initiatorType;q&&Iv(K)&&(x=x.responseEnd,v+=q*(x<_?1:(_-I)/(x-I)))}if(--l,r+=8*(m+v)/(h.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var lh=null,ch=null;function Ql(n){return n.nodeType===9?n:n.ownerDocument}function Nv(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Pv(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function uh(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var dh=null;function IT(){var n=window.event;return n&&n.type==="popstate"?n===dh?!1:(dh=n,!0):(dh=null,!1)}var Uv=typeof setTimeout=="function"?setTimeout:void 0,NT=typeof clearTimeout=="function"?clearTimeout:void 0,Bv=typeof Promise=="function"?Promise:void 0,PT=typeof queueMicrotask=="function"?queueMicrotask:typeof Bv<"u"?function(n){return Bv.resolve(null).then(n).catch(UT)}:Uv;function UT(n){setTimeout(function(){throw n})}function Zi(n){return n==="head"}function $v(n,r){var a=r,l=0;do{var h=a.nextSibling;if(n.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"||a==="/&"){if(l===0){n.removeChild(h),Gs(r);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")oo(n.ownerDocument.documentElement);else if(a==="head"){a=n.ownerDocument.head,oo(a);for(var m=a.firstChild;m;){var v=m.nextSibling,_=m.nodeName;m[Ta]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&m.rel.toLowerCase()==="stylesheet"||a.removeChild(m),m=v}}else a==="body"&&oo(n.ownerDocument.body);a=h}while(a);Gs(r)}function qv(n,r){var a=n;n=0;do{var l=a.nextSibling;if(a.nodeType===1?r?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(r?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(n===0)break;n--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||n++;a=l}while(a)}function hh(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":hh(a),yu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}n.removeChild(a)}}function BT(n,r,a,l){for(;n.nodeType===1;){var h=a;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[Ta])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(m=n.getAttribute("rel"),m==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(m!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var m=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=Sn(n.nextSibling),n===null)break}return null}function $T(n,r,a){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Sn(n.nextSibling),n===null))return null;return n}function Hv(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=Sn(n.nextSibling),n===null))return null;return n}function fh(n){return n.data==="$?"||n.data==="$~"}function mh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function qT(n,r){var a=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||a.readyState!=="loading")r();else{var l=function(){r(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function Sn(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;
vendor: 4,960 bytes, line 10
10if(r==="/$"||r==="/&")return null}}return n}var ph=null;function Fv(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"||a==="/&"){if(r===0)return Sn(n.nextSibling);r--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||r++}n=n.nextSibling}return null}function Vv(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(r===0)return n;r--}else a!=="/$"&&a!=="/&"||r++}n=n.previousSibling}return null}function Kv(n,r,a){switch(r=Ql(a),n){case"html":if(n=r.documentElement,!n)throw Error(s(452));return n;case"head":if(n=r.head,!n)throw Error(s(453));return n;case"body":if(n=r.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function oo(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);yu(n)}var _n=new Map,Gv=new Set;function Xl(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var gi=W.d;W.d={f:HT,r:FT,D:VT,C:KT,L:GT,m:YT,X:JT,S:WT,M:QT};function HT(){var n=gi.f(),r=Hl();return n||r}function FT(n){var r=hs(n);r!==null&&r.tag===5&&r.type==="form"?uy(r):gi.r(n)}var Fs=typeof document>"u"?null:document;function Yv(n,r,a){var l=Fs;if(l&&typeof r=="string"&&r){var h=mn(r);h='link[rel="'+n+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),Gv.has(h)||(Gv.add(h),n={rel:n,crossOrigin:a,href:r},l.querySelector(h)===null&&(r=l.createElement("link"),Ot(r,"link",n),wt(r),l.head.appendChild(r)))}}function VT(n){gi.D(n),Yv("dns-prefetch",n,null)}function KT(n,r){gi.C(n,r),Yv("preconnect",n,r)}function GT(n,r,a){gi.L(n,r,a);var l=Fs;if(l&&n&&r){var h='link[rel="preload"][as="'+mn(r)+'"]';r==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+mn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+mn(a.imageSizes)+'"]')):h+='[href="'+mn(n)+'"]';var m=h;switch(r){case"style":m=Vs(n);break;case"script":m=Ks(n)}_n.has(m)||(n=g({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:n,as:r},a),_n.set(m,n),l.querySelector(h)!==null||r==="style"&&l.querySelector(lo(m))||r==="script"&&l.querySelector(co(m))||(r=l.createElement("link"),Ot(r,"link",n),wt(r),l.head.appendChild(r)))}}function YT(n,r){gi.m(n,r);var a=Fs;if(a&&n){var l=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+mn(l)+'"][href="'+mn(n)+'"]',m=h;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ks(n)}if(!_n.has(m)&&(n=g({rel:"modulepreload",href:n},r),_n.set(m,n),a.querySelector(h)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(co(m)))return}l=a.createElement("link"),Ot(l,"link",n),wt(l),a.head.appendChild(l)}}}function WT(n,r,a){gi.S(n,r,a);var l=Fs;if(l&&n){var h=fs(l).hoistableStyles,m=Vs(n);r=r||"default";var v=h.get(m);if(!v){var _={loading:0,preload:null};if(v=l.querySelector(lo(m)))_.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":r},a),(a=_n.get(m))&&gh(n,a);var x=v=l.createElement("link");wt(x),Ot(x,"link",n),x._p=new Promise(function(I,q){x.onload=I,x.onerror=q}),x.addEventListener("load",function(){_.loading|=1}),x.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Zl(v,r,l)}v={type:"stylesheet",instance:v,count:1,state:_},h.set(m,v)}}}function JT(n,r){gi.X(n,r);var a=Fs;if(a&&n){var l=fs(a).hoistableScripts,h=Ks(n),m=l.get(h);m||(m=a.querySelector(co(h)),m||(n=g({src:n,async:!0},r),(r=_n.get(h))&&yh(n,r),m=a.createElement("script"),wt(m),Ot(m,"link",n),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(h,m))}}function QT(n,r){gi.M(n,r);var a=Fs;if(a&&n){var l=fs(a).hoistableScripts,h=Ks(n),m=l.get(h);m||(m=a.querySelector(co(h)),m||(n=g({src:n,async:!0,type:"module"},r),(r=_n.get(h))&&yh(n,r),m=a.createElement("script"),wt(m),Ot(m,"link",n),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(h,m))}}function Wv(n,r,a,l){var h=(h=oe.current)?Xl(h):null;if(!h)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(r=Vs(a.href),a=fs(h).hoistableStyles,l=a.get(r),l||(l={type:"style",instance:null,count:0,state:null},a.set(r,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){n=Vs(a.href);var m=fs(h).hoistableStyles,v=m.get(n);if(v||(h=h.ownerDocument||h,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,v),(m=h.querySelector(lo(n)))&&!m._p&&(v.instance=m,v.state.loading=5),_n.has(n)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},_n.set(n,a),m||XT(h,n,a,v.state))),r&&l===null)throw Error(s(528,""));return v}if(r&&l!==null)throw Error(s(529,""));return null;
vendor: 7,456 bytes, line 10
10case"script":return r=a.async,a=a.src,typeof a=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Ks(a),a=fs(h).hoistableScripts,l=a.get(r),l||(l={type:"script",instance:null,count:0,state:null},a.set(r,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function Vs(n){return'href="'+mn(n)+'"'}function lo(n){return'link[rel="stylesheet"]['+n+"]"}function Jv(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function XT(n,r,a,l){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?l.loading=1:(r=n.createElement("link"),l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2}),Ot(r,"link",a),wt(r),n.head.appendChild(r))}function Ks(n){return'[src="'+mn(n)+'"]'}function co(n){return"script[async]"+n}function Qv(n,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var l=n.querySelector('style[data-href~="'+mn(a.href)+'"]');if(l)return r.instance=l,wt(l),l;var h=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),wt(l),Ot(l,"style",h),Zl(l,a.precedence,n),r.instance=l;case"stylesheet":h=Vs(a.href);var m=n.querySelector(lo(h));if(m)return r.state.loading|=4,r.instance=m,wt(m),m;l=Jv(a),(h=_n.get(h))&&gh(l,h),m=(n.ownerDocument||n).createElement("link"),wt(m);var v=m;return v._p=new Promise(function(_,x){v.onload=_,v.onerror=x}),Ot(m,"link",l),r.state.loading|=4,Zl(m,a.precedence,n),r.instance=m;case"script":return m=Ks(a.src),(h=n.querySelector(co(m)))?(r.instance=h,wt(h),h):(l=a,(h=_n.get(m))&&(l=g({},a),yh(l,h)),n=n.ownerDocument||n,h=n.createElement("script"),wt(h),Ot(h,"link",l),n.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(l=r.instance,r.state.loading|=4,Zl(l,a.precedence,n));return r.instance}function Zl(n,r,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=l.length?l[l.length-1]:null,m=h,v=0;v<l.length;v++){var _=l[v];if(_.dataset.precedence===r)m=_;else if(m!==h)break}m?m.parentNode.insertBefore(n,m.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(n,r.firstChild))}function gh(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function yh(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var ec=null;function Xv(n,r,a){if(ec===null){var l=new Map,h=ec=new Map;h.set(a,l)}else h=ec,l=h.get(a),l||(l=new Map,h.set(a,l));if(l.has(n))return l;for(l.set(n,null),a=a.getElementsByTagName(n),h=0;h<a.length;h++){var m=a[h];if(!(m[Ta]||m[At]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var v=m.getAttribute(r)||"";v=n+v;var _=l.get(v);_?_.push(m):l.set(v,[m])}}return l}function Zv(n,r,a){n=n.ownerDocument||n,n.head.insertBefore(a,r==="title"?n.querySelector("head > title"):null)}function ZT(n,r,a){if(a===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(n=r.disabled,typeof r.precedence=="string"&&n==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function eb(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function eA(n,r,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=Vs(l.href),m=r.querySelector(lo(h));if(m){r=m._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=tc.bind(n),r.then(n,n)),a.state.loading|=4,a.instance=m,wt(m);return}m=r.ownerDocument||r,l=Jv(l),(h=_n.get(h))&&gh(l,h),m=m.createElement("link"),wt(m);var v=m;v._p=new Promise(function(_,x){v.onload=_,v.onerror=x}),Ot(m,"link",l),a.instance=m}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(n.count++,a=tc.bind(n),r.addEventListener("load",a),r.addEventListener("error",a))}}var vh=0;function tA(n,r){return n.stylesheets&&n.count===0&&ic(n,n.stylesheets),0<n.count||0<n.imgCount?function(a){var l=setTimeout(function(){if(n.stylesheets&&ic(n,n.stylesheets),n.unsuspend){var m=n.unsuspend;n.unsuspend=null,m()}},6e4+r);0<n.imgBytes&&vh===0&&(vh=62500*MT());var h=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&ic(n,n.stylesheets),n.unsuspend)){var m=n.unsuspend;n.unsuspend=null,m()}},(n.imgBytes>vh?50:800)+r);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(h)}}:null}function tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ic(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var nc=null;function ic(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,nc=new Map,r.forEach(nA,n),nc=null,tc.call(n))}function nA(n,r){if(!(r.state.loading&4)){var a=nc.get(n);if(a)var l=a.get(null);else{a=new Map,nc.set(n,a);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<h.length;m++){var v=h[m];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(a.set(v.dataset.precedence,v),l=v)}l&&a.set(null,l)}h=r.instance,v=h.getAttribute("data-precedence"),m=a.get(v)||l,m===l&&a.set(null,h),a.set(v,h),this.count++,l=tc.bind(this),h.addEventListener("load",l),h.addEventListener("error",l),m?m.parentNode.insertBefore(h,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),r.state.loading|=4}}var uo={$$typeof:C,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function iA(n,r,a,l,h,m,v,_,x){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Di(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Di(0),this.hiddenUpdates=Di(null),this.identifierPrefix=l,this.onUncaughtError=h,this.onCaughtError=m,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function tb(n,r,a,l,h,m,v,_,x,I,q,K){return n=new iA(n,r,a,v,x,I,q,K,_),r=1,m===!0&&(r|=24),m=an(3,null,null,r),n.current=m,m.stateNode=n,r=Qu(),r.refCount++,n.pooledCache=r,r.refCount++,m.memoizedState={element:l,isDehydrated:a,cache:r},td(m),n}function nb(n){return n?(n=ks,n):ks}function ib(n,r,a,l,h,m){h=nb(h),l.context===null?l.context=h:l.pendingContext=h,l=qi(r),l.payload={element:a},m=m===void 0?null:m,m!==null&&(l.callback=m),a=Hi(n,l,r),a!==null&&(en(a,n,r),qa(a,n,r))}function rb(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<r?a:r}}function bh(n,r){rb(n,r),(n=n.alternate)&&rb(n,r)}
vendor: 8,940 bytes, line 10
10function sb(n){if(n.tag===13||n.tag===31){var r=Lr(n,67108864);r!==null&&en(r,n,67108864),bh(n,67108864)}}function ab(n){if(n.tag===13||n.tag===31){var r=dn();r=cs(r);var a=Lr(n,r);a!==null&&en(a,n,r),bh(n,r)}}var rc=!0;function rA(n,r,a,l){var h=z.T;z.T=null;var m=W.p;try{W.p=2,wh(n,r,a,l)}finally{W.p=m,z.T=h}}function sA(n,r,a,l){var h=z.T;z.T=null;var m=W.p;try{W.p=8,wh(n,r,a,l)}finally{W.p=m,z.T=h}}function wh(n,r,a,l){if(rc){var h=Sh(l);if(h===null)ah(n,r,l,sc,a),lb(n,l);else if(oA(h,n,r,a,l))l.stopPropagation();else if(lb(n,l),r&4&&-1<aA.indexOf(n)){for(;h!==null;){var m=hs(h);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var v=Un(m.pendingLanes);if(v!==0){var _=m;for(_.pendingLanes|=2,_.entangledLanes|=2;v;){var x=1<<31-Mt(v);_.entanglements[1]|=x,v&=~x}Hn(m),(Ue&6)===0&&($l=Bt()+500,ro(0))}}break;case 31:case 13:_=Lr(m,2),_!==null&&en(_,m,2),Hl(),bh(m,2)}if(m=Sh(l),m===null&&ah(n,r,l,sc,a),m===h)break;h=m}h!==null&&l.stopPropagation()}else ah(n,r,l,null,a)}}function Sh(n){return n=ku(n),_h(n)}var sc=null;function _h(n){if(sc=null,n=ds(n),n!==null){var r=c(n);if(r===null)n=null;else{var a=r.tag;if(a===13){if(n=u(r),n!==null)return n;n=null}else if(a===31){if(n=d(r),n!==null)return n;n=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return sc=n,null}function ob(n){switch(n){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(fu()){case _r:return 2;case Qo:return 8;case kr:case ka:return 32;case Xn:return 268435456;default:return 32}default:return 32}}var kh=!1,er=null,tr=null,nr=null,ho=new Map,fo=new Map,ir=[],aA="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 lb(n,r){switch(n){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":ho.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":fo.delete(r.pointerId)}}function mo(n,r,a,l,h,m){return n===null||n.nativeEvent!==m?(n={blockedOn:r,domEventName:a,eventSystemFlags:l,nativeEvent:m,targetContainers:[h]},r!==null&&(r=hs(r),r!==null&&sb(r)),n):(n.eventSystemFlags|=l,r=n.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),n)}function oA(n,r,a,l,h){switch(r){case"focusin":return er=mo(er,n,r,a,l,h),!0;case"dragenter":return tr=mo(tr,n,r,a,l,h),!0;case"mouseover":return nr=mo(nr,n,r,a,l,h),!0;case"pointerover":var m=h.pointerId;return ho.set(m,mo(ho.get(m)||null,n,r,a,l,h)),!0;case"gotpointercapture":return m=h.pointerId,fo.set(m,mo(fo.get(m)||null,n,r,a,l,h)),!0}return!1}function cb(n){var r=ds(n.target);if(r!==null){var a=c(r);if(a!==null){if(r=a.tag,r===13){if(r=u(a),r!==null){n.blockedOn=r,kp(n.priority,function(){ab(a)});return}}else if(r===31){if(r=d(a),r!==null){n.blockedOn=r,kp(n.priority,function(){ab(a)});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ac(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var a=Sh(n.nativeEvent);if(a===null){a=n.nativeEvent;var l=new a.constructor(a.type,a);_u=l,a.target.dispatchEvent(l),_u=null}else return r=hs(a),r!==null&&sb(r),n.blockedOn=a,!1;r.shift()}return!0}function ub(n,r,a){ac(n)&&a.delete(r)}function lA(){kh=!1,er!==null&&ac(er)&&(er=null),tr!==null&&ac(tr)&&(tr=null),nr!==null&&ac(nr)&&(nr=null),ho.forEach(ub),fo.forEach(ub)}function oc(n,r){n.blockedOn===r&&(n.blockedOn=null,kh||(kh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,lA)))}var lc=null;function db(n){lc!==n&&(lc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){lc===n&&(lc=null);for(var r=0;r<n.length;r+=3){var a=n[r],l=n[r+1],h=n[r+2];if(typeof l!="function"){if(_h(l||a)===null)continue;break}var m=hs(a);m!==null&&(n.splice(r,3),r-=3,Sd(m,{pending:!0,data:h,method:a.method,action:l},l,h))}}))}function Gs(n){function r(x){return oc(x,n)}er!==null&&oc(er,n),tr!==null&&oc(tr,n),nr!==null&&oc(nr,n),ho.forEach(r),fo.forEach(r);for(var a=0;a<ir.length;a++){var l=ir[a];l.blockedOn===n&&(l.blockedOn=null)}for(;0<ir.length&&(a=ir[0],a.blockedOn===null);)cb(a),a.blockedOn===null&&ir.shift();if(a=(n.ownerDocument||n).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var h=a[l],m=a[l+1],v=h[Yt]||null;if(typeof m=="function")v||db(a);else if(v){var _=null;if(m&&m.hasAttribute("formAction")){if(h=m,v=m[Yt]||null)_=v.formAction;else if(_h(h)!==null)continue}else _=v.action;typeof _=="function"?a[l+1]=_:(a.splice(l,3),l-=3),db(a)}}}function hb(){function n(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(v){return h=v})},focusReset:"manual",scroll:"manual"})}function r(){h!==null&&(h(),h=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,h=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),h!==null&&(h(),h=null)}}}function Eh(n){this._internalRoot=n}cc.prototype.render=Eh.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(s(409));var a=r.current,l=dn();ib(a,l,n,r,null,null)},cc.prototype.unmount=Eh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;ib(n.current,2,null,n,null,null),Hl(),r[us]=null}};function cc(n){this._internalRoot=n}cc.prototype.unstable_scheduleHydration=function(n){if(n){var r=pu();n={blockedOn:null,target:n,priority:r};for(var a=0;a<ir.length&&r!==0&&r<ir[a].priority;a++);ir.splice(a,0,n),a===0&&cb(n)}};var fb=t.version;if(fb!=="19.2.5")throw Error(s(527,fb,"19.2.5"));W.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=p(r),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var cA={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{Er=uc.inject(cA),$t=uc}catch{}}return go.createRoot=function(n,r){if(!o(n))throw Error(s(299));var a=!1,l="",h=wy,m=Sy,v=_y;return r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(v=r.onRecoverableError)),r=tb(n,1,!1,null,null,a,l,null,h,m,v,hb),n[us]=r.current,sh(n),new Eh(r)},go.hydrateRoot=function(n,r,a){if(!o(n))throw Error(s(299));var l=!1,h="",m=wy,v=Sy,_=_y,x=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.formState!==void 0&&(x=a.formState)),r=tb(n,1,!0,r,a??null,l,h,x,m,v,_,hb),r.context=nb(null),a=r.current,l=dn(),l=cs(l),h=qi(l),h.callback=null,Hi(a,h,l),a=l,r.current.lanes=a,tt(r,a),Hn(r),n[us]=r.current,sh(n),new cc(r)},go.version="19.2.5",go}var kb;
10function wA(){if(kb)return xh.exports;kb=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(),xh.exports=bA(),xh.exports}var SA=wA(),_A="__TSS_CONTEXT",om=Symbol.for("TSS_SERVER_FUNCTION"),Eb=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),kA="application/x-tss-framed",Bm=()=>window.__TSS_START_OPTIONS__;function vS(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function es(e){return e?.isNotFound===!0}function mt(e){e.statusCode=e.statusCode||e.code||307;const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const i=new Response(null,{status:e.statusCode,headers:t});if(i.options=e,e.throw)throw i;return i}function $m(e){return e instanceof Response&&!!e.options}function bS(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return mt(e)}function EA(e){return e.replaceAll("\0","/").replaceAll("�","/").replace(/~([~0r])/g,(t,i)=>i==="0"?"\0":i==="r"?"�":i)}const Tb=!1;function pr(e){return e[e.length-1]}function wS(e,t){return typeof e=="function"?e(t):e}const qm=Object.prototype.hasOwnProperty;function SS(e){for(const t in e)if(qm.call(e,t))return!0;return!1}const Lc=()=>Object.create(null),Ys=(e,t)=>fr(e,t,!0);function fr(e,t,i,s=0){if(e===t)return e;if(s++>500)return t;const o=Array.isArray(e)&&Array.isArray(t);if(!o&&!(Bc(e)&&Bc(t)))return t;const c=Object.keys(e),u=c.length,d=Object.keys(t),f=d.length;if(o?u!==e.length||f!==t.length||u&&pr(c)!==`${u-1}`||f&&pr(d)!==`${f-1}`:u!==Object.getOwnPropertyNames(e).length||f!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let p=0,y,g,b;if(o){for(;p<f&&(b=p,g=e[b],y=t[b],y=g===y?g:typeof g=="object"?fr(g,y,i,s):y,y===g);p++);if(p===f&&u===f)return e}else{let S=u===f,k=!0;for(;p<f;p++){b=d[p],g=e[b];const T=t[b];y=g===T?g:typeof g=="object"?fr(g,T,i,s):T,S&&=y===g&&(c[p]===b||qm.call(e,b)),k&&=Object.is(y,T),c[p]=y}if(S)return Object.getOwnPropertySymbols(e).length?t:e;if(k)return t}const w=o?d.fill(0):i?Lc():{};for(let S=0;S<f;S++)b=o?S:d[S],o?(g=e[b],S>p&&(y=t[b],y=g===y?g:typeof g=="object"?fr(g,y,i,s):y),w[b]=S<p?g:y):w[b]=c[S];return w}function Bc(e){return!e||typeof e!="object"?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function Nn(e,t,i,s){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let o=0,c=e.length;o<c;o++){const u=e[o],d=t[o];if(u!==d&&!Nn(u,d,i,s))return!1}return!0}if(Bc(e)&&Bc(t)){if(i){for(const c in t)if((s||t[c]!==void 0)&&!Nn(e[c],t[c],i,s))return!1;return!0}let o=0;if(s)o=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&o++;for(const c in t)if((s||t[c]!==void 0)&&(o--===0||!Nn(e[c],t[c],i,s)))return!1;return o===0}return!1}function TA(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}const AA=/[\x00-\x1f\x7f"<>`{}]/g;function xA(e){return e.replace(AA,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function Ab(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return xA(t)}const RA=["http:","https:","mailto:","tel:"];function Oo(e){if(e[0]!=="/"&&e.includes(":"))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,"").toLowerCase()}const _S=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function kS(e,t){if(!e)return!1;if(_S.test(e))return!0;const i=Oo(e);return i?!t.has(i):!1}const CA={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},OA=/[&><\u2028\u2029]/g;function LA(e){return e.replace(OA,t=>CA[t])}function yo(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){const i=/%25|%5C/gi;let s=0,o;for(t="";(o=i.exec(e))!==null;)t+=Ab(e.slice(s,o.index))+o[0],s=i.lastIndex;t+=Ab(s?e.slice(s):e)}return t}function zA(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function jA(e,t){if(e===t)return!0;
10if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}function da(e){return e.replace(/\/{2,}/g,"/")}function ES(e){return e==="/"?e:e.replace(/^\/+/,"")}function Jn(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/+$/,""):e}function TS(e){return Jn(ES(e))}function xb(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Rb(e,t,i="never",s){if(t.includes("//")&&(t=da(t)),t.startsWith("/"))return t.length===1||i==="preserve"?t:i==="always"?t.endsWith("/")?t:`${t}/`:t.endsWith("/")?t.slice(0,-1):t;const o=t===".";let c;if(s){c=o?e:e+"\0"+t;const p=s.get(c);if(p)return p}let u;if(o)u=e.split("/");else{for(e.includes("//")&&(e=da(e)),u=e.split("/");u.length>1&&pr(u)==="";)u.pop();const p=t.split("/");for(let y=0,g=p.length;y<g;y++){const b=p[y];b===""?y?y===g-1&&u.push(b):u=[b]:b===".."?u.length>1?u.pop():u=[""]:b==="."||u.push(b)}}u.length>1&&(pr(u)===""?i==="never"&&u.pop():i==="always"&&u.push(""));const d=u.join("/"),f=(o?da(d):d)||"/";return c&&s&&s.set(c,f),f}function DA(e){const t=new Map(e.map(s=>[encodeURIComponent(s),s])),i=new RegExp([...t.keys()].join("|").replace(/[.*()]/g,"\\$&"),"g");return s=>s.replace(i,o=>t.get(o)??o)}function MA(e){return e==null||e===""}function IA(e,t,i){if(typeof t!="string")return""+(t??void 0);const s=e==="_splat";if(s&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let o=encodeURIComponent(t);return s&&(o=o.replaceAll("%2F","/")),i?i(o):o}function Cb(e,t,i,s,o){const c=e.endsWith("/")?"/":"";let u="";for(const d of t){if(typeof d=="string"){u+=d;continue}const[f,p,y,g]=d,b=f===2,w=b&&g!==void 0?g+c:g;let S=i[p];if(!(f===3&&S==null)){if(o&&(o[p]=S,b&&(o["*"]=S)),b&&MA(S)){if(y==="/"&&!w)continue;S=""}u+=y+IA(p,S,s)+(w||"")}}return u+c||"/"}function $c(e){const t=new Map;let i,s;return{get(o){const c=t.get(o);if(c)return c.visited=!0,c.value},set(o,c){const u=t.get(o);if(u){u.value=c;return}if(t.size>=e){let f=i?.next().value;for(;!f||f.visited;)f?f.visited=!1:i=t.values(),f=i.next().value;f===s&&(i=void 0),t.delete(f.key)}const d={key:o,value:c,visited:!1};s=d,t.set(o,d)},clear(){t.clear(),i=void 0,s=void 0}}}function Lo(){throw new Error("Invariant failed")}const hr=4,AS=5;function NA(e){const t=e.names;if(t)return t;const i=[];for(const s of e)typeof s!="string"&&i.push(s[1]);return e.names=i}function PA(e,t,i){const s=e.substring(t,i);if(s.charCodeAt(0)===36)return s.length===1?[2,"_splat","",void 0]:[1,s.substring(1),"",""];const o=s.indexOf("{");if(o>=0){const c=s.indexOf("}",o),u=s.charCodeAt(o+1)===45,d=o+(u?3:2);if(c>=0&&s.charCodeAt(d-1)===36&&(!u||d<c)){const f=s.substring(d,c);return[u?3:f?1:2,f||"_splat",s.substring(0,o),e.substring(t+c+1,f?i:e.length)]}}return s}function zo(e,t,i,s,o,c){let u=i;const d=t.fullPath??t.from,f=t.options,p=d.length,y=d.endsWith("/")?p-1:p,g=f?.caseSensitive??e,b=f?.params?.parse??f?.parseParams;let w,S=c?i-1:0;if(!s||d.includes("$")){w=c?.slice()??[];const E=pr(w);E&&typeof E!="string"&&E[0]===2&&(w[w.length-1]=[E[0],E[1],E[2],E[3]===void 0?void 0:E[3]+d.substring(i-(d[i-2]==="/"?2:1),y)],S=p)}for(;u<p;){const E=u,L=d.indexOf("/",E);let C=L===-1?p:L;const $=PA(d,E,C);u=C+1;let Q;if(typeof $=="string"){if(!s)continue;let P=$,j;g?j=s.static??=new Map:(P=$.toLowerCase(),j=s.staticInsensitive??=new Map);const U=j.get(P);if(U)Q=U;else{const ee=Wr(s);Q=ee,j.set(P,ee)}}else{const P=$[0];let j=$[2],U=$[3]??"";if(P===2&&(C=p,u=C+1),w&&S<C&&(S<E-1&&w.push(d.substring(S,E-1)),$[2]="/"+j,P===2&&$[3]!==void 0&&y<p&&($[3]=U.slice(0,-1)),w.push($),S=C),!s)continue;const ee=g&&!!(j||U);g||(j=j.toLowerCase(),U=U.toLowerCase());const he=P===1?s.dynamic??=[]:P===3?s.optional??=[]:s.wildcard??=[],G=P!==2&&!b&&he.find(Y=>!Y.parse&&Y.caseSensitive===ee&&Y.prefix===j&&Y.suffix===U);if(G)Q=G;else{const Y=Wr(s,P,ee,j,U);Q=Y,he.push(Y),he.length===2&&o?.push(he)}}s=Q}w&&S<y&&w.push(d.substring(S,y));const k=w?.slice();if(!s)return k;
10if(b&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf("/")+1)===95){const E=Wr(s,AS);(s.pathless??=[]).push(E),s=E}const T=(t.path||!t.children)&&!t.isRoot;if(T&&y<p){const E=Wr(s,hr);s.index=E,s=E}return s.parse=b??null,s.priority=f?.params?.priority??0,s.route||(s.data=k,T&&(s.route=t)),[s,u,k]}function xS(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 Wr(e,t=0,i,s,o){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:i,prefix:s,suffix:o}}function UA(e,t){const i=Wr(),s=[];function o(c,u,d,f){const[p,y,g]=zo(!1,c,u,d,s,f);if(c.children)for(const b of c.children)o(b,y,p,g)}for(const c of e)o(c,1,i);for(const c of s)c.sort(xS);t.masksTree=i,t.flatCache=$c(1e3)}function BA(e,t){e||="/";const i=t.flatCache.get(e);if(i!==void 0)return i;const s=Hm(e,t.masksTree);return t.flatCache.set(e,s),s}function $A(e,t,i,s,o){e||="/",s||="/";const c=t?`case\0${e}`:e;let u=o.singleCache.get(c);return u||(u=Wr(),zo(t,{from:e},1,u),o.singleCache.set(c,u)),Hm(s,u,i)}function qA(e,t,i=!1){const s=i?e:`nofuzz\0${e}`,o=t.matchCache.get(s);if(o!==void 0)return o;e||="/";let c;try{c=Hm(e,t.segmentTree,i)}catch(u){if(u instanceof URIError)c=null;else throw u}return c&&(c.branch=CS(c.route)),t.matchCache.set(s,c),c}function HA(e,t=!1){const i=Wr(),s=[],o={},c={};let u=0;function d(f,p,y,g){if(f.init(u),f.id in o&&Lo(),o[f.id]=f,u!==0&&f.path){const k=Jn(f.fullPath);(!c[k]||f.fullPath.endsWith("/"))&&(c[k]=f)}u++;const[b,w,S]=zo(t,f,p,y,s,g);if(f._interpolation=S,f.children)for(const k of f.children)d(k,w,b,S)}d(e,1,i);for(const f of s)f.sort(xS);return{processedTree:{segmentTree:i,singleCache:$c(1e3),matchCache:$c(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:c}}function Hm(e,t,i=!1){const s=e.split("/"),o=VA(e,s,t,i);if(!o)return null;const[c]=RS(e,s,o);return{route:o.node.route,rawParams:c}}function RS(e,t,i){const s=FA(i.node),o=i.node.data&&NA(i.node.data),c=Object.create(null);let u=i.extract?.part??0,d=i.extract?.node??0,f=i.extract?.path??0,p=i.extract?.param??0;for(;d<s.length;u++,d++,f++){const y=s[d];if(y.kind===hr)break;if(y.kind===AS){u--,f--;continue}const g=t[u],b=f;if(g&&(f+=g.length),y.kind===1||y.kind===3){const w=o[p++];if(y.kind===3&&i.skipped&1<<d){u--,f=b-1;continue}const S=y.suffix||y.prefix?g.substring(y.prefix.length,g.length-y.suffix.length):g;(S||y.kind===1)&&(c[w]=decodeURIComponent(S))}else if(y.kind===2){const w=y,S=e.substring(b+w.prefix.length,e.length-w.suffix.length),k=decodeURIComponent(S);c["*"]=k,c._splat=k;break}}return i.rawParams&&Object.assign(c,i.rawParams),[c,{part:u,node:d,path:f,param:p}]}function CS(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function FA(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function VA(e,t,i,s){if(e==="/"&&i.index)return{node:i.index,skipped:0};const o=!pr(t),c=o&&e!=="/",u=t.length-(o?1:0),d=[{node:i,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let f=null,p=null;for(;d.length;){const y=d.pop(),{node:g,index:b,skipped:w,statics:S,dynamics:k,optionals:T}=y;let{extract:E,rawParams:L}=y;if(g.kind===2&&g.route&&!hc(p,y))continue;if(g.parse){if(!Ob(e,t,y))continue;L=y.rawParams,E=y.extract}s&&g.route&&g.kind!==hr&&hc(f,y)&&(f=y);const C=b===u;if(C&&(g.route&&(!c||g.kind===hr||g.kind===2)&&hc(p,y)&&(p=y),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const $=C?void 0:t[b];let Q;if(C&&g.index){const P={node:g.index,index:b,skipped:w,statics:S,dynamics:k,optionals:T,extract:E,rawParams:L};let j=!0;if(g.index.parse&&(Ob(e,t,P)||(j=!1)),j){if(!k&&!T&&!w&&KA(S,u))return P;hc(p,P)&&(p=P)}}if(g.wildcard)for(let P=g.wildcard.length-1;P>=0;P--){const j=g.wildcard[P],{prefix:U,suffix:ee}=j;if(!(U&&(C||!(j.caseSensitive?$:Q??=$.toLowerCase()).startsWith(U)))){if(ee){if(C)continue;const he=t.slice(b).join("/"),G=he.slice(-ee.length);if((j.caseSensitive?G:G.toLowerCase())!==ee||he.length-ee.length<U.length)continue}d.push({node:j,index:u,skipped:w,statics:S,dynamics:k,optionals:T,extract:E,rawParams:L})}}if(g.optional){const P=w|1<<g.depth+1;for(let j=g.optional.length-1;j>=0;j--){const U=g.optional[j];d.push({node:U,index:b,skipped:P,statics:S,dynamics:k,optionals:T,extract:E,rawParams:L})}if(!C)for(let j=g.optional.length-1;j>=0;j--){const U=g.optional[j],{prefix:ee,suffix:he}=U;if(ee||he){const G=U.caseSensitive?$:Q??=$.toLowerCase();if(ee&&!G.startsWith(ee)||he&&G.indexOf(he,G.length-he.length)<ee.length)continue}d.push({node:U,index:b+1,skipped:w,statics:S,dynamics:k,optionals:T+dc(u,b),extract:E,rawParams:L})}}if(!C&&g.dynamic&&$)for(let P=g.dynamic.length-1;P>=0;P--){const j=g.dynamic[P],{prefix:U,suffix:ee}=j;if(U||ee){const he=j.caseSensitive?$:Q??=$.toLowerCase();if(U&&!he.startsWith(U)||ee&&he.indexOf(ee,he.length-ee.length)<U.length)continue}d.push({node:j,index:b+1,skipped:w,statics:S,dynamics:k+dc(u,b),optionals:T,extract:E,rawParams:L})}if(!C&&g.staticInsensitive){const P=g.staticInsensitive.get(Q??=$.toLowerCase());P&&d.push({node:P,index:b+1,skipped:w,statics:S+dc(u,b),dynamics:k,optionals:T,extract:E,rawParams:L})}if(!C&&g.static){const P=g.static.get($);P&&d.push({node:P,index:b+1,skipped:w,statics:S+dc(u,b),dynamics:k,optionals:T,extract:E,rawParams:L})}if(g.pathless)for(let P=g.pathless.length-1;P>=0;P--){const j=g.pathless[P];d.push({node:j,index:b,skipped:w,statics:S,dynamics:k,optionals:T,extract:E,rawParams:L})}}if(p)return p;if(s&&f){let y=f.index;for(let b=0;b<f.index;b++)y+=t[b].length;const g=y===e.length?"/":e.slice(y);return f.rawParams??=Object.create(null),f.rawParams["**"]=decodeURIComponent(g),f}return null}function dc(e,t){return 2**(e-t-1)}function KA(e,t){return e===2**(t-1)-1}function Ob(e,t,i){let s,o;try{[s,o]=RS(e,t,i)}catch{return null}if(i.rawParams=s,i.extract=o,!i.node.parse)return!0;try{if(i.node.parse(s)===!1)return null}catch{}return!0}function hc(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===hr)>(e.node.kind===hr)||t.node.kind===hr==(e.node.kind===hr)&&t.node.depth>e.node.depth))):!0}function GA(){try{return sessionStorage}catch{return}}const YA="tsr-scroll-restoration-v1_3",OS=GA();function WA(){try{return JSON.parse(OS?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}const Ws=WA(),Lb="data-scroll-restoration-id",JA=e=>e.state.__TSR_key||e.href;function QA(e){const t=e.getAttribute(Lb);if(t)return`[${Lb}="${t}"]`;let i="",s=e,o;for(;o=s.parentNode;){let c=1,u=s;for(;u=u.previousElementSibling;)c++;const d=`${s.localName}:nth-child(${c})`;i=i?`${d} > ${i}`:d,s=o}return i}let fc=!1;const zc="window";function lm(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function zb(e){const t=new Set;for(const i of e){if(i===zc)continue;const s=lm(i);s&&t.add(s)}return t}function XA(e,t){const i=e.options.scrollRestoration,s=e._scroll;i&&(s.e=!0);const o=e.options.getScrollRestorationKey||JA,c=new Set,u=d=>{const f=Ws[d]||={};
10for(const p of c)p===document?f[zc]={scrollX,scrollY}:p.isConnected&&(f[QA(p)]={scrollX:p.scrollLeft,scrollY:p.scrollTop})};i&&!s.s&&(s.s=!0,fc=!1,history.scrollRestoration="manual",document.addEventListener("scroll",d=>{fc||c.add(d.target)},!0),e.subscribe("onBeforeLoad",d=>{d.fromLocation&&u(o(d.fromLocation)),c.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",u(o(e.stores.resolvedLocation.get()??e.stores.location.get()));try{OS?.setItem(YA,JSON.stringify(Ws))}catch{}}),addEventListener("pageshow",d=>{d.persisted&&(history.scrollRestoration="manual")})),!s.r&&(s.r=!0,e.subscribe("onRendered",d=>{const f=e.options.scrollRestorationBehavior,p=e.options.scrollToTopSelectors,y=s.n,g=s.h;let b;if(c.clear(),s.n=!0,s.h=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const w=o(d.toLocation),S=d.fromLocation&&o(d.fromLocation);if(s.e&&S&&S!==w){const k=Ws[S];if(k){let T=Ws[w];for(const E in k){if(E===zc){if(y)continue}else{const L=lm(E);if(!L||y&&p&&(b??=zb(p),b.has(L)))continue}T||(T=Ws[w]={}),T[E]??=k[E]}}}fc=!0;try{const k=d.toLocation.hash,T=d.toLocation.state.__hashScrollIntoViewOptions??!0;let E=!1;if(y){!k&&p&&(b??=zb(p));const L=k&&T&&g,C=s.e?Ws[w]:void 0;if(C)for(const $ in C){const{scrollX:Q,scrollY:P}=C[$];if($===zc){if(L)continue;scrollTo({top:P,left:Q,behavior:f}),E=!0}else{const j=lm($);j&&(j.scrollLeft=Q,j.scrollTop=P,b?.delete(j))}}if(!k){const $={top:0,left:0,behavior:f};if(E||scrollTo($),b)for(const Q of b)Q.scrollTo($)}}!E&&k&&T&&document.getElementById(k)?.scrollIntoView(T)}finally{fc=!1}}))}function LS(e,t=String){let i;for(const s in e){const o=e[s];o!==void 0&&(i||=new URLSearchParams).set(s,t(o))}return i?i.toString():""}function Lh(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function ZA(e){const t=new URLSearchParams(e),i=Object.create(null);for(const[s,o]of t.entries()){const c=i[s];c==null?i[s]=Lh(o):Array.isArray(c)?c.push(Lh(o)):i[s]=[c,Lh(o)]}return i}const zS=/^(?:\s|["[{\d-]|fa|nu|tr)/,ex=nx(JSON.parse),tx=ix(JSON.stringify,JSON.parse);function nx(e){const t=e===JSON.parse;return i=>{i[0]==="?"&&(i=i.substring(1));const s=ZA(i);for(const o in s){const c=s[o];if(typeof c=="string"){if(t&&!zS.test(c))continue;try{s[o]=e(c)}catch{}}}return s}}function ix(e,t){const i=t===JSON.parse;function s(o){if(o&&typeof o=="object")try{return e(o)}catch{}else if(t&&typeof o=="string"){if(i&&!zS.test(o))return o;try{return t(o),e(o)}catch{}}return o}return o=>{const c=LS(o,s);return c?`?${c}`:""}}const ha="__root__";function rx(e,t,i){const s=TS(e),o=`/${s}`,c=t?o:o.toLowerCase(),u=`${c}/`,d={input:({url:f})=>{const p=t?f.pathname:f.pathname.toLowerCase();return p===c?f.pathname="/":p.startsWith(u)&&(f.pathname=f.pathname.slice(o.length)),f},output:({url:f})=>(f.pathname=da(`/${s}${f.pathname}`),f)};return i?{input:({url:f})=>cm(i,d.input({url:f})),output:({url:f})=>d.output({url:jS(i,f)})}:d}function cm(e,t){const i=e?.input?.({url:t});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return t}function jS(e,t){const i=e?.output?.({url:t});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return t}function sx(e,t){const{createMutableStore:i,createReadonlyStore:s,batch:o}=t,c=new Map,u=i("idle"),d=i(e),f=i(void 0),p=i([]),y=s(()=>p.get().map(k=>c.get(k).get())),g=s(()=>({status:u.get(),isLoading:u.get()==="pending",matches:y.get(),location:d.get(),resolvedLocation:f.get()}));function b(k){let T=c.get(k);return T||(T=i(void 0),c.set(k,T)),T}const w={status:u,location:d,resolvedLocation:f,ids:p,matches:y,byRoute:c,__store:g,getMatchStore:b,setMatches:S};function S(k){const T=p.get(),E=k.map(L=>L.routeId);o(()=>{jA(T,E)||p.set(E);for(const L of T)E.includes(L)||c.get(L).set(()=>{});for(const L of k){const C=b(L.routeId);C.get()!==L&&C.set(L)}})}return w}var mr="__TSR_index",jb="popstate",Db="beforeunload",ax=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function jc(e){const t=ax.exec(e);return t?"/"+e.slice(t[0].length):e}function DS(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,t=>` 11\r`.includes(t)?"":encodeURIComponent(t))),jc(e)}function ox(e){let t=e.getLocation();const i=new Set,s=u=>
11{t=e.getLocation(),i.forEach(d=>d({location:t,action:u}))},o=u=>{e.notifyOnIndexChange??!0?s(u):t=e.getLocation()},c=async({task:u,navigateOpts:d,...f})=>{if(d?.ignoreBlocker??!1){u();return}const p=e.getBlockers?.()??[],y=f.type==="PUSH"||f.type==="REPLACE";if(typeof document<"u"&&p.length&&y)for(const g of p){const b=qc(f.path,f.state);if(await g.blockerFn({currentLocation:t,nextLocation:b,action:f.type})){e.onBlocked?.();return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:i,subscribe:u=>(i.add(u),()=>{i.delete(u)}),push:(u,d,f)=>{const p=t.state[mr];d=Mb(p+1,d),c({task:()=>{e.pushState(u,d),s({type:"PUSH"})},navigateOpts:f,type:"PUSH",path:u,state:d})},replace:(u,d,f)=>{const p=t.state[mr];d=Mb(p,d),c({task:()=>{e.replaceState(u,d),s({type:"REPLACE"})},navigateOpts:f,type:"REPLACE",path:u,state:d})},go:(u,d)=>{c({task:()=>{e.go(u,d?.ignoreBlocker??!1),o({type:"GO",index:u})},navigateOpts:d,type:"GO"})},back:u=>{c({task:()=>{e.back(u?.ignoreBlocker??!1),o({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{c({task:()=>{e.forward(u?.ignoreBlocker??!1),o({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[mr]!==0,createHref:u=>e.createHref(u),block:u=>{if(!e.setBlockers)return()=>{};const d=e.getBlockers?.()??[];return e.setBlockers([...d,u]),()=>{const f=e.getBlockers?.()??[];e.setBlockers?.(f.filter(p=>p!==u))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:s,_getBlockers:()=>e.getBlockers?.()??[]}}function Mb(e,t){const i=Fm();return{...t,key:i,__TSR_key:i,[mr]:e}}function lx(e){const t=typeof document<"u"?window:void 0,i=t.history.pushState,s=t.history.replaceState;let o=[];const c=()=>o,u=j=>o=j,d=j=>DS(j),f=(()=>qc(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const j=Fm();t.history.replaceState({[mr]:0,key:j,__TSR_key:j},"")}let p=f(),y,g=!1,b=!1,w=!1,S=!1;const k=()=>p;let T;const E=()=>{T&&(P._ignoreSubscribers=!0,(T[2]?t.history.pushState:t.history.replaceState)(T[1],"",T[0]),P._ignoreSubscribers=!1,T=void 0,y=void 0)},L=(j,U,ee)=>{const he=!!T;he||(y=p),p=qc(U,ee),T=[p.href,ee,T?.[2]||j],he||queueMicrotask(()=>E())},C=j=>{p=f(),P.notify({type:j})},$=async()=>{if(S=!1,b){b=!1;return}const j=f(),U=j.state[mr]-p.state[mr],ee=U===1,he=U===-1,G=!ee&&!he||g;g=!1;const Y=G?"GO":he?"BACK":"FORWARD",te=G?{type:"GO",index:U}:{type:he?"BACK":"FORWARD"};if(w)w=!1;else{const ye=c();if(typeof document<"u"&&ye.length){for(const se of ye)if(await se.blockerFn({currentLocation:p,nextLocation:j,action:Y})){b=!0,t.history.go(-U),P.notify(te);return}}}p=f(),P.notify(te)},Q=j=>{if(S){S=!1;return}let U=!1;const ee=c();if(typeof document<"u"&&ee.length)for(const he of ee){const G=he.enableBeforeUnload??!0;if(G===!0){U=!0;break}if(typeof G=="function"&&G()===!0){U=!0;break}}if(U)return j.preventDefault(),j.returnValue=""},P=ox({getLocation:k,getLength:()=>t.history.length,pushState:(j,U)=>L(!0,j,U),replaceState:(j,U)=>L(!1,j,U),back:j=>(j&&(w=!0,S=!0),t.history.back()),forward:j=>{j&&(w=!0,S=!0),t.history.forward()},go:(j,U)=>{g=!0,U&&(w=!0,S=!0),t.history.go(j)},createHref:j=>d(j),flush:E,destroy:()=>{t.history.pushState=i,t.history.replaceState=s,t.removeEventListener(Db,Q,{capture:!0}),t.removeEventListener(jb,$)},onBlocked:()=>{y&&p!==y&&(p=y)},getBlockers:c,setBlockers:u,notifyOnIndexChange:!1});return P._ignoreNextBeforeUnload=j=>{S=!1;try{j=new URL(j,t.document.baseURI).href,S=/^https?:/.test(j)&&(!j.includes("#")||j.split("#")[0]!==t.location.href.split("#")[0])}catch{}},t.addEventListener(Db,Q,{capture:!0}),t.addEventListener(jb,$),t.history.pushState=function(...j){const U=i.apply(t.history,j);return P._ignoreSubscribers||C("PUSH"),U},t.history.replaceState=function(...j){const U=s.apply(t.history,j);return P._ignoreSubscribers||C("REPLACE"),U},P}function qc(e,t){const i=DS(e),s=i.indexOf("#"),o=i.indexOf("?");if(!t){const c=Fm();t={[mr]:0,key:c,__TSR_key:c}}return{href:i,pathname:i.substring(0,s>0?o>0?Math.min(s,o):s:o>0?o:i.length),hash:s>-1?i.substring(s):"",search:o>-1?i.slice(o,s===-1?void 0:s):"",state:t}}function Fm(){return(Math.random()+1).toString(36).substring(7)}function zh(e,t){return e.protocol!=="http:"&&e.protocol!=="https:"||e.origin!==t||!!e.username||!!e.password}function jh(e){return e.pathname+e.search+e.hash}function Ib(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function cx(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function tu(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Nb({key:e,__TSR_key:t,__TSR_index:i,__hashScrollIntoViewOptions:s,...o}){return o}function MS(e){return e.findIndex(t=>t.status==="error"||t.status==="notFound"||t._notFound)+1}function ux(e,t,i,s,o,c){s&&(t=t.slice(0,s)),o&&(i=i.slice(0,o));for(const u of t){if(c&&e._tx!==c)return;i.some(d=>d.routeId===u.routeId)||e.routesById[u.routeId].options.onLeave?.(u)}for(const u of i){if(c&&e._tx!==c)return;e.routesById[u.routeId].options[t.some(d=>d.routeId===u.routeId)?"onStay":"onEnter"]?.(u)}}var dx=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async i=>(i(),!1),this.update=i=>{const s=this.options;this.options={...s,...i},this.isServer=this.options.isServer??Tb??typeof document>"u",this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=lx()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost");const o=this.options.basepath??"/",c=this.options.rewrite,u=this.basepath!==o||s?.rewrite!==c||s?.caseSensitive!==this.options.caseSensitive;if(u&&(this.basepath=o,this.rewrite=o!=="/"&&TS(o)?rx(o,this.options.caseSensitive,c):c),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree||Tb){this.routeTree=this.options.routeTree;let d;d=this.buildRouteTree(),this.setRoutes(d)}if(this.stores)u&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){const d=this.getStoreConfig(this);this.batch=d.batch,this.stores=sx(this.latestLocation,d),XA(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=HA(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&UA(this.options.routeMasks,i.processedTree),{...i,resolvePathCache:$c(1e3)}},this.subscribe=(i,s)=>{const o={eventType:i,fn:s};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=i=>{for(const s of this.subscribers)if(s.eventType===i.type)try{s.fn(i)}catch(o){console.error(o)}},this.parseLocation=(i,s)=>{const o=({pathname:f,search:p,hash:y,href:g},b)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(f)){const T=this.options.parseSearch(p),E=this.options.stringifySearch(T);return{href:f+E+y,publicHref:f+E+y,pathname:yo(f),external:!1,searchStr:E,search:Ys(s?.search,T),hash:yo(y.slice(1)),state:fr(s?.state,b)}}const w=cm(this.rewrite,new URL(g,this.origin)),S=this.options.parseSearch(w.search),k=this.options.stringifySearch(S);return w.search=k,{href:w.href.replace(w.origin,""),publicHref:g,pathname:yo(jc(w.pathname)),external:!!this.rewrite&&zh(w,this.origin),searchStr:k,search:Ys(s?.search,S),hash:yo(w.hash.slice(1)),state:fr(s?.state,b)}},c=o(i,i.state),{__tempLocation:u,__tempKey:d}=c.state;if(u&&(!d||d===this.tempLocationKey)){const f=o(u,{...u.state,__tempLocation:void 0,key:c.state.key,__TSR_key:c.state.__TSR_key});return f.maskedLocation=c,f}return c},this.matchRoutes=(i,s,o)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:s},o):this.matchRoutesInternal(i,s),this.getMatchedRoutes=i=>{const s=Object.create(null),o=qA(Jn(i),this.processedTree,!0);return o&&Object.assign(s,o.rawParams),[o?.branch||[this.routesById.__root__],s,o?.route]},this.buildLocation=i=>{{const u=this.staticLocations.get(i);if(u)return u}let s=!1;const o=(u={})=>
11{if(u.href){const ye=qc(u.href,{});u={...u,to:cm(this.rewrite,new URL(ye.pathname,this.origin)).pathname,search:this.options.parseSearch(ye.search),hash:ye.hash.slice(1)}}const d=u._fromLocation||this._pendingLocation||this.latestLocation;let f;const p=()=>(s=!0,d),y=()=>(s=!0,f??=this.matchRoutesLightweight(d)),g=u.to?`${u.to}`:".",b=Rb(g[0]==="/"?"":u.unsafeRelative==="path"?p().pathname:u.from??y()[1],g,this.options.trailingSlash,this.resolvePathCache),w=this.routesByPath[Jn(b)],S=b.includes("$");let k;if(w)k=w._branch??=CS(w);else if(S)k=[];else{const[ye,se,z]=this.getMatchedRoutes(b);k=ye,this.options.notFoundRoute&&(!z||z.path!=="/"&&se["**"])&&(k=[...k,this.options.notFoundRoute])}const T=S?w?._interpolation??zo(!1,{fullPath:b},0):void 0;let E;for(const ye of k){const se=ye.options.params?.stringify??ye.options.stringifyParams;if(se){const z=y()[3];if(E??=Dh(u.params,z),!SS(E))break;E===z&&(E=Object.assign(Lc(),E));try{Object.assign(E,se(E))}catch{}}}E??=Dh(u.params,fx(u.params,T)?y()[3]:Mh);const L=i.leaveParams?b:jc(yo(T?Cb(b,T,E,this.pathParamsDecoder):b)),C=mx(k,i._includeValidateSearch),$=()=>{let ye=y()[2];if(i._includeValidateSearch&&this.options.search?.strict){const se={};k.forEach(z=>{if(z.options.validateSearch)try{Object.assign(se,Dc(z.options.validateSearch,{...se,...ye}))}catch{}}),ye=se}return ye},Q=C.length?px(C,$(),u):u.search===!0?$():typeof u.search=="function"?u.search($()):u.search||Mh,P=this.options.stringifySearch(Q),j=u.hash===!0?p().hash:typeof u.hash=="function"?u.hash(p().hash):u.hash||void 0,U=j?`#${j}`:"",ee=u.state?u.state===!0?p().state:typeof u.state=="function"?u.state(p().state):u.state:Mh,he=`${L}${P}${U}`;let G,Y,te=!1;if(this.rewrite){const ye=new URL(he,this.origin),se=ye.origin,z=jS(this.rewrite,ye);G=jh(ye),zh(z,se)?(Y=z.href,te=!0):Y=jc(jh(z))}else G=zA(he),Y=G;return{publicHref:Y,href:G,pathname:L,search:Q,searchStr:P,state:ee,hash:j??"",external:te,unmaskOnReload:u.unmaskOnReload}},c=o(i);if(i.mask)c.maskedLocation=o({from:i.from,...i.mask});else if(this.options.routeMasks){const u=BA(c.pathname,this.processedTree);if(u){const d=Object.assign(Lc(),u.rawParams),{from:f,params:p,...y}=u.route,g=Dh(p,d);c.maskedLocation=o({from:i.from,...y,params:g})}}return!s&&i._fromLocation&&!c.maskedLocation&&this.staticLocations.set(i,c),c},this.commitLocation=async({viewTransition:i,ignoreBlocker:s,...o})=>{const c=o.maskedLocation??o;if(c.external)return Pb(this,c.publicHref,{replace:o.replace,ignoreBlocker:s});let u;const d=Jn(this.latestLocation.href)===Jn(o.href)&&Nn(Nb(o.state),Nb(this.latestLocation.state)),f=this._commitPromise;let p;const y=new Promise(g=>{p=g});if(y.resolve=()=>{p(),f?.resolve()},this._commitPromise=y,d)this.load();else{let{maskedLocation:g,hashScrollIntoView:b,...w}=o;g&&(w={...g,state:{...g.state,__tempKey:void 0,__tempLocation:{...w,search:w.searchStr,state:{...w.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(w.unmaskOnReload??this.options.unmaskOnReload??!1)&&(w.state.__tempKey=this.tempLocationKey)),w.state={...w.state,__hashScrollIntoViewOptions:b??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=i,u=o.replace?"REPLACE":"PUSH",this.history[u==="REPLACE"?"replace":"push"](w.publicHref,w.state,{ignoreBlocker:s}),this.history.subscribers.size||this.load({action:{type:u}})}return this._scroll.n=o.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:i,resetScroll:s,hashScrollIntoView:o,viewTransition:c,ignoreBlocker:u,...d}={})=>{const f=this.buildLocation({...d,_includeValidateSearch:!0});this._pendingLocation=f;const p=this.commitLocation({...f,viewTransition:c,replace:i,resetScroll:s,hashScrollIntoView:o,ignoreBlocker:u});return queueMicrotask(()=>{this._pendingLocation===f&&(this._pendingLocation=void 0)}),p},this.navigate=async({to:i,reloadDocument:s,href:o,publicHref:c,...u})=>{const d=o?Oo(o):void 0;if(d||s){if(i!==void 0||!o){const p=this.buildLocation({to:i,...u}),y=p.maskedLocation??p;o??=y.publicHref,c??=y.publicHref}return Pb(this,!d&&c?c:o,u)}return this.buildAndCommitLocation({...u,href:o,to:i,_isNavigate:!0})},this.load=async i=>{this.updateLatestLocation(),i?.action&&(this._scroll.h=i.action.type==="PUSH"||i.action.type==="REPLACE"),await kx(this,i)},this.startViewTransition=i=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document.startViewTransition=="function"){let o;if(typeof s=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const c=this.latestLocation,u=this.stores.resolvedLocation.get(),d=typeof s.types=="function"?s.types(tu(c,u)):s.types;if(d===!1)return i();o={update:i,types:d}}else o=i;return document.startViewTransition(o).updateCallbackDone}return i()},this.invalidate=i=>{const s=this._committed,o=i?.filter,c=this._preloads,u=new Set,d=y=>{(!o||o(y))&&u.add(y.id)};
11s.forEach(d),this._cache.forEach(d),c?.forEach(y=>y.forEach(d)),this._tx?.[3].forEach(d);const f=[];for(const[y,g]of c??[])g.some(b=>u.has(b.id))&&(c.delete(y),f.push(y));const p=y=>{if(u.has(y.id)){const g=this.routesById[y.routeId],b={...y,invalid:!0,...(i?.forcePending||y.status==="error"||y.status==="notFound")&&Ib(g)?{status:"pending",error:void 0}:void 0};return y._flight=void 0,b}return y};this._committed=s.map(p);for(const[y,g]of this._cache)u.has(y)&&(g.invalid=!0,i?.forcePending&&(g.status="pending"));for(const y of u){const g=this._flights?.get(y);this._flights?.delete(y),g&&!g[2]&&f.push(g[1])}for(const y of f)y.abort();return this.shouldViewTransition=!1,this.load({sync:i?.sync})},this.resolveRedirect=i=>{const s=i.options;let o=i.headers.get("Location")||s.href;if(!o){const u=this.buildLocation(s);o=(u.maskedLocation??u).publicHref||"/"}let c;if(_S.test(o)||(c=Oo(o))&&!this.protocolAllowlist.has(c))throw new Error("Redirect blocked: unsafe protocol");if(c==="http:"||c==="https:"){const u=new URL(o);u.pathname.startsWith("//")?o=u.href:zh(u,this.origin)||(o=jh(u),c=void 0)}return c&&(s.reloadDocument=!0),s.href=o,i.headers.set("Location",o),i},this.clearCache=i=>{const s=this._cache,o=this._preloads,c=i?.filter,u=[],d=[];for(const[p,y]of s)(!c||c(y))&&(d.push(p),u.push(y));const f=[];for(const[p,y]of o??[])(!c||y.some(c))&&(f.push(p),u.push(...y));for(const p of d)s.delete(p);for(const p of f)o.delete(p);for(const p of u){const y=p._flight;p._flight=void 0,y&&!--y[2]&&(this._flights?.get(p.id)===y&&this._flights.delete(p.id),f.push(y[1]))}for(const p of f)p.abort()},this.loadRouteChunk=Ei,this.preloadRoute=i=>Ex(this,i),this.matchRoute=(i,s)=>{const o={...i,to:i.to?Rb(i.from||"",i.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:i.params||{},leaveParams:!0},c=this.buildLocation(o),u=this.stores.status.get()==="pending";if(s?.pending&&!u)return!1;const d=s?.pending??!u?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),f=$A(c.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,d.pathname,this.processedTree);return!f||i.params&&!Nn(f.rawParams,i.params,!0)?!1:s?.includeSearch??!0?Nn(d.search,c.search,!0)?f.rawParams:!1:f.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=DA(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??tx,parseSearch:e.parseSearch??ex,protocolAllowlist:e.protocolAllowlist??RA}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;const t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=zo(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){const[i,s,o]=this.getMatchedRoutes(e.pathname);let c=i,u=!1;(o?o.path!=="/"&&s["**"]:Jn(e.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:u=!0);const d=u?gx(this.options.notFoundMode,c):void 0,f=new Array(c.length),p=this._committed,y=(b,w)=>{const S=p[w];return S?.routeId===b.id?S:b===this.options.notFoundRoute?p.find(k=>k.routeId===b.id):void 0};let g;for(let b=0;b<c.length;b++){const w=c[b],S=f[b-1];let k,T,E;{const te=S?.search??e.search,ye=S?._strictSearch??void 0;try{const se=Dc(w.options.validateSearch,{...te})??void 0;k={...te,...se},T={...ye,...se}}catch(se){let z=se;if(se instanceof Hc||(z=new Hc(se.message,{cause:se})),t?.throwOnError)throw z;k=te,T={},E=z}}let L="",C="";try{L=w.options.loaderDeps?.({search:k})??"",C=L&&JSON.stringify(L)||""}catch(te){if(t?.throwOnError)throw te;E??=te}const $=Lc(),Q=w._interpolation?Cb(w.fullPath,w._interpolation,s,this.pathParamsDecoder,$):w.fullPath,P=w.id+Q+C,j=y(w,b),U=this._cache.get(P)??(j?.id===P?j:void 0);g=U?._strictParams??Object.assign($,g);let ee;if(!U)try{Ub(w,g)}catch(te){if(es(te)||$m(te)?ee=te:ee=new hx(te.message,{cause:te}),t?.throwOnError)throw ee}const he=j?"stay":"enter";let G;if(U)G={...U,cause:he,search:Ys(j?j.search:U.search,k),_strictSearch:T,searchError:E};else{const te=Ib(w)?"pending":"success";G={id:P,ssr:w.options.ssr,index:b,routeId:w.id,params:j?.params??g,_strictParams:g,pathname:Q,updatedAt:Date.now(),search:j?Ys(j.search,k):k,_strictSearch:T,searchError:E,status:te,isFetching:!1,error:void 0,paramsError:ee,context:{},abortController:t?._controller??new AbortController,cause:he,loaderDeps:j?fr(j.loaderDeps,L):L,invalid:!1,preload:!1,staticData:w.options.staticData||{},fullPath:w.fullPath}}const Y=d===w.id;G._notFound&&!Y&&(G.error=void 0),G._notFound=Y,f[b]=G}for(let b=0;b<f.length;b++){const w=f[b];w.params=w.cause==="stay"?Ys(w.params,g):g,t?._controller&&(w.context={})}return f}matchRoutesLightweight(e){const t=pr(this.stores.ids.get()),i=t?this.stores.byRoute.get(t).get():void 0,s=i?.id,o=this.lightweightCache.get(e);if(o&&o[0]===s)return o[1];const[c,u]=this.getMatchedRoutes(e.pathname),d=pr(c),f={...e.search};for(const b of c)try{Object.assign(f,Dc(b.options.validateSearch,f))}catch{}const p=i&&i.routeId===d.id&&i.pathname===e.pathname;let y;if(p)y=i.params;else{const b=u;for(const w of c)try{Ub(w,b)}catch{}y=b}const g=[c,d.fullPath,f,y];return this.lightweightCache.set(e,[s,g]),g}};async function Pb(e,t,{replace:i,ignoreBlocker:s}){if(!kS(t,e.protocolAllowlist)){if(!s){const o=e.history._getBlockers();for(const c of o)if(c?.blockerFn&&await c.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:i?"REPLACE":"PUSH"}))return}e.history._ignoreNextBeforeUnload?.(t),i?window.location.replace(t):window.location.href=t}}
11var Hc=class extends Error{},hx=class extends Error{};function Dc(e,t){if(e==null)return{};if("~standard"in e){const i=e["~standard"].validate(t);if(i instanceof Promise)throw new Hc("Async validation not supported");if(i.issues)throw new Hc(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function Dh(e,t){if(e===void 0||e===!0)return t;const i=Object.create(null);return e===!1||e===null?i:typeof e=="function"?(Object.assign(i,t),Object.assign(i,e(i))):Object.assign(i,t,e)}function fx(e,t){return typeof e=="function"?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(i=>typeof i!="string"&&!qm.call(e,i[1]))}const Mh=Object.freeze({});function mx(e,t){const i=[];for(let s=0;s<e.length;s++){const o=e[s].options;if("search"in o)o.search?.middlewares&&i.push(...o.search.middlewares);else if(o.preSearchFilters||o.postSearchFilters){const u=({search:d,next:f})=>{const p=f(o.preSearchFilters?o.preSearchFilters.reduce((y,g)=>g(y),d):d);return o.postSearchFilters?o.postSearchFilters.reduce((y,g)=>g(y),p):p};i.push(u)}const c=o.validateSearch;if(t&&c){const u=({search:d,next:f,meta:p})=>{const y=f(d);try{const g=Dc(c,y);if(p&&g)for(const b in g)b in y||(p.defaulted||=new Map).set(b,g[b]);return{...y,...g}}catch{}return y};i.push(u)}}return i}function px(e,t,i){const s=(o,c,u)=>{if(o>=e.length){if(!i.search)return{};if(i.search===!0)return c;const f=wS(i.search,c);return u&&(u.explicit=f),f}const d=(f,p)=>{if(p){const y=u||{};return{search:s(o+1,f,y),meta:y}}return s(o+1,f,u)};return e[o]({search:c,next:d,meta:u})};return s(0,t)}function gx(e,t){if(e!=="root"){let i;for(let s=t.length-1;s>=0;s--){const o=t[s];if(o.options.notFoundComponent)return o.id;i||=o.children&&o.id}if(i)return i}return ha}function Ub(e,t){const i=e.options.params?.parse??e.options.parseParams;i&&Object.assign(t,i(t))}function um(e,t){return e.options[t]?.preload?.()}function yx(e,t){const i=um(e,"component");let s=um(e,"pendingComponent");return t&&(s?s=s.then(t):t()),i&&s?Promise.all([i,s]).then(()=>{}):i??s}function Ei(e,t,i){const s=()=>t===!1?void 0:t?um(e,t):yx(e,i),o=e._lazy;if(o)return o===!0?s():o.then(s);if(!e.lazyFn)return s();const c=e.lazyFn().then(u=>{{const{id:d,...f}=u.options;Object.assign(e.options,f),e._lazy=!0}},u=>{throw e._lazy=void 0,u});return e._lazy=c,c.then(s)}function Vm(e){const t=e.findIndex(i=>i.status!=="success"||i._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function IS(e){let t=e.length;for(let i=0;i<t;i++){const s=e[i];if(s._assetEnd!==void 0){t=Math.min(t,Math.max(i+1,s._assetEnd));continue}if(s.status!=="success"||s._notFound){t=i+1;break}}return t<e.length?e.slice(0,t):e}const Qn=0,Ti=1,nu=2,Ft=3,gr=[4];function jo(e){return typeof e[0]=="number"}function Ai(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((i,s)=>{const o=()=>s(t);t.addEventListener("abort",o,{once:!0}),Promise.resolve(e).then(i,s).then(()=>t.removeEventListener("abort",o))})}function In(e,t){return e.routesById[t.routeId]}function Do(e,t,i){return $m(e)?[Ft,e]:es(e)?(e.routeId||=i,[nu,e]):t?(typeof e?.then=="function"&&(e=new Error("A Promise was thrown",{cause:e})),[Ti,e]):[Qn,e]}function Km(e,t){let i=Do(t,!0,e.id);if(i[0]!==Ti)return i;try{e.options.onError?.(i[1])}catch(s){i=Do(s,!0,e.id)}return i}function To(e,t,i,s,o){return o[0].signal.aborted?gr:Wm(e,t,i,Km(i,s),o)}async function vx(e,t,i,s,o,c){const[u,d]=t,f=i[0].signal,p=!!i[3];for(let y=i[6]??0;y<s;y++){const g=d[y],b=In(e,g);g.abortController=i[0];const w=d[y-1]?.context??e.options.context??{},S={params:g.params,location:u,navigate:L=>e.navigate({...L,_fromLocation:u}),buildLocation:e.buildLocation,cause:p?"preload":g.cause,abortController:i[0],preload:p,matches:d,routeId:b.id};try{const L=g._ctx||=b.options.context?b.options.context({...S,deps:g.loaderDeps,context:w})||{}:void 0;g.context={...w,...L}}catch(L){return ki(e,g),[y,To(e,t,b,L,i)]}if(f.aborted)return[y,gr];const k=g.paramsError??g.searchError;if(k!==void 0)return ki(e,g),[y,To(e,t,b,k,i)];const T=b.options.beforeLoad;if(!T)continue;const E=g.status;
11y>=c&&(g.status="pending",i[7]?.());try{Mo(e,g,"beforeLoad",i[0]);const L=T({...S,search:g.search,context:g.context,...e.options.additionalContext}),C=await(typeof L?.then=="function"?Ai(L,f):L);if(f.aborted)return[y,gr];const $=Wm(e,t,b,Do(C,!1,b.id),i);if($[0]!==Qn)return ki(e,g),[y,$];g.context={...g.context,...C}}catch(L){return ki(e,g),[y,To(e,t,b,L,i)]}finally{g.status=E,Mo(e,g,!1,i[0])}}o()}function Gm(e,t,i){if(!(!i||--i[2])){if(e._flights?.get(t.id)===i){const s=e._tx;if(s&&!s[0].signal.aborted&&!s[3].includes(t)&&s[3].some(o=>o.id===t.id)&&s[3].some(o=>o.isFetching==="beforeLoad"))return;e._flights.delete(t.id)}return i[1]}}function ki(e,t){const i=t._flight;t._flight=void 0,Gm(e,t,i)?.abort()}function Pt(e,t,i,s){const o=[];for(const c of t)if(!i?.includes(c)){const u=c._flight;if(c._flight=void 0,s&&u?.[2]===1&&e._flights?.get(c.id)===u&&i?.some(d=>d.id===c.id))u[2]=0;else{const d=Gm(e,c,u);d&&o.push(d)}}for(const c of o)c.abort()}function Ym(e){for(const t of e){const i=t._flight;i&&i[2]++}}function Mo(e,t,i,s){if(t.isFetching=i,s&&e._tx?.[0]!==s)return;const o=e.stores.byRoute.get(t.routeId),c=o?.get();c?.id===t.id&&o.set({...c,isFetching:i})}function NS(e,t,i,s,o,c,u){const d=t[0];return{params:i.params,location:d,navigate:f=>e.navigate({...f,_fromLocation:d}),cause:u?"preload":i.cause,abortController:o,preload:u,deps:i.loaderDeps,parentMatchPromise:c,context:i.context,route:s,...e.options.additionalContext}}async function Bb(e,t,i,s,o,c,u){const d=u[0],f=d.signal;if(f.aborted)return gr;if(!o)return[Qn,void 0];let p=i._flight;Mo(e,i,"loader",d);try{if(!p){const y=new AbortController;p=[Promise.resolve().then(()=>o(NS(e,t,i,s,y,c,!!u[3]))).then(g=>Do(g,!1,s.id),g=>Do(g,!0,s.id)).then(g=>(g[0]!==Qn&&e._flights?.get(i.id)===p&&(e._flights.delete(i.id),p[2]||y.abort()),g[0]===Ti&&p[2]?Km(s,g[1]):g)),y,1],(e._flights??=new Map).set(i.id,p)}return i._flight=p,i.abortController=p[1],Wm(e,t,s,await Ai(p[0],f),u)}catch(y){if(y!==f||!f.aborted)throw y;return ki(e,i),gr}finally{Mo(e,i,!1,d)}}function $b(e,t,i){t[0]!==Ft&&(e.status="success",e.error=void 0,t[0]===Qn?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=i):e.invalid=!0)}function PS(e,t,i){const s=e._cache.get(t.id);if(s!==i||e._committed.some(c=>c.id===t.id&&c._flight===t._flight))return;const o={...t,_notFound:void 0,context:{}};o._flight&&o._flight[2]++,e._cache.set(t.id,o),s&&ki(e,s)}function qb(e,t){return t[0]===Ti||t[0]===nu?{...e,status:t[0]===Ti?"error":"notFound",error:t[1],_flight:void 0}:e}function bx(e,t,i,s,o,c,u){const d=t[1][i],f=In(e,d),p=!!c[3],y=e._cache.get(d.id);let g,b=!1,w;try{if(d.status==="success"&&(g=f.options.shouldReload,typeof g=="function"&&(g=g(NS(e,t,d,f,c[0],o,p))),c[0].signal.aborted&&(w=gr)),!w)if(d.status!=="success")b=!0;else{const Y=p||d.preload?f.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:f.options.staleTime??e.options.defaultStaleTime??0;b=!!(d.invalid||g||g===void 0&&Date.now()-d.updatedAt>=Y&&(c[5]||d.cause==="enter"||c[2].some(te=>te.routeId===d.routeId&&te.id!==d.id)))}}catch(Y){d.invalid=!0,ki(e,d),w=To(e,t,f,Y,c)}const S=f.options.loader,k=typeof S=="function",T=k?S:S?.handler,E=!p||f.options.preload!==!1;let L=E&&S?e._flights?.get(d.id):void 0;L===d._flight||w?L=void 0:L&&!b&&!p&&g===void 0?b=!0:b||(L=void 0);const C=!!(S&&b&&d.status==="success"&&!p&&!c[4]&&((k?void 0:S.staleReloadMode)??e.options.defaultStaleReloadMode)!=="blocking"),$=b&&E,Q=$&&!C&&(d.status!=="success"||!!S),P=i>=u?c[7]:void 0,j=f.lazyFn&&f._lazy!==!0?P:void 0;if($&&!S&&(d.invalid=!1,d.updatedAt=Date.now()),L&&L[2]++,Q){const Y=d._flight;d._flight=L,Gm(e,d,Y)?.abort(),i>=u&&(d.status="pending"),P?.()}$||(d.isFetching=!1);const U=!w&&Q?Bb(e,t,d,f,T,o,c).then(Y=>($b(d,Y,p),Y[0]===Qn&&(S&&!c[0].signal.aborted&&PS(e,d,y),i>=u&&(d.status="pending")),Y)):Promise.resolve(w??[Qn,d.loaderData]),ee=(async()=>{try{const te=Ei(f,void 0,j);te&&await Ai(te,c[0].signal)}catch(te){if(!t[1].some((ye,se)=>se<=i&&(ye.status==="error"||ye.status==="notFound"||ye._notFound)))return[i,To(e,t,f,te,c)]}const Y=await U;Q&&Y[0]===Qn&&d.status==="pending"&&!c[0].signal.aborted&&(d.status="success",P?.())})();if(s.push([i,U,ee]),!C)return U.then(Y=>qb(d,Y));const he={...d,status:"pending",preload:!1,_flight:L};d.invalid=!1,d.isFetching="loader";const G=Bb(e,t,he,f,T,o,c).then(Y=>(d.isFetching=!1,$b(he,Y,!1),Y));return(t[2]??=[]).push([i,G,ee,he]),G.then(Y=>qb(he,Y))}async function dm(e,t,i,s,o=0){const c=i?.[1][1];let u=c?.routeId?t.findIndex(d=>d.routeId===c.routeId):i?.[0]??t.length-1;u<0&&(u=0);for(let d=u;d>=0;d--){const f=In(e,t[d]);try{const p=Ei(f,!1);p&&await Ai(p,s)}catch(p){if(p===s&&s.aborted)throw p}if(f.options.notFoundComponent)return d}return c?.routeId?u:o}function Zr(e,t){t[2]&&(Pt(e,t[2].map(i=>i[3])),t[2]=void 0)}async function Hb(e,t,i,s){let o;try{await Promise.all(e.map(c=>c[1].then(async u=>{const d=c[0];if(!(s&&d>=await s)){if(u[0]>=Ft)throw[d,u];!o&&u[0]!==Qn&&(o=[d,u],await Promise.all((i??[]).map(f=>{if(!(f[0]<=d))return f[1].then(p=>{if(p[0]===Ft)throw[f[0],p]})})))}})))}catch(c){return c}return t??o}function Wm(e,t,i,s,o,c){for(;s[0]===Ft;){const u=s[1],d=u.options;try{if((d.href||u.headers.has("Location"))&&(e.resolveRedirect(u),d.reloadDocument)||(
11d.reloadDocument?o[3]:o[1]>=20))return s;const f=e.buildLocation({...d,_fromLocation:t[0],_includeValidateSearch:!0}),p=f.maskedLocation??f;if(p.external){const y=u.clone();return y.options={...d},y.headers.set("Location",p.publicHref),e.resolveRedirect(y),o[3]?[Ft,y]:[Ft,y,p]}return[Ft,u,f]}catch(f){s=c?[Ti,f]:Km(i,f),c=!0}}return s}async function US(e,t,i,s,o,c){const u=t[1];let d=await o,f=!1;const p=u.findIndex(w=>w._notFound),y=w=>w[1][0]===nu?dm(e,u,w,s.signal):w[0];let g=p<0?u.length:p;if((d?.[1][0]??0)>=Ft)g=0;else if(d){g=d[2]??=await y(d);for(const w of i){if(w[0]>=g)break;const S=await w[1];if(S[0]!==Qn&&S[0]<Ft&&!("loaderData"in u[w[0]])){d=[w[0],S],g=d[2]=await y(d);break}}}for(const w of i){if(w[0]>=g)break;const S=await w[2];if(S){d=S;break}}if((d?.[1][0]??0)>=Ft){const w=d[1];if(w[0]!==Ft||w[1].options.reloadDocument||w[2])return Zr(e,t),w;f=!0,d=[0,[Ti,new Error("Too many redirects")]]}const b=d?d[2]??await y(d):p;if(b>=0){const w=d?.[1],S=w?.[0],k=u[b],T=w?.[1],E=()=>{w&&(k._notFound=void 0,S===Ti?k.status="error":(T.routeId=k.routeId,k.routeId===e.routeTree.id?(k.status="success",k._notFound=!0):k.status="notFound"),k.error=T,k.isFetching=!1)};E(),w||c?.();const L=In(e,k);try{await Ai(w?Promise.resolve().then(()=>Ei(L,S===Ti?"errorComponent":"notFoundComponent")):Promise.all([Ei(L),Ei(L,"notFoundComponent")]),s.signal)}catch(C){if(C===s.signal&&s.signal.aborted)return Zr(e,t),gr}w?f&&(s.abort(),await Promise.all([...i.map(C=>C[1]),...i.map(C=>C[2]),...(t[2]??[]).map(C=>C[1])]),Zr(e,t),Pt(e,u),E()):k.status="success"}return t}async function Jm(e,t,i,s=0,o=t[1].length){const c=t[1];for(let u=s;u<o;u++){const d=c[u],f=In(e,d).options;if(f.head||f.scripts)try{const p={ssr:e.options.ssr,matches:c,match:d,params:d.params,loaderData:d.loaderData},[y,g]=await Ai(Promise.all([f.head?.(p),f.scripts?.(p)]),i);d.meta=y?.meta,d.links=y?.links,d.headScripts=y?.scripts,d.styles=y?.styles,d.scripts=g}catch(p){if(p===i&&i.aborted)break;console.error(p)}if(d.status!=="success"||d._notFound)break}return t}async function BS(e,t,i,s){const o=[t,i],c=s[0].signal;let u;try{const d=e.stores.matches.get();let f=i.findIndex(E=>E._notFound);if(e.options.notFoundMode!=="root"&&f>=0){const E=await dm(e,i,void 0,c,f);i[f]._notFound=void 0,i[E]._notFound=!0,f=E}let p=f<0?i.length:f+1,y=0;for(;y<p&&y!==f;){const E=i[y],L=s[2][y],C=d[y];if(L?.id!==E.id||L.status!=="success"||E.preload||C?.id!==E.id||C.status!=="success"||(y++,L._notFound||C._notFound))break}const g=[],b=s[6]??0;let w=b?Promise.resolve(i[b-1]):void 0;const S=()=>{for(let E=b;E<p&&!c.aborted;E++)w=bx(e,o,E,g,w,s,y)},k=await vx(e,o,s,p,S,y);if(k){if(s[4]=!0,p=k[0],k[1][0]===nu){const E=await dm(e,i,k,c);k[2]=E,p=Math.min(p,E+1)}else k[1][0]>=Ft&&(p=0);S()}if(!c.aborted&&!s[3]){const E=[];for(const[L,C]of e._flights??[])C[2]||(e._flights.delete(L),E.push(C[1]));for(const L of E)L.abort()}const T=US(e,o,g,s[0],Hb(g,k,o[2]),s[7]);o[2]?.length&&(o[3]=Hb(o[2],void 0,void 0,T.then(E=>jo(E)?0:Vm(i).length,()=>0))),u=await T}catch(d){if(Zr(e,o),d===c&&c.aborted)return gr;throw d}return jo(u)?u:Jm(e,u,c,s[6]===i.length?s[6]:0)}function hm(e,t){if(e._tx!==t)return;const i=t[3],s=e.stores.matches.get();let o=e._pending;for(let c=0;c<i.length;c++){const u=i[c],d=u.status==="success"&&!u._notFound,f=s[c]?.id===u.id&&s[c]?.status==="pending";if(d&&!f)continue;const p=In(e,u),y=d||u.invalid?0:p.options.pendingMs??e.options.defaultPendingMs,g=p.options.pendingComponent??e.options.defaultPendingComponent;if(!g||typeof y!="number"||y===1/0){o&&(o[0]=t,o[2]=0,o[4]=!0);return}const b=p.options.pendingMinMs??e.options.defaultPendingMinMs??0;let w=!1;if(o?.[1]===u.id?(w=o[0]!==t,o[0]=t):(clearTimeout(o?.[3]),e._pending=o=void 0),o||(e._pending=o=[t,u.id,f?Date.now()+b:t[4]+y,void 0,f||void 0,g]),o[4]&&!w&&o[5]===g)return;if(o[5]=g,!o[4]){clearTimeout(o[3]);const T=o[2]-Date.now();if(T>0){o[3]=setTimeout(()=>hm(e,t),T);return}o[2]=0}const S=i.map(T=>({...T,_flight:void 0}));S[c].status="pending";const k=o[4]=e.startTransition(()=>e.stores.setMatches(S),S).then(T=>(T&&e._pending===o&&o[4]===k&&!o[2]&&(o[2]=Date.now()+b),T));return}}function vo(e,t){const i=e._pending;(e._tx===t||!e._tx?.[3].some(s=>s.id===i?.[1]))&&(clearTimeout(i?.[3]),e._pending=void 0)}async function Fb(e,t){const i=e._pending;if(!i)return;clearTimeout(i[3]);const s=i[2]-Date.now();if(!i[4]||s<=0||!Vm(t[3]).some(c=>c.id===i[1]))return;let o;try{await Ai(new Promise(c=>{o=setTimeout(c,s)}),t[0].signal)}catch{}clearTimeout(o)}function $S(e,t){e._committed=t,e.stores.setMatches(t)}function wx(e,t,i,s){const o=e._committed,c=e._lifecycleEnd,u=e._cache;for(const y of i)y.preload=!1,s&&(y._assetEnd=void 0);const d=Vm(i).length,f=new Map;{const y=Date.now(),g=new Set;for(let b=0;b<i.length;b++){const w=i[b];(b<d||w.status==="success")&&g.add(w.id)}for(const b of[...o,...u.values()]){if(b.status!=="success"||g.has(b.id))continue;const w=In(e,b);!w.options.loader||y-b.updatedAt>=(b.preload?w.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:w.options.gcTime??e.options.defaultGcTime??3e5)||f.set(b.id,u.get(b.id)===b?b:{...b,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=f;const p=e._lifecycleEnd=MS(i);$S(e,i),Pt(e,[...u.values(),...o].filter(y=>y._flight&&f.get(y.id)!==y),i),ux(e,o,i,c,p,t)}async function mc(e,t){let i=e._tx;for(;i&&i!==t;)t=i,await i[5],i=e._tx}function qS(e,t,i){const s=i[1].options,o=i[2];if(!o)return e.navigate({...s,replace:!0,ignoreBlocker:!0});if(s.reloadDocument)return e.navigate({href:(o.maskedLocation??o).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});o._redirects=t[1]+1,e._pendingLocation=o;const c=e.commitLocation({...o,viewTransition:s.viewTransition,replace:!0,resetScroll:s.resetScroll,hashScrollIntoView:s.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===o&&(e._pendingLocation=void 0)}),c}async function Sx(e,t,i,s,o){const c=i.map(f=>({...f}));Ym(c);for(const f of s)ki(e,c[f[0]]),c[f[0]]=f[3];const u=[t[2],c];let d;try{d=await US(e,u,s,t[0],o)}catch(f){throw Pt(e,c),f}if(jo(d)){Pt(e,c),d[0]===Ft&&e._tx===t&&e._committed===i&&await qS(e,t,d);return}if(await Jm(e,d,t[0].signal),e._tx!==t||e._committed!==i){Pt(e,c);return}for(const f of c){const p=e._cache.get(f.id);p?._flight&&p._flight===f._flight&&(e._cache.delete(f.id),ki(e,p))}$S(e,c),Pt(e,i,c)}async function _x(e,t,i,s,o,c){const u=await BS(e,t[2],t[3],[t[0],t[1],e._committed,void 0,o,i,c,s]);if(jo(u)){const g=u[0]===Ft&&e._tx===t;if((!g||u[1].options.reloadDocument)&&vo(e,t),Pt(e,t[3]),t[3]=[],!g)return;if(e._tx!==t){vo(e,t);return}await qS(e,t,u);return}const d=u[1];if(e._tx===t&&await Fb(e,t),e._tx!==t){vo(e,t),Pt(e,d),Zr(e,u);return}
11const f=t[2],p=tu(f,e.stores.resolvedLocation.get()),y=u[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Fb(e,t),e._tx!==t){vo(e,t),Pt(e,d),Zr(e,u);return}const g=()=>{vo(e,t),wx(e,t,d,c),e._tx===t&&(e.emit({type:"onLoad",...p}),e._tx===t&&e.emit({type:"onBeforeRouteMount",...p}))},b=await e.startTransition(g,d);if(e._tx!==t){Zr(e,u);return}y?.length&&Sx(e,t,d,y,u[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(f),e.stores.status.set("idle"),e._tx===t&&e.emit({type:"onResolved",...p}),b&&e._tx===t&&e.emit({type:"onRendered",...p})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function kx(e,t){const i=e._tx,s=e.stores.resolvedLocation.get(),o=s??e.stores.location.get(),c=e.latestLocation,u=e._pendingLocation,d=u?.href===c.href?u._redirects??0:0,f=e._handoff,p=f?.[0](),y=new AbortController,g=e._preflight;if(e._preflight=y,p||f?.[1](),g?.abort(),!y.signal.aborted){const $=tu(c,s);e.emit({type:"onBeforeNavigate",...$}),y.signal.aborted||e.emit({type:"onBeforeLoad",...$})}if(y.signal.aborted){await mc(e,i);return}const b=o.href===c.href;let w=y;const S=e.matchRoutes(c,{_controller:y});Ym(S);const k=p?f[1](S):void 0;if(k?w=p:p?.abort(),y.signal.aborted){Pt(e,S),await mc(e,i);return}e._preflight=void 0;let T;const E=()=>_x(e,C,b,()=>hm(e,C),t?.sync,k),L=t?.sync?new Promise($=>T=$):Promise.resolve().then(E),C=[w,d,c,S,Date.now(),L.then(()=>mc(e,C))];if(e._tx=C,i){for(const $ of e.stores.matches.get()){if(e._tx!==C)break;$.isFetching&&Mo(e,$,!1)}i[0].abort(),Pt(e,i[3],C[3],!0)}if(e._tx!==C){Pt(e,C[3]),C[3]=[],T?.(),await mc(e,C);return}e.batch(()=>{e.stores.status.set("pending"),e.stores.location.set(c)}),(k||!e._committed.length&&S[0]?.status!=="success"&&!S.some($=>$._notFound))&&hm(e,C),T?.(E()),await C[5]}async function Ex(e,t){let i=e.buildLocation(t);for(let s=0;;s++){const o=e._committed,c=new AbortController;let u,d,f;try{try{u=e.matchRoutes(i,{_controller:c}),Ym(u),d=(e._preloads??=new Map).set(c,u),f=await BS(e,i,u,[c,s,o,!0])}finally{d&&(d=d.delete(c),Pt(e,u)),c.abort()}if(!jo(f))return f[1];if(!d||f.length<3)return;i=f[2]}catch(p){es(p)||console.error(p);return}}}async function Tx(e){const t=window.$_TSR,i=e.options.serializationAdapters;i?.length&&(t.t=new Map(i.map(G=>[G.key,G.fromSerializable])),t.buffer.forEach(G=>G())),t.initialized=!0;const s=t.router;e.ssr={manifest:s.manifest},e.options.ssr={nonce:document.querySelector('meta[property="csp-nonce"]')?.content};const o=s.matches,c=new AbortController,u=e._preflight;e._preflight=c,u?.abort();const d=()=>e._preflight===c;let f,p,y,g;try{if(await Ai(e.options.hydrate?.(s.dehydratedData),c.signal),!d())return;const G=e.history.location;y=G.href,g=G.state,e.updateLatestLocation(),f=e.latestLocation,e.stores.location.set(f),p=e.matchRoutes(f,{_controller:c})}catch(G){if(d()&&(e._preflight=void 0),c.abort(G),G!==c.signal)throw G}if(!d())return;const b=[];let w,S=0;const k=G=>{S=Math.min(S,G+1);const Y=b.splice(G);for(const te of Y)In(e,te).options.loader&&(te.status==="success"||!te.invalid&&"loaderData"in te)&&PS(e,{...te,status:"success",error:void 0,preload:!0},e._cache.get(te.id));Pt(e,Y)},T=o.length>p.length?p.findIndex(G=>G._notFound)+1:o.length;let E=!1;for(let G=0;G<T;G++){const Y=p[G],te=o[G];if(typeof te.i!="string"||EA(te.i)!==Y.id){w??=G;break}S=G+1;const ye=In(e,Y);if(("l"in te||te.s==="success"&&te.e===void 0&&ye.options.loader)&&(Y.loaderData=te.l),Y.status=te.s,Y.ssr=te.ssr,ye.options.ssr=Y.ssr,Y.updatedAt=te.u,Y.error=te.e,Y._notFound||=te.g,Y.status==="error"||Y.status==="notFound"||Y._notFound){E=!0,b.push(Y),(Y.ssr===!1||Y.ssr==="data-only")&&(w??=G);break}if(Y.status==="pending"){w??=G;break}b.push(Y),Y.ssr==="data-only"&&(w??=G)}!E&&b.length===T&&T<p.length&&(w=T);const L=b.map(async G=>{try{const Y=In(e,G);return await(G._notFound?Promise.all([Ei(Y),Ei(Y,"notFoundComponent")]):Ei(Y,G.status==="error"?"errorComponent":G.status==="notFound"?"notFoundComponent":void 0)),!0}catch{return!1}});let C=0;try{for(;C<L.length&&await Ai(L[C],c.signal);)C++}catch{return}if(!d())return;C<b.length&&k(C);const $=Math.max(w===b.length?b.length+1:b.length,C<L.length?C:S);for(let G=0;G<$;
11G++){const Y=p[G],te=In(e,Y),ye=p[G-1]?.context??e.options.context??{};let se;if(te.options.context){try{se=Y._ctx=te.options.context({deps:Y.loaderDeps,params:Y.params,context:ye,location:f,navigate:z=>e.navigate({...z,_fromLocation:f}),buildLocation:e.buildLocation,cause:Y.cause,abortController:c,preload:!1,matches:p,routeId:te.id})||{}}catch{if(!d())return;if(Y.status!=="error"&&Y.status!=="notFound"&&!Y._notFound){w=Math.min(w??G,G),k(G);break}}if(!d())return}Y.context={...ye,...se,...b[G]&&o[G].b}}if(await Jm(e,[f,p],c.signal,0,S),!d())return;const Q=w!==void 0||b.length<T,P=E&&b.length===T?p:b;let j=Q?p:P,U;if(Q&&w!==void 0){const G=j[w];U=G.ssr==="data-only"&&S>w+1?S:void 0,j=j.slice(),j[w]={...G,status:"pending",ssr:G.ssr==="data-only"?"data-only":!1,_assetEnd:U}}const ee=()=>{const G=e.history.location;return Q&&!e._tx&&G.href===y&&G.state===g&&e._committed===P&&P.length&&!c.signal.aborted?c:void 0},he=[ee,G=>{if(e._handoff!==he)return;e._handoff=void 0;const Y=P.length;if(!G||!ee()||P.some((se,z)=>se.id!==G[z]?.id)){c.abort();return}let te=U;if(te!==void 0){for(let se=Y;se<te;se++)if(p[se]?.id!==G[se]?.id){te=se>w+1?se:void 0;break}}const ye=P.map(se=>({...se}));te!==void 0&&(ye[w]._assetEnd=te),Pt(e,G.splice(0,Y,...ye));for(let se=Y;se<G.length;se++){const z=G[se],W=p[se];W?.id===z.id&&W._ctx&&(z._ctx=W._ctx),z.abortController=c}return Y}];e._committed=P,e._lifecycleEnd=MS(P),e._handoff=he,e._preflight=void 0,e.batch(()=>{e.stores.setMatches(j),e.stores.status.set("idle"),Q||e.stores.resolvedLocation.set(e.stores.location.get())})}const xi=Symbol.asyncIterator,HS=Symbol.hasInstance,fa=Symbol.isConcatSpreadable,Ri=Symbol.iterator,FS=Symbol.match,VS=Symbol.matchAll,KS=Symbol.replace,GS=Symbol.search,YS=Symbol.species,WS=Symbol.split,JS=Symbol.toPrimitive,ma=Symbol.toStringTag,QS=Symbol.unscopables,XS={[xi]:0,[HS]:1,[fa]:2,[Ri]:3,[FS]:4,[VS]:5,[KS]:6,[GS]:7,[YS]:8,[WS]:9,[JS]:10,[ma]:11,[QS]:12},Ax={0:xi,1:HS,2:fa,3:Ri,4:FS,5:VS,6:KS,7:GS,8:YS,9:WS,10:JS,11:ma,12:QS},xx={2:!0,3:!1,1:void 0,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:NaN},Rx={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},Cx={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Ie(e,t,i,s,o,c,u,d,f,p,y,g){return{t:e,i:t,s:i,c:s,m:o,p:c,e:u,a:d,f,b:p,o:y,l:g}}function vr(e){return Ie(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}const ZS=vr(2),e_=vr(3),Ox=vr(1),Lx=vr(0),zx=vr(4),jx=vr(5),Dx=vr(6),Mx=vr(7),Ix=64,Nx=/[\x00-\x07\x0b\x0e-\x1f<\u2028\u2029\ud800-\udfff]/;function Px(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case` 12`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return}}function ns(e){if(e.length>=Ix&&!Nx.test(e))return JSON.stringify(e).slice(1,-1);let t="",i=0,s;for(let o=0,c=e.length;o<c;o++)s=Px(e[o]),s&&(t+=e.slice(i,o)+s,i=o+1);return i===0?t=e:t+=e.slice(i),t}function Ux(e){switch(e){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return` 13`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return" ";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return e}}function br(e){return typeof e=="string"&&!e.includes("\\")?e:e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Ux)}const Bx={parsing:1,serialization:2,deserialization:3};function $x(e){return`Seroval Error (step: ${Bx[e]})`}const qx=(e,t)=>$x(e);var t_=class extends Error{constructor(e,t){super(qx(e)),this.cause=t}},Vb=class extends t_{constructor(e){super("parsing",e)}},Hx=class extends t_{constructor(e){super("deserialization",e)}};function Ci(e){return`Seroval Error (specific: ${e})`}var is=class extends Error{constructor(e){super(Ci(1)),this.value=e}},Qm=class extends Error{constructor(e){super(Ci(2))}},Fx=class extends Error{constructor(e){super(Ci(3))}},iu=class extends Error{constructor(e){super(Ci(4))}}
13,Vx=class extends Error{constructor(e){super(Ci(5)),this.value=e}},Kx=class extends Error{constructor(e){super(Ci(6))}},Gx=class extends Error{constructor(e){super(Ci(7))}},Et=class extends Error{constructor(e){super(Ci(8))}},n_=class extends Error{constructor(e){super(Ci(9))}};const pc="__SEROVAL_REFS__",i_=new Map,oa=new Map;function r_(e){return i_.has(e)}function Yx(e){return oa.has(e)}function Wx(e){if(r_(e))return i_.get(e);throw new Vx(e)}function Jx(e){if(Yx(e))return oa.get(e);throw new Kx(e)}typeof globalThis<"u"?Object.defineProperty(globalThis,pc,{value:oa,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,pc,{value:oa,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,pc,{value:oa,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,pc,{value:oa,configurable:!0,writable:!1,enumerable:!1});function Xm(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 Qx(e){const t=Rx[Xm(e)];return e.name!==t?{name:e.name}:e.constructor.name!==t?{name:e.constructor.name}:{}}function s_(e,t){let i=Qx(e);const s=Object.getOwnPropertyNames(e);for(let o=0,c=s.length,u;o<c;o++)u=s[o],u!=="name"&&u!=="message"&&(u==="stack"?t&4&&(i=i||{},i[u]=e[u]):(i=i||{},i[u]=e[u]));return i}function a_(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}function Xx(e){switch(e){case Number.POSITIVE_INFINITY:return jx;case Number.NEGATIVE_INFINITY:return Dx}return e!==e?Mx:Object.is(e,-0)?zx:Ie(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function o_(e){return Ie(1,void 0,ns(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Zx(e){return Ie(3,void 0,""+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function e1(e){return Ie(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function t1(e,t){const i=t.valueOf();return Ie(5,e,i!==i?"":t.toISOString(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function sr(e,t,i){return Ie(36,e,i.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function n1(e,t){return Ie(6,e,void 0,ns(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function i1(e,t){return Ie(17,e,XS[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function r1(e,t){return Ie(18,e,ns(Wx(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function s1(e,t,i){return Ie(25,e,i,ns(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function a1(e,t,i){return Ie(9,e,void 0,void 0,void 0,void 0,void 0,i,void 0,void 0,a_(t),void 0)}function o1(e,t){return Ie(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}const Zm=1e6;function l1(e,t,i){if(t.length>Zm)throw new is(t);return Ie(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,i,t.byteOffset,void 0,t.length)}function c1(e,t,i){if(t.length>Zm)throw new is(t);return Ie(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,i,t.byteOffset,void 0,t.length)}function u1(e,t,i){if(t.byteLength>Zm)throw new is(t);return Ie(20,e,void 0,void 0,void 0,void 0,void 0,void 0,i,t.byteOffset,void 0,t.byteLength)}function d1(e,t,i){return Ie(13,e,Xm(t),void 0,ns(t.message),i,void 0,void 0,void 0,void 0,void 0,void 0)}function h1(e,t,i){return Ie(14,e,Xm(t),void 0,ns(t.message),i,void 0,void 0,void 0,void 0,void 0,void 0)}function f1(e,t){return Ie(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function m1(e,t){return Ie(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function p1(e,t){return Ie(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function g1(e,t,i){return Ie(31,e,void 0,void 0,void 0,void 0,void 0,i,t,void 0,void 0,void 0)}function y1(e,t){return Ie(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function v1(e,t){return Ie(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function b1(e,t){return Ie(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function w1(e,t,i,s){return Ie(35,e,i,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,s)}var S1=class{constructor(e,t){this.value=e,this.replacement=t}};const ep=()=>{const e={p:0,s:0,f:0};return e.p=new Promise((t,i)=>{e.s=t,e.f=i}),e},_1=e=>t=>()=>{let i=0;const s={[e](){return s},next(){if(i>t.d)return{done:!0,value:void 0};const o=i++,c=t.v[o];if(o===t.t)throw c;return{done:o===t.d,value:c}}};return s},k1=(e,t)=>i=>()=>{let s=0,o=-1,c=!1;const u=[],d=[],f={finalize(y=0,g=d.length){for(;y<g;y++)d[y].s({done:!0,value:void 0})}};i.on({next(y){const g=d.shift();g&&g.s({done:!1,value:y}),u.push(y)},throw(y){const g=d.shift();g&&g.f(y),f.finalize(),o=u.length,c=!0,u.push(y)},return(y){const g=d.shift();g&&g.s({done:!0,value:y}),f.finalize(),o=u.length,u.push(y)}});const p={[e](){return p},next(){if(o===-1){const b=s++;if(b>=u.length){const w=t();return d.push(w),w.p}return{done:!1,value:u[b]}}if(s>o)return{done:!0,value:void 0};const y=s++,g=u[y];if(y!==o)return{done:!1,value:g};if(c)throw g;return{done:!0,value:g}}};return p},E1=e=>{const t=atob(e),i=t.length,s=new Uint8Array(i);for(let o=0;o<i;o++)s[o]=t.charCodeAt(o);return s.buffer};var l_=class{constructor(e,t,i){this.v=e,this.t=t,this.d=i}};function c_(e){return e instanceof l_}function u_(e,t,i){return new l_(e,t,i)}function T1(e){const t=[];let i=-1,s=-1;const o=e[Ri]();for(;;)try{const c=o.next();
13if(t.push(c.value),c.done){s=t.length-1;break}}catch(c){i=t.length,s=i,t.push(c);break}return u_(t,i,s)}const A1=_1(Ri);function x1(e){return A1(e)}const R1={},C1={},O1={0:{},1:{},2:{},3:{},4:{},5:{}};function d_(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function L1(e,t){d_(e,t),t.add(e)}function bo(e,t,i){d_(e,t),t.set(e,i)}function la(e,t,i){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}function Ke(e,t){return e.get(la(e,t))}function Js(e,t,i){return e.set(la(e,t),i),i}var ca=new WeakMap,bi=new WeakMap,wi=new WeakMap,Mc=new WeakMap,On=new WeakMap,wo=new WeakSet,h_=class{constructor(){L1(this,wo),bo(this,ca,[]),bo(this,bi,[]),bo(this,wi,!0),bo(this,Mc,!1),bo(this,On,0)}on(e){let t=Ke(wi,this),i=0;if(t){for(;i<Ke(On,this)&&Ke(bi,this)[i];i++);if(i===Ke(On,this)){var s;Js(On,this,(s=Ke(On,this),s++,s))}Ke(bi,this)[i]=e}return la(wo,this,z1).call(this,e),()=>{if(Ke(wi,this)&&t){for(t=!1,Ke(bi,this)[i]=void 0;Ke(On,this)>0&&!Ke(bi,this)[Ke(On,this)-1];){var o;Js(On,this,(o=Ke(On,this),o--,o))}Ke(bi,this).length=Ke(On,this)}}}next(e){Ke(wi,this)&&(Ke(ca,this).push(e),la(wo,this,Ih).call(this,e,"next"))}throw(e){Ke(wi,this)&&(Ke(ca,this).push(e),la(wo,this,Ih).call(this,e,"throw"),Js(wi,this,!1),Js(Mc,this,!1),Ke(bi,this).length=0)}return(e){Ke(wi,this)&&(Ke(ca,this).push(e),la(wo,this,Ih).call(this,e,"return"),Js(wi,this,!1),Js(Mc,this,!0),Ke(bi,this).length=0)}};function Ih(e,t){for(let s=0;s<Ke(On,this);s++){var i;(i=Ke(bi,this)[s])===null||i===void 0||i[t](e)}}function z1(e){for(let t=0,i=Ke(ca,this).length;t<i;t++){const s=Ke(ca,this)[t];!Ke(wi,this)&&t===i-1?e[Ke(Mc,this)?"return":"throw"](s):e.next(s)}}function tp(e){return e instanceof h_}function Go(){return new h_}function j1(e,t){const i=Go(),s=e[xi]();let o=!1,c=!1;async function u(){try{for(;!o;){const d=await s.next();if(d.done){c=!0,i.return(d.value);break}i.next(d.value)}}catch(d){c=!0,i.throw(d)}}return u().catch(()=>{}),i}const D1=k1(xi,ep);function M1(e){return D1(e)}async function I1(e){try{return[1,await e]}catch(t){return[0,t]}}function N1(e,t){var i;return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3,compactArrayBufferViews:(i=t.compactArrayBufferViews)!==null&&i!==void 0?i:!1}}function Ic(e,t){e.marked.add(t)}function P1(e,t){const i=e.refs.size;return e.refs.set(t,i),i}function ru(e,t){const i=e.refs.get(t);return i!=null?(Ic(e,i),{type:1,value:e1(i)}):{type:0,value:P1(e,t)}}function np(e,t){const i=ru(e,t);return i.type===1?i:r_(t)?{type:2,value:r1(i.value,t)}:i}function Jr(e,t){const i=np(e,t);if(i.type!==0)return i.value;if(t in XS)return i1(i.value,t);throw new is(t)}function su(e,t){const i=ru(e,O1[t]);return i.type===1?i.value:Ie(26,i.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function U1(e){const t=ru(e,R1);return t.type===1?t.value:Ie(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,Jr(e,Ri),void 0,void 0,void 0)}function B1(e){const t=ru(e,C1);return t.type===1?t.value:Ie(29,t.value,void 0,void 0,void 0,void 0,void 0,[su(e,1),Jr(e,xi)],void 0,void 0,void 0,void 0)}function $1(e,t,i,s){return Ie(i?11:10,e,void 0,void 0,void 0,s,void 0,void 0,void 0,void 0,a_(t),void 0)}function q1(e,t,i,s){return Ie(8,t,void 0,void 0,void 0,void 0,{k:i,v:s},void 0,su(e,0),void 0,void 0,void 0)}function ip(e,t){if(!e.compactArrayBufferViews)return t;const i=new Uint8Array(t.buffer,t.byteOffset,t.byteLength).slice().buffer,s=t.constructor;return new s(i)}function H1(e){if(typeof Buffer<"u")return Buffer.from(e).toString("base64");const t=new Uint8Array(e);if(typeof t.toBase64=="function")return t.toBase64();let i="";for(let s=0,o=t.length;s<o;s++)i+=String.fromCharCode(t[s]);return btoa(i)}function F1(e,t,i){return Ie(19,t,H1(i),void 0,void 0,void 0,void 0,void 0,su(e,5),void 0,void 0,void 0)}function V1(e,t){return{base:N1(e,t),child:void 0}}var K1=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return yt(this._p,this.depth,e)}};async function G1(e,t,i){const s=[];for(let o=0,c=i.length;o<c;o++)o in i?s[o]=await yt(e,t,i[o]):s[o]=0;return s}async function Y1(e,t,i,s){return a1(i,s,await G1(e,t,s))}async function rp(e,t,i){const s=Object.entries(i),o=[],c=[];for(let u=0,d=s.length;u<d;u++)o.push(ns(s[u][0])),c.push(await yt(e,t,s[u][1]));return Ri in i&&(o.push(Jr(e.base,Ri)),c.push(m1(U1(e.base),await yt(e,t,T1(i))))),xi in i&&(o.push(Jr(e.base,xi)),c.push(p1(B1(e.base),await yt(e,t,j1(i))))),ma in i&&(o.push(Jr(e.base,ma)),c.push(o_(i[ma]))),fa in i&&(o.push(Jr(e.base,fa)),c.push(i[fa]?ZS:e_)),{k:o,v:c}}async function Nh(e,t,i,s,o){return $1(i,s,o,await rp(e,t,s))}async function W1(e,t,i,s){return o1(i,await yt(e,t,s.valueOf()))}async function J1(e,t,i,s){return s=ip(e.base,s),l1(i,s,await yt(e,t,s.buffer))}async function Q1(e,t,i,s){return s=ip(e.base,s),c1(i,s,await yt(e,t,s.buffer))}async function X1(e,t,i,s){return s=ip(e.base,s),u1(i,s,await yt(e,t,s.buffer))}async function Kb(e,t,i,s){const o=s_(s,e.base.features);return d1(i,s,o?await rp(e,t,o):void 0)}async function Z1(e,t,i,s){const o=s_(s,e.base.features);return h1(i,s,o?await rp(e,t,o):void 0)}async function eR(e,t,i,s){const o=[],c=[];for(const[u,d]of s.entries())o.push(await yt(e,t,u)),c.push(await yt(e,t,d));return q1(e.base,i,o,c)}async function tR(e,t,i,s){const o=[];for(const c of s.keys())o.push(await yt(e,t,c));return f1(i,o)}async function f_(e,t,i,s){const o=e.base.plugins;if(o)for(let c=0,u=o.length;c<u;c++){const d=o[c];if(d.parse.async&&d.test(s))return s1(i,d.tag,await d.parse.async(s,new K1(e,t),{id:i}))}}async function nR(e,t,i,s){const[o,c]=await I1(s);return Ie(12,i,o,void 0,void 0,void 0,void 0,void 0,await yt(e,t,c),void 0,void 0,void 0)}function iR(e,t,i,s,o){const c=[],u=i.on({next:d=>{Ic(this.base,t),yt(this,e,d).then(f=>{c.push(y1(t,f))},f=>{o(f),u()})},throw:d=>{Ic(this.base,t),yt(this,e,d).then(f=>{c.push(v1(t,f)),s(c),u()},f=>{o(f),u()})},return:d=>{Ic(this.base,t),yt(this,e,d).then(f=>{c.push(b1(t,f)),s(c),u()},f=>{o(f),u()})}})}async function rR(e,t,i,s){return g1(i,su(e.base,4),await new Promise(iR.bind(e,t,i,s)))}async function sR(e,t,i,s){const o=[];for(let c=0,u=s.v.length;c<u;c++)o[c]=await yt(e,t,s.v[c]);return w1(i,o,s.t,s.d)}async function aR(e,t,i,s){if(Array.isArray(s))return Y1(e,t,i,s);if(tp(s))return rR(e,t,i,s);if(c_(s))return sR(e,t,i,s);let o=s.constructor;if(o!==void 0&&typeof o!="function"){const d=Object.getPrototypeOf(s);o=d===null?void 0:d.constructor}if(o===S1)return yt(e,t,s.replacement);const c=await f_(e,t,i,s);if(c)return c;switch(o){case Object:return Nh(e,t,i,s,!1);case void 0:return Nh(e,t,i,s,!0);case Date:return t1(i,s);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Kb(e,t,i,s);case Number:case Boolean:case String:case BigInt:return W1(e,t,i,s);case ArrayBuffer:return F1(e.base,i,s);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return J1(e,t,i,s);case DataView:return X1(e,t,i,s);case Map:return eR(e,t,i,s);case Set:return tR(e,t,i,s)}if(o===Promise||s instanceof Promise)return nR(e,t,i,s);const u=e.base.features;if(u&32&&o===RegExp)return n1(i,s);if(u&16)switch(o){case BigInt64Array:case BigUint64Array:return Q1(e,t,i,s)}if(u&1&&typeof AggregateError<"u"&&(o===AggregateError||s instanceof AggregateError))return Z1(e,t,i,s);if(u&64&&typeof Temporal<"u")switch(o){case Temporal.Instant:return sr(i,0,s);case Temporal.Duration:return sr(i,1,s);case Temporal.PlainDate:return sr(i,2,s);case Temporal.PlainDateTime:return sr(i,3,s);case Temporal.PlainMonthDay:return sr(i,4,s);case Temporal.PlainTime:return sr(i,5,s);case Temporal.PlainYearMonth:return sr(i,6,s);case Temporal.ZonedDateTime:return sr(i,7,s)}if(s instanceof Error)return Kb(e,t,i,s);if(Ri in s||xi in s)return Nh(e,t,i,s,!!o);throw new is(s)}async function oR(e,t,i){const s=np(e.base,i);if(s.type!==0)return s.value;const o=await f_(e,t,s.value,i);if(o)return o;throw new is(i)}async function yt(e,t,i){if(t>=e.base.depthLimit)throw new n_(e.base.depthLimit);switch(typeof i){case"boolean":return i?ZS:e_;case"undefined":return Ox;case"string":return o_(i);case"number":return Xx(i);case"bigint":return Zx(i);case"object":if(i){const s=np(e.base,i);return s.type===0?await aR(e,t+1,s.value,i):s.value}return Lx;case"symbol":return Jr(e.base,i);case"function":return oR(e,t,i);default:throw new is(i)}}async function lR(e,t){try{return await yt(e,0,t)}catch(i){throw i instanceof Vb?i:new Vb(i)}}function m_(e,t){for(let i=0,s=t.length;i<s;i++){const o=t[i];
13e.has(o)||(e.add(o),o.extends&&m_(e,o.extends))}}function p_(e){if(e){const t=new Set;return m_(t,e),[...t]}}function cR(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 Gx(e)}}function uR(e){switch(e){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function dR(e){switch(e){case xi:case fa:case ma:case Ri:return!0;default:return!1}}const hR=1e6,fR=512,mR=1e4,pR=2e4;function g_(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}const gR=1e3;function yR(e,t){var i,s;const o=(i=t.maxBase64Length)!==null&&i!==void 0?i:hR;if(!Number.isSafeInteger(o)||o<0)throw new RangeError("maxBase64Length must be a non-negative safe integer");const c=t.refs||new Map;return"types"in c||Object.assign(c,{types:new Map}),{mode:e,plugins:t.plugins,refs:c,features:(s=t.features)!==null&&s!==void 0?s:127^(t.disabledFeatures||0),depthLimit:t.depthLimit||gR,maxBase64Length:o}}function vR(e){return{mode:2,base:yR(2,e),child:void 0}}var bR=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Je(this._p,this.depth,e)}};function y_(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Et({t:4,i:t});if(e.refs.has(t))throw new Error("Conflicted ref id: "+t)}function v_(e){return!!e&&(typeof e=="object"||typeof e=="function")&&"then"in e&&typeof e.then=="function"}function wR(e,t,i){return y_(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,i),i}function SR(e,t,i){return y_(e.base,t),e.base.refs.set(t,i),i}function ft(e,t,i){return e.mode===1?wR(e,t,i):SR(e,t,i)}function fm(e,t,i){if(Object.hasOwn(t,i))return t[i];throw new Et(e)}function _R(e,t){return ft(e,t.i,Jx(br(t.s)))}function yr(e,t){if(!Array.isArray(t))throw new Et(e)}function kR(e,t,i){const s=i.a;yr(i,s);const o=s.length,c=ft(e,i.i,new Array(o));for(let u=0,d;u<o;u++)d=s[u],d&&(c[u]=Je(e,t,d));return g_(c,i.o),c}function Gb(e,t,i){uR(t)?e[t]=i:Object.defineProperty(e,t,{value:i,configurable:!0,enumerable:!0,writable:!0})}function ER(e,t,i,s,o){if(typeof s=="string")Gb(i,br(s),Je(e,t,o));else{const c=Je(e,t,s);switch(typeof c){case"string":Gb(i,c,Je(e,t,o));break;case"symbol":dR(c)&&(i[c]=Je(e,t,o));break;default:throw new Et(s)}}}function b_(e,t,i){e.base.refs.types.set(t,i)}function au(e,t,i,s){if(e.base.refs.types.get(i)!==s)throw new Et(t)}function w_(e,t,i,s){const o=i.k;if(yr(i,o),yr(i,i.v),o.length>0)for(let c=0,u=i.v,d=o.length;c<d;c++)ER(e,t,s,o[c],u[c]);return s}function TR(e,t,i){const s=ft(e,i.i,i.t===10?{}:Object.create(null));return w_(e,t,i.p,s),g_(s,i.o),s}function AR(e,t){return ft(e,t.i,new Date(t.s))}function xR(e,t){if(!(e.base.features&64))throw new Qm(t);let i;switch(t.c){case 0:i=Temporal.Instant.from(t.s);break;case 1:i=Temporal.Duration.from(t.s);break;case 2:i=Temporal.PlainDate.from(t.s);break;case 3:i=Temporal.PlainDateTime.from(t.s);break;case 4:i=Temporal.PlainMonthDay.from(t.s);break;case 5:i=Temporal.PlainTime.from(t.s);break;case 6:i=Temporal.PlainYearMonth.from(t.s);break;case 7:i=Temporal.ZonedDateTime.from(t.s);break;default:throw new Et(t)}return ft(e,t.i,i)}function RR(e,t){if(e.base.features&32){const i=br(t.c);if(i.length>pR)throw new Et(t);return ft(e,t.i,new RegExp(i,t.m))}throw new Qm(t)}function CR(e,t,i){const s=ft(e,i.i,new Set);yr(i,i.a);for(let o=0,c=i.a,u=c.length;o<u;o++)s.add(Je(e,t,c[o]));return s}function OR(e,t,i){const s=ft(e,i.i,new Map);yr(i,i.e.k),yr(i,i.e.v);for(let o=0,c=i.e.k,u=i.e.v,d=c.length;o<d;o++)s.set(Je(e,t,c[o]),Je(e,t,u[o]));return s}function LR(e,t){if(typeof t.s!="string")throw new Et(t);if(t.s.length>e.base.maxBase64Length)throw new RangeError("ArrayBuffer exceeds maxBase64Length ("+e.base.maxBase64Length+")");const i=br(t.s);let s;if(i.length<fR||typeof Buffer>"u")s=E1(i);else{const o=atob(i);s=new ArrayBuffer(o.length),Buffer.from(s).write(o,"latin1")}return ft(e,t.i,s)}function zR(e,t,i){var s;const o=cR(i.c),c=Je(e,t,i.f);if(!(c instanceof ArrayBuffer))throw new Et(i);const u=(s=i.b)!==null&&s!==void 0?s:0;if(u<0||u>c.byteLength)throw new Et(i);return ft(e,i.i,new o(c,u,i.l))}function jR(e,t,i){var s;const o=Je(e,t,i.f);if(!(o instanceof ArrayBuffer))throw new Et(i);const c=(s=i.b)!==null&&s!==void 0?s:0;if(c<0||c>o.byteLength)throw new Et(i);return ft(e,i.i,new DataView(o,c,i.l))}function S_(e,t,i,s){if(i.p){const o=w_(e,t,i.p,{});Object.defineProperties(s,Object.getOwnPropertyDescriptors(o))}return s}function DR(e,t,i){return S_(e,t,i,ft(e,i.i,new AggregateError([],br(i.m))))}function MR(e,t,i){const s=fm(i,Cx,i.s);return S_(e,t,i,ft(e,i.i,new s(br(i.m))))}function IR(e,t,i){const s=ep(),o=ft(e,i.i,s.p),c=Je(e,t,i.f);if(v_(c))throw new Et(i.f);return i.s?s.s(c):s.f(c),o}
13function NR(e,t,i){return ft(e,i.i,Object(Je(e,t,i.f)))}function PR(e,t,i){const s=e.base.plugins;if(s){const o=br(i.c);for(let c=0,u=s.length;c<u;c++){const d=s[c];if(d.tag===o)return ft(e,i.i,d.deserialize(i.s,new bR(e,t),{id:i.i}))}}throw new Fx(i.c)}function UR(e,t){const i=ft(e,t.i,ft(e,t.s,ep()).p);return b_(e,t.s,22),i}function BR(e,t,i){const s=e.base.refs.get(i.i);if(s){au(e,i,i.i,22);const o=Je(e,t,i.a[1]);if(v_(o))throw new Et(i.a[1]);i.t===23?s.s(o):s.f(o);return}throw new iu("Promise")}function $R(e,t,i){Je(e,t,i.a[0]);const s=Je(e,t,i.a[1]);if(!c_(s))throw new Et(i.a[1]);return x1(s)}function qR(e,t,i){Je(e,t,i.a[0]);const s=Je(e,t,i.a[1]);if(!tp(s))throw new Et(i.a[1]);return M1(s)}function HR(e,t,i){const s=ft(e,i.i,Go());b_(e,i.i,31);const o=i.a;yr(i,o);const c=o.length;if(c)for(let u=0;u<c;u++)Je(e,t,o[u]);return s}function FR(e,t,i){const s=e.base.refs.get(i.i);if(s){au(e,i,i.i,31),s.next(Je(e,t,i.f));return}throw new iu("Stream")}function VR(e,t,i){const s=e.base.refs.get(i.i);if(s){au(e,i,i.i,31),s.throw(Je(e,t,i.f));return}throw new iu("Stream")}function KR(e,t,i){const s=e.base.refs.get(i.i);if(s){au(e,i,i.i,31),s.return(Je(e,t,i.f));return}throw new iu("Stream")}function GR(e,t,i){Je(e,t,i.f)}function YR(e,t,i){Je(e,t,i.a[1])}function Yb(e,t){return Number.isInteger(e)&&e>=-1&&e<t}function WR(e,t,i){yr(i,i.a);const s=i.a.length;if(!(Yb(i.s,s)&&Yb(i.l,s)))throw new Et(i);const o=ft(e,i.i,u_([],i.s,i.l));for(let c=0;c<s;c++)o.v[c]=Je(e,t,i.a[c]);return o}function Je(e,t,i){if(t>e.base.depthLimit)throw new n_(e.base.depthLimit);switch(t+=1,i.t){case 2:return fm(i,xx,i.s);case 0:return Number(i.s);case 1:return br(String(i.s));case 3:if(String(i.s).length>mR)throw new Et(i);return BigInt(i.s);case 4:return e.base.refs.get(i.i);case 18:return _R(e,i);case 9:return kR(e,t,i);case 10:case 11:return TR(e,t,i);case 5:return AR(e,i);case 6:return RR(e,i);case 7:return CR(e,t,i);case 8:return OR(e,t,i);case 19:return LR(e,i);case 16:case 15:return zR(e,t,i);case 20:return jR(e,t,i);case 14:return DR(e,t,i);case 13:return MR(e,t,i);case 12:return IR(e,t,i);case 17:return fm(i,Ax,i.s);case 21:return NR(e,t,i);case 25:return PR(e,t,i);case 22:return UR(e,i);case 23:case 24:return BR(e,t,i);case 28:return $R(e,t,i);case 30:return qR(e,t,i);case 31:return HR(e,t,i);case 32:return FR(e,t,i);case 33:return VR(e,t,i);case 34:return KR(e,t,i);case 27:return GR(e,t,i);case 29:return YR(e,t,i);case 35:return WR(e,t,i);case 36:return xR(e,i);default:throw new Qm(i)}}function JR(e,t){try{return Je(e,0,t)}catch(i){throw new Hx(i)}}function QR(e,t){const i=p_(t.plugins);return JR(vR({maxBase64Length:t.maxBase64Length,plugins:i,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function XR(e,t={}){const i=p_(t.plugins),s=V1(1,{compactArrayBufferViews:t.compactArrayBufferViews,plugins:i,disabledFeatures:t.disabledFeatures});return{t:await lR(s,e),f:s.base.features,m:Array.from(s.base.marked)}}function ZR(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,i){return{v:i.parse(e.toSerializable(t))}},async async(t,i){return{v:await i.parse(e.toSerializable(t))}},stream(t,i){return{v:i.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,i){return e.fromSerializable(i.deserialize(t.v))}}}function __(e){if(Array.isArray(e))return e.flatMap(y=>__(y));if(typeof e!="string")return[];const t=[];let i=0,s,o,c,u,d;const f=()=>{for(;i<e.length&&/\s/.test(e.charAt(i));)i+=1;return i<e.length},p=()=>(o=e.charAt(i),o!=="="&&o!==";"&&o!==",");for(;i<e.length;){for(s=i,d=!1;f();)if(o=e.charAt(i),o===","){for(c=i,i+=1,f(),u=i;i<e.length&&p();)i+=1;i<e.length&&e.charAt(i)==="="?(d=!0,i=u,t.push(e.slice(s,c)),s=i):i=c+1}else i+=1;(!d||i>=e.length)&&t.push(e.slice(s))}return t}function eC(e){return e instanceof Headers?e:Array.isArray(e)?new Headers(e):typeof e=="object"?new Headers(e):null}function tC(...e){return e.reduce((t,i)=>{const s=eC(i);if(!s)return t;for(const[o,c]of s.entries())o==="set-cookie"?__(c).forEach(u=>t.append("set-cookie",u)):t.set(o,c);return t},new Headers)}const nC={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 iC=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};function k_(e){const t=[];for(let i=0;i<e.length;i+=32768)t.push(String.fromCharCode.apply(null,e.subarray(i,i+32768)));return btoa(t.join(""))}function E_(e){const t=atob(e),i=new Uint8Array(t.length);for(let s=0;s<t.length;s++)i[s]=t.charCodeAt(s);return i}const rC=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});function sC(e){try{return"t"+rC.decode(e)}catch{return"b"+k_(e)}}const aC=new TextEncoder;function oC(e){const t=e.slice(1);return e[0]==="t"?aC.encode(t):E_(t)}function lC(e,t,i){i?.throwIfAborted();const s=Go(),o=e.getReader();let c=!0;const u=()=>{c=!1,i?.removeEventListener("abort",f),o.releaseLock()},d=p=>c?(o.cancel(p).catch(()=>{}),u(),!0):!1,f=()=>{d(i.reason)&&s.throw(i.reason)};return i?.addEventListener("abort",f),(async()=>{try{for(;c;){const{done:p,value:y}=await o.read();if(!c)return;if(p){u(),s.return(void 0);return}s.next(t(y))}}catch(p){d(p)&&s.throw(p)}})(),[s,d]}function cC(e,t){let i,s=!1;return new ReadableStream({start(o){const c=e.on({next(u){if(!s)try{o.enqueue(t(u))}catch(d){s=!0;const f=i;i=void 0,f?.(),o.error(d)}},throw(u){s||(s=!0,i=void 0,o.error(u))},return(){s||(s=!0,i=void 0,o.close())}});s?c():i=c},cancel(){const o=i;i=void 0,o?.()}})}function T_(e){return{tag:"tss/RawStream",test:t=>t instanceof iC,parse:{async:async(t,i)=>{const s=await i.parse(t.hint==="text"),[o]=lC(t.stream,t.hint==="text"?sC:k_,e);return{text:s,stream:await i.parse(o)}}},serialize:void 0,deserialize:void 0}}const uC=T_(),dC={tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(e,t){return cC(t.deserialize(e.stream),t.deserialize(e.text)?oC:E_)}},lr={},A_=e=>new ReadableStream({start(t){e.on({next(i){try{t.enqueue(i)}catch{}},throw(i){t.error(i)},return(){try{t.close()}catch{}}})}}),hC={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===lr},parse:{sync(){return lr},async async(){return await Promise.resolve(lr)},stream(){return lr}},serialize(){return A_.toString()},deserialize(){return lr}};async function fC(e,t){try{for(;;){const i=await t.read();if(i.done){e.return(i.value),t.releaseLock();break}e.next(i.value)}}catch(i){t.releaseLock(),e.throw(i)}}function mC(e){e.cancel().catch(()=>{}),e.releaseLock()}function Wb(e){const t=Go(),i=e.getReader(),s=mC.bind(null,i);return fC(t,i).catch(s),[t,s]}const pC={tag:"seroval/plugins/web/ReadableStream",extends:[hC],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(lr),stream:t.parse(Go())}},async async(e,t){return{factory:await t.parse(lr),stream:await t.parse(Wb(e)[0])}},stream(e,t){const[i,s]=Wb(e);return t.addCleanup(s),{factory:t.parse(lr),stream:t.parse(i)}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){const i=t.deserialize(e.stream);if(!i||typeof i!="object"||!tp(i))throw new Error("Expected a stream source.");return A_(i)}};function x_(e){return[nC,e?T_(e):uC,pC]}const gC=x_();[...gC];function yC(e){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(t,i){return e(i.deserialize(t.streamId))}}}function vC(e){return[...Bm()?.serializationAdapters?.map(ZR)??[],...e]}function R_(e){return vC(x_(e))}var Jb=new TextDecoder,Fn=new Uint8Array,bC=new ByteLengthQueuingStrategy({highWaterMark:0});function wC(e){const t=e.getReader(),i=new Map;let s=0,o,c;const u=()=>{o?.(),o=void 0},d=(g,b)=>{const w=g[1];g[1]=!1,w&&(b===1?w.close():w.error(b[0]))},f=new ReadableStream({start(g){c=g},pull:u,cancel(g){const b=[g===void 0?new Error("Framed response cancelled"):g];
13s=b,u(),t.cancel(g).catch(()=>{});for(const w of i.values())d(w,b)}});function p(g){const b=i.get(g);if(b)return b;if(i.size>=1024)throw new Error("Too many raw streams");let w;const S=[new ReadableStream({start(k){w=k},cancel(){S[1]!==!1&&(S[1]=null)}},bC),w];return i.set(g,S),s!==0&&d(S,s),S}function y(g){if(g===0||g>>>0!==g)throw new RangeError("Invalid raw stream ID");return p(g)[0]}return(async()=>{let g=Fn,b=0;async function w(){for(;b===g.byteLength;){g=Fn,b=0;const k=await t.read();if(s!==0||k.done)return!1;g=k.value}return!0}async function S(k,T){if(k===0)return Fn;if(!await w()){if(T)return;throw new Error("Incomplete frame")}if(g.byteLength-b>=k){const C=g.subarray(b,b+k);return b+=k,b===g.byteLength&&(g=Fn,b=0),C}const E=new Uint8Array(k);let L=0;for(;L<k;){if(!await w())throw new Error("Incomplete frame");const C=Math.min(k-L,g.byteLength-b);E.set(g.subarray(b,b+C),L),b+=C,L+=C}return b===g.byteLength&&(g=Fn,b=0),E}try{for(;s===0;){let k=await S(9,!0);if(s!==0)return;if(!k){for(const Q of i.values())if(Q[1])throw new Error("Incomplete raw stream");s=1,c.close();return}const T=k[0],E=(k[1]<<24|k[2]<<16|k[3]<<8|k[4])>>>0,L=(k[5]<<24|k[6]<<16|k[7]<<8|k[8])>>>0;if(k=Fn,T>3||T===0!=(E===0)||L>16777216||T===2&&L!==0)throw new Error("Invalid frame");const C=T===0?void 0:p(E);if(C?.[1]===!1)throw new Error("Raw stream already ended");let $=await S(L);if(s!==0)return;if(!C){const Q=Jb.decode($);for($=Fn,c.enqueue(Q);s===0&&c.desiredSize<=0;)await new Promise(P=>{o=P});continue}if(T===1){const Q=C[1];if(Q){if(-Q.desiredSize>134217728){Q.error(new Error(`Raw stream ${E} has too many unread bytes`)),C[1]=null,$=Fn;continue}const P=$.byteLength*4<$.buffer.byteLength?$.slice():$;$=Fn,Q.enqueue(P)}}else d(C,T===2?1:[new Error(Jb.decode($))])}}catch(k){if(s===0){const T=[k];s=T,t.cancel(k).catch(()=>{}),c.error(k);for(const E of i.values())d(E,T)}}finally{g=Fn,t.releaseLock()}})(),[f,y]}const Yn=Symbol.for("TSR_DEFERRED_PROMISE");function SC(e,t){const i=e;return i[Yn]||(i[Yn]={status:"pending"},i.then(s=>{i[Yn].status="success",i[Yn].data=s}).catch(s=>{i[Yn].status="error",i[Yn].error={data:cx(s),__isServerError:!0}})),i}const _C="Error preloading route! âï¸";function C_(e,t){if(e)return typeof e=="string"?e:e[t]}function kC(e){return e?.scriptFormat??"module"}function EC(e,t,i){const s=TC(t),o=C_(i,"script")??s.crossOrigin;return{...kC(e)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:s.href,...o?{crossOrigin:o}:{}}}function TC(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function gc(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const i=new Set;for(const s of t){const o=JSON.stringify(s);i.has(o)||(i.add(o),e.push(s))}}function AC(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function xC(e,t,i,s){const o=IS(e),c=[],u=[];for(const d of o)for(const f of Array.isArray(d.scripts)?d.scripts:[]){if(!f)continue;const{children:p,...y}=f;c.push({tag:"script",attrs:{...y,...s,nonce:i},children:p})}if(t)for(const d of o)for(const f of t.routes[d.routeId]?.scripts??[])u.push({tag:"script",attrs:{...f.attrs,nonce:i},children:f.children});return[c,u]}function RC([e,t],i){return[...e,...t]}var O_=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t,this._branch=void 0;const i=this.options,s=!i?.path&&!i?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=ha:this.parentRoute||Lo();let o=s?ha:i?.path;o&&o!=="/"&&(o=ES(o));const c=i?.id||o,u=s?ha:da((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(c??""));o==="__root__"&&(o="/");const d=u==="__root__"?"/":o===void 0?this.parentRoute.fullPath:da(this.parentRoute.fullPath+"/"+o);this._path=o,this._id=u,this._fullPath=d,this._to=Jn(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=>mt({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.")}},CC=class extends O_{constructor(e){super(e)}};var Io;function mm(e,t,i){try{return QR(e,t)}catch(s){throw z_(i),s}}async function L_(e){e.length>0&&(await Promise.allSettled(e),e.length=0)}function z_(e){for(const t of e)t.catch(()=>{});e.length=0}var OC=Object.prototype.hasOwnProperty;function j_(e){for(const t in e)if(OC.call(e,t))return!0;return!1}async function LC(e,t,i){Io||(Io=R_());const s=t[0],o=s.fetch??i,c=s.data instanceof FormData,u=new Headers(s.headers);if(u.set("x-tsr-serverFn","true"),c||u.set("accept",`${kA}, application/x-ndjson, application/json`),s.method==="GET"){if(c)throw new Error("FormData is not supported with GET requests");const f=await D_(s);if(f!==void 0){const p=LS({payload:f});e.includes("?")?e+=`&${p}`:e+=`?${p}`}}let d;
13return s.method==="POST"&&(d=await zC(s),typeof d=="string"&&u.set("content-type","application/json")),jC(()=>o(e,{method:s.method,headers:u,signal:s.signal,body:d}))}async function D_(e){let t;return e.data!==void 0&&(t={data:e.data}),e.context&&j_(e.context)&&((t??={}).context=e.context),t?M_(t,e.signal):void 0}async function M_(e,t){t?.throwIfAborted();let i;try{i=await XR(e,{plugins:t?R_(t):Io})}finally{t?.throwIfAborted()}return JSON.stringify(i)}async function zC(e){if(e.data instanceof FormData){let t;return e.context&&j_(e.context)&&(t=await M_(e.context,e.signal)),t!==void 0&&e.data.set(_A,t),e.data}return D_(e)}async function jC(e){let t;try{t=await e()}catch(s){if(s instanceof Response)t=s;else throw s}if(t.headers.get("x-tss-raw")==="true")return t;const i=t.headers.get("content-type");if(i||Lo(),t.headers.get("x-tss-serialized")){let s;if(i.includes("application/x-tss-framed")){const o=/;\s*v=(\d+)/.exec(i)?.[1];if(o&&+o!=1)throw new Error(`Unsupported framed protocol version ${o}`);if(!t.body)throw new Error("No response body for framed response");const[c,u]=wC(t.body);s=await DC(c,[yC(u),...Io])}else if(i.includes("application/json")){const o=await t.json(),c=[];s=mm(o,{plugins:Io},c),await L_(c)}if(s||Lo(),s instanceof Error)throw s;return s}if(i.includes("application/json")){const s=await t.json(),o=bS(s);if(o)throw o;if(es(s))throw s;return s}if(!t.ok)throw new Error(await t.text());return t}async function DC(e,t){const i=e.getReader(),s={refs:new Map,plugins:t},o=d=>{i.cancel(d).catch(()=>{})};let c;const u=[];try{const d=await i.read();if(d.done)throw new Error("Stream ended before first object");c=mm(JSON.parse(d.value),s,u)}catch(d){throw o(d),i.releaseLock(),d}return(async()=>{const d=[];try{for(;;){const f=await i.read();if(f.done)return;mm(JSON.parse(f.value),s,d),z_(d)}}catch(f){o(f),console.error("Stream processing error:",f)}finally{i.releaseLock()}})(),await L_(u),c}function I_(e){const t="/_serverFn/"+e;return Object.assign((...o)=>{const c=Bm()?.serverFns?.fetch;return LC(t,o,c??fetch)},{url:t,serverFnMeta:{id:e},[om]:!0})}var MC={key:"$TSS/serverfn",test:e=>typeof e!="function"||!(om in e)?!1:!!e[om],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>I_(e)},Fc=ie.use,N_=ie.useLayoutEffect;function IC({promise:e}){if(Fc)return Fc(e);const t=SC(e);if(t[Yn].status==="pending")throw t;if(t[Yn].status==="error")throw t[Yn].error;return t[Yn].data}function NC(e){const t=A.jsx(PC,{...e});return e.fallback?A.jsx(ie.Suspense,{fallback:e.fallback,children:t}):t}function PC(e){const t=IC(e);return e.children(t)}var sp=class extends ie.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){const i=e.getResetKey();return t.error&&t.resetKey!==i?{resetKey:i,error:0}:{resetKey:i}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){const e=this.state.error;return e?ie.createElement(this.props.errorComponent??UC,{error:e[0],reset:this.reset}):this.props.children}};function UC({error:e}){const[t,i]=ie.useState(!1);return A.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[A.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[A.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),A.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(s=>!s),children:t?"Hide Error":"Show Error"})]}),A.jsx("div",{style:{height:".25rem"}}),t?A.jsx("div",{children:A.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e?.message?A.jsx("code",{children:e.message}):null})}):null]})}var Qb=()=>!0,BC=()=>!1;function $C({children:e,fallback:t=null}){return A.jsx(Z.Fragment,{children:ap()?e:t})}function ap(e=!0){return Z.useSyncExternalStore(qC,Qb,e?BC:Qb)}function qC(){return()=>{}}var P_=ie.createContext(null);function jt(e){return ie.useContext(P_)}var op=ie.createContext(void 0),HC=ie.createContext(void 0);function FC({update:e,notify:t,unwatched:i}){return{link:s,unlink:o,propagate:c,checkDirty:u,shallowPropagate:d};function s(p,y,g){const b=y.depsTail;if(b!==void 0&&b.dep===p)return;const w=b!==void 0?b.nextDep:y.deps;if(w!==void 0&&w.dep===p){w.version=g,y.depsTail=w;return}const S=p.subsTail;if(S!==void 0&&S.version===g&&S.sub===y)return;const k=y.depsTail=p.subsTail={version:g,dep:p,sub:y,prevDep:b,nextDep:w,prevSub:S,nextSub:void 0};w!==void 0&&(w.prevDep=k),b!==void 0?b.nextDep=k:y.deps=k,S!==void 0?S.nextSub=k:p.subs=k}function o(p,y=p.sub){const g=p.dep,b=p.prevDep,w=p.nextDep,S=p.nextSub,k=p.prevSub;return w!==void 0?w.prevDep=b:y.depsTail=b,b!==void 0?b.nextDep=w:y.deps=w,S!==void 0?S.prevSub=k:g.subsTail=k,k!==void 0?k.nextSub=S:(g.subs=S)===void 0&&i(g),w}function c(p){let y=p.nextSub,g;e:do{const b=p.sub;let w=b.flags;if(w&60?w&12?w&4?!(w&48)&&f(p,b)?(b.flags=w|40,w&=1):w=0:b.flags=w&-9|32:w=0:b.flags=w|32,w&2&&t(b),w&1){const S=b.subs;if(S!==void 0){const k=(p=S).nextSub;k!==void 0&&(g={value:y,prev:g},y=k);continue}}if((p=y)!==void 0){y=p.nextSub;continue}for(;g!==void 0;)if(p=g.value,g=g.prev,p!==void 0){y=p.nextSub;continue e}break}while(!0)}function u(p,y){let g,b=0,w=!1;e:do{const S=p.dep,k=S.flags;if(y.flags&16)w=!0;else if((k&17)===17){if(e(S)){const T=S.subs;T.nextSub!==void 0&&d(T),w=!0}}else if((k&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(g={value:p,prev:g}),p=S.deps,y=S,++b;continue}if(!w){const T=p.nextDep;if(T!==void 0){p=T;continue}}for(;b--;){const T=y.subs,E=T.nextSub!==void 0;if(E?(p=g.value,g=g.prev):p=T,w){if(e(y)){E&&d(T),y=p.sub;continue}w=!1}else y.flags&=-33;y=p.sub;const L=p.nextDep;if(L!==void 0){p=L;continue e}}return w}while(!0)}function d(p){do{const y=p.sub,g=y.flags;(g&48)===32&&(y.flags=g|16,(g&6)===2&&t(y))}while((p=p.nextSub)!==void 0)}function f(p,y){let g=y.depsTail;for(;g!==void 0;){if(g===p)return!0;g=g.prevDep}return!1}}function VC(e,t,i){const s=typeof e=="object",o=s?e:void 0;return{next:(s?e.next:e)?.bind(o),error:(s?e.error:t)?.bind(o),c
13omplete:(s?e.complete:i)?.bind(o)}}const pm=[];let Nc=0;const{link:Xb,unlink:KC,propagate:GC,checkDirty:U_,shallowPropagate:Zb}=FC({update(e){return e._update()},notify(e){pm[gm++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Vc(e))}});let yc=0,gm=0,zn,ym=0;function YC(e){try{++ym,e()}finally{--ym||B_()}}function Vc(e){const t=e.depsTail;let i=t!==void 0?t.nextDep:e.deps;for(;i!==void 0;)i=KC(i,e)}function B_(){if(!(ym>0)){for(;yc<gm;){const e=pm[yc];pm[yc++]=void 0,e.notify()}yc=0,gm=0}}function e0(e,t){const i=typeof e=="function",s=e,o={_snapshot:i?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?0:1,get(){return zn!==void 0&&Xb(o,zn,Nc),o._snapshot},subscribe(c){const u=VC(c),d={current:!1},f=WC(()=>{o.get(),d.current?(zn=void 0,u.next?.(o._snapshot)):d.current=!0});return{unsubscribe:()=>{f.stop()}}},_update(c){const u=zn,d=t?.compare??Object.is;if(i)zn=o,++Nc,o.depsTail=void 0;else if(c===void 0)return!1;i&&(o.flags=5);try{const f=o._snapshot,p=typeof c=="function"?c(f):c===void 0&&i?s(f):c;return f===void 0||!d(f,p)?(o._snapshot=p,!0):!1}finally{zn=u,i&&(o.flags&=-5),Vc(o)}}};return i?(o.flags=17,o.get=function(){const c=o.flags;if(c&16||c&32&&U_(o.deps,o)){if(o._update()){const u=o.subs;u!==void 0&&Zb(u)}}else c&32&&(o.flags=c&-33);return zn!==void 0&&Xb(o,zn,Nc),o._snapshot}):o.set=function(c){if(o._update(c)){const u=o.subs;u!==void 0&&(GC(u),Zb(u),B_())}},o}function WC(e){const t=()=>{const s=zn;zn=i,++Nc,i.depsTail=void 0,i.flags=6;try{return e()}finally{zn=s,i.flags&=-5,Vc(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){const s=this.flags;s&16||s&32&&U_(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Vc(this)}};return t(),i}var Ph={exports:{}},Uh={},Bh={exports:{}},$h={};var t0;function JC(){if(t0)return $h;t0=1;var e=Ko();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var i=typeof Object.is=="function"?Object.is:t,s=e.useState,o=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function d(g,b){var w=b(),S=s({inst:{value:w,getSnapshot:b}}),k=S[0].inst,T=S[1];return c(function(){k.value=w,k.getSnapshot=b,f(k)&&T({inst:k})},[g,w,b]),o(function(){return f(k)&&T({inst:k}),g(function(){f(k)&&T({inst:k})})},[g]),u(w),w}function f(g){var b=g.getSnapshot;g=g.value;try{var w=b();return!i(g,w)}catch{return!0}}function p(g,b){return b()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return $h.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,$h}var n0;function QC(){return n0||(n0=1,Bh.exports=JC()),Bh.exports}var i0;function XC(){if(i0)return Uh;i0=1;var e=Ko(),t=QC();function i(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var s=typeof Object.is=="function"?Object.is:i,o=t.useSyncExternalStore,c=e.useRef,u=e.useEffect,d=e.useMemo,f=e.useDebugValue;return Uh.useSyncExternalStoreWithSelector=function(p,y,g,b,w){var S=c(null);if(S.current===null){var k={hasValue:!1,value:null};S.current=k}else k=S.current;S=d(function(){function E(P){if(!L){if(L=!0,C=P,P=b(P),w!==void 0&&k.hasValue){var j=k.value;if(w(j,P))return $=j}return $=P}if(j=$,s(C,P))return j;var U=b(P);return w!==void 0&&w(j,U)?(C=P,j):(C=P,$=U)}var L=!1,C,$,Q=g===void 0?null:g;return[function(){return E(y())},Q===null?void 0:function(){return E(Q())}]},[y,g,b,w]);var T=o(p,S[0],S[1]);return u(function(){k.hasValue=!0,k.value=T},[T]),f(T),T},Uh}var r0;function ZC(){return r0||(r0=1,Ph.exports=XC()),Ph.exports}var eO=ZC();function tO(e,t){return e===t}function En(e,t=s=>s,i){const s=i?.compare??tO,o=ie.useCallback(u=>{const{unsubscribe:d}=e.subscribe(u);return d},[e]),c=ie.useCallback(()=>e.get(),[e]);return eO.useSyncExternalStoreWithSelector(o,c,c,t,s)}var s0={};function lp(e,t){const i=ie.useRef();return s=>{const o=e?.select?e.select(s):s;return e?.structuralSharing??t.options.defaultStructuralSharing?i.current=fr(i.current,o):o}}function rs(e){const t=jt(),i=ie.useContext(e.from?HC:op),s=e.from??i,o=t.stores.getMatchStore(s),c=lp(e,t),u=En(o,d=>d?c(d):s0);if(u!==s0)return u;(e.shouldThrow??!0)&&Lo()}function $_(e){return rs({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function q_(e){const{select:t,...i}=e;return rs({...i,select:s=>t?t(s.loaderDeps):s.loaderDeps})}function H_(e){return rs({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const i=e.strict===!1?t.params:t._strictParams;return e.select?e.select(i):i}})}function F_(e){return rs({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function V_(e){const t=jt();return ie.useCallback(i=>t.navigate({...i,from:i.from??e?.from}),[e?.from,t])}function K_(e){return rs({...e,select:t=>e.select?e.select(t.context):t.context})}function nO(...e){const t=ie.useRef(e),i=t.current;return e.forEach((s,o)=>{Nn(i[o],s,!1,!0)||(i[o]=s)}),t.current}function vc(e,t){e.preloadRoute(t).catch(i=>{console.warn(i),console.warn(_C)})}var iO={compare:(e,t)=>
13e[0]===t[0]&&e[1]===t[1]};function rO(e,t){const i=typeof e=="string"&&Oo(e);if(i)return t.has(i)?e:null}function sO(e,t,i,s,o){const c=xb(e.pathname,s),u=xb(t.pathname,s);return(i?.exact?c!==u:!(c.startsWith(u)&&(c.length===u.length||c[u.length]==="/")))||(i?.includeSearch??!0)&&!Nn(e.search,t.search,!i?.exact,i?.explicitUndefined)?!1:i?.includeHash?o&&e.hash===t.hash:!0}function aO(e,t,i){const s=jt(),o=ie.useRef(null),c=ie.useCallback(fe=>{if(o.current=fe,typeof t=="function")return t(fe);t&&(t.current=fe)},[t]),{activeOptions:u,to:d,preload:f,preloadDelay:p,hashScrollIntoView:y,replace:g,startTransition:b,resetScroll:w,viewTransition:S,ignoreBlocker:k,disabled:T,target:E,onClick:L,onBlur:C,onFocus:$,onMouseEnter:Q,onMouseLeave:P,onTouchStart:j}=e,U=ap(!!u?.includeHash),[ee,he,G]=nO(e.search,e.params,u),[Y,te]=ie.useMemo(()=>[e,{...e}],[s,e.from,e._fromLocation,e.hash,e.to,ee,he,e.state,e.mask,e.unsafeRelative]),ye=ie.useMemo(()=>{const fe=rO(d,s.protocolAllowlist);if(fe!==void 0){const vt=[fe??void 0];return()=>vt}let ge,be;return vt=>{Y._fromLocation||(te._fromLocation=vt);const Tt=s.buildLocation(te),st=dO(Tt,s,T);return(!ge||ge[0]!==st)&&(ge=[st,!(T||st&&!Oo(st))&&void 0],be=[st,!0]),ge[1]!==void 0&&sO(vt,Tt,G,s.basepath,U)?be:ge}},[G,T,U,Y,te,s,d]),[se,z]=En(s.stores.location,ye,iO),W=z===void 0&&se,le=T||se===void 0,Ae=ie.useRef(!1),J=e.reloadDocument||W||le?!1:f??s.options.defaultPreload,R=p??s.options.defaultPreloadDelay??0,H=ie.useCallback(fe=>{const ge=fe?.isIntersecting;if(!(ge??J==="intent")){ge===!1&&qh(o);return}if(!R){vc(s,Y);return}Ao.has(o)||Ao.set(o,setTimeout(()=>{Ao.delete(o),vc(s,Y)},R))},[s,Y,o,J,R]);ie.useEffect(()=>{if(!J)return;J==="render"&&!Ae.current&&(Ae.current=!0,vc(s,Y));let fe=!0,ge;return J==="viewport"&&o.current&&typeof IntersectionObserver=="function"&&(ge=new IntersectionObserver(be=>{fe&&H(be.pop())},{rootMargin:"100px"}),ge.observe(o.current)),()=>{fe=!1,ge?.disconnect(),qh(o)}},[s,Y,J,H,o]);const F=cO(e,i);if(F.ref=t?c:o,W)return F.href=W,F;const X=fe=>{const ge=E??fe.currentTarget.getAttribute("target");!le&&!(fe.metaKey||fe.altKey||fe.ctrlKey||fe.shiftKey)&&!fe.defaultPrevented&&(!ge||ge==="_self")&&fe.button===0&&(fe.preventDefault(),s.navigate({...Y,replace:g,resetScroll:w,hashScrollIntoView:y,startTransition:b,viewTransition:S,ignoreBlocker:k}))},ne=()=>{J==="intent"&&vc(s,Y)},oe=()=>{J==="intent"&&qh(o)};return F.onClick=Qs(L,X),F.onBlur=Qs(C,oe),F.onFocus=Qs($,H),F.onMouseEnter=Qs(Q,H),F.onMouseLeave=Qs(P,oe),F.onTouchStart=Qs(j,ne),uO(F,e,z,se,le,i)}var oO={},lO={className:"active"},G_=new Set(["to","params","search","hash","state","mask","from","unsafeRelative","_fromLocation","reloadDocument","preload","preloadDelay","preloadIntentProximity","hashScrollIntoView","replace","startTransition","resetScroll","viewTransition","ignoreBlocker","activeProps","inactiveProps","activeOptions","_asChild"]);function cO(e,t){const i={};for(const s in e)G_.has(s)||s==="type"&&t!==void 0||s==="disabled"&&t==="a"||(i[s]=e[s]);return i}function uO(e,t,i,s,o,c){const{activeProps:u,inactiveProps:d,className:f,style:p,target:y}=t,g=wS(i?u:d,{})??(i?lO:oO);Object.assign(e,g),e.href=s,c!=="a"&&(e.disabled=o),e.target=y;const b=g.style;(p||b)&&(e.style=p&&b?{...p,...b}:p||b);const w=g.className;return(f||w)&&(e.className=f?w?`${f} ${w}`:f:w),o&&(e.role="link",e["aria-disabled"]=!0),i&&(e["data-status"]="active",e["aria-current"]="page"),e}var Ao=new WeakMap,qh=e=>{clearTimeout(Ao.get(e)),Ao.delete(e)},Qs=(e,t)=>e?i=>i.defaultPrevented||(e(i),i.defaultPrevented||t(i)):t;function dO(e,t,i){if(i)return;const s=e.maskedLocation??e,o=s.external?s.publicHref:t.history.createHref(s.publicHref)||"/";if(!((s.external||o!==s.publicHref)&&kS(o,t.protocolAllowlist)))return o}var Me=ie.memo(ie.forwardRef((e,t)=>{const i=e._asChild||"a",s=aO(e,t,i),o=typeof e.children=="function"?e.children({isActive:s["data-status"]==="active"}):e.children;return ie.createElement(i,s,o)}),hO);function hO(e,t){let i=0;for(const s in t)if(i++,e[s]!==t[s]&&(!G_.has(s)||!Nn(e[s],t[s],!1,!0)))return!1;for(const s in e)i--;return i===0}var fO=class extends O_{constructor(t){super(t),this.useMatch=i=>rs({...i,from:this.id}),this.useRouteContext=i=>K_({...i,from:this.id}),this.useSearch=i=>F_({...i,from:this.id}),this.useParams=i=>H_({...i,from:this.id}),this.useLoaderDeps=i=>q_({...i,from:this.id}),this.useLoaderData=i=>$_({...i,from:this.id}),this.useNavigate=()=>V_({from:this.fullPath}),this.Link=Z.forwardRef((i,s)=>A.jsx(Me,{ref:s,from:this.fullPath,...i}))}};function mO(e){return new fO(e)}function pO(){return e=>yO(e)}var gO=class extends CC{constructor(e){super(e),this.useMatch=t=>rs({...t,from:this.id}),this.useRouteContext=t=>K_({...t,from:this.id}),this.useSearch=t=>F_({...t,from:this.id}),this.useParams=t=>H_({...t,from:this.id}),this.useLoaderDeps=t=>q_({...t,from:this.id}),this.useLoaderData=t=>$_({...t,from:this.id}),this.useNavigate=()=>V_({from:this.fullPath}),this.Link=Z.forwardRef((t,i)=>A.jsx(Me,{ref:i,from:this.fullPath,...t}))}};function yO(e){return new gO(e)}function ae(e){return t=>{const i=mO(t);return i.isRoot=!1,i}}function we(e,t){let i,s,o;const c=()=>(i||(o=void 0,i=e().then(d=>{i=void 0,u.preload=void 0,s=d[t]}).catch(d=>{i=void 0,o=d})),i),u=function(f){if(o){if(TA(o)&&typeof sessionStorage<"u"){const p=`tanstack_router_reload:${o.message}`;
13if(!sessionStorage.getItem(p))throw sessionStorage.setItem(p,"1"),window.location.reload(),new Promise(()=>{})}throw o}if(!s)if(Fc)Fc(c());else throw c();return ie.createElement(s,f)};return u.preload=c,u}function vO(e){const t=jt(),i=`not-found-${En(t.stores.location,s=>s.pathname)}-${En(t.stores.status)}`;return A.jsx(sp,{getResetKey:()=>i,onCatch:(s,o)=>{if(es(s))e.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(es(s))return e.fallback?.(s);throw s},children:e.children})}function bO(){return A.jsx("p",{children:"Not Found"})}function Y_(e,t,i){return t.options.notFoundComponent?A.jsx(t.options.notFoundComponent,{...i}):e.options.defaultNotFoundComponent?A.jsx(e.options.defaultNotFoundComponent,{...i}):A.jsx(bO,{})}function ou(e,t){const i=t?.options.pendingComponent??e.options.defaultPendingComponent;return i?A.jsx(i,{}):null}var wO=(e,t)=>e[0]===t[0]&&e[1]===t[1],W_=(e,t,i)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||i===!1||i==="data-only"||!e.ssr,J_=ie.memo(function({routeId:t}){const i=jt();return A.jsx(SO,{router:i,match:En(i.stores.getMatchStore(t))})});function SO({router:e,match:t}){const i=e.routesById[t.routeId],s=ou(e,i),o=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,u=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,d=t.ssr===!1||t.ssr==="data-only",f=W_(e,i,t.ssr)&&(i.options.wrapInSuspense??s??(i.options.errorComponent?.preload||d));let p=A.jsx(_O,{match:t});d&&(p=A.jsx($C,{fallback:s,children:p})),u&&(p=A.jsx(vO,{fallback:b=>{if(b.routeId??=t.routeId,b.routeId!==t.routeId)throw b;return ie.createElement(u,b)},children:p})),o&&(p=A.jsx(sp,{getResetKey:()=>t,errorComponent:o,onCatch:(b,w)=>{if(es(b))throw b.routeId??=t.routeId,b;c?.(b,w)},children:p})),f&&(p=A.jsx(ie.Suspense,{fallback:s,children:p}));const y=null,g=i.isRoot?i.options.shellComponent:void 0;return A.jsx(op.Provider,{value:t.routeId,children:g?A.jsxs(g,{children:[p,y]}):A.jsxs(A.Fragment,{children:[p,y]})})}var _O=ie.memo(function({match:t}){const i=jt(),s=t.routeId,o=i.routesById[s],c=ie.useMemo(()=>{const d=(o.options.remountDeps??i.options.defaultRemountDeps)?.({routeId:s,loaderDeps:t.loaderDeps,params:t._strictParams,search:t._strictSearch});return d?JSON.stringify(d):void 0},[s,t.loaderDeps,t._strictParams,t._strictSearch,o.options.remountDeps,i.options.defaultRemountDeps]),u=ie.useMemo(()=>{const d=o.options.component??i.options.defaultComponent;return d?A.jsx(d,{},c):A.jsx(Q_,{})},[c,o.options.component,i.options.defaultComponent]);if(t.status==="pending"){if(i.ssr&&!W_(i,o,t.ssr))return u;if(i._tx)throw i._tx[5];return ou(i,o)}if(t.status==="notFound")return Y_(i,o,t.error);if(t.status==="error")throw t.error;return u}),Q_=ie.memo(function(){const t=jt(),i=ie.useContext(op);let s,o,c;{const d=t.stores.getMatchStore(i);[s,o]=En(d,f=>[!!f._notFound,f.error],{compare:wO}),c=En(t.stores.ids,f=>f[f.indexOf(i)+1])}if(s)return Y_(t,t.routesById[i],o);if(!c)return null;const u=A.jsx(J_,{routeId:c});return i===ha?A.jsx(ie.Suspense,{fallback:ou(t),children:u}):u});function X_(e,t){const i=e[1];e.length=0,i?.(t)}function kO({t:e}){const t=jt(),i=t._rendered??=[];return t.startTransition=(s,o)=>new Promise(c=>{X_(i,!1),i.push(o,c),e(t),ie.startTransition(s)}),N_(()=>{const s=t.history.subscribe(t.load);t.updateLatestLocation();const o=t.latestLocation,c=t.buildLocation({to:o.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(Jn(o.publicHref)!==Jn(c.publicHref))return t.commitLocation({...c,replace:!0,ignoreBlocker:!0}),s;const u=t.stores.resolvedLocation.get();return u?.href===o.href&&u.state.__TSR_key===o.state.__TSR_key?i.push(t.stores.matches.get(),d=>{d&&t.emit({type:"onRendered",...tu(u,u)})}):t._tx||t.load({sync:!0}).catch(console.error),s},[t,t.history]),null}function EO(){const e=jt(),t=e.routesById[ha],i=ou(e,t),s=A.jsxs(A.Fragment,{children:[A.jsx(kO,{t:ie.useState()[1]}),e.ssr?A.jsx(a0,{}):A.jsx(ie.Suspense,{fallback:i,children:A.jsx(a0,{})})]});return e.options.InnerWrap?A.jsx(e.options.InnerWrap,{children:s}):s}function a0(){const e=jt(),t=e._rendered,i=En(e.stores.matches,u=>t[0]??u),s=i[0],o=s?.routeId;N_(()=>{t[0]===i&&X_(t,!0)},[t,i]);const c=o?A.jsx(J_,{routeId:o}):null;return e.options.disableGlobalCatchBoundary?c:A.jsx(sp,{getResetKey:()=>s,onCatch:void 0,children:c})}var TO=e=>({createMutableStore:e0,createReadonlyStore:e0,batch:YC}),AO=e=>new xO(e),xO=class extends dx{constructor(e){super(e,TO)}};function RO({router:e,children:t,...i}){SS(i)&&e.update({...e.options,...i,context:{...e.options.context,...i.context}});const s=A.jsx(P_.Provider,{value:e,children:t});return e.options.Wrap?A.jsx(e.options.Wrap,{children:s}):s}function CO({router:e,...t}){return A.jsx(RO,{router:e,...t,children:A.jsx(EO,{})})}function ts(e){const t=jt({warn:e?.router===void 0}),i=e?.router||t;return En(i.stores.__store,lp(e,i))}function OO(e){const t=jt();return En(t.stores.location,lp(e,t))}function o0(e,t){if(t)for(const[i,s]of Object.entries(t))i!=="suppressHydrationWarning"&&s!==void 0&&s!==!1&&e.setAttribute(i,typeof s=="boolean"?"":String(s))}function Z_(e){const{attrs:t,children:i,nonce:s,preventScriptHoist:o}=e,c=ie.useMemo(()=>i===void 0?void 0:{__html:i},[i]);switch(e.tag){case"title":return A.jsx("title",{...t,suppressHydrationWarning:!0,children:i});case"meta":return A.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return A.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:s,suppressHydrationWarning:!0});case"style":return e.inlineCss,A.jsx("style",{...t,dangerouslySetInnerHTML:c,nonce:s});case"script":return A.jsx(LO,{attrs:t,preventScriptHoist:o,children:i});default:return null}}function LO({attrs:e,children:t,preventScriptHoist:i}){jt();const s=ap(),o=ie.useMemo(()=>t===void 0?void 0:{__html:t},[t]),c=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(ie.useEffect(()=>{if(!c){if(e?.src){const u=document.createElement("a");u.href=e.src;const d=u.href;for(const p of document.scripts)if(p.src===d)return;const f=document.createElement("script");return o0(f,e),document.head.appendChild(f),()=>f.remove()}if(typeof t=="string"){const u=typeof e?.type=="string"?e.type:"text/javascript",d=typeof e?.nonce=="string"?e.nonce:void 0;for(const p of document.scripts){if(p.hasAttribute("src"))continue;const y=p.getAttribute("type")??"text/javascript",g=p.getAttribute("nonce")??void 0;if(p.textContent===t&&y===u&&g===d)return}const f=document.createElement("script");return f.textContent=t,o0(f,e),document.head.appendChild(f),()=>f.remove()}}},[e,t,c]),c&&typeof t=="string")return A.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:o});if(!s){if(e?.src)return A.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return A.jsx("script",{...e,dangerouslySetInnerHTML:o,suppressHydrationWarning:!0})}return null}function zO(e,t,i,s){i=IS(i);const o=i.map(k=>k.meta).filter(k=>k!==void 0),c=[],u={};let d;for(let k=o.length-1;k>=0;k--){const T=o[k];for(let E=T.length-1;E>=0;E--){const L=T[E];if(L)if(L.title)d||(d={tag:"title",children:L.title});else if("script:ld+json"in L)try{const C=JSON.stringify(L["script:ld+json"]);c.push({tag:"script",attrs:{type:"application/ld+json"},children:LA(C)})}catch{}else{const C=L.name??L.property;if(C){if(u[C])continue;u[C]=!0}c.push({tag:"meta",attrs:{...L,nonce:t}})}}}d&&c.push(d),t&&c.push({tag:"meta",attrs:{property:"csp-nonce",content:t}}),c.reverse();const f=i.flatMap(k=>k.links??[]).filter(k=>k!==void 0).map(k=>({tag:"link",attrs:{...k,nonce:t}})),p=e.ssr?.manifest,y=[];p&&(i.forEach(k=>{p.routes[k.routeId]?.css?.forEach(T=>{const E=AC(T);y.push({tag:"link",attrs:{rel:"stylesheet",...E,crossOrigin:C_(s,"stylesheet")??E.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),p.inlineStyle&&y.push({tag:"style",attrs:{...p.inlineStyle.attrs,nonce:t},children:p.inlineStyle.children,inlineCss:!0}));const g=[];
13p&&i.forEach(k=>{p.routes[k.routeId]?.preloads?.forEach(T=>{g.push({tag:"link",attrs:{...EC(p,T,s),nonce:t}})})});const b=i.flatMap(k=>k.styles??[]).filter(k=>k!==void 0).map(({children:k,...T})=>({tag:"style",attrs:{...T,nonce:t},children:k})),w=i.flatMap(k=>k.headScripts??[]).filter(k=>k!==void 0).map(({children:k,...T})=>({tag:"script",attrs:{...T,nonce:t},children:k})),S=[];return gc(S,c),S.push(...g),gc(S,f),S.push(...y),gc(S,b),gc(S,w),S}var jO=e=>{const t=jt(),i=t.options.ssr?.nonce,s=ie.useCallback(o=>zO(t,i,o,e),[e,i,t]);return En(t.stores.matches,s,{compare:Nn})};function DO(e){const t=jO(e.assetCrossOrigin),i=jt().options.ssr?.nonce;return A.jsx(A.Fragment,{children:t.map(s=>ie.createElement(Z_,{...s,key:`tsr-meta-${JSON.stringify(s)}`,nonce:i}))})}var MO={suppressHydrationWarning:!0},IO=()=>{const e=jt(),t=e.options.ssr?.nonce,i=o=>{const c=xC(o,e.ssr?.manifest,t,MO);for(const u of c[1])if(typeof u.attrs?.src=="string"){const d=u;d.preventScriptHoist=!0}return c},s=o=>RC(i(o));return NO(En(e.stores.matches,s,{compare:Nn}))};function NO(e){return A.jsx(A.Fragment,{children:e.map((t,i)=>ie.createElement(Z_,{...t,key:`tsr-scripts-${t.tag}-${i}`}))})}function l0(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function vm(e,t){const i=Object.create(null);if(e)for(const s of Object.keys(e))l0(s)&&(i[s]=e[s]);if(t&&typeof t=="object")for(const s of Object.keys(t))l0(s)&&(i[s]=t[s]);return i}function ek(e){return Object.create(null)}var tk=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")},Pc=(e,t)=>{const i=t||e||{};typeof i.method>"u"&&(i.method="GET");const s=u=>Pc(void 0,{...i,validator:u,inputValidator:u});return Object.assign(u=>Pc(void 0,{...i,...u}),{options:i,middleware:u=>{const d=[...i.middleware||[]];u.forEach(p=>{Eb in p?p.options.middleware&&d.push(...p.options.middleware):d.push(p)});const f=Pc(void 0,{...i,middleware:d});return f[Eb]=!0,f},validator:s,inputValidator:s,handler:(...u)=>{const[d,f]=u,p={...i,extractedFn:d,serverFn:f},y=[...p.middleware||[],BO(p)];return d.method=i.method,Object.assign(async g=>{const b=await c0(y,"client",{...d,...p,data:g?.data,headers:g?.headers,signal:g?.signal,fetch:g?.fetch,context:ek()}),w=bS(b.error);if(w)throw w;if(b.error)throw b.error;return b.result},{...d,method:i.method,__executeServer:async g=>{const b=tk(),w=b.contextAfterGlobalMiddlewares;return await c0(y,"server",{...d,data:g.data,method:g.method??i.method,serverFnMeta:d.serverFnMeta,context:vm(g.context,w),request:b.request}).then(S=>({result:S.result,error:S.error,context:S.sendContext}))}})}})};async function c0(e,t,i){let s=PO([...Bm()?.functionMiddleware||[],...e]);if(t==="server"){const c=tk();c?.executedRequestMiddlewares&&(s=s.filter(u=>!c.executedRequestMiddlewares.has(u)))}const o=async c=>{const u=s.shift();if(!u)return c;try{let d="validator"in u.options?u.options.validator:void 0;!d&&"inputValidator"in u.options&&(d=u.options.inputValidator),d&&t==="server"&&(c.data=await UO(d,c.data));let f;if(t==="client"?"client"in u.options&&(f=u.options.client):"server"in u.options&&(f=u.options.server),f){const y=await f({...c,next:async(g={})=>{const b=await o({...c,...g,context:vm(c.context,g.context),sendContext:vm(c.sendContext,g.sendContext),headers:tC(c.headers,g.headers),_callSiteFetch:c._callSiteFetch,fetch:c._callSiteFetch??g.fetch??c.fetch,result:g.result!==void 0?g.result:g instanceof Response?g:c.result,error:g.error??c.error});if(b.error)throw b.error;return b}});if($m(y))return{...c,error:y};if(y instanceof Response)return{...c,result:y};if(!y)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return y}return o(c)}catch(d){return{...c,error:d}}};return o({...i,headers:i.headers||{},sendContext:i.sendContext||{},context:i.context||ek(),_callSiteFetch:i.fetch})}function PO(e,t=100){const i=new Set,s=[],o=(c,u)=>{if(u>t)throw new Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);
13c.forEach(d=>{d.options.middleware&&o(d.options.middleware,u+1),i.has(d)||(i.add(d),s.push(d))})};return o(e,0),s}async function UO(e,t){if(e==null)return{};if("~standard"in e){const i=await e["~standard"].validate(t);if(i.issues)throw new Error(JSON.stringify(i.issues,void 0,2));return i.value}if("parse"in e)return e.parse(t);if(typeof e=="function")return e(t);throw new Error("Invalid validator type!")}function BO(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:i,fetch:s,...o})=>{const c={...o,context:i,fetch:s};return t(await e.extractedFn?.(c))},server:async({next:t,...i})=>{const s=await e.serverFn?.(i);return t({...i,result:s})}}}}var Qr=(e,t)=>{const i={type:"request",...t||e},s=o=>Qr({},Object.assign(i,{validator:o,inputValidator:o}));return{options:i,middleware:o=>Qr({},Object.assign(i,{middleware:o})),validator:s,inputValidator:s,client:o=>Qr({},Object.assign(i,{client:o})),server:o=>Qr({},Object.assign(i,{server:o}))}};function nk(e,t){for(let i=0,s=t.length;i<s;i++){const o=t[i];e.has(o)||(e.add(o),o.extends&&nk(e,o.extends))}}var $O=e=>({getOptions:async()=>{const t=await e();if(t.serializationAdapters){const i=new Set;nk(i,t.serializationAdapters),t.serializationAdapters=Array.from(i)}return t},createMiddleware:Qr});function lu(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(i[s[o]]=e[s[o]]);return i}function qO(e,t,i,s){function o(c){return c instanceof i?c:new i(function(u){u(c)})}return new(i||(i=Promise))(function(c,u){function d(y){try{p(s.next(y))}catch(g){u(g)}}function f(y){try{p(s.throw(y))}catch(g){u(g)}}function p(y){y.done?c(y.value):o(y.value).then(d,f)}p((s=s.apply(e,t||[])).next())})}const HO=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class cp extends Error{constructor(t,i="FunctionsError",s){super(t),this.name=i,this.context=s}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class FO extends cp{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class u0 extends cp{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class d0 extends cp{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var bm;(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"})(bm||(bm={}));class VO{constructor(t,{headers:i={},customFetch:s,region:o=bm.Any}={}){this.url=t,this.headers=i,this.region=o,this.fetch=HO(s)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return qO(this,arguments,void 0,function*(i,s={}){var o;let c,u;try{const{headers:d,method:f,body:p,signal:y,timeout:g}=s;let b={},{region:w}=s;w||(w=this.region);const S=new URL(`${this.url}/${i}`);w&&w!=="any"&&(b["x-region"]=w,S.searchParams.set("forceFunctionRegion",w));let k;p&&(d&&!Object.prototype.hasOwnProperty.call(d,"Content-Type")||!d)?typeof Blob<"u"&&p instanceof Blob||p instanceof ArrayBuffer?(b["Content-Type"]="application/octet-stream",k=p):typeof p=="string"?(b["Content-Type"]="text/plain",k=p):typeof FormData<"u"&&p instanceof FormData?k=p:(b["Content-Type"]="application/json",k=JSON.stringify(p)):p&&typeof p!="string"&&!(typeof Blob<"u"&&p instanceof Blob)&&!(p instanceof ArrayBuffer)&&!(typeof FormData<"u"&&p instanceof FormData)?k=JSON.stringify(p):k=p;let T=y;g&&(u=new AbortController,c=setTimeout(()=>u.abort(),g),y?(T=u.signal,y.addEventListener("abort",()=>u.abort())):T=u.signal);const E=yield this.fetch(S.toString(),{method:f||"POST",headers:Object.assign(Object.assign(Object.assign({},b),this.headers),d),body:k,signal:T}).catch(Q=>{throw new FO(Q)}),L=E.headers.get("x-relay-error");
13if(L&&L==="true")throw new u0(E);if(!E.ok)throw new d0(E);let C=((o=E.headers.get("Content-Type"))!==null&&o!==void 0?o:"text/plain").split(";")[0].trim(),$;return C==="application/json"?$=yield E.json():C==="application/octet-stream"||C==="application/pdf"?$=yield E.blob():C==="text/event-stream"?$=E:C==="multipart/form-data"?$=yield E.formData():$=yield E.text(),{data:$,error:null,response:E}}catch(d){return{data:null,error:d,response:d instanceof d0||d instanceof u0?d.context:void 0}}finally{c&&clearTimeout(c)}})}}const ik=3,h0=e=>Math.min(1e3*2**e,3e4),KO=[520,503],rk=["GET","HEAD","OPTIONS"];var GO=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 f0(e,t){return new Promise(i=>{if(t?.aborted){i();return}const s=setTimeout(()=>{t?.removeEventListener("abort",o),i()},e);function o(){clearTimeout(s),i()}t?.addEventListener("abort",o)})}function YO(e,t,i,s){return!(!s||i>=ik||!rk.includes(e)||!KO.includes(t))}var WO=class{constructor(e){var t,i,s,o,c;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(i=e.isMaybeSingle)!==null&&i!==void 0?i:!1,this.shouldStripNulls=(s=e.shouldStripNulls)!==null&&s!==void 0?s:!1,this.urlLengthLimit=(o=e.urlLengthLimit)!==null&&o!==void 0?o:8e3,this.retryEnabled=(c=e.retry)!==null&&c!==void 0?c:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var i=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const u=this.headers.get("Accept");u==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!u||u==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const s=this.fetch;let c=(async()=>{let u=0;for(;;){const p=new Headers(i.headers);u>0&&p.set("X-Retry-Count",String(u));let y;try{y=await s(i.url.toString(),{method:i.method,headers:p,body:JSON.stringify(i.body,(g,b)=>typeof b=="bigint"?b.toString():b),signal:i.signal})}catch(g){if(g?.name==="AbortError"||g?.code==="ABORT_ERR"||!rk.includes(i.method))throw g;if(i.retryEnabled&&u<ik){const b=h0(u);u++,await f0(b,i.signal);continue}throw g}if(YO(i.method,y.status,u,i.retryEnabled)){var d,f;const g=(d=(f=y.headers)===null||f===void 0?void 0:f.get("Retry-After"))!==null&&d!==void 0?d:null,b=g!==null?Math.max(0,parseInt(g,10)||0)*1e3:h0(u);await y.text(),u++,await f0(b,i.signal);continue}return await i.processResponse(y)}})();return this.shouldThrowOnError||(c=c.catch(u=>{var d;let f="",p="",y="";const g=u?.cause;if(g){var b,w,S,k;const L=(b=g?.message)!==null&&b!==void 0?b:"",C=(w=g?.code)!==null&&w!==void 0?w:"";f=`${(S=u?.name)!==null&&S!==void 0?S:"FetchError"}: ${u?.message}`,f+=` 14 15Caused by: ${(k=g?.name)!==null&&k!==void 0?k:"Error"}: ${L}`,C&&(f+=` (${C})`),g?.stack&&(f+=` 16${g.stack}`)}else{var T;f=(T=u?.stack)!==null&&T!==void 0?T:""}const E=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(y="",p="Request was aborted (timeout or manual cancellation)",E>this.urlLengthLimit&&(p+=`. Note: Your request URL is ${E} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(g?.name==="HeadersOverflowError"||g?.code==="UND_ERR_HEADERS_OVERFLOW")&&(y="",p="HTTP headers exceeded server limits (typically 16KB)",E>this.urlLengthLimit&&(p+=`. Your request URL is ${E} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(d=u?.
16name)!==null&&d!==void 0?d:"FetchError"}: ${u?.message}`,details:f,hint:p,code:y},data:null,count:null,status:0,statusText:""}})),c.then(e,t)}async processResponse(e){var t=this;let i=null,s=null,o=null,c=e.status,u=e.statusText;if(e.ok){var d,f;if(t.method!=="HEAD"){var p;const b=await e.text();b===""||(t.headers.get("Accept")==="text/csv"||t.headers.get("Accept")&&(!((p=t.headers.get("Accept"))===null||p===void 0)&&p.includes("application/vnd.pgrst.plan+text"))?s=b:s=JSON.parse(b))}const y=(d=t.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),g=(f=e.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");y&&g&&g.length>1&&(o=parseInt(g[1])),t.isMaybeSingle&&Array.isArray(s)&&(s.length>1?(i={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,o=null,c=406,u="Not Acceptable"):s.length===1?s=s[0]:s=null)}else{const y=await e.text();try{i=JSON.parse(y),Array.isArray(i)&&e.status===404&&(s=[],i=null,c=200,u="OK")}catch{e.status===404&&y===""?(c=204,u="No Content"):i={message:y}}if(i&&t.shouldThrowOnError)throw new GO(i)}return{success:i===null,error:i,data:s,count:o,status:c,statusText:u}}returns(){return this}overrideTypes(){return this}},JO=class extends WO{select(e){let t=!1;const i=(e??"*").split("").map(s=>/\s/.test(s)&&!t?"":(s==='"'&&(t=!t),s)).join("");return this.url.searchParams.set("select",i),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:i,foreignTable:s,referencedTable:o=s}={}){const c=o?`${o}.order`:"order",u=this.url.searchParams.get(c);return this.url.searchParams.set(c,`${u?`${u},`:""}${e}.${t?"asc":"desc"}${i===void 0?"":i?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:i=t}={}){const s=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,t,{foreignTable:i,referencedTable:s=i}={}){const o=typeof s>"u"?"offset":`${s}.offset`,c=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(o,`${e}`),this.url.searchParams.set(c,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:i=!1,buffers:s=!1,wal:o=!1,format:c="text"}={}){var u;const d=[e?"analyze":null,t?"verbose":null,i?"settings":null,s?"buffers":null,o?"wal":null].filter(Boolean).join("|"),f=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${c}; for="${f}"; options=${d};`),c==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const m0=new RegExp("[,()]");var ia=class extends JO{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const i=Array.from(new Set(t)).map(s=>typeof s=="string"&&m0.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`in.(${i})`),this}notIn(e,t){const i=Array.from(new Set(t)).map(s=>typeof s=="string"&&m0.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`not.in.(${i})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:i,type:s}={}){let o="";s==="plain"?o="pl":s==="phrase"?o="ph":s==="websearch"&&(o="w");const c=i===void 0?"":`(${i})`;return this.url.searchParams.append(e,`${o}fts${c}.${t}`),this}match(e){return Object.entries(e).filter(([t,i])=>
16i!==void 0).forEach(([t,i])=>{this.url.searchParams.append(t,`eq.${i}`)}),this}not(e,t,i){return this.url.searchParams.append(e,`not.${t}.${i}`),this}or(e,{foreignTable:t,referencedTable:i=t}={}){const s=i?`${i}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,t,i){return this.url.searchParams.append(e,`${t}.${i}`),this}},QO=class{constructor(e,{headers:t={},schema:i,fetch:s,urlLengthLimit:o=8e3,retry:c}){this.url=e,this.headers=new Headers(t),this.schema=i,this.fetch=s,this.urlLengthLimit=o,this.retry=c}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:i=!1,count:s}=t??{},o=i?"HEAD":"GET";let c=!1;const u=(e??"*").split("").map(p=>/\s/.test(p)&&!c?"":(p==='"'&&(c=!c),p)).join(""),{url:d,headers:f}=this.cloneRequestState();return d.searchParams.set("select",u),s&&f.append("Prefer",`count=${s}`),new ia({method:o,url:d,headers:f,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:i=!0}={}){var s;const o="POST",{url:c,headers:u}=this.cloneRequestState();
16if(t&&u.append("Prefer",`count=${t}`),i||u.append("Prefer","missing=default"),Array.isArray(e)){const d=e.reduce((f,p)=>f.concat(Object.keys(p)),[]);if(d.length>0){const f=[...new Set(d)].map(p=>`"${p}"`);c.searchParams.set("columns",f.join(","))}}return new ia({method:o,url:c,headers:u,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:i=!1,count:s,defaultToNull:o=!0}={}){var c;const u="POST",{url:d,headers:f}=this.cloneRequestState();if(f.append("Prefer",`resolution=${i?"ignore":"merge"}-duplicates`),t!==void 0&&d.searchParams.set("on_conflict",t),s&&f.append("Prefer",`count=${s}`),o||f.append("Prefer","missing=default"),Array.isArray(e)){const p=e.reduce((y,g)=>y.concat(Object.keys(g)),[]);if(p.length>0){const y=[...new Set(p)].map(g=>`"${g}"`);d.searchParams.set("columns",y.join(","))}}return new ia({method:u,url:d,headers:f,schema:this.schema,body:e,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var i;const s="PATCH",{url:o,headers:c}=this.cloneRequestState();return t&&c.append("Prefer",`count=${t}`),new ia({method:s,url:o,headers:c,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const i="DELETE",{url:s,headers:o}=this.cloneRequestState();return e&&o.append("Prefer",`count=${e}`),new ia({method:i,url:s,headers:o,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function No(e){"@babel/helpers - typeof";return No=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},No(e)}function XO(e,t){if(No(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,t);if(No(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZO(e){var t=XO(e,"string");return No(t)=="symbol"?t:t+""}function e2(e,t,i){return(t=ZO(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function p0(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,s)}return i}function bc(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(i),!0).forEach(function(s){e2(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):p0(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}var t2=class sk{constructor(t,{headers:i={},schema:s,fetch:o,timeout:c,urlLengthLimit:u=8e3,retry:d}={}){this.url=t,this.headers=new Headers(i),this.schemaName=s,this.urlLengthLimit=u;const f=o??globalThis.fetch;c!==void 0&&c>0?this.fetch=(p,y)=>{const g=new AbortController,b=setTimeout(()=>g.abort(),c),w=y?.signal;if(w){if(w.aborted)return clearTimeout(b),f(p,y);const S=()=>{clearTimeout(b),g.abort()};return w.addEventListener("abort",S,{once:!0}),f(p,bc(bc({},y),{},{signal:g.signal})).finally(()=>{clearTimeout(b),w.removeEventListener("abort",S)})}return f(p,bc(bc({},y),{},{signal:g.signal})).finally(()=>clearTimeout(b))}: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 QO(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 sk(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,i={},{head:s=!1,get:o=!1,count:c}={}){var u;let d;const f=new URL(`${this.url}/rpc/${t}`);let p;const y=w=>w!==null&&typeof w=="object"&&(!Array.isArray(w)||w.some(y)),g=s&&Object.values(i).some(y);g?(d="POST",p=i):s||o?(d=s?"HEAD":"GET",Object.entries(i).filter(([w,S])=>S!==void 0).map(([w,S])=>[w,Array.isArray(S)?`{${S.join(",")}}`:`${S}
16`]).forEach(([w,S])=>{f.searchParams.append(w,S)})):(d="POST",p=i);const b=new Headers(this.headers);return g?b.set("Prefer",c?`count=${c},return=minimal`:"return=minimal"):c&&b.set("Prefer",`count=${c}`),new ia({method:d,url:f,headers:b,schema:this.schemaName,body:p,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class n2{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const i=globalThis;if(typeof globalThis<"u"&&typeof i.WebSocket<"u")return{type:"native",wsConstructor:i.WebSocket};const s=typeof global<"u"?global:void 0;if(s&&typeof s.WebSocket<"u")return{type:"native",wsConstructor:s.WebSocket};if(typeof globalThis<"u"&&typeof i.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&i.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const o=globalThis.process;if(o){const c=o.versions;if(c&&c.node){const u=c.node,d=parseInt(u.replace(/^v/,"").split(".")[0]);return d>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${d} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${d} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 17import ws from "ws" 18new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let i=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(i+=` 19 20Suggested solution: ${t.workaround}`),new Error(i)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const i2="2.106.2",r2=`realtime-js/${i2}`,s2="1.0.0",ak="2.0.0",a2=ak,o2=1e4,l2=100,cr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ok={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},wm={connecting:"connecting",closing:"closing",closed:"closed"};class c2{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,i){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return i(this._binaryEncodeUserBroadcastPush(t));let s=[t.join_ref,t.ref,t.topic,t.event,t.payload];return i(JSON.stringify(s))}_binaryEncodeUserBroadcastPush(t){var i;return this._isArrayBuffer((i=t.payload)===null||i===void 0?void 0:i.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var i,s;const o=(s=(i=t.payload)===null||i===void 0?void 0:i.payload)!==null&&s!==void 0?s:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,o)}_encodeJsonUserBroadcastPush(t){var i,s;const o=(s=(i=t.payload)===null||i===void 0?void 0:i.payload)!==null&&s!==void 0?s:{},u=new TextEncoder().encode(JSON.stringify(o)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(t,i,s){var o,c;const u=t.topic,d=(o=t.ref)!==null&&o!==void 0?o:"",f=(c=t.join_ref)!==null&&c!==void 0?c:"",p=t.payload.event,y=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},g=Object.keys(y).length===0?"":JSON.stringify(y);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(u.length>255)throw new Error(`topic length ${u.length} exceeds maximum of 255`);if(p.length>255)throw new Error(`userEvent length ${p.length} exceeds maximum of 255`);if(g.length>255)throw new Error(`metadata length ${g.length} exceeds maximum of 255`);const b=this.USER_BROADCAST_PUSH_META_LENGTH+f.length+d.length+u.length+p.length+g.length,w=new ArrayBuffer(this.HEADER_LENGTH+b);let S=new DataView(w),k=0;S.setUint8(k++,this.KINDS.userBroadcastPush),S.setUint8(k++,f.length),S.setUint8(k++,d.length),S.setUint8(k++,u.length),S.setUint8(k++,p.length),S.setUint8(k++,g.length),S.setUint8(k++,i),Array.from(f,E=>
20S.setUint8(k++,E.charCodeAt(0))),Array.from(d,E=>S.setUint8(k++,E.charCodeAt(0))),Array.from(u,E=>S.setUint8(k++,E.charCodeAt(0))),Array.from(p,E=>S.setUint8(k++,E.charCodeAt(0))),Array.from(g,E=>S.setUint8(k++,E.charCodeAt(0)));var T=new Uint8Array(w.byteLength+s.byteLength);return T.set(new Uint8Array(w),0),T.set(new Uint8Array(s),w.byteLength),T.buffer}decode(t,i){if(this._isArrayBuffer(t)){let s=this._binaryDecode(t);return i(s)}if(typeof t=="string"){const s=JSON.parse(t),[o,c,u,d,f]=s;return i({join_ref:o,ref:c,topic:u,event:d,payload:f})}return i({})}_binaryDecode(t){const i=new DataView(t),s=i.getUint8(0),o=new TextDecoder;if(s===this.KINDS.userBroadcast)return this._decodeUserBroadcast(t,i,o)}_decodeUserBroadcast(t,i,s){const o=i.getUint8(1),c=i.getUint8(2),u=i.getUint8(3),d=i.getUint8(4);let f=this.HEADER_LENGTH+4;const p=s.decode(t.slice(f,f+o));f=f+o;const y=s.decode(t.slice(f,f+c));f=f+c;const g=s.decode(t.slice(f,f+u));f=f+u;const b=t.slice(f,t.byteLength),w=d===this.JSON_ENCODING?JSON.parse(s.decode(b)):b,S={type:this.BROADCAST_EVENT,event:y,payload:w};return u>0&&(S.meta=JSON.parse(g)),{join_ref:null,ref:null,topic:p,event:this.BROADCAST_EVENT,payload:S}}_isArrayBuffer(t){var i;return t instanceof ArrayBuffer||((i=t?.constructor)===null||i===void 0?void 0:i.name)==="ArrayBuffer"}_pick(t,i){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([s])=>i.includes(s)))}}var We;(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"})(We||(We={}));const g0=(e,t,i={})=>{var s;const o=(s=i.skipTypes)!==null&&s!==void 0?s:[];return t?Object.keys(t).reduce((c,u)=>(c[u]=u2(u,e,t,o),c),{}):{}},u2=(e,t,i,s)=>{const o=t.find(d=>d.name===e),c=o?.type,u=i[e];return c&&!s.includes(c)?lk(c,u):Sm(u)},lk=(e,t)=>{if(e.charAt(0)==="_"){const i=e.slice(1,e.length);return m2(t,i)}switch(e){case We.bool:return d2(t);case We.float4:case We.float8:case We.int2:case We.int4:case We.int8:case We.numeric:case We.oid:return h2(t);case We.json:case We.jsonb:return f2(t);case We.timestamp:return p2(t);case We.abstime:case We.date:case We.daterange:case We.int4range:case We.int8range:case We.money:case We.reltime:case We.text:case We.time:case We.timestamptz:case We.timetz:case We.tsrange:case We.tstzrange:return Sm(t);default:return Sm(t)}},Sm=e=>e,d2=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},h2=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},f2=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},m2=(e,t)=>{if(typeof e!="string")return e;const i=e.length-1,s=e[i];if(e[0]==="{"&&s==="}"){let c;const u=e.slice(1,i);try{c=JSON.parse("["+u+"]")}catch{c=u?u.split(","):[]}return c.map(d=>lk(t,d))}return e},p2=e=>typeof e=="string"?e.replace(" ","T"):e,ck=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 xo=e=>typeof e=="function"?e:function(){return e},g2=typeof self<"u"?self:null,ra=typeof window<"u"?window:null,Gn=g2||ra||globalThis,y2="2.0.0",v2=1e4,b2=1e3,Wn={connecting:0,open:1,closing:2,closed:3},tn={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Si={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},_m={longpoll:"longpoll",websocket:"websocket"},w2={complete:4},km="base64url.bearer.phx.",wc=class{constructor(e,t,i,s){this.channel=e,this.event=t,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHo
vendor: 5,590 bytes, line 20
20oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:i}){this.recHooks.filter(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})}},uk=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))}},S2=class{constructor(e,t,i){this.state=tn.closed,this.topic=e,this.params=xo(t||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new wc(this,Si.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new uk(()=>{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=tn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",s=>{this.state=tn.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=tn.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=tn.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 wc(this,Si.leave,xo({}),this.timeout).send(),this.state=tn.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Si.reply,(s,o)=>{this.trigger(this.replyEventName(o),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=tn.closed,this.bindings=[]}onClose(e){this.on(Si.close,e)}onError(e){return this.on(Si.error,t=>e(t))}on(e,t){let i=this.bindingRef++;return this.bindings.push({event:e,ref:i,callback:t}),i}off(e,t){this.bindings=this.bindings.filter(i=>!(i.event===e&&(typeof t>"u"||t===i.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,i=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new wc(this,e,function(){return t},i);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=tn.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Si.close,"leave")},i=new wc(this,Si.leave,xo({}),e);return i.receive("ok",()=>t()).receive("timeout",()=>t()),i.send(),this.canPush()||i.trigger("ok",{}),i}onMessage(e,t,i){return t}filterBindings(e,t,i){return!0}isMember(e,t,i,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:i,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=tn.joining,this.joinPush.resend(e))}trigger(e,t,i,s){let o=this.onMessage(e,t,i,s);if(t&&!o)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let c=this.bindings.filter(u=>u.event===e&&this.filterBindings(u,t,i));for(let u=0;u<c.length;u++)c[u].callback(o,i,s||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===tn.closed}isErrored(){return this.state===tn.errored}isJoined(){return this.state===tn.joined}isJoining(){return this.state===tn.joining}isLeaving(){return this.state===tn.leaving}},Kc=class{static request(e,t,i,s,o,c,u){if(Gn.XDomainRequest){let d=new Gn.XDomainRequest;
20return this.xdomainRequest(d,e,t,s,o,c,u)}else if(Gn.XMLHttpRequest){let d=new Gn.XMLHttpRequest;return this.xhrRequest(d,e,t,i,s,o,c,u)}else{if(Gn.fetch&&Gn.AbortController)return this.fetchRequest(e,t,i,s,o,c,u);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,i,s,o,c,u){let d={method:e,headers:i,body:s},f=null;return o&&(f=new AbortController,setTimeout(()=>f.abort(),o),d.signal=f.signal),Gn.fetch(t,d).then(p=>p.text()).then(p=>this.parseJSON(p)).then(p=>u&&u(p)).catch(p=>{p.name==="AbortError"&&c?c():u&&u(null)}),f}static xdomainRequest(e,t,i,s,o,c,u){return e.timeout=o,e.open(t,i),e.onload=()=>{let d=this.parseJSON(e.responseText);u&&u(d)},c&&(e.ontimeout=c),e.onprogress=()=>{},e.send(s),e}static xhrRequest(e,t,i,s,o,c,u,d){e.open(t,i,!0),e.timeout=c;for(let[f,p]of Object.entries(s))e.setRequestHeader(f,p);return e.onerror=()=>d&&d(null),e.onreadystatechange=()=>{if(e.readyState===w2.complete&&d){let f=this.parseJSON(e.responseText);d(f)}},u&&(e.ontimeout=u),e.send(o),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let i=[];for(var s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let o=t?`${t}[${s}]`:s,c=e[s];typeof c=="object"?i.push(this.serialize(c,o)):i.push(encodeURIComponent(o)+"="+encodeURIComponent(c))}return i.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let i=e.match(/\?/)?"&":"?";return`${e}${i}${this.serialize(t)}`}},_2=e=>{let t="",i=new Uint8Array(e),s=i.byteLength;for(let o=0;o<s;o++)t+=String.fromCharCode(i[o]);return btoa(t)},Xs=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(km)&&(this.authToken=atob(t[1].slice(km.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=Wn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+_m.websocket),"$1/"+_m.longpoll)}endpointURL(){return Kc.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,i){this.close(e,t,i),this.readyState=Wn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Wn.open||this.readyState===Wn.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:i,token:s,messages:o}=t;if(i===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=s}else i=0;switch(i){case 200:o.forEach(c=>{setTimeout(()=>this.onmessage({data:c}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Wn.open,this.onopen({}),this.poll();break;
20case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${i}`)}})}send(e){typeof e!="string"&&(e=_2(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 21`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,i){for(let o of this.reqs)o.abort();this.readyState=Wn.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:i});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(e,t,i,s,o){let c,u=()=>{this.reqs.delete(c),s()};c=Kc.request(e,this.endpointURL(),t,i,this.timeout,u,d=>{this.reqs.delete(c),this.isActive()&&o(d)}),this.reqs.add(c)}},k2=class ko{constructor(t,i={}){let s=i.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(s.state,o=>{let{onJoin:c,onLeave:u,onSync:d}=this.caller;this.joinRef=this.channel.joinRef(),this.state=ko.syncState(this.state,o,c,u),this.pendingDiffs.forEach(f=>{this.state=ko.syncDiff(this.state,f,c,u)}),this.pendingDiffs=[],d()}),this.channel.on(s.diff,o=>{let{onJoin:c,onLeave:u,onSync:d}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=ko.syncDiff(this.state,o,c,u),d())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return ko.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,i,s,o){let c=this.clone(t),u={},d={};return this.map(c,(f,p)=>{i[f]||(d[f]=p)}),this.map(i,(f,p)=>{let y=c[f];if(y){let g=p.metas.map(k=>k.phx_ref),b=y.metas.map(k=>k.phx_ref),w=p.metas.filter(k=>b.indexOf(k.phx_ref)<0),S=y.metas.filter(k=>g.indexOf(k.phx_ref)<0);w.length>0&&(u[f]=p,u[f].metas=w),S.length>0&&(d[f]=this.clone(y),d[f].metas=S)}else u[f]=p}),this.syncDiff(c,{joins:u,leaves:d},s,o)}static syncDiff(t,i,s,o){let{joins:c,leaves:u}=this.clone(i);return s||(s=function(){}),o||(o=function(){}),this.map(c,(d,f)=>{let p=t[d];if(t[d]=this.clone(f),p){let y=t[d].metas.map(b=>b.phx_ref),g=p.metas.filter(b=>y.indexOf(b.phx_ref)<0);t[d].metas.unshift(...g)}s(d,p,f)}),this.map(u,(d,f)=>{let p=t[d];if(!p)return;let y=f.metas.map(g=>g.phx_ref);p.metas=p.metas.filter(g=>y.indexOf(g.phx_ref)<0),o(d,p,f),p.metas.length===0&&delete t[d]}),t}static list(t,i){return i||(i=function(s,o){return o}),this.map(t,(s,o)=>i(s,o))}static map(t,i){return Object.getOwnPropertyNames(t).map(s=>i(s,t[s]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Sc={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let i=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(i))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[i,s,o,c,u]=JSON.parse(e);return t({join_ref:i,ref:s,topic:o,event:c,payload:u})}},binaryEncode(e){let{join_ref:t,ref:i,event:s,topic:o,payload:c}=e,u=this.META_LENGTH+t.length+i.length+o.length+s.length,d=new ArrayBuffer(this.HEADER_LENGTH+u),f=new DataView(d),p=0;f.setUint8(p++,this.KINDS.push),f.setUint8(p++,t.length),f.setUint8(p++,i.length),f.setUint8(p++,o.length),f.setUint8(p++,s.length),Array.from(t,g=>f.setUint8(p++,g.charCodeAt(0))),Array.from(i,g=>f.setUint8(p++,g.charCodeAt(0))),Array.from(o,g=>f.setUint8(p++,g.charCodeAt(0))),Array.from(s,g=>f.setUint8(p++,g.charCodeAt(0)));var y=new Uint8Array(d.byteLength+c.byteLength);return y.set(new Uint8Array(d),0),y.set(new Uint8Array(c),d.byteLength),y.buffer},binaryDecode(e){let t=new DataView(e),i=t.getUint8(0),s=new TextDecoder;switch(i){case this.KINDS.push:return this.decodePush(e,t,s);case this.KINDS.reply:return this.decodeReply(e,t,s);
21case this.KINDS.broadcast:return this.decodeBroadcast(e,t,s)}},decodePush(e,t,i){let s=t.getUint8(1),o=t.getUint8(2),c=t.getUint8(3),u=this.HEADER_LENGTH+this.META_LENGTH-1,d=i.decode(e.slice(u,u+s));u=u+s;let f=i.decode(e.slice(u,u+o));u=u+o;let p=i.decode(e.slice(u,u+c));u=u+c;let y=e.slice(u,e.byteLength);return{join_ref:d,ref:null,topic:f,event:p,payload:y}},decodeReply(e,t,i){let s=t.getUint8(1),o=t.getUint8(2),c=t.getUint8(3),u=t.getUint8(4),d=this.HEADER_LENGTH+this.META_LENGTH,f=i.decode(e.slice(d,d+s));d=d+s;let p=i.decode(e.slice(d,d+o));d=d+o;let y=i.decode(e.slice(d,d+c));d=d+c;let g=i.decode(e.slice(d,d+u));d=d+u;let b=e.slice(d,e.byteLength),w={status:g,response:b};return{join_ref:f,ref:p,topic:y,event:Si.reply,payload:w}},decodeBroadcast(e,t,i){let s=t.getUint8(1),o=t.getUint8(2),c=this.HEADER_LENGTH+2,u=i.decode(e.slice(c,c+s));c=c+s;let d=i.decode(e.slice(c,c+o));c=c+o;let f=e.slice(c,e.byteLength);return{join_ref:null,ref:null,topic:u,event:d,payload:f}}},E2=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||v2,this.transport=t.transport||Gn.WebSocket||Xs,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let i=null;try{i=Gn&&Gn.sessionStorage}catch{}this.sessionStore=t.sessionStorage||i,this.establishedConnections=0,this.defaultEncoder=Sc.encode.bind(Sc),this.defaultDecoder=Sc.decode.bind(Sc),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!==Xs?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let s=null;ra&&ra.addEventListener&&(ra.addEventListener("pagehide",o=>{this.conn&&(this.disconnect(),s=this.connectClock)}),ra.addEventListener("pageshow",o=>{s===this.connectClock&&(s=null,this.connect())}),ra.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=o=>t.rejoinAfterMs?t.rejoinAfterMs(o):[1e3,2e3,5e3][o-1]||1e4,this.reconnectAfterMs=o=>t.reconnectAfterMs?t.reconnectAfterMs(o):[10,50,100,150,200,250,500,1e3,2e3][o-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(o,c,u)=>{console.log(`${o}: ${c}`,u)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=xo(t.params||{}),this.endPoint=`${e}/${_m.websocket}`,this.vsn=t.vsn||y2,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new uk(()=>{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 Xs}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=Kc.appendParams(Kc.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,i){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,i)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=xo(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Xs?this.connectWithF
vendor: 4,353 bytes, line 21
21allback(Xs,this.longPollFallbackMs):this.transportConnect())}log(e,t,i){this.logger&&this.logger(e,t,i)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),i=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let s=this.onMessage(o=>{o.ref===t&&(this.off([s]),e(Date.now()-i))});return!0}transportName(e){return e===Xs?"LongPoll":e.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${km}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let i=!1,s=!0,o,c,u=this.transportName(e),d=f=>{this.log("transport",`falling back to ${u}...`,f),this.off([o,c]),s=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${u}`))return d("memorized");this.fallbackTimer=setTimeout(d,t),c=this.onError(f=>{this.log("transport","error",f),s&&!i&&(clearTimeout(this.fallbackTimer),d(f))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(i=!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(),b2,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,i){if(!this.conn)return e&&e();const s=this.conn;this.waitForBufferDone(s,()=>{t?s.close(t,i||""):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,i=1){if(i===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,i+1)},150*i)}waitForSocketClosed(e,t,i=1){if(i===5||e.readyState===Wn.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,i+1)},150*i)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,i=this.establishedConnections;this.triggerStateCallbacks("error",e,t,i),(t===this.transport||i>0)&&this.triggerChanError(e)}
21triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Si.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case Wn.connecting:return"connecting";case Wn.open:return"open";case Wn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([i])=>e.indexOf(i)===-1)}channel(e,t={}){let i=new S2(e,t,this);return this.channels.push(i),i}push(e){if(this.hasLogger()){let{topic:t,event:i,payload:s,ref:o,join_ref:c}=e;this.log("push",`${t} ${i} (${c}, ${o})`,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:i,event:s,payload:o,ref:c,join_ref:u}=t;if(c&&c===this.pendingHeartbeatRef){const d=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(o.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",`${o.status||""} ${i} ${s} ${c&&"("+c+")"||""}`.trim(),o);for(let d=0;d<this.channels.length;d++){const f=this.channels[d];f.isMember(i,s,o,u)&&f.trigger(s,o,c,u)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([i,s])=>{try{s(...t)}catch(o){this.log("error",`error in ${e} callback`,o)}})}catch(i){this.log("error",`error triggering ${e} callbacks`,i)}}leaveOpenTopic(e){let t=this.channels.find(i=>i.topic===e&&(i.isJoined()||i.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Ro{constructor(t,i){const s=A2(i);this.presence=new k2(t.getChannel(),s),this.presence.onJoin((o,c,u)=>{const d=Ro.onJoinPayload(o,c,u);t.getChannel().trigger("presence",d)}),this.presence.onLeave((o,c,u)=>{const d=Ro.onLeavePayload(o,c,u);t.getChannel().trigger("presence",d)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Ro.transformState(this.presence.state)}static transformState(t){return t=T2(t),Object.getOwnPropertyNames(t).reduce((i,s)=>{const o=t[s];return i[s]=Uc(o),i},{})}static onJoinPayload(t,i,s){const o=y0(i),c=Uc(s);return{event:"join",key:t,currentPresences:o,newPresences:c}}static onLeavePayload(t,i,s){const o=y0(i),c=Uc(s);return{event:"leave",key:t,currentPresences:o,leftPresences:c}}}function Uc(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function T2(e){return JSON.parse(JSON.stringify(e))}function A2(e){return e?.events&&{events:e.events}}function y0(e){return e?.metas?Uc(e):[]}var v0;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(v0||(v0={}));class x2{get state(){return this.presenceAdapter.state}constructor(t,i){this.channel=t,this.presenceAdapter=new Ro(this.channel.channelAdapter,i)}}function R2(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
21if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const i=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${i}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class C2{constructor(t,i,s){const o=O2(s);this.channel=t.getSocket().channel(i,o),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,i){return this.channel.on(t,i)}off(t,i){this.channel.off(t,i)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,i,s){let o;try{o=this.channel.push(t,i,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>l2){const c=this.channel.pushBuffer.shift();c.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${c.event}`,c.payload())}return o}updateJoinPayload(t){const i=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},i),t)}canPush(){return this.socket.isConnected()&&this.state===cr.joined}isJoined(){return this.state===cr.joined}isJoining(){return this.state===cr.joining}isClosed(){return this.state===cr.closed}isLeaving(){return this.state===cr.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function O2(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var b0;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(b0||(b0={}));var ua;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(ua||(ua={}));var _i;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(_i||(_i={}));class Co{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,i={config:{}},s){var o,c;if(this.topic=t,this.params=i,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},i.config),this.channelAdapter=new C2(this.socket.socketAdapter,t,this.params),this.presence=new x2(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=ck(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((c=(o=this.params.config)===null||o===void 0?void 0:o.broadcast)===null||c===void 0)&&c.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,i=this.timeout){var s,o,c;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:u,presence:d,private:f}}=this.params,p=(o=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(w=>w.filter))!==null&&o!==void 0?o:[],y=!!this.bindings[ua.PRESENCE]&&this.bindings[ua.PRESENCE].length>0||((c=this.params.config.presence)===null||c===void 0?void 0:c.enabled)===!0,g={},b={broadcast:u,presence:Object.assign(Object.assign({},d),{enabled:y}),postgres_changes:p,private:f};this.socket.accessTokenValue&&(g.access_token=this.socket.accessTokenValue),this._onError(w=>{t?.(_i.CHANNEL_ERROR,R2(w))}),this._onClose(()=>t?.(_i.CLOSED)),this.updateJoinPayload(Object.assign({config:b},g)),this._updateFilterMessage(),this.channelAdapter.subscribe(i).receive("ok",async({postgres_changes:w})=>{if(this.socket._isManualToken()||this.socket.setAuth(),w===void 0){t?.(_i.SUBSCRIBED);return}this._updatePostgresBindings(w,t)}).receive("error",w=>{this.state=cr.errored;const S=Object.values(w).join(", ")||"error";t?.(_i.CHANNEL_ERROR,new Error(S,{cause:w}))}).receive("timeout",()=>{t?.(_i.TIMED_OUT)})}return this}_updatePostgresBindings(t,i){var s;const o=this.bindings.postgres_changes,c=(s=o?.length)!==null&&s!==void 0?s:0,u=[];for(let d=0;d<c;d++){const f=o[d],{filter:{event:p,schema:y,table:g,filter:b}}=f,w=t&&t[d];if(w&&w.event===p&&Co.isFilterValueEqual(w.schema,y)&&Co.isFilterValueEqual(w.table,g)&&Co.isFilterValueEqual(w.filter,b))u.push(Object.assign(Object.assign({},f),{id:w.id}));else{this.unsubscribe(),this.state=cr.errored,i?.(_i.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=u,this.state!=cr.errored&&i&&i(_i.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,i={}){return await this.send({type:"presence",event:"track",payload:t},i.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,i,s){const o=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),c=t===ua.PRESENCE||t===ua.POSTGRES_CHANGES;if(o&&c)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,i,s)}async httpSend(t,i,s={}){var o;if(i==null)return Promise.reject(new Error("Payload is required for httpSend()"));const c={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(c.Authorization=`Bearer ${this.socket.accessTokenValue}`);const u={method:"POST",headers:c,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:i,private:this.private}]})},d=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(o=s.timeout)!==null&&o!==void 0?o:this.timeout);if(d.status===202)return{success:!0};let f=d.statusText;
21try{const p=await d.json();f=p.error||p.message||f}catch{}return Promise.reject(new Error(f))}async send(t,i={}){var s,o;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:c,payload:u}=t,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:c,payload:u,private:this.private}]})};try{const p=await this._fetchWithTimeout(this.broadcastEndpointURL,f,(s=i.timeout)!==null&&s!==void 0?s:this.timeout);return await((o=p.body)===null||o===void 0?void 0:o.cancel()),p.ok?"ok":"error"}catch(p){return p instanceof Error&&p.name==="AbortError"?"timed out":"error"}}else return new Promise(c=>{var u,d,f;const p=this.channelAdapter.push(t.type,t,i.timeout||this.timeout);t.type==="broadcast"&&!(!((f=(d=(u=this.params)===null||u===void 0?void 0:u.config)===null||d===void 0?void 0:d.broadcast)===null||f===void 0)&&f.ack)&&c("ok"),p.receive("ok",()=>c("ok")),p.receive("error",()=>c("error")),p.receive("timeout",()=>c("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(i=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>i("ok")).receive("timeout",()=>i("timed out")).receive("error",()=>i("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,i,s){const o=new AbortController,c=setTimeout(()=>o.abort(),s),u=await this.socket.fetch(t,Object.assign(Object.assign({},i),{signal:o.signal}));return clearTimeout(c),u}_on(t,i,s){const o=t.toLocaleLowerCase(),c=this.channelAdapter.on(t,s),u={type:o,filter:i,callback:s,ref:c};return this.bindings[o]?this.bindings[o].push(u):this.bindings[o]=[u],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,i,s)=>{var o,c,u,d,f,p,y;const g=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(g,s))return!1;const b=(o=this.bindings[g])===null||o===void 0?void 0:o.find(w=>w.ref===t.ref);if(!b)return!0;if(["broadcast","presence","postgres_changes"].includes(g))if("id"in b){const w=b.id,S=(c=b.filter)===null||c===void 0?void 0:c.event;return w&&((u=i.ids)===null||u===void 0?void 0:u.includes(w))&&(S==="*"||S?.toLocaleLowerCase()===((d=i.data)===null||d===void 0?void 0:d.type.toLocaleLowerCase()))}else{const w=(p=(f=b?.filter)===null||f===void 0?void 0:f.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return w==="*"||w===((y=i?.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return b.type.toLocaleLowerCase()===g})}_notThisChannelEvent(t,i){const{close:s,error:o,leave:c,join:u}=ok;return i&&[s,o,c,u].includes(t)&&i!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,i,s)=>{if(typeof i=="object"&&"ids"in i){const o=i.data,{schema:c,table:u,commit_timestamp:d,type:f,errors:p}=o;return Object.assign(Object.assign({},{schema:c,table:u,commit_timestamp:d,eventType:f,new:{},old:{},errors:p}),this._getPayloadRecords(o))}return i})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const i in t.bindings)for(const s of t.bindings[i])this._on(s.type,s.filter,s.callback)}static isFilterValueEqual(t,i){return(t??void 0)===(i??void 0)}_getPayloadRecords(t){const i={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(i.new=g0(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(i.old=g0(t.columns,t.old_record)),i}}class L2{constructor(t,i){this.socket=new E2(t,i)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,i,s,o=1e4){return new Promise(c=>{setTimeout(()=>c("timeout"),o),this.socket.disconnect(()=>{t(),c("ok")},i,s)})}push(t){this.socket.push(t)}log(t,i,s){this.socket.log(t,i,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()==wm.connecting}isDisconnecting(){return this.socket.connectionState()==wm.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const w0={HEARTBEAT_INTERVAL:25e3},z2=[1e3,2e3,5e3,1e4],j2=1e4;function D2(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var i;return(i=Array.from(e.keys())[t])!==null&&i!==void 0?i:null},removeItem(t){e.delete(t)},setItem(t,i){e.set(t,String(i))}}}function M2(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return D2()}const I2=` 22 addEventListener("message", (e) => { 23 if (e.data.event === "start") { 24 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 25 } 26 });`;class N2{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,i){var s;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
26,this.ref=0,this.serializer=new c2,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=c=>c?(...u)=>c(...u):(...u)=>fetch(...u),!(!((s=i?.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=i.params.apikey;const o=this._initializeOptions(i);this.socketAdapter=new L2(t,o),this.httpEndpoint=ck(t),this.fetch=this._resolveFetch(i?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const i=t.message;throw i.includes("Node.js")?new Error(`${i} 27 28To use Realtime in Node.js, you need to provide a WebSocket implementation: 29 30Option 1: Use Node.js 22+ which has native WebSocket support 31Option 2: Install and provide the "ws" package: 32 33 npm install ws 34 35 import ws from "ws" 36 const client = new RealtimeClient(url, { 37 ...options, 38 transport: ws 39 })`):new Error(`WebSocket not available: ${i}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,i){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,i)}getChannels(){return this.channels}async removeChannel(t){const i=await t.unsubscribe();return i==="ok"&&t.teardown(),i}async removeAllChannels(){const t=this.channels.map(async s=>{const o=await s.unsubscribe();return s.teardown(),o}),i=await Promise.all(t);return await this.disconnect(),i}log(t,i,s){this.socketAdapter.log(t,i,s)}connectionState(){return this.socketAdapter.connectionState()||wm.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,i={config:{}}){const s=`realtime:${t}`,o=this.getChannels().find(c=>c.topic===s);if(o)return o;{const c=new Co(`realtime:${t}`,i,this);return this._cancelPendingDisconnect(),this.channels.push(c),c}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(i=>i.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
39this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let i,s=!1;if(t)i=t,s=!0;else if(this.accessToken)try{i=await this.accessToken()}catch(o){this.log("error","Error fetching access token from callback",o),i=this.accessTokenValue}else i=this.accessTokenValue;s?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=i&&(this.accessTokenValue=i,this.channels.forEach(o=>{const c={access_token:i,version:r2};i&&o.updateJoinPayload(c),o.joinedOnce&&o.channelAdapter.isJoined()&&o.channelAdapter.push(ok.access_token,{access_token:i})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(i=>{this.log("error",`Error setting auth in ${t}`,i)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(i=>{this.log("error","error waiting for auth on connect",i)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(i,s)=>{i=="sent"&&this._setAuthSafely(),t&&t(i,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=i=>{this.log("worker","worker error",i.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=i=>{i.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let i;if(t)i=t;else{const s=new Blob([I2],{type:"application/javascript"});i=URL.createObjectURL(s)}return i}_initializeOptions(t){var i,s,o,c,u,d,f,p,y,g,b,w;this.worker=(i=t?.worker)!==null&&i!==void 0?i:!1,this.accessToken=(s=t?.accessToken)!==null&&s!==void 0?s:null;const S={};S.timeout=(o=t?.timeout)!==null&&o!==void 0?o:o2,S.heartbeatIntervalMs=(c=t?.heartbeatIntervalMs)!==null&&c!==void 0?c:w0.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(u=t?.disconnectOnEmptyChannelsAfterMs)!==null&&u!==void 0?u:2*((d=t?.heartbeatIntervalMs)!==null&&d!==void 0?d:w0.HEARTBEAT_INTERVAL),S.transport=(f=t?.transport)!==null&&f!==void 0?f:n2.getWebSocketConstructor(),S.params=t?.params,S.logger=t?.logger,S.heartbeatCallback=this._wrapHeartbeatCallback(t?.heartbeatCallback),S.sessionStorage=(p=t?.sessionStorage)!==null&&p!==void 0?p:M2(),S.reconnectAfterMs=(y=t?.reconnectAfterMs)!==null&&y!==void 0?y:(L=>z2[L-1]||j2);let k,T;const E=(g=t?.vsn)!==null&&g!==void 0?g:a2;switch(E){case s2:k=(L,C)=>C(JSON.stringify(L)),T=(L,C)=>C(JSON.parse(L));break;case ak:k=this.serializer.encode.bind(this.serializer),T=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${S.vsn}`)}if(S.vsn=E,S.encode=(b=t?.encode)!==null&&b!==void 0?b:k,S.decode=(w=t?.decode)!==null&&w!==void 0?w:T,S.beforeReconnect=this._reconnectAuth.bind(this),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,S.params=Object.assign(Object.assign({},S.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,S.autoSendHeartbeat=!this.worker}return S}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
39var Po=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 P2(e,t,i){const s=new URL(t,e);if(i)for(const[o,c]of Object.entries(i))c!==void 0&&s.searchParams.set(o,c);return s.toString()}async function U2(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 B2(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:i,path:s,query:o,body:c,headers:u}){const d=P2(e.baseUrl,s,o),f=await U2(e.auth),p=await t(d,{method:i,headers:{...c?{"Content-Type":"application/json"}:{},...f,...u},body:c?JSON.stringify(c):void 0}),y=await p.text(),g=(p.headers.get("content-type")||"").includes("application/json"),b=g&&y?JSON.parse(y):y;if(!p.ok){const w=g?b:void 0,S=w?.error;throw new Po(S?.message??`Request failed with status ${p.status}`,{status:p.status,icebergType:S?.type,icebergCode:S?.code,details:w})}return{status:p.status,headers:p.headers,data:b}}}}function _c(e){return e.join("�")}var $2=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:_c(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 i={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:i})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${_c(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${_c(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${_c(e.namespace)}`}),!0}catch(t){if(t instanceof Po&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(i){if(i instanceof Po&&i.status===409)return;throw i}}};function Zs(e){return e.join("�")}var q2=class{constructor(e,t="",i){this.client=e,this.prefix=t,this.accessDelegation=i}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Zs(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const i={};return this.accessDelegation&&(i["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Zs(e.namespace)}/tables`,body:t,headers:i})).data.metadata}async updateTable(e,t){const i=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Zs(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":i.data["metadata-location"],metadata:i.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Zs(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/${Zs(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/${Zs(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(i){if(i instanceof Po&&i.status===404)return!1;throw i}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(i){if(i instanceof Po&&i.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw i}}},H2=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const i=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=B2({baseUrl:i,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new $2(this.client,t),this.tableOps=new q2(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)}
39async 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 Uo(e){"@babel/helpers - typeof";return Uo=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},Uo(e)}function F2(e,t){if(Uo(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,t);if(Uo(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V2(e){var t=F2(e,"string");return Uo(t)=="symbol"?t:t+""}function K2(e,t,i){return(t=V2(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function S0(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,s)}return i}function ke(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?S0(Object(i),!0).forEach(function(s){K2(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):S0(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}var cu=class extends Error{constructor(e,t="storage",i,s){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=i,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function uu(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Em=class extends cu{constructor(e,t,i,s="storage"){super(e,s,t,i),this.name=s==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=i}toJSON(){return ke({},super.toJSON())}},dk=class extends cu{constructor(e,t,i="storage"){super(e,i),this.name=i==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function Gc(e,t,i){const s=ke({},e),o=t.toLowerCase();for(const c of Object.keys(s))c.toLowerCase()===o&&delete s[c];return s[o]=i,s}function G2(e){const t={};for(const[i,s]of Object.entries(e))t[i.toLowerCase()]=s;return t}const Y2=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),W2=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)},Tm=e=>{if(Array.isArray(e))return e.map(i=>Tm(i));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([i,s])=>{const o=i.replace(/([-_][a-z])/gi,c=>c.toUpperCase().replace(/[-_]/g,""));t[o]=Tm(s)}),t},J2=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),_0=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 i=t.error;if(typeof i.message=="string")return i.message}}return JSON.stringify(e)},Q2=async(e,t,i,s)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const o=e;let c=parseInt(String(o.status),10);Number.isFinite(c)||(c=500),o.json().then(u=>{const d=u?.statusCode||u?.code||c+"";t(new Em(_0(u),c,d,s))}).catch(()=>{const u=c+"";t(new Em(o.statusText||`HTTP ${c} error`,c,u,s))})}else t(new dk(_0(e),e,s))},X2=(e,t,i,s)=>{const o={method:e,headers:t?.headers||{}};if(e==="GET"||e==="HEAD"||!s)return ke(ke({},o),i);if(W2(s)){var c;const u=t?.headers||{};let d;for(const[f,p]of Object.entries(u))f.toLowerCase()==="content-type"&&(d=p);o.headers=Gc(u,"Content-Type",(c=d)!==null&&c!==void 0?c:"application/json"),o.body=JSON.stringify(s)}else o.body=s;return t?.duplex&&(o.duplex=t.duplex),ke(ke({},o),i)};async function So(e,t,i,s,o,c,u){return new Promise((d,f)=>{e(i,X2(t,s,o,c)).then(p=>{if(!p.ok)throw p;if(s?.noResolveJson)return p;if(u==="vectors"){const y=p.headers.get("content-type");if(p.headers.get("content-length")==="0"||p.status===204)return{};if(!y||!y.includes("application/json"))return{}}return p.json()}).then(p=>
39d(p)).catch(p=>Q2(p,f,s,u))})}function hk(e="storage"){return{get:async(t,i,s,o)=>So(t,"GET",i,s,o,void 0,e),post:async(t,i,s,o,c)=>So(t,"POST",i,o,c,s,e),put:async(t,i,s,o,c)=>So(t,"PUT",i,o,c,s,e),head:async(t,i,s,o)=>So(t,"HEAD",i,ke(ke({},s),{},{noResolveJson:!0}),o,void 0,e),remove:async(t,i,s,o,c)=>So(t,"DELETE",i,o,c,s,e)}}const Z2=hk("storage"),{get:Bo,post:jn,put:Am,head:eL,remove:up}=Z2,hn=hk("vectors");var ya=class{constructor(e,t={},i,s="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=G2(t),this.fetch=Y2(i),this.namespace=s}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=Gc(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(uu(i))return{data:null,error:i};throw i}}};let fk;fk=Symbol.toStringTag;var tL=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[fk]="StreamDownloadBuilder",this.promise=null}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 e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(uu(t))return{data:null,error:t};throw t}}};let mk;mk=Symbol.toStringTag;var nL=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[mk]="BlobDownloadBuilder",this.promise=null}asStream(){return new tL(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(uu(t))return{data:null,error:t};throw t}}};const iL={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},k0={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var rL=class extends ya{constructor(e,t={},i,s){super(e,t,s,"storage"),this.bucketId=i}async uploadOrUpdate(e,t,i,s){var o=this;return o.handleOperation(async()=>{let c;const u=ke(ke({},k0),s);let d=ke(ke({},o.headers),e==="POST"&&{"x-upsert":String(u.upsert)});const f=u.metadata;if(typeof Blob<"u"&&i instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),f&&c.append("metadata",o.encodeMetadata(f)),c.append("",i)):typeof FormData<"u"&&i instanceof FormData?(c=i,c.has("cacheControl")||c.append("cacheControl",u.cacheControl),f&&!c.has("metadata")&&c.append("metadata",o.encodeMetadata(f))):(c=i,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType,f&&(d["x-metadata"]=o.toBase64(o.encodeMetadata(f))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!u.duplex&&(u.duplex="half")),s?.headers)for(const[b,w]of Object.entries(s.headers))d=Gc(d,b,w);const p=o._removeEmptyFolders(t),y=o._getFinalPath(p),g=await(e=="PUT"?Am:jn)(o.fetch,`${o.url}/object/${y}`,c,ke({headers:d},u?.duplex?{duplex:u.duplex}:{}));return{path:p,id:g.Id,fullPath:g.Key}})}async upload(e,t,i){return this.uploadOrUpdate("POST",e,t,i)}async uploadToSignedUrl(e,t,i,s){var o=this;const c=o._removeEmptyFolders(e),u=o._getFinalPath(c),d=new URL(o.url+`/object/upload/sign/${u}`);return d.searchParams.set("token",t),o.handleOperation(async()=>{let f;const p=ke(ke({},k0),s);let y=ke(ke({},o.headers),{"x-upsert":String(p.upsert)});const g=p.metadata;if(typeof Blob<"u"&&i instanceof Blob?(f=new FormData,f.append("cacheControl",p.cacheControl),g&&f.append("metadata",o.encodeMetadata(g)),f.append("",i)):typeof FormData<"u"&&i instanceof FormData?(f=i,f.has("cacheControl")||f.append("cacheControl",p.cacheControl),g&&!f.has("metadata")&&f.append("metadata",o.encodeMetadata(g))):(f=i,y["cache-control"]=`max-age=${p.cacheControl}`,y["content-type"]=p.contentType,g&&(y["x-metadata"]=o.toBase64(o.encodeMetadata(g))),(typeof ReadableStream<"u"&&f instanceof ReadableStream||f&&typeof f=="object"&&"pipe"in f&&typeof f.pipe=="function")&&!p.duplex&&(p.duplex="half")),s?.headers)for(const[b,w]of Object.entries(s.headers))y=Gc(y,b,w);return{path:c,fullPath:(await Am(o.fetch,d.toString(),f,ke({headers:y},p?.duplex?{duplex:p.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var i=this;return i.handleOperation(async()=>{let s=i._getFinalPath(e);const o=ke({},i.headers);t?.upsert&&(o["x-upsert"]="true");const c=await jn(i.fetch,`${i.url}/object/upload/sign/${s}`,{},{headers:o}),u=new URL(i.url+c.url),d=u.searchParams.get("token");if(!d)throw new cu("No token returned by API");return{signedUrl:u.toString(),path:e,token:d}})}async update(e,t,i){return this.uploadOrUpdate("PUT",e,t,i)}async move(e,t,i){var s=this;return s.handleOperation(async()=>await jn(s.fetch,`${s.url}/object/move`,{bucketId:s.bucketId,sourceKey:e,destinationKey:t,de
39stinationBucket:i?.destinationBucket},{headers:s.headers}))}async copy(e,t,i){var s=this;return s.handleOperation(async()=>({path:(await jn(s.fetch,`${s.url}/object/copy`,{bucketId:s.bucketId,sourceKey:e,destinationKey:t,destinationBucket:i?.destinationBucket},{headers:s.headers})).Key}))}async createSignedUrl(e,t,i){var s=this;return s.handleOperation(async()=>{let o=s._getFinalPath(e);const c=typeof i?.transform=="object"&&i.transform!==null&&Object.keys(i.transform).length>0;let u=await jn(s.fetch,`${s.url}/object/sign/${o}`,ke({expiresIn:t},c?{transform:i.transform}:{}),{headers:s.headers});const d=new URLSearchParams;i?.download&&d.set("download",i.download===!0?"":i.download),i?.cacheNonce!=null&&d.set("cacheNonce",String(i.cacheNonce));const f=d.toString();return{signedUrl:encodeURI(`${s.url}${u.signedURL}${f?`&${f}`:""}`)}})}async createSignedUrls(e,t,i){var s=this;return s.handleOperation(async()=>{const o=await jn(s.fetch,`${s.url}/object/sign/${s.bucketId}`,{expiresIn:t,paths:e},{headers:s.headers}),c=new URLSearchParams;i?.download&&c.set("download",i.download===!0?"":i.download),i?.cacheNonce!=null&&c.set("cacheNonce",String(i.cacheNonce));const u=c.toString();return o.map(d=>ke(ke({},d),{},{signedUrl:d.signedURL?encodeURI(`${s.url}${d.signedURL}${u?`&${u}`:""}`):null}))})}download(e,t,i){const s=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",o=new URLSearchParams;t?.transform&&this.applyTransformOptsToQuery(o,t.transform),t?.cacheNonce!=null&&o.set("cacheNonce",String(t.cacheNonce));const c=o.toString(),u=this._getFinalPath(e),d=()=>Bo(this.fetch,`${this.url}/${s}/${u}${c?`?${c}`:""}`,{headers:this.headers,noResolveJson:!0},i);return new nL(d,this.shouldThrowOnError)}async info(e){var t=this;const i=t._getFinalPath(e);return t.handleOperation(async()=>Tm(await Bo(t.fetch,`${t.url}/object/info/${i}`,{headers:t.headers})))}async exists(e){var t=this;const i=t._getFinalPath(e);try{return await eL(t.fetch,`${t.url}/object/${i}`,{headers:t.headers}),{data:!0,error:null}}catch(o){if(t.shouldThrowOnError)throw o;if(uu(o)){var s;const c=o instanceof Em?o.status:o instanceof dk?(s=o.originalError)===null||s===void 0?void 0:s.status:void 0;if(c!==void 0&&[400,404].includes(c))return{data:!1,error:o}}throw o}}getPublicUrl(e,t){const i=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 o=s.toString(),c=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${c}/public/${i}`)+(o?`?${o}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await up(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,i){var s=this;return s.handleOperation(async()=>{const o=ke(ke(ke({},iL),t),{},{prefix:e||""});return await jn(s.fetch,`${s.url}/object/list/${s.bucketId}`,o,{headers:s.headers},i)})}async listV2(e,t){var i=this;return i.handleOperation(async()=>{const s=ke({},e);return await jn(i.fetch,`${i.url}/object/list-v2/${i.bucketId}`,s,{headers:i.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const sL="2.106.2",Yo={"X-Client-Info":`storage-js/${sL}`};var aL=class extends ya{constructor(e,t={},i,s){const o=new URL(e);s?.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase."));const c=o.href.replace(/\/$/,""),u=ke(ke({},Yo),t);super(c,u,i,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const i=t.listBucketOptionsToQueryString(e);return await Bo(t.fetch,`${t.url}/bucket${i}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Bo(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var i=this;return i.handleOperation(async()=>await jn(i.fetch,`${i.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:i.headers}))}async updateBucket(e,t){var i=this;return i.handleOperation(async()=>await Am(i.fetch,`${i.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:i.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await jn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await up(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():""}},oL=class extends ya{constructor(e,t={},i){const s=e.replace(/\/$/,""),o=ke(ke({},Yo),t);super(s,o,i,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await jn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const i=new URLSearchParams;e?.limit!==void 0&&i.set("limit",e.limit.toString()),e?.offset!==void 0&&i.set("offset",e.offset.toString()),e?.sortColumn&&i.set("sortColumn",e.sortColumn),e?.sortOrder&&i.set("sortOrder",e.sortOrder),e?.search&&i.set("search",e.search);const s=i.toString(),o=s?`${t.url}/bucket?${s}`:`${t.url}/bucket`;return await Bo(t.fetch,o,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await up(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!J2(e))throw new cu("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const i=new H2({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),s=this.shouldThrowOnError;return new Proxy(i,{get(o,c){const u=o[c];return typeof u!="function"?u:async(...d)=>{try{return{data:await u.apply(o,d),error:null}}catch(f){if(s)throw f;return{data:null,error:f}}}}})}},lL=class extends ya{constructor(e,t={},i){const s=e.replace(/\/$/,""),o=ke(ke({},Yo),{},{"Content-Type":"application/json"},t);super(s,o,i,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await hn.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var i=this;return i.handleOperation(async()=>await hn.post(i.fetch,`${i.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:i.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await hn.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var i=this;return i.handleOperation(async()=>await hn.post(i.fetch,`${i.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:i.headers})||{})}},cL=class extends ya{constructor(e,t={},i){const s=e.replace(/\/$/,""),o=ke(ke({},Yo),{},{"Content-Type":"application/json"},t);super(s,o,i,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await hn.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await hn.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");
39if(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 hn.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await hn.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 hn.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},uL=class extends ya{constructor(e,t={},i){const s=e.replace(/\/$/,""),o=ke(ke({},Yo),{},{"Content-Type":"application/json"},t);super(s,o,i,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await hn.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await hn.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await hn.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await hn.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},dL=class extends uL{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new hL(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,i=this;return t().call(i,e)}async getBucket(e){var t=()=>super.getBucket,i=this;return t().call(i,e)}async listBuckets(e={}){var t=()=>super.listBuckets,i=this;return t().call(i,e)}async deleteBucket(e){var t=()=>super.deleteBucket,i=this;return t().call(i,e)}},hL=class extends lL{constructor(e,t,i,s){super(e,t,s),this.vectorBucketName=i}async createIndex(e){var t=()=>super.createIndex,i=this;return t().call(i,ke(ke({},e),{},{vectorBucketName:i.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,i=this;return t().call(i,ke(ke({},e),{},{vectorBucketName:i.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,i=this;return t().call(i,i.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,i=this;return t().call(i,i.vectorBucketName,e)}index(e){return new fL(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},fL=class extends cL{constructor(e,t,i,s,o){super(e,t,o),this.vectorBucketName=i,this.indexName=s}async putVectors(e){var t=()=>super.putVectors,i=this;return t().call(i,ke(ke({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async getVectors(e){var t=()=>super.getVectors,i=this;return t().call(i,ke(ke({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,i=this;return t().call(i,ke(ke({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,i=this;return t().call(i,ke(ke({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,i=this;return t().call(i,ke(ke({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}},mL=class extends aL{constructor(e,t={},i,s){super(e,t,i,s)}from(e){return new rL(this.url,this.headers,e,this.fetch)}get vectors(){return new dL(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new oL(this.url+"/iceberg",this.headers,this.fetch)}};const pk="2.106.2",sa=30*1e3,xm=3,Hh=xm*sa,pL="http://localhost:9999",gL="supabase.auth.token",yL={"X-Client-Info":`gotrue-js/${pk}`},Rm="X-Supabase-Api-Version",gk={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},vL=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,bL=600*1e3;class ga extends Error{constructor(t,i,s){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=i,this.code=s}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function re(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class wL extends ga{constructor(t,i,s){super(t,i,s),this.name="AuthApiError",this.status=i,this.code=s}}function SL(e){return re(e)&&e.name==="AuthApiError"}class Mn extends ga{constructor(t,i){super(t),this.name="AuthUnknownError",this.originalError=i}}class Oi extends ga{constructor(t,i,s,o){super(t,s,o),this.name=i,this.status=s}}class _t extends Oi{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function kc(e){return re(e)&&e.name==="AuthSessionMissingError"}class ea extends Oi{constructor(){super("Auth session or user missing","AuthInvalidToken
39ResponseError",500,void 0)}}class Ec extends Oi{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Tc extends Oi{constructor(t,i=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=i}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function _L(e){return re(e)&&e.name==="AuthImplicitGrantRedirectError"}class E0 extends Oi{constructor(t,i=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=i}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class kL extends Oi{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 Cm extends Oi{constructor(t,i){super(t,"AuthRetryableFetchError",i,void 0)}}function Fh(e){return re(e)&&e.name==="AuthRetryableFetchError"}class T0 extends Oi{constructor(t,i,s){super(t,"AuthWeakPasswordError",i,"weak_password"),this.reasons=s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Om extends Oi{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Yc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),A0=` 40\r=`.split(""),EL=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<A0.length;t+=1)e[A0[t].charCodeAt(0)]=-2;for(let t=0;t<Yc.length;t+=1)e[Yc[t].charCodeAt(0)]=t;return e})();function x0(e,t,i){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;i(Yc[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;i(Yc[s]),t.queuedBits-=6}}function yk(e,t,i){const s=EL[e];if(s>-1)for(t.queue=t.queue<<6|s,t.queuedBits+=6;t.queuedBits>=8;)i(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 R0(e){const t=[],i=u=>{t.push(String.fromCodePoint(u))},s={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},c=u=>{xL(u,s,i)};for(let u=0;u<e.length;u+=1)yk(e.charCodeAt(u),o,c);return t.join("")}function TL(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 AL(e,t){for(let i=0;i<e.length;i+=1){let s=e.charCodeAt(i);if(s>55295&&s<=56319){const o=(s-55296)*1024&65535;s=(e.charCodeAt(i+1)-56320&65535|o)+65536,i+=1}TL(s,t)}}function xL(e,t,i){if(t.utf8seq===0){if(e<=127){i(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&&i(t.codepoint)}}function pa(e){const t=[],i={queue:0,queuedBits:0},s=o=>{t.push(o)};for(let o=0;o<e.length;o+=1)yk(e.charCodeAt(o),i,s);return new Uint8Array(t)}function RL(e){const t=[];return AL(e,i=>t.push(i)),new Uint8Array(t)}function Xr(e){const t=[],i={queue:0,queuedBits:0},s=o=>{t.push(o)};return e.forEach(o=>x0(o,i,s)),x0(null,i,s),t.join("")}function CL(e){return Math.round(Date.now()/1e3)+e}function OL(){return Symbol("auth-callback")}const zt=()=>typeof window<"u"&&typeof document<"u",Fr={tested:!1,writable:!1},vk=()=>{if(!zt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Fr.tested)return Fr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Fr.tested=!0,Fr.writable=!0}catch{Fr.tested=!0,Fr.writable=!1}return Fr.writable};function LL(e){const t={},i=new URL(e);if(i.hash&&i.hash[0]==="#")try{new URLSearchParams(i.hash.substring(1)).forEac
40h((o,c)=>{t[c]=o})}catch{}return i.searchParams.forEach((s,o)=>{t[o]=s}),t}const bk=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),zL=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",aa=async(e,t,i)=>{await e.setItem(t,JSON.stringify(i))},Vr=async(e,t)=>{const i=await e.getItem(t);if(!i)return null;try{return JSON.parse(i)}catch{return null}},Lt=async(e,t)=>{await e.removeItem(t)};class du{constructor(){this.promise=new du.promiseConstructor((t,i)=>{this.resolve=t,this.reject=i})}}du.promiseConstructor=Promise;function Ac(e){const t=e.split(".");if(t.length!==3)throw new Om("Invalid JWT structure");for(let s=0;s<t.length;s++)if(!vL.test(t[s]))throw new Om("JWT not in base64url format");return{header:JSON.parse(R0(t[0])),payload:JSON.parse(R0(t[1])),signature:pa(t[2]),raw:{header:t[0],payload:t[1]}}}async function jL(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function DL(e,t){return new Promise((s,o)=>{(async()=>{for(let c=0;c<1/0;c++)try{const u=await e(c);if(!t(c,null,u)){s(u);return}}catch(u){if(!t(c,u)){o(u);return}}})()})}function ML(e){return("0"+e.toString(16)).substr(-2)}function IL(){const t=new Uint32Array(56);if(typeof crypto>"u"){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=i.length;let o="";for(let c=0;c<56;c++)o+=i.charAt(Math.floor(Math.random()*s));return o}return crypto.getRandomValues(t),Array.from(t,ML).join("")}async function NL(e){const i=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",i),o=new Uint8Array(s);return Array.from(o).map(c=>String.fromCharCode(c)).join("")}async function PL(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const i=await NL(e);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ta(e,t,i=!1){const s=IL();let o=s;i&&(o+="/recovery"),await aa(e,`${t}-code-verifier`,o);const c=await PL(s);return[c,s===c?"plain":"s256"]}const UL=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function BL(e){const t=e.headers.get(Rm);if(!t||!t.match(UL))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function $L(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 qL(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 HL=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function yi(e){if(!HL.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Ln(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function Vh(){const e={};return new Proxy(e,{get:(t,i)=>{if(i==="__isUserNotAvailableProxy")return!0;if(typeof i=="symbol"){const s=i.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 "${i}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function FL(e,t){return new Proxy(e,{get:(i,s,o)=>
40{if(s==="__isInsecureUserWarningProxy")return!0;if(typeof s=="symbol"){const c=s.toString();if(c==="Symbol(Symbol.toPrimitive)"||c==="Symbol(Symbol.toStringTag)"||c==="Symbol(util.inspect.custom)"||c==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(i,s,o)}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(i,s,o)}})}function C0(e){return JSON.parse(JSON.stringify(e))}const Gr=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)},VL=[502,503,504,520,521,522,523,524,530];async function O0(e){var t;if(!zL(e))throw new Cm(Gr(e),0);if(VL.includes(e.status))throw new Cm(Gr(e),e.status);let i;try{i=await e.json()}catch(c){throw new Mn(Gr(c),c)}let s;const o=BL(e);if(o&&o.getTime()>=gk["2024-01-01"].timestamp&&typeof i=="object"&&i&&typeof i.code=="string"?s=i.code:typeof i=="object"&&i&&typeof i.error_code=="string"&&(s=i.error_code),s){if(s==="weak_password")throw new T0(Gr(i),e.status,((t=i.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(s==="session_not_found")throw new _t}else if(typeof i=="object"&&i&&typeof i.weak_password=="object"&&i.weak_password&&Array.isArray(i.weak_password.reasons)&&i.weak_password.reasons.length&&i.weak_password.reasons.reduce((c,u)=>c&&typeof u=="string",!0))throw new T0(Gr(i),e.status,i.weak_password.reasons);throw new wL(Gr(i),e.status||500,s)}const KL=(e,t,i,s)=>{const o={method:e,headers:t?.headers||{}};return e==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t?.headers),o.body=JSON.stringify(s),Object.assign(Object.assign({},o),i))};async function de(e,t,i,s){var o;const c=Object.assign({},s?.headers);c[Rm]||(c[Rm]=gk["2024-01-01"].name),s?.jwt&&(c.Authorization=`Bearer ${s.jwt}`);const u=(o=s?.query)!==null&&o!==void 0?o:{};s?.redirectTo&&(u.redirect_to=s.redirectTo);const d=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",f=await GL(e,t,i+d,{headers:c,noResolveJson:s?.noResolveJson},{},s?.body);return s?.xform?s?.xform(f):{data:Object.assign({},f),error:null}}async function GL(e,t,i,s,o,c){const u=KL(t,s,o,c);let d;try{d=await e(i,Object.assign({},u))}catch(f){throw console.error(f),new Cm(Gr(f),0)}if(d.ok||await O0(d),s?.noResolveJson)return d;try{return await d.json()}catch(f){await O0(f)}}function kn(e){var t;let i=null;JL(e)&&(i=Object.assign({},e),e.expires_at||(i.expires_at=CL(e.expires_in)));const s=(t=e.user)!==null&&t!==void 0?t:typeof e?.id=="string"?e:null;return{data:{session:i,user:s},error:null}}function L0(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((i,s)=>i&&typeof s=="string",!0)&&(t.data.weak_password=e.weak_password),t}function ur(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function YL(e){return{data:e,error:null}}function WL(e){const{action_link:t,email_otp:i,hashed_token:s,redirect_to:o,verification_type:c}=e,u=lu(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),d={action_link:t,email_otp:i,hashed_token:s,redirect_to:o,verification_type:c},f=Object.assign({},u);return{data:{properties:d,user:f},error:null}}function z0(e){return e}function JL(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const Kh=["global","local","others"];class QL{_encodePathSegment(t){if(t==="."||t==="..")throw new ga("Invalid path segment");return encodeURIComponent(t)}constructor({url:t="",headers:i={},fetch:s,experimental:o}){this.url=t,this.headers=i,this.fetch=bk(s),this.experimental=o??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}
40async signOut(t,i=Kh[0]){if(Kh.indexOf(i)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Kh.join(", ")}`);try{return await de(this.fetch,"POST",`${this.url}/logout?scope=${i}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(s){if(re(s))return{data:null,error:s};throw s}}async inviteUserByEmail(t,i={}){try{return await de(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:i.data},headers:this.headers,redirectTo:i.redirectTo,xform:ur})}catch(s){if(re(s))return{data:{user:null},error:s};throw s}}async generateLink(t){try{const{options:i}=t,s=lu(t,["options"]),o=Object.assign(Object.assign({},s),i);return"newEmail"in s&&(o.new_email=s?.newEmail,delete o.newEmail),await de(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:WL,redirectTo:i?.redirectTo})}catch(i){if(re(i))return{data:{properties:null,user:null},error:i};throw i}}async createUser(t){try{return await de(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:ur})}catch(i){if(re(i))return{data:{user:null},error:i};throw i}}async listUsers(t){var i,s,o,c,u,d,f;try{const p={nextPage:null,lastPage:0,total:0},y=await de(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(i=t?.page)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:"",per_page:(c=(o=t?.perPage)===null||o===void 0?void 0:o.toString())!==null&&c!==void 0?c:""},xform:z0});if(y.error)throw y.error;const g=await y.json(),b=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,w=(f=(d=y.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&f!==void 0?f:[];return w.length>0&&(w.forEach(S=>{const k=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),T=JSON.parse(S.split(";")[1].split("=")[1]);p[`${T}Page`]=k}),p.total=parseInt(b)),{data:Object.assign(Object.assign({},g),p),error:null}}catch(p){if(re(p))return{data:{users:[]},error:p};throw p}}async getUserById(t){yi(t);try{return await de(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:ur})}catch(i){if(re(i))return{data:{user:null},error:i};throw i}}async updateUserById(t,i){yi(t);try{return await de(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:i,headers:this.headers,xform:ur})}catch(s){if(re(s))return{data:{user:null},error:s};throw s}}async deleteUser(t,i=!1){yi(t);try{return await de(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:i},xform:ur})}catch(s){if(re(s))return{data:{user:null},error:s};throw s}}async _listFactors(t){yi(t.userId);try{const{data:i,error:s}=await de(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:i,error:s}}catch(i){if(re(i))return{data:null,error:i};throw i}}async _deleteFactor(t){yi(t.userId),yi(t.id);try{return{data:await de(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(i){if(re(i))return{data:null,error:i};throw i}}async _listOAuthClients(t){var i,s,o,c,u,d,f;try{const p={nextPage:null,lastPage:0,total:0},y=await de(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(i=t?.page)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:"",per_page:(c=(o=t?.perPage)===null||o===void 0?void 0:o.toString())!==null&&c!==void 0?c:""},xform:z0});if(y.error)throw y.error;const g=await y.json(),b=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,w=(f=(d=y.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&f!==void 0?f:[];return w.length>0&&(w.forEach(S=>{const k=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),T=JSON.parse(S.split(";")[1].split("=")[1]);p[`${T}Page`]=k}),p.total=parseInt(b)),{data:Object.assign(Object.assign({},g),p),error:null}}catch(p){if(re(p))return{data:{clients:[]},error:p};throw p}}async _createOAuthClient(t){try{return await de(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(re(i))return{data:null,error:i};throw i}}async _getOAuthClient(t){try{const i=this._encodePathSegment(t);return await de(this.fetch,"GET",`${this.url}/admin/oauth/clients/${i}`,{headers:this.headers,xform:s=>({data:s,error:null})})}catch(i){if(re(i))return{data:null,error:i};throw i}}async _updateOAuthClient(t,i){try{const s=this._encodePathSegment(t);return await de(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${s}`,{body:i,headers:this.headers,xform:o=>({data:o,error:null})})}catch(s){if(re(s))return{data:null,error:s};throw s}}async _deleteOAuthClient(t){try{const i=this._encodePathSegment(t);
40return await de(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${i}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(re(i))return{data:null,error:i};throw i}}async _regenerateOAuthClientSecret(t){try{const i=this._encodePathSegment(t);return await de(this.fetch,"POST",`${this.url}/admin/oauth/clients/${i}/regenerate_secret`,{headers:this.headers,xform:s=>({data:s,error:null})})}catch(i){if(re(i))return{data:null,error:i};throw i}}async _listCustomProviders(t){try{const i={};return t?.type&&(i.type=t.type),await de(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:i,xform:s=>{var o;return{data:{providers:(o=s?.providers)!==null&&o!==void 0?o:[]},error:null}}})}catch(i){if(re(i))return{data:{providers:[]},error:i};throw i}}async _createCustomProvider(t){try{return await de(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(re(i))return{data:null,error:i};throw i}}async _getCustomProvider(t){try{const i=this._encodePathSegment(t);return await de(this.fetch,"GET",`${this.url}/admin/custom-providers/${i}`,{headers:this.headers,xform:s=>({data:s,error:null})})}catch(i){if(re(i))return{data:null,error:i};throw i}}async _updateCustomProvider(t,i){try{const s=this._encodePathSegment(t);return await de(this.fetch,"PUT",`${this.url}/admin/custom-providers/${s}`,{body:i,headers:this.headers,xform:o=>({data:o,error:null})})}catch(s){if(re(s))return{data:null,error:s};throw s}}async _deleteCustomProvider(t){try{const i=this._encodePathSegment(t);return await de(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${i}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(re(i))return{data:null,error:i};throw i}}async _adminListPasskeys(t){Ln(this.experimental),yi(t.userId);try{return await de(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(re(i))return{data:null,error:i};throw i}}async _adminDeletePasskey(t){Ln(this.experimental),yi(t.userId),yi(t.passkeyId);try{return await de(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(re(i))return{data:null,error:i};throw i}}}function j0(e={}){return{getItem:t=>e[t]||null,setItem:(t,i)=>{e[t]=i},removeItem:t=>{delete e[t]}}}const Vn={debug:!!(globalThis&&vk()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class wk extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class D0 extends wk{}async function XL(e,t,i){Vn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const s=new globalThis.AbortController;let o;t>0&&(o=setTimeout(()=>{s.abort(),Vn.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 c=>{if(c){clearTimeout(o),Vn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,c.name);try{return await i()}finally{Vn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,c.name)}}else{if(t===0)throw Vn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new D0(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Vn.debug)try{const u=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(u,null," "))}catch(u){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",u)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(o),await i()}})}catch(c){if(t>0&&clearTimeout(o),c!==null&&typeof c=="object"&&"name"in c&&c.name==="AbortError"&&t>0){if(s.signal.aborted)return Vn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@
40supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async u=>{if(u){Vn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,u.name);try{return await i()}finally{Vn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,u.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await i()}));throw Vn.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new D0(`Lock "${e}" was released because another request stole it`)}throw c}}function ZL(){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 Sk(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function ez(e){return parseInt(e,16)}function tz(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,s=>s.toString(16).padStart(2,"0")).join("")}function nz(e){var t;const{chainId:i,domain:s,expirationTime:o,issuedAt:c=new Date,nonce:u,notBefore:d,requestId:f,resources:p,scheme:y,uri:g,version:b}=e;{if(!Number.isInteger(i))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${i}`);if(!s)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(u&&u.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${u}`);if(!g)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(b!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${b}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 41`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const w=Sk(e.address),S=y?`${y}://${s}`:s,k=e.statement?`${e.statement} 42`:"",T=`${S} wants you to sign in with your Ethereum account: 43${w} 44 45${k}`;let E=`URI: ${g} 46Version: ${b} 47Chain ID: ${i}${u?` 48Nonce: ${u}`:""} 49Issued At: ${c.toISOString()}`;if(o&&(E+=` 50Expiration Time: ${o.toISOString()}`),d&&(E+=` 51Not Before: ${d.toISOString()}`),f&&(E+=` 52Request ID: ${f}`),p){let L=` 53Resources:`;for(const C of p){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}`);L+=` 54- ${C}`}E+=L}return`${T} 55${E}`}class ht extends Error{constructor({message:t,code:i,cause:s,name:o}){var c;super(t,{cause:s}),this.__isWebAuthnError=!0,this.name=(c=o??(s instanceof Error?s.name:void 0))!==null&&c!==void 0?c:"Unknown Error",this.code=i}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Wc extends ht{constructor(t,i){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:i,message:t}),this.name="WebAuthnUnknownError",this.originalError=i}}function iz({error:e,options:t}){var i,s,o;const{publicKey:c}=t;if(!c)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ht({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((i=c.authenticatorSelection)===null||i===void 0?void 0:i.requireResidentKey)===!0)return new ht({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=c.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new ht({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((o=c.authenticatorSelection)===null||o===void 0?void 0:o.userVerification)==="required")return new ht({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 ht({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new ht({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return c.pubKeyCredParams.filter(d=>d.type==="public-key").length===0?new ht({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new ht({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const u=window.location.hostname;if(_k(u)){if(c.rp.id!==u)return new ht({message:`The RP ID "${c.rp.id}
55" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ht({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(c.user.id.byteLength<1||c.user.id.byteLength>64)return new ht({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 ht({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 ht({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function rz({error:e,options:t}){const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ht({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new ht({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const s=window.location.hostname;if(_k(s)){if(i.rpId!==s)return new ht({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ht({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new ht({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 ht({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class sz{createNewAbortSignal(){if(this.controller){const i=new Error("Cancelling existing WebAuthn API call for new one");i.name="AbortError",this.controller.abort(i)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const Lm=new sz;function M0(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:i,excludeCredentials:s}=e,o=lu(e,["challenge","user","excludeCredentials"]),c=pa(t).buffer,u=Object.assign(Object.assign({},i),{id:pa(i.id).buffer}),d=Object.assign(Object.assign({},o),{challenge:c,user:u});if(s&&s.length>0){d.excludeCredentials=new Array(s.length);for(let f=0;f<s.length;f++){const p=s[f];d.excludeCredentials[f]=Object.assign(Object.assign({},p),{id:pa(p.id).buffer,type:p.type||"public-key",transports:p.transports})}}return d}function I0(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:i}=e,s=lu(e,["challenge","allowCredentials"]),o=pa(t).buffer,c=Object.assign(Object.assign({},s),{challenge:o});if(i&&i.length>0){c.allowCredentials=new Array(i.length);for(let u=0;u<i.length;u++){const d=i[u];c.allowCredentials[u]=Object.assign(Object.assign({},d),{id:pa(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return c}function N0(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const i=e;return{id:e.id,rawId:e.id,response:{attestationObject:Xr(new Uint8Array(e.response.attestationObject)),clientDataJSON:Xr(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=i.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function P0(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const i=e,s=e.getClientExtensionResults(),o=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Xr(new Uint8Array(o.authenticatorData)),clientDataJSON:Xr(new Uint8Array(o.clientDataJSON)),signature:Xr(new
55Uint8Array(o.signature)),userHandle:o.userHandle?Xr(new Uint8Array(o.userHandle)):void 0},type:"public-key",clientExtensionResults:s,authenticatorAttachment:(t=i.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function _k(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Jc(){var e,t;return!!(zt()&&"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 kk(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Wc("Browser returned unexpected credential type",t)}:{data:null,error:new Wc("Empty credential response",t)}}catch(t){return{data:null,error:iz({error:t,options:e})}}}async function Ek(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Wc("Browser returned unexpected credential type",t)}:{data:null,error:new Wc("Empty credential response",t)}}catch(t){return{data:null,error:rz({error:t,options:e})}}}const az={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},oz={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Qc(...e){const t=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),i=o=>o instanceof ArrayBuffer||ArrayBuffer.isView(o),s={};for(const o of e)if(o)for(const c in o){const u=o[c];if(u!==void 0)if(Array.isArray(u))s[c]=u;else if(i(u))s[c]=u;else if(t(u)){const d=s[c];t(d)?s[c]=Qc(d,u):s[c]=Qc(u)}else s[c]=u}return s}function lz(e,t){return Qc(az,e,t||{})}function cz(e,t){return Qc(oz,e,t||{})}class uz{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:i,friendlyName:s,signal:o},c){var u;try{const{data:d,error:f}=await this.client.mfa.challenge({factorId:t,webauthn:i});if(!d)return{data:null,error:f};const p=o??Lm.createNewAbortSignal();if(d.webauthn.type==="create"){const{user:y}=d.webauthn.credential_options.publicKey;if(!y.name){const g=s;if(g)y.name=`${y.id}:${g}`;else{const w=(await this.client.getUser()).data.user,S=((u=w?.user_metadata)===null||u===void 0?void 0:u.name)||w?.email||w?.id||"User";y.name=`${y.id}:${S}`}}y.displayName||(y.displayName=y.name)}switch(d.webauthn.type){case"create":{const y=lz(d.webauthn.credential_options.publicKey,c?.create),{data:g,error:b}=await kk({publicKey:y,signal:p});return g?{data:{factorId:t,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:g}},error:null}:{data:null,error:b}}case"request":{const y=cz(d.webauthn.credential_options.publicKey,c?.request),{data:g,error:b}=await Ek(Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:y,signal:p}));return g?{data:{factorId:t,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:g}},error:null}:{data:null,error:b}}}}catch(d){return re(d)?{data:null,error:d}:{data:null,error:new Mn("Unexpected error in challenge",d)}}}async _verify({challengeId:t,factorId:i,webauthn:s}){return this.client.mfa.verify({factorId:i,challengeId:t,webauthn:s})}async _authenticate({factorId:t,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},c){if(!i)return{data:null,error:new ga("rpId is required for WebAuthn authentication")};try{if(!Jc())return{data:null,error:new Mn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this.challenge({factorId:t,webauthn:{rpId:i,rpOrigins:s},signal:o},{request:c});if(!u)return{data:null,error:d};const{webauthn:f}=u;return this._verify({factorId:t,challengeId:u.challengeId,webauthn:{type:f.type,rpId:i,rpOrigins:s,credential_response:f.credential_response}})}catch(u){return re(u)?{data:null,error:u}:{data:null,error:new Mn("Unexpected error in authenticate",u)}}}async _register({friendlyName:t,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},c){if(!i)return{data:null,error:new ga("rpId is required for WebAuthn registration")};try{if(!Jc())return{data:null,error:new Mn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this._enroll({friendlyName:t});if(!u)return await this.client.mfa.listFactors().then(y=>{var g;return(g=y.data)===null||g===void 0?void 0:g.all.find(b=>b.factor_type==="webauthn"&&b.friendly_name===t&&b.status!=="unverified")}).then(y=>y?this.client.mfa.unenroll({factorId:y?.id}):void 0),{data:null,error:d};const{data:f,error:p}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:i,rpOrigins:s},signal:o},{create:c});return f?this._verify({factorId:u.id,challengeId:f.challengeId,webauthn:{rpId:i,rpOrigins:s,type:f.webauthn.type,credential_response:f.webauthn.credential_response}}):{data:null,error:p}}catch(u){return re(u)?{data:null,error:u}:{data:null,error:new Mn("Unexpected error in register",u)}}}}ZL();const dz={url:pL,storageKey:gL,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:yL,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function U0(e,t,i){return await i()}const na={};class $o{get jwks(){var t,i;return(i=(t=na[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&i!==void 0?i:{keys:[]}}set jwks(t){na[this.storageKey]=Object.assign(Object.assign({},na[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,i;return(i=(t=na[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&i!==void 0?i:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){na[this.storageKey]=Object.assign(Object.assign({},na[this.storageKey]),{cachedAt:t})}constructor(t){var i,s,o,c;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const u=Object.assign(Object.assign({},dz),t);if(this.storageKey=u.storageKey,this.instanceID=(i=$o.nextInstanceID[this.storageKey])!==null&&i!==void 0?i:0,$o.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!u.debug,typeof u.debug=="function"&&(this.logger=u.debug),this.instanceID>
550&&zt()){const d=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(d),this.logDebugMessages&&console.trace(d)}if(this.persistSession=u.persistSession,this.autoRefreshToken=u.autoRefreshToken,this.experimental=(s=u.experimental)!==null&&s!==void 0?s:{},this.admin=new QL({url:u.url,headers:u.headers,fetch:u.fetch,experimental:this.experimental}),this.url=u.url,this.headers=u.headers,this.fetch=bk(u.fetch),this.lock=u.lock||U0,this.detectSessionInUrl=u.detectSessionInUrl,this.flowType=u.flowType,this.hasCustomAuthorizationHeader=u.hasCustomAuthorizationHeader,this.throwOnError=u.throwOnError,this.lockAcquireTimeout=u.lockAcquireTimeout,u.lock?this.lock=u.lock:this.persistSession&&zt()&&(!((o=globalThis?.navigator)===null||o===void 0)&&o.locks)?this.lock=XL:this.lock=U0,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 uz(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(u.storage?this.storage=u.storage:vk()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=j0(this.memoryStorage)),u.userStorage&&(this.userStorage=u.userStorage)):(this.memoryStorage={},this.storage=j0(this.memoryStorage)),zt()&&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)}(c=this.broadcastChannel)===null||c===void 0||c.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)}})}u.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} (${pk}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let i={},s="none";if(zt()&&(i=LL(window.location.href),this._isImplicitGrantCallback(i)?s="implicit":await this._isPKCECallback(i)&&(s="pkce")),zt()&&this.detectSessionInUrl&&s!=="none"){const{data:o,error:c}=await this._getSessionFromURL(i,s);if(c){if(this._debug("#_initialize()","error detecting session from URL",c),_L(c)){const f=(t=c.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:c}}return{error:c}}const{session:u,redirectType:d}=o;return this._debug("#_initialize()","detected session in URL",u,"redirect type",d),await this._saveSession(u),setTimeout(async()=>{d==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(i){return re(i)?this._returnResult({error:i}):this._returnResult({error:new Mn("Unexpected error during initialization",i)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var i,s,o;try{const c=await de(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(i=t?.options)===null||i===void 0?void 0:i.data)!==null&&s!==void 0?s:{}
55,gotrue_meta_security:{captcha_token:(o=t?.options)===null||o===void 0?void 0:o.captchaToken}},xform:kn}),{data:u,error:d}=c;if(d||!u)return this._returnResult({data:{user:null,session:null},error:d});const f=u.session,p=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:p,session:f},error:null})}catch(c){if(re(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signUp(t){var i,s,o;try{let c;if("email"in t){const{email:y,password:g,options:b}=t;let w=null,S=null;this.flowType==="pkce"&&([w,S]=await ta(this.storage,this.storageKey)),c=await de(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:b?.emailRedirectTo,body:{email:y,password:g,data:(i=b?.data)!==null&&i!==void 0?i:{},gotrue_meta_security:{captcha_token:b?.captchaToken},code_challenge:w,code_challenge_method:S},xform:kn})}else if("phone"in t){const{phone:y,password:g,options:b}=t;c=await de(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:y,password:g,data:(s=b?.data)!==null&&s!==void 0?s:{},channel:(o=b?.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:b?.captchaToken}},xform:kn})}else throw new Ec("You must provide either an email or phone number and a password");const{data:u,error:d}=c;if(d||!u)return await Lt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:d});const f=u.session,p=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:p,session:f},error:null})}catch(c){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),re(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signInWithPassword(t){try{let i;if("email"in t){const{email:c,password:u,options:d}=t;i=await de(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:c,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:L0})}else if("phone"in t){const{phone:c,password:u,options:d}=t;i=await de(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:c,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:L0})}else throw new Ec("You must provide either an email or phone number and a password");const{data:s,error:o}=i;if(o)return this._returnResult({data:{user:null,session:null},error:o});if(!s||!s.session||!s.user){const c=new ea;return this._returnResult({data:{user:null,session:null},error:c})}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:o})}catch(i){if(re(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOAuth(t){var i,s,o,c;return await this._handleProviderSignIn(t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(s=t.options)===null||s===void 0?void 0:s.scopes,queryParams:(o=t.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(c=t.options)===null||c===void 0?void 0:c.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:i}=t;switch(i){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${i}"`)}}async signInWithEthereum(t){var i,s,o,c,u,d,f,p,y,g,b;let w,S;if("message"in t)w=t.message,S=t.signature;else{const{chain:k,wallet:T,statement:E,options:L}=t;let C;if(zt())if(typeof T=="object")C=T;else{const ee=window;if("ethereum"in ee&&typeof ee.ethereum=="object"&&"request"in ee.ethereum&&typeof ee.ethereum.request=="function")C=ee.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 T!="object"||!L?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");C=T}const $=new URL((i=L?.url)!==null&&i!==void 0?i:window.location.href),Q=await C.request({method:"eth_requestAccounts"}).then(ee=>ee).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!Q||Q.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const P=Sk(Q[0]);let j=(s=L?.signInWithEthereum)===null||s===void 0?void 0:s.chainId;if(!j){const ee=await C.request({method:"eth_chainId"});j=ez(ee)}const U={domain:$.host,address:P,statement:E,uri:$.href,version:"1",chainId:j,nonce:(o=L?.signInWithEthereum)===null||o===void 0?void 0:o.nonce,issuedAt:(u=(c=L?.signInWithEthereum)===null||c===void 0?void 0:c.issuedAt)!==null&&u!==void 0?u:new Date,expirationTime:(d=L?.signInWithEthereum)===null||d===void 0?void 0:d.expirationTime,notBefore:(f=L?.signInWithEthereum)===null||f===void 0?void 0:f.notBefore,requestId:(p=L?.signInWithEthereum)===null||p===void 0?void 0:p.requestId,resources:(y=L?.signInWithEthereum)===null||y===void 0?void 0:y.resources};w=nz(U),S=await C.request({method:"personal_sign",params:[tz(w),P]})}try{const{data:k,error:T}=await de(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:w,signature:S},!((g=t.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(b=t.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:kn});if(T)throw T;if(!k||!k.session||!k.user){const E=new ea;return this._returnResult({data:{user:null,session:null},error:E})}return k.session&&(await this._saveSession(k.session),await this._notifyAllSubscribers("SIGNED_IN",k.session)),this._returnResult({data:Object.assign({},k),error:T})}catch(k){if(re(k))return this._returnResult({data:{user:null,session:null},error:k});throw k}}async signInWithSolana(t){var i,s,o,c,u,d,f,p,y,g,b,w;let S,k;if("message"in t)S=t.message,k=t.signature;else{const{chain:T,wallet:E,statement:L,options:C}=t;let $;if(zt())if(typeof E=="object")$=E;else{const P=window;if("solana"in P&&typeof P.solana=="object"&&("signIn"in P.solana&&typeof P.solana.signIn=="function"||"signMessage"in P.solana&&typeof P.solana.signMessage=="function"))$=P.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof E!="object"||!C?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");$=E}const Q=new URL((i=C?.url)!==null&&i!==void 0?i:window.location.href);if("signIn"in $&&$.signIn){const P=await $.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},C?.signInWithSolana),{version:"1",domain:Q.host,uri:Q.href}),L?{statement:L}:null));let j;if(Array.isArray(P)&&P[0]&&typeof P[0]=="object")j=P[0];else if(P&&typeof P=="object"&&"signedMessage"in P&&"signature"in P)j=P;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in j&&"signature"in j&&(typeof j.signedMessage=="string"||j.signedMessage instanceof Uint8Array)&&j.signature instanceof Uint8Array)S=typeof j.signedMessage=="string"?j.signedMessage:new TextDecoder().decode(j.signedMessage),k=j.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in $)||typeof $.signMessage!="function"||!("publicKey"in $)||typeof $!="object"||!$.publicKey||!("toBase58"in $.publicKey)||typeof $.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");S=[`${Q.host} wants you to sign in with your Solana account:`,$.publicKey.toBase58(),...L?["",L,""]:[""],"Version: 1",`URI: ${Q.href}`,`Issued At: ${(o=(s=C?.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date().toISOString()}`,...!((c=C?.signInWithSolana)===null||c===void 0)&&c.notBefore?[`Not Before: ${C.signInWithSolana.notBefore}`]:[],...!((u=C?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${C.signInWithSolana.expirationTime}`]:[],...!((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}`]:[],...!((p=C?.signInWithSolana)===null||p===void 0)&&p.requestId?[`Request ID: ${C.signInWithSolana.requestId}`]:[],...!((g=(y=C?.signInWithSolana)===null||y===void 0?void 0:y.resources)===null||g===void 0)&&g.length?["Resources",...C.signInWithSolana.resources.map(j=>`- ${j}`)]:[]].join(` 56`);const P=await $.signMessage(new TextEncoder().encode(S),"utf8");if(!P||!(P instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");k=P}}try{const{data:T,error:E}=await de(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:S,signature:Xr(k)},!((b=t.options)===null||b===void 0)&&b.captchaToken?{gotrue_meta_security:{captcha_token:(w=t.options)===null||w===void 0?void 0:w.captchaToken}}:null),xform:kn});if(E)throw E;if(!T||!T.session||!T.user){const L=new ea;return this._returnResult({data:{user:null,session:null},error:L})}
56return T.session&&(await this._saveSession(T.session),await this._notifyAllSubscribers("SIGNED_IN",T.session)),this._returnResult({data:Object.assign({},T),error:E})}catch(T){if(re(T))return this._returnResult({data:{user:null,session:null},error:T});throw T}}async _exchangeCodeForSession(t){const i=await Vr(this.storage,`${this.storageKey}-code-verifier`),[s,o]=(i??"").split("/");try{if(!s&&this.flowType==="pkce")throw new kL;const{data:c,error:u}=await de(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:s},xform:kn});if(await Lt(this.storage,`${this.storageKey}-code-verifier`),u)throw u;if(!c||!c.session||!c.user){const d=new ea;return this._returnResult({data:{user:null,session:null,redirectType:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers(o==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c.session)),this._returnResult({data:Object.assign(Object.assign({},c),{redirectType:o??null}),error:u})}catch(c){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),re(c))return this._returnResult({data:{user:null,session:null,redirectType:null},error:c});throw c}}async signInWithIdToken(t){try{const{options:i,provider:s,token:o,access_token:c,nonce:u}=t,d=await de(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:o,access_token:c,nonce:u,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:kn}),{data:f,error:p}=d;if(p)return this._returnResult({data:{user:null,session:null},error:p});if(!f||!f.session||!f.user){const y=new ea;return this._returnResult({data:{user:null,session:null},error:y})}return f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("SIGNED_IN",f.session)),this._returnResult({data:f,error:p})}catch(i){if(re(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOtp(t){var i,s,o,c,u;try{if("email"in t){const{email:d,options:f}=t;let p=null,y=null;this.flowType==="pkce"&&([p,y]=await ta(this.storage,this.storageKey));const{error:g}=await de(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,data:(i=f?.data)!==null&&i!==void 0?i:{},create_user:(s=f?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},code_challenge:p,code_challenge_method:y},redirectTo:f?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:g})}if("phone"in t){const{phone:d,options:f}=t,{data:p,error:y}=await de(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:d,data:(o=f?.data)!==null&&o!==void 0?o:{},create_user:(c=f?.shouldCreateUser)!==null&&c!==void 0?c:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},channel:(u=f?.channel)!==null&&u!==void 0?u:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:p?.message_id},error:y})}throw new Ec("You must provide either an email or phone number.")}catch(d){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),re(d))return this._returnResult({data:{user:null,session:null},error:d});throw d}}async verifyOtp(t){var i,s;try{let o,c;"options"in t&&(o=(i=t.options)===null||i===void 0?void 0:i.redirectTo,c=(s=t.options)===null||s===void 0?void 0:s.captchaToken);const{data:u,error:d}=await de(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:c}}),redirectTo:o,xform:kn});if(d)throw d;if(!u)throw new Error("An error occurred on token verification.");const f=u.session,p=u.user;return f?.access_token&&(await this._saveSession(f),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",f)),this._returnResult({data:{user:p,session:f},error:null})}catch(o){if(re(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithSSO(t){var i,s,o,c,u;try{let d=null,f=null;this.flowType==="pkce"&&([d,f]=await ta(this.storage,this.storageKey));const p=await de(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=(i=t.options)===null||i===void 0?void 0:i.redirectTo)!==null&&s!==void 0?s:void 0}
56),!((o=t?.options)===null||o===void 0)&&o.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:YL});return!((c=p.data)===null||c===void 0)&&c.url&&zt()&&!(!((u=t.options)===null||u===void 0)&&u.skipBrowserRedirect)&&window.location.assign(p.data.url),this._returnResult(p)}catch(d){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),re(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:i},error:s}=t;if(s)throw s;if(!i)throw new _t;const{error:o}=await de(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:i.access_token});return this._returnResult({data:{user:null,session:null},error:o})})}catch(t){if(re(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const i=`${this.url}/resend`;if("email"in t){const{email:s,type:o,options:c}=t,{error:u}=await de(this.fetch,"POST",i,{headers:this.headers,body:{email:s,type:o,gotrue_meta_security:{captcha_token:c?.captchaToken}},redirectTo:c?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:u})}else if("phone"in t){const{phone:s,type:o,options:c}=t,{data:u,error:d}=await de(this.fetch,"POST",i,{headers:this.headers,body:{phone:s,type:o,gotrue_meta_security:{captcha_token:c?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:d})}throw new Ec("You must provide either an email or phone number and a type")}catch(i){if(re(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async i=>i))}async _acquireLock(t,i){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await s,await i()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}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=i();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.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 i=await this.__loadSession();return await t(i)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const i=await Vr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?t=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const s=t.expires_at?t.expires_at*1e3-Date.now()<Hh:!1;if(this._debug("#__loadSession()",`session has${s?"":" not"} expired`,"expires_at",t.expires_at),!s){if(this.userStorage){const u=await Vr(this.userStorage,this.storageKey+"-user");u?.user?t.user=u.user:t.user=Vh()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};t.user=FL(t.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:o,error:c}=await this._callRefreshToken(t.refresh_token);return c?this._returnResult({data:{session:null},error:c}):this._returnResult({data:{session:o},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const i=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return i.data.user&&(this.suppressGetSessionWarning=!0),i}async _getUser(t){try{return t?await de(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:ur}):await this._useSession(async i=>{var s,o,c;const{data:u,error:d}=i;if(d)throw d;return!(!((s=u.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new _t}:await de(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(c=(o=u.session)===null||o===void 0?void 0:o.access_token)!==null&&c!==void 0?c:void 0,xform:ur})})}catch(i){if(re(i))return kc(i)&&(await this._removeSession(),await Lt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:i});throw i}}async updateUser(t,i={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,i))}async _updateUser(t,i={}){try{return await this._useSession(async s=>{const{data:o,error:c}=s;if(c)throw c;if(!o.session)throw new _t;const u=o.session;let d=null,f=null;this.flowType==="pkce"&&t.email!=null&&([d,f]=await ta(this.storage,this.storageKey));const{data:p,error:y}=await de(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:i?.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:d,code_challenge_method:f}),jwt:u.access_token,xform:ur});if(y)throw y;return u.user=p.user,await this._saveSession(u),await this._notifyAllSubscribers("USER_UPDATED",u),this._returnResult({data:{user:u.user},error:null})})}catch(s){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),re(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 _t;const i=Date.now()/1e3;let s=i,o=!0,c=null;const{payload:u}=Ac(t.access_token);if(u.exp&&(s=u.exp,o=s<=i),o){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};c=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});c={access_token:t.access_token,refresh_token:t.refresh_token,user:d.user,token_type:"bearer",expires_in:s-i,expires_at:s},await this._saveSession(c),await this._notifyAllSubscribers("SIGNED_IN",c)}return this._returnResult({data:{user:c.user,session:c},error:null})}catch(i){if(re(i))return this._returnResult({data:{session:null,user:null},error:i});throw i}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async i=>{var s;if(!t){const{data:u,error:d}=i;if(d)throw d;t=(s=u.session)!==null&&s!==void 0?s:void 0}if(!t?.refresh_token)throw new _t;const{data:o,error:c}=await this._callRefreshToken(t.refresh_token);return c?this._returnResult({data:{user:null,session:null},error:c}):o?this._returnResult({data:{user:o.user,session:o},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(i){if(re(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async _getSessionFromURL(t,i){var s;try{if(!zt())throw new Tc("No browser detected.");
56if(t.error||t.error_description||t.error_code)throw new Tc(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(i){case"implicit":if(this.flowType==="pkce")throw new E0("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Tc("Not a valid implicit grant flow url.");break;default:}if(i==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new E0("No code detected.");const{data:C,error:$}=await this._exchangeCodeForSession(t.code);if($)throw $;const Q=new URL(window.location.href);return Q.searchParams.delete("code"),window.history.replaceState(window.history.state,"",Q.toString()),{data:{session:C.session,redirectType:(s=C.redirectType)!==null&&s!==void 0?s:null},error:null}}const{provider_token:o,provider_refresh_token:c,access_token:u,refresh_token:d,expires_in:f,expires_at:p,token_type:y}=t;if(!u||!f||!d||!y)throw new Tc("No session defined in URL");const g=Math.round(Date.now()/1e3),b=parseInt(f);let w=g+b;p&&(w=parseInt(p));const S=w-g;S*1e3<=sa&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${S}s, should have been closer to ${b}s`);const k=w-b;g-k>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",k,w,g):g-k<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",k,w,g);const{data:T,error:E}=await this._getUser(u);if(E)throw E;const L={provider_token:o,provider_refresh_token:c,access_token:u,expires_in:b,expires_at:w,refresh_token:d,token_type:y,user:T.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:L,redirectType:t.type},error:null})}catch(o){if(re(o))return this._returnResult({data:{session:null,redirectType:null},error:o});throw o}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const i=await Vr(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&i)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async i=>{var s;const{data:o,error:c}=i;if(c&&!kc(c))return this._returnResult({error:c});const u=(s=o.session)===null||s===void 0?void 0:s.access_token;if(u){const{error:d}=await this.admin.signOut(u,t);if(d&&!(SL(d)&&(d.status===404||d.status===401||d.status===403)||kc(d)))return this._returnResult({error:d})}return t!=="others"&&(await this._removeSession(),await Lt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const i=OL(),s={id:i,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",i),this.stateChangeEmitters.delete(i)}};return this._debug("#onAuthStateChange()","registered callback with id",i),this.stateChangeEmitters.set(i,s),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(i)})))(),{data:{subscription:s}}}async _emitInitialSession(t){return await this._useSession(async i=>{var s,o;try{const{data:{session:c},error:u}=i;if(u)throw u;await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",c)),this._debug("INITIAL_SESSION","callback id",t,"session",c)}catch(c){await((o=this.stateChangeEmitters.get(t))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",c),kc(c)?console.warn(c):console.error(c)}})}async resetPasswordForEmail(t,i={}){let s=null,o=null;this.flowType==="pkce"&&([s,o]=await ta(this.storage,this.storageKey,!0));try{return await de(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:s,code_challenge_method:o,gotrue_meta_security:{captcha_token:i.captchaToken}},headers:this.headers,redirectTo:i.redirectTo})}catch(c){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),re(c))return this._returnResult({data:null,error:c});throw c}}async getUserIdentities(){var t;try{const{data:i,error:s}=await this.getUser();if(s)throw s;return this._returnResult({data:{identities:(t=i.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var i;try{const{data:s,error:o}=await this._useSession(async c=>{var u,d,f,p,y;const{data:g,error:b}=c;if(b)throw b;const w=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(u=t.options)===null||u===void 0?void 0:u.redirectTo,scopes:(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 de(this.fetch,"GET",w,{headers:this.headers,jwt:(y=(p=g.session)===null||p===void 0?void 0:p.access_token)!==null&&y!==void 0?y:void 0})});if(o)throw o;return zt()&&!(!((i=t.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(s?.url),this._returnResult({data:{provider:t.provider,url:s?.url},error:null})}catch(s){if(re(s))return this._returnResult({data:{provider:t.provider,url:null},error:s});throw s}}async linkIdentityIdToken(t){return await this._useSession(async i=>{var s;try{const{error:o,data:{session:c}}=i;if(o)throw o;const{options:u,provider:d,token:f,access_token:p,nonce:y}=t,g=await de(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(s=c?.access_token)!==null&&s!==void 0?s:void 0,body:{provider:d,id_token:f,access_token:p,nonce:y,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:kn}),{data:b,error:w}=g;return w?this._returnResult({data:{user:null,session:null},error:w}
56):!b||!b.session||!b.user?this._returnResult({data:{user:null,session:null},error:new ea}):(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("USER_UPDATED",b.session)),this._returnResult({data:b,error:w}))}catch(o){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),re(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}})}async unlinkIdentity(t){try{return await this._useSession(async i=>{var s,o;const{data:c,error:u}=i;if(u)throw u;return await de(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(o=(s=c.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0})})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}async _refreshAccessToken(t){const i=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{const s=Date.now();return await DL(async o=>(o>0&&await jL(200*Math.pow(2,o-1)),this._debug(i,"refreshing attempt",o),await de(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:kn})),(o,c)=>{const u=200*Math.pow(2,o);return c&&Fh(c)&&Date.now()+u-s<sa})}catch(s){if(this._debug(i,"error",s),re(s))return this._returnResult({data:{session:null,user:null},error:s});throw s}finally{this._debug(i,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,i){const s=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:i.redirectTo,scopes:i.scopes,queryParams:i.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",i,"url",s),zt()&&!i.skipBrowserRedirect&&window.location.assign(s),{data:{provider:t,url:s},error:null}}async _recoverAndRefresh(){var t,i;const s="#_recoverAndRefresh()";this._debug(s,"begin");try{const o=await Vr(this.storage,this.storageKey);if(o&&this.userStorage){let u=await Vr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:o.user},await aa(this.userStorage,this.storageKey+"-user",u)),o.user=(t=u?.user)!==null&&t!==void 0?t:Vh()}else if(o&&!o.user&&!o.user){const u=await Vr(this.storage,this.storageKey+"-user");u&&u?.user?(o.user=u.user,await Lt(this.storage,this.storageKey+"-user"),await aa(this.storage,this.storageKey,o)):o.user=Vh()}if(this._debug(s,"session from storage",o),!this._isValidSession(o)){this._debug(s,"session is not valid"),o!==null&&await this._removeSession();return}const c=((i=o.expires_at)!==null&&i!==void 0?i:1/0)*1e3-Date.now()<Hh;if(this._debug(s,`session has${c?"":" not"} expired with margin of ${Hh}s`),c){if(this.autoRefreshToken&&o.refresh_token){const{error:u}=await this._callRefreshToken(o.refresh_token);u&&(console.error(u),Fh(u)||(this._debug(s,"refresh failed with a non-retryable error, removing the session",u),await this._removeSession()))}}else if(o.user&&o.user.__isUserNotAvailableProxy===!0)try{const{data:u,error:d}=await this._getUser(o.access_token);!d&&u?.user?(o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)):this._debug(s,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(s,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",o)}catch(o){this._debug(s,"error",o),console.error(o);return}finally{this._debug(s,"end")}}async _callRefreshToken(t){var i,s;if(!t)throw new _t;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new du;const{data:c,error:u}=await this._refreshAccessToken(t);if(u)throw u;if(!c.session)throw new _t;await this._saveSession(c.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",c.session);const d={data:c.session,error:null};return this.refreshingDeferred.resolve(d),d}catch(c){if(this._debug(o,"error",c),re(c)){const u={data:null,error:c};return Fh(c)||await this._removeSession(),(i=this.refreshingDeferred)===null||i===void 0||i.resolve(u),u}throw(s=this.refreshingDeferred)===null||s===void 0||s.reject(c),c}finally{this.refreshingDeferred=null,this._debug(o,"end")}}async _notifyAllSubscribers(t,i,s=!0){const o=`#_notifyAllSubscribers(${t})`;this._debug(o,"begin",i,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:t,session:i});const c=[],u=Array.from(this.stateChangeEmitters.values()).map(async d=>{try{await d.callback(t,i)}catch(f){c.push(f)}});if(await Promise.all(u),c.length>0){for(let d=0;d<c.length;d+=1)console.error(c[d]);throw c[0]}}finally{this._debug(o,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Lt(this.storage,`${this.storageKey}-code-verifier`);const i=Object.assign({},t),s=i.user&&i.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!s&&i.user&&await aa(this.userStorage,this.storageKey+"-user",{user:i.user});const o=Object.assign({},i);delete o.user;const c=C0(o);await aa(this.storage,this.storageKey,c)}else{const o=C0(i);await aa(this.storage,this.storageKey,o)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Lt(this.storage,this.storageKey),await Lt(this.storage,this.storageKey+"-code-verifier"),await Lt(this.storage,this.storageKey+"-user"),this.userStorage&&await Lt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&zt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}
56catch(i){console.error("removing visibilitychange callback failed",i)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),sa);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const i=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=i,i&&typeof i=="object"&&typeof i.unref=="function"?i.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(i)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const i=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,i&&clearTimeout(i)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async i=>{const{data:{session:s}}=i;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((s.expires_at*1e3-t)/sa);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${sa}ms, refresh threshold is ${xm} ticks`),o<=xm&&await this._callRefreshToken(s.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof wk)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!zt()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const i=`#_onVisibilityChanged(${t})`;this._debug(i,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(i,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,i,s){const o=[`provider=${encodeURIComponent(i)}`];if(s?.redirectTo&&o.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s?.scopes&&o.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[c,u]=await ta(this.storage,this.storageKey),d=new URLSearchParams({code_challenge:`${encodeURIComponent(c)}`,code_challenge_method:`${encodeURIComponent(u)}`});o.push(d.toString())}if(s?.queryParams){const c=new URLSearchParams(s.queryParams);o.push(c.toString())}return s?.skipBrowserRedirect&&o.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${t}?${o.join("&")}`}async _unenroll(t){try{return await this._useSession(async i=>{var s;const{data:o,error:c}=i;return c?this._returnResult({data:null,error:c}):await de(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(s=o?.session)===null||s===void 0?void 0:s.access_token})})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}async _enroll(t){try{return await this._useSession(async i=>{var s,o;const{data:c,error:u}=i;if(u)return this._returnResult({data:null,error:u});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:p}=await de(this.fetch,"POST",`${this.url}/factors`,{body:d,headers:this.headers,jwt:(s=c?.session)===null||s===void 0?void 0:s.access_token});return p?this._returnResult({data:null,error:p}):(t.factorType==="totp"&&f.type==="totp"&&(!((o=f?.totp)===null||o===void 0)&&o.qr_code)&&(f.totp.qr_code=`data:image/svg+xml;utf-8,${f.totp.qr_code}`),this._returnResult({data:f,error:null}))})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async i=>{var s;const{data:o,error:c}=i;
56if(c)return this._returnResult({data:null,error:c});const u=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?N0(t.webauthn.credential_response):P0(t.webauthn.credential_response)})}:{code:t.code}),{data:d,error:f}=await de(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:u,headers:this.headers,jwt:(s=o?.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(i){if(re(i))return this._returnResult({data:null,error:i});throw i}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async i=>{var s;const{data:o,error:c}=i;if(c)return this._returnResult({data:null,error:c});const u=await de(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(s=o?.session)===null||s===void 0?void 0:s.access_token});if(u.error)return u;const{data:d}=u;if(d.type!=="webauthn")return{data:d,error:null};switch(d.webauthn.type){case"create":return{data:Object.assign(Object.assign({},d),{webauthn:Object.assign(Object.assign({},d.webauthn),{credential_options:Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:M0(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:I0(d.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}})}async _challengeAndVerify(t){const{data:i,error:s}=await this._challenge({factorId:t.factorId});return s?this._returnResult({data:null,error:s}):await this._verify({factorId:t.factorId,challengeId:i.id,code:t.code})}async _listFactors(){var t;const{data:{user:i},error:s}=await this.getUser();if(s)return{data:null,error:s};const o={all:[],phone:[],totp:[],webauthn:[]};for(const c of(t=i?.factors)!==null&&t!==void 0?t:[])o.all.push(c),c.status==="verified"&&o[c.factor_type].push(c);return{data:o,error:null}}async _getAuthenticatorAssuranceLevel(t){var i,s,o,c;if(t)try{const{payload:w}=Ac(t);let S=null;w.aal&&(S=w.aal);let k=S;const{data:{user:T},error:E}=await this.getUser(t);if(E)return this._returnResult({data:null,error:E});((s=(i=T?.factors)===null||i===void 0?void 0:i.filter($=>$.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(k="aal2");const C=w.amr||[];return{data:{currentLevel:S,nextLevel:k,currentAuthenticationMethods:C},error:null}}catch(w){if(re(w))return this._returnResult({data:null,error:w});throw w}const{data:{session:u},error:d}
56=await this.getSession();if(d)return this._returnResult({data:null,error:d});if(!u)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:f}=Ac(u.access_token);let p=null;f.aal&&(p=f.aal);let y=p;((c=(o=u.user.factors)===null||o===void 0?void 0:o.filter(w=>w.status==="verified"))!==null&&c!==void 0?c:[]).length>0&&(y="aal2");const b=f.amr||[];return{data:{currentLevel:p,nextLevel:y,currentAuthenticationMethods:b},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async i=>{const{data:{session:s},error:o}=i;return o?this._returnResult({data:null,error:o}):s?await de(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:s.access_token,xform:c=>({data:c,error:null})}):this._returnResult({data:null,error:new _t})})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}async _approveAuthorization(t,i){try{return await this._useSession(async s=>{const{data:{session:o},error:c}=s;if(c)return this._returnResult({data:null,error:c});if(!o)return this._returnResult({data:null,error:new _t});const u=await de(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"approve"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&zt()&&!i?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(s){if(re(s))return this._returnResult({data:null,error:s});throw s}}async _denyAuthorization(t,i){try{return await this._useSession(async s=>{const{data:{session:o},error:c}=s;if(c)return this._returnResult({data:null,error:c});if(!o)return this._returnResult({data:null,error:new _t});const u=await de(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"deny"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&zt()&&!i?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(s){if(re(s))return this._returnResult({data:null,error:s});throw s}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:i},error:s}=t;return s?this._returnResult({data:null,error:s}):i?await de(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:i.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new _t})})}catch(t){if(re(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async i=>{const{data:{session:s},error:o}=i;return o?this._returnResult({data:null,error:o}):s?(await de(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 _t})})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}async fetchJwk(t,i={keys:[]}){let s=i.keys.find(d=>d.kid===t);if(s)return s;const o=Date.now();if(s=this.jwks.keys.find(d=>d.kid===t),s&&this.jwks_cached_at+bL>o)return s;const{data:c,error:u}=await de(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(u)throw u;return!c.keys||c.keys.length===0||(this.jwks=c,this.jwks_cached_at=o,s=c.keys.find(d=>d.kid===t),!s)?null:s}async getClaims(t,i={}){try{let s=t;if(!s){const{data:w,error:S}
56=await this.getSession();if(S||!w.session)return this._returnResult({data:null,error:S});s=w.session.access_token}const{header:o,payload:c,signature:u,raw:{header:d,payload:f}}=Ac(s);i?.allowExpired||$L(c.exp);const p=!o.alg||o.alg.startsWith("HS")||!o.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(o.kid,i?.keys?{keys:i.keys}:i?.jwks);if(!p){const{error:w}=await this.getUser(s);if(w)throw w;return{data:{claims:c,header:o,signature:u},error:null}}const y=qL(o.alg),g=await crypto.subtle.importKey("jwk",p,y,!0,["verify"]);if(!await crypto.subtle.verify(y,g,u,RL(`${d}.${f}`)))throw new Om("Invalid JWT signature");return{data:{claims:c,header:o,signature:u},error:null}}catch(s){if(re(s))return this._returnResult({data:null,error:s});throw s}}async signInWithPasskey(t){var i,s,o;Ln(this.experimental);try{if(!Jc())return this._returnResult({data:null,error:new Mn("Browser does not support WebAuthn",null)});const{data:c,error:u}=await this._startPasskeyAuthentication({options:{captchaToken:(i=t?.options)===null||i===void 0?void 0:i.captchaToken}});if(u||!c)return this._returnResult({data:null,error:u});const d=I0(c.options),f=(o=(s=t?.options)===null||s===void 0?void 0:s.signal)!==null&&o!==void 0?o:Lm.createNewAbortSignal(),{data:p,error:y}=await Ek({publicKey:d,signal:f});if(y||!p)return this._returnResult({data:null,error:y??new Mn("WebAuthn ceremony failed",null)});const g=P0(p);return this._verifyPasskeyAuthentication({challengeId:c.challenge_id,credential:g})}catch(c){if(re(c))return this._returnResult({data:null,error:c});throw c}}async registerPasskey(t){var i,s;Ln(this.experimental);try{if(!Jc())return this._returnResult({data:null,error:new Mn("Browser does not support WebAuthn",null)});const{data:o,error:c}=await this._startPasskeyRegistration();if(c||!o)return this._returnResult({data:null,error:c});const u=M0(o.options),d=(s=(i=t?.options)===null||i===void 0?void 0:i.signal)!==null&&s!==void 0?s:Lm.createNewAbortSignal(),{data:f,error:p}=await kk({publicKey:u,signal:d});if(p||!f)return this._returnResult({data:null,error:p??new Mn("WebAuthn ceremony failed",null)});const y=N0(f);return this._verifyPasskeyRegistration({challengeId:o.challenge_id,credential:y})}catch(o){if(re(o))return this._returnResult({data:null,error:o});throw o}}async _startPasskeyRegistration(){Ln(this.experimental);try{return await this._useSession(async t=>{const{data:{session:i},error:s}=t;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new _t});const{data:o,error:c}=await de(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:i.access_token,body:{}});return c?this._returnResult({data:null,error:c}):this._returnResult({data:o,error:null})})}catch(t){if(re(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){Ln(this.experimental);try{return await this._useSession(async i=>{const{data:{session:s},error:o}=i;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new _t});const{data:c,error:u}=await de(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:s.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}async _startPasskeyAuthentication(t){var i;Ln(this.experimental);try{const{data:s,error:o}=await de(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(i=t?.options)===null||i===void 0?void 0:i.captchaToken}}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:s,error:null})}catch(s){if(re(s))return this._returnResult({data:null,error:s});throw s}}async _verifyPasskeyAuthentication(t){Ln(this.experimental);try{const{data:i,error:s}=await de(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}):(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:i,error:null}))}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}async _listPasskeys(){Ln(this.experimental);try{return await this._useSession(async t=>{const{data:{session:i},error:s}=t;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new _t});const{data:o,error:c}=await de(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:i.access_token,xform:u=>({data:u,error:null})});return c?this._returnResult({data:null,error:c}):this._returnResult({data:o,error:null})})}catch(t){if(re(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){Ln(this.experimental);try{return await this._useSession(async i=>{const{data:{session:s},error:o}=i;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new _t});const{data:c,error:u}=await de(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:s.access_token,body:{friendly_name:t.friendlyName}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}async _deletePasskey(t){Ln(this.experimental);try{return await this._useSession(async i=>{const{data:{session:s},error:o}=i;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new _t});const{error:c}
56=await de(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:s.access_token,noResolveJson:!0});return c?this._returnResult({data:null,error:c}):this._returnResult({data:null,error:null})})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}}$o.nextInstanceID={};const hz=$o,fz="2.106.2";let Eo="";typeof Deno<"u"?Eo="deno":typeof document<"u"?Eo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Eo="react-native":Eo="node";const mz={"X-Client-Info":`supabase-js-${Eo}/${fz}`},pz={headers:mz},gz={schema:"public"},yz={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},vz={},bz={enabled:!1,respectSamplingDecision:!0};function wz(e,t,i,s){function o(c){return c instanceof i?c:new i(function(u){u(c)})}return new(i||(i=Promise))(function(c,u){function d(y){try{p(s.next(y))}catch(g){u(g)}}function f(y){try{p(s.throw(y))}catch(g){u(g)}}function p(y){y.done?c(y.value):o(y.value).then(d,f)}p((s=s.apply(e,[])).next())})}let Gh=null;const Sz="@opentelemetry/api";function _z(){return Gh===null&&(Gh=import(Sz).catch(()=>null)),Gh}function kz(){return wz(this,void 0,void 0,function*(){try{const e=yield _z();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const i=t.traceparent;return i?{traceparent:i,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function Ez(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[i,s,o,c]=t;if(i.length!==2||s.length!==32||o.length!==16||c.length!==2)return null;const u=/^[0-9a-f]+$/i;return!u.test(i)||!u.test(s)||!u.test(o)||!u.test(c)||s==="00000000000000000000000000000000"||o==="0000000000000000"?null:{version:i,traceId:s,parentId:o,traceFlags:c,isSampled:(parseInt(c,16)&1)===1}}function Tz(e,t){if(!e||!t||t.length===0)return!1;let i;if(e instanceof URL)i=e;else try{i=new URL(e)}catch{return!1}for(const s of t)try{if(typeof s=="string"){if(Az(i.hostname,s))return!0}else if(s instanceof RegExp){if(s.test(i.hostname))return!0}else if(typeof s=="function"&&s(i))return!0}catch{continue}return!1}function Az(e,t){if(t===e)return!0;if(t.startsWith("*.")){const i=t.slice(2);if(e.endsWith(i)&&(e===i||e.endsWith("."+i)))return!0}return!1}function xz(e){const t=[];try{const i=new URL(e);t.push(i.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function qo(e){"@babel/helpers - typeof";return qo=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},qo(e)}function Rz(e,t){if(qo(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,t);if(qo(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cz(e){var t=Rz(e,"string");return qo(t)=="symbol"?t:t+""}function Oz(e,t,i){return(t=Cz(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function B0(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,s)}return i}function rt(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?B0(Object(i),!0).forEach(function(s){Oz(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):B0(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}const Lz=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),zz=()=>Headers,jz=(e,t,i,s,o)=>{const c=Lz(s),u=zz(),d=o?.enabled===!0,f=o?.respectSamplingDecision!==!1,p=d?xz(t):null;return async(y,g)=>{var b;const w=(b=await i())!==null&&b!==void 0?b:e;let S=new u(g?.headers);if(S.has("apikey")||S.set("apikey",e),S.has("Authorization")||S.set("Authorization",`Bearer ${w}`),p){const k=await Dz(y,p,f);k&&(k.traceparent&&!S.has("traceparent")&&S.set("traceparent",k.traceparent),k.tracestate&&!S.has("tracestate")&&S.set("tracestate",k.tracestate),k.baggage&&!S.has("baggage")&&S.set("baggage",k.baggage))}return c(y,rt(rt({},g),{},{headers:S}))}};async function Dz(e,t,i){if(!Tz(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const s=await kz();if(!s||!s.traceparent)return null;if(i){const o=Ez(s.traceparent);if(o&&!o.isSampled)return null}return s}function $0(e){return typeof e=="boolean"?{enabled:e}:e}function Mz(e){return e.endsWith("/")?e:e+"/"}function Iz(e,t){var i,s,o,c,u,d;const{db:f,auth:p,realtime:y,global:g}=e,{db:b,auth:w,realtime:S,global:k}=t,T=$0(e.tracePropagation),E=$0(t.tracePropagation),L={db:rt(rt({},b),f),auth:rt(rt({},w),p),realtime:rt(rt({},S),y),storage:{},global:rt(rt(rt({},k),g),{},{headers:rt(rt({},(i=k?.headers)!==null&&i!==void 0?i:{}),(s=g?.headers)!==null&&s!==void 0?s:{})}),tracePropagation:{enabled:(o=(c=T?.enabled)!==null&&c!==void 0?c:E?.enabled)!==null&&o!==void 0?o:!1,respectSamplingDecision:(u=(d=T?.respectSamplingDecision)!==null&&d!==void 0?d:E?.respectSamplingDecision)!==null&&u!==void 0?u:!0},accessToken:async()=>""};return e.accessToken?L.accessToken=e.accessToken:delete L.accessToken,L}function Nz(e){const t=e?.trim();if(!t)throw new Error("supabaseUrl is required.");
56if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(Mz(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var Pz=class extends hz{constructor(e){super(e)}},Uz=class{constructor(e,t,i){var s,o;this.supabaseUrl=e,this.supabaseKey=t;const c=Nz(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const u=`sb-${c.hostname.split(".")[0]}-auth-token`,d={db:gz,realtime:vz,auth:rt(rt({},yz),{},{storageKey:u}),global:pz,tracePropagation:bz},f=Iz(i??{},d);if(this.settings=f,this.storageKey=(s=f.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=f.global.headers)!==null&&o!==void 0?o:{},f.accessToken)this.accessToken=f.accessToken,this.auth=new Proxy({},{get:(y,g)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(g)} is not possible`)}});else{var p;this.auth=this._initSupabaseAuthClient((p=f.auth)!==null&&p!==void 0?p:{},this.headers,f.global.fetch)}this.fetch=jz(t,e,this._getAccessToken.bind(this),f.global.fetch,f.tracePropagation),this.realtime=this._initRealtimeClient(rt({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},f.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(y=>this.realtime.setAuth(y)).catch(y=>console.warn("Failed to set initial Realtime auth token:",y)),this.rest=new t2(new URL("rest/v1",c).href,{headers:this.headers,schema:f.db.schema,fetch:this.fetch,timeout:f.db.timeout,urlLengthLimit:f.db.urlLengthLimit}),this.storage=new mL(this.storageUrl.href,this.headers,this.fetch,i?.storage),f.accessToken||this._listenForAuthEvents()}get functions(){return new VO(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},i={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,i)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,i;if(e.accessToken)return await e.accessToken();const{data:s}=await e.auth.getSession();return(t=(i=s.session)===null||i===void 0?void 0:i.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:i,storage:s,userStorage:o,storageKey:c,flowType:u,lock:d,debug:f,throwOnError:p,experimental:y,lockAcquireTimeout:g,skipAutoInitialize:b},w,S){const k={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Pz({url:this.authUrl.href,headers:rt(rt({},k),w),storageKey:c,autoRefreshToken:e,persistSession:t,detectSessionInUrl:i,storage:s,userStorage:o,flowType:u,lock:d,debug:f,throwOnError:p,experimental:y,fetch:S,lockAcquireTimeout:g,skipAutoInitialize:b,hasCustomAuthorizationHeader:Object.keys(this.headers).some(T=>T.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new N2(this.realtimeUrl.href,rt(rt({},e),{},{params:rt(rt({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t?.access_token)})}_handleTokenChanged(e,t,i){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==i?(this.changedAccessToken=i,this.realtime.setAuth(i)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const Bz=(e,t,i)=>new Uz(e,t,i);function $z(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const i=t.match(/^v(\d+)\./);return i?parseInt(i[1],10)<=18:!1}$z()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
56ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function qz(){if(typeof window>"u")return;const e=location.hostname,i=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(T=>e===T||e.endsWith("."+T)),s="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",o=i?e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+s+")(?:-dev)?(?=\\.|$)","i"))?.[1]??e.match(new RegExp("^("+s+")(?=[.-])","i"))?.[1]:void 0,c=window.parent&&window.parent!==window;if(!o||!c)return localStorage;const u=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),d=u?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,f=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),p=f&&d.test(f)?[f]:u?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],y="lovable-preview-auth:result",g=2e3,b=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),w=(T,E,L)=>new Promise(C=>{const $=b();let Q=!1,P;const j=he=>{Q||(Q=!0,clearTimeout(P),window.removeEventListener("message",U),C(he))},U=he=>{if(p.indexOf(he.origin)<0)return;const G=he.data;G&&G.type===y&&G.requestId===$&&j(G)};window.addEventListener("message",U);const ee={type:T,requestId:$,projectId:o,key:E};L!==void 0&&(ee.value=L);for(const he of p)window.parent.postMessage(ee,he);P=setTimeout(()=>j(null),g)});let S=!0;const k=250;return{getItem:async T=>{let E=await w("lovable-preview-auth:get",T);return!E&&S&&(await new Promise(L=>setTimeout(L,k)),E=await w("lovable-preview-auth:get",T)),S=!1,E&&E.ok&&typeof E.value=="string"?E.value===""?(localStorage.removeItem(T),null):E.value:localStorage.getItem(T)},setItem:(T,E)=>(localStorage.setItem(T,E),w("lovable-preview-auth:set",T,E).then(L=>{L&&L.ok&&typeof L.value=="string"&&localStorage.getItem(T)===E&&(L.value===""?localStorage.removeItem(T):localStorage.setItem(T,L.value))})),removeItem:T=>(localStorage.removeItem(T),w("lovable-preview-auth:remove",T).then(()=>{}))}}function Hz(){return Bz("https://daxrvclouptfjyfbijpz.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRheHJ2Y2xvdXB0Zmp5ZmJpanB6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODA0MDU5NDAsImV4cCI6MjA5NTk4MTk0MH0.U3-TiKWWNUgDzYSljalF-3PYI0k3jTwSwYrhMVwTOxo",{auth:{storage:qz(),persistSession:!0,autoRefreshToken:!0}})}let Yh;const Fz=new Proxy({},{get(e,t,i){return Yh||(Yh=Hz()),Reflect.get(Yh,t,i)}}),Vz=Qr({type:"function"}).client(async({next:e})=>{const{data:t}=await Fz.auth.getSession(),i=t.session?.access_token;return e({headers:i?{Authorization:`Bearer ${i}`}:{}})}),Kz=Qr(),q0=$O(()=>({functionMiddleware:[Vz],requestMiddleware:[Kz]}));var hu=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(){}},Gz=class extends hu{#e;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Tk=new Gz,Yz={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Wz=class{#e=Yz;#n=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},zm=new Wz;function Jz(e){setTimeout(e,0)}var Qz=typeof window>"u"||"Deno"in globalThis;function Dn(){}function Xz(e,t){return typeof e=="function"?e(t):e}function Zz(e){return typeof e=="number"&&e>=0&&e!==1/0}function ej(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jm(e,t){return typeof e=="function"?e(t):e}function tj(e,t){return typeof e=="function"?e(t):e}function H0(e,t){const{type:i="all",exact:s,fetchStatus:o,predicate:c,queryKey:u,stale:d}=e;if(u){if(s){if(t.queryHash!==dp(u,t.options))return!1}else if(!Fo(t.queryKey,u))return!1}if(i!=="all"){const f=t.isActive();if(i==="active"&&!f||i==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||o&&o!==t.state.fetchStatus||c&&!c(t))}function F0(e,t){const{exact:i,status:s,predicate:o,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(i){if(Ho(t.options.mutationKey)!==Ho(c))return!1}else if(!Fo(t.options.mutationKey,c))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function dp(e,t){return(t?.queryKeyHashFn||Ho)(e)}function Ho(e){return JSON.stringify(e,(t,i)=>Dm(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function Fo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(i=>Fo(e[i],t[i])):!1}var nj=Object.prototype.hasOwnProperty;function Ak(e,t,i=0){if(e===t)return e;if(i>500)return t;const s=V0(e)&&V0(t);if(!s&&!(Dm(e)&&Dm(t)))return t;const c=(s?e:Object.keys(e)).length,u=s?t:Object.keys(t),d=u.length,f=s?new Array(d):{};let p=0;for(let y=0;y<d;y++){const g=s?y:u[y],b=e[g],w=t[g];if(b===w){f[g]=b,(s?y<c:nj.call(e,g))&&p++;continue}if(b===null||w===null||typeof b!="object"||typeof w!="object"){f[g]=w;continue}const S=Ak(b,w,i+1);f[g]=S,S===b&&p++}return c===d&&p===c?e:f}function V0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Dm(e){if(!K0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!K0(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function K0(e){return Object.prototype.toString.call(e)==="[object Object]"}function ij(e){return new Promise(t=>{zm.setTimeout(t,e)})}function rj(e,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?Ak(e,t):t}function sj(e,t,i=0){const s=[...e,t];return i&&s.length>i?s.slice(1):s}function aj(e,t,i=0){const s=[t,...e];return i&&s.length>i?s.slice(0,-1):s}var hp=Symbol();function xk(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===hp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oj(e,t,i){let s=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t(),s||(s=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),e}var Rk=(()=>{let e=()=>Qz;return{isServer(){return e()},setIsServer(t){e=t}}})();function lj(){let e,t;const i=new Promise((o,c)=>{e=o,t=c});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),e(o)},i.reject=o=>{s({status:"rejected",reason:o}),t(o)},i}var cj=Jz;function uj(){let e=[],t=0,i=d=>{d()},s=d=>{d()},o=cj;const c=d=>{t?e.push(d):o(()=>{i(d)})},u=()=>{const d=e;e=[],d.length&&o(()=>{s(()=>{d.forEach(f=>{i(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||u()}return f},batchCalls:d=>(...f)=>{c(()=>{d(...f)})},schedule:c,setNotifyFunction:d=>{i=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{o=d}}}var Ht=uj(),dj=class extends hu{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}
vendor: 19,714 bytes, line 56
56setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(i=>{i(e)}))}isOnline(){return this.#e}},Xc=new dj;function hj(e){return Math.min(1e3*2**e,3e4)}function Ck(e){return(e??"online")==="online"?Xc.isOnline():!0}var Mm=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Ok(e){let t=!1,i=0,s;const o=lj(),c=()=>o.status!=="pending",u=k=>{if(!c()){const T=new Mm(k);b(T),e.onCancel?.(T)}},d=()=>{t=!0},f=()=>{t=!1},p=()=>Tk.isFocused()&&(e.networkMode==="always"||Xc.isOnline())&&e.canRun(),y=()=>Ck(e.networkMode)&&e.canRun(),g=k=>{c()||(s?.(),o.resolve(k))},b=k=>{c()||(s?.(),o.reject(k))},w=()=>new Promise(k=>{s=T=>{(c()||p())&&k(T)},e.onPause?.()}).then(()=>{s=void 0,c()||e.onContinue?.()}),S=()=>{if(c())return;let k;const T=i===0?e.initialPromise:void 0;try{k=T??e.fn()}catch(E){k=Promise.reject(E)}Promise.resolve(k).then(g).catch(E=>{if(c())return;const L=e.retry??(Rk.isServer()?0:3),C=e.retryDelay??hj,$=typeof C=="function"?C(i,E):C,Q=L===!0||typeof L=="number"&&i<L||typeof L=="function"&&L(i,E);if(t||!Q){b(E);return}i++,e.onFail?.(i,E),ij($).then(()=>p()?void 0:w()).then(()=>{t?b(E):S()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(s?.(),o),cancelRetry:d,continueRetry:f,canStart:y,start:()=>(y()?S():w().then(S),o)}}var Lk=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zz(this.gcTime)&&(this.#e=zm.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Rk.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(zm.clearTimeout(this.#e),this.#e=void 0)}},fj=class extends Lk{#e;#n;#t;#r;#i;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#t=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Y0(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Y0(this.options);t.data!==void 0&&(this.setState(G0(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const i=rj(this.state.data,e,this.options);return this.#o({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(Dn).catch(Dn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>tj(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hp||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>jm(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:!ej(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#a||this.#l()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const i=new AbortController,s=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#a=!0,i.signal)})},o=()=>{const d=xk(this.options,t),p=(()=>{const y={client:this.#r,queryKey:this.queryKey,meta:this.meta};return s(y),y})();return this.#a=!1,this.options.persister?this.options.persister(d,p,this):d(p)},u=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return s(d),d})();this.options.behavior?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#i=Ok({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:d=>{d instanceof Mm&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),i.abort()},onFail:(d,f)=>{this.#o({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const d=await this.#i.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#t.config.onSuccess?.(d,this),this.#t.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Mm){if(d.silent)return this.#i.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#o({type:"error",error:d}),this.#t.config.onError?.(d,this),this.#t.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#o(e){const t=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...mj(i.data,this.options),fetchMeta:e.meta??null};case"success":const s={...i,...G0(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const o=e.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=t(this.state),Ht.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function mj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ck(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function G0(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Y0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,i=t!==void 0,s=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}function W0(e){return{onFetch:(t,i)=>{const s=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},f=0;const p=async()=>{let y=!1;const g=S=>{oj(S,()=>t.signal,()=>y=!0)},b=xk(t.options,t.fetchOptions),w=async(S,k,T)=>{if(y)return Promise.reject();if(k==null&&S.pages.length)return Promise.resolve(S);const L=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:k,direction:T?"backward":"forward",meta:t.options.meta};return g(P),P})(),C=await b(L),{maxPages:$}=t.options,Q=T?aj:sj;return{pages:Q(S.pages,C,$),pageParams:Q(S.pageParams,k,$)}};if(o&&c.length){const S=o==="backward",k=S?pj:J0,T={pages:c,pageParams:u},E=k(s,T);d=await w(T,E,S)}else{const S=e??c.length;do{const k=f===0?u[0]??s.initialPageParam:J0(s,d);if(f>0&&k==null)break;d=await w(d,k),f++}while(f<S)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i):t.fetchFn=p}}}function J0(e,{pages:t,pageParams:i}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,i[s],i):void 0}function pj(e,{pages:t,pageParams:i}){return t.length>0?e.getPreviousPageParam?.(t[0],t,i[0],i):void 0}var gj=class extends Lk{#e;#n;#t;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#n=[],this.state=e.state||yj(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ok({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(c,u)=>{this.#i({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",o=!this.#r.canStart();try{if(s)t();else{this.#i({type:"pending",variables:e,isPaused:o}),this.#t.config.onMutate&&await this.#t.config.onMutate(e,this,i);const u=await this.options.onMutate?.(e,i);u!==this.state.context&&this.#i({type:"pending",context:u,variables:e,isPaused:o})}const c=await this.#r.start();return await this.#t.config.onSuccess?.(c,e,this.state.context,this,i),await this.options.onSuccess?.(c,e,this.state.context,i),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(c,null,e,this.state.context,i),this.#i({type:"success",data:c}),c}catch(c){try{await this.#t.config.onError?.(c,e,this.state.context,this,i)}catch(u){Promise.reject(u)}try{await this.options.onError?.(c,e,this.state.context,i)}catch(u){Promise.reject(u)}try{await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,i)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,i)}catch(u){Promise.reject(u)}throw this.#i({type:"error",error:c}),c}finally{this.#t.runNext(this)}}#i(e){const t=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Ht.batch(()=>{this.#n.forEach(i=>{i.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function yj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vj=class extends hu{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,i){const s=new gj({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:i});return this.add(s),s}add(e){this.#e.add(e);const t=xc(e);if(typeof t=="string"){const i=this.#n.get(t);i?i.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=xc(e);if(typeof t=="string"){const i=this.#n.get(t);if(i)if(i.length>1){const s=i.indexOf(e);s!==-1&&i.splice(s,1)}else i[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=xc(e);if(typeof t=="string"){const s=this.#n.get(t)?.find(o=>o.state.status==="pending");return!s||s===e}else return!0}runNext(e){const t=xc(e);return typeof t=="string"?this.#n.get(t)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ht.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(i=>F0(t,i))}findAll(e={}){return this.getAll().filter(t=>F0(e,t))}notify(e){Ht.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Ht.batch(()=>Promise.all(e.map(t=>t.continue().catch(Dn))))}};function xc(e){return e.options.scope?.id}var bj=class extends hu{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,i){const s=t.queryKey,o=t.queryHash??dp(s,t);let c=this.get(o);return c||(c=new fj({client:e,queryKey:s,queryHash:o,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(s)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ht.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(i=>H0(t,i))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(i=>H0(e,i)):t}notify(e){Ht.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ht.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ht.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},wj=class{#e;#n;#t;#r;#i;#s;#a;#l;constructor(e={}){this.#e=e.queryCache||new bj,this.#n=e.mutationCache||new vj,this.#t=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=Tk.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=Xc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),i=this.#e.build(this,t),s=i.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(jm(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:i})=>{const s=i.data;return[t,s]})}setQueryData(e,t,i){const s=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(s.queryHash)?.state.data,u=Xz(t,c);if(u!==void 0)return this.#e.build(this,s).setData(u,{...i,manual:!0})}setQueriesData(e,t,i){return Ht.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,i)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Ht.batch(()=>{t.findAll(e).forEach(i=>{t.remove(i)})})}resetQueries(e,t){const i=this.#e;return Ht.batch(()=>(i.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const i={revert:!0,...t},s=Ht.batch(()=>this.#e.findAll(e).map(o=>o.cancel(i)));return Promise.all(s).then(Dn).catch(Dn)}invalidateQueries(e,t={}){return Ht.batch(()=>(this.#e.findAll(e).forEach(i=>{i.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const i={...t,cancelRefetch:t.cancelRefetch??!0},s=Ht.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(Dn)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Dn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const i=this.#e.build(this,t);return i.isStaleByTime(jm(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Dn).catch(Dn)}fetchInfiniteQuery(e){return e.behavior=W0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Dn).catch(Dn)}ensureInfiniteQueryData(e){return e.behavior=W0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Xc.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#r.set(Ho(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],i={};return t.forEach(s=>{Fo(e,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(e,t){this.#i.set(Ho(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],i={};return t.forEach(s=>{Fo(e,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#t.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=dp(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===hp&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},Sj=ie.createContext(void 0),_j=({client:e,children:t})=>(ie.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),A.jsx(Sj.Provider,{value:e,children:t}));const kj="/assets/styles-uXR9uaGX.css";var Ej=yS();const Tj=gS(Ej);function Aj(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}const xj=e=>{switch(e){case"success":return Oj;case"info":return zj;case"warning":return Lj;case"error":return jj;default:return null}},Rj=Array(12).fill(0),Cj=({visible:e,className:t})=>Z.createElement("div",{className:["sonner-loading-wrapper",t].filter(
vendor: 6,020 bytes, line 56
56Boolean).join(" "),"data-visible":e},Z.createElement("div",{className:"sonner-spinner"},Rj.map((i,s)=>Z.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),Oj=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Z.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"})),Lj=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Z.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"})),zj=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Z.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"})),jj=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Z.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"})),Dj=Z.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"},Z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Mj=()=>{const[e,t]=Z.useState(document.hidden);return Z.useEffect(()=>{const i=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),e};let Im=1;class Ij{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const i=this.subscribers.indexOf(t);this.subscribers.splice(i,1)}),this.publish=t=>{this.subscribers.forEach(i=>i(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var i;const{message:s,...o}=t,c=typeof t?.id=="number"||((i=t.id)==null?void 0:i.length)>0?t.id:Im++,u=this.toasts.find(f=>f.id===c),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),u?this.toasts=this.toasts.map(f=>f.id===c?(this.publish({...f,...t,id:c,title:s}),{...f,...t,id:c,dismissible:d,title:s}):f):this.addToast({title:s,...o,dismissible:d,id:c}),c},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(i=>i({id:t,dismiss:!0})))):this.toasts.forEach(i=>{this.subscribers.forEach(s=>s({id:i.id,dismiss:!0}))}),t),this.message=(t,i)=>this.create({...i,message:t}),this.error=(t,i)=>this.create({...i,message:t,type:"error"}),this.success=(t,i)=>this.create({...i,type:"success",message:t}),this.info=(t,i)=>this.create({...i,type:"info",message:t}),this.warning=(t,i)=>this.create({...i,type:"warning",message:t}),this.loading=(t,i)=>this.create({...i,type:"loading",message:t}),this.promise=(t,i)=>{if(!i)return;let s;i.loading!==void 0&&(s=this.create({...i,promise:t,type:"loading",message:i.loading,description:typeof i.description!="function"?i.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let c=s!==void 0,u;const d=o.then(async p=>{if(u=["resolve",p],Z.isValidElement(p))c=!1,this.create({id:s,type:"default",message:p});else if(Pj(p)&&!p.ok){c=!1;const g=typeof i.error=="function"?await i.error(`HTTP error! status: ${p.status}`):i.error,b=typeof i.description=="function"?await i.description(`HTTP error! status: ${p.status}`):i.description,S=typeof g=="object"&&!Z.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:b,...S})}else if(p instanceof Error){c=!1;const g=typeof i.error=="function"?await i.error(p):i.error,b=typeof i.description=="function"?await i.description(p):i.description,S=typeof g=="object"&&!Z.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:b,...S})}else if(i.success!==void 0){c=!1;const g=typeof i.success=="function"?await i.success(p):i.success,b=typeof i.description=="function"?await i.description(p):i.description,S=typeof g=="object"&&!Z.isValidElement(g)?g:{message:g};this.create({id:s,type:"success",description:b,...S})}}).catch(async p=>{if(u=["reject",p],i.error!==void 0){c=!1;const y=typeof i.error=="function"?await i.error(p):i.error,g=typeof i.description=="function"?await i.description(p):i.description,w=typeof y=="object"&&!Z.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:g,...w})}}).finally(()=>{c&&(this.dismiss(s),s=void 0),i.finally==null||i.finally.call(i)}),f=()=>new Promise((p,y)=>d.then(()=>u[0]==="reject"?y(u[1]):p(u[1])).catch(y));return typeof s!="string"&&typeof s!="number"?{unwrap:f}:Object.assign(s,{unwrap:f})},this.custom=(t,i)=>{const s=i?.id||Im++;return this.create({jsx:t(s),id:s,...i}),s},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const nn=new Ij,Nj=(e,t)=>{const i=t?.id||Im++;return nn.addToast({title:e,...t,id:i}),i},Pj=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Uj=Nj,Bj=()=>nn.toasts,$j=()=>nn.getActiveToasts(),a3=Object.assign(Uj,{success:nn.success,info:nn.info,warning:nn.warning,error:nn.error,custom:nn.custom,message:nn.message,promise:nn.promise,dismiss:nn.dismiss,loading:nn.loading},{getHistory:Bj,getToasts:$j});Aj
vendor: 14,873 bytes, line 56
56("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;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: 2,427 bytes, line 56
56Rc(e){return e.label!==void 0}const qj=3,Hj="24px",Fj="16px",Q0=4e3,Vj=356,Kj=14,Gj=45,Yj=200;function Kn(...e){return e.filter(Boolean).join(" ")}function Wj(e){const[t,i]=e.split("-"),s=[];return t&&s.push(t),i&&s.push(i),s}const Jj=e=>{var t,i,s,o,c,u,d,f,p;const{invert:y,toast:g,unstyled:b,interacting:w,setHeights:S,visibleToasts:k,heights:T,index:E,toasts:L,expanded:C,removeToast:$,defaultRichColors:Q,closeButton:P,style:j,cancelButtonStyle:U,actionButtonStyle:ee,className:he="",descriptionClassName:G="",duration:Y,position:te,gap:ye,expandByDefault:se,classNames:z,icons:W,closeButtonAriaLabel:le="Close toast"}=e,[Ae,J]=Z.useState(null),[R,H]=Z.useState(null),[F,X]=Z.useState(!1),[ne,oe]=Z.useState(!1),[fe,ge]=Z.useState(!1),[be,vt]=Z.useState(!1),[Tt,st]=Z.useState(!1),[Li,Dt]=Z.useState(0),[ba,as]=Z.useState(0),Sr=Z.useRef(g.duration||Y||Q0),wa=Z.useRef(null),rn=Z.useRef(null),Sa=E===0,_a=E+1<=k,Ut=g.type,zi=g.dismissible!==!1,Bt=g.className||"",fu=g.descriptionClassName||"",_r=Z.useMemo(()=>T.findIndex(Ee=>Ee.toastId===g.id)||0,[T,g.id]),Qo=Z.useMemo(()=>{var Ee;return(Ee=g.closeButton)!=null?Ee:P},[g.closeButton,P]),kr=Z.useMemo(()=>g.duration||Y||Q0,[g.duration,Y]),ka=Z.useRef(0),Xn=Z.useRef(0),Xo=Z.useRef(0),ji=Z.useRef(null),[Er,$t]=te.split("-"),Tn=Z.useMemo(()=>T.reduce((Ee,Ze,bt)=>bt>=_r?Ee:Ee+Ze.height,0),[T,_r]),Mt=Mj(),mu=g.invert||y,Ea=Ut==="loading";Xn.current=Z.useMemo(()=>_r*ye+Tn,[_r,Tn]),Z.useEffect(()=>{Sr.current=kr},[kr]),Z.useEffect(()=>{X(!0)},[]),Z.useEffect(()=>{const Ee=rn.current;if(Ee){const Ze=Ee.getBoundingClientRect().height;return as(Ze),S(bt=>[{toastId:g.id,height:Ze,position:g.position},...bt]),()=>S(bt=>bt.filter(It=>It.toastId!==g.id))}},[S,g.id]),Z.useLayoutEffect(()=>{if(!F)return;const Ee=rn.current,Ze=Ee.style.height;Ee.style.height="auto";const bt=Ee.getBoundingClientRect().height;Ee.style.height=Ze,as(bt),S(It=>It.find(tt=>tt.toastId===g.id)?It.map(tt=>tt.toastId===g.id?{...tt,height:bt}:tt):[{toastId:g.id,height:bt,position:g.position},...It])},[F,g.title,g.description,S,g.id,g.jsx,g.action,g.cancel]);const Pn=Z.useCallback(()=>{oe(!0),Dt(Xn.current),S(Ee=>Ee.filter(Ze=>Ze.toastId!==g.id)),setTimeout(()=>{$(g)},Yj)},[g,$,S,Xn]);Z.useEffect(()=>{if(g.promise&&Ut==="loading"||g.duration===1/0||g.type==="loading")return;let Ee;return C||w||Mt?(()=>{if(Xo.current<ka.current){const It=new Date().getTime()-ka.current;Sr.current=Sr.current-It}
vendor: 6,289 bytes, line 56
56Xo.current=new Date().getTime()})():Sr.current!==1/0&&(ka.current=new Date().getTime(),Ee=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),Pn()},Sr.current)),()=>clearTimeout(Ee)},[C,w,g,Ut,Mt,Pn]),Z.useEffect(()=>{g.delete&&(Pn(),g.onDismiss==null||g.onDismiss.call(g,g))},[Pn,g.delete]);function os(){var Ee;if(W?.loading){var Ze;return Z.createElement("div",{className:Kn(z?.loader,g==null||(Ze=g.classNames)==null?void 0:Ze.loader,"sonner-loader"),"data-visible":Ut==="loading"},W.loading)}return Z.createElement(Cj,{className:Kn(z?.loader,g==null||(Ee=g.classNames)==null?void 0:Ee.loader),visible:Ut==="loading"})}const ls=g.icon||W?.[Ut]||xj(Ut);var Tr,Un;return Z.createElement("li",{tabIndex:0,ref:rn,className:Kn(he,Bt,z?.toast,g==null||(t=g.classNames)==null?void 0:t.toast,z?.default,z?.[Ut],g==null||(i=g.classNames)==null?void 0:i[Ut]),"data-sonner-toast":"","data-rich-colors":(Tr=g.richColors)!=null?Tr:Q,"data-styled":!(g.jsx||g.unstyled||b),"data-mounted":F,"data-promise":!!g.promise,"data-swiped":Tt,"data-removed":ne,"data-visible":_a,"data-y-position":Er,"data-x-position":$t,"data-index":E,"data-front":Sa,"data-swiping":fe,"data-dismissible":zi,"data-type":Ut,"data-invert":mu,"data-swipe-out":be,"data-swipe-direction":R,"data-expanded":!!(C||se&&F),"data-testid":g.testId,style:{"--index":E,"--toasts-before":E,"--z-index":L.length-E,"--offset":`${ne?Li:Xn.current}px`,"--initial-height":se?"auto":`${ba}px`,...j,...g.style},onDragEnd:()=>{ge(!1),J(null),ji.current=null},onPointerDown:Ee=>{Ee.button!==2&&(Ea||!zi||(wa.current=new Date,Dt(Xn.current),Ee.target.setPointerCapture(Ee.pointerId),Ee.target.tagName!=="BUTTON"&&(ge(!0),ji.current={x:Ee.clientX,y:Ee.clientY})))},onPointerUp:()=>{var Ee,Ze,bt;if(be||!zi)return;ji.current=null;const It=Number(((Ee=rn.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Di=Number(((Ze=rn.current)==null?void 0:Ze.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),tt=new Date().getTime()-((bt=wa.current)==null?void 0:bt.getTime()),Vt=Ae==="x"?It:Di,Ar=Math.abs(Vt)/tt;if(Math.abs(Vt)>=Gj||Ar>.11){Dt(Xn.current),g.onDismiss==null||g.onDismiss.call(g,g),H(Ae==="x"?It>0?"right":"left":Di>0?"down":"up"),Pn(),vt(!0);return}else{var Kt,Gt;(Kt=rn.current)==null||Kt.style.setProperty("--swipe-amount-x","0px"),(Gt=rn.current)==null||Gt.style.setProperty("--swipe-amount-y","0px")}st(!1),ge(!1),J(null)},onPointerMove:Ee=>{var Ze,bt,It;if(!ji.current||!zi||((Ze=window.getSelection())==null?void 0:Ze.toString().length)>0)return;const tt=Ee.clientY-ji.current.y,Vt=Ee.clientX-ji.current.x;var Ar;const Kt=(Ar=e.swipeDirections)!=null?Ar:Wj(te);!Ae&&(Math.abs(Vt)>1||Math.abs(tt)>1)&&J(Math.abs(Vt)>Math.abs(tt)?"x":"y");let Gt={x:0,y:0};const cs=An=>1/(1.5+Math.abs(An)/20);if(Ae==="y"){if(Kt.includes("top")||Kt.includes("bottom"))if(Kt.includes("top")&&tt<0||Kt.includes("bottom")&&tt>0)Gt.y=tt;else{const An=tt*cs(tt);Gt.y=Math.abs(An)<Math.abs(tt)?An:tt}}else if(Ae==="x"&&(Kt.includes("left")||Kt.includes("right")))if(Kt.includes("left")&&Vt<0||Kt.includes("right")&&Vt>0)Gt.x=Vt;else{const An=Vt*cs(Vt);Gt.x=Math.abs(An)<Math.abs(Vt)?An:Vt}(Math.abs(Gt.x)>0||Math.abs(Gt.y)>0)&&st(!0),(bt=rn.current)==null||bt.style.setProperty("--swipe-amount-x",`${Gt.x}px`),(It=rn.current)==null||It.style.setProperty("--swipe-amount-y",`${Gt.y}px`)}},Qo&&!g.jsx&&Ut!=="loading"?Z.createElement("button",{"aria-label":le,"data-disabled":Ea,"data-close-button":!0,onClick:Ea||!zi?()=>{}:()=>{Pn(),g.onDismiss==null||g.onDismiss.call(g,g)},className:Kn(z?.closeButton,g==null||(s=g.classNames)==null?void 0:s.closeButton)},(Un=W?.close)!=null?Un:Dj):null,(Ut||g.icon||g.promise)&&g.icon!==null&&(W?.[Ut]!==null||g.icon)?Z.createElement("div",{"data-icon":"",className:Kn(z?.icon,g==null||(o=g.classNames)==null?void 0:o.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||os():null,g.type!=="loading"?ls:null):null,Z.createElement("div",{"data-content":"",className:Kn(z?.content,g==null||(c=g.classNames)==null?void 0:c.content)},Z.createElement("div",{"data-title":"",className:Kn(z?.title,g==null||(u=g.classNames)==null?void 0:u.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?Z.createElement("div",{"data-description":"",className:Kn(G,fu,z?.description,g==null||(d=g.classNames)==null?void 0:d.description)},typeof g.description=="function"?g.description():g.description):null),Z.isValidElement(g.cancel)?g.cancel:g.cancel&&Rc(g.cancel)?Z.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||U,onClick:Ee=>{Rc(g.cancel)&&zi&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Ee),Pn())},className:Kn(z?.cancelButton,g==null||(f=g.classNames)==null?void 0:f.cancelButton)},g.cancel.label):null,Z.isValidElement(g.action)?g.action:g.action&&Rc(g.action)?Z.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||ee,onClick:Ee=>{Rc(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Ee),!Ee.defaultPrevented&&Pn())},className:Kn(z?.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function X0(){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 Qj(e,t){const i={};return[e,t].forEach((s,o)=>{const c=o===1,u=c?"--mobile-offset":"--offset",d=c?Fj:Hj;function f(p){["top","right","bottom","left"].forEach(y=>{i[`${u}-${y}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?f(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?i[`${u}-${p}`]=d:i[`${u}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):f(d)}),i}const Xj=Z.forwardRef(function(t,i){const{id:s,invert:o,position:c="bottom-right",hotkey:u=["altKey","KeyT"],expand:d,closeButton:f,className:p,offset:y,mobileOffset:g,theme:b="light",richColors:w,duration:S,style:k,visibleToasts:T=qj,toastOptions:E,dir:L=X0(),gap:C=Kj,icons:$,containerAriaLabel:Q="Notifications"}=t,[P,j]=Z.useState([]),U=Z.useMemo(()=>s?P.filter(F=>F.toasterId===s):P.filter(F=>!F.toasterId),[P,s]),ee=Z.useMemo(()=>Array.from(new Set([c].concat(U.filter(F=>F.position).map(F=>
56F.position)))),[U,c]),[he,G]=Z.useState([]),[Y,te]=Z.useState(!1),[ye,se]=Z.useState(!1),[z,W]=Z.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),le=Z.useRef(null),Ae=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),J=Z.useRef(null),R=Z.useRef(!1),H=Z.useCallback(F=>{j(X=>{var ne;return(ne=X.find(oe=>oe.id===F.id))!=null&&ne.delete||nn.dismiss(F.id),X.filter(({id:oe})=>oe!==F.id)})},[]);return Z.useEffect(()=>nn.subscribe(F=>{if(F.dismiss){requestAnimationFrame(()=>{j(X=>X.map(ne=>ne.id===F.id?{...ne,delete:!0}:ne))});return}setTimeout(()=>{Tj.flushSync(()=>{j(X=>{const ne=X.findIndex(oe=>oe.id===F.id);return ne!==-1?[...X.slice(0,ne),{...X[ne],...F},...X.slice(ne+1)]:[F,...X]})})})}),[P]),Z.useEffect(()=>{if(b!=="system"){W(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?W("dark"):W("light")),typeof window>"u")return;const F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:X})=>{W(X?"dark":"light")})}catch{F.addListener(({matches:ne})=>{try{W(ne?"dark":"light")}catch(oe){console.error(oe)}})}},[b]),Z.useEffect(()=>{P.length<=1&&te(!1)},[P]),Z.useEffect(()=>{const F=X=>{var ne;if(u.every(ge=>X[ge]||X.code===ge)){var fe;te(!0),(fe=le.current)==null||fe.focus()}X.code==="Escape"&&(document.activeElement===le.current||(ne=le.current)!=null&&ne.contains(document.activeElement))&&te(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[u]),Z.useEffect(()=>{if(le.current)return()=>{J.current&&(J.current.focus({preventScroll:!0}),J.current=null,R.current=!1)}},[le.current]),Z.createElement("section",{ref:i,"aria-label":`${Q} ${Ae}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ee.map((F,X)=>{var ne;const[oe,fe]=F.split("-");return U.length?Z.createElement("ol",{key:F,dir:L==="auto"?X0():L,tabIndex:-1,ref:le,className:p,"data-sonner-toaster":!0,"data-sonner-theme":z,"data-y-position":oe,"data-x-position":fe,style:{"--front-toast-height":`${((ne=he[0])==null?void 0:ne.height)||0}px`,"--width":`${Vj}px`,"--gap":`${C}px`,...k,...Qj(y,g)},onBlur:ge=>{R.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(R.current=!1,J.current&&(J.current.focus({preventScroll:!0}),J.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||R.current||(R.current=!0,J.current=ge.relatedTarget)},onMouseEnter:()=>te(!0),onMouseMove:()=>te(!0),onMouseLeave:()=>{ye||te(!1)},onDragEnd:()=>te(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||se(!0)},onPointerUp:()=>se(!1)},U.filter(ge=>!ge.position&&X===0||ge.position===F).map((ge,be)=>{var vt,Tt;return Z.createElement(Jj,{key:ge.id,icons:$,index:be,toast:ge,defaultRichColors:w,duration:(vt=E?.duration)!=null?vt:S,className:E?.className,descriptionClassName:E?.descriptionClassName,invert:o,visibleToasts:T,closeButton:(Tt=E?.closeButton)!=null?Tt:f,interacting:ye,position:F,style:E?.style,unstyled:E?.unstyled,classNames:E?.classNames,cancelButtonStyle:E?.cancelButtonStyle,actionButtonStyle:E?.actionButtonStyle,closeButtonAriaLabel:E?.closeButtonAriaLabel,removeToast:H,toasts:U.filter(st=>st.position==ge.position),heights:he.filter(st=>st.position==ge.position),setHeights:G,expandByDefault:d,gap:C,expanded:Y,swipeDirections:t.swipeDirections})})):null}))}),Zj="sa-cookie-consent",eD=Pc({method:"GET"}).handler(I_("d48b262a5e1027df7b0173818e91b696ff31a2ecfedfde697cc358a7ce84236b"));let zk="",Vo=!1;function dr(...e){window.dataLayer.push(arguments)}function tD(){try{const e=localStorage.getItem(Zj);return!!e&&JSON.parse(e)?.value==="all"}catch{return!1}}function nD(e){if(typeof window>"u"||Vo||!e)return;Vo=!0,zk=e,window.dataLayer=window.dataLayer||[],window.gtag=dr;const t=tD();dr("consent","default",{ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:t?"granted":"denied"}),dr("set","developer_id.dZjgwMW",!0),dr("js",new Date),dr("config",e,{send_page_view:!1,anonymize_ip:!0});const i=document.createElement("script");
56i.async=!0,i.src=`https://www.googletagmanager.com/gtag/js?id=${e}`,document.head.appendChild(i),fp(window.location.pathname)}function iD(e){Vo&&(dr("consent","update",{analytics_storage:e?"granted":"denied"}),e&&fp(window.location.pathname))}function fp(e){if(Vo)try{dr("event","page_view",{page_path:e,page_location:window.location.href,page_title:document.title,send_to:zk})}catch{}}function o3(e,t={}){if(!(typeof window>"u"||!Vo))try{dr("event",e,t)}catch{}}const Z0="sa-cookie-consent";function rD(){const[e,t]=ie.useState(!1),{pathname:i}=OO(),s=i.replace(/\/+$/,"").toLowerCase()==="/leadership-communication-check";ie.useEffect(()=>{if(s){t(!1);return}try{localStorage.getItem(Z0)||t(!0)}catch{t(!0)}},[s]);const o=c=>{try{localStorage.setItem(Z0,JSON.stringify({value:c,ts:Date.now()}))}catch{}iD(c==="all"),t(!1)};return!e||s?null:A.jsx("div",{className:"sa-cookie",role:"dialog","aria-live":"polite","aria-label":"Cookie-Einstellungen",children:A.jsxs("div",{className:"sa-cookie__inner",children:[A.jsxs("div",{className:"sa-cookie__text",children:[A.jsx("p",{className:"sa-cookie__kicker",children:"Cookies & Datenschutz"}),A.jsx("h3",{className:"sa-cookie__title",children:"Wir respektieren Ihre Privatsphäre."}),A.jsxs("p",{className:"sa-cookie__body",children:["Wir verwenden essenzielle Cookies, damit diese Website funktioniert, sowie optionale Cookies für Analyse und Reichweitenmessung. Mehr in unserer ",A.
56jsx("a",{href:"/datenschutz",children:"Datenschutzerklärung"}),"."]})]}),A.jsxs("div",{className:"sa-cookie__actions",children:[A.jsx("button",{type:"button",className:"sa-cookie__btn sa-cookie__btn--ghost",onClick:()=>o("essential"),children:"Nur essenzielle"}),A.jsx("button",{type:"button",className:"sa-cookie__btn sa-cookie__btn--red",onClick:()=>o("all"),children:"Alle akzeptieren"})]})]})})}const jk={"/":"/en","/check-intern":"/en/check-internal"},sD=Object.fromEntries(Object.entries(jk).map(([e,t])=>[t,e])),aD=new Set(["/check-intern-links"]);function oD(){const e=ts({select:c=>c.location.pathname}),t=e.length>1?e.replace(/\/+$/,""):e,i=t==="/en"||t.startsWith("/en/");if(!i&&aD.has(t))return null;const s=(i?(sD[t]??t.replace(/^\/en/,"")??"/")||"/":t)||"/",o=i?t:jk[t]??`/en${t}`;return{isEn:i,dePath:s,enPath:o}}function Nm({variant:e="floating"}){const t=oD();if(!t)return null;const{isEn:i,dePath:s,enPath:o}=t;if(e==="inline")return A.jsxs("div",{className:"sa-lang","aria-label":"Sprache wählen / Choose language",children:[A.jsx("a",{href:s,className:i?void 0:"is-active","aria-current":i?void 0:"page","aria-label":"Auf Deutsch wechseln",children:"DE"}),A.jsx("span",{"aria-hidden":"true",children:"|"}),A.jsx("a",{href:o,className:i?"is-active":void 0,"aria-current":i?"page":void 0,"aria-label":"Switch to English",children:"EN"})]});const c={color:"#fff",textDecoration:"none",padding:"4px 10px",borderRadius:"999px",fontSize:"13px",fontWeight:600,letterSpacing:"0.08em",lineHeight:1,transition:"background 0.15s ease"},u={...c,background:"rgba(255,255,255,0.18)"},d={...c,opacity:.75};return A.jsxs("div",{className:"lang-switcher",style:{position:"fixed",bottom:"14px",left:"14px",zIndex:1e4,display:"inline-flex",alignItems:"center",gap:"2px",background:"rgba(15, 15, 15, 0.78)",border:"1px solid rgba(255,255,255,0.18)",borderRadius:"999px",padding:"4px",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",boxShadow:"0 4px 14px rgba(0,0,0,0.35)"},"aria-label":"Sprache wählen / Choose language",children:[A.jsx("a",{href:s,style:i?d:u,"aria-current":i?void 0:"page","aria-label":"Auf Deutsch wechseln",children:"DE"}),A.jsx("span",{style:{color:"rgba(255,255,255,0.3)",fontSize:"12px"},children:"|"}),A.jsx("a",{href:o,style:i?u:d,"aria-current":i?"page":void 0,"aria-label":"Switch to English",children:"EN"})]})}const Dk=(...e)=>e.filter((t,i,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===i).join(" ").trim();const lD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const cD=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,s)=>s?s.toUpperCase():i.toLowerCase());const ew=e=>{const t=cD(e);return t.charAt(0).toUpperCase()+t.slice(1)};var uD={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 dD=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const hD=ie.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:c,iconNode:u,...d},f)=>ie.createElement("svg",{ref:f,...uD,width:t,height:t,stroke:e,strokeWidth:s?Number(i)*24/Number(t):i,className:Dk("lucide",o),...!c&&!dD(d)&&{"aria-hidden":"true"},...d},[...u.map(([p,y])=>ie.createElement(p,y)),...Array.isArray(c)?c:[c]]));const mp=(e,t)=>{const i=ie.forwardRef(({className:s,...o},c)=>ie.createElement(hD,{ref:c,iconNode:t,className:Dk(`lucide-${lD(ew(e))}`,`lucide-${e}`,s),...o}));return i.displayName=ew(e),i};const fD=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Wh=mp("chevron-down",fD);const mD=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],pD=mp("menu",mD);const gD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yD=mp("x",gD);function tw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vD(...e){return t=>{let i=!1;const s=e.map(o=>{const c=tw(o,t);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let o=0;o<s.length;o++){const c=s[o];typeof c=="function"?c():tw(e[o],null)}}}}var bD=Symbol.for("react.lazy"),Zc=pA[" use ".trim().toString()];function wD(e){return typeof e=="object"&&e!==null&&"then"in e}function Mk(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===bD&&"_payload"in e&&wD(e._payload)}function SD(e){const t=kD(e),i=ie.forwardRef((s,o)=>{let{children:c,...u}=s;Mk(c)&&typeof Zc=="function"&&(c=Zc(c._payload));const d=ie.Children.toArray(c),f=d.find(TD);if(f){const p=f.props.children,y=d.map(g=>g===f?ie.Children.count(p)>1?ie.Children.only(null):ie.isValidElement(p)?p.props.children:null:g);return A.jsx(t,{...u,ref:o,children:ie.isValidElement(p)?ie.cloneElement(p,void 0,y):null})}return A.jsx(t,{...u,ref:o,children:c})});return i.displayName=`${e}.Slot`,i}var _D=SD("Slot");function kD(e){const t=ie.forwardRef((i,s)=>{let{children:o,...c}=i;if(Mk(o)&&typeof Zc=="function"&&(o=Zc(o._payload)),ie.isValidElement(o)){const u=xD(o),d=AD(c,o.props);return o.type!==ie.Fragment&&(d.ref=s?vD(s,u):u),ie.cloneElement(o,d)}return ie.Children.count(o)>1?ie.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ED=Symbol("radix.slottable");function TD(e){return ie.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ED}function AD(e,t){const i={...t};for(const s in t){const o=e[s],c=t[s];/^on[A-Z]/.test(s)?o&&c?i[s]=(...d)=>{const f=c(...d);return o(...d),f}:o&&(i[s]=o):s==="style"?i[s]={...o,...c}
vendor: 2,454 bytes, line 56
56:s==="className"&&(i[s]=[o,c].filter(Boolean).join(" "))}return{...e,...i}}function xD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}function Ik(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(i=Ik(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function Nk(){for(var e,t,i=0,s="",o=arguments.length;i<o;i++)(e=arguments[i])&&(t=Ik(e))&&(s&&(s+=" "),s+=t);return s}const nw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,iw=Nk,RD=(e,t)=>i=>{var s;if(t?.variants==null)return iw(e,i?.class,i?.className);const{variants:o,defaultVariants:c}=t,u=Object.keys(o).map(p=>{const y=i?.[p],g=c?.[p];if(y===null)return null;const b=nw(y)||nw(g);return o[p][b]}),d=i&&Object.entries(i).reduce((p,y)=>{let[g,b]=y;return b===void 0||(p[g]=b),p},{}),f=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((p,y)=>{let{class:g,className:b,...w}=y;return Object.entries(w).every(S=>{let[k,T]=S;return Array.isArray(T)?T.includes({...c,...d}[k]):{...c,...d}[k]===T})?[...p,g,b]:p},[]);return iw(e,u,f,i?.class,i?.className)},CD=(e,t)=>{const i=new Array(e.length+t.length);for(let s=0;s<e.length;s++)i[s]=e[s];for(let s=0;s<t.length;s++)i[e.length+s]=t[s];return i},OD=(e,t)=>({classGroupId:e,validator:t}),Pk=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),eu="-",rw=[],LD="arbitrary..",zD=e=>{const t=DD(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return jD(u);const d=u.split(eu),f=d[0]===""&&d.length>1?1:0;return Uk(d,f,t)},getConflictingClassGroupIds:(u,d)=>{if(d){const f=s[u],p=i[u];return f?p?CD(p,f):f:p||rw}return i[u]||rw}}},Uk=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const o=e[t],c=i.nextPart.get(o);if(c){const p=Uk(e,t+1,c);if(p)return p}const u=i.validators;if(u===null)return;const d=t===0?e.join(eu):e.slice(t).join(eu),f=u.length;for(let p=0;p<f;p++){const y=u[p];if(y.validator(d))return y.classGroupId}},jD=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),s=t.slice(0,i);return s?LD+s:void 0})(),DD=e=>{const{theme:t,classGroups:i}=e;return MD(i,t)},MD=(e,t)=>
vendor: 4,202 bytes, line 56
56{const i=Pk();for(const s in e){const o=e[s];pp(o,i,s,t)}return i},pp=(e,t,i,s)=>{const o=e.length;for(let c=0;c<o;c++){const u=e[c];ID(u,t,i,s)}},ID=(e,t,i,s)=>{if(typeof e=="string"){ND(e,t,i);return}if(typeof e=="function"){PD(e,t,i,s);return}UD(e,t,i,s)},ND=(e,t,i)=>{const s=e===""?t:Bk(t,e);s.classGroupId=i},PD=(e,t,i,s)=>{if(BD(e)){pp(e(s),t,i,s);return}t.validators===null&&(t.validators=[]),t.validators.push(OD(i,e))},UD=(e,t,i,s)=>{const o=Object.entries(e),c=o.length;for(let u=0;u<c;u++){const[d,f]=o[u];pp(f,Bk(t,d),i,s)}},Bk=(e,t)=>{let i=e;const s=t.split(eu),o=s.length;for(let c=0;c<o;c++){const u=s[c];let d=i.nextPart.get(u);d||(d=Pk(),i.nextPart.set(u,d)),i=d}return i},BD=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,$D=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),s=Object.create(null);const o=(c,u)=>{i[c]=u,t++,t>e&&(t=0,s=i,i=Object.create(null))};return{get(c){let u=i[c];if(u!==void 0)return u;if((u=s[c])!==void 0)return o(c,u),u},set(c,u){c in i?i[c]=u:o(c,u)}}},Pm="!",sw=":",qD=[],aw=(e,t,i,s,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:s,isExternal:o}),HD=e=>{const{prefix:t,experimentalParseClassName:i}=e;let s=o=>{const c=[];let u=0,d=0,f=0,p;const y=o.length;for(let k=0;k<y;k++){const T=o[k];if(u===0&&d===0){if(T===sw){c.push(o.slice(f,k)),f=k+1;continue}if(T==="/"){p=k;continue}}T==="["?u++:T==="]"?u--:T==="("?d++:T===")"&&d--}const g=c.length===0?o:o.slice(f);let b=g,w=!1;g.endsWith(Pm)?(b=g.slice(0,-1),w=!0):g.startsWith(Pm)&&(b=g.slice(1),w=!0);const S=p&&p>f?p-f:void 0;return aw(c,w,b,S)};if(t){const o=t+sw,c=s;s=u=>u.startsWith(o)?c(u.slice(o.length)):aw(qD,!1,u,void 0,!0)}if(i){const o=s;s=c=>i({className:c,parseClassName:o})}return s},FD=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,s)=>{t.set(i,1e6+s)}),i=>{const s=[];let o=[];for(let c=0;c<i.length;c++){const u=i[c],d=u[0]==="[",f=t.has(u);d||f?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(u)):o.push(u)}return o.length>0&&(o.sort(),s.push(...o)),s}},VD=e=>({cache:$D(e.cacheSize),parseClassName:HD(e),sortModifiers:FD(e),...zD(e)}),KD=/\s+/,GD=(e,t)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:c}=t,u=[],d=e.trim().split(KD);let f="";for(let p=d.length-1;p>=0;p-=1){const y=d[p],{isExternal:g,modifiers:b,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:k}=i(y);if(g){f=y+(f.length>0?" "+f:f);continue}let T=!!k,E=s(T?S.substring(0,k):S);if(!E){if(!T){f=y+(f.length>0?" "+f:f);continue}if(E=s(S),!E){f=y+(f.length>0?" "+f:f);continue}T=!1}const L=b.length===0?"":b.length===1?b[0]:c(b).join(":"),C=w?L+Pm:L,$=C+E;if(u.indexOf($)>-1)continue;u.push($);const Q=o(E,T);for(let P=0;P<Q.length;++P){const j=Q[P];u.push(C+j)}f=y+(f.length>0?" "+f:f)}return f},YD=(...e)=>{let t=0,i,s,o="";for(;t<e.length;)(i=e[t++])&&(s=$k(i))&&(o&&(o+=" "),o+=s);return o},$k=e=>{if(typeof e=="string")return e;let t,i="";for(let s=0;s<e.length;s++)e[s]&&(t=$k(e[s]))&&(i&&(i+=" "),i+=t);return i},WD=(e,...t)=>{let i,s,o,c;const u=f=>{const p=t.reduce((y,g)=>g(y),e());return i=VD(p),s=i.cache.get,o=i.cache.set,c=d,d(f)},d=f=>{const p=s(f);if(p)return p;const y=GD(f,i);return o(f,y),y};return c=u,(...f)=>c(YD(...f))},JD=[],gt=e=>{const t=i=>i[e]||JD;return t.isThemeGetter=!0,t},qk=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hk=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QD=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,XD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZD=/\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$/,eM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ar=e=>QD.test(e),Ce=e=>!!e&&!Number.isNaN(Number(e)),or=e=>!!e&&Number.isInteger(Number(e)),Jh=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),vi=e=>XD.test(e),Fk=()=>!0,iM=e=>ZD.test(e)&&!eM.test(e),gp=()=>!1,rM=e=>tM.test(e),sM=e=>nM.test(e),aM=e=>!ue(e)&&!me(e),oM=e=>wr(e,Gk,gp),ue=e=>qk.test(e),Kr=e=>wr(e,Yk,iM),ow=e=>wr(e,pM,Ce),lM=e=>wr(e,Jk,Fk),cM=e=>wr(e,Wk,gp),lw=e=>wr(e,Vk,gp),uM=e=>
vendor: 4,398 bytes, line 56
56wr(e,Kk,sM),Cc=e=>wr(e,Qk,rM),me=e=>Hk.test(e),_o=e=>ss(e,Yk),dM=e=>ss(e,Wk),cw=e=>ss(e,Vk),hM=e=>ss(e,Gk),fM=e=>ss(e,Kk),Oc=e=>ss(e,Qk,!0),mM=e=>ss(e,Jk,!0),wr=(e,t,i)=>{const s=qk.exec(e);return s?s[1]?t(s[1]):i(s[2]):!1},ss=(e,t,i=!1)=>{const s=Hk.exec(e);return s?s[1]?t(s[1]):i:!1},Vk=e=>e==="position"||e==="percentage",Kk=e=>e==="image"||e==="url",Gk=e=>e==="length"||e==="size"||e==="bg-size",Yk=e=>e==="length",pM=e=>e==="number",Wk=e=>e==="family-name",Jk=e=>e==="number"||e==="weight",Qk=e=>e==="shadow",gM=()=>{const e=gt("color"),t=gt("font"),i=gt("text"),s=gt("font-weight"),o=gt("tracking"),c=gt("leading"),u=gt("breakpoint"),d=gt("container"),f=gt("spacing"),p=gt("radius"),y=gt("shadow"),g=gt("inset-shadow"),b=gt("text-shadow"),w=gt("drop-shadow"),S=gt("blur"),k=gt("perspective"),T=gt("aspect"),E=gt("ease"),L=gt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...$(),me,ue],P=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],U=()=>[me,ue,f],ee=()=>[ar,"full","auto",...U()],he=()=>[or,"none","subgrid",me,ue],G=()=>["auto",{span:["full",or,me,ue]},or,me,ue],Y=()=>[or,"auto",me,ue],te=()=>["auto","min","max","fr",me,ue],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],se=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...U()],W=()=>[ar,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],le=()=>[ar,"screen","full","dvw","lvw","svw","min","max","fit",...U()],Ae=()=>[ar,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],J=()=>[e,me,ue],R=()=>[...$(),cw,lw,{position:[me,ue]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",hM,oM,{size:[me,ue]}],X=()=>[Jh,_o,Kr],ne=()=>["","none","full",p,me,ue],oe=()=>["",Ce,_o,Kr],fe=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[Ce,Jh,cw,lw],vt=()=>["","none",S,me,ue],Tt=()=>["none",Ce,me,ue],st=()=>["none",Ce,me,ue],Li=()=>[Ce,me,ue],Dt=()=>[ar,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vi],breakpoint:[vi],color:[Fk],container:[vi],"drop-shadow":[vi],ease:["in","out","in-out"],font:[aM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vi],shadow:[vi],spacing:["px",Ce],text:[vi],"text-shadow":[vi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ar,ue,me,T]}],container:["container"],columns:[{columns:[Ce,ue,me,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:Q()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}
vendor: 4,764 bytes, line 56
56],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[or,"auto",me,ue]}],basis:[{basis:[ar,"full","auto",d,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,ar,"auto","initial","none",ue]}],grow:[{grow:["",Ce,me,ue]}],shrink:[{shrink:["",Ce,me,ue]}],order:[{order:[or,"first","last","none",me,ue]}],"grid-cols":[{"grid-cols":he()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":he()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[...se(),"normal"]}],"justify-self":[{"justify-self":["auto",...se()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[...se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...se(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[...se(),"baseline"]}],"place-self":[{"place-self":["auto",...se()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],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":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],"inline-size":[{inline:["auto",...le()]}],"min-inline-size":[{"min-inline":["auto",...le()]}],"max-inline-size":[{"max-inline":["none",...le()]}],"block-size":[{block:["auto",...Ae()]}],"min-block-size":[{"min-block":["auto",...Ae()]}],"max-block-size":[{"max-block":["none",...Ae()]}],w:[{w:[d,"screen",...W()]}],"min-w":[{"min-w":[d,"screen","none",...W()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",i,_o,Kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,mM,lM]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Jh,ue]}],"font-family":[{font:[dM,cM,t]}],"font-features":[{"font-features":[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,me,ue]}],"line-clamp":[{"line-clamp":[Ce,"none",me,ow]}],leading:[{leading:[c,...U()]}],"list-image":[{"list-image":["none",me,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",me,Kr]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[Ce,"auto",me,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},or,me,ue],radial:["",me,ue],conic:[or,me,ue]},fM,uM]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:X()}
vendor: 7,400 bytes, line 56
56],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-bs":[{"border-bs":J()}],"border-color-be":[{"border-be":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,me,ue]}],"outline-w":[{outline:["",Ce,_o,Kr]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",y,Oc,Cc]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",g,Oc,Cc]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[Ce,Kr]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",b,Oc,Cc]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[Ce,me,ue]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"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":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[me,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,ue]}],filter:[{filter:["","none",me,ue]}],blur:[{blur:vt()}],brightness:[{brightness:[Ce,me,ue]}],contrast:[{contrast:[Ce,me,ue]}],"drop-shadow":[{"drop-shadow":["","none",w,Oc,Cc]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",Ce,me,ue]}],"hue-rotate":[{"hue-rotate":[Ce,me,ue]}],invert:[{invert:["",Ce,me,ue]}],saturate:[{saturate:[Ce,me,ue]}],sepia:[{sepia:["",Ce,me,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",me,ue]}],"backdrop-blur":[{"backdrop-blur":vt()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,me,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,me,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,me,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,me,ue]}],"backdrop-invert":[{"backdrop-invert":["",Ce,me,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,me,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,me,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,me,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",me,ue]}],ease:[{ease:["linear","initial",E,me,ue]}],delay:[{delay:[Ce,me,ue]}],animate:[{animate:["none",L,me,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,me,ue]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:Tt()}],"rotate-x":[{"rotate-x":Tt()}],"rotate-y":[{"rotate-y":Tt()}],"rotate-z":[{"rotate-z":Tt()}],scale:[{scale:st()}],"scale-x":[{"scale-x":st()}],"scale-y":[{"scale-y":st()}],"scale-z":[{"scale-z":st()}],"scale-3d":["scale-3d"],skew:[{skew:Li()}],"skew-x":[{"skew-x":Li()}],"skew-y":[{"skew-y":Li()}],transform:[{transform:[me,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Dt()}],"translate-x":[{"translate-x":Dt()}],"translate-y":[{"translate-y":Dt()}],"translate-z":[{"translate-z":Dt()}],"translate-none":["translate-none"],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}
vendor: 6,056 bytes, line 56
56],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,ue]}],"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":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,ue]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[Ce,_o,Kr,ow]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},yM=WD(gM);function vM(...e){return yM(Nk(e))}const bM=RD("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"}}),Yr=ie.forwardRef(({className:e,variant:t,size:i,asChild:s=!1,...o},c)=>{const u=s?_D:"button";return A.jsx(u,{className:vM(bM({variant:t,size:i,className:e})),ref:c,...o})});Yr.displayName="Button";const wM="/__l5e/assets-v1/6dbe648a-1510-45e3-928e-7d5a5ebe356b/solutions-veraenderungskommunikation.jpg",
56SM={url:wM},_M="/__l5e/assets-v1/5c98083b-269e-41a5-80d4-0c2acaf5b6c7/solutions-klare-fuehrungskommunikation.jpg",kM={url:_M},EM="/__l5e/assets-v1/47eec06f-0008-4064-9bfa-8936a82d2e82/solutions-mitarbeitergespraeche.jpg",TM={url:EM},AM="/__l5e/assets-v1/e0d75d39-95c8-4cd6-b921-a72454b6b53c/solutions-kommunikationskultur.jpg",xM={url:AM},RM="/__l5e/assets-v1/5207ea0d-86e4-418a-b417-ca888e96c1a1/solutions-management-alignment.jpg",CM={url:RM},OM="/__l5e/assets-v1/04249957-b5a2-4caf-acc3-1291d3760188/solutions-high-stakes-communication.jpg",LM={url:OM},zM="/__l5e/assets-v1/88577310-bda5-4d3e-abd6-3e92dc5c0522/solutions-ki-fuehrungskommunikation.jpg",jM={url:zM},DM="/__l5e/assets-v1/35e52d3c-098a-47ac-bd91-7411c6a32bfb/solutions-executive-visibility.jpg",MM={url:DM},IM="/__l5e/assets-v1/ce0d9b2e-ffb4-4290-8ba7-78271cf56430/solutions-loesungen-hero.jpg",NM={url:IM},PM="/__l5e/assets-v1/4e015126-d756-423c-a652-15e76edff7f9/formats-briefing.jpg",Xk={url:PM},UM="/__l5e/assets-v1/cf6376d0-630c-4c3b-8c98-63d0e6914936/formats-intensiv.jpg",BM={url:UM},$M="/__l5e/assets-v1/9e36942d-5b01-4934-b6c1-5fedb730137e/formats-journey.jpg",qM={url:$M},HM="/__l5e/assets-v1/58a86501-1f9b-46a3-9177-e5828cbda64b/formats-executive-sparring.jpg",FM={url:HM},VM="/__l5e/assets-v1/e2549bce-292f-4dfd-883e-29da027418fc/ev-video-interview-production.jpg",KM={url:VM},GM="/__l5e/assets-v1/2e904859-d449-4624-93f3-defabe632826/ev-presentation-recording.jpg",YM={url:GM},WM="/__l5e/assets-v1/db0e193d-43d6-4e62-9771-fbda943cd4d1/ev-shooting-day.jpg",JM={url:WM},QM="/__l5e/assets-v1/ace6da4f-0392-4722-95b7-94e6afce4813/ev-ongoing-content.jpg",XM={url:QM},kt={veraenderungskommunikation:SM.url,"klare-fuehrungskommunikation":kM.url,mitarbeitergespraeche:TM.url,kommunikationskultur:xM.url,"management-alignment":CM.url,"high-stakes-communication":LM.url,"ki-fuehrungskommunikation":jM.url,"executive-visibility":MM.url},Zk=NM.url,l3=[Xk.url,BM.url,qM.url,FM.url],c3=[Xk.url,KM.url,YM.url,JM.url,XM.url],yp=[{number:"01",slug:"veraenderungskommunikation",name:"Veränderungskommunikation",title:"Veränderungskommunikation: Orientierung geben und Menschen mitnehmen",subtitle:"Die Veränderung ist bereits angekündigt, aber vielen ist noch nicht klar, was sie für Teams, Führungskräfte und den Arbeitsalltag bedeutet.",description:"Veränderungen scheitern selten an der Strategie, sondern an der Kommunikation. Organisationen verändern sich laufend durch neue Strategien, Digitalisierung, Reorganisationen, Fusionen oder veränderte Marktbedingungen. In diesem Produktbereich unterstützen wir Managementteams dabei, Veränderungen klar, glaubwürdig und anschlussfähig zu kommunizieren. Gemeinsam entwickeln wir ein verständliches Bild der Veränderung und machen ihre Bedeutung für unterschiedliche Zielgruppen greifbar. Menschen können den Sinn verstehen, Orientierung finden und aktiv mitwirken. Statt Widerstand und Flurfunk entstehen Klarheit, Anschlussfähigkeit und echte Beteiligung.",image:kt.veraenderungskommunikation,intro:{audience:"Für Führungskräfte und Managementteams, die Menschen durch eine Strategie, Reorganisation, Digitalisierung, Fusion oder eine andere Veränderung führen und diese im Arbeitsalltag verständlich machen müssen.",formats:["⢠Briefing: Keynote oder Halbtages-Workshop","⢠Intensiv: 2 bis 3 Tage vor Ort","⢠Journey: 4 bis 10 Tage vor Ort + Online-Begleitung","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Modell der Swiss Academy auf Basis von Public Speaking, Neurokommunikation und Energiemanagement. Erforscht von der HSLU Hochschule Luzern und finanziell unterstützt von Innosuisse."},supportIntro:"Wir helfen, Veränderungen verständlich zu machen, eine gemeinsame Kommunikationslinie aufzubauen und Führungskräfte auf den Dialog mit Mitarbeitenden vorzubereiten.",support:[{title:"Neue Strategie",text:"Eine neue Strategie oder strategische Neuausrichtung soll in der Organisation verständlich und greifbar werden."},{title:"Reorganisation oder Digitalisierung",text:"Eine Reorganisation, Digitalisierung, Fusion oder andere Veränderung bringt neue Fragen und unter
56schiedliche Erwartungen mit sich."},{title:"Mitarbeitende verstehen nicht, was sich verändert",text:"Mitarbeitende möchten besser verstehen, warum sich etwas verändert und was die Veränderung für ihren Arbeitsalltag bedeutet."},{title:"Führungskräfte brauchen Sicherheit",text:"Führungskräfte brauchen Sicherheit, um die Veränderung in Teams, Gesprächen und Townhalls klar und glaubwürdig zu vermitteln."},{title:"Unsicherheit nimmt zu",text:"Rund um die Veränderung entstehen Fragen, Unsicherheit oder unterschiedliche Interpretationen, die aktiv aufgegriffen werden sollten."},{title:"Eine gemeinsame Geschichte fehlt",text:"Management und Führungskräfte möchten eine gemeinsame Geschichte und klare Kernbotschaften entwickeln."},{title:"Ankündigen reicht nicht",text:"Die Veränderung soll nicht nur angekündigt, sondern im Alltag verstanden und mitgetragen werden."},{title:"Unterschiedliche Gruppen brauchen unterschiedliche Zugänge",text:"Unterschiedliche Gruppen in der Organisation brauchen jeweils passende Zugänge, Beispiele und Gesprächsformate."}],focusIntro:"Der Fokus des Programms richtet sich nach den Themen, die in Ihrer Situation wirklich wichtig sind.",focus:[{title:"Change Story",text:"Erklären, warum sich die Organisation verändert, wohin sie geht und was das für unterschiedliche Gruppen bedeutet."},{title:"Kernbotschaften",text:"Einige zentrale Gedanken formulieren, die nach der Kommunikation hängen bleiben sollen."},{title:"Kommunikation für unterschiedliche Zielgruppen",text:"Eine Strategie in die Sprache von Management, Teams, Funktionen, Ländern und Standorten übersetzen."},{title:"Führungskommunikation",text:"Führungskräfte so vorbereiten, dass sie Veränderungen konkret und überzeugend mit ihren Teams besprechen können."},{title:"Townhall und Dialog",text:"Kommunikation nicht als einmalige Ankündigung aufsetzen, sondern als Abfolge von Orientierung, Fragen und Dialog."},{title:"Q&A und kritische Fragen",text:"Professionell mit Unsicherheit, Widerstand, Flurfunk und unterschiedlichen Interpretationen umgehen."}],formatsIntro:"Wählen Sie die passende Tiefe: ein kurzer gemeinsamer Einstieg, eine intensive Vorbereitung, eine begleitete Entwicklung oder ein gezieltes 1:1-Sparring.",workFormats:[{title:"Briefing: Kompaktes Impulsformat (Keynote oder Halbtages-Workshop)",text:"Thema: Veränderungs-Kommunikation: Wie Sie Betroffene zu Beteiligten machen. Ergebnis: Gemeinsames Verständnis im Führungskreis, was gute Change-Kommunikation ausmacht mit direkt anwendbaren Leitlinien."},{title:"Intensiv: 2â3-tägiges Trainingsprogramm vor Ort",text:"Thema: Veränderung verständlich machen Ergebnis: Konkrete Kernbotschaften, Storylines und Q&A für den anstehenden Change; geübte Dialogführung in Townhalls, Team- und 1:1-Gesprächen."},{title:"Journey: Mehrmonatiges Entwicklungsprogramm (4â10 Tage vor Ort + Online-Begleitung)",text:"Thema: Veränderung begleiten statt verkünden Ergebnis: Ãber mehrere Wochen entwickeln Führungskräfte ein neues Kommunikationsverhalten im Change mit Praxisaufgaben, Feedback und Transfer in den Alltag."},{title:"Executive Sparring: Individuelle 1:1-Begleitung für Führungskräfte",text:"Thema: Sparring für heikle Veränderungssituationen Ergebnis: Individuelle Vorbereitung auf kritische Change-Momente, zum Beispiel Standortschliessung oder Reorganisation, inklusive Feinschliff an Storyline und persönlichem Auftritt."}],faqIntro:"Kurz dazu, was das Programm bewirkt, wie Sie das passende Format wählen und wann ein anderes Themenfeld sinnvoller ist.",faq:[{question:"Welche Fähigkeiten entwickelt das Programm?",answer:"⢠Eine verständliche Change Story entwickeln: warum wir uns verändern, wohin wir gehen und was das für unterschiedliche Gruppen bedeutet. ⢠Kernbotschaften formulieren und für unterschiedliche Zielgruppen anpassen, ohne die gemeinsame Linie zu verlieren. ⢠Q&A führen und mit Zweifel, Flurfunk und Unsicherheit umgehen, ohne defensiv zu werden oder leere Versprechen zu machen. ⢠Dialogformate aufbauen, damit Veränderung nicht nur angekündigt wird, sondern als klarer Prozess mit Orientierung und nächsten Schritten erlebt wird."},{question:"Wie wählt man das passende Format?",answer:"Das Briefing eignet sich, wenn ein schneller gemeinsamer Blick gebraucht wird. Das Intensivformat passt, wenn eine konkrete Veränderung ansteht und Story, Botschaften, Q&A und Townhall vorbereitet werden müssen. Die Journey ist sinnvoll, wenn die Veränderung über mehrere Etappen läuft und neues Kommunikationsverhalten verankert werden soll. Executive Sparring passt, wenn eine Führungskraft einen konkreten sensiblen Moment vorbereiten muss."},{question:"Können wir das Programm auf unsere Transformation an
56passen?",answer:"Ja. Wir können Ihre Strategie, Reorganisation, Fusion, digitale Transformation, bestehende Unterlagen, Stakeholder Map, Entwürfe, Q&A, Townhall-Szenario und reale Fragen von Mitarbeitenden einbeziehen."},{question:"Was tun, wenn die Führung selbst unterschiedlich über die Veränderung spricht?",answer:"Dann ist zuerst Management-Alignment sinnvoll. Dort entwickelt das Führungsteam eine gemeinsame Linie, bevor die Botschaft in die Organisation geht."}],interaction:{individualTitle:"Individuelle Arbeit",individualText:"Für eine Führungskraft, die eine Ankündigung, eine Townhall oder ein sensibles Gespräch zu einer Veränderung vorbereiten muss.",individualCta:"Individuelle Arbeit besprechen",teamTitle:"Für Teams und Organisationen",teamText:"Für Management- und Leadership-Teams, die eine gemeinsame Change Story, klare Kernbotschaften und eine einheitliche Kommunikationslogik brauchen.",teamCta:"Teamarbeit besprechen"},finalTitle:"Möchten Sie verstehen, welches Format passt?",finalText:"Im kostenlosen Gespräch klären wir Ihre Situation und wählen das passende Format für Einzelpersonen oder Teams.",finalCta:"Kostenloses Gespräch vereinbaren"},{number:"02",slug:"klare-fuehrungskommunikation",name:"Klare Führungskommunikation",title:"Klare Führungskommunikation: Klar kommunizieren, auch wenn es komplex wird",subtitle:"Alle hören im Meeting dasselbe und gehen trotzdem mit einem unterschiedlichen Verständnis der Entscheidung hinaus.",description:"Im Führungsalltag geht es häufig darum, viele Informationen zu ordnen, unterschiedliche Perspektiven zusammenzubringen und daraus Orientierung zu schaffen. Meetings, E-Mails, Präsentationen und Entscheidungsvorlagen sollen nicht nur fachlich korrekt sein, sondern Menschen dabei unterstützen, Wichtiges zu erkennen, Entscheidungen zu treffen und ins Handeln zu kommen. In diesem Produktbereich unterstützen wir Führungskräfte und Management-Teams dabei, ihre Kommunikation klar zu strukturieren: im täglichen Austausch ebenso wie bei komplexen Themen und wichtigen Entscheidungen.",image:kt["klare-fuehrungskommunikation"],intro:{audience:"Für Führungskräfte aller Ebenen und Managementteams, die Meetings, E-Mails, Präsentationen und komplexe Entscheidungen so kommunizieren wollen, dass Menschen das Wesentliche und den nächsten Schritt verstehen.",formats:["⢠Briefing: Keynote oder Halbtages-Workshop","⢠Intensiv: 2 bis 3 Tage vor Ort","⢠Journey: 4 bis 10 Tage vor Ort + Online-Begleitung","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Modell der Swiss Academy auf Basis von Public Speaking, Neurokommunikation und Energiemanagement. Erforscht von der HSLU Hochschule Luzern und finanziell unterstützt von Innosuisse."},supportIntro:"Wir helfen, komplexe Themen klar zu strukturieren, Meetings, E-Mails und Präsentationen verständlicher zu machen und Kommunikation schneller in Entscheidungen und Handeln zu übersetzen.",support:[{title:"Meetings sind überladen",text:"In Meetings gibt es viele relevante Themen; gleichzeitig soll ausreichend Raum für Entscheidungen und nächste Schritte entstehen."},{title:"Nach Gesprächen bleibt Unklarheit",text:"Nach Gesprächen kann es hilfreich sein, Zuständigkeiten, Erwartungen und nächste Schritte noch klarer sichtbar zu machen."},{title:"Zu viele Rückfragen",text:"Bei hoher Informationsdichte entstehen leicht zusätzliche Rückfragen und Kommunikationsschleifen."},{title:"Komplexe Themen müssen einfacher erklärt werden",text:"Komplexe Themen müssen für unterschiedliche Zielgruppen verständlich und anschlussfähig aufbereitet werden."},{title:"Unterlagen führen nicht zur Entscheidung",text:"Entscheidungsvorlagen und Präsentationen sollen noch stärker auf die Perspektive und die konkrete Entscheidung der Adressaten ausgerichtet sein."},{title:"Ein gemeinsames Bild fehlt",text:"Bei bereichsübergreifenden Themen braucht es ein gemeinsames Bild, damit alle am gleichen Verständnis weiterarbeiten können."}],focusIntro:"Der Fokus des Programms richtet sich nach den Themen, die in Ihrer Situation wirklich wichtig sind.",focus:[{title:"Kernbotschaften",text:"Früh und klar formulieren, worum es wirklich geht."},{title:"Komplexe Themen in verständlicher Sprache",text:"Komplexität reduzieren, ohne Inhalte zu verflachen."},{title:"Storytelling",text:"Information in eine verständliche und überzeugende Logik bringen."},{title:"Meetings und Moderation",text:"Meetings so führen, dass Entscheidungen, Verantwortung und nächste Schritte sichtbar werden."},{title:"Schriftliche Kommunikation",text:"E-Mails, Briefings und Entscheidungsvorlagen von Führungskräften klar und knapp strukturieren."},{title:"Präsentationen",text:"Präsentationen von der Zielgruppe und der benötigten Entscheidung her aufbauen, nicht aus der internen Logik des Teams."},{title:"Entscheidungskommunikation",text:"Entscheidungen, Erwartungen, Verantwortung und Konsequenzen klar benennen."},{title:"Adressatengerechte Kommunikation",text:"Eine Botschaft für Geschäftsleitung, Team oder Schnittstellen passend übersetzen."}],formatsIntro:"Wählen Sie die passende Tiefe: ein kurzer gemeinsamer Einstieg, eine intensive Vorbereitung, eine begleitete Entwicklung oder ein gezieltes 1:1-Sparring.",workFormats:[{title:"Briefing: Kompaktes Impulsformat (Keynote oder Halbtages-Workshop)",text:"Thema: Von der Informationsflut zur Orientierung Ergebnis: Ein klares Modell dafür, wie Kommunikation in Meetings, E-Mails, Präsentationen und Entscheidungssituationen auf das Wesentliche und auf konkrete nächste Schritte ausgerichtet wird."},{title:"Intensiv: 2â3-tägiges Trainingsprogramm vor Ort",text:"Thema: Klar führen und komplexe Themen verständlich machen Ergebnis: Die Teilnehmenden bearbeiten reale Meetings, E-Mails, Präsentationen oder Entscheidungsvorlagen. Sie entwickeln klare Kernbotschaften, verbessern die Struktur und üben, Kommunikation verständlich und handlungsorientiert zu führen."},{title:"Journey: Mehrmonatiges Entwicklungsprogramm (4â10 Tage vor Ort + Online-Begleitung)",text:"Thema: Klarheit im Führungsalltag verankern Ergebnis: Schrittweiser Aufbau von Routinen für Entscheidungsorientierung, verständliche Kommunikation und verbindliche Umsetzung, mit Praxisaufgaben, Feedback und Transferbegleitung."},{title:"Executive Sparring: Individuelle 1:1-Begleitung für Führungskräfte",text:"Thema: Sparring für komplexe Entscheidungs- und Kommunikationssituationen Ergebnis: Indiv
56iduelle Vorbereitung auf wichtige Managementrunden, Entscheidungsvorlagen, strategische Präsentationen oder anspruchsvolle Kommunikationssituationen, von der Kernbotschaft bis zum persönlichen Auftritt."}],faqIntro:"Kurz dazu, was das Programm bewirkt, wie Sie das passende Format wählen und wann ein anderes Themenfeld sinnvoller ist.",faq:[{question:"Welche Fähigkeiten entwickelt das Programm?",answer:"⢠Schnell zwischen Wesentlichem und Details unterscheiden und komplexe Themen strukturieren. ⢠Eine Kernbotschaft formulieren und klar zeigen, welche Entscheidung gebraucht wird und was danach passieren soll. ⢠Meetings zu Entscheidungen führen, Verantwortung klären und nächste Schritte sichtbar machen. ⢠Kürzer und präziser schreiben und ein Thema für unterschiedliche Zielgruppen anpassen."},{question:"Wie wählt man das passende Format?",answer:"Das Briefing gibt einen gemeinsamen Ansatz für klare Kommunikation. Das Intensivformat eignet sich für die Arbeit an realen E-Mails, Meetings, Präsentationen und Entscheidungsvorlagen. Die Journey hilft, Klarheit als Führungsroutine zu verankern. Executive Sparring passt für ein konkretes komplexes Thema, eine wichtige Präsentation oder eine dringende Kommunikationsaufgabe."},{question:"Können wir mit unseren realen Unterlagen arbeiten?",answer:"Ja. Am wirksamsten ist das Programm mit Ihren Meeting-Agenden, E-Mails, Präsentationsentwürfen, strategischen Updates, Entscheidungsvorlagen und internen Briefings."},{question:"Was tun, wenn das Problem nicht die Formulierung ist, sondern unter
56schiedliche Positionen in der Führung?",answer:"Dann braucht es zuerst Management-Alignment: Arbeit an der gemeinsamen Position, Entscheidungslogik und einheitlichen Botschaften des Führungsteams."}],interaction:{individualTitle:"Individuelle Arbeit",individualText:"Für eine Führungskraft, die eine konkrete E-Mail, Präsentation, Sitzung oder Entscheidungsvorlage schärfen möchte.",individualCta:"Individuelle Arbeit besprechen",teamTitle:"Für Teams und Organisationen",teamText:"Für Teams, die gemeinsame Standards für klare Meetings, E-Mails, Präsentationen und Entscheidungskommunikation brauchen.",teamCta:"Teamarbeit besprechen"},finalTitle:"Möchten Sie verstehen, welches Format passt?",finalText:"Im kostenlosen Gespräch klären wir Ihre Situation und wählen das passende Format für Einzelpersonen oder Teams.",finalCta:"Kostenloses Gespräch vereinbaren"},{number:"03",slug:"mitarbeitergespraeche",name:"Mitarbeitergespräche",title:"Mitarbeitergespräche: Schwierige Dialoge sicher führen",subtitle:"Das Gespräch ist längst fällig, wird aber verschoben, weil unklar ist, wie man direkt spricht, ohne die Arbeitsbeziehung zu beschädigen.",description:"Ob Leistungsfeedback, Konflikte oder persönliche Themen: Schwierige Mitarbeitergespräche sind oft aufgeschoben, verkürzt oder zu wenig klar geführt. Wir befähigen Führungskräfte, solche Gespräche gut vorzubereiten, Probleme klar anzusprechen und im Dialog zu bleiben mit Respekt für die Person, Klarheit in der Sache und nachhaltigen Ergebnissen.",image:kt.mitarbeitergespraeche,intro:{audience:"Für Führungskräfte aller Ebenen, die schwieriges Feedback, Leistung, Konflikte oder sensible Personalthemen direkt, ruhig und respektvoll besprechen müssen.",formats:["⢠Briefing: Keynote oder Halbtages-Workshop","⢠Intensiv: 2 bis 3 Tage vor Ort","⢠Journey: 4 bis 10 Tage vor Ort + Online-Begleitung","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Modell der Swiss Academy auf Basis von Public Speaking, Neurokommunikation und Energiemanagement. Erforscht von der HSLU Hochschule Luzern und finanziell unterstützt von Innosuisse."},supportIntro:"Wir helfen, schwierige Gespräche vorzubereiten, direkt und respektvoll zu sprechen, mit Reaktionen umzugehen und den Dialog mit einer konkreten Vereinbarung abzuschliessen.",support:[{title:"Schwierige Themen werden verschoben",text:"Kritische Themen werden aus Angst vor Eskalation gemieden oder verharmlost."},{title:"Gespräche werden emotional",text:"Gespräche verlaufen emotional, ohne konkretes Ergebnis."},{title:"Führungskräfte bleiben mit der Situation allein",text:"Führungskräfte fühlen sich allein gelassen und unsicher in heiklen Gesprächen."}],focusIntro:"Der Fokus des Programms richtet sich nach den Themen, die in Ihrer Situation wirklich wichtig sind.",focus:[{title:"Konstruktives Feedback",text:"Konkretes Feedback geben, mit dem die andere Person arbeiten kann."},{title:"Leistung und Entwicklung",text:"Ãber Leistung, Erwartungen und Entwicklung sprechen."},{title:"Kritische Gespräche",text:"Probleme klar ansprechen, ohne die Beziehung unnötig zu beschädigen."},{title:"Konfliktgespräche",text:"Dialog in Spannung, Widerstand und schwierigen Situationen führen."},{title:"Sensible Themen",text:"Persönliche und heikle Fragen sorgfältig und klar behandeln."},{title:"Gesprächsstruktur",text:"Vorbereitung, Einstieg, Kernbotschaft, Fragen und Abschluss planen."},{title:"Emotionen und Eskalation",text:"Handlungsfähig bleiben bei Abwehr, Schweigen, Tränen oder starken Reaktionen."},{title:"Trennung, Versetzung, Fehlverhalten",text:"Besonders anspruchsvolle Personalgespräche mit hoher Tragweite vorbereiten."}],formatsIntro:"Wählen Sie die passende Tiefe: ein kurzer gemeinsamer Einstieg, eine intensive Vorbereitung, eine begleitete Entwicklung oder ein gezieltes 1:1-Sparring.",workFormats:[{title:"Briefing: Kompaktes Impulsformat (Keynote oder Halbtages-Workshop)",text:"Thema: Die Kunst des schwierigen Gesprächs Ergebnis: Leitlinien und einfache Gesprächsstruktur für heikle Dialoge, inklusive typischer Formulierungsbeispiele."},{title:"Intensiv: 2â3-tägiges Trainingsprogramm vor Ort",text:"Thema: Schwierige Gespräche führen, Training mit Praxisfällen Ergebnis: Geübte Gesprächsführung anhand realer Fälle; Feedback auf Wirkung, Sprache und Haltung."},{title:"Journey: Mehrmonatiges Entwicklungsprogramm (4â10 Tage vor Ort + Online-Begleitung)",text:"Thema: Souverän in Konflikten und Kritik Ergebnis: Aufbau von Gesprächskompetenz über mehrere Module mit Transferaufgaben aus dem eigenen Führungsalltag."},{title:"Executive Sparring: Individuelle 1:1-Begleitung für Führungskräfte",text:"Thema: Sparring für besonders heikle Personalgespräche Ergebnis: Indiv
56iduelle Vorbereitung und Nachbereitung von Gesprächen mit hoher Tragweite, zum Beispiel Trennung, Versetzung oder massives Fehlverhalten."}],faqIntro:"Kurz dazu, was das Programm bewirkt, wie Sie das passende Format wählen und wann ein anderes Themenfeld sinnvoller ist.",faq:[{question:"Welche Fähigkeiten entwickelt das Programm?",answer:"⢠Schwierige Gespräche vorbereiten: Ziel, Fakten, Erwartungen, mögliche Reaktionen und nächsten Schritt. ⢠Feedback direkt geben, ohne die Aussage zu verwässern und mit Respekt für die Person. ⢠Die Struktur des Dialogs halten und das Gespräch zur Sache zurückführen, auch wenn Emotionen oder Widerstand entstehen. ⢠Gespräche mit konkreter Vereinbarung, Verantwortung und Follow-up abschliessen."},{question:"Wie wählt man das passende Format?",answer:"Das Briefing gibt eine gemeinsame Struktur und typische Formulierungen. Das Intensivformat ist sinnvoll für Praxis an realen Fällen und Rollensituationen. Die Journey passt, wenn eine Organisation Feedbackkultur und schwierige Gespräche systematisch entwickeln will. Executive Sparring ist für ein einzelnes besonders sensibles Gespräch gedacht."},{question:"Was tun, wenn der Konflikt nicht zwischen zwei Personen liegt, sondern zwischen Funktionen oder Standorten?",answer:"Dann passt eher Kommunikationskultur. Im Zentrum stehen Schnittstellen, Abhängigkeiten, gemeinsame Verantwortung und Zusammenarbeit zwischen Bereichen."}],interaction:{individualTitle:"Individuelle Arbeit",individualText:"Für eine Führungskraft, der ein schwieriges oder sensibles Gespräch bevorsteht und die eine präzise Vorbereitung braucht.",individualCta:"Individuelle Arbeit besprechen",teamTitle:"Für Teams und Organisationen",teamText:"Für Organisationen, die die Qualität von Feedback-, Performance- und Konfliktgesprächen systematisch verbessern wollen.",teamCta:"Teamarbeit besprechen"},finalTitle:"Möchten Sie verstehen, welches Format passt?",finalText:"Im kostenlosen Gespräch klären wir Ihre Situation und wählen das passende Format für Einzelpersonen oder Teams.",finalCta:"Kostenloses Gespräch vereinbaren"},{number:"04",slug:"kommunikationskultur",name:"Kommunikationskultur",title:"Kommunikationskultur: Zusammenarbeit über Silos und Standorte hinweg",subtitle:"Funktionen, Länder und Standorte sind voneinander abhängig und handeln trotzdem so, als könnte jeder Bereich für sich gewinnen.",description:"In vielen Konzernen denken Bereiche, Länder und Standorte primär in ihren eigenen Zielen und Realitäten. Das bremst Geschwindigkeit, Innovationskraft und die Wirkung nach aussen. In diesem Produktbereich unterstützen wir Führungsteams dabei, Silo-, Abteilungs- und Standortdenken aufzubrechen, eine gemeinsame Geschichte zu entwickeln und die Zusammenarbeit in der globalen Organisation spürbar zu stärken. Statt weiterer âWir-müssen-mehr-miteinander-redenâ-Initiativen arbeiten wir an einer Kommunikationskultur, in der Probleme, Abhängigkeiten und Konflikte offen angesprochen und gemeinsame Beschlüsse konsequent in abgestimmtes Handeln übersetzt werden.",image:kt.kommunikationskultur,intro:{audience:"Für Führungs- und Cross-Functional Teams, die die Zusammenarbeit zwischen Funktionen, Ländern, Bereichen und Standorten verbessern wollen, besonders dort, wo Schnittstellen das gemeinsame Ergebnis bremsen.",formats:["⢠Briefing: kurze gemeinsame Session","⢠Intensiv: Arbeit an realen Schnittstellen und Konflikten","⢠Journey: mehrere Module","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Modell der Swiss Academy auf Basis von Public Speaking, Neurokommunikation und Energiemanagement. Erforscht von der HSLU Hochschule Luzern und finanziell unterstützt von Innosuisse."},supportIntro:"Wir helfen, Zusammenarbeit zwischen Funktionen, Bereichen und Standorten zu stärken, Abhängigkeiten zu klären und Entscheidungen in gemeinsames Handeln zu übersetzen.",support:[{title:"Unterschiedliche Prioritäten",text:"Länder, Business Units oder Funktionen verfolgen unterschiedliche Prioritäten und senden widersprüchliche Signale."},{title:"Projekte bleiben an Schnittstellen stecken",text:"Projekte scheitern an Reibereien zwischen Zentralfunktionen und Ländern oder Einheiten."},{title:"Starkes Wir gegen die",text:"âWir gegen die da obenâ, âdie da in der Zentraleâ oder âdie da im Headquarterâ Narrative sind stark."},{title:"Das Unternehmen wirkt wie viele Inseln",text:"Mitarbeitende erleben das Unternehmen nicht als eine Organisation, sondern als viele einzelne Teile."},{title:"Viele Initiativen, wenig Veränderung",text:"Es gibt bereits zahlreiche Initiativen für bessere Zusammenarbeit, ohne dass sich das tägliche Miteinander spürbar verändert."}],focusIntro:"Der Fokus des Programms richtet sich nach den Themen, die in Ihrer Situation wirklich wichtig sind.",focus:[{title:"Arbeit am Silo-Denken",text:"Die Logik von âwir und die anderenâ sichtbar machen und bearbeiten."},{title:"Kommunikation zwischen Funktionen",text:"Zusammenarbeit zwischen Funktionen, Business Units und Schnittstellen verbessern."},{title:"Globale Kommunikation",text:"Headquarter, Regionen, Länder und Standorte besser miteinander verbinden."},{title:"Gemeinsame Geschichte",text:"Ein gemeinsames Verständnis der Organisation über lokale Ziele hinweg schaffen."},{title:"Konflikte und Abhängigkeiten",text:"Offen über Zielkonflikte, Abhängigkeiten und wiederkehrende Reibung sprechen."},{title:"Alignment und Koordination",text:"Kommunikation in echte Entscheidungen und Vereinbarungen übersetzen."},{title:"Von Entscheidungen ins Handeln",text:"Dafür sorgen, dass gemeinsame Entscheidungen zu abgestimmtem Verhalten führen."}],formatsIntro:"Wählen Sie die passende Tiefe: ein kurzer gemeinsamer Einstieg, eine intensive Vorbereitung, eine begleitete Entwicklung oder ein gezieltes 1:1-Sparring.",workFormats:[{title:"Briefing: Kurze gemeinsame Session",text:"Thema: Sehen, wo Zusammenarbeit bricht Ergebnis: Gemeinsame Orientierung zu Schnittstellen, Silo-Logik und Kommunikationskultur."},{title:"Intensiv: Arbeit an konkreten Schnittstellen und Projekten",text:"Thema: Reale Abhängigkeiten und Konflikte bearbeiten Ergebnis: Gemeinsame Arbeit an konkreten Interfaces, Projekten, Abhängigkeiten, Zielkonflikten und Vereinbarungen."},{title:"Journey: Mehrere Module",text:"Thema: Zusammenarbeit nachhaltig verändern Ergebnis: Schrittweise Arbeit, wenn die Zusammenarbeit zwischen Funktionen, Ländern oder Standorten nicht punktuell, sondern dauerhaft anders werden soll."},{title:"Executive Sparring: 1:1",text:"Thema: Wirken ohne formale Macht Ergebnis: Unterstützung für eine Führungskraft in einer k
56omplexen Matrix-, Schnittstellen- oder kritischen Cross-Functional Situation."}],faqIntro:"Kurz dazu, was das Programm bewirkt, wie Sie das passende Format wählen und wann ein anderes Themenfeld sinnvoller ist.",faq:[{question:"Welche Fähigkeiten entwickelt das Programm?",answer:"⢠Muster von Silo-Denken, lokalen Interessen und widersprüchlichen Signalen erkennen. ⢠Eine gemeinsame Geschichte und ein gemeinsames Ergebnis über lokale Ziele hinweg schaffen. ⢠Ãber Abhängigkeiten, Engpässe und Verantwortung offen sprechen, ohne in Schuldzuweisungen zu gehen. ⢠Entscheidungen in gemeinsames Handeln übersetzen und wiederholbare Formate für Abstimmung, Eskalation und Follow-up schaffen."},{question:"Wie wählt man das passende Format?",answer:"Das Briefing hilft, die wichtigsten Brüche schnell sichtbar zu machen. Das Intensivformat passt für Führungs- oder Cross-Functional Teams, die an realen Schnittstellen arbeiten wollen. Die Journey ist sinnvoll, wenn Zusammenarbeit schrittweise verändert werden soll. Executive Sparring passt für Führungskräfte, die eine komplexe Matrix- oder Schnittstellensituation verantworten."},{question:"Können wir das Programm auf unsere Matrixorganisation anpassen?",answer:"Ja. Die Arbeit kann entlang konkreter Verbindungen aufgebaut werden: Headquarter und Länder, Funktionen und Business Units, Regionen und globale Teams, zentrale und lokale Rollen."},{question:"Was tun, wenn die Brüche bereits im Führungsteam beginnen?",answer:"Dann ist zuerst Management-Alignment sinnvoll, damit die Führungskräfte eine gemeinsame Position und eine gemeinsame Kommunikationslinie entwickeln."}],interaction:{individualTitle:"Individuelle Arbeit",individualText:"Für eine Führungskraft, die ohne formale Macht auf Schnittstellen und Stakeholder wirken muss.",individualCta:"Individuelle Arbeit besprechen",teamTitle:"Für Teams und Organisationen",teamText:"Für Teams und Organisationen, bei denen die Zusammenarbeit zwischen Funktionen, Ländern oder Standorten das gemeinsame Ergebnis bremst.",teamCta:"Teamarbeit besprechen"},finalTitle:"Möchten Sie verstehen, welches Format passt?",finalText:"Im kostenlosen Gespräch klären wir Ihre Situation und wählen das passende Format für Einzelpersonen oder Teams.",finalCta:"Kostenloses Gespräch vereinbaren"},{number:"05",slug:"management-alignment",name:"Management-Alignment",title:"Management-Alignment: Gemeinsam auf einer Linie führen",subtitle:"Die Entscheidung ist getroffen, aber es ist bereits absehbar, dass jedes Mitglied des Führungsteams sie anders erklären wird.",description:"Wenn Führungskräfte nach innen und aussen unterschiedliche Signale senden, verliert die Organisation Orientierung und Vertrauen. In diesem Produktbereich arbeiten wir mit Management-Teams daran, gemeinsame Bilder, klare Botschaften und abgestimmte Kommunikationswege zu entwickeln.",image:kt["management-alignment"],intro:{audience:"Für CEOs, Bereichsleitungen und Managementteams, die Entscheidungen nicht nur treffen, sondern gemeinsam weitertragen müssen, mit einer Logik, klaren Botschaften und abgestimmtem Verhalten.",formats:["⢠Briefing: Keynote oder Halbtages-Workshop","⢠Intensiv: 2 bis 3 Tage vor Ort","⢠Journey: 4 bis 10 Tage vor Ort + Online-Begleitung","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Modell der Swiss Academy auf Basis von Public Speaking, Neurokommunikation und Energiemanagement. Erforscht von der HSLU Hochschule Luzern und finanziell unterstützt von Innosuisse."},supportIntro:"Wir helfen Führungsteams, eine gemeinsame Position, klare Kernbotschaften und eine abgestimmte Kommunikationslinie zu entwickeln, bevor eine Entscheidung in die Organisation geht.",support:[{title:"Unterschiedliche Aussagen",text:"Unterschiedliche Aussagen von Führungskräften zu denselben Themen."},{title:"Offiziellen Entscheidungen wird nicht vertraut",text:"Teams orientieren sich an âinoffiziellenâ Meinungen statt an offiziellen Beschlüssen."},{title:"Lagerbildung im Führungskreis",text:"Spannungen und Lagerbildung im Führungskreis."}],focusIntro:"Der Fokus des Programms richtet sich nach den Themen, die in Ihrer Situation wirklich wichtig sind.",focus:[{title:"Gemeinsames Bild",text:"Ein gemeinsames Verständnis von Situation, Richtung und Entscheidung entwickeln."},{title:"Führungsstory",text:"Eine Logik formulieren, die das Managementteam wirklich gemeinsam vertreten kann."},{title:"Kernbotschaften",text:"Zentrale Aussagen abstimmen, die über Ebenen und Funktionen hinweg konsistent bleiben."},{title:"Entscheidung klären",text:"Klärung, was genau entschieden ist und was das bedeutet."},{title:"Kommunikation abstimmen",text:"Definieren, wer was wann und wie kommuniziert."},{title:"Kommunikationsleitplanken",text:"Gemeinsame Prinzipien und Grenzen der weiteren Kommunikation festlegen."},{title:"Eine Stimme",text:"Interne und externe Kommunikation der Führung konsequent und stimmig machen."}],formatsIntro:"Wählen Sie die passende Tiefe: ein kurzer gemeinsamer Einstieg, eine intensive Vorbereitung, eine begleitete Entwicklung oder ein gezieltes 1:1-Sparring.",workFormats:[{title:"Briefing: Kompaktes Impulsformat (Keynote oder Halbtages-Workshop)",text:"Thema: Als Führungsteam mit einer Stimme sprechen Ergebnis: Gemeinsames Verständnis, warum Alignment in der Kommunikation entscheidend ist und wo aktuell Brüche liegen."},{title:"Intensiv: 2â3-tägiges Trainingsprogramm vor Ort",text:"Thema: Führungsbotschaften ausrichten Ergebnis: Erarbeitung einer gemeinsamen Kernstory, Abstimmung zentraler Botschaften und Kommunikationsleitplanken."},{title:"Journey: Mehrmonatiges Entwicklungsprogramm (4â10 Tage vor Ort + Online-Begleitung)",text:"Thema: Vom Gremium zum Führungsteam Ergebnis: Stärkung der gemeinsamen Führungshaltung und Kommunikationspraktiken über mehrere Module."},{title:"Executive Sparring: Individuelle 1:1-Begleitung für Führungskräfte",text:"Thema: Sparring für die Leitung des Führungsteams Ergebnis: Indiv
56iduelle Unterstützung für die Person, die den Führungskreis leitet, zum Beispiel CEO oder Bereichsleitung, um Klarheit und Einheit in der Kommunikation zu fördern."}],faqIntro:"Kurz dazu, was das Programm bewirkt, wie Sie das passende Format wählen und wann ein anderes Themenfeld sinnvoller ist.",faq:[{question:"Welche Fähigkeiten entwickelt das Programm?",answer:"⢠Ein gemeinsames Bild von Situation, Richtung und Entscheidung entwickeln. ⢠Eine einheitliche Führungsstory schaffen und Kernbotschaften abstimmen. ⢠Folgen, Kompromisse und Erwartungen einer Entscheidung verstehen, nicht nur die Entscheidung selbst. ⢠Die Kommunikationskaskade planen: wer was wann und wie gegenüber der Organisation sagt."},{question:"Wie wählt man das passende Format?",answer:"Das Briefing schafft eine gemeinsame Sprache für Alignment. Das Intensivformat ist sinnvoll, wenn in kurzer Zeit eine gemeinsame Story, Botschaften und Kommunikationsprinzipien entwickelt werden müssen. Die Journey hilft, Alignment als wiederholbare Führungspraxis zu verankern. Executive Sparring passt für CEOs oder Führungskräfte, die einen anspruchsvollen Alignment-Prozess leiten."},{question:"Können wir an einer konkreten Entscheidung oder Strategie arbeiten?",answer:"Ja. Am besten arbeitet man an einer realen Frage: neue Strategie, Reorganisation, Krise, Integration, Transformation, Budgetentscheidung oder Führungswechsel."},{question:"Was tun, wenn die gemeinsame Linie bereits steht, aber noch in die Organisation getragen werden muss?",answer:"Dann ist der nächste Schritt Veränderungskommunikation: Change Story, Anpassung für unterschiedliche Zielgruppen, Vorbereitung der Führungskräfte und Dialogformate."}],interaction:{individualTitle:"Individuelle Arbeit",individualText:"Für einen CEO oder eine Führungskraft, die eine anspruchsvolle Sitzung, Entscheidung oder gemeinsame Position vorbereiten muss.",individualCta:"Individuelle Arbeit besprechen",teamTitle:"Für Teams und Organisationen",teamText:"Für Führungsteams, die sich auf eine gemeinsame Linie einigen und eine Entscheidung konsequent in die Organisation tragen wollen.",teamCta:"Teamarbeit besprechen"},finalTitle:"Möchten Sie verstehen, welches Format passt?",finalText:"Im kostenlosen Gespräch klären wir Ihre Situation und wählen das passende Format für Einzelpersonen oder Teams.",finalCta:"Kostenloses Gespräch vereinbaren"},{number:"06",slug:"high-stakes-communication",name:"High-Stakes-Kommunikation und Executive Presence",title:"High-Stakes-Kommunikation und Executive Presence: Souverän auftreten, wenn es darauf ankommt",subtitle:"In 20 Minuten vor Board, Verwaltungsrat oder Investoren braucht das Publikum eine klare Position, nicht die Entstehungsgeschichte des Projekts.",description:"Wenn viel auf dem Spiel steht, reicht fachliche Vorbereitung allein oft nicht aus. Kritische Fragen, unterschiedliche Erwartungen und hohe Sichtbarkeit machen es anspruchsvoll, Inhalte klar, glaubwürdig und persönlich überzeugend zu vermitteln. Wir unterstützen die Geschäftsleitung und Vorstände in solchen Situationen souverän zu bleiben, Orientierung zu geben und Vertrauen zu schaffen und das, ohne sich dabei verstellen zu müssen.",image:kt["high-stakes-communication"],intro:{audience:"Für Geschäftsleitungsmitglieder, Top-Führungskräfte und Leader mit hoher Sichtbarkeit, die vor Board, Investoren, in Townhalls, auf Konferenzen oder in anderen entscheidenden Situationen souverän auftreten müssen.",formats:["⢠Briefing: Keynote oder Halbtages-Workshop","⢠Intensiv: 2 bis 3 Tage vor Ort","⢠Journey: 4 bis 10 Tage vor Ort + Online-Begleitung","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Modell der Swiss Academy auf Basis von Public Speaking, Neurokommunikation und Energiemanagement. Erforscht von der HSLU Hochschule Luzern und finanziell unterstützt von Innosuisse."},supportIntro:"Wir helfen, wichtige Auftritte vorzubereiten, die Kernbotschaft zu schärfen, kritische Fragen zu üben und im entscheidenden Moment souverän zu handeln.",support:[{title:"Ein wichtiger Auftritt steht bevor",text:"Ein wichtiger Auftritt vor Vorstand, Aufsichtsrat, Eigentümern oder Investoren steht bevor."},{title:"Eine Entscheidung muss überzeugend präsentiert werden",text:"Eine Strategie-, Budget- oder Entscheidungsvorlage soll klar, glaubwürdig und überzeugend vermittelt werden."},{title:"Townhall oder öffentliche Veranstaltung",text:"Eine Townhall, Konferenz oder öffentliche Veranstaltung bietet die Möglichkeit, Orientierung zu geben und Vertrauen zu stärken."},{title:"Kritische Fragen werden erwartet",text:"Kritische Fragen oder unterschiedliche Erwartungen verlangen eine besonders gute Vorbereitung."},{title:"Die Zielgruppe muss genauer getroffen werden",text:"Ein Auftritt soll stärker auf die jeweilige Zielgruppe, das Gremium oder das Publikum ausgerichtet werden."},{title:"Die Rolle ist sichtbarer geworden",text:"Eine neue oder sichtbarere Führungsrolle bringt zusätzliche Anforderungen an Präsenz und persönliche Wirkung mit sich."},{title:"Der Auftritt soll souveräner wirken",text:"Der eigene Auftritt soll souveräner und einprägsamer werden, ohne dabei künstlich oder aufgesetzt zu wirken."},{title:"Probe ist nötig",text:"Durch Probe, Feedback oder Videoanalyse soll mehr Sicherheit für den entscheidenden Moment entstehen."}],focusIntro:"Der Fokus des Programms richtet sich nach den Themen, die in Ihrer Situation wirklich wichtig sind.",focus:[{title:"Publikum und Stakeholder",text:"Verstehen, wer im Raum ist, was erwartet wird und welche Entscheidung gebraucht wird."},{title:"Kernbotschaft",text:"Definieren, was das Publikum verstehe
56n und behalten soll."},{title:"Storyline und Dramaturgie",text:"Auftritt und Argumentation rund um Entscheidung und gewünschte Wirkung aufbauen."},{title:"Strategische Präsentationen",text:"Strategie-, Budget- und Entscheidungspräsentationen vorbereiten."},{title:"Executive Presence",text:"Stimme, Sprache, Haltung, Präsenz und persönliche Wirkung stärken, ohne künstlich zu wirken."},{title:"Kritische Fragen und Q&A",text:"Auf Einwände, Risiken und schwierige Fragen vorbereitet sein."},{title:"Probe und Videoanalyse",text:"Probe, Feedback und Analyse vor dem entscheidenden Moment nutzen."}],formatsIntro:"Wählen Sie die passende Tiefe: ein kurzer gemeinsamer Einstieg, eine intensive Vorbereitung, eine begleitete Entwicklung oder ein gezieltes 1:1-Sparring.",workFormats:[{title:"Briefing: Kompaktes Impulsformat (Keynote oder Halbtages-Workshop)",text:"Thema: Souverän auftreten, wenn es darauf ankommt Ergebnis: Klarheit über die Erfolgsfaktoren überzeugender Auftritte vor Publikum und in wichtigen Gremien, von der Zielgruppe und Kernbotschaft bis zur persönlichen Wirkung und zum Umgang mit kritischen Fragen."},{title:"Intensiv: 2â3-tägiges Trainingsprogramm vor Ort",text:"Thema: High-Stakes-Auftritte mit Klarheit und Wirkung Ergebnis: Vorbereitung und Probe eines konkreten Auftritts, einer Präsentation oder einer Gremiensituation. Die Teilnehmenden arbeiten an Botschaft, Dramaturgie, adressatengerechter Aufbereitung, Sprache und Präsenz und erhalten Feedback sowie Videoanalyse."},{title:"Journey: Mehrmonatiges Entwicklungsprogramm (4â10 Tage vor Ort + Online-Begleitung)",text:"Thema: Führungspräsenz in entscheidenden Situationen entwickeln Ergebnis: Längerfristige Entwicklung eines authentischen und wirksamen Auftritts in wiederkehrenden Gremien-, Präsentations- und Ãffentlichkeitssituationen, inklusive Vorbereitung auf kritische Fragen und Transfer in den Führungsalltag."},{title:"Executive Sparring: Individuelle 1:1-Begleitung für Führungskräfte",text:"Thema: Sparring für Schlüsselmomente Ergebnis: Individuelle Vorbereitung auf öffentliche Auftritte sowie Vorstands-, Eigentümer- oder Investorensitzungen, inhaltlich, dramaturgisch und persönlich, inklusive Vorbereitung auf kritische Fragen und mögliche Einwände."}],faqIntro:"Kurz dazu, was das Programm bewirkt, wie Sie das passende Format wählen und wann ein anderes Themenfeld sinnvoller ist.",faq:[{question:"Welche Fähigkeiten entwickelt das Programm?",answer:"⢠Erwartungen, Risiken und Vertrauenskriterien einer konkreten Zielgruppe analysieren. ⢠Eine starke Storyline vom Kontext zur Entscheidung, zum Argument oder zur Bitte entwickeln. ⢠Stimme, Tempo, Pausen, Körpersprache, Kontakt zum Publikum und persönliche Präsenz stärken. ⢠Souverän auf kritische Fragen antworten und den Schlüsselmoment vor dem realen Auftritt proben."},{question:"Wie wählt man das passende Format?",answer:"Das Briefing eignet sich für einen gemeinsamen Vorbereitungsstandard. Das Intensivformat passt für eine konkrete Präsentation, Townhall, Sitzung oder ein Investorengespräch. Die Journey ist sinnvoll für Führungskräfte, die regelmässig in Situationen hoher Sichtbarkeit auftreten. Executive Sparring passt für einen einzelnen dringenden und wichtigen Moment."},{question:"Können wir das Programm auf einen konkreten Auftritt anpassen?",answer:"Ja. Wir können mit einer realen Präsentation, Board-Unterlagen, einem Townhall-Skript, einer Investor Story, einem Konferenzauftritt oder einem kritischen Q&A arbeiten."},{question:"Was tun, wenn der Auftritt auf Video aufgezeichnet wird?",answer:"Dann passt Executive Visibility & Media Production besser. Dort werden Botschaft, Verhalten vor der Kamera, Aufnahmeformat und Produktion als ein gemeinsamer Prozess betrachtet."}],interaction:{individualTitle:"Individuelle Arbeit",individualText:"Für eine Führungskraft, die einen konkreten Auftritt vor Board, Investoren oder grossem Publikum vorbereiten muss.",individualCta:"Individuelle Arbeit besprechen",teamTitle:"Für Teams und Organisationen",teamText:"Für Organisationen, in denen Schlüsselpersonen regelmässig in High-Stakes-Situationen auftreten und ein gemeinsamer Vorbereitungsstandard gebraucht wird.",teamCta:"Teamarbeit besprechen"}
56,finalTitle:"Möchten Sie verstehen, welches Format passt?",finalText:"Im kostenlosen Gespräch klären wir Ihre Situation und wählen das passende Format für Einzelpersonen oder Teams.",finalCta:"Kostenloses Gespräch vereinbaren"},{number:"07",slug:"ki-fuehrungskommunikation",name:"KI-gestützte Führungskommunikation",title:"KI-gestützte Führungskommunikation: KI integrieren, ohne die eigene Stimme zu verlieren",subtitle:"Nutzen Sie KI für Struktur, Storylines und Messaging, damit aus komplexem Material schneller eine klare Botschaft wird, ohne die eigene Stimme zu verlieren.",description:"KI kann die Arbeit mit Notizen, E-Mails, Präsentationsstrukturen und ersten Entwürfen deutlich beschleunigen. Standardisierte Texte ersetzen jedoch kein professionelles Urteil, keine Faktenprüfung, kein Kontextverständnis und keine eigene Führungsposition. Wir nutzen KI als Partner für Struktur, Messaging, Perspektivwechsel, Anpassung an Zielgruppen und Redaktion, mit klarer menschlicher Verantwortung für finalen Text, Tonalität und Richtigkeit.",image:kt["ki-fuehrungskommunikation"],intro:{audience:"Für Führungskräfte und Teams, die KI bereits nutzen oder in E-Mails, Präsentationen und Botschaften integrieren möchten, ohne die eigene Stimme, Qualität, Vertraulichkeit und Verantwortung zu verlieren.",formats:["⢠Briefing: kurze Einführungssession","⢠Intensiv: 1 bis 2 Tage","⢠Journey: mehrere Module","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Modell der Swiss Academy auf Basis von Public Speaking, Neurokommunikation und Energiemanagement. Erforscht von der HSLU Hochschule Luzern und finanziell unterstützt von Innosuisse."},supportIntro:"Wir helfen, KI für klarere und schnellere Kommunikation zu nutzen und dabei eigene Stimme, Qualität und Verantwortung für die finale Botschaft zu bewahren.",support:[{title:"Texte klingen zu generisch",text:"KI spart Zeit, aber das Ergebnis wirkt unpersönlich. Es braucht einen Prozess für Prüfung und Rückführung in die eigene Stimme."},{title:"Ãberzeugende Texte können sachlich falsch sein",text:"Fakten, Annahmen, Ergänzungen des Tools und menschliches professionelles Urteil müssen sauber getrennt werden."},{title:"Gedanken müssen schneller strukturiert werden",text:"KI kann eingesetzt werden, um Ideen zu ordnen, Logik zu prüfen, Storylines zu entwickeln und erste Entwürfe zu erstellen."},{title:"Botschaften müssen angepasst werden",text:"Tonalität, Tiefe und Darstellung müssen für unterschiedliche Zielgruppen verändert werden, ohne die Position der Führungskraft zu verlieren."},{title:"Tools sind vorhanden, aber keine Praxis",text:"Im Unternehmen gibt es freigegebene Tools und Regeln, aber noch keinen wiederholbaren Arbeitsprozess."}],focusIntro:"Der Fokus des Programms richtet sich nach den Themen, die in Ihrer Situation wirklich wichtig sind.",focus:[{title:"Strukturierung komplexer Informationen",text:"KI nutzen, um grosse Informationsmengen schnell zu ordnen, Wesentliches zu erkennen und verstreute Ideen in eine klare Logik zu bringen."},{title:"Anpassung an Zielgruppen",text:"Tiefe, Sprache, Beispiele und Tonalität für Management, Team, Kundinnen und Kunden oder andere Stakeholdergruppen anpassen."},{title:"Messaging vorbereiten",text:"E-Mails, Führungsbotschaften, Briefings und andere Unterlagen schneller, präziser und verständlicher erstellen und überarbeiten."},{title:"Redaktion und Kürzung",text:"Ãberflüssiges entfernen, Formulierungen präzisieren und Texte kürzen, ohne Inhalt und Sinn zu verlieren."},{title:"Argumentation und Storyline",text:"KI als Partner nutzen, um Logik aufzubauen, Argumente zu prüfen und eine konsistente Storyline zu entwickeln."},{title:"Eigene Stimme",text:"Generische KI-Sprache vermeiden und persönlichen Stil, Haltung und erkennbare Kommunikationsweise der Führungskraft erhalten."},{title:"Kritische Prüfung",text:"Eigene Ideen, Annahmen und Schlussfolgerungen prüfen, Schwachstellen, Gegenargumente und alternative Perspektiven finden."}
56,{title:"Urteil und Verantwortung",text:"KI als unterstützendes Werkzeug nutzen und kritisches Denken, finale Einschätzung und Verantwortung beim Menschen behalten."}],formatsIntro:"Wählen Sie die passende Tiefe: ein kurzer gemeinsamer Einstieg, eine intensive Vorbereitung, eine begleitete Entwicklung oder ein gezieltes 1:1-Sparring.",workFormats:[{title:"Briefing: Kurze Einführungssession",text:"Thema: Praktische KI-Szenarien in der Führungskommunikation Ergebnis: Orientierung zu sinnvollen Szenarien und Prinzipien menschlicher Qualitätsprüfung."},{title:"Intensiv: 1 bis 2 Tage",text:"Thema: Praxis an realen Kommunikationsaufgaben Ergebnis: Arbeit mit realen oder anonymisierten E-Mails, Präsentationen, Botschaften und weiteren Kommunikationsaufgaben."},{title:"Journey: Mehrere Module",text:"Thema: KI in wiederkehrende Führungsaufgaben integrieren Ergebnis: Schrittweiser Aufbau stabiler Prozesse für KI-gestützte Kommunikation."},{title:"Executive Sparring: 1:1",text:"Thema: Eine konkrete Aufgabe mit KI und menschlicher Prüfung lösen Ergebnis: Individuelle Arbeit an einem anspruchsvollen Text, Auftritt, Statement oder an Entscheidungskommunikation."}],faqIntro:"Kurz dazu, was das Programm bewirkt, wie Sie das passende Format wählen und wann ein anderes Themenfeld sinnvoller ist.",faq:[{question:"Welche Fähigkeiten entwickelt das Programm?",answer:"⢠Komplexe Gedanken und Ausgangsmaterialien mit KI strukturieren. ⢠Varianten von Kernbotschaften, Headlines und Stakeholder-Messages entwickeln. ⢠KI für Argumentation und Prüfung von Logiklücken nutzen. ⢠Human Review, eigene Haltung und Verantwortung für das finale Ergebnis sichern."},{question:"Wie wählt man das passende Format?",answer:"Das Briefing gibt einen praktischen Einstieg ins Thema. Das Intensivformat ist sinnvoll, wenn Teilnehmende mit realen E-Mails, Präsentationen, strategischen Botschaften oder Q&A arbeiten sollen. Die Journey passt für die Einführung wiederholbarer Praktiken. Executive Sparring ist für eine konkrete anspruchsvolle Aufgabe gedacht."},{question:"Können wir das Programm auf unsere Tools und Regeln anpassen?",answer:"Ja. Freigegebene Tools, interne Policies, Vertraulichkeitsregeln, Prompt-Standards und reale Kommunikationsaufgaben Ihrer Organisation können berücksichtigt werden."},{question:"Was tun, wenn die Hauptschwierigkeit nicht KI ist, sondern die Struktur komplexer Botschaften?",answer:"Dann ist Klare Führungskommunikation der bessere Einstieg. Zuerst braucht es eine starke Kommunikationslogik, danach kann KI sinnvoll beschleunigen."}],interaction:{individualTitle:"Individuelle Arbeit",individualText:"Für eine Führungskraft, die KI in E-Mails, Präsentationen und Botschaften nutzen möchte, ohne die eigene Stimme zu verlieren.",individualCta:"Individuelle Arbeit besprechen",teamTitle:"Für Teams und Organisationen",teamText:"Für Organisationen, die eine gemeinsame Praxis für hochwertige KI-gestützte Kommunikation, Faktenprüfung und Human Review brauchen.",teamCta:"Teamarbeit besprechen"},finalTitle:"Möchten Sie verstehen, welches Format passt?",finalText:"Im kostenlosen Gespräch klären wir Ihre Situation und wählen das passende Format für Einzelpersonen oder Teams.",finalCta:"Kostenloses Gespräch vereinbaren"},{number:"08",slug:"executive-visibility",name:"Executive Visibility & Media Production",title:"Executive Visibility & Media Production: Präsenz stärken und sichtbar werden",subtitle:"Eine Führungskraft kann eine starke Position haben. Wenn sie vor der Kamera nicht klar und natürlich wirkt, kommt sie beim Publikum nicht an.",description:"Videos, Interviews, Podcasts und aufgezeichnete Statements machen Führungskräfte innerhalb und ausserhalb der Organisation sichtbarer. Vor der Kamera wird jedoch schnell sichtbar, was in einem normalen Meeting kaum auffällt: lange Antworten, komplizierte Formulierungen, eine fehlende klare Position oder eine zu stark vorbereitete Sprache.",image:kt["executive-visibility"],intro:{audience:"Für Führungskräfte und Organisationen, die starke Videos, Interviews und aufgezeichnete Auftritte brauchen, von Botschaft und Speaker Preparation bis zu Aufnahme und Postproduktion.",formats:["⢠Media Co
56aching: 1:1","⢠Video & Interview Production: Projektformat","⢠Presentation Recording: Vorbereitung und Aufnahme","⢠Shooting Day: 1 Tag","⢠Ongoing Executive Content Support"],foundation:"TRIPLE IMPACT: Modell der Swiss Academy auf Basis von Public Speaking, Neurokommunikation und Energiemanagement. Erforscht von der HSLU Hochschule Luzern und finanziell unterstützt von Innosuisse."},supportIntro:"Vom einzelnen Interview bis zur Serie von Executive Videos: Wir bereiten Inhalt, Führungskraft und Aufnahme so vor, wie es die konkrete Situation verlangt.",support:[{title:"CEO & Executive Videos",text:"Video-Statements von Führungskräften an Mitarbeitende, Kundinnen und Kunden, Partner oder den Markt, mit klarer Botschaft und natürlicher Wirkung statt vorgelesenem Corporate Text."},{title:"Interviews und Expertengespräche",text:"Vorbereitung auf Interview, Podcast oder Conversational Video: kurze Antworten, klare Position, Umgang mit Fragen und schnelles Fokussieren auf das Wesentliche."},{title:"Thought Leadership Content",text:"Erfahrung, Ideen und Haltung von Führungskräften in substanziellen Content für LinkedIn, Corporate Channels und externe Kommunikation übersetzen."},{title:"Townhalls und interne Video-Statements",text:"Kommunikation zu Veränderung, Strategie, Ergebnissen oder wichtigen Entscheidungen so vorbereiten, dass die Botschaft nicht nur gesendet, sondern verstanden wird."},{title:"Aufgezeichnete Präsentationen und Keynotes",text:"Präsentationen für die Kamera anpassen: Inhalt kürzen, Storyline neu aufbauen und den Auftritt natürlich machen, auch ohne Live-Publikum im Raum."},{title:"Vorbereitung und Aufnahme in unserem Studio",text:"Arbeit an Botschaft, Camera Coaching, Probe, professionelle Aufnahme mit Kamera, Licht und Ton sowie anschliessende Aufbereitung für die Veröffentlichung."}],focusIntro:"Der Fokus des Programms richtet sich nach den Themen, die in Ihrer Situation wirklich wichtig sind.",focus:[{title:"Kernbotschaft",text:"Definieren, was das Publikum verstehen, behalten und aus der Aufnahme mitnehmen soll."},{title:"Stimme, Tempo und Wirkung",text:"An Sprechtempo, Pausen, Intonation, Energie und Kontakt zum Publikum arbeiten."},{title:"Storyline und Struktur",text:"Die Logik so aufbauen, dass der Hauptgedanke früh klar wird und die Argumente ihn stärken, statt zu überladen."},{title:"Executive Presence",text:"Persönliche Präsenz und Sicherheit vor der Kamera stärken."},{title:"Arbeit vor der Kamera",text:"Natürlich, sicher und lebendig sprechen, ohne Ablesen, Auswendiglernen oder übertriebene Formalität."},{title:"Anpassung an Format und Publikum",text:"Botschaft für CEO Video, Interview, Podcast, Townhall, aufgezeichnete Präsentation oder Social Media einstellen."},{title:"Interviews und Antworten auf Fragen",text:"Schnell zum Kern kommen, die Linie der Antwort halten und souverän mit Nachfragen oder kritischen Fragen umgehen."},{title:"Studio und Produktion",text:"Kamera, Ton, Licht, Dreh und Postproduktion professionell organisieren."}],formatsIntro:"Wählen Sie die passende Tiefe: ein kurzer gemeinsamer Einstieg, eine intensive Vorbereitung, eine begleitete Entwicklung oder ein gezieltes 1:1-Sparring.",workFormats:[{title:"Media Coaching: 1:1",text:"Thema: Vorbereitung auf Kamera, Mikrofon und Interview Ergebnis: Die Führungskraft wirkt im Bild, im Interview und bei der Aufnahme sicherer und präziser.",tag:"1:1"},{title:"Video & Interview Production: Projektformat",text:"Thema: Produktion eines konkreten Statements, Interviews oder Videocasts Ergebnis: Botschaft, Vorbereitung der Sprecherin oder des Sprechers und Produktion werden in einem Prozess zusammengeführt.",tag:"Projektformat"},{title:"Presentation Recording: Vorbereitung und Aufnahme",text:"Thema: Aufgezeichnete Präsentation oder Keynote Ergebnis: Vorbereitung von Inhalt und Speaker mit anschliessender professioneller Aufnahme.",tag:"Vorbereitung und Aufnahme"},{title:"Shooting Day: 1 Tag",text:"Thema: Mehrere Speaker oder Materialien in einer Session Ergebnis: Geplanter Produktionstag für mehrere Führungskräfte, Formate oder Content-Einheiten.",tag:"1 Tag"},{title:"Ongoing Executive Content Support",text:"Thema: Regelmässiger Content von Führungskräften Ergebnis: Kontinuierliche Arbeit an sichtbarer Führungskommunikation mit einheitlichem Rhythmus und Qualitätsstandard."}],faqIntro:"Kurz dazu, was das Programm bewirkt, wie Sie das passende Format wählen und wann ein anderes Themenfeld sinnvoller ist.",faq:[{question:"Welche Fähigkeiten und Ergebnisse entwickelt das Programm?",answer:"⢠Positionierung der Führungskraft und Themen definieren, mit denen sie sichtbar werden soll. ⢠Sicher vor der Kamera sprechen und mit Blick, Stimme, Tempo und Energie arbeiten. ⢠Interviewlogik aufbauen und zentrale Antworten vorbereiten. ⢠Medienkonzepte entwickeln und einen sauberen Prozess von Briefing bis Postproduktion aufsetzen."},{question:"Wie wählt man das passende Format?",answer:"Individuelles Media Co
56aching ist sinnvoll, wenn Sicherheit vor der Kamera gebraucht wird. Projektproduktion passt für ein konkretes Statement, Interview oder einen Videocast. Ein Shooting Day ist sinnvoll, wenn mehrere Speaker oder Materialien aufgenommen werden sollen. Ongoing Support passt für regelmässige Führungskommunikation."},{question:"Können wir die Produktion auf unsere Kanäle anpassen?",answer:"Ja. Das Format kann auf interne Kanäle, LinkedIn, Townhall-Videos, CEO Messages, Employer Branding, Kundenkommunikation und Ihre visuelle Identität ausgerichtet werden."},{question:"Was tun, wenn es nicht um Video geht, sondern um einen entscheidenden Live-Auftritt?",answer:"Dann passt High-Stakes-Kommunikation und Executive Presence besser. Dort stehen Wirkung im Raum, Q&A und Verhalten im Moment der Entscheidung im Zentrum."}],interaction:{individualTitle:"Individuelle Arbeit",individualText:"Für eine Führungskraft, die vor Kamera, Mikrofon oder im Interview sicherer und präziser wirken möchte.",individualCta:"Individuelle Arbeit besprechen",teamTitle:"Für Teams und Organisationen",teamText:"Für Organisationen, die einen wiederholbaren Prozess für Videos, Interviews und regelmässigen Executive Content brauchen.",teamCta:"Teamarbeit besprechen"},finalTitle:"Möchten Sie verstehen, welches Format passt?",finalText:"Im kostenlosen Gespräch klären wir Ihre Situation und wählen das passende Format für Einzelpersonen oder Teams.",finalCta:"Kostenloses Gespräch vereinbaren"}],ZM=e=>yp.find(t=>t.slug===e),vp=[{number:"01",slug:"veraenderungskommunikation",name:"Change Communication",title:"Change Communication: Giving Orientation and Taking People Along",subtitle:"The change has already been announced, but many people still don't know what it means for teams, leaders and everyday work.",description:"Change rarely fails because of strategy, it fails because of communication. Organisations are constantly changing through new strategies, digitalisation, reorganisations, mergers or shifting market conditions. In this solution area, we help management teams communicate change clearly, credibly and in a way people can connect with. Together we develop an understandable picture of the change and make its meaning tangible for different audiences. People can understand the purpose, find orientation and actively contribute. Instead of resistance and rumours, clarity, connection and genuine engagement emerge.",image:kt.veraenderungskommunikation,intro:{audience:"For leaders and management teams who are guiding people through a strategy, reorganisation, digitalisation, merger or other change, and need to make it tangible in everyday work.",formats:["⢠Briefing: Keynote or half-day workshop","⢠Intensive: 2 to 3 days on site","⢠Journey: 4 to 10 days on site + online support","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Swiss Academy's model built on public speaking, neurocommunication and energy management. Researched by Lucerne University of Applied Sciences and Arts (HSLU) and financially supported by Innosuisse."},supportIntro:"We help make change understandable, build a shared communication line, and prepare leaders for the dialogue with employees.",support:[{title:"A new strategy",text:"A new strategy or strategic realignment needs to become understandable and tangible within the organisation."},{title:"Reorganisation or digitalisation",text:"A reorganisation, digitalisation, merger or other change brings new questions and different expectations."},{title:"Employees don't understand what's changing",text:"Employees want to better understand why something is changing and what the change means for their everyday work."},{title:"Leaders need confidence",text:"Leaders need confidence to convey the change clearly and credibly in teams, conversations and townhalls."},{title:"Uncertainty is growing",text:"Around the change, questions, uncertainty or differing interpretations arise that should be actively addressed."},{title:"A shared story is missing",text:"Management and leaders want to develop a shared story and clear core messages."},{title:"Announcing is not enough",text:"The change should not just be announced, it should be understood and embraced in everyday work."},{title:"Different groups need different approaches",text:"Different groups within the organisation each need suitable approaches, examples and conversation formats."}],focusIntro:"The focus of the programme is shaped by the topics that truly matter in your situation.",focus:[{title:"Change Story",text:"Explaining why the organisation is changing, where it is heading and what that means for different groups."},{title:"Core messages",text:"Formulating a few central thoughts that should stick after the communication."},{title:"Communication for different audiences",text:"Translating a strategy into the language of management, teams, functions, countries and locations."},{title:"Leadership communication",text:"Preparing leaders so they can discuss change concretely and convincingly with their teams."},{title:"Townhall and dialogue",text:"Setting up communication not as a one-off announcement, but as a sequence of orientation, questions and dialogue."},{title:"Q&A and critical questions",text:"Handling uncertainty, resistance, rumours and differing interpretations professionally."}],formatsIntro:"Choose the right depth: a short shared introduction, an intensive preparation, a guided development programme or targeted 1:1 sparring.",workFormats:[{title:"Briefing: Compact impulse format (keynote or half-day workshop)",text:"Thema: Change communication: how to turn those affected
56into those involved. Ergebnis: A shared understanding within the leadership circle of what good change communication looks like, with directly applicable guidelines."},{title:"Intensive: 2â3-day on-site training programme",text:"Thema: Making change understandable Ergebnis: Concrete core messages, storylines and Q&A for the upcoming change; practised dialogue skills for townhalls, team and 1:1 conversations."},{title:"Journey: Multi-month development programme (4â10 days on site + online support)",text:"Thema: Accompanying change instead of just announcing it Ergebnis: Over several weeks, leaders develop new communication behaviour for the change, with practical assignments, feedback and transfer into everyday work."},{title:"Executive Sparring: Individual 1:1 support for leaders",text:"Thema: Sparring for sensitive change situations Ergebnis: Individual preparation for critical change moments, for example a site closure or reorganisation, including fine-tuning of the storyline and personal presence."}],faqIntro:"A short overview of what the programme achieves, how to choose the right format, and when a different topic area makes more sense.",faq:[{question:"What skills does the programme develop?",answer:"⢠Develop an understandable change story: why we are changing, where we are going and what that means for different groups. ⢠Formulate core messages and adapt them for different audiences without losing the shared line. ⢠Run Q&A sessions and deal with doubt, rumours and uncertainty without becoming defensive or making empty promises. ⢠Build dialogue formats so change is not just announced, but experienced as a clear process with orientation and next steps."},{question:"How do you choose the right format?",answer:"The briefing is suitable when a quick shared perspective is needed. The intensive format fits when a specific change is coming up and the story, messages, Q&A and townhall need to be prepared. The journey makes sense when the change unfolds over several stages and new communication behaviour needs to be anchored. Executive Sparring fits when a leader needs to prepare for a specific sensitive moment."},{question:"Can we adapt the programme to our transformation?",answer:"Yes. We can incorporate your strategy, reorganisation, merger, digital transformation, existing materials, stakeholder map, drafts, Q&A, townhall scenario and real questions from employees."},{question:"What if leadership itself talks about the change in different ways?",answer:"Then it makes sense to start with management alignment. There, the leadership team develops a shared line before the message goes out into the organisation."}],interaction:{individualTitle:"Individual work",individualText:"For a leader who needs to prepare an announcement, a townhall or a sensitive conversation about a change.",individualCta:"Discuss individual work",teamTitle:"For teams and organisations",teamText:"For management and leadership teams that need a shared change story, clear core messages and a consistent communication logic.",teamCta:"Discuss team work"},finalTitle:"Want to understand which format fits?",finalText:"In a free conversation, we clarify your situation and choose the right format for individuals or teams.",f
56inalCta:"Book a free conversation"},{number:"02",slug:"klare-fuehrungskommunikation",name:"Clear Leadership Communication",title:"Clear Leadership Communication: Communicating Clearly, Even When It Gets Complex",subtitle:"Everyone hears the same thing in the meeting and still walks out with a different understanding of the decision.",description:"Everyday leadership is often about organising a lot of information, bringing different perspectives together and creating orientation from them. Meetings, emails, presentations and decision papers should not only be factually correct, they should help people recognise what matters, make decisions and take action. In this solution area, we help leaders and management teams structure their communication clearly: in daily exchange as well as for complex topics and important decisions.",image:kt["klare-fuehrungskommunikation"],intro:{audience:"For leaders at all levels and management teams who want to communicate meetings, emails, presentations and complex decisions so that people understand what matters and what the next step is.",formats:["⢠Briefing: Keynote or half-day workshop","⢠Intensive: 2 to 3 days on site","⢠Journey: 4 to 10 days on site + online support","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Swiss Academy's model built on public speaking, neurocommunication and energy management. Researched by Lucerne University of Applied Sciences and Arts (HSLU) and financially supported by Innosuisse."},supportIntro:"We help structure complex topics clearly, make meetings, emails and presentations more understandable, and translate communication into decisions and action faster.",support:[{title:"Meetings are overloaded",text:"Meetings cover many relevant topics, while there should still be enough room for decisions and next steps."},{title:"Ambiguity remains after conversations",text:"After conversations, it can help to make responsibilities, expectations and next steps even more visible."},{title:"Too many follow-up questions",text:"With high information density, additional follow-up questions and communication loops arise easily."},{title:"Complex topics need to be explained more simply",text:"Complex topics need to be made understandable and accessible for different audiences."},{title:"Documents don't lead to a decision",text:"Decision papers and presentations should be even more focused on the audience's perspective and the specific decision required."},{title:"A shared picture is missing",text:"For cross-functional topics, a shared picture is needed so everyone can build on the same understanding."}],focusIntro:"The focus of the programme is shaped by the topics that truly matter in your situation.",focus:[{title:"Core messages",text:"Formulating early and clearly what the topic is really about."},{title:"Complex topics in understandable language",text:"Reducing complexity without oversimplifying the content."},{title:"Storytelling",text:"Bringing information into an understandable and convincing logic."},{title:"Meetings and moderation",text:"Running meetings so that decisions, responsibility and next steps become visible."},{title:"Written communication",text:"Structuring leaders' emails, briefings and decision papers clearly and concisely."},{title:"Presentations",text:"Building presentations from the audience's perspective and the decision required, not from the team's internal logic."},{title:"Decision communication",text:"Clearly naming decisions, expectations, responsibility and consequences."},{title:"Audience-appropriate communication",text:"Translating a message appropriately for executive board, team or interfaces."}],formatsIntro:"Choose the right depth: a short shared introduction, an intensive preparation, a guided development programme or targeted 1:1 sparring.",workFormats:[{title:"Briefing: Compact impulse format (keynote or half-day workshop)",text:"Thema: From information overload to orientation Ergebnis: A clear model for how communication in meetings, emails, presentations and decision situations is focused on what matters and on concrete next steps."},{title:"Intensive: 2â3-day on-site training programme",text:"Thema: Leading clearly and making complex topics understandable Ergebnis: Participants work on real meetings, emails, presentations or decision papers. They develop clear core messages, improve structure and practise leading communication in an understandable, action-oriented way."},{title:"Journey: Multi-month development programme (4â10 days on site + online support)",text:"Thema: Anchoring clarity in everyday leadership Ergebnis: Step-by-step development of routines for decision orientation, understandable communication and reliable implementation, with practical assignments, feedback and transfer support."},{title:"Executive Sparring: Individual 1:1 support for leaders",text:"Thema: Sparring for complex decision and communication situations Ergebnis: Indiv
56idual preparation for important management rounds, decision papers, strategic presentations or demanding communication situations, from core message to personal presence."}],faqIntro:"A short overview of what the programme achieves, how to choose the right format, and when a different topic area makes more sense.",faq:[{question:"What skills does the programme develop?",answer:"⢠Quickly distinguish between essentials and details and structure complex topics. ⢠Formulate a core message and clearly show what decision is needed and what should happen next. ⢠Lead meetings to decisions, clarify responsibility and make next steps visible. ⢠Write more concisely and precisely and adapt a topic for different audiences."},{question:"How do you choose the right format?",answer:"The briefing provides a shared approach to clear communication. The intensive format is suitable for working on real emails, meetings, presentations and decision papers. The journey helps anchor clarity as a leadership routine. Executive Sparring fits a specific complex topic, an important presentation or an urgent communication task."},{question:"Can we work with our real materials?",answer:"Yes. The programme is most effective with your meeting agendas, emails, presentation drafts, strategic updates, decision papers and internal briefings."},{question:"What if the problem isn't the wording, but different positions within leadership?",answer:"Then management alignment is needed first: working on the leadership team's shared position, decision logic and consistent messages."}],interaction:{individualTitle:"Individual work",individualText:"For a leader who wants to sharpen a specific email, presentation, meeting or decision paper.",individualCta:"Discuss individual work",teamTitle:"For teams and organisations",teamText:"For teams that need shared standards for clear meetings, emails, presentations and decision communication.",teamCta:"Discuss team work"},finalTitle:"Want to understand which format fits?",finalText:"In a free conversation, we clarify your situation and choose the right format for individuals or teams.",f
56inalCta:"Book a free conversation"},{number:"03",slug:"mitarbeitergespraeche",name:"Employee Conversations",title:"Employee Conversations: Leading Difficult Dialogues with Confidence",subtitle:"The conversation is long overdue, but keeps being postponed because it's unclear how to speak directly without damaging the working relationship.",description:"Whether it's performance feedback, conflicts or personal matters: difficult employee conversations are often postponed, cut short or not handled with enough clarity. We equip leaders to prepare such conversations well, address problems clearly and stay in dialogue, with respect for the person, clarity on the matter and lasting results.",image:kt.mitarbeitergespraeche,intro:{audience:"For leaders at all levels who need to discuss difficult feedback, performance, conflicts or sensitive personnel matters directly, calmly and respectfully.",formats:["⢠Briefing: Keynote or half-day workshop","⢠Intensive: 2 to 3 days on site","⢠Journey: 4 to 10 days on site + online support","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Swiss Academy's model built on public speaking, neurocommunication and energy management. Researched by Lucerne University of Applied Sciences and Arts (HSLU) and financially supported by Innosuisse."},supportIntro:"We help prepare difficult conversations, speak directly and respectfully, deal with reactions, and close the dialogue with a concrete agreement.",support:[{title:"Difficult topics get postponed",text:"Critical topics are avoided or downplayed out of fear of escalation."},{title:"Conversations become emotional",text:"Conversations become emotional without a concrete outcome."},{title:"Leaders are left alone with the situation",text:"Leaders feel left alone and uncertain in difficult conversations."}],focusIntro:"The focus of the programme is shaped by the topics that truly matter in your situation.",focus:[{title:"Constructive feedback",text:"Giving concrete feedback that the other person can work with."},{title:"Performance and development",text:"Talking about performance, expectations and development."},{title:"Critical conversations",text:"Addressing problems clearly without unnecessarily damaging the relationship."},{title:"Conflict conversations",text:"Leading dialogue amid tension, resistance and difficult situations."},{title:"Sensitive topics",text:"Handling personal and delicate questions carefully and clearly."},{title:"Conversation structure",text:"Planning preparation, opening, core message, questions and closing."},{title:"Emotions and escalation",text:"Staying capable of action amid defensiveness, silence, tears or strong reactions."},{title:"Separation, transfer, misconduct",text:"Preparing particularly demanding personnel conversations with high stakes."}],formatsIntro:"Choose the right depth: a short shared introduction, an intensive preparation, a guided development programme or targeted 1:1 sparring.",workFormats:[{title:"Briefing: Compact impulse format (keynote or half-day workshop)",text:"Thema: The art of the difficult conversation Ergebnis: Guidelines and a simple conversation structure for sensitive dialogues, including typical example phrasing."},{title:"Intensive: 2â3-day on-site training programme",text:"Thema: Leading difficult conversations, training with practical cases Ergebnis: Practised conversation skills based on real cases; feedback on impact, language and stance."},{title:"Journey: Multi-month development programme (4â10 days on site + online support)",text:"Thema: Confident in conflict and criticism Ergebnis: Building conversation competence over several modules with transfer assignments from your own everyday leadership."},{title:"Executive Sparring: Individual 1:1 support for leaders",text:"Thema: Sparring for particularly sensitive personnel conversations Ergebnis: Individual preparation and follow-up for high-stakes conversations, for example separation, transfer or serious misconduct."}],faqIntro:"A short overview of what the programme achieves, how to choose the right format, and when a different topic area makes more sense.",faq:[{question:"What skills does the programme develop?",answer:"⢠Prepare difficult conversations: goal, facts, expectations, possible reactions and next step. ⢠Give feedback directly without diluting the message and with respect for the person. ⢠Hold the structure of the dialogue and bring the conversation back to the matter, even when emotions or resistance arise. ⢠Close conversations with a concrete agreement, responsibility and follow-up."},{question:"How do you choose the right format?",answer:"The briefing provides a shared structure and typical phrasing. The intensive format is suitable for practice on real cases and role situations. The journey fits when an organisation wants to systematically develop its feedback culture and handling of difficult conversations. Executive Sparring is intended for a single, particularly sensitive conversation."},{question:"What if the conflict isn't between two people, but between functions or locations?",answer:"Then Communication Culture is the better fit. It focuses on interfaces, dependencies, shared responsibility and collaboration across areas."}],interaction:{individualTitle:"Individual work",individualText:"For a leader facing a difficult or sensitive conversation who needs precise preparation.",individualCta:"Discuss individual work",teamTitle:"For teams and organisations",teamText:"For organisations that want to systematically improve the quality of feedback, performance and conflict conversations.",teamCta:"Discuss team work"},finalTitle:"Want to understand which format fits?",finalText:"In a free conversation, we clarify your situation and choose the right format for individuals or teams.",f
56inalCta:"Book a free conversation"},{number:"04",slug:"kommunikationskultur",name:"Communication Culture",title:"Communication Culture: Collaboration Across Silos and Locations",subtitle:"Functions, countries and locations depend on each other, and yet act as if each area could win on its own.",description:'In many corporations, divisions, countries and locations primarily think in terms of their own goals and realities. That slows down speed, innovation and external impact. In this solution area, we help leadership teams break down silo, departmental and site thinking, develop a shared story and noticeably strengthen collaboration across the global organisation. Instead of yet another "we need to talk to each other more" initiative, we work on a communication culture in which problems, dependencies and conflicts are openly addressed, and shared decisions are consistently translated into coordinated action.',image:kt.kommunikationskultur,intro:{audience:"For leadership and cross-functional teams who want to improve collaboration between functions, countries, divisions and locations, especially where interfaces slow down the shared outcome.",formats:["⢠Briefing: short joint session","⢠Intensive: work on real interfaces and conflicts","⢠Journey: several modules","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Swiss Academy's model built on public speaking, neurocommunication and energy management. Researched by Lucerne University of Applied Sciences and Arts (HSLU) and financially supported by Innosuisse."},supportIntro:"We help strengthen collaboration between functions, divisions and locations, clarify dependencies, and translate decisions into shared action.",support:[{title:"Different priorities",text:"Countries, business units or functions pursue different priorities and send conflicting signals."},{title:"Projects get stuck at interfaces",text:"Projects fail due to friction between central functions and countries or units."},{title:"A strong us-versus-them",text:'"Us versus them up there" or "them at headquarters" narratives are strong.'},{title:"The company feels like many islands",text:"Employees don't experience the company as one organisation, but as many separate parts."},{title:"Many initiatives, little change",text:"There are already numerous initiatives for better collaboration, without daily interaction noticeably changing."}],focusIntro:"The focus of the programme is shaped by the topics that truly matter in your situation.",focus:[{title:"Working on silo thinking",text:'Making the logic of "us and the others" visible and addressing it.'},{title:"Cross-functional communication",text:"Improving collaboration between functions, business units and interfaces."},{title:"Global communication",text:"Better connecting headquarters, regions, countries and locations."},{title:"A shared story",text:"Creating a shared understanding of the organisation beyond local goals."},{title:"Conflicts and dependencies",text:"Speaking openly about conflicting goals, dependencies and recurring friction."},{title:"Alignment and coordination",text:"Translating communication into real decisions and agreements."},{title:"From decisions to action",text:"Ensuring shared decisions lead to coordinated behaviour."}],formatsIntro:"Choose the right depth: a short shared introduction, an intensive preparation, a guided development programme or targeted 1:1 sparring.",workFormats:[{title:"Briefing: Short joint session",text:"Thema: Seeing where collaboration breaks down Ergebnis: A shared understanding of interfaces, silo logic and communication culture."},{title:"Intensive: Work on specific interfaces and projects",text:"Thema: Addressing real dependencies and conflicts Ergebnis: Joint work on concrete interfaces, projects, dependencies, conflicting goals and agreements."},{title:"Journey: Several modules",text:"Thema: Changing collaboration sustainably Ergebnis: Step-by-step work when collaboration between functions, countries or locations should change permanently, not just occasionally."},{title:"Executive Sparring: 1:1",text:"Thema: Making an impact without formal power Ergebnis: Support for a leader in a complex matrix, interface or critical cross-functional situation."}],faqIntro:"A short overview of what the programme achieves, how to choose the right format, and when a different topic area makes more sense.",faq:[{question:"What skills does the programme develop?",answer:"⢠Recognise patterns of silo thinking, local interests and conflicting signals. ⢠Create a shared story and a shared outcome beyond local goals. ⢠Speak openly about dependencies, bottlenecks and responsibility without resorting to blame. ⢠Translate decisions into shared action and create repeatable formats for coordination, escalation and follow-up."},{question:"How do you choose the right format?",answer:"The briefing helps quickly surface the most important fault lines. The intensive format suits leadership or cross-functional teams that want to work on real interfaces. The journey makes sense when collaboration should change step by step. Executive Sparring fits leaders responsible for a complex matrix or interface situation."},{question:"Can we adapt the programme to our matrix organisation?",answer:"Yes. The work can be built around concrete connections: headquarters and countries, functions and business units, regions and global teams, central and local roles."},{question:"What if the fault lines already start within the leadership team?",answer:"Then management alignment is needed first, so leaders can develop a shared position and a shared communication line."}],interaction:{individualTitle:"Individual work",individualText:"For a leader who needs to influence interfaces and stakeholders without formal power.",individualCta:"Discuss individual work",teamTitle:"For teams and organisations",teamText:"For teams and organisations where collaboration between functions, countries or locations is slowing down the shared outcome.",teamCta:"Discuss team work"},finalTitle:"Want to understand which format fits?",finalText:"In a free conversation, we clarify your situation and choose the right format for individuals or teams.",f
56inalCta:"Book a free conversation"},{number:"05",slug:"management-alignment",name:"Management Alignment",title:"Management Alignment: Leading Together on One Line",subtitle:"The decision has been made, but it's already clear that every member of the leadership team will explain it differently.",description:"When leaders send different signals internally and externally, the organisation loses orientation and trust. In this solution area, we work with management teams to develop shared pictures, clear messages and coordinated communication paths.",image:kt["management-alignment"],intro:{audience:"For CEOs, division heads and management teams who need to not only make decisions, but carry them forward together, with one logic, clear messages and coordinated behaviour.",formats:["⢠Briefing: Keynote or half-day workshop","⢠Intensive: 2 to 3 days on site","⢠Journey: 4 to 10 days on site + online support","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Swiss Academy's model built on public speaking, neurocommunication and energy management. Researched by Lucerne University of Applied Sciences and Arts (HSLU) and financially supported by Innosuisse."},supportIntro:"We help leadership teams develop a shared position, clear core messages and a coordinated communication line before a decision goes out into the organisation.",support:[{title:"Conflicting statements",text:"Different leaders make conflicting statements about the same topics."},{title:"Official decisions aren't trusted",text:'Teams follow "unofficial" opinions instead of official decisions.'},{title:"Factions form within leadership",text:"Tension and the formation of factions within the leadership circle."}],focusIntro:"The focus of the programme is shaped by the topics that truly matter in your situation.",focus:[{title:"Shared picture",text:"Developing a shared understanding of the situation, direction and decision."},{title:"Leadership story",text:"Formulating a logic that the management team can genuinely stand behind together."},{title:"Core messages",text:"Aligning central statements that stay consistent across levels and functions."},{title:"Clarifying the decision",text:"Clarifying exactly what has been decided and what it means."},{title:"Coordinating communication",text:"Defining who communicates what, when and how."},{title:"Communication guardrails",text:"Setting shared principles and boundaries for further communication."},{title:"One voice",text:"Making leadership's internal and external communication consistent and coherent."}],formatsIntro:"Choose the right depth: a short shared introduction, an intensive preparation, a guided development programme or targeted 1:1 sparring.",workFormats:[{title:"Briefing: Compact impulse format (keynote or half-day workshop)",text:"Thema: Speaking as a leadership team with one voice Ergebnis: A shared understanding of why alignment in communication is decisive and where the current fault lines are."},{title:"Intensive: 2â3-day on-site training programme",text:"Thema: Aligning leadership messages Ergebnis: Developing a shared core story, aligning central messages and setting communication guardrails."},{title:"Journey: Multi-month development programme (4â10 days on site + online support)",text:"Thema: From a committee to a leadership team Ergebnis: Strengthening a shared leadership stance and communication practices across several modules."},{title:"Executive Sparring: Individual 1:1 support for leaders",text:"Thema: Sparring for leading the leadership team Ergebnis: Individual support for the person leading the leadership circle, for example a CEO or division head, to foster clarity and unity in communication."}],faqIntro:"A short overview of what the programme achieves, how to choose the right format, and when a different topic area makes more sense.",faq:[{question:"What skills does the programme develop?",answer:"⢠Develop a shared picture of the situation, direction and decision. ⢠Create a consistent leadership story and align core messages. ⢠Understand the consequences, trade-offs and expectations of a decision, not just the decision itself. ⢠Plan the communication cascade: who says what, when and how to the organisation."},{question:"How do you choose the right format?",answer:"The briefing creates a shared language for alignment. The intensive format is useful when a shared story, messages and communication principles need to be developed quickly. The journey helps anchor al
56ignment as a repeatable leadership practice. Executive Sparring fits CEOs or leaders leading a demanding alignment process."},{question:"Can we work on a specific decision or strategy?",answer:"Yes. It works best on a real question: a new strategy, reorganisation, crisis, integration, transformation, budget decision or leadership change."},{question:"What if the shared line already exists but still needs to be carried into the organisation?",answer:"Then the next step is Change Communication: change story, adaptation for different audiences, preparing leaders and dialogue formats."}],interaction:{individualTitle:"Individual work",individualText:"For a CEO or leader who needs to prepare a demanding meeting, decision or shared position.",individualCta:"Discuss individual work",teamTitle:"For teams and organisations",teamText:"For leadership teams who want to agree on a shared line and consistently carry a decision into the organisation.",teamCta:"Discuss team work"},finalTitle:"Want to understand which format fits?",finalText:"In a free conversation, we clarify your situation and choose the right format for individuals or teams.",f
56inalCta:"Book a free conversation"},{number:"06",slug:"high-stakes-communication",name:"High-Stakes Communication and Executive Presence",title:"High-Stakes Communication and Executive Presence: Staying Composed When It Matters Most",subtitle:"In 20 minutes in front of the board or investors, the audience needs a clear position, not the backstory of the project.",description:"When a lot is at stake, technical preparation alone is often not enough. Critical questions, differing expectations and high visibility make it demanding to convey content clearly, credibly and with personal conviction. We help executive teams and boards stay composed in such situations, provide orientation and build trust, without having to put on an act.",image:kt["high-stakes-communication"],intro:{audience:"For executive team members, senior leaders and high-visibility leaders who need to present with confidence in front of the board, investors, at townhalls, conferences or other decisive situations.",formats:["⢠Briefing: Keynote or half-day workshop","⢠Intensive: 2 to 3 days on site","⢠Journey: 4 to 10 days on site + online support","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Swiss Academy's model built on public speaking, neurocommunication and energy management. Researched by Lucerne University of Applied Sciences and Arts (HSLU) and financially supported by Innosuisse."},supportIntro:"We help prepare important appearances, sharpen the core message, practise critical questions and act with composure in the decisive moment.",support:[{title:"An important appearance is coming up",text:"An important appearance in front of the board, supervisory board, owners or investors is coming up."},{title:"A decision needs to be presented convincingly",text:"A strategy, budget or decision paper needs to be conveyed clearly, credibly and convincingly."},{title:"Townhall or public event",text:"A townhall, conference or public event offers the chance to provide orientation and build trust."},{title:"Critical questions are expected",text:"Critical questions or differing expectations call for especially thorough preparation."},{title:"The message needs to hit the audience more precisely",text:"An appearance needs to be more tailored to the specific audience, committee or panel."},{title:"The role has become more visible",text:"A new or more visible leadership role brings additional demands on presence and personal impact."},{title:"The appearance should feel more composed",text:"The delivery itself should become more composed and memorable, without feeling artificial or forced."},{title:"Rehearsal is needed",text:"Rehearsal, feedback or video analysis should build more confidence for the decisive moment."}],focusIntro:"The focus of the programme is shaped by the topics that truly matter in your situation.",focus:[{title:"Audience and stakeholders",text:"Understanding who is in the room, what is expected and what decision is needed."},{title:"Core message",text:"Defining what the audience should understand and remember."},{title:"Storyline and dramaturgy",text:"Building the appearance and argumentation around the decision and the intended impact."},{title:"Strategic presentations",text:"Preparing strategy, budget and decision presentations."},{title:"Executive presence",text:"Strengthening voice, language, posture, presence and personal impact without appearing artificial."},{title:"Critical questions and Q&A",text:"Being prepared for objections, risks and difficult questions."},{title:"Rehearsal and video analysis",text:"Using rehearsal, feedback and analysis before the decisive moment."}],formatsIntro:"Choose the right depth: a short shared introduction, an intensive preparation, a guided development programme or targeted 1:1 sparring.",workFormats:[{title:"Briefing: Compact impulse format (keynote or half-day workshop)",text:"Thema: Staying composed when it matters most Ergebnis: Clarity on the success factors of convincing appearances in front of an audie
56nce and important committees, from audience and core message to personal impact and handling critical questions."},{title:"Intensive: 2â3-day on-site training programme",text:"Thema: High-stakes appearances with clarity and impact Ergebnis: Preparation and rehearsal of a specific appearance, presentation or committee situation. Participants work on message, dramaturgy, audience-appropriate framing, language and presence, and receive feedback and video analysis."},{title:"Journey: Multi-month development programme (4â10 days on site + online support)",text:"Thema: Developing leadership presence in decisive situations Ergebnis: Longer-term development of an authentic and effective presence in recurring committee, presentation and public situations, including preparation for critical questions and transfer into everyday leadership."},{title:"Executive Sparring: Individual 1:1 support for leaders",text:"Thema: Sparring for key moments Ergebnis: Individual preparation for public appearances as well as board, owner or investor meetings, in terms of content, dramaturgy and personal presence, including preparation for critical questions and possible objections."}],faqIntro:"A short overview of what the programme achieves, how to choose the right format, and when a different topic area makes more sense.",faq:[{question:"What skills does the programme develop?",answer:"⢠Analyse the expectations, risks and trust criteria of a specific audience. ⢠Develop a strong storyline from context to decision, argument or request. ⢠Strengthen voice, pace, pauses, body language, audience contact and personal presence. ⢠Answer critical questions with composure and rehearse the key moment before the actual appearance."},{question:"How do you choose the right format?",answer:"The briefing suits a shared preparation standard. The intensive format fits a specific presentation, townhall, meeting or investor conversation. The journey makes sense for leaders who regularly appear in highly visible situations. Executive Sparring fits a single urgent and important moment."},{question:"Can we adapt the programme to a specific appearance?",answer:"Yes. We can work with a real presentation, board materials, a townhall script, an investor story, a conference appearance or a critical Q&A."},{question:"What if the appearance is being recorded on video?",answer:"Then Executive Visibility & Media Production is the better fit. There, message, on-camera behaviour, recording format and production are treated as one shared process."}],interaction:{individualTitle:"Individual work",individualText:"For a leader who needs to prepare a specific appearance in front of the board, investors or a large audience.",individualCta:"Discuss individual work",teamTitle:"For teams and organisations",teamText:"For organisations where key people regularly appear in high-stakes situations and need a shared preparation standard.",teamCta:"Discuss team work"},finalTitle:"Want to understand which format fits?",finalText:"In a free conversation, we clarify your situation and choose the right format for individuals or teams.",f
56inalCta:"Book a free conversation"},{number:"07",slug:"ki-fuehrungskommunikation",name:"AI-Supported Leadership Communication",title:"AI-Supported Leadership Communication: Integrating AI Without Losing Your Own Voice",subtitle:"Use AI for structure, storylines and messaging so complex material becomes a clear message faster, without losing your own voice.",description:"AI can significantly speed up work with notes, emails, presentation structures and first drafts. However, standardised text is no substitute for professional judgement, fact-checking, contextual understanding or a leader's own position. We use AI as a partner for structure, messaging, perspective-taking, audience adaptation and editing, with clear human responsibility for the final text, tone and accuracy.",image:kt["ki-fuehrungskommunikation"],intro:{audience:"For leaders and teams who already use AI or want to integrate it into emails, presentations and messages, without losing their own voice, quality, confidentiality and responsibility.",formats:["⢠Briefing: short introductory session","⢠Intensive: 1 to 2 days","⢠Journey: several modules","⢠Executive Sparring: 1:1"],foundation:"TRIPLE IMPACT: Swiss Academy's model built on public speaking, neurocommunication and energy management. Researched by Lucerne University of Applied Sciences and Arts (HSLU) and financially supported by Innosuisse."},supportIntro:"We help use AI for clearer and faster communication while preserving your own voice, quality and responsibility for the final message.",support:[{title:"Texts sound too generic",text:"AI saves time, but the result feels impersonal. A process is needed to check it and bring it back to your own voice."},{title:"Convincing texts can be factually wrong",text:"Facts, assumptions, additions from the tool and human professional judgement need to be clearly separated."},{title:"Thoughts need to be structured faster",text:"AI can be used to organise ideas, check logic, develop storylines and create first drafts."},{title:"Messages need to be adapted",text:"Tone, depth and presentation need to change for different audiences, without losing the leader's position."},{title:"Tools exist, but no practice",text:"The company has approved tools and rules, but no repeatable working process yet."}],focusIntro:"The focus of the programme is shaped by the topics that truly matter in your situation.",focus:[{title:"Structuring complex information",text:"Using AI to quickly organise large amounts of information, identify what matters, and bring scattered ideas into a clear logic."},{title:"Adapting for audiences",text:"Adjusting depth, language, examples and tone for management, team, customers or other stakeholder groups."},{title:"Preparing messaging",text:"Creating and revising emails, leadership messages, briefings and other documents faster, more precisely and more clearly."},{title:"Editing and shortening",text:"Removing what's unnecessary, sharpening phrasing and shortening texts without losing content or meaning."},{title:"Argumentation and storyline",text:"Using AI as a partner to build logic, test arguments and develop a consistent storyline."},{title:"Your own voice",text:"Avoiding generic AI language and preserving the leader's personal style, stance and recognisable way of communicating."},{title:"Critical review",text:"Testing your own ideas, assumptions and conclusions, and finding weak points, counterarguments and alternative perspectives."},{title:"Judgement and responsibility",text:"Using AI as a supporting tool while keeping critical thinking, final judgement and responsibility with the human."}],formatsIntro:"Choose the right depth: a short shared introduction, an intensive preparation, a guided development programme or targeted 1:1 sparring.",workFormats:[{title:"Briefing: Short introductory session",text:"Thema: Practical AI scenarios in leadership communication Ergebnis: Orientation on useful scenarios and principles of human quality control."},{title:"Intensive: 1 to 2 days",text:"Thema: Practice on real communication tasks Ergebnis: Working with real or anonymised emails, presentations, messages and other communication tasks."},{title:"Journey: Several modules",text:"Thema: Integrating AI into recurring leadership tasks Ergebnis: Step-by-step building of stable processes for AI-supported communication."},{title:"Executive Sparring: 1:1",text:"Thema: Solving a specific task with AI and human review Ergebnis: Indiv
56idual work on a demanding text, appearance, statement or decision communication."}],faqIntro:"A short overview of what the programme achieves, how to choose the right format, and when a different topic area makes more sense.",faq:[{question:"What skills does the programme develop?",answer:"⢠Structure complex thoughts and source material with AI. ⢠Develop variants of core messages, headlines and stakeholder messages. ⢠Use AI for argumentation and checking for logic gaps. ⢠Secure human review, personal stance and responsibility for the final result."},{question:"How do you choose the right format?",answer:"The briefing provides a practical introduction to the topic. The intensive format is useful when participants should work with real emails, presentations, strategic messages or Q&A. The journey fits for introducing repeatable practices. Executive Sparring is intended for a specific demanding task."},{question:"Can we adapt the programme to our tools and rules?",answer:"Yes. Approved tools, internal policies, confidentiality rules, prompt standards and your organisation's real communication tasks can be taken into account."},{question:"What if the main difficulty isn't AI, but the structure of complex messages?",answer:"Then Clear Leadership Communication is the better starting point. A strong communication logic is needed first, then AI can meaningfully accelerate it."}],interaction:{individualTitle:"Individual work",individualText:"For a leader who wants to use AI in emails, presentations and messages without losing their own voice.",individualCta:"Discuss individual work",teamTitle:"For teams and organisations",teamText:"For organisations that need a shared practice for high-quality AI-supported communication, fact-checking and human review.",teamCta:"Discuss team work"},finalTitle:"Want to understand which format fits?",finalText:"In a free conversation, we clarify your situation and choose the right format for individuals or teams.",f
56inalCta:"Book a free conversation"},{number:"08",slug:"executive-visibility",name:"Executive Visibility & Media Production",title:"Executive Visibility & Media Production: Strengthening Presence and Becoming Visible",subtitle:"A leader can hold a strong position. If they don't come across clearly and naturally on camera, they don't land with the audience.",description:"Videos, interviews, podcasts and recorded statements make leaders more visible inside and outside the organisation. But on camera, things that barely show in a normal meeting quickly become visible: long answers, complicated phrasing, a missing clear position or language that's too rehearsed.",image:kt["executive-visibility"],intro:{audience:"For leaders and organisations who need strong videos, interviews and recorded appearances, from message and speaker preparation to recording and post-production.",formats:["⢠Media Coaching: 1:1","⢠Video & Interview Production: project format","⢠Presentation Recording: preparation and recording","⢠Shooting Day: 1 day","⢠Ongoing Executive Content Support"],foundation:"TRIPLE IMPACT: Swiss Academy's model built on public speaking, neurocommunication and energy management. Researched by Lucerne University of Applied Sciences and Arts (HSLU) and financially supported by Innosuisse."},supportIntro:"From a single interview to a series of executive videos: we prepare content, leader and recording exactly as the specific situation requires.",support:[{title:"CEO & executive videos",text:"Video statements from leaders to employees, customers, partners or the market, with a clear message and natural impact instead of read-out corporate text."},{title:"Interviews and expert conversations",text:"Preparation for interview, podcast or conversational video: short answers, a clear position, handling questions and quickly focusing on what matters."},{title:"Thought leadership content",text:"Translating leaders' experience, ideas and stance into substantial content for LinkedIn, corporate channels and external communication."},{title:"Townhalls and internal video statements",text:"Preparing communication on change, strategy, results or important decisions so the message is not only sent but understood."},{title:"Recorded presentations and keynotes",text:"Adapting presentations for camera: shortening content, rebuilding the storyline and making the delivery natural, even without a live audience in the room."},{title:"Preparation and recording in our studio",text:"Working on the message, camera coaching, rehearsal, professional recording with camera, light and sound, and subsequent editing for publication."}],focusIntro:"The focus of the programme is shaped by the topics that truly matter in your situation.",focus:[{title:"Core message",text:"Defining what the audience should understand, remember and take away from the recording."},{title:"Voice, pace and impact",text:"Working on speaking pace, pauses, intonation, energy and audience contact."},{title:"Storyline and structure",text:"Building the logic so the main idea becomes clear early and the arguments strengthen it instead of overloading it."},{title:"Executive presence",text:"Strengthening personal presence and confidence on camera."},{title:"Work in front of the camera",text:"Speaking naturally, confidently and vividly, without reading, memorising or excessive formality."},{title:"Adaptation to format and audience",text:"Adjusting the message for CEO video, interview, podcast, townhall, recorded presentation or social media."},{title:"Interviews and answering questions",text:"Getting to the point quickly, holding the line of the answer and handling follow-up or critical questions with composure."},{title:"Studio and production",text:"Professionally organising camera, sound, light, shoot and post-production."}],formatsIntro:"Choose the right depth: a short shared introduction, an intensive preparation, a guided development programme or targeted 1:1 sparring.",workFormats:[{title:"Media Coaching: 1:1",text:"Thema: Preparation for camera, microphone and interview Ergebnis: The leader appears more confident and precise on screen, in interviews and during recording.",tag:"1:1"},{title:"Video & Interview Production: project format",text:"Thema: Production of a specific statement, interview or videocast Ergebnis: Message, speaker preparation and production are brought together in one process.",tag:"Project format"},{title:"Presentation Recording: preparation and recording",text:"Thema: Recorded presentation or keynote Ergebnis: Preparation of content and speaker, followed by professional recording.",tag:"Preparation and recording"},{title:"Shooting Day: 1 day",text:"Thema: Multiple speakers or pieces of content in one session Ergebnis: A planned production day for several leaders, formats or content pieces.",tag:"1 day"},{title:"Ongoing Executive Content Support",text:"Thema: Regular content from leaders Ergebnis: Continuous work on visible leadership communication with a consistent rhythm and quality standard."}],faqIntro:"A short overview of what the programme achieves, how to choose the right format, and when a different topic area makes more sense.",faq:[{question:"What skills and results does the programme develop?",answer:"⢠Define the leader's positioning and the topics they should become visible for. ⢠Speak confidently on camera and work with eye contact, voice, pace and energy. ⢠Build interview logic and prepare key answers. ⢠Develop media concepts and set up a clean process from briefing to post-production."},{question:"How do you choose the right format?",answer:"Individual media coaching is useful when confidence on camera is needed. Project production fits a specific statement, interview or videocast. A shooting day makes sense when multiple speakers or pieces of content need to be recorded. Ongoing support fits regular leadership communication."},{question:"Can we adapt the production to our channels?",answer:"Yes. The format can be tailored to internal
56channels, LinkedIn, townhall videos, CEO messages, employer branding, customer communication and your visual identity."},{question:"What if it's not about video, but a decisive live appearance?",answer:"Then High-Stakes Communication and Executive Presence is the better fit. There, impact in the room, Q&A and behaviour in the decisive moment are central."}],interaction:{individualTitle:"Individual work",individualText:"For a leader who wants to appear more confident and precise on camera, microphone or in interviews.",individualCta:"Discuss individual work",teamTitle:"For teams and organisations",teamText:"For organisations that need a repeatable process for videos, interviews and regular executive content.",teamCta:"Discuss team work"},finalTitle:"Want to understand which format fits?",finalText:"In a free conversation, we clarify your situation and choose the right format for individuals or teams.",finalCta:"Book a free conversation"}],eI=e=>vp.find(t=>t.slug===e),tI={veraenderungskommunikation:A.jsxs(A.Fragment,{children:[A.jsx("path",{d:"M5.5 21V11.5a4.5 4.5 0 0 1 4.5-4.5h9",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2.6"}),A.jsx("path",{d:"M15 2.8l5.2 4.2L15 11.2z"})]}),"klare-fuehrungskommunikation":A.jsxs(A.Fragment,{children:[A.jsx("path",{d:"M5 3.5h14A2.5 2.5 0 0 1 21.5 6v9a2.5 2.5 0 0 1-2.5 2.5h-7l-5 3.8v-3.8H5A2.5 2.5 0 0 1 2.5 15V6A2.5 2.5 0 0 1 5 3.5z"}),A.jsx("path",{d:"M7 9h10M7 12.5h6",stroke:"var(--solution-icon-detail, currentColor)",strokeLinecap:"round",strokeWidth:"2"})]}),mitarbeitergespraeche:A.jsxs(A.Fragment,{children:[A.jsx("path",{d:"M3.5 2.5h10A2 2 0 0 1 15.5 4.5v6.5a2 2 0 0 1-2 2H8.5l-3.8 3v-3H3.5a2 2 0 0 1-2-2V4.5a2 2 0 0 1 2-2z"}),A.jsx("path",{d:"M10.5 9h10a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2.2 2h-1.2v3l-3.8-3h-5a2 2 0 0 1-2-2V11a2 2 0 0 1 2-2z",stroke:"var(--solution-icon-detail, currentColor)",strokeWidth:"1.8"})]}),kommunikationskultur:A.jsxs(A.Fragment,{children:[A.jsx("path",{d:"M6 6.5h12M6 6.5l6 11.5M18 6.5l-6 11.5",fill:"none",stroke:"currentColor",strokeWidth:"2.2"}),A.jsx("circle",{cx:"6",cy:"6.5",r:"3.6"}),A.jsx("circle",{cx:"18",cy:"6.5",r:"3.6"}),A.jsx("circle",{cx:"12",cy:"18",r:"3.6"})]}),"management-alignment":A.jsxs(A.Fragment,{children:[A.jsx("path",{d:"M2.5 4.5c6 0 7 7.5 11.5 7.5M2.5 19.5c6 0 7-7.5 11.5-7.5M2.5 12h14",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2.6"}),A.jsx("path",{d:"M15.5 6.8L21.8 12l-6.3 5.2z"})]}),"high-stakes-communication":A.jsxs(A.Fragment,{children:[A.jsx("path",{d:"M12 1.8v2.8M4.6 4.8l2 2M19.4 4.8l-2 2M1.8 11.5h2.8M22.2 11.5h-2.8",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2.2"}),A.jsx("circle",{cx:"12",cy:"11.5",r:"3.8"}),A.jsx("path",{d:"M5.5 22.5c.7-3.8 3.3-6 6.5-6s5.8 2.2 6.5 6z"})]}),"ki-fuehrungskommunikation":A.jsxs(A.Fragment,{children:[A.jsx("path",{d:"M6.5 1.8h8.2l5.8 5.8V20a2.2 2.2 0 0 1-2.2 2.2H6.5A2.2 2.2 0 0 1 4.3 20V4a2.2 2.2 0 0 1 2.2-2.2z"}),A.jsx("path",{d:"M12.4 9.2l1.2 3 3 1.2-3 1.2-1.2 3-1.2-3-3-1.2 3-1.2z",fill:"var(--solution-icon-detail, currentColor)"})]}),"executive-visibility":A.jsxs(A.Fragment,{children:[A.jsx("rect",{height:"13",rx:"3",width:"15",x:"1.5",y:"5.5"}),A.jsx("path",{d:"M17.5 10.2l5-3v9.6l-5-3z"}),A.jsx("circle",{cx:"6",cy:"10",fill:"var(--solution-icon-detail, currentColor)",r:"1.6"})]})};function nI(){const e=ts({select:S=>S.location.pathname}),t=e==="/en"||e.startsWith("/en/"),i=t?"/en":"",s=t?vp:yp,[o,c]=ie.useState(!1),[u,d]=ie.useState(!1),[f,p]=ie.useState(!1),y=ie.useRef(void 0),g=()=>{c(!1),d(!1),p(!1)},b=()=>{y.current&&clearTimeout(y.current),d(!0)},w=()=>{y.current=setTimeout(()=>d(!1),160)};return ie.useEffect(()=>(document.body.style.overflow=o?"hidden":"",()=>{document.body.style.overflow=""}),[o]),ie.useEffect(()=>{const S=k=>{k.key==="Escape"&&g()};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[]),A.jsxs(A.Fragment,{children:[A.jsx("header",{className:"sa-header sol-nav",children:A.jsxs("div",{className:"sa-header__inner sol-nav-inner",children:[A.jsx(Me,{to:t?"/en":"/",className:"sa-header__logo",onClick:g,children:A.jsx("img",{src:"/images/logo/swiss-academy-logo-header.png",alt:"Swiss Academy"})}),A.jsxs("nav",{className:"sa-header__nav sol-menu","aria-label":"Hauptnavigation",children:[A.jsx(Me,{to:t?"/en":"/",onClick:g,children:"Home"}),A.jsxs("div",{className:`sa-header__item sol-menu-item ${u?"is-open":""}`,onPointerEnter:b,onPointerLeave:w,children:[A.jsx(Me,{className:"sol-menu-trigger",to:`${i}/loesungen`,onClick:g,children:t?"Solutions":"Lösungen"}),A.jsx(Yr,{type:"button",variant:"ghost",className:"sa-header__menu-chevron",onClick:()=>d(S=>!S),"aria-label":t?"Open Solutions menu":"Lösungen-Menü öffnen","aria-expanded":u,children:A.jsx(Wh,{})}),u&&A.jsx("div",{className:"sa-mega sol-drop",children:A.jsxs("div",{className:"sol-drop-inner",children:[A.jsx("div",{className:"sol-drop-grid",children:s.map((S,k)=>
56A.jsxs(Me,{className:`sol-drop-item ${e.endsWith(S.slug)?"is-current":""}`,style:{"--i":k},to:t?"/en/loesungen/$slug":"/loesungen/$slug",params:{slug:S.slug},onClick:g,children:[A.jsx("svg",{className:"sol-drop-icon",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:tI[S.slug]}),A.jsxs("div",{children:[A.jsxs("b",{children:[S.name,e.endsWith(S.slug)&&A.jsx("em",{"aria-label":t?"Current page":"Aktuelle Seite"})]}),A.jsx("span",{children:S.title.replace(`${S.name}: `,"")})]})]},S.slug))}),A.jsxs("div",{className:"sol-drop-foot",children:[A.jsxs(Me,{className:"sol-drop-cta",to:`${i}/leadership-communication-check`,onClick:g,children:[t?"Start Communication Check":"Communication Check starten"," ",A.jsx("span",{"aria-hidden":"true",children:"â"})]}),A.jsxs(Me,{className:"sol-drop-cta",to:`${i}/loesungen`,onClick:g,children:[t?"View all solutions":"Alle Lösungen ansehen"," ",A.jsx("span",{"aria-hidden":"true",children:"â"})]})]})]})})]}),A.jsx(Me,{to:`${i}/events`,onClick:g,children:"Events"}),A.jsxs("div",{className:`sa-header__item sol-about-item ${f?"is-open":""}`,onPointerEnter:()=>p(!0),onPointerLeave:()=>p(!1),children:[A.jsx(Me,{to:`${i}/ueber-uns`,onClick:g,children:t?"About us":"Ãber uns"}),A.jsx(Yr,{type:"button",variant:"ghost",className:"sa-header__menu-chevron",onClick:()=>p(S=>!S),"aria-label":t?"Open About menu":"Ãber-uns-Menü öffnen","aria-expanded":f,children:A.jsx(Wh,{})}),A.jsxs("div",{className:"sa-header__dropdown",children:[A.jsx(Me,{to:`${i}/ueber-uns`,onClick:g,children:t?"About Swiss Academy":"Ãber Swiss Academy"}),A.jsx(Me,{to:`${i}/ueber-uns`,hash:"team",onClick:g,children:"Team"}),A.jsx(Me,{to:`${i}/ueber-uns`,hash:"ecosystem",onClick:g,children:t?"Ecosystem":"Ãkosystem"}),A.jsx(Me,{to:`${i}/presse`,onClick:g,children:t?"Press":"Presse"}),A.jsx(Me,{to:`${i}/blog`,onClick:g,children:"Blog"})]})]}),A.jsx(Me,{to:`${i}/kontakt`,onClick:g,children:t?"Contact":"Kontakt"}),A.jsx(Nm,{variant:"inline"})]}),A.jsx(Yr,{asChild:!0,className:"sa-header__cta sol-nav-cta",children:A.jsx(Me,{to:`${i}/kontakt`,hash:"info-gespraech",children:t?"Book a conversation":"Info-Gespräch buchen"})}),A.jsx(Yr,{className:`sa-header__toggle mobile-toggle ${o?"is-open":""}`,variant:"outline",type:"button",onClick:()=>c(S=>!S),"aria-label":o?t?"Close menu":"Menü schliessen":t?"Open menu":"Menü öffnen","aria-expanded":o,children:o?A.jsx(yD,{}):A.jsx(pD,{})})]})}),A.jsx("button",{type:"button",className:`mobile-menu-backdrop ${o?"is-open":""}`,onClick:g,"aria-label":t?"Close menu":"Menü schliessen"}),A.jsxs("nav",{className:`mobile-menu ${o?"is-open":""}`,"aria-label":t?"Mobile navigation":"Mobile Navigation",children:[A.jsx(Me,{to:t?"/en":"/",onClick:g,children:"Home"}),A.jsxs("div",{className:"mobile-menu__row",children:[A.jsx(Me,{to:`${i}/loesungen`,onClick:g,children:t?"Solutions":"Lösungen"}),A.jsx(Yr,{type:"button",variant:"ghost",onClick:()=>d(S=>!S),"aria-label":t?"Open Solutions menu":"Lösungen-Menü öffnen","aria-expanded":u,children:A.jsx(Wh,{})})]}),u&&A.jsxs("div",{className:"mobile-solutions",children:[s.map(S=>A.jsx(Me,{to:t?"/en/loesungen/$slug":"/loesungen/$slug",params:{slug:S.slug},onClick:g,children:S.name},S.slug)),A.jsx(Me,{to:`${i}/leadership-communication-check`,onClick:g,children:t?"Start Communication Check":"Communication Check starten"})]}),A.jsx(Me,{to:`${i}/events`,onClick:g,children:"Events"}),A.jsx(Me,{to:`${i}/ueber-uns`,onClick:g,children:t?"About us":"Ãber uns"}),A.jsx(Me,{to:`${i}/kontakt`,onClick:g,children:t?"Contact":"Kontakt"}),A.jsx(Nm,{variant:"inline"}),A.jsx(Yr,{asChild:!0,className:"btn red",children:A.jsx(Me,{to:`${i}/kontakt`,hash:"info-gespraech",onClick:g,children:t?"Book a conversation":"Info-Gespräch buchen"})})]})]})}function iI(){const e=ts({select:s=>s.location.pathname.startsWith("/en")}),t=e?"/en":"",i=e?vp:yp;return A.jsx("footer",{className:"sa-footer",children:A.jsxs("div",{className:"sa-footer__grid",children:[A.jsxs("div",{className:"sa-footer__brand",children:[A.jsx("img",{src:"/images/logo/swiss-academy-logo-footer.png",alt:"Swiss Academy"}),A.jsx("p",{children:"Home of Leadership Communication. Triple Impact. Corporate Training. Executive Visibility."})]}),A.jsxs("div",{children:[A.jsx("h2",{children:e?"Solutions":"Lösungen"}),i.slice(0,4).map(s=>A.jsx(Me,{to:e?"/en/loesungen/$slug":"/loesungen/$slug",params:{slug:s.slug},children:s.name},s.slug))]}),A.jsxs("div",{children:[A.jsx("h2",{children:" "}),i.slice(4).map(s=>A.jsx(Me,{to:e?"/en/loesungen/$slug":"/loesungen/$slug",params:{slug:s.slug},children:s.name},s.slug))]}),A.jsxs("div",{children:[A.jsx("h2",{children:e?"Discover":"Entdecken"}),A.jsx(Me,{to:`${t}/events`,children:"Events"}),A.jsx(Me,{to:`${t}/triple-impact-methodik`,children:"Triple Impact"}),A.jsx(Me,{to:`${t}/leadership-communication-check`,children:"Communication Check"}),A.jsx(Me,{to:`${t}/kontakt`,children:e?"Contact":"Kontakt"})]}
56),A.jsxs("div",{children:[A.jsx("h2",{children:e?"Legal":"Rechtliches"}),A.jsx(Me,{to:`${t}/impressum`,children:e?"Legal notice":"Impressum"}),A.jsx(Me,{to:`${t}/datenschutz`,children:e?"Privacy":"Datenschutz"}),A.jsx(Me,{to:`${t}/agb`,children:"AGB"})]})]})})}let uw=!1;function rI(){const e=ts({select:t=>t.location.pathname});return ie.useEffect(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||!("IntersectionObserver"in window))return;let t;const i=()=>{const o=document.querySelectorAll(".swiss-academy-prototype .site > section:not(:first-child) :is(h2,.section-head > p,.split-text > p,.lead),.sol-page section:not(.sol-hero) :is(.section-head h2,.section-subtitle),.solutions-overview :is(.solutions-overview__intro h1,.solutions-overview__intro p,.solutions-overview__grid h2),.event-detail__body :is(h2,p),.events-page:not(.events-gallery) :is(.events-intro h1,.events-intro p,.event-feature h2),.solution-page section :is(h2,.section-subtitle),.events-gallery section :is(h2,.lead)"),c=new IntersectionObserver(u=>{u.forEach(d=>{d.isIntersecting&&(d.target.classList.add("sa-text-in"),c.unobserve(d.target))})},{threshold:.12});t=c,o.forEach(u=>{u.closest(".home-v15,.hv-island,.lo-page,.events-gallery,.reveal,.sa-reveal,.ev-reveal,[data-reveal]")||(u.classList.add("sa-text-motion"),c.observe(u))})};let s;if(uw)i();else{const o=()=>{s=window.setTimeout(()=>{uw=!0,i()},400)};document.readyState==="complete"?o():window.addEventListener("load",o,{once:!0})}return()=>{t?.disconnect(),s&&clearTimeout(s)}},[e]),null}const Um="https://swiss-academy.ag",sI=[{path:"/",changefreq:"weekly",priority:"1.0"},{path:"/loesungen",changefreq:"monthly",priority:"0.9"},{path:"/loesungen/veraenderungskommunikation",changefreq:"monthly",priority:"0.8"},{path:"/loesungen/klare-fuehrungskommunikation",changefreq:"monthly",priority:"0.8"},{path:"/loesungen/mitarbeitergespraeche",changefreq:"monthly",priority:"0.8"},{path:"/loesungen/kommunikationskultur",changefreq:"monthly",priority:"0.8"},{path:"/loesungen/management-alignment",changefreq:"monthly",priority:"0.8"},{path:"/loesungen/high-stakes-communication",changefreq:"monthly",priority:"0.8"},{path:"/loesungen/ki-fuehrungskommunikation",changefreq:"monthly",priority:"0.8"},{path:"/loesungen/executive-visibility",changefreq:"monthly",priority:"0.8"},{path:"/events",changefreq:"monthly",priority:"0.8"},{path:"/events/leadership-communication-masterclass",changefreq:"monthly",priority:"0.8"},{path:"/triple-impact-methodik",changefreq:"monthly",priority:"0.7"},{path:"/top-speakers",changefreq:"monthly",priority:"0.8"},{path:"/studio-produktion",changefreq:"monthly",priority:"0.7"},{path:"/ueber-uns",changefreq:"monthly",priority:"0.7"},{path:"/kontakt",changefreq:"monthly",priority:"0.7"},{path:"/presse",changefreq:"monthly",priority:"0.5"},{path:"/media-manifest",changefreq:"monthly",priority:"0.5"},{path:"/leadership-communication-check",changefreq:"monthly",priority:"0.8"},{path:"/blog",changefreq:"weekly",priority:"0.7"},{path:"/blog/emotion-schlaegt-information",changefreq:"monthly",priority:"0.6"},{path:"/blog/energy-matching",changefreq:"monthly",priority:"0.6"},{path:"/blog/public-speaking-fuehrungskraefte",changefreq:"monthly",priority:"0.6"},{path:"/impressum",changefreq:"yearly",priority:"0.3"},{path:"/agb",changefreq:"yearly",priority:"0.3"},{path:"/datenschutz",changefreq:"yearly",priority:"0.3"}],aI=new Set(sI.map(e=>e.path)),oI=e=>e==="/"?"/en":`/en${e}`;function lI(e){const t=e.length>1?e.replace(/\/+$/,""):e,i=t==="/en"?"/":t.startsWith("/en/")?t.slice(3):t;return aI.has(i)?{de:Um+(i==="/"?"":i),en:Um+oI(i)}:null}function va(e){if(!e)return[{name:"twitter:card",content:"summary"}];const t=e.startsWith("http")?e:Um+e;return[{property:"og:image",content:t},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:image",content:t}]}function cI(){return A.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:A.jsxs("div",{className:"max-w-md text-center",children:[A.jsx("h1",{className:"text-7xl font-bold text-foreground",children:"404"}),A.jsx("h2",{className:"mt-4 text-xl font-semibold text-foreground",children:"Page not found"}),A.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The page you're looking for doesn't exist or has been moved."}),A.jsx("div",{className:"mt-6",children:A.jsx(Me,{to:"/",className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Go home"})})]})})}function uI({error:e,reset:t}){console.error(e);const i=jt();return A.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:A.jsxs("div",{className:"max-w-md text-center",children:[A.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"This page didn't load"}),A.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Something went wrong on our end. You can try refreshing or head back home."}),A.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[A.jsx("button",{onClick:()=>{i.invalidate(),t()},className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Try again"}),A.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:"Go home"})]})]})})}const Be=pO()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{name:"theme-color",content:"#0d0d0d"},{title:"Swiss Academy SACT AG"},{name:"description",content:"Swiss Academy SACT AG, Home of Leadership Communication. Programme, Corporate Training und Kommunikationsentwicklung für Führung, Wirkung und Sichtbarkeit."},{name:"author",content:"Swiss Academy SACT AG"},{property:"og:site_name",content:"Swiss Academy SACT AG"},{property:"og:title",content:"Swiss Academy SACT AG"},{property:"og:description",content:"Swiss Academy SACT AG, Home of Leadership Communication. Programme, Corporate Training und Kommunikationsentwicklung für Führung, Wirkung und Sichtbarkeit."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:title",content:"Swiss Academy SACT AG"},{name:"twitter:description",content:"Swiss Academy SACT AG, Home of Leadership Communication. Programme, Corporate Training und Kommunikationsentwicklung für Führung, Wirkung und Sichtbarkeit."}],links:[{rel:"stylesheet",href:kj},{rel:"icon",href:"/favicon.ico",sizes:"any"},{rel:"icon",type:"image/png",sizes:"192x192",href:"/icon-192.png"},{rel:"icon",type:"image/png",sizes:"512x512",href:"/icon-512.png"},{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"},{rel:"manifest",href:"/site.webmanifest"}
56,{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"dns-prefetch",href:"https://assets.calendly.com"},{rel:"preconnect",href:"https://assets.calendly.com",crossOrigin:"anonymous"},{rel:"preconnect",href:"https://calendly.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&display=swap"}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:"Swiss Academy SACT AG",legalName:"Swiss Academy SACT AG",url:"https://swiss-academy.ag",logo:"https://swiss-academy.ag/images/logo/swiss-academy-logo-header.png",address:{"@type":"PostalAddress",streetAddress:"Grenzstrasse 5C",postalCode:"6214",addressLocality:"Schenkon",addressCountry:"CH"},email:"[email protected]",sameAs:["https://www.instagram.com/swissacademysact/","https://www.linkedin.com/company/swiss-academy/"]})}]}),shellComponent:dI,component:hI,notFoundComponent:cI,errorComponent:uI});function dI({children:e}){const t=ts({select:o=>o.location.pathname}),i=t==="/en"||t.startsWith("/en/")?"en":"de",s=lI(t);return A.jsxs("html",{lang:i,children:[A.jsxs("head",{children:[A.jsx(DO,{}),s&&A.jsxs(A.Fragment,{children:[A.jsx("link",{rel:"alternate",hrefLang:"de",href:s.de}),A.jsx("link",{rel:"alternate",hrefLang:"en",href:s.en}),A.jsx("link",{rel:"alternate",hrefLang:"x-default",href:s.de})]})]}),A.jsxs("body",{children:[e,A.jsx(IO,{})]})]})}function hI(){const{queryClient:e}=Be.useRouteContext(),t=ts({select:c=>c.location.pathname}),i=ts({select:c=>c.location.hash}),s=t.startsWith("/check-intern")||t.startsWith("/en/check-internal")||t.startsWith("/api/");ie.useLayoutEffect(()=>{i||window.scrollTo({top:0,left:0,behavior:"instant"})},[t]);const o=ie.useRef(!0);return ie.useEffect(()=>{if(s)return;if(o.current){o.current=!1,eD().then(({id:u})=>nD(u)).catch(()=>{});return}const c=window.setTimeout(()=>fp(t),50);return()=>window.clearTimeout(c)},[t,s]),A.jsxs(_j,{client:e,children:[!s&&A.jsx(nI,{}),A.jsx(Q_,{}),!s&&A.jsx(rI,{}),!s&&A.jsx(iI,{}),s&&A.jsx(Nm,{}),A.jsx(Xj,{position:"top-right",richColors:!0}),A.jsx(rD,{})]})}const fI="modulepreload",mI=function(e){return"/"+e},dw={},Se=function(t,i,s){let o=Promise.resolve();if(i&&i.length>0){let f=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");o=f(i.map(p=>{if(p=mI(p),p in dw)return;dw[p]=!0;const y=p.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":fI,y||(b.as="script"),b.crossOrigin="",b.href=p,d&&b.setAttribute("nonce",d),document.head.appendChild(b),y)return new Promise((w,S)=>{b.addEventListener("load",w),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&c(d.reason);return t().catch(c)})},pI=()=>Se(()=>import("./index-BsJtz6XT.js"),__vite__mapDeps([0,1,2,3,4])),Qh="Swiss Academy SACT AG, Home of Leadership Communication",Xh="Swiss Academy SACT AG: Programme und Corporate Trainings für Führungskommunikation, Wirkung und Sichtbarkeit. Leadership Communication aus der Schweiz.",hw="https://swiss-academy.ag/",gI=ae()({component:we(pI,"component"),head:()=>({meta:[{title:Qh},{name:"description",content:Xh},{property:"og:title",content:Qh},{property:"og:description",content:Xh},{property:"og:url",content:hw},{property:"og:type",content:"website"},{name:"twitter:title",content:Qh},{name:"twitter:description",content:Xh},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:hw},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&display=swap"}]})}),yI=()=>Se(()=>import("./agb-BysbUOH2.js"),__vite__mapDeps([5,6,2])),Zh="AGB, Swiss Academy SACT AG",ef="Allgemeine Geschäftsbedingungen der Swiss Academy SACT AG für Programme, Workshops und Corporate Trainings.",fw="https://swiss-academy.ag/agb",vI=ae()({component:we(yI,"component"),head:()=>({meta:[{title:Zh},{name:"description",content:ef},{property:"og:title",content:Zh},{property:"og:description",content:ef},{property:"og:url",content:fw},{property:"og:type",content:"website"},{name:"twitter:title",content:Zh},{name:"twitter:description",content:ef}],links:[{rel:"canonical",href:fw}]})}),bI=()=>Se(()=>import("./blog-Vd7sgi8S.js"),[]),wI=ae()({component:we(bI,"component")}),SI=()=>Se(()=>import("./check-intern-DspjMgUj.js"),__vite__mapDeps([7,6,2])),mw="Communication Check (intern), Swiss Academy SACT AG",pw="Interne Version des Communication Checks für Kundinnen und
56Kunden der Swiss Academy.",_I=ae()({component:we(SI,"component"),head:()=>({meta:[{title:mw},{name:"description",content:pw},{name:"robots",content:"noindex, nofollow"},{property:"og:title",content:mw},{property:"og:description",content:pw},{property:"og:type",content:"website"}]})}),kI=()=>Se(()=>import("./check-intern-links-DQWWoDxo.js"),[]),gw="Check-Links generieren, Swiss Academy SACT AG",yw="Interner Link-Generator für den Communication Check in Trainings.",EI=ae()({component:we(kI,"component"),head:()=>({meta:[{title:gw},{name:"description",content:yw},{name:"robots",content:"noindex, nofollow"},{property:"og:title",content:gw},{property:"og:description",content:yw},{property:"og:type",content:"website"}]})}),TI=()=>Se(()=>import("./datenschutz-D6foZ_Lv.js"),__vite__mapDeps([8,6,2])),tf="Datenschutz, Swiss Academy SACT AG",nf="Datenschutzerklärung der Swiss Academy SACT AG: Informationen zur Verarbeitung personenbezogener Daten gemäss DSG und DSGVO.",vw="https://swiss-academy.ag/datenschutz",AI=ae()({component:we(TI,"component"),head:()=>({meta:[{title:tf},{name:"description",content:nf},{property:"og:title",content:tf},{property:"og:description",content:nf},{property:"og:url",content:vw},{property:"og:type",content:"website"},{name:"twitter:title",content:tf},{name:"twitter:description",content:nf}],links:[{rel:"canonical",href:vw}]})}),xI=()=>Se(()=>import("./en-CnOwFIpL.js"),[]),RI=ae()({component:we(xI,"component")}),CI=()=>Se(()=>import("./events-CnOwFIpL.js"),[]),OI=ae()({component:we(CI,"component")}),LI=ae()({beforeLoad:()=>{throw mt({to:"/loesungen",statusCode:301})}}),zI=ae()({beforeLoad:()=>{throw mt({to:"/loesungen",statusCode:301})}}),jI=ae()({beforeLoad:()=>{throw mt({to:"/loesungen",statusCode:301})}}),DI=()=>Se(()=>import("./impressum-D4gn82yD.js"),__vite__mapDeps([9,6,2])),rf="Impressum, Swiss Academy SACT AG",sf="Impressum und rechtliche Angaben der Swiss Academy SACT AG mit Sitz in Schenkon, Schweiz.",bw="https://swiss-academy.ag/impressum",MI=ae()({component:we(DI,"component"),head:()=>({meta:[{title:rf},{name:"description",content:sf},{property:"og:title",content:rf},{property:"og:description",content:sf},{property:"og:url",content:bw},{property:"og:type",content:"website"},{name:"twitter:title",content:rf},{name:"twitter:description",content:sf}],links:[{rel:"canonical",href:bw}]})}),II=()=>Se(()=>import("./kontakt-DnbOUkuS.js"),__vite__mapDeps([10,6,2])),af="Kontakt, Swiss Academy SACT AG",of="Kontaktieren Sie die Swiss Academy SACT AG: Anfragen zu Programmen, Corporate Trainings und Info-Gesprächen, wir freuen uns auf Ihre Nachricht.",ww="https://swiss-academy.ag/kontakt",NI=ae()({component:we(II,"component"),head:()=>({meta:[{title:af},{name:"description",content:of},{property:"og:title",content:af},{property:"og:description",content:of},{property:"og:url",content:ww},{property:"og:type",content:"website"},{name:"twitter:title",content:af},{name:"twitter:description",content:of}],links:[{rel:"canonical",href:ww}]})}),PI=()=>Se(()=>import("./leadership-communication-check-4YOAtGyu.js"),__vite__mapDeps([11,6,2])),lf="Leadership Communication Check, Swiss Academy SACT AG",cf="Der kostenlose 5-Minuten-Check: prüfen Sie Ihre Kommunikationswirkung und erkennen Sie den nächsten Schritt für Ihre Entwicklung.",Sw="https://swiss-academy.ag/leadership-communication-check",UI=ae()({component:we(PI,"component"),head:()=>({meta:[{title:lf},{name:"description",content:cf},{property:"og:title",content:lf},{property:"og:description",content:cf},{property:"og:url",content:Sw},{property:"og:type",content:"website"},{name:"twitter:title",content:lf},{name:"twitter:description",content:cf}],links:[{rel:"canonical",href:Sw}]})}),BI=()=>Se(()=>import("./loesungen-CRO9Jnkr.js"),[]),$I=ae()({component:we(BI,"component")}),qI=()=>Se(()=>import("./media-manifest-tx5KGPbf.js"),__vite__mapDeps([12,6,2])),uf="Media & Visibility, Swiss Academy SACT AG",df="Media & Visibility: das Manifest der Swiss Academy zu Sichtbarkeit, Stimme und Verantwortung in der öffentlichen Kommunikation.",_w="https://swiss-academy.ag/media-manifest",HI=ae()({component:we(qI,"component"),head:()=>({meta:[{title:uf},{name:"description",content:df},{property:"og:title",content:uf},{property:"og:description",content:df},{property:"og:url",content:_w},{property:"og:type",content:"website"},{name:"twitter:title",content:uf},{name:"twitter:description",content:df}],links:[{rel:"canonical",href:_w}]})}),FI=()=>Se(()=>import("./presse-Dpv7Q-xw.js"),__vite__mapDeps([13,6,2])),hf="Presse, Swiss Academy SACT AG",ff="Presse und Media Mentions der Swiss Academy SACT AG: Veröffentlichungen, Artikel und externe Beiträge zu unserer Arbeit.",kw="https://swiss-academy.ag/presse",VI=ae()({component:we(FI,"component"),head:()=>({meta:[{title:hf},{name:"description",content:ff},{property:"og:title",content:hf},{property:"og:description",content:ff},{property:"og:url",content:kw},{property:"og:type",content:"website"},{name:"twitter:title",content:hf},{name:"twitter:description",content:ff}],links:[{rel:"canonical",href:kw}]})}),KI=ae()({beforeLoad:()=>{throw mt({to:"/loesungen",statusCode:301})}}),GI=ae()({beforeLoad:()=>{throw mt({to:"/loesungen",statusCode:301})}}),YI=ae()({beforeLoad:()=>{throw mt({to:"/loesungen",statusCode:301})}}),WI=ae()({beforeLoad:()=>{throw mt({to:"/loesungen",statusCode:301})}}),JI=ae()({beforeLoad:()=>{throw mt({to:"/loesungen",statusCode:301})}}),QI=ae()({beforeLoad:()=>{throw mt({to:"/loesungen",statusCode:301})}}),XI=()=>Se(()=>import("./studio-produktion-xQbva_Vh.js"),__vite__mapDeps([14,6,2])),mf="Studio & Produktion, Swiss Academy SACT AG",pf="SA Studios: professionelle Studio-Produktionen für Video, Content und Bühnenformate, inkl. Studio mieten in der Schweiz.",Ew="https://swiss-academy.ag/studio-produktion",ZI=ae()({component:we(XI,"component"),head:()=>({meta:[{title:mf},{name:"description",content:pf},{property:"og:title",content:mf},{property:"og:description",content:pf},{property:"og:url",content:Ew},{property:"og:type",content:"website"},{name:"twitter:title",content:mf},{name:"twitter:description",content:pf}],links:[{rel:"canonical",href:Ew}]})}),eN=()=>Se(()=>import("./top-speakers-CCeiAvJh.js"),__vite__mapDeps([15,6,2])),gf="Top Speakers, Swiss Academy SACT AG",yf="Top Speakers: die Plattform für professionelle Speaker, Ausbildung und Masterclass, Bühnenwirkung, Positionierung und Sichtbarkeit.",Tw="https://swiss-academy.ag/top-speakers",tN=ae()({component:we(eN,"component"),head:()=>({meta:[{title:gf},{name:"description",content:yf},{property:"og:title",content:gf},{property:"og:description",content:yf},{property:"og:url",content:Tw},{property:"og:type",content:"website"},{name:"twitter:title",content:gf},{name:"twitter:description",content:yf}],links:[{rel:"canonical",href:Tw}]})}),nN=()=>Se(()=>import("./top-speakers-masterclass-BP6ddAWn.js"),__vite__mapDeps([16,6,2])),vf="Top Speakers Masterclass, Swiss Academy SACT AG",bf="Top Speakers Masterclass: für Expert:innen, Unternehmer:innen und Speaker, die ihre Bühnenwirkung und Sichtbarkeit gezielt ausbauen wollen.",Aw="https://swiss-academy.ag/top-speakers-masterclass",iN=ae()({component:we(nN,"component"),head:()=>({meta:[{title:vf},{name:"description",content:bf},{property:"og:title",content:vf},{property:"og:description",content:bf},{property:"og:url",content:Aw},{property:"og:type",content:"website"},{name:"twitter:title",content:vf},{name:"twitter:description",content:bf}],links:[{rel:"canonical",href:Aw}]})}),rN=()=>Se(()=>import("./triple-impact-methodik-CnMuCM4-.js"),__vite__mapDeps([17,6,2,4])),wf="Triple Impact Methodik, Swiss Academy SACT AG",Sf="Die Triple Impact Methodik: das wissenschaftlich fundierte Kommunikationsmodell der Swiss Academy für Klarheit, Resonanz und Wirkung.",xw="https://swiss-academy.ag/triple-impact-methodik",sN=ae()({component:we(rN,"component"),head:()=>({meta:[{title:wf},{name:"description",content:Sf},{property:"og:title",content:wf},{property:"og:description",content:Sf},{property:"og:url",content:xw},{property:"og:type",content:"website"},{name:"twitter:title",content:wf},{name:"twitter:description",content:Sf}],links:[{rel:"canonical",href:xw}]})}),aN=()=>Se(()=>import("./ueber-uns-rsOlAFfM.js"),__vite__mapDeps([18,6,2])),_f="Ãber uns, Swiss Academy SACT AG",kf="Die Swiss Academy SACT AG: Home of Leadership Communication. Team, Haltung und Methodik hinter unseren Programmen.",Rw="https://swiss-academy.ag/ueber-uns",oN=ae()({component:we(aN,"component"),head:()=>({meta:[{title:_f},{name:"description",content:kf},{property:"og:title",content:_f},{property:"og:description",content:kf},{property:"og:url",content:Rw},{property:"og:type",content:"website"},{name:"twitter:title",content:_f},{name:"twitter:description",content:kf}],links:[{rel:"canonical",href:Rw}]})}),lN=()=>Se(()=>import("./blog.index-DRWo9Fgx.js"),__vite__mapDeps([19,6,2])),Ef="Blog, Swiss Academy SACT AG",Tf="Der Blog der Swiss Academy: Impulse zu Leadership Communication, Public Speaking, Neurokommunikation und Wirkung im Business.",Cw="https://swiss-academy.ag/blog",cN=ae()({component:we(lN,"component"),head:()=>({meta:[{title:Ef},{name:"description",content:Tf},{property:"og:title",content:Ef},{property:"og:description",content:Tf},{property:"og:url",content:Cw},{property:"og:type",content:"website"},{name:"twitter:title",content:Ef},{name:"twitter:description",content:Tf}],links:[{rel:"canonical",href:Cw}]})}),uN=()=>Se(()=>import("./blog.emotion-schlaegt-information-CxKVrIin.js"),__vite__mapDeps([20,6,2])),Ow="Emotion schlägt Information · Swiss Academy",Lw="Warum Menschen Worte vergessen, Gefühle aber nicht, und wie diese Erkenntnis deine Kommunikation grundlegend verändert.",zw="https://swiss-academy.ag/blog/emotion-schlaegt-information",dN=ae()({component:we(uN,"component"),head:()=>({meta:[{title:Ow},{name:"description",content:Lw},{property:"og:title",content:Ow},{property:"og:description",content:Lw},{property:"og:type",content:"article"},{property:"og:url",content:zw},{property:"og:image",content:"https://swiss-academy.ag/images/blog/emotion-information.jpg"}],links:[{rel:"canonical",href:zw}]})}),hN=()=>Se(()=>import("./blog.energy-matching-twd0E8Zw.js"),__vite__mapDeps([21,6,2])),jw="Energy-Matching: Verbindung zu deinen MitarbeiterInnen · Swiss Academy",Dw="Wie Du mit Energie-M
56anagement eine echte Verbindung zu deinen MitarbeiterInnen aufbaust, ohne sie zu überfahren oder herunterzuziehen.",Mw="https://swiss-academy.ag/blog/energy-matching",fN=ae()({component:we(hN,"component"),head:()=>({meta:[{title:jw},{name:"description",content:Dw},{property:"og:title",content:jw},{property:"og:description",content:Dw},{property:"og:type",content:"article"},{property:"og:url",content:Mw},{property:"og:image",content:"https://swiss-academy.ag/images/blog/energy-matching.jpg"}],links:[{rel:"canonical",href:Mw}]})}),mN=()=>Se(()=>import("./blog.public-speaking-fuehrungskraefte-CRLsY3u9.js"),__vite__mapDeps([22,6,2])),Iw="Warum Public Speaking ein MUSS für Führungskräfte ist · Swiss Academy",Nw="Public Speaking, Neurokommunikation und Charisma: Wie Führungskräfte heute kommunizieren, um zu inspirieren statt nur zu informieren.",Pw="https://swiss-academy.ag/blog/public-speaking-fuehrungskraefte",pN=ae()({component:we(mN,"component"),head:()=>({meta:[{title:Iw},{name:"description",content:Nw},{property:"og:title",content:Iw},{property:"og:description",content:Nw},{property:"og:type",content:"article"},{property:"og:url",content:Pw},{property:"og:image",content:"https://swiss-academy.ag/images/blog/public-speaking.jpg"}],links:[{rel:"canonical",href:Pw}]})}),gN=()=>Se(()=>import("./en.index-D-cRM-B0.js"),__vite__mapDeps([23,1,2,3,4])),Af="Swiss Academy SACT AG, Home of Leadership Communication",xf="Swiss Academy SACT AG: Programs and corporate training for leadership communication, impact, and visibility. Leadership Communication from Switzerland.",Uw="https://swiss-academy.ag/en",yN=ae()({component:we(gN,"component"),head:()=>({meta:[{title:Af},{name:"description",content:xf},{property:"og:title",content:Af},{property:"og:description",content:xf},{property:"og:url",content:Uw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:Af},{name:"twitter:description",content:xf},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:Uw},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&display=swap"}]})}),vN=()=>Se(()=>import("./en.agb-BbYWBI_6.js"),__vite__mapDeps([24,6,2])),Rf="Terms and Conditions, Swiss Academy SACT AG",Cf="General Terms and Conditions of Swiss Academy SACT AG for programs, workshops, and corporate training.",Bw="https://swiss-academy.ag/en/agb",bN=ae()({component:we(vN,"component"),head:()=>({meta:[{title:Rf},{name:"description",content:Cf},{property:"og:title",content:Rf},{property:"og:description",content:Cf},{property:"og:url",content:Bw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:Rf},{name:"twitter:description",content:Cf}],links:[{rel:"canonical",href:Bw}]})}),wN=()=>Se(()=>import("./en.blog-BClKQUzt.js"),[]),SN=ae()({component:we(wN,"component")}),_N=()=>Se(()=>import("./en.check-internal-1-_yASjl.js"),__vite__mapDeps([25,6,2])),$w="Communication Check (internal), Swiss Academy SACT AG",qw="Internal version of the Communication Check for Swiss Academy clients.",kN=ae()({component:we(_N,"component"),head:()=>({meta:[{title:$w},{name:"description",content:qw},{name:"robots",content:"noindex, nofollow"},{property:"og:title",content:$w},{property:"og:description",content:qw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"}]})}),EN=()=>Se(()=>import("./en.datenschutz-BWkzkFRH.js"),__vite__mapDeps([26,6,2])),Of="Privacy Policy, Swiss Academy SACT AG",Lf="Swiss Academy SACT AG Privacy Policy: Information on the processing of personal data in accordance with the Swiss Data Protection Act (DSG) and the General Data Protection Regulation (GDPR).",Hw="https://swiss-academy.ag/en/datenschutz",TN=ae()({component:we(EN,"component"),head:()=>({meta:[{title:Of},{name:"description",content:Lf},{property:"og:title",content:Of},{property:"og:description",content:Lf},{property:"og:url",content:Hw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:Of},{name:"twitter:description",content:Lf}],links:[{rel:"canonical",href:Hw}]})}),AN=()=>Se(()=>import("./en.events-CbBMgVFl.js"),[]),xN=ae()({component:we(AN,"component")}),RN=ae()({beforeLoad:()=>{throw mt({to:"/en/loesungen",statusCode:301})}}),CN=ae()({beforeLoad:()=>{throw mt({to:"/en/loesungen",statusCode:301})}}),ON=ae()({beforeLoad:()=>{throw mt({to:"/en/loesungen",statusCode:301})}}),LN=()=>Se(()=>import("./en.impressum-DyuxQWnp.js"),__vite__mapDeps([27,6,2])),zf="Legal Notice, Swiss Academy SACT AG",jf="Legal notice and legal information for Swiss Academy SACT AG, headquartered in Sc
56henkon, Switzerland.",Fw="https://swiss-academy.ag/en/impressum",zN=ae()({component:we(LN,"component"),head:()=>({meta:[{title:zf},{name:"description",content:jf},{property:"og:title",content:zf},{property:"og:description",content:jf},{property:"og:url",content:Fw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:zf},{name:"twitter:description",content:jf}],links:[{rel:"canonical",href:Fw}]})}),jN=()=>Se(()=>import("./en.kontakt-jJfjZVFs.js"),__vite__mapDeps([28,6,2])),Df="Contact, Swiss Academy SACT AG",Mf="Contact Swiss Academy SACT AG: Inquiries about programs, corporate training, and informational meetingsâwe look forward to hearing from you.",Vw="https://swiss-academy.ag/en/kontakt",DN=ae()({component:we(jN,"component"),head:()=>({meta:[{title:Df},{name:"description",content:Mf},{property:"og:title",content:Df},{property:"og:description",content:Mf},{property:"og:url",content:Vw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:Df},{name:"twitter:description",content:Mf}],links:[{rel:"canonical",href:Vw}]})}),MN=()=>Se(()=>import("./en.leadership-communication-check-D84e730J.js"),__vite__mapDeps([29,6,2])),If="Leadership Communication Check, Swiss Academy SACT AG",Nf="The free 5-minute check: assess your communication impact and identify the next step in your development.",Kw="https://swiss-academy.ag/en/leadership-communication-check",IN=ae()({component:we(MN,"component"),head:()=>({meta:[{title:If},{name:"description",content:Nf},{property:"og:title",content:If},{property:"og:description",content:Nf},{property:"og:url",content:Kw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:If},{name:"twitter:description",content:Nf}],links:[{rel:"canonical",href:Kw}]})}),NN=()=>Se(()=>import("./en.loesungen-Du3gZV_w.js"),[]),PN=ae()({component:we(NN,"component")}),UN=()=>Se(()=>import("./en.media-manifest-D9hyKsv3.js"),__vite__mapDeps([30,6,2])),Pf="Media & Visibility, Swiss Academy SACT AG",Uf="Media & Visibility: the Swiss Academyâs manifesto on visibility, voice, and responsibility in public communication.",Gw="https://swiss-academy.ag/en/media-manifest",BN=ae()({component:we(UN,"component"),head:()=>({meta:[{title:Pf},{name:"description",content:Uf},{property:"og:title",content:Pf},{property:"og:description",content:Uf},{property:"og:url",content:Gw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:Pf},{name:"twitter:description",content:Uf}],links:[{rel:"canonical",href:Gw}]})}),$N=()=>Se(()=>import("./en.presse-DwUDq5cw.js"),__vite__mapDeps([31,6,2])),Bf="Press, Swiss Academy SACT AG",$f="Press and Media Mentions of the Swiss Academy SACT AG: Publications, articles, and external coverage of our work.",Yw="https://swiss-academy.ag/en/presse",qN=ae()({component:we($N,"component"),head:()=>({meta:[{title:Bf},{name:"description",content:$f},{property:"og:title",content:Bf},{property:"og:description",content:$f},{property:"og:url",content:Yw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:Bf},{name:"twitter:description",content:$f}],links:[{rel:"canonical",href:Yw}]})}),HN=ae()({beforeLoad:()=>{throw mt({to:"/en/loesungen",statusCode:301})}}),FN=ae()({beforeLoad:()=>{throw mt({to:"/en/loesungen",statusCode:301})}}),VN=ae()({beforeLoad:()=>{throw mt({to:"/en/loesungen",statusCode:301})}}),KN=ae()({beforeLoad:()=>{throw mt({to:"/en/loesungen",statusCode:301})}}),GN=ae()({beforeLoad:()=>{throw mt({to:"/en/loesungen",statusCode:301})}}),YN=ae()({beforeLoad:()=>{throw mt({to:"/en/loesungen",statusCode:301})}}),WN=()=>Se(()=>import("./en.studio-produktion-Bh59_Ia9.js"),__vite__mapDeps([32,6,2])),qf="Studio & Production, Swiss Academy SACT AG",Hf="SA Studios: Professional studio productions for video, content, and stage formats, including studio rentals in Switzerland.",Ww="https://swiss-academy.ag/en/studio-produktion",JN=ae()({component:we(WN,"component"),head:()=>({meta:[{title:qf},{name:"description",content:Hf},{property:"og:title",content:qf},{property:"og:description",content:Hf},{property:"og:url",content:Ww},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:qf},{name:"twitter:description",content:Hf}],links:[{rel:"canonical",href:Ww}]})}),QN=()=>Se(()=>import("./en.top-speakers-CPve5TBY.js"),__vite__mapDeps([33,6,2])),Ff="Top Speakers, Swiss Academy SACT AG",Vf="Top Speakers: the platform for professional speakers, training and masterclasses, stage presence, positioning, and visibility.",Jw="https://swiss-academy.ag/en/top-speakers",XN=ae()({component:we(QN,"component"),head:()=>({meta:[{title:Ff},{name:"description",content:Vf},{property:"og:title",content:Ff},{property:"og:description",content:Vf},{property:"og:url",content:Jw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:Ff},{name:"twitter:description",content:Vf}],links:[{rel:"canonical",href:Jw}]})}),ZN=()=>Se(()=>import("./en.top-speakers-masterclass-DLcSm-6I.js"),__vite__mapDeps([34,6,2])),Kf="Top Speakers Masterclass, Swiss Academy SACT AG",Gf
56="Top Speakers Masterclass: for experts, entrepreneurs, and speakers who want to specifically enhance their stage presence and visibility.",Qw="https://swiss-academy.ag/en/top-speakers-masterclass",eP=ae()({component:we(ZN,"component"),head:()=>({meta:[{title:Kf},{name:"description",content:Gf},{property:"og:title",content:Kf},{property:"og:description",content:Gf},{property:"og:url",content:Qw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:Kf},{name:"twitter:description",content:Gf}],links:[{rel:"canonical",href:Qw}]})}),tP=()=>Se(()=>import("./en.triple-impact-methodik-BnOGWq2X.js"),__vite__mapDeps([35,6,2,4])),Yf="Triple Impact Methodology, Swiss Academy SACT AG",Wf="The Triple Impact Methodology: the Swiss Academyâs scientifically grounded communication model for clarity, resonance, and impact.",Xw="https://swiss-academy.ag/en/triple-impact-methodik",nP=ae()({component:we(tP,"component"),head:()=>({meta:[{title:Yf},{name:"description",content:Wf},{property:"og:title",content:Yf},{property:"og:description",content:Wf},{property:"og:url",content:Xw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:Yf},{name:"twitter:description",content:Wf}],links:[{rel:"canonical",href:Xw}]})}),iP=()=>Se(()=>import("./en.ueber-uns-a7z6wP8L.js"),__vite__mapDeps([36,6,2])),Jf="About Us, Swiss Academy SACT AG",Qf="Swiss Academy SACT AG: Home of Leadership Communication. The team, philosophy, and methodology behind our programs.",Zw="https://swiss-academy.ag/en/ueber-uns",rP=ae()({component:we(iP,"component"),head:()=>({meta:[{title:Jf},{name:"description",content:Qf},{property:"og:title",content:Jf},{property:"og:description",content:Qf},{property:"og:url",content:Zw},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:Jf},{name:"twitter:description",content:Qf}],links:[{rel:"canonical",href:Zw}]})}),sP=()=>Se(()=>import("./events.index-D7BZC68_.js"),__vite__mapDeps([37,38])),eS="Events 2026 â Swiss Academy",tS="Swiss Academy Events 2026: Masterclasses, Live-Talks und besondere Formate rund um Leadership, Kommunikation und Wirkung.",aP=ae()({head:()=>({meta:[{title:eS},{name:"description",content:tS},{property:"og:title",content:eS},{property:"og:description",content:tS},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://swiss-academy.ag/events"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap"}]}),component:we(sP,"component")}),oP=()=>Se(()=>import("./events.leadership-communication-masterclass-DaWc9liw.js"),__vite__mapDeps([39,40])),nS="Leadership Communication Masterclass 2026 â Swiss Academy",iS="Drei intensive Tage Leadership Communication vom 05. bis 07. November 2026 in Schenkon LU.",lP=ae()({head:()=>({meta:[{title:nS},{name:"description",content:iS},{property:"og:title",content:nS},{property:"og:description",content:iS},{property:"og:type",content:"website"},...va("/images/programmes/masterclass.jpg")],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Event",name:"Leadership Communication Masterclass 2026",description:"Drei intensive Tage Leadership Communication vom 05. bis 07. November 2026 in Schenkon LU.",inLanguage:"de",startDate:"2026-11-05",endDate:"2026-11-07",eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",image:["https://swiss-academy.ag/images/programmes/masterclass.jpg"],url:"https://swiss-academy.ag/events/leadership-communication-masterclass",location:{"@type":"Place",name:"Lumen Park",address:{"@type":"PostalAddress",streetAddress:"Grenzstrasse 5C",postalCode:"6214",addressLocality:"Schenkon",addressRegion:"LU",addressCountry:"CH"}},organizer:{"@type":"Organization",name:"Swiss Academy SACT AG",url:"https://swiss-academy.ag"},offers:{"@type":"Offer",url:"https://speakermasterclass.top-speakers.ch/",availability:"https://schema.org/InStock"}})}],links:[{rel:"canonical",href:"https://swiss-academy.ag/events/leadership-communication-masterclass"}]}),component:we(oP,"component")}),cP=()=>Se(()=>import("./loesungen.index-7hdVxjiQ.js"),__vite__mapDeps([41,42,43])),rS="Lösungen für Leadership Communication | Swiss Academy SACT AG",sS="Acht Lösungen für Leadership Communication â angepasst an konkrete Situationen, Teilnehmende und Ziele der Organisation.",uP=ae()({head:()=>({meta:[{title:rS},{name:"description",content:sS},{property:"og:title",content:rS},{property:"og:description",content:sS},{property:"og:type",content:"website"},...va(Zk)],links:[{rel:"canonical",href:"https://swiss-academy.ag/loesungen"}]}
56),component:we(cP,"component")}),dP=()=>Se(()=>import("./loesungen._slug-Dx_Wl9B7.js"),__vite__mapDeps([44,45])),hP=ae()({loader:({params:e})=>{const t=ZM(e.slug);if(!t)throw vS();return t},head:({loaderData:e})=>{const t=`${e?.name??"Lösung"} â Swiss Academy`,i=e?.subtitle??"Leadership Communication mit Swiss Academy.";return{meta:[{title:t},{name:"description",content:i},{property:"og:title",content:t},{property:"og:description",content:i},{property:"og:type",content:"website"},...va(e?kt[e.slug]:void 0)],links:e?[{rel:"canonical",href:`https://swiss-academy.ag/loesungen/${e.slug}`}]:[]}},component:we(dP,"component")}),fP=()=>Se(()=>import("./en.blog.index-cBjqPEey.js"),__vite__mapDeps([46,6,2])),Xf="Blog, Swiss Academy SACT AG",Zf="The Swiss Academy blog: Insights on leadership communication, public speaking, neurocommunication, and making an impact in business.",aS="https://swiss-academy.ag/en/blog",mP=ae()({component:we(fP,"component"),head:()=>({meta:[{title:Xf},{name:"description",content:Zf},{property:"og:title",content:Xf},{property:"og:description",content:Zf},{property:"og:url",content:aS},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:Xf},{name:"twitter:description",content:Zf}],links:[{rel:"canonical",href:aS}]})}),pP=()=>Se(()=>import("./en.blog.emotion-schlaegt-information-Dbd2mC2G.js"),__vite__mapDeps([47,6,2])),em="Emotion Trumps Information · Swiss Academy",tm="Why People Forget Words but Not Feelings, and How This Insight Fundamentally Changes Your Communication.",oS="https://swiss-academy.ag/en/blog/emotion-schlaegt-information",gP=ae()({component:we(pP,"component"),head:()=>({meta:[{title:em},{name:"description",content:tm},{property:"og:title",content:em},{property:"og:description",content:tm},{property:"og:url",content:oS},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:em},{name:"twitter:description",content:tm}],links:[{rel:"canonical",href:oS}]})}),yP=()=>Se(()=>import("./en.blog.energy-matching-B6gS6ydH.js"),__vite__mapDeps([48,6,2])),nm="Energy Matching: Connecting with Your Employees · Swiss Academy",im="How to use energy management to build a genuine connection with your employees without overwhelming or dragging them down.",lS="https://swiss-academy.ag/en/blog/energy-matching",vP=ae()({component:we(yP,"component"),head:()=>({meta:[{title:nm},{name:"description",content:im},{property:"og:title",content:nm},{property:"og:description",content:im},{property:"og:url",content:lS},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:nm},{name:"twitter:description",content:im}],links:[{rel:"canonical",href:lS}]})}),bP=()=>Se(()=>import("./en.blog.public-speaking-fuehrungskraefte-B0mnhm-j.js"),__vite__mapDeps([49,6,2])),rm="Why Public Speaking Is a MUST for Leaders · Swiss Academy",sm="Public Speaking, Neurocommunication, and Charisma: How Leaders Today Communicate to Inspire Rather Than Just Inform.",cS="https://swiss-academy.ag/en/blog/public-speaking-fuehrungskraefte",wP=ae()({component:we(bP,"component"),head:()=>({meta:[{title:rm},{name:"description",content:sm},{property:"og:title",content:rm},{property:"og:description",content:sm},{property:"og:url",content:cS},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{name:"twitter:title",content:rm},{name:"twitter:description",content:sm}],links:[{rel:"canonical",href:cS}]})}),SP=()=>Se(()=>import("./en.events.index-CHH5k1Y6.js"),__vite__mapDeps([50,38])),uS="Events 2026 â Swiss Academy",dS="Swiss Academy Events 2026: masterclasses, live talks and special formats around leadership, communication and impact.",_P=ae()({head:()=>({meta:[{title:uS},{name:"description",content:dS},{property:"og:title",content:uS},{property:"og:description",content:dS},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://swiss-academy.ag/en/events"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap"}]}
56),component:we(SP,"component")}),kP=()=>Se(()=>import("./en.events.leadership-communication-masterclass-CXhhKxep.js"),__vite__mapDeps([51,40])),hS="Leadership Communication Masterclass 2026 â Swiss Academy",fS="Three intensive Leadership Communication days from 5 to 7 November 2026 in Schenkon, Switzerland.",EP=ae()({head:()=>({meta:[{title:hS},{name:"description",content:fS},{property:"og:title",content:hS},{property:"og:description",content:fS},{property:"og:type",content:"website"},...va("/images/programmes/masterclass.jpg")],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Event",name:"Leadership Communication Masterclass 2026",description:"Three intensive Leadership Communication days from 5 to 7 November 2026 in Schenkon, Switzerland.",inLanguage:"en",startDate:"2026-11-05",endDate:"2026-11-07",eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",image:["https://swiss-academy.ag/images/programmes/masterclass.jpg"],url:"https://swiss-academy.ag/en/events/leadership-communication-masterclass",location:{"@type":"Place",name:"Lumen Park",address:{"@type":"PostalAddress",streetAddress:"Grenzstrasse 5C",postalCode:"6214",addressLocality:"Schenkon",addressRegion:"LU",addressCountry:"CH"}},organizer:{"@type":"Organization",name:"Swiss Academy SACT AG",url:"https://swiss-academy.ag"},offers:{"@type":"Offer",url:"https://speakermasterclass.top-speakers.ch/",availability:"https://schema.org/InStock"}})}],links:[{rel:"canonical",href:"https://swiss-academy.ag/en/events/leadership-communication-masterclass"}]}),component:we(kP,"component")}),TP=()=>Se(()=>import("./en.loesungen.index-BJl7Ey2N.js"),__vite__mapDeps([52,42,43])),mS="Solutions for Leadership Communication | Swiss Academy SACT AG",pS="Eight solutions for Leadership Communication â tailored to specific situations, participants and organisational goals.",AP=ae()({head:()=>({meta:[{title:mS},{name:"description",content:pS},{property:"og:title",content:mS},{property:"og:description",content:pS},{property:"og:type",content:"website"},...va(Zk)],links:[{rel:"canonical",href:"https://swiss-academy.ag/en/loesungen"}]}),component:we(TP,"component")}),xP=()=>Se(()=>import("./en.loesungen._slug-Ccc63_Ss.js"),__vite__mapDeps([53,45])),RP=ae()({loader:({params:e})=>{const t=eI(e.slug);if(!t)throw vS();return t},head:({loaderData:e})=>{const t=`${e?.name??"Solution"} â Swiss Academy`,i=e?.subtitle??"Leadership Communication with Swiss Academy.";return{meta:[{title:t},{name:"description",content:i},{property:"og:title",content:t},{property:"og:description",content:i},{property:"og:type",content:"website"},...va(e?kt[e.slug]:void 0)],links:e?[{rel:"canonical",href:`https://swiss-academy.ag/en/loesungen/${e.slug}`}]:[]}},component:we(xP,"component")}),CP=gI.update({id:"/",path:"/",getParentRoute:()=>Be}),OP=vI.update({id:"/agb",path:"/agb",getParentRoute:()=>Be}),Wo=wI.update({id:"/blog",path:"/blog",getParentRoute:()=>Be}),LP=_I.update({id:"/check-intern",path:"/check-intern",getParentRoute:()=>Be}),zP=EI.update({id:"/check-intern-links",path:"/check-intern-links",getParentRoute:()=>Be}),jP=AI.update({id:"/datenschutz",path:"/datenschutz",getParentRoute:()=>Be}),Ye=RI.update({id:"/en",path:"/en",getParentRoute:()=>Be}),bp=OI.update({id:"/events",path:"/events",getParentRoute:()=>Be}),DP=LI.update({id:"/executive-communication-lounge",path:"/executive-communication-lounge",getParentRoute:()=>Be}),MP=zI.update({id:"/fuehrungskommunikation-intensiv",path:"/fuehrungskommunikation-intensiv",getParentRoute:()=>Be}),IP=jI.update({id:"/fuer-unternehmen",path:"/fuer-unternehmen",getParentRoute:()=>Be}),NP=MI.update({id:"/impressum",path:"/impressum",getParentRoute:()=>Be}),PP=NI.update({id:"/kontakt",path:"/kontakt",getParentRoute:()=>Be}),UP=UI.update({id:"/leadership-communication-check",path:"/leadership-communication-check",getParentRoute:()=>Be}),wp=$I.update({id:"/loesungen",path:"/loesungen",getParentRoute:()=>Be}),BP=HI.update({id:"/media-manifest",path:"/media-manifest",getParentRoute:()=>Be}),$P=VI.update({id:"/presse",path:"/presse",getParentRoute:()=>Be}),qP=KI.update({id:"/programme",path:"/programme",getParentRoute:()=>Be}),HP=GI.update({id:"/programme-advanced",path:"/programme-advanced",getParentRoute:()=>Be}),FP=YI.update({id:"/programme-basic",path:"/programme-basic",getParentRoute:()=>Be}),VP=WI.update({id:"/programme-briefing",path:"/programme-briefing",getParentRoute:()=>Be}),KP=JI.update({id:"/programme-professional",path:"/programme-professional",getParentRoute:()=>Be}),GP=QI.update({id:"/programme-tailored",path:"/programme-tailored",getParentRoute:()=>Be}),YP=ZI.update({id:"/studio-produktion",path:"/studio-produktion",getParentRoute:()=>Be}),WP=tN.update({id:"/top-speakers",path:"/top-speakers",getParentRoute:()=>Be}),JP=iN.update({id:"/top-speakers-masterclass",path:"/top-speakers-masterclass",getParentRoute:()=>Be}),QP=sN.update({id:"/triple-impact-methodik",path:"/triple-impact-methodik",getParentRoute:()=>Be}),XP=oN.update({id:"/ueber-uns",path:"/ueber-uns",getParentRoute:()=>Be}),ZP=cN.update({id:"/",path:"/",getParentRoute:()=>Wo}),eU=dN.update({id:"/emotion-schlaegt-information",path:"/emotion-schlaegt-information",getParentRoute:()=>Wo}),tU=fN.update({id:"/energy-matching",path:"/energy-matching",getParentRoute:()=>Wo}),nU=pN.update({id:"/public-speaking-fuehrungskraefte",path:"/public-speaking-fuehrungskraefte",getParentRoute:()=>Wo}),iU=yN.update({id:"/",path:"/",getParentRoute:()=>Ye}),rU=bN.update({id:"/agb",path:"/agb",getParentRoute:()=>Ye}),Jo=SN.update({id:"/blog",path:"/blog",getParentRoute:()=>Ye}),sU=kN.update({id:"/check-internal",path:"/check-internal",getParentRoute:()=>Ye}),aU=TN.update({id:"/datenschutz",path:"/datenschutz",getParentRoute:()=>Ye}),Sp=xN.update({id:"/events",path:"/events",getParentRoute:()=>Ye}),oU=RN.update({id:"/executive-communication-lounge",path:"/executive-communication-lounge",getParentRoute:()=>Ye}),lU=CN.update({id:"/fuehrungskommunikation-intensiv",path:"/fuehrungskommunikation-intensiv",getParentRoute:()=>Ye}),cU=ON.update({id:"/fuer-unternehmen",path:"/fuer-unternehmen",getParentRoute:()=>Ye}),uU=zN.update({id:"/impressum",path:"/impressum",getParentRoute:()=>Ye}),dU=DN.update({id:"/kontakt",path:"/kontakt",getParentRoute:()=>Ye}),hU=IN.update({id:"/leadership-communication-check",path:"/leadership-communication-check",getParentRoute:()=>Ye}
56),_p=PN.update({id:"/loesungen",path:"/loesungen",getParentRoute:()=>Ye}),fU=BN.update({id:"/media-manifest",path:"/media-manifest",getParentRoute:()=>Ye}),mU=qN.update({id:"/presse",path:"/presse",getParentRoute:()=>Ye}),pU=HN.update({id:"/programme",path:"/programme",getParentRoute:()=>Ye}),gU=FN.update({id:"/programme-advanced",path:"/programme-advanced",getParentRoute:()=>Ye}),yU=VN.update({id:"/programme-basic",path:"/programme-basic",getParentRoute:()=>Ye}),vU=KN.update({id:"/programme-briefing",path:"/programme-briefing",getParentRoute:()=>Ye}),bU=GN.update({id:"/programme-professional",path:"/programme-professional",getParentRoute:()=>Ye}),wU=YN.update({id:"/programme-tailored",path:"/programme-tailored",getParentRoute:()=>Ye}),SU=JN.update({id:"/studio-produktion",path:"/studio-produktion",getParentRoute:()=>Ye}),_U=XN.update({id:"/top-speakers",path:"/top-speakers",getParentRoute:()=>Ye}),kU=eP.update({id:"/top-speakers-masterclass",path:"/top-speakers-masterclass",getParentRoute:()=>Ye}),EU=nP.update({id:"/triple-impact-methodik",path:"/triple-impact-methodik",getParentRoute:()=>Ye}),TU=rP.update({id:"/ueber-uns",path:"/ueber-uns",getParentRoute:()=>Ye}),AU=aP.update({id:"/",path:"/",getParentRoute:()=>bp}),xU=lP.update({id:"/leadership-communication-masterclass",path:"/leadership-communication-masterclass",getParentRoute:()=>bp}),RU=uP.update({id:"/",path:"/",getParentRoute:()=>wp}),CU=hP.update({id:"/$slug",path:"/$slug",getParentRoute:()=>wp}),OU=mP.update({id:"/",path:"/",getParentRoute:()=>Jo}),LU=gP.update({id:"/emotion-schlaegt-information",path:"/emotion-schlaegt-information",getParentRoute:()=>Jo}),zU=vP.update({id:"/energy-matching",path:"/energy-matching",getParentRoute:()=>Jo}),jU=wP.update({id:"/public-speaking-fuehrungskraefte",path:"/public-speaking-fuehrungskraefte",getParentRoute:()=>Jo}),DU=_P.update({id:"/",path:"/",getParentRoute:()=>Sp}),MU=EP.update({id:"/leadership-communication-masterclass",path:"/leadership-communication-masterclass",getParentRoute:()=>Sp}),IU=AP.update({id:"/",path:"/",getParentRoute:()=>_p}),NU=RP.update({id:"/$slug",path:"/$slug",getParentRoute:()=>_p}),PU={BlogEmotionSchlaegtInformationRoute:eU,BlogEnergyMatchingRoute:tU,BlogPublicSpeakingFuehrungskraefteRoute:nU,BlogIndexRoute:ZP},UU=Wo._addFileChildren(PU),BU={EnBlogEmotionSchlaegtInformationRoute:LU,EnBlogEnergyMatchingRoute:zU,EnBlogPublicSpeakingFuehrungskraefteRoute:jU,EnBlogIndexRoute:OU},$U=Jo._addFileChildren(BU),qU={EnEventsLeadershipCommunicationMasterclassRoute:MU,EnEventsIndexRoute:DU},HU=Sp._addFileChildren(qU),FU={EnLoesungenSlugRoute:NU,EnLoesungenIndexRoute:IU},VU=_p._addFileChildren(FU),KU={EnAgbRoute:rU,EnBlogRoute:$U,EnCheckInternalRoute:sU,EnDatenschutzRoute:aU,EnEventsRoute:HU,EnExecutiveCommunicationLoungeRoute:oU,EnFuehrungskommunikationIntensivRoute:lU,EnFuerUnternehmenRoute:cU,EnImpressumRoute:uU,EnKontaktRoute:dU,EnLeadershipCommunicationCheckRoute:hU,EnLoesungenRoute:VU,EnMediaManifestRoute:fU,EnPresseRoute:mU,EnProgrammeRoute:pU,EnProgrammeAdvancedRoute:gU,EnProgrammeBasicRoute:yU,EnProgrammeBriefingRoute:vU,EnProgrammeProfessionalRoute:bU,EnProgrammeTailoredRoute:wU,EnStudioProduktionRoute:SU,EnTopSpeakersRoute:_U,EnTopSpeakersMasterclassRoute:kU,EnTripleImpactMethodikRoute:EU,EnUeberUnsRoute:TU,EnIndexRoute:iU},GU=Ye._addFileChildren(KU),YU={EventsLeadershipCommunicationMasterclassRoute:xU,EventsIndexRoute:AU},WU=bp._addFileChildren(YU),JU={LoesungenSlugRoute:CU,LoesungenIndexRoute:RU},QU=wp._addFileChildren(JU),XU={IndexRoute:CP,AgbRoute:OP,BlogRoute:UU,CheckInternRoute:LP,CheckInternLinksRoute:zP,DatenschutzRoute:jP,EnRoute:GU,EventsRoute:WU,ExecutiveCommunicationLoungeRoute:DP,FuehrungskommunikationIntensivRoute:MP,FuerUnternehmenRoute:IP,ImpressumRoute:NP,KontaktRoute:PP,LeadershipCommunicationCheckRoute:UP,LoesungenRoute:QU,MediaManifestRoute:BP,PresseRoute:$P,ProgrammeRoute:qP,ProgrammeAdvancedRoute:HP,ProgrammeBasicRoute:FP,ProgrammeBriefingRoute:VP,ProgrammeProfessionalRoute:KP,ProgrammeTailoredRoute:GP,StudioProduktionRoute:YP,TopSpeakersRoute:WP,TopSpeakersMasterclassRoute:JP,TripleImpactMethodikRoute:QP,UeberUnsRoute:XP},ZU=Be._addFileChildren(XU),e3=()=>{const e=new wj;return AO({routeTree:ZU,context:{queryClient:e},scrollRestoration:!1,defaultPreloadStaleTime:0})};async function t3(){const e=await e3();let t;if(q0){const i=await q0.getOptions();i.serializationAdapters=i.serializationAdapters??[],window.__TSS_START_OPTIONS__=i,t=i.seri
56alizationAdapters,e.options.defaultSsr=i.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(MC),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.ids.get().length||await Tx(e),e}var n3=t3;function i3(){return n3().finally(()=>window.$_TSR?.h())}var am;function r3(){return am||(am=i3()),A.jsx(NC,{promise:am,children:e=>A.jsx(CO,{router:e})})}ie.startTransition(()=>{SA.hydrateRoot(document,A.jsx(ie.StrictMode,{children:A.jsx(r3,{})}))});export{Yr as B,Me as L,Q_ as O,hP as R,yp as a,ts as b,a3 as c,mp as d,kt as e,tI as f,c3 as g,l3 as h,RP as i,A as j,Zk as l,ie as r,vp as s,o3 as t,jt as u};
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.